PageSourceSearch

https://openart.ai/suite/_next/static/chunks/7b3e7452374b8db7.js

js openart.ai collected 2026-09-24 08:30:31 UTC 284,754 bytes, 88 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,539992,e=>{"use strict";var t=e.i(743265),i=e.i(478790);let n=(0,i.createContext)(void 0);function a({cohorts:e,children:a}){let r=e.ids?.join(",")??"",s=(0,i.useMemo)(()=>e,[r]);return(0,t.jsx)(n.Provider,{value:s,children:a})}function r(){return(0,i.useContext)(n)}e.s(["CampaignCohortsProvider",()=>a,"useCampaignCohorts",()=>r])},689289,e=>{"use strict";var t=e.i(743265),i=e.i(478790);new Date("2026-08-10T19:30:00Z").getTime();let n={withinCutoff:!1,hasAnsweredQ3:!1,segment:null},a=(0,i.createContext)({isOldUser:!1,isMobile:!1,isCollapsed:!1,isVerifiedBot:!1,isSubscriber:!1,personalizedPills:n});function r({isOldUser:e,isMobile:i,isCollapsed:r,isVerifiedBot:s,isSubscriber:l,personalizedPills:o=n,children:d}){return(0,t.jsx)(a,{value:{isOldUser:e,isMobile:i,isCollapsed:r,isVerifiedBot:s,isSubscriber:l,personalizedPills:o},children:d})}function s(){return(0,i.useContext)(a)}e.s(["ServerHintsProvider",()=>r,"useServerHints",()=>s],689289)},219794,e=>{"use strict";let t={signupWallTiming:"signup_wall_timing_2026_q3_v1",starterPackV3:"starter_pack_2026_q3_v1",oneTimePackOffer:e.i(26983).ONE_TIME_PACK_EXPERIMENT,personalizedPills:"personalized_pills_and_starting_prompts_2026_q3_v1",homepageSuggestionLayout:"homepage_suggestion_layout_2026_q3_v1",pricingInfoClarity:"pricing_info_clarity_2026_q3_v1"};e.s(["STATSIG_EXPERIMENTS",0,t])},991399,e=>{"use strict";var t=e.i(743265),i=e.i(478790),n=e.i(642558);let a=(0,i.createContext)(null);function r({variant:e,trigger:n,open:r,ready:s=!0,children:l}){let o=(0,i.useRef)(!1);(0,i.useEffect)(()=>{r||(o.current=!1)},[r]);let d=(0,i.useMemo)(()=>({variant:e,trigger:n,reported:o,ready:s}),[e,n,s]);return(0,t.jsx)(a.Provider,{value:d,children:l})}function s({variant:e,trigger:t,active:r}){let s=(0,i.useContext)(a),l=s?.ready??!0,o=(0,i.useRef)(!1),d=(0,i.useRef)({variant:e,trigger:t,claim:s});d.current={variant:e,trigger:t,claim:s},(0,i.useEffect)(()=>{if(!r){o.current=!1;return}if(!l)return;let e=d.current,t=e.claim?.reported??o;if(t.current)return;t.current=!0;let i=e.claim??{variant:e.variant,trigger:"function"==typeof e.trigger?e.trigger():e.trigger};(0,n.event)("pricing_viewed",{trigger:i.trigger,paywall_variant:i.variant})},[r,l])}e.s(["PaywallImpressionBoundary",()=>r,"usePaywallImpression",()=>s])},366860,528485,379660,668156,809993,668780,580616,124287,577099,68818,243445,794761,719666,413278,633699,e=>{"use strict";var t=e.i(779640),i=e.i(595415),n=e.i(665230),a=e.i(13671),r=e.i(708783),s=e.i(267646),l=e.i(22668),o=e.i(976385),d=e.i(176590),c=e.i(795106);let u=[a.nanoBananaProText2Image.id,n.nanoBananaProImage2Image.id,s.veo31.id,r.veo31Image2Video.id,o.kling26Text2Video.id,l.kling26Image2Video.id,i.bytePlusSeedream45Text2Image.id,t.bytePlusSeedream45Image2Image.id,c.hailuo23Text2Video.id,d.hailuo23Image2Video.id],p={id:"best-value-for-favorite-models",name:"Best Value for Favorite Models",type:"discount",startAt:new Date("2026-01-03T08:00:00Z"),upgradeDeadline:new Date("2026-02-01T07:59:00Z"),endAt:new Date("2027-01-01T07:59:00Z"),matchingCapabilities:u,match:async(e,u)=>{if(!u)return null;let{user:p}=e;if(!p.campaigns?.best_value_for_favorite_models_202601)return null;switch(e.businessType){case a.nanoBananaProText2Image.id:case n.nanoBananaProImage2Image.id:return function(e){if(!e)return null;let{resolution:t,quantity:i}=e,n=m[t];return n?{unitCredits:n,amount:n*i}:null}(u);case s.veo31.id:case r.veo31Image2Video.id:return function(e){if(!e)return null;let{duration:t,generateAudio:i,mode:n,resolution:a,quantity:r}=e,s=x[n]?.[a];if(!s)return null;let l=i?s.withAudio:s.withoutAudio;if(void 0===l)return null;let o=l*t;return o?{unitCredits:o,amount:o*r}:null}(u);case o.kling26Text2Video.id:return function(e){if(!e)return null;let{duration:t,sound:i,resolution:n,quantity:a}=e,r=("std"===n?9:i?h:g)*t;return r?{unitCredits:r,amount:r*a}:null}(u);case l.kling26Image2Video.id:return function(e){if(!e)return null;let{duration:t,sound:i,voiceReference:n,resolution:a,quantity:r}=e,s=("std"===a?9:i?n?b:h:g)*t;return s?{unitCredits:s,amount:s*r}:null}(u);case i.bytePlusSeedream45Text2Image.id:case t.bytePlusSeedream45Image2Image.id:return function(e){if(!e)return null;let{quantity:t}=e;return{unitCredits:12,amount:12*t}}(u);case c.hailuo23Text2Video.id:return function(e){if(!e)return null;let{duration:t,resolution:i,quantity:n}=e,a=f.normal[t]?.[i];return a?{unitCredits:a,amount:a*n}:null}(u);case d.hailuo23Image2Video.id:return function(e){if(!e)return null;let{duration:t,resolution:i,mode:n,quantity:a}=e,r=f[n]?.[t]?.[i];return r?{unitCredits:r,amount:r*a}:null}(u);default:return null}}},m={"1K":35,"2K":35,"4K":60},x={fast:{"720p":{withoutAudio:30},"1080p":{withoutAudio:30}},normal:{"720p":{withAudio:120,withoutAudio:60},"1080p":{withAudio:120,withoutAudio:60}}},g=15,h=30,b=36,f={fast:{6:{"768p":40,"1080p":80},10:{"768p":80}},normal:{6:{"768p":70,"1080p":120},10:{"768p":120}}},v=["fal-h3-max:text2video","fal-h3-max:image2video"],y={"480P":10,"768P":15},w=new Date("2026-09-02T07:00:00Z"),N=new Date("2026-09-16T06:59:59Z"),T=["fal-h3-max-turbo:text2video","fal-h3-max-turbo:image2video"],C={"480P":5,"768P":10,"1080P":15},j=new Date("2026-09-04T07:00:00Z"),I=new Date("2026-09-16T06:59:59Z");var S=e.i(706357);let P={"wan2-2:image2video":{allowedResolutions:["480p"],maxDuration:5,experimentVersion:"v2"},"wan2-2:text2video":{allowedResolutions:["480p"],maxDuration:5,experimentVersion:"v2"},"wan2-7:image2video":{allowedResolutions:["720p"],maxDuration:5,experimentVersion:"v2"},"wan2-7:text2video":{allowedResolutions:["720p"],maxDuration:5,experimentVersion:"v2"},"wan2-7:modify-video":{allowedResolutions:["720p"],maxDuration:5,experimentVersion:"v2"},"wan2-7:extend-video":{allowedResolutions:["720p"],maxDuration:5,experimentVersion:"v2"},"wan2-7:reference-video":{allowedResolutions:["720p"],maxDuration:5,experimentVersion:"v2"},"kling-3-omni:image2video":{allowedResolutions:["std"],maxDuration:5,experimentVersion:"v2"},"kling-3-omni:text2video":{allowedResolutions:["std"],maxDuration:5,experimentVersion:"v2"},"kling-3-omni:element2video":{allowedResolutions:["std"],maxDuration:5,experimentVersion:"v2"},"kling-3-omni:modify-video":{allowedResolutions:["std"],maxDuration:5,experimentVersion:"v2"},"kling-3-omni:reference-video":{allowedResolutions:["std"],maxDuration:5,experimentVersion:"v2"},"kling-v3:image2video":{allowedResolutions:["std"],maxDuration:5,experimentVersion:"v2"},"kling-v3:text2video":{allowedResolutions:["std"],maxDuration:5,experimentVersion:"v2"},"kling-v3:motion-sync":{allowedResolutions:["std"],maxDuration:5,experimentVersion:"v2"},"byte-plus-seedance-1-5:image2video":{allowedResolutions:["480p","720p"],maxDuration:5,experimentVersion:"v2"},"byte-plus-seedance-1-5:text2video":{allowedResolutions:["480p","720p"],maxDuration:5,experimentVersion:"v2"},"pixverseC1:text2video":{allowedResolutions:["360p","540p","720p"],maxDuration:5,experimentVersion:"v3"},"pixverseC1:image2video":{allowedResolutions:["360p","540p","720p"],maxDuration:5,experimentVersion:"v3"},"pixverseV6:text2video":{allowedResolutions:["360p","540p","720p"],maxDuration:5,experimentVersion:"v3"},"pixverseV6:image2video":{allowedResolutions:["360p","540p","720p"],maxDuration:5,experimentVersion:"v3"}};
1function k(e,t,i=1,n){if(e.subscription_active)return{eligible:!1};let a=e.starter_pack;if(!a||a.video_quota_total<=0)return{eligible:!1};let r="v3"===a.experiment_version?"v3":"v2",s=P[t];return!s||s.experimentVersion!==r||!function(e,t){let i=P[e];if(!i)return!1;if(!t)return!0;if("kling-v3:motion-sync"===e){let e=t.videoMode;if(null!=e&&!i.allowedResolutions.includes(e))return!1;let n=t.reference?.metadata?.duration;return null==n||!(n>i.maxDuration)}let n=t.resolution;if(null!=n&&!i.allowedResolutions.includes(n))return!1;let a=t.duration;return null==a||!(a>i.maxDuration)}(t,n)||a.video_quota_total-a.video_quota_used<i?{eligible:!1}:{eligible:!0,quota:{total:a.video_quota_total,used:a.video_quota_used}}}let _={id:"starter-pack-free-quota",name:"Starter Pack Free Quota",type:"free_quota",startAt:new Date("2026-01-01"),endAt:new Date("2099-12-31"),match:async(e,t)=>{let i,{user:n,businessType:a}=e,r=t?.quantity??1,s=k(n,a,r,t);if(!s.eligible)return null;let l=n.starter_pack;if(!l)return null;let o=s.quota.total-s.quota.used;try{i=(0,S.getCapability)(a).getBusinessDetails(t).totalCredits}catch{return null}return{originalCredits:i,variant:l.variant,resourceType:"video",totalQuota:s.quota.total,remainingQuota:o,quotaConsumed:r,quotaPath:{total:"starter_pack.video_quota_total",used:"starter_pack.video_quota_used"}}}},A={std:"720p"};function D(e,t){let i=P[e];if(!i||i.experimentVersion!==t)return null;let n=i.allowedResolutions[i.allowedResolutions.length-1],a=A[n]??n;return`Free video quota only applies to videos up to ${i.maxDuration}s and ${a} on selected models.`}let E=[_];e.s(["buildFreeQuotaDescription",()=>D,"freeQuotaCampaigns",0,E,"isUserEligibleForStarterPack",()=>k],528485);var M=e.i(625468),F=e.i(6895),U=e.i(281133);let L={id:"mcp-first-authorization-discount",name:"MCP First Authorization Discount",type:"discount",startAt:new Date("2026-01-01T00:00:00Z"),endAt:new Date("2099-12-31T23:59:59Z"),isEligible:async({user:e},t)=>!t?.isTeamWorkspace&&R(e)>0,match:async(e,t,i)=>i?.fromMCP&&i.businessDetail&&!i.isTeamWorkspace?function(e,t,i=new Date){let n=R(t,i);if(n<=0)return null;let a=(0,M.applyDiscount)(e,n);return{unitCredits:a.unitCredits,amount:a.totalCredits,discountPct:n}}(i.businessDetail,e.user):null},O=new Set([F.SubscriptionType.Advanced,F.SubscriptionType.Infinite,F.SubscriptionType.Wonder]);function B(e){return e?.campaigns?.mcp_discount?.expires_at}function R(e,t=new Date){return e&&O.has((0,U.getSubscriptionType)(e))?10*!!function(e,t=new Date){let i=e?.campaigns?.mcp_discount;return!!i&&"number"==typeof i.expires_at&&Number.isFinite(i.expires_at)&&t.getTime()<=i.expires_at}(e,t):0}e.s(["MCP_DISCOUNT_DURATION_DAYS",0,7,"MCP_DISCOUNT_ELIGIBLE_TIERS",0,O,"mcpDiscountExpiresAt",()=>B,"mcpLaunchDiscount",0,L],379660);var V=e.i(580621),W=e.i(630),z=e.i(105723),H=e.i(955010),G=e.i(346476),q=e.i(76798),K=e.i(914792),Z=e.i(120213),X=e.i(331283),Q=e.i(683480),Y=e.i(983662),J=e.i(516120),$=e.i(522135),ee=e.i(82776),et=e.i(536853),ei=e.i(754985),en=e.i(250519),ea=e.i(80203),er=e.i(158347),es=e.i(365596),el=e.i(173694),eo=e.i(461341),ed=e.i(648592),ec=e.i(469794),eu=e.i(397830),ep=e.i(212247);let em="model-summer-sale",ex=new Date("2026-08-08T06:59:00Z"),eg={user_3GqyMRbZTvGhgKtGvnf9zyjaDtx:new Date("2026-08-16T06:59:00Z"),user_3Fzkp0FvXwYV0qGfGvoD0p1F39D:new Date("2026-08-16T06:59:00Z"),user_2zxJ1MD0He1AMJEP55SMBqjzISE:new Date("2026-08-16T06:59:00Z"),RHPxSiMs2XABOrMmSwVd:new Date("2026-08-16T06:59:00Z"),PxnEW9ztxnWUfvGWwp0G:new Date("2026-08-16T06:59:00Z"),OzRadt3CNi5bX9nG8HS7:new Date("2026-08-16T06:59:00Z"),htkM0AV7fLggMKyTCJFT:new Date("2026-08-16T06:59:00Z"),"5oGlyWg0WVCLHkl88LcF":new Date("2026-08-16T06:59:00Z"),m1LT5d9I0Tui7UCz4RHh:new Date("2026-08-16T06:59:00Z"),lpuH4r8jRpK6DiGpoTmT:new Date("2026-08-16T06:59:00Z"),user_35htFLlPmoVFh650vFhLCZR4wDL:new Date("2026-08-16T06:59:00Z"),qDn44iRW3GbcLVORMnWD:new Date("2026-08-16T06:59:00Z")},eh=[Q.nanoBanana2LiteText2Image.id,X.nanoBanana2LiteImage2Image.id,z.bytePlusSeedream5ProText2Image.id,V.bytePlusSeedream5ProImage2Image.id,eo.gptImage2Text2Image.id,es.gptImage2Image2Image.id,Z.geminiOmniFlash.id,H.geminiOmniFlashImage2Video.id,q.geminiOmniFlashReference2Video.id,G.geminiOmniFlashModifyVideo.id,et.kling3OmniText2Video.id,J.kling3OmniImage2Video.id,Y.kling3OmniElement2Video.id,ee.kling3OmniReferenceVideo.id,$.kling3OmniModifyVideo.id,eu.xaiGrokImagineText2Video.id,ed.xaiGrokImagineImage2Video.id,ec.xaiGrokImagineModifyVideo.id,ep.xaiGrokImagine15Image2Video.id,er.minimaxH3Text2Video.id,ea.minimaxH3Image2Video.id,en.minimaxH3Element2Video.id],eb={id:em,name:"Model Summer Sale",type:"discount",startAt:new Date("2026-07-15T06:00:00Z"),upgradeDeadline:ex,endAt:new Date("2027-01-01T07:59:00Z"),matchingCapabilities:eh,match:async(e,t,i)=>{if(!t||i?.isTeamWorkspace)return null;let{user:n}=e,a=!!n.campaigns?.model_summer_sale_202607,r=function(e,t=new Date){if(!e)return!1;let i=eg[e];return!!i&&t<=i}(i?.currentWorkspaceUserId||n.id);if(!a&&!r)return null;switch(e.businessType){case Q.nanoBanana2LiteText2Image.id:case X.nanoBanana2LiteImage2Image.id:return function(e){let{quantity:t}=e;return{unitCredits:12,amount:12*t}}(t);case z.bytePlusSeedream5ProText2Image.id:return function(e){let{resolution:t,quantity:i}=e,n=ev[t];return n?{unitCredits:n,amount:n*i}:null}(t);case V.bytePlusSeedream5ProImage2Image.id:return function(e){let{resolution:t,references:i,quantity:n}=e,a=ev[t];if(!a)return null;let r=a+2*Math.max(0,(0,W.countSeedream5ProReferenceImages)(i)-1);return{unitCredits:r,amount:r*n}}(t);case eo.gptImage2Text2Image.id:return ey(t,!1);case es.gptImage2Image2Image.id:return ey(t,!0);case Z.geminiOmniFlash.id:case H.geminiOmniFlashImage2Video.id:case q.geminiOmniFlashReference2Video.id:return function(e){let{duration:t,quantity:i}=e;if(!t)return null;let n=40*t;return{unitCredits:n,amount:n*i}}(t);case G.geminiOmniFlashModifyVideo.id:return function(e){let{videoReference:t,quantity:i}=e,n=40*(0,K.clampOmniModifyDuration)(t?.metadata?.duration);return{unitCredits:n,amount:n*i}}(t);case et.kling3OmniText2Video.id:case J.kling3OmniImage2Video.id:case Y.kling3OmniElement2Video.id:return function(e){let t,{resolution:i,generateSound:n,duration:a,quantity:r}=e,s=(t=!0===n||"on"===n,"std"===i?t?25:20:"pro"===i?t?35:25:"4k"===i?100:null);if(!s||!a)return null;let l=s*a;return{unitCredits:l,amount:l*r}}(t);case ee.kling3OmniReferenceVideo.id:case $.kling3OmniModifyVideo.id:return function(e){let{resolution:t,duration:i,quantity:n}=e,a="std"===t?30:"pro"===t?40:null;if(!a||!i)return null;let r=a*Math.round(i);return{unitCredits:r,amount:r*n}}(t);case eu.xaiGrokImagineText2Video.id:case ed.xaiGrokImagineImage2Video.id:return function(e){let{resolution:t,duration:i,quantity:n}=e,a=ew[t];if(!a||!i)return null;let r=a*i;return{unitCredits:r,amount:r*n}}(t);case ec.xaiGrokImagineModifyVideo.id:return function(e){let{videoReference:t,quantity:i}=e,n=t?.metadata?.duration;if(!n||n<=0)return null;let a=40*Math.min(Math.ceil(n),8);return{unitCredits:a,amount:a*i}}(t);case ep.xaiGrokImagine15Image2Video.id:return function(e){let{resolution:t,duration:i,quantity:n}=e,a=eN[t];if(!a||!i)return null;let r=a*i+5;return{unitCredits:r,amount:r*n}}(t);case er.minimaxH3Text2Video.id:case ea.minimaxH3Image2Video.id:case en.minimaxH3Element2Video.id:return function(e){let{resolution:t,duration:i,quantity:n,visualReferences:a}=e;if("number"!=typeof i)return null;let r=t&&Object.hasOwn(eT,t)?t:ei.H3_DEFAULT_RESOLUTION,s=eT[r],l=a??[],o=Math.max(0,l.filter(e=>"image"===e.type||"character"===e.type||"element"===e.type).length-5),d=l.reduce((e,t)=>
1{if("video"!==t.type)return e;let i=t.metadata?.duration;return e+("number"==typeof i?i:0)},0),c=s*i+20*o+(0,ei.h3CreditsPerInputVideoSecond)(r)*Math.ceil(d);return{unitCredits:c,amount:c*n}}(t);default:return null}}};function ef(e=new Date){let{startAt:t,upgradeDeadline:i}=eb;return!!i&&e>=t&&e<=i}let ev={"1K":18,"2K":35};function ey(e,t){let{size:i,quality:n,references:a,quantity:r}=e;if(!i)return null;let s=Math.ceil(((0,el.getGptImage2OutputCredits)(i,n??"auto")+(t&&a?(0,el.getGptImage2InputCredits)(a):0))*.8);return{unitCredits:s,amount:s*r}}let ew={"480p":25,"720p":35},eN={"480p":35,"720p":65},eT={"768P":45,"2K":60};e.s(["MODEL_SUMMER_SALE_CAMPAIGN_ID",0,em,"MODEL_SUMMER_SALE_UPGRADE_DEADLINE",0,ex,"isModelSummerSaleActive",()=>ef,"modelSummerSale",0,eb],668156);let eC=["pixverseC1:text2video","pixverseC1:image2video"],ej="campaigns.pixverse_c1_discount.quota_used",eI="campaigns.pixverse_c1_discount.quota_total",eS=new Date("2026-07-07T18:00:00Z"),eP=new Date("2026-08-08T06:59:00Z"),ek=["reve-2.1:text2image","reve-2.1:image2image"],e_=new Date("2026-07-20T08:00:00Z"),eA=new Date("2026-08-20T06:59:00Z");var eD=e.i(786035);let eE=["byte-plus-seedance-2-5:text2video","byte-plus-seedance-2-5:image2video","byte-plus-seedance-2-5:element2video","byte-plus-seedance-2-5:extendVideo","byte-plus-seedance-2-5:modifyVideo"],eM="1080p",eF=new Date("2026-08-16T00:00:00Z"),eU=new Date("2026-09-18T06:59:00Z"),eL=["prod_TRDhpbWHKB2e4p","prod_TOv59zL5V2KQye"],eO=["prod_RHumZDdIzaVqJB","prod_RFwjzodl27XsUZ"];function eB(e,t){return!!e.subscription_active&&!!e.subscription_type&&t.includes(e.subscription_type)}function eR(e){return eB(e,eL)}function eV(e){return eR(e)&&"year"===e.subscription_billing_interval}e.s(["INFINITE_PRODUCT_IDS",0,eO,"WONDER_PRODUCT_IDS",0,eL,"hasActiveSubscription",()=>eB,"isWonderSubscription",()=>eR,"isWonderYearlySubscriber",()=>eV],809993);var eW=e.i(293961);function ez(e,t){return null!==eH(e,t)}function eH(e,t){if(!e.subscription_active)return null;let i=[e.subscription_upgraded_at,e.subscription_created_at].filter(e=>(function(e,t){if("number"!=typeof e)return!1;let i=1e3*e;return i>=t.startAt.getTime()&&i<=t.endAt.getTime()})(e,t));return 0===i.length?null:new Date(1e3*Math.max(...i))}e.s(["getSubscriptionEventInCampaign",()=>eH,"isUserUpgradedDuringCampaign",()=>ez],668780);let eG=new Date("2026-05-07T18:00:00Z"),eq=new Date("2026-05-16T06:59:00Z");function eK(e){return eR(e)?"wonder":eB(e,eO)?"infinite":null}function eZ(e,t){var i;let n=(i=e,"infinite"===t?i.startsWith("flux-2-pro:")?"Flux 2 Pro - 1K and 2K resolution":i.startsWith("nano-banana-2:")?"Nano Banana 2 - 1K resolution":void 0:i.startsWith("nano-banana-2:")?"Nano Banana 2 - 1K and 2K resolution":i.startsWith("flux-2-pro:")?"Flux 2 Pro - 1K and 2K resolution":i.startsWith("gpt-image-2:")?"GPT Image 2 - 1K and 2K resolution, Low quality only":i.startsWith("nano-banana-pro:")?"Nano Banana Pro - 1K and 2K resolution":i.startsWith("byte-plus-seedance-2-fast:")||i.startsWith("byte-plus-seedance-2:")?"Seedance 2.0 - 480p resolution, up to 5 seconds duration, Fast mode only":void 0);return n?`Unlimited access applies only to eligible models and settings. (${n})`:void 0}let eX=["flux-2-pro:text2image"],eQ=["nano-banana-2:text2image","nano-banana-2:image2image"],eY=new Set([...eX,...eQ]),eJ={id:"unlimited-openversary-infinite-image",name:"Flux 2 Pro, Nano Banana 2",modelName:"Flux 2 Pro, Nano Banana 2",type:"unlimited",description:`**Flux 2 Pro**
2Unlimited only for:
3
4- Resolutions: 1K, 2K
5- Ends on May 15, 11:59 PM PT
6- Available only to new subscribers and upgrades; not current subscribers
7
8**Nano Banana 2**
9Unlimited only for:
10
11- Resolution: 1K
12- Ends on May 15, 11:59 PM PT
13- Available only to new subscribers and upgrades; not current subscribers
14  `,startAt:eG,endAt:eq,getDescription:e=>{let t=eK(e.user);if(t)return eZ(e.businessType,t)},isEligible:async(e,t)=>!(!eY.has(e.businessType)||t?.isTeamWorkspace)&&!!eB(e.user,eO)&&!!ez(e.user,{startAt:eG,endAt:eq})&&new Date<=eq,match:async(e,t,i)=>{let{user:n,businessType:a}=e;return!eY.has(a)||i?.isTeamWorkspace||!eB(n,eO)||!ez(n,{startAt:eG,endAt:eq})||new Date>eq?null:function(e,t){let{businessType:i}=e;if(!eY.has(i)||(eQ.includes(i)?"1K"!==t?.resolution:!(eX.includes(i)&&4>=(0,eW.computeFluxMp)(t?.width,t?.height))))return null;let{totalCredits:n}
14=(0,S.getCapability)(i).getBusinessDetails(t);return{originalCredits:n}}(e,t)}},e$=["flux-2-pro:text2image"],e0=["nano-banana-2:text2image","nano-banana-2:image2image"],e2=["nano-banana-pro:text2image","nano-banana-pro:image2image"],e1=["gpt-image-2:text2image","gpt-image-2:image2image"],e5=["byte-plus-seedance-2-fast:text2video","byte-plus-seedance-2-fast:image2video","byte-plus-seedance-2-fast:element2video","byte-plus-seedance-2-fast:extendVideo","byte-plus-seedance-2-fast:modifyVideo"],e3=new Set([...e0,...e$,...e1,...e2]),e6=new Set([...e5,"byte-plus-seedance-2:text2video","byte-plus-seedance-2:image2video","byte-plus-seedance-2:element2video","byte-plus-seedance-2:extendVideo","byte-plus-seedance-2:modifyVideo"]);function e4(e,t,i){let{businessType:n}=e;if(!i.has(n)||!function(e,t){if(e0.includes(e)||e2.includes(e)){let e=t?.resolution;return"1K"===e||"2K"===e}if(e$.includes(e))return 4>=(0,eW.computeFluxMp)(t?.width,t?.height);if(e1.includes(e)){if(t?.quality!=="low"||"string"!=typeof t?.size)return!1;let[e,i]=t.size.split("x").map(Number);return!!Number.isFinite(e)&&!!Number.isFinite(i)&&1360>=Math.min(e,i)}return!!e5.includes(e)&&t?.resolution==="480p"&&"number"==typeof t?.duration&&t.duration>=1&&t.duration<=5}(n,t))return null;let{totalCredits:a}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}let e8={id:"unlimited-openversary-wonder-image",name:"Flux 2 Pro, Nano Banana 2, GPT Image 2, Nano Banana Pro, Seedance 2.0",modelName:"Flux 2 Pro, Nano Banana 2, GPT Image 2, Nano Banana Pro, Seedance 2.0",type:"unlimited",description:`**Nano Banana 2**
15Unlimited only for:
16
17- Resolutions: 1K, 2K
18- Ends on May 15, 11:59 PM PT
19- Available only to new subscribers and upgrades; not current subscribers
20
21**Flux 2 Pro**
22Unlimited only for:
23
24- Resolutions: 1K, 2K
25- Ends on May 15, 11:59 PM PT
26- Available only to new subscribers and upgrades; not current subscribers
27
28**GPT Image 2**
29Unlimited only for:
30
31- Resolutions: 1K, 2K
32- Quality: Low
33- Ends on May 15, 11:59 PM PT
34- Available only to new subscribers and upgrades; not current subscribers
35
36**Nano Banana Pro**
37Unlimited only for:
38
39- Resolutions: 1K, 2K
40- Ends on May 15, 11:59 PM PT
41- Available only to new subscribers and upgrades; not current subscribers
42
43**Seedance 2.0**
44Unlimited only for:
45
46- Resolution: 480p
47- Duration: Up to 5 seconds
48- Mode: Fast
49- Ends on May 15, 11:59 PM PT
50- Available only to new subscribers and upgrades; not current subscribers
51    `,startAt:eG,endAt:eq,getDescription:e=>{let t=eK(e.user);if(t)return eZ(e.businessType,t)},isEligible:async(e,t)=>!(!e3.has(e.businessType)||t?.isTeamWorkspace)&&!!eR(e.user)&&!!ez(e.user,{startAt:eG,endAt:eq})&&new Date<=eq,match:async(e,t,i)=>{let{user:n,businessType:a}=e;
51return!e3.has(a)||i?.isTeamWorkspace||!eR(n)||!ez(n,{startAt:eG,endAt:eq})||new Date>eq?null:e4(e,t,e3)}},e7={id:"unlimited-openversary-wonder-video",name:"Flux 2 Pro, Nano Banana 2, GPT Image 2, Nano Banana Pro, Seedance 2.0",modelName:"Flux 2 Pro, Nano Banana 2, GPT Image 2, Nano Banana Pro, Seedance 2.0",type:"unlimited",description:`**Nano Banana 2**
52  Unlimited only for:
53  
54  - Resolutions: 1K, 2K
55  - Ends on May 15, 11:59 PM PT
56  - Available only to new subscribers and upgrades; not current subscribers
57  
58  **Flux 2 Pro**
59  Unlimited only for:
60  
61  - Resolutions: 1K, 2K
62  - Ends on May 15, 11:59 PM PT
63  - Available only to new subscribers and upgrades; not current subscribers
64  
65  **GPT Image 2**
66  Unlimited only for:
67  
68  - Resolutions: 1K, 2K
69  - Quality: Low
70  - Ends on May 15, 11:59 PM PT
71  - Available only to new subscribers and upgrades; not current subscribers
72  
73  **Nano Banana Pro**
74  Unlimited only for:
75  
76  - Resolutions: 1K, 2K
77  - Ends on May 15, 11:59 PM PT
78  - Available only to new subscribers and upgrades; not current subscribers
79  
80  **Seedance 2.0**
81  Unlimited only for:
82  
83  - Resolution: 480p
84  - Duration: Up to 5 seconds
85  - Mode: Fast
86  - Ends on May 15, 11:59 PM PT
87  - Available only to new subscribers and upgrades; not current subscribers
88      `,startAt:eG,endAt:eq,getDescription:e=>{let t=eK(e.user);if(t)return eZ(e.businessType,t)},isEligible:async(e,t)=>!(!e6.has(e.businessType)||t?.isTeamWorkspace)&&!!eR(e.user)&&!!ez(e.user,{startAt:eG,endAt:eq})&&new Date<=eq,match:async(e,t,i)=>{let{user:n,businessType:a}=e;
88return!e6.has(a)||i?.isTeamWorkspace||!eR(n)||!ez(n,{startAt:eG,endAt:eq})||new Date>eq?null:e4(e,t,e6)}};e.s(["unlimitedOpenversaryInfiniteImage",0,eJ,"unlimitedOpenversaryWonderImage",0,e8,"unlimitedOpenversaryWonderVideo",0,e7],580616);var e9=e.i(228650);let te=new Date("2026-08-17T07:00:00Z"),tt=new Date("2026-08-24T06:59:00Z"),ti=new Date("2026-08-29T06:59:00Z");function tn(e=new Date){return e>=te&&e<=tt}let ta="Aug 23",tr="Unlimited applies to New Upgrades to Pro plans through August 23 at 11:59 PM PT.",ts="Unlimited for only New Wonder Plan upgrades through August 23 at 11:59 PM PT.",tl=(0,e9.getSubscriptionDisplayName)(F.SubscriptionType.Infinite),to=(0,e9.getSubscriptionDisplayName)(F.SubscriptionType.Wonder),td=`Upgrade to ${to}`,tc=[{prefix:"nano-banana-2-lite:",name:"Nano Banana 2 Lite"},{prefix:"qwen-image-3:",name:"Qwen Image 3.0"},{prefix:"minimax-h3:",name:"MiniMax H3"},{prefix:"flux-3-video:",name:"FLUX 3"},{prefix:"byte-plus-seedance-2-5:",name:"Seedance 2.5"}];function tu(e,t){return!!tj(e)||!t&&tC(e)}function tp(e,t){return t?"guest":e?tu(e,!1)?"earned":eR(e)?eV(e)?"wonderAnnual":"wonderMonthly":eB(e,eO)?"year"===e.subscription_billing_interval?"proAnnual":"proMonthly":"belowPro":"unknown"}function tm(e){return({user:t,businessType:i,isSignedOut:n})=>{if(void 0===i)return e;let a=tc.find(e=>i.startsWith(e.prefix))?.name;if(!a)return e;let r=function(e,t,i){if(i)return t?td:`Upgrade to ${tl} or ${to}`;if(e&&!tu(e,t)){if(eR(e)){if(eV(e))return;return`Switch to ${to} Annual`}return eB(e,eO)?t||"year"===e.subscription_billing_interval?td:"Upgrade your plan":t?td:`Upgrade to ${tl} or ${to}`}}(t,th.includes(i),n);return r?`${r} by ${ta} for 7 days of unlimited generations on ${a}.`:void 0}}let tx=["nano-banana-2-lite:text2image","nano-banana-2-lite:image2image","qwen-image-3:text2image","qwen-image-3:image2image"],tg=["minimax-h3:text2video","minimax-h3:image2video","minimax-h3:element2video","flux-3-video:text2video","flux-3-video:image2video","flux-3-video:extendVideo"],th=["byte-plus-seedance-2-5:text2video","byte-plus-seedance-2-5:image2video","byte-plus-seedance-2-5:element2video","byte-plus-seedance-2-5:extendVideo","byte-plus-seedance-2-5:modifyVideo"],tb=[...tg,...th],tf=["minimax-h3:text2video","minimax-h3:image2video","minimax-h3:element2video"],tv=["flux-3-video:text2video","flux-3-video:image2video","flux-3-video:extendVideo"];function ty(){return!0}function tw(e,t){return t?.duration===5&&(tv.includes(e)?t?.resolution==="hd":!!tf.includes(e))}function tN(e,t){if(th.includes(e)){let e,i;return e=t?.videoReference?.metadata?.duration,null!==(i="number"==typeof t?.duration?t.duration:"number"==typeof e?(0,eD.seedance25EditOutputDurationS)(e):null)&&!(i<1)&&!(i>5)&&t?.resolution==="480p"&&(t?.videoReference?.metadata?.duration??0)+(t?.video?.metadata?.duration??0)+(0,eD.sumSeedance25InputVideoSeconds)(t?.visualReferences??[])<=5}return tw(e,t)}function tT(e){let t,i=null===(t=eH(e,{startAt:te,endAt:tt}))?null:new Date(Math.min(t.getTime()+6048e5,ti.getTime()));return null!==i&&new Date<=i}function tC(e){return!!eB(e,eO)&&tT(e)}function tj(e){return!!eR(e)&&tT(e)}let tI=e=>t=>tn()?!(eV(t)&&!tT(t)):e(t),tS=tI(tC),tP=tI(tj);function tk(e,t,i,n){if(!i.includes(e)||!n(e,t))return null;let{totalCredits:a}=(0,S.getCapability)(e).getBusinessDetails(t);return{originalCredits:a}}let t_={id:"aug17Promo-unlimited-pro-image",name:"Unlimited Nano Banana 2 Lite, Qwen Image 3.0",modelName:"Nano Banana 2 Lite, Qwen Image 3.0",type:"unlimited",description:tm(tr),startAt:te,endAt:ti,upgradeDeadline:tt,capabilities:tx,requiredTiers:[F.SubscriptionType.Infinite],isTargetedTo:tS,publiclyAdvertised:!0,isEligible:async(e,t)=>!!tx.includes(e.businessType)&&tC(e.user),match:async(e,t,i)=>tC(e.user)?tk(e.businessType,t,tx,ty):null},tA={id:"aug17Promo-unlimited-pro-video",name:"Unlimited MiniMax H3, FLUX 3",modelName:"MiniMax H3, FLUX 3",type:"unlimited",description:tm(tr),startAt:te,endAt:ti,upgradeDeadline:tt,capabilities:tg,requiredTiers:[F.SubscriptionType.Infinite],isTargetedTo:tS,publiclyAdvertised:!0,isEligible:async(e,t)=>!!tg.includes(e.businessType)&&tC(e.user),match:async(e,t,i)=>tC(e.user)?tk(e.businessType,t,tg,tw):null},tD={id:"aug17Promo-unlimited-wonder-image",name:"Unlimited Nano Banana 2 Lite, Qwen Image 3.0",modelName:"Nano Banana 2 Lite, Qwen Image 3.0",type:"unlimited",description:tm(ts),startAt:te,endAt:ti,upgradeDeadline:tt,capabilities:tx,requiredTiers:[F.SubscriptionType.Wonder],isTargetedTo:tP,publiclyAdvertised:!0,isEligible:async(e,t)=>!!tx.includes(e.businessType)&&tj(e.user),match:async(e,t,i)=>tj(e.user)?tk(e.businessType,t,tx,ty):null},tE={id:"aug17Promo-unlimited-wonder-video",name:"Unlimited Seedance 2.5, MiniMax H3, FLUX 3",modelName:"Seedance 2.5, MiniMax H3, FLUX 3",type:"unlimited",description:tm(ts),startAt:te,endAt:ti,upgradeDeadline:tt,capabilities:tb,requiredTiers:[F.SubscriptionType.Wonder],isTargetedTo:tP,publiclyAdvertised:!0,isEligible:async(e,t)=>!!tb.includes(e.businessType)&&tj(e.user),match:async(e,t,i)=>tj(e.user)?tk(e.businessType,t,tb,tN):null};e.s(["AUG17_PROMO_CAMPAIGN_ID_PREFIX",0,"aug17Promo-unlimited-","AUG17_PROMO_DEADLINE_MEDIUM",0,"August 23","AUG17_PROMO_DEADLINE_SHORT",0,ta,"AUG17_PROMO_START",0,te,"AUG17_PROMO_UPGRADE_DEADLINE",0,tt,"aug17PromoUnlimitedProImage",0,t_,"aug17PromoUnlimitedProVideo",0,tA,"aug17PromoUnlimitedWonderImage",0,tD,"aug17PromoUnlimitedWonderVideo",0,tE,"getAug17PromoAudience",()=>tp,"isAug17PromoUpgradeWindowOpen",()=>tn],124287);let tM=["fal-h3-max:text2video","fal-h3-max:image2video"],tF=new Date("2026-09-02T07:00:00Z"),tU=new Date("2026-09-10T06:59:59Z"),tL="unlimited-h3-max-wonder",tO={id:tL,name:"Unlimited MiniMax H3 Max",modelName:"MiniMax H3 Max",type:"unlimited",description:({user:e})=>e&&eR(e)?void 0:"Upgrade to Wonder for unlimited H3 Max generations until September 9 (5s, 480p).",startAt:tF,endAt:tU,capabilities:tM,requiredTiers:[F.SubscriptionType.Wonder],isEligible:async e=>!!tM.includes(e.businessType)&&!!eR(e.user)&&new Date<=tU,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!tM.includes(n)||!eR(i))return null;let a=new Date;if(a<tF||a>tU||t?.duration!==5||t?.resolution!=="480P")return null;let{totalCredits:r}
88=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:r}}};e.s(["H3_MAX_CAMPAIGN_ID",0,tL,"unlimitedH3MaxWonder",0,tO],577099);let tB=["flux-3-video:text2video","flux-3-video:image2video"],tR=new Date("2026-09-13T07:00:00Z"),tV=new Date("2026-11-01T06:59:59Z"),tW="unlimited-flux-3-oct-wonder",tz={id:tW,name:"Unlimited FLUX 3",modelName:"FLUX 3",type:"unlimited",description:({user:e})=>e&&eR(e)?void 0:"Upgrade to Wonder for unlimited Flux 3 generations until October 31 (T2V & I2V, 5s, 720p).",startAt:tR,endAt:tV,capabilities:tB,requiredTiers:[F.SubscriptionType.Wonder],isEligible:async e=>!!tB.includes(e.businessType)&&!!eR(e.user)&&new Date<=tV,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!tB.includes(n)||!eR(i))return null;let a=new Date;if(a<tR||a>tV||t?.duration!==5||t?.resolution!=="hd")return null;let{totalCredits:r}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:r}}};e.s(["FLUX_3_OCT_CAMPAIGN_ID",0,tW,"unlimitedFlux3OctWonder",0,tz],68818);var tH=e.i(211920);let tG=tH.CAMPAIGN_COHORT_IDS["grokImage2-unlimited"];function tq(e,t){return t?.ids?.includes(tG)===!0}let tK=new Date("2026-08-25T07:00:00Z"),tZ=new Date("2026-09-08T06:59:00Z"),tX=new Date(tZ.getTime()+12096e5);function tQ(e=new Date){return e>=tK&&e<=tZ}let tY=["grok-imagine-image-2:text2image","grok-imagine-image-2:image2image"],tJ=[...eL,...eO];function t$(e,t){let i;if(!eB(e,tJ)||!tq(e,t))return!1;let n=null===(i=eH(e,{startAt:tK,endAt:tZ}))?null:new Date(i.getTime()+12096e5);return null!==n&&new Date<=n}let t0={id:"grokImage2-unlimited",name:"Unlimited Grok Imagine Image 2.0",modelName:"Grok Imagine Image 2.0",type:"unlimited",startAt:tK,endAt:tX,upgradeDeadline:tZ,description:function({user:e,cohorts:t}){if(!(e&&t$(e,t))&&tQ())return"Upgrade to Pro or Wonder by September 7 to enjoy 14 days of unlimited Grok Imagine Image 2.0 generations (low quality, 1K)."},capabilities:tY,requiredTiers:[F.SubscriptionType.Infinite,F.SubscriptionType.Wonder],isTargetedTo:(e,t)=>tQ()?tq(e,t):t$(e,t),isEligible:async(e,t)=>!!tY.includes(e.businessType)&&t$(e.user,t?.cohorts),match:async(e,t,i)=>{let{user:n,businessType:a}=e;if(!tY.includes(a)||!t$(n,i?.cohorts)||t?.quality!=="low"||t?.resolution!=="1K")return null;let{totalCredits:r}=(0,S.getCapability)(a).getBusinessDetails(t);return{originalCredits:r}}},t2=new Date("2026-09-20T07:00:00Z"),t1=new Date("2026-10-05T06:59:59Z"),t5={"768P":40,"2K":65},t3={"480P":20,"768P":30},t6={"480P":10,"768P":15,"1080P":30},t4={"768P":45,"2K":65},t8=["minimax-h3:text2video","minimax-h3:image2video","minimax-h3:element2video","fal-h3-max:text2video","fal-h3-max:image2video","fal-h3-max-turbo:text2video","fal-h3-max-turbo:image2video"];function t7(e=new Date){let t=e.getTime();return t2.getTime()<=t&&t<=t1.getTime()}let t9={"minimax-h3:text2video":{"768P":"Upgrade to get 33% off 768p T2V. Offer ends on Oct 4.","2K":"Upgrade to get 27% off 2K T2V. Offer ends on Oct 4."},"minimax-h3:image2video":{"768P":"Upgrade to get 33% off I2V. Offer ends on Oct 4.","2K":"Upgrade to get 27% off I2V. Offer ends on Oct 4."},"minimax-h3:element2video":{"768P":"Upgrade to get 33% off 768p V2V. Offer ends on Oct 4.","2K":"Upgrade to get 27% off 2K V2V. Offer ends on Oct 4."},"fal-h3-max:text2video":{"480P":"Upgrade to get 20% off 480p. Offer ends on Oct 4.","768P":"Upgrade to get 25% off 768p. Offer ends on Oct 4."},"fal-h3-max:image2video":{"480P":"Upgrade to get 20% off 480p. Offer ends on Oct 4.","768P":"Upgrade to get 25% off 768p. Offer ends on Oct 4."},"fal-h3-max-turbo:text2video":{"480P":"Upgrade to get 33% off 480p. Offer ends on Oct 4.","768P":"Upgrade to get 25% off 768p. Offer ends on Oct 4.","1080P":"Upgrade to get 25% off 1080p. Offer ends on Oct 4."},"fal-h3-max-turbo:image2video":{"480P":"Upgrade to get 33% off 480p. Offer ends on Oct 4.","768P":"Upgrade to get 25% off 768p. Offer ends on Oct 4.","1080P":"Upgrade to get 25% off 1080p. Offer ends on Oct 4."}},ie={"minimax-h3:text2video":{"768P":"33% off 768p T2V. Offer ends on Oct 4.","2K":"27% off 2K T2V. Offer ends on Oct 4."},"minimax-h3:image2video":{"768P":"33% off I2V. Offer ends on Oct 4.","2K":"27% off I2V. Offer ends on Oct 4."},"minimax-h3:element2video":{"768P":"33% off 768p V2V. Offer ends on Oct 4.","2K":"27% off 2K V2V. Offer ends on Oct 4."},"fal-h3-max:text2video":{"480P":"20% off 480p. Offer ends on Oct 4.","768P":"25% off 768p. Offer ends on Oct 4."},"fal-h3-max:image2video":{"480P":"20% off 480p. Offer ends on Oct 4.","768P":"25% off 768p. Offer ends on Oct 4."},"fal-h3-max-turbo:text2video":{"480P":"33% off 480p. Offer ends on Oct 4.","768P":"25% off 768p. Offer ends on Oct 4.","1080P":"25% off 1080p. Offer ends on Oct 4."},"fal-h3-max-turbo:image2video":{"480P":"33% off 480p. Offer ends on Oct 4.","768P":"25% off 768p. Offer ends on Oct 4.","1080P":"25% off 1080p. Offer ends on Oct 4."}};function it(e){return!!e.campaigns?.minimax_h3_2_weeks_promo_202609}function ii(e,t){let i=t.resolution;if("string"!=typeof i)return null;let n=e[i];if(void 0===n)return null;let a=t.duration;return"number"!=typeof a||a<=0?null:n*a}function ia(e){return ii(t5,e)}function ir(e){return ii(t3,e)}function is(e){return ii(t6,e)}let il={"minimax-h3:text2video":ia,"minimax-h3:image2video":ia,"minimax-h3:element2video":function(e){let t=ii(t5,e);if(null===t)return null;let i=e.visualReferences,n=Math.max(0,(Array.isArray(i)?i.filter(e=>{let t=e?.type;return"image"===t||"character"===t||"element"===t}).length:0)-ei.H3_FREE_INPUT_IMAGES),a=e.resolution;return t+20*n+(t4[a]??(0,ei.h3CreditsPerInputVideoSecond)(a))*Math.ceil(Array.isArray(i)?i.reduce((e,t)=>
88{if(t?.type!=="video")return e;let i=t.metadata?.duration;return e+("number"==typeof i?i:0)},0):0)},"fal-h3-max:text2video":ir,"fal-h3-max:image2video":ir,"fal-h3-max-turbo:text2video":is,"fal-h3-max-turbo:image2video":is},io={id:"minimax-h3-2-weeks-promo",name:"MiniMax H3 2-Week Promotion",modelName:"MiniMax H3",modelListTag:"Up to 30% off",excludesTeamWorkspaces:!0,type:"discount",description:function({user:e,businessType:t,cohorts:i,businessParams:n,isTeamWorkspace:a}){if(!t7()||a||e&&it(e)||i?.ids?.includes(tH.CAMPAIGN_COHORT_IDS["minimax-h3-2-weeks-unlimited"])===!0||!t)return;let r=n?.resolution;if("string"!=typeof r)return;let s=e&&eR(e)?ie:t9;return s[t]?.[r]},startAt:t2,endAt:t1,matchingCapabilities:t8,match:async(e,t,i)=>i?.isTeamWorkspace||i?.fromMCP||i?.cohorts?.ids?.includes(tH.CAMPAIGN_COHORT_IDS["minimax-h3-2-weeks-unlimited"])===!0||!it(e.user)&&!eR(e.user)?null:function(e,t,i=new Date){if(!t7(i))return null;let n=il[e];if(!n||!t)return null;let a=n(t);if(null===a)return null;let r=t.quantity;return{unitCredits:a,amount:a*("number"==typeof r?r:1)}}(e.businessType,t),isEligible:async(e,t)=>!!t8.includes(e.businessType)&&t?.cohorts?.ids?.includes(tH.CAMPAIGN_COHORT_IDS["minimax-h3-2-weeks-unlimited"])!==!0&&(it(e.user)||eR(e.user))};e.s(["MINIMAX_H3_2_WEEKS_PROMO_END",0,t1,"MINIMAX_H3_2_WEEKS_PROMO_START",0,t2,"isMinimaxH32WeeksPromoFlagged",()=>it,"minimaxH32WeeksPromo",0,io,"minimaxH32WeeksPromoActive",()=>t7],243445);let id=tH.CAMPAIGN_COHORT_IDS["minimax-h3-2-weeks-unlimited"],ic=new Date("2026-09-20T07:00:00Z"),iu=new Date("2026-10-05T06:59:59Z"),ip=["minimax-h3:text2video","fal-h3-max:text2video","fal-h3-max:image2video","fal-h3-max-turbo:text2video","fal-h3-max-turbo:image2video"],im={"minimax-h3:text2video":"Upgrade to Wonder for unlimited MiniMax H3 generations until October 4 (T2V, 5s, 768p).","fal-h3-max:text2video":"Upgrade to Wonder for unlimited MiniMax H3 Max generations until October 4 (T2V & I2V, 5s, 768p).","fal-h3-max:image2video":"Upgrade to Wonder for unlimited MiniMax H3 Max generations until October 4 (T2V & I2V, 5s, 768p).","fal-h3-max-turbo:text2video":"Upgrade to Wonder for unlimited MiniMax H3 Max Turbo generations until October 4 (T2V & I2V, 5s, 768p).","fal-h3-max-turbo:image2video":"Upgrade to Wonder for unlimited MiniMax H3 Max Turbo generations until October 4 (T2V & I2V, 5s, 768p)."},ix={"minimax-h3:text2video":["768P"],"fal-h3-max:text2video":["480P","768P"],"fal-h3-max:image2video":["480P","768P"],"fal-h3-max-turbo:text2video":["480P","768P"],"fal-h3-max-turbo:image2video":["480P","768P"]};function ig(e,t){return t?.ids?.includes(id)===!0}function ih(e,t){return!!eR(e)&&!!ig(e,t)&&it(e)}let ib={id:"minimax-h3-2-weeks-unlimited",name:"Unlimited MiniMax H3",modelName:"MiniMax H3",type:"unlimited",startAt:ic,endAt:iu,description:function({user:e,cohorts:t,businessType:i}){if(!(e&&ih(e,t)))return i?im[i]:"UNLIMITED Generations Offer on MiniMax H3, H3 Max & H3 Max Turbo through October 4, 11:59 PM PT on Wonder Plan."},capabilities:ip,requiredTiers:[F.SubscriptionType.Wonder],isTargetedTo:(e,t)=>!!ig(e,t)&&(!eR(e)||it(e)),isEligible:async(e,t)=>!!ip.includes(e.businessType)&&ih(e.user,t?.cohorts),match:async(e,t,i)=>{let n,{user:a,businessType:r}=e;if(!ip.includes(r)||!ih(a,i?.cohorts)||!((n=ix[r])&&t?.duration===5&&"string"==typeof t?.resolution&&n.includes(t.resolution)))return null;let{totalCredits:s}=(0,S.getCapability)(r).getBusinessDetails(t);return{originalCredits:s}}},iv=new Set(["user_38vc19Mzbqvr0NkQxKcpbqxduNi","vBSWaPf8bgrALcPXLt3J","PNV1muGnvC5C3mTULagM","WCyHWAXMrIlvPWQ6C7un","oK7VolXKm3DM0X8pQUqa","uNQTT31hfWFHKyacx6UY","ztdFnLsHNbDmw5KmPw9r","Gs71Kw8T0Jt8AIlQuTmm","d8uWZ90jQtf11Aeqnwpw","SBNePZpDdEjkX6pncBCY","Nw6y1GgHYbjWnW3WEaM6","wwwwi4JX03RoF8b151l1","lvzkEloPD1XbaDZGLJTn","vZj4U4kPtZa7QETclIj7","HNWKIL2c5lYlOMypjDbL","u1kC60Oloxyeuj65tsST","user_3Dh5q9RJgIpH6ZPWcmQUwlm9NSL","nt0bTQUMFRbzLSVGhspy","3S9kVq3RrJMrr3AAHx2X","user_3E81LfaoZAZNWnSRAl37pnGw4Am","P0qX5GCpFEU7MTjLVVeI","user_34F8sXGGlVrPPAsa5O4KNywffaJ","yFpHAYAdxSIqx7ZpEZ68","acwFsrW7mRjFW0PVaVz0","z9sN9FT6KGo4D0w5CoGc","zJytXBZ4l01Nhn6dZjml","01Oz7IYpLJdGKhNPsVLc","jJowQJ9b01AoDAAX5Ukl","AToDLHpyW24mwSL0lJlu","byc6GZF7UjN00YWR0Qem","mZlY1jjexVmVwmDlsAop","BZHQLeXqJKgefMgTNyu9","6Ya16mgIHYldzswvZAOw","X5RhRzntokY1pUfvVPY0","zZKSIlmFwAplE5w7Jykc","user_322pXXegzIyjqwSwSFZcQUPUwuP","3pyK81XKD5LtTEdCdFWx","sq1imhc77scIhcNuNBxs","GHDOTcm9Zq7BdX7brOrK","teMBPVUus4bXrk7BuAMe","m2zqpVHWmEfZoO0u8gCo","7vywGAiO735qT5GIljej","a338ibOuMcJyOOv4mjvR","tCXkoki7kVlwApsAI8J4","Ciqerf6Q
88DaaiizH6wMIG","user_33XrCsEqGilI95HQmy6qQpnrXtF","1337RXfRr3OBHOz6DUp0","user_35k97mOxGhhcE1W1wsGKrVrrvq5","JrgCkbbjppgjiYFCJp9a","xcWdhXIE01q6yXY1tD8Q","EbYTlsC92EpyERnKNEdk","6CG3e86A8DbqKmFb9Gq2","tAx0cA6qPaX38GFgYqLi","user_3DEUNloikV4DF6NcNt5P1X2RcI4","kGKdTcmYgHfDyDdYoyLQ","7mgL4JW2dJrZkotAeM2w","user_2yTggqEva9LMGAmXCIWAri5G9Gx","UEZr30wQNRWxO2uN32VO","user_373l3JGIQYnmI7NYcHrD8oqWTlY","JJvFIXuntJ8JMgePVgfU","user_31A0EbkHDoWzwE9jQh0n6Kzj1GO","user_2z70S9nYFavgRfAcVES0raas2Kv","3M2ACueWxb8FDbcSrDjo","user_3BHcVmTCjVMLkq2qi6iA4rvoqq2","user_3EYZOMgQrL3SzrOfYNuZpk7OJ1M","aKWS31SzWSslf4npBFeL","b2Uy4SeFrqCheYw7KVy9","8gBUWSHoFCEsxNMuNE7k","783z6x6mbMkkzRkeQz5B","yON37YxEkrb9TbG7k2sn","HrMUspUA0BwoNDKdDCmc","user_3HVuse5TnuKVc0adkht3EtjlnUh","0wr7ncs6Oo2Qreikofyh","rwO2SoYC2JZ5A7jUrA3X","f80yeNhJasnpVjaZ2dXH","user_2wO9Zw0RYQQBatIeFwk5bTn9IrW","EH83VHZdZA6uflEBl4s7","YqbGob96kFbTyioPF0U5","HoFe5XOrKLV0mVensY86","kE6alKnRMCMEhm5QDU1i","jJtfTL0um6G7VUiAAJth","83zZvxigyhwQRsPWD1NW","noSG7yWBaUhYRMVHJwhN","yMKISMn76dC054tu0bAT","KWe3xPf8Bk2sbdcrpMaW","VFBOINyEo9PuxuACPc7B","user_36vyTBMC0MgfKMz7UWjJ5vCZYSg","user_2zNxfZViQHY7nGYOIx4TehLxz7m","user_3FBQRlPKxMrcjhIjspm1NNl5cvQ","iofSFyEz1QYiLQ40yDhf","Gy8Cd4fJNWtVaguIAut4","U3RhhlQkQ6kcRC9KO5TJ","T10P5hp17FkiTp9Zj7g1","d7QMU1TlD9WTLDIn7sNw","15x3VDZcU1i7ttfZdIMN","Qns9qivbmp2FtXzobPi3","O0UwXLmN4EHjbH0gWvkC","p3XZO5CW1jhOyDzwot9q","7G9w7pMP0Bpr8QALHrZ7","l0cul0PQJ3fajiPxo92W","Qrj9UcLuPSc8Jp8Na92f","j3vFk7wIvEyF3hi9rI0O","C4oy6v2w82OKo40xbH8U","mm5NABBNHSAauHaeHOtf","xTlszJLxNxRYtwvh9nhg","u9pjHUZLEygcL4TQx8Uv","E9OeSsl57nPre3AmJUGE","2Xw64dXnnffXWQ0w11Jb","06k7cDBEcFv5wOExUf0I","708aFdM8adSpLeDYYHQr","OwZr4hgpY8L29nLuGpzy","ZQpyzlTbvEYbCfuUXQvM","RRqABem5RPUnoMC9P33Q","user_3DgHpsGASUTUTzr1jZBeSA3gjAp","9zprAEM2cL7PK3c19WoW","GN6kMVnW8C2UK7pQA0S6","viQEhxXIesX7po2uhxH7","user_39qMRF6vCef2XU8FPCGShzXaefa","user_2xdWvHQihYlCgBiAuHXlx2udhhR","ODg0MgHY0jtdImYXe6lY","kq21kinvtpnmUc8IEPMS","fBggzCXUVTQ31JFQojzS","wh60fbWjnjGmNfgiVkUP","jFJH6mi3FH4daIEoMQAj","T8cqVCpT9YJiJWOV2AKr","sAMTIFXpdYbpZz18sfc3","05Lw1pQG1kzRSA57OErZ","kb8JpqnE6qpA4osbB9nF","SVCyCsbkbKZJBlYEfLRT","oJp4fvznBlL3UN5sB1c4","user_3BhKxtsJ4bj37G9bh6I29eqqb6b","DG4GFv16f54GccB9O2TN","rOLn6b0bNfVxMcRHAzTj","QWFNk8ShUAqYOVPApLrZ","66jNKfZKRUiPrx5HHYRC","user_2ztoiw3E1swIeBBJXgyiOJxh7IV","IySFVcVghcY9niUhmRjT","DmRSRywMQtN2f9V72AxP","EMhZh5QgUCi6iMwxtssS","X7ypQFvx4XwO2NwJfUCu","mDMtontlxyMiKGB1Gnjv","user_31vIF2tbMwWqLFUxjqQlPsWcPcD","kYGA5g9EP4IyXpl28O98","siyfmWnpgWcM05YN0Pjf","W4RUB8wFq9wpPuvN3xRV","S5Ob3JAKsgGxbBkErmq6","FybvTzjjrrCbo8cnmmhF","7MO3vjXDpfGLXZwcN3Cj","Ru0Z1rrWi0yifOsau1Zm","ta8syN9Md1XqPfSPh0a7","fIF7pfXZXoEIVkBDxWNk","WULJxHH5TMT0jmTRxLAK","xSvRd6yCbzqOsPCZzfQL","k86YlJo4Hws9NHFnEgk6","user_2yHGfV4WhUmyOwHy7qXvZ6jXqdU","bIKVdsYq8DsLhLnI7Zc7","IyteVCrKLkpS8QG5GtIL","5ZfT3m6g7egkwOpahbZp","XB2HXuyZv3RpPpjWTbBQ","WtbVJCuP7fXzWto0kgUQ","user_34xXw6OU62vEvRro5OblpDb9Lt2","AKFvq2o9cSTeUpO1nI5C","8ueX0rUgbpZ3lUn7zllt","4IfE9NW2TO2f1oEeRHXP","OgTtith5x99CCwldqxuG","UEYIxuOtaiCuyDSjmNDf","user_3C6QdIJh5XOqfv2o9HwDe64Z7Ue","Kir9C1FZRmvZHKNow8aE","KLsGb7iYXWxpPXFnN6oM","3wkUL168XXgZ6imNirRX","T4xyA1LMSPnuXefKhYzA","MfkczdLoE7FKSr8AKySm","yd6YDTrn16oz5Rwx81ar","tw1PdUP2WOeWFiUMiILs","Jlkn11DtfcblqWpfzMlG","TxcYIrpmh7X41TBUzbMm","XKjGJjors3CNkQezXdr8","4ctdn9MHOis7TeOpgyv8","3RCKQ5Sysyc2PfvFAKpH","h9SZZ8JHkVychtCXUbXJ","GrPDJFY08CdmnBfn56xb","fZZfCJ2vN2yNZz1XvrxX","MPul94tg2zUOesc1RPKn","eWiBKGvsFnTmUdlGvV5z","gT12H2TK65eu8TzOFjDp","user_32FeWv8xkcrNrAqkBehwxNr04Jz","EUgsOpievB0aGE8mTF2j","ZpiIy48oU2NMwO5hN1Qg","SSrM3V3otzf4d3ciQLx2","user_33rh6IpXaXIdV3mqWZqcv3sfvKc","user_38bzThFfobqU2o9eoaLBtjiyz0L","Q5XRAT5b6RM37RKgZXEs","u4HPCPgBnDm68XzjS8mN","user_3GIsMaGgcZ5dM3tvQeLuhPNyp6J","user_33pKL4uhiNeifoiCMqjVBEKVwYG","tuml4BzSKDS9iHvRVI3k","user_3GQDr6qiNkqr6qboBHwlphb2mF3","JTjMvmqmXuLcGXNh2owp","xlk4p4XqgfkkzO2sjYOg","GXhVCMIVMiCOHHGlAIQJ","RbXlvUX4IZPnZ3DZREcR","user_38Zm4UNioFbhC6vmpKbSM4IaE3i","1NXLZXcpmELjVb4WQYgM","zWMUp7jN5fhbFqFtSVWy","7qwxrHXi61w2QKF8WQcq","oBUKScde0Dz5K25uuNXS","PiyptJyezj0zBIyl3pQt","BX05YBA4sd8aEsIr5sAq","3gqWz6wSyQ1X4ENqzpbG","4XnmeYkVjyYxBheKTxXN","v3ac9Ngji02PWeFk4aOA","m5Y9fYcKV750vVXMdI8v","WFvXZ28W4CFfypOr1RBa","IxPkMR1AoQfEpHp3tKN6","138GOHzDwGPEJdCiPFYq","wxuJ2VwGHWhjFdGJtbGo","REwNgSPNmskzK769hR7G","gQJtkDT1jGPglOdvdQB1","eFh9Td2uTnkIg8UhR5V1","7vxLV0t6FNhyyNCHhrDq","4cCj0f5X817dxwlkSAz7","cykRhg29t5ylkwUVrWXk","5Uvq5iuXkcYmKfkHqC5S","user_2iHxyTuJoF4fTMUZd3ne6uLAGi1","kExToimaadAzMn42YqrS","LYclPG95CnBVf5lxAV0q","jD2d73otbKmExPwZiNJe","75DRhxFvYuSGcXJ4xCbM","2zhXKQ2w8T1HibDJVJbK","2xiThm06PLV06U9qlcHF","tLKSBBttzEyFxxjwqQ0B","LEb2K7AQzbF7ebSl28c9","xugEKxbiNxBq5PeMpM9q","user_30yDW8BlbRhsuwI7YgKZVeUaPyI","alI6N06vJDG4BBdl7zud","user_3AXaSk4vxkUJqOBaa49KWmIuf7V","user_3GtYRAjdx2BhThuTfvoK3QHN7TV","user_3FaESmbOrngw5o2rI7tG0LKKkGI","user_37lJEGdl1EUt9n32OsIe98m27fS","nu8FHx5zVnQa9L3ojY90","zWvrhFkC1Mxmc82b0W7d","v7pGIGV5lQe11l5tTm1v","aOZVT3QEpXUCNqgCGaru","PUAiHDPrHE29rpcoBh6t","el8r9HVC9e2X6vOLGXXm","oBTbINXsfY4lZFLsVYex","9NIFUgdPzusBc7sUTUd1","xCdlRVACOCCKnJ3qtURc","user_3F5zzCjkTYENfz5Qtgu5M2bqoRQ","StSAmk
88awhqkOrv4s49m5","S9M06w18YnwHfMP2HeQk","CSHjjOnPao7nOBSU9uLi","W5qv4AbqZbXcvGh54RUZ","BXldUP6F388h8ypdZRRq","user_2w3XyBa2KUcQnDhdZAAdJuuJXND","6KFBWz8o1uPa0b83BjCa","qdGtP1BRuTIgd8MgG17m","s1MQB9ESgMVlZMma90FQ","hnNRt9obFRA5oDoiCxzz","tWb8YWkUpwMcDuqQBZw5","nIQ70Pe0eSFw0BCereqG","WqiGa6KOxE1T5IyXMja1","AhuD6irQh9fCfiK8QTtn","d2WEbwCAn6vPCu5YdBQt","dLSmfXzeLGoVmk6U6soH","LuxrYNApiRE2t8KuA89L","user_3FxHMqtzr0bBXu2AsnCx61RBc5i","Dcm0LLh8Vh2QHAMEhtJg","47KW8cTp2EOgkwUeWkt2","4qOFVjwg0VZn65EFop5M","OlQs6lo1V28U7wgdCgNw","d8vmt2AsmOE5m1fmTFZE","ZjeaJiTPgzNia3zWk6oc","jxxQRnmVzvHlY23k6A9z","user_3F0FeGd9LkHf4UaZ8gNQ6iU40Wa","z2Pnc5m76d5AGGkAknsA","E0qQWwwCEr1M6qDzsRGS","RT0SYvmuBQ2RqlJo6tkE","V1Pz4faEE2ZwhiFUkWgT","dh9Mkn3hjXVh9pPdtgth","VsmqJhAn8BTvHiSBmuIQ","user_35zntj0opDAzWAgd4vWCKyrXfVD","user_301ASZKfx5MzaH705S2SDyxWvwn","user_2yozBxPMkHxdqLlUOKiathVbizj","I4LsXLBlolRT8bYJ7AHH","user_3DrhhERxrWda2VmP9t5PT3xo10o","2NgTQXhWzPQltTLjvkL2","user_34nsCuWt6Rum1AYpSuCp0ht6wOG","BJoCu97L45vNmdNebSei","hNvMMgKsLEgb3Gt5MoWo","L06qZ6EkpjJmbNdYh1Dc","jkvj3qvCY0UyudW4DANR","wcnPC4zH3dsI1YsfgLmx","s0HH8D6D5qmeeB7MZbU0","oeNUMqFzxdbxpfjUO0WF","8YD1jOqI5r3WxoBdtF1W","PYl4byf0FMn2XHVSZywv","LVQBc07ZjCctIrjFe71V","HPsqU0eQGv5StKrhY9d6","fha2sCzx1Koc6bYR939G","vWzZa5Rdz2sZghukUojk","pOhJy8mdv1yTnFtlFNyP","vOXRUzVEhjv2pJDJChx7","IZGgFvrsgxoKIE9Lq3Wt","9o8Q65bqtYf1mYJz18mV","MFt8WBm07egdXFm6mh1J","MDIgqR9gmgtOMyAciwya","w03CEUH99dGzJ3paP6z3","0ErrvfDfC1gMkiWImlGW","user_32PJuxXsD9UG9aS4HWGiI3ftVEM","rZs0SIVNZZvS3uaDJlnR","odYerowDKp4TOHTf9jd5","9Kx53uYj0S0Z03h2l6jV","EcWQXCLtWQZs7WOE1xUI","57qxztMxgCPqdmElWJ8L","nRARk7hhgBfFKpAqEkmz","dc5qhATKFnBwe4s518p6","K5A3f1Viwja7r3Bc96aq","wcTWuNG7GgPhVBmdUsKp","TwMDNDkQZ0JKUadA0jEl","pBFRGMxpqVEFYO4uPOTW","4MtKRuF3tJgRFDUv5iiJ","RIt6mr8k5NLXTgwGUzpp","XHgnwvQslgUUTAsuMYWe","user_3FqHQxbxIp9OVnFwrsmUEL5oemy","VrPELPRdXgPz7HWIQZE1","user_3DPKamILBkcuo7NEQS8njIBlega","64plgimWDqL0Lj2fgFos","user_3FavHGOZkT65VY8a2j2mJjicXgV","LEr46NKsx0dNmYRH82xl","4aUNMPanSfNsvE0MQOrw","Kl6XAaE14YQ1ZVPh0o9G","user_3BQOOUnBFdDlmoaGbATQh2gIvI4","O80109tiz1w2vdmaNbtB","i96x0jrMit8keJqiBbPO","oJaDPvwj4mkrcJ3BDbTP","Ps5VWN9wO0ZlsatfMpQn","9ycBL4ehL08q3vR85EaR","user_3FPQ6S9dc83mKJki1LF1QolgKjL","VEreTY2gXawwicGroH0M","user_349bNPgOxPDTozwD5fQ44fs9edI","71usNmLLIYrYtD2n0g0c","user_3HPVBAT0ndClQUCDHBbOvMTrCi0","uWA1mB0bVSoyTmuWeMWc","WUIgUShzG2ijKyoP4yfc","user_3FGzGNw9QgPLE3cAbEB46VcM5tr","YQjj0F2mvFzqrXC3C5by","afXzCjffCAtop6Xzy5gK","user_2sXIeyn1QlDZ2QGxCYTrk4H71BM","FrMnmyHbBn7Nl04MDGbK","Zx4ZvPVlum9LqDzkbUTy","user_33aJd3YwMeKOPD4vOaIZFfUbZ5G","user_30GNlsFCc8wSwihGpkuEUnvG90o","B1eJtEiUdNZ02q6akCgv","xjk0rX5cWgAMHbCHrReA","eJeP8QBw3lbpDpqjiCJx","8Qqt6Fj34ZbyxRTomNdd","WBptmvjIeNHQOSpwzNmE","q1xBbK6k5ZoO7IwsD8fz","bE4tHOYFAnUDQrqnXVgG","rJ72WqloyJHIrLoq4KDM","SACYj6mjBqUf7afqPqrD","ni8PwEvtWU76e6SvRNuZ","p1Z91kofL7wZFIrijxNV","FnFgjDCuuWLCzzharAM3","T8hBo7NVXdan4OGEp5hY","ykfFuHYds47F603a2XYp","user_3GMFPNx7Zu7G0DkJJF2NCzTnVUp","Yd88n9JaTt4Ea2OBwIg8","lPgxePeYIHX9sPyU24Ea","ZyKc7gElGFMksSdgBUeO","5OaqfvFsMZ86VU10eX2z","YkCnW63FmJIkQie0IGkH","user_2z3ggqFBrS4LRsLAvQtFHJYPSqm","smhcW6lq5Qv4adIGx45H","K7z18HLOFGlBV1wFclVQ","auJ8J9kM9P0tVwA6YCuz","hlPDHeYjbhQxzARShOvh","qFSVoCaX0AwFPtZnzdoJ","5ejkLSlijY2tf7TrLPWK","WXRMjwu2PDmKP1lL0lCV","zgCZyWXxfgA9XTkvERXv","T5u6W6TOakckF1twMZ5P","HTB0AllCD7h5NC3BVmeV","7gx6eJTd0nxXOk7sYHc2","user_2iilAc414YZRD2o3Wj4OjdJRAeR","waUg5tq4ZLCM2hJ6c4RS","user_3EWshECYyVgGJzMZXxLkHPsMNmP","VEIoRYvjrFC8PUEpsD1b","SvPnFRE4icfSv90fUN3B","user_34CUAr3V2PYERfxbZEvxXjXZZoE","hyULQ5rEm2jgINidjUWM","uALEYptvCZX8cW49l1D9","Vafx5KdTRURgc87UyZek","MyMUlwazCMUwwqTiDS7G","HQsJGyrnxPn5klzjNf5e","hs4I7OAjKrb0R0UsBEGt","tzwJfIUwSvMEUSkBm80W","5ggA7vyQ8ePzQunxCJdj","LW68N2iPZagi4o0PN3ss","user_38UvVMbLHB8bYGKS63lsS3RgEce","xjYBgrY38cGKeUYG7YvI","qyf5XNZ0PQGZVmJgBK9q","PfJcjPdhXWCZgLOReMKy","HgsxUgaxreSQ87JhRbPS","HFi94hVMDtxMpklkfAk1","user_32MjLUiDLv6lKwxXRqefr4w8bmG","user_32tKqMRh9qqCCUpmn3CnIMVJh0v","fiqm7na1vzCisKv8TJPm","1YyxlMMGpQmMKQvYIvmA","erJDzD02qRhTV1seFdBC","user_39cwHtG51luJKioPydWJBLooD9c","ExaQeetCjfGol0YkaI6P","PHDXKNojVDBSQiPgT42h","syrXYa6zS2kca2Dee2CD","G8erPTtPPAwzdQN1J7md","user_37zbRKVYNvnVR5XscwU3J25y9S4","Ccal3vOvlRFhjMI4ZlUg","user_3ErTpIu6NjOYKXM3A8z37PRIdaG","sfY9ITb2fNS7f4y87Byu","3FFNfx59TbWkf1Xz3qmL","dzaoWv1fz4xjfbl3HbVy","lbTcXPembvYEiYHgG2ce","user_3GE4cxh64oD8PBrzVqtHAqEu62Q","W7uKPe2hjaKaxQ9uJrnC","fBmkMCrtUTFUOGDxJuDC","3wIoy4OgIvLUViomBWQK","rdlfibDwl0gWBaYNwvYy","mnG7oalTqVeSC3TBXXMg","E1XrzUC6eH3epdbwoQu7","user_3FrZ0qGEk1ZVjlT1LZNRcCfNJFH","GCKWoWtV73UeEOUxyKaX","X46M28M5oixpxw07j6h9","sa9otGRC01QAtSLLCJOJ","user_38yFEmKME0FLyFjLhUkt1oVuiXc","ydkAVuVraFM2Ou37V9Qy","eIIn7lzTH3Pu48vasig0","W4bBGheshvuS603Iibjo","uMh4OVjqU5jab50eIOBJ","TSsObwRDUogDZP9vxbaS","QgHdLakF317HXJkTX4Zk","o0TXWUhW9Wo69yhbmx5J","ratgp5l3JhmmIjIhbQcO","Ctqwb8bPapVjSGR5L7yL","user_2zR1tsyWnyWUq8z48mUIBhWKA82","KjTPuWwboMLH7wfZK7Ub","AGxAQPwFnvcXq9pwcqW1","1pVvLnzM0vmoDp0HQr3n","SclrfD01uTKMJAstcWy1","uhbmgFrvHFllgLB146yd","3TGrTSp6cTBpBBfF5GG6","UpTqxCpvVzQPsUm7Mm5U","user_39bZcQQ3eB4Rlb8X7seIDau71ED","user_3G7siM2OPuDPp6PROGWRvuwKOZS","HiiSBZ6hkbsCX1FV9eRx","6y1iBKI2nZ41DJ9ESzdz","v9JPlCvoQeS4fOEEiVgG","Npm7jDrcuWzB6RpWY1oj","oK9F5E6WMd7NyJebwYIs","DQFh7ZiOSOYNpNZksqMx","user_3D3SjlId7Cdej3LofijQXnbqJ3D","KepHfiImDv8sBCw8Wlxs","yNkIax4FZC8m52dHGCgq","EtWT4EjycXyeFgXV42tF","oUBdhz0vRKcYmlll6vZh","IVTRHQNS8gf0caau9p7k","user_3CbIAkdD6i4lo1I3y5eUCgaJcOw","mhqalF9BNOIvDuyOSZxY","YPL3V5TlKzkfLO8QdtGC","F3hHwwbax84CSoLGEUva","LGYA61xnbIZptiUKCm5F","oxW8GpIwy4xsHt8EZwr4","vt29a4oMRbduAj7PPpwM","ReHYpIPskDioNYE3NeHb","KVfFdC8dejsgnfm4Qi6S","sBf9MFJ0LZHciMxitZec","NlLmwtlRl0hBooqh1rKq","rg9ixJtizNaIXx5wD2wu","user_3D0PUnUkhCYOsD4Hsd6Lq4u8y51","user_3EIOHuXZi68jootYA9Zexo0FBV1","ngom2ESwfoBKMNmz3eWH","OYSTGrsPPqpib82Iqatk","s8EuxzJMMoTySnkilcZe","kZWS3Vbmn0k5twdVqeoJ","iNeS1hJtuGsBKcDB4f9s","cCFKTjVOLHG4VYfa2cWh","cCRr0LHhe3f28frJFyAd","NmKsKdIOBOCilcq22oMb","C84fO8bGbvsAZC0Jeowp","QkKH4hQ9JE9crbZgYBP3","user_33nKsJUYiSXaDAympdEGfH9bqsU","4UxLp6sub6I6RYKwAIzD","HiTSQ8WCO3rIZ3JhXj7E","9pljvBsBfTBRu09u2hAt","user_3GddoALxLg6Zw5336x6tixXTV1l","gm0pIxgaytK11QgVCNhB","nsQgvykrCy9acACo2nr4","ndSJqKfzEZACHQQiMclZ","4WWSfGvgW9xYegkZrEx8","kS6YlDOfYyxF8xAcDEH6","uuwVJ1TYxNZ7wfxRuP3p","WrcHrNQM7O7sbzkhitun","nKxZKfo2zW01ytDTO01s","PM0zSUmQVVhxCWmL4sP3","XHolrKUIZ6oMievnVegQ","jpbmQdKYztQ6mJLz5jhJ","user_2zyrZVlGq17guNphbNt1bbnexoG","EWFH7gwDzobnIG83rIvJ","Eo7Lw257odtNKCXBsOsX","user_3Cw9yX29j93IGIQ0DB5Jd8u2NdL","MXn04KpD16NInHv18ki5","4noL0kyTS3xeUEQw0TAn","Q8U91TNefYILJGou59VX","79eM9YXLxyLUni0EeDOw","ZLrbcAHUfVhOTwW4ttPK","u81xo6EjnCGZlF3WOaUr","user_36sUeqBdqt9SvYYPQTUGmgpbsCj","7gXA1lmfjr60Gmp5tHF8","0S65Z5hlDyrJSMJgaON7","fstW5tpQHXwZbEGtGnEJ","qM7wL0OrDLMAakr0RDUt","pd5CMM3Kejgqhe2110VL","0izrwIHmGuj
88DfdvE9iV8","3ua91Lmc5VDODG2mmiTC","z3VorUWsvntdpOiMf3W2","BcZd8Iya4ss10vNQsma3","xMhjVv5UbYQiPWPQn9sL","96PRgU1wBi5mh740NRFC","lDHidjB0tuDSYfTsNbQm","B6TGPEMmNAdcHWThaWSL","kF2FmF065B2JCwwBW48i","AQhHzSnc00YHxhUc6EIK","UppUzfi5YwHbB0IHTgJu","I4EsE8u1vrk3Og410tjI","dSXCWmrclraRpwdCNHDh","n67Nyak9BI1vBbNoCStB","lVkz8a4JpQCpNtzygWhI","qZMutxnd9jSNblUvM3aY","zUYEBR46VWjJIPjKgcqC","oyphaAIZqffVUTwDRmLV","dEmrwti6qSUolFCIIvXV","fE0wRUToc1o8vA3m1oI5","user_3FJW8LeNzoCSxXrtGHvyh5TO1ua","RyxU9jpHlPfFsayvawup","kA6Sps1QIKnARszfCUk1","XDnvizVsZ5DuWE4F7n5a","user_39jbUaX1g9pIb5INE09aCWdAj7T","FOAi1mhNVfmnXItWMZfv","FYb9UWtZUix6b2btEDSF","vmdBTeKMSW5uTPD4Y1Yp","IYoWru7VBsSWOdwdlTLI","user_34hUSh4GIeSKbRoZ9NVUHJdJISH","sxDic2liEu1MpmfYMNde","IDVPnawUvUBaqVJvHb3d","KmcnmTbmiuhl3vPUirrQ","COo51B5iHuBh7iPbqvsN","user_313tbBcomMAnKtik3bcoBaCDelh","Rz4soFN4ELiGP941aekZ","UXlNNSziqLK8il0EXxx7","AIgrrqrOAHB4mVgBB37H","NrrwujmahARe5UuOHilo","user_37oC9mrKizOpc0bNJvRzpnzjRd2","user_33kDc33mJG6aAAI1akaEdhEjZ2f","5M29fYKAvlunVKIJgl89","kLTGFVQP7x3lqy5LQq4W","sNptoAtylq5r42T46hYQ","XGWxO8qr4NVMkbpQjSJe","oMa8PuWq7awrqNfeEgz2","GgrE3dGEkgdgus6IniHw","user_3H7jBa5cOi1pSszsiCXBFqGMFTp","user_38SBiUXJqutGMvRmFVWFfKPpixN","XfiH3mLomAEcMsJWFPtv","Np4ahMOOyOe8by8e7NlD","tWBjgci3pc2Pi2lhod8Y","user_3HqN1FI9oyRFi1sDJDS7vlUC9gY","user_3HZm8XinFg3bTLT0UNuXXqgiLD8","user_3HZsa9Wnqcw1QaXbKNLY62k98Nt","user_3HZw7k26I8XsBv9JzlPdskbQwly","user_3HcgBgFMldM10UcpvcaBjhGcHtA"]);function iy(e){return!!e&&iv.has(e)}e.s(["isSeedance25SegmentBUser",()=>iy],794761);let iw=["byte-plus-seedance-2-5:text2video","byte-plus-seedance-2-5:image2video","byte-plus-seedance-2-5:element2video","byte-plus-seedance-2-5:extendVideo","byte-plus-seedance-2-5:modifyVideo"],iN=new Date("2026-08-05T07:00:00Z"),iT=new Date("2026-08-14T06:59:00Z");function iC(e){let t=e?.videoReference?.metadata?.duration,i="number"==typeof e?.duration?e.duration:"number"==typeof t?(0,eD.seedance25EditOutputDurationS)(t):null;return null!==i&&!(i<1)&&!(i>5)&&e?.resolution==="480p"&&(e?.videoReference?.metadata?.duration??0)+(e?.video?.metadata?.duration??0)+(0,eD.sumSeedance25InputVideoSeconds)(e?.visualReferences??[])<=5}let ij=new Date("2026-08-05T07:00:00Z"),iI=new Date("2026-08-07T15:00:00Z"),iS=new Date("2026-08-17T06:59:00Z"),iP={id:"unlimited-seedance-2-5-early-bird-wonder",name:"Unlimited Seedance 2.5 (Early Bird)",modelName:"Seedance 2.5",type:"unlimited",startAt:iN,endAt:iS,description:"Unlimited video generations (5s, 480p, input video up to 5s) until August 16, 11:59 PM PT.",matchingCapabilities:iw,isEligible:async e=>!!iw.includes(e.businessType)&&!!eR(e.user)&&!!ez(e.user,{startAt:ij,endAt:iI})&&new Date<=iS,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!iw.includes(n)||!eR(i)||new Date>iS||!ez(i,{startAt:ij,endAt:iI})||!iC(t))return null;let{totalCredits:a}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}},ik=new Date("2026-08-14T07:00:00Z"),i_=new Date("2026-08-21T06:59:00Z");function iA(e=new Date){return e>=ik&&e<=i_}function iD(e,t){if(!eR(e))return!1;let i=function(e){let t=e.subscription_upgraded_at??e.subscription_created_at;if("number"!=typeof t)return null;let i=new Date(1e3*t);return i>i_?null:new Date(i.getTime()+6048e5)}(e);return null!==i&&t<=i}function iE(e,t=new Date){return!!eR(e)&&!!iy(e.id)&&iD(e,t)}let iM={id:"unlimited-seedance-2-5-segment-b-wonder",name:"Unlimited Seedance 2.5",modelName:"Seedance 2.5",type:"unlimited",startAt:ik,endAt:new Date("2026-08-28T06:59:00Z"),upgradeDeadline:i_,description:()=>(function(e=new Date){return iA(e)?"Upgrade before August 20th and enjoy unlimited Seedance 2.5 generations (5s, 480p, input video up to 5s) for the next 7 days.":void 0})(),capabilities:iw,requiredTiers:[F.SubscriptionType.Wonder],isTargetedTo:e=>(function(e,t=new Date){return!!iy(e.id)&&(iA(t)||iD(e,t))})(e),isEligible:async e=>!!iw.includes(e.businessType)&&iE(e.user),match:async(e,t)=>{let{user:i,businessType:n}=e;if(!iw.includes(n)||!iE(i)||!iC(t))return null;let{totalCredits:a}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}},iF={id:"unlimited-seedance-2-5-wonder",name:"Unlimited Seedance 2.5",modelName:"Seedance 2.5",type:"unlimited",description:"Unlimited video generations (5s, 480p, input video up to 5s) until August 13, 11:59 PM PT.",startAt:iN,endAt:iT,capabilities:iw,requiredTiers:[F.SubscriptionType.Wonder],isEligible:async e=>!!iw.includes(e.businessType)&&!!eR(e.user)&&new Date<=iT,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!iw.includes(n)||!eR(i)||new Date>iT||!iC(t))return null;let{totalCredits:a}
88=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}};e.s(["isSeedance25SegmentBUpgradeWindowOpen",()=>iA,"unlimitedSeedance25EarlyBirdWonder",0,iP,"unlimitedSeedance25SegmentBWonder",0,iM,"unlimitedSeedance25Wonder",0,iF],719666);var iU=e.i(199432);let iL=new Date("2026-08-24T07:00:00Z"),iO=new Date("2026-09-01T06:59:00Z"),iB="Aug 31",iR="Wan 3.0",iV=`Upgrade to Pro/Wonder for unlimited Wan 3.0 generations until ${iB}st.`,iW=`You're eligible for unlimited Wan 3.0 standard 480P (up to 5s). Upgrade to Wonder for unlimited Prime 480P (up to 5s) generations until ${iB}st.`;function iz(e){return({user:t,businessType:i,isSignedOut:n})=>{if(void 0===i||!iq.includes(i))return e;if(n)return iV;if(t&&!iZ(t))return iK(t)?iW:iV}}let iH=["wan3-0:text2video","wan3-0:image2video","wan3-0:reference-video","wan3-0:modify-video"],iG=[...iH,"wan3-0-prime:text2video","wan3-0-prime:image2video","wan3-0-prime:reference-video","wan3-0-prime:modify-video"],iq=iG;function iK(e){return!!eB(e,eO)&&new Date<=iO}function iZ(e){return!!eR(e)&&new Date<=iO}function iX(e,t,i){if(!i.includes(e)||!(t?.resolution==="480p"&&(e.endsWith(":modify-video")||"number"==typeof t?.duration&&!(t.duration<1)&&!(t.duration>5))&&(0,iU.sumReferenceDurationSeconds)((t?.visualReferences??[]).filter(e=>"video"===e.type))+(0,iU.sumReferenceDurationSeconds)(t?.videoReference?[t.videoReference]:[])<=5))return null;let{totalCredits:n}=(0,S.getCapability)(e).getBusinessDetails(t);return{originalCredits:n}}let iQ={id:"wan3Launch-unlimited-pro",name:`Unlimited ${iR}`,modelName:iR,type:"unlimited",description:iz("Unlimited 5-second Wan 3.0 standard videos in 480p until August 31, 11:59 PM PT."),startAt:iL,endAt:iO,capabilities:[...iH],requiredTiers:[F.SubscriptionType.Infinite],publiclyAdvertised:!0,isEligible:async e=>!!iH.includes(e.businessType)&&iK(e.user),match:async(e,t)=>iK(e.user)?iX(e.businessType,t,iH):null},iY={id:"wan3Launch-unlimited-wonder",name:`Unlimited ${iR}`,modelName:iR,type:"unlimited",description:iz("Unlimited 5-second Wan 3.0 standard & prime videos in 480p until August 31, 11:59 PM PT."),startAt:iL,endAt:iO,capabilities:[...iG],requiredTiers:[F.SubscriptionType.Wonder],publiclyAdvertised:!0,isEligible:async e=>!!iG.includes(e.businessType)&&iZ(e.user),match:async(e,t)=>iZ(e.user)?iX(e.businessType,t,iG):null};e.s(["WAN3_LAUNCH_CAMPAIGN_ID_PREFIX",0,"wan3Launch-unlimited-","WAN3_LAUNCH_END",0,iO,"WAN3_LAUNCH_START",0,iL,"wan3LaunchUnlimitedPro",0,iQ,"wan3LaunchUnlimitedWonder",0,iY],413278);let iJ=["kling-3-omni:text2video","kling-3-omni:image2video","kling-3-omni:element2video","kling-3-omni:modify-video","kling-3-omni:reference-video"],i$=["kling-v3:text2video","kling-v3:image2video"],i0=["grok-imagine:text2video","grok-imagine:image2video"],i2={id:"unlimited-kling-3-omni",name:"Unlimited Kling 3",type:"unlimited",startAt:new Date("2026-02-04T08:00:00Z"),endAt:new Date("2026-02-21T07:59:00Z"),description:"Unlimited video generation (≤ 5s) until Feb 20, 2026",match:async(e,t)=>{let{user:i,businessType:n}=e;if(!eR(i)||!iJ.includes(n))return null;let a=t?.duration;if("number"!=typeof a||a<3||a>5)return null;let{totalCredits:r}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:r}}},i1={id:"unlimited-kling-v3",name:"Unlimited Kling 3.0",type:"unlimited",startAt:new Date("2026-02-04T08:00:00Z"),endAt:new Date("2026-02-21T07:59:00Z"),match:async(e,t)=>{let{user:i,businessType:n}=e;if(!eR(i)||!i$.includes(n))return null;let a=t?.duration;if("number"!=typeof a||a<3||a>5)return null;let{totalCredits:r}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:r}}},i5={id:"unlimited-grok-imagine",name:"Unlimited Grok Imagine",type:"unlimited",startAt:new Date("2026-02-02T08:00:00Z"),endAt:new Date("2026-02-17T07:59:00Z"),description:"Unlimited video generation (≤ 5s) until Feb 16, 2026",match:async(e,t)=>{let{user:i,businessType:n}=e;if(!eR(i)||!i0.includes(n))return null;let a=t?.duration;if("number"!=typeof a||a<1||a>5)return null;let{totalCredits:r}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:r}}},i3=["byte-plus-seedream-5-lite:text2image","byte-plus-seedream-5-lite:image2image"],i6=new Date("2026-02-24T18:00:00Z"),i4=new Date("2026-03-10T18:00:00Z"),i8=new Date("2026-03-03T18:00:00Z");function i7(e,t){let{businessType:i}=e;if(!i3.includes(i))return null;let{totalCredits:n}
88=(0,S.getCapability)(i).getBusinessDetails(t);return{originalCredits:n}}let i9={id:"unlimited-seedream-5-lite-wonder",name:"Unlimited Seedream 5.0 Lite",modelName:"Seedream 5.0 Lite",type:"unlimited",description:"Unlimited image generation with Seedream 5.0 Lite, until March 10, 2026.",startAt:i6,endAt:i4,match:async(e,t)=>!eR(e.user)||new Date>i4?null:i7(e,t)},ne=["byte-plus-seedream-5-pro:text2image","byte-plus-seedream-5-pro:image2image"],nt=new Date("2026-07-08T07:00:00Z"),ni=new Date("2026-07-22T06:59:00Z"),nn=new Date("2026-07-15T06:59:00Z");function na(e,t){let{businessType:i}=e;if(!ne.includes(i))return null;let n=t?.resolution;if(n&&"1K"!==n)return null;let a=t?.references;if(Array.isArray(a)&&a.length>0){let e=1===a.length&&"character"===a[0].type,t=a.length<=4&&a.every(e=>"image"===e.type);if(!e&&!t)return null}let{totalCredits:r}=(0,S.getCapability)(i).getBusinessDetails(t);return{originalCredits:r}}let nr={id:"unlimited-seedream-5-pro-wonder",name:"Unlimited Seedream 5.0 Pro",modelName:"Seedream 5.0 Pro",type:"unlimited",description:"Unlimited image generation with Seedream 5.0 Pro, until July 21, 2026.",startAt:nt,endAt:ni,capabilities:ne,requiredTiers:[F.SubscriptionType.Wonder],isEligible:async e=>!!ne.includes(e.businessType)&&!!eR(e.user)&&new Date<=ni,match:async(e,t)=>!eR(e.user)||new Date>ni?null:na(e,t)},ns={id:"unlimited-seedream-5-pro-infinite",name:"Unlimited Seedream 5.0 Pro",modelName:"Seedream 5.0 Pro",type:"unlimited",description:"Unlimited image generation with Seedream 5.0 Pro, until July 14, 2026.",startAt:nt,endAt:nn,capabilities:ne,requiredTiers:[F.SubscriptionType.Infinite],isEligible:async e=>!!ne.includes(e.businessType)&&!!eB(e.user,eO)&&new Date<=nn,match:async(e,t)=>!eB(e.user,eO)||new Date>nn?null:na(e,t)},nl=["nano-banana-2-lite:text2image","nano-banana-2-lite:image2image"],no=new Date("2026-07-05T00:00:00Z"),nd=new Date("2026-07-20T06:59:00Z"),nc=new Date("2026-07-13T06:59:00Z");function nu(e,t){let{businessType:i}=e;if(!nl.includes(i))return null;let{totalCredits:n}=(0,S.getCapability)(i).getBusinessDetails(t);return{originalCredits:n}}let np={id:"unlimited-nano-banana-2-lite-wonder",name:"Unlimited Nano Banana 2 Lite",modelName:"Nano Banana 2 Lite",type:"unlimited",description:"Unlimited image generation with Nano Banana 2 Lite, until July 19, 2026.",startAt:no,endAt:nd,capabilities:nl,requiredTiers:[F.SubscriptionType.Wonder],isEligible:async e=>!!nl.includes(e.businessType)&&!!eR(e.user)&&new Date<=nd,match:async(e,t)=>!eR(e.user)||new Date>nd?null:nu(e,t)},nm={id:"unlimited-nano-banana-2-lite-infinite",name:"Unlimited Nano Banana 2 Lite",modelName:"Nano Banana 2 Lite",type:"unlimited",description:"Unlimited image generation with Nano Banana 2 Lite, until July 12, 2026.",startAt:no,endAt:nc,capabilities:nl,requiredTiers:[F.SubscriptionType.Infinite],isEligible:async e=>!!nl.includes(e.businessType)&&!!eB(e.user,eO)&&new Date<=nc,match:async(e,t)=>!eB(e.user,eO)||new Date>nc?null:nu(e,t)},nx=["nano-banana-2:text2image","nano-banana-2:image2image"],ng=["1K","2K","4K"],nh=new Date("2026-02-26T22:30:00Z"),nb=new Date("2026-03-12T22:30:00Z"),nf=["qwen-image-2:text2image","qwen-image-2:image2image","qwen-image-2-pro:text2image","qwen-image-2-pro:image2image"],nv=new Date("2026-03-16T08:00:00Z"),ny=new Date("2026-04-01T07:59:00Z"),nw=new Date("2026-03-24T07:59:00Z"),nN=["byte-plus-seedance-2:text2video","byte-plus-seedance-2:image2video","byte-plus-seedance-2:element2video","byte-plus-seedance-2:extendVideo","byte-plus-seedance-2:modifyVideo","byte-plus-seedance-2-fast:text2video","byte-plus-seedance-2-fast:image2video","byte-plus-seedance-2-fast:element2video","byte-plus-seedance-2-fast:extendVideo","byte-plus-seedance-2-fast:modifyVideo"],nT=new Date("2026-04-09T07:00:00Z"),nC=new Date("2026-04-24T06:59:00Z"),nj=["wan2-7:text2video","wan2-7:image2video","wan2-7:reference-video","wan2-7:modify-video","wan2-7:extend-video"],nI=new Date("2026-04-03T07:00:00Z"),nS=new Date("2026-04-19T06:59:00Z"),nP=["wan2-7-image:text2image","wan2-7-image:image2image","wan2-7-image-pro:text2image","wan2-7-image-pro:image2image"];function nk(e,t){let{businessType:i}=e;if(!nP.includes(i))return null;let n=t?.imageCount;if("number"!=typeof n||n<1)return null;let{totalCredits:a}
88=(0,S.getCapability)(i).getBusinessDetails(t);return{originalCredits:a}}let n_=new Date("2026-04-12T07:00:00Z"),nA=new Date("2026-04-19T06:59:00Z"),nD=new Date("2026-04-26T06:59:00Z"),nE=["minimax-h3:text2video","minimax-h3:image2video","minimax-h3:element2video"],nM=new Date("2026-07-30T07:00:00Z"),nF=new Date("2026-08-06T06:59:00Z"),nU={id:"unlimited-h3-wonder",name:"Unlimited MiniMax H3",modelName:"MiniMax H3",type:"unlimited",description:"Unlimited video generation with MiniMax H3 (5s), until August 5, 2026.",startAt:nM,endAt:nF,capabilities:nE,requiredTiers:[F.SubscriptionType.Wonder],isEligible:async e=>!!nE.includes(e.businessType)&&!!eR(e.user)&&new Date<=nF,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!nE.includes(n)||!eR(i)||new Date>nF||5!==t?.duration)return null;let{totalCredits:a}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}},nL=["flux-3-video:text2video","flux-3-video:image2video","flux-3-video:extendVideo"],nO=new Date("2026-08-06T07:00:00Z"),nB=new Date("2026-08-14T06:59:00Z"),nR=[ib,t0,tz,tO,t_,tA,tD,tE,iQ,iY,iM,iP,iF,{id:"unlimited-flux-3-wonder",name:"Unlimited FLUX 3",modelName:"FLUX 3",type:"unlimited",description:"Unlimited video generation with Flux 3 (5s, 720p), until August 13, 2026.",startAt:nO,endAt:nB,capabilities:nL,requiredTiers:[F.SubscriptionType.Wonder],isEligible:async e=>!!nL.includes(e.businessType)&&!!eR(e.user)&&new Date<=nB,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!nL.includes(n)||!eR(i)||new Date>nB||t?.duration!==5||t?.resolution!=="hd")return null;let{totalCredits:a}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}},nU,np,nm,e8,e7,eJ,{id:"unlimited-seedance-2-wonder",name:"Unlimited Seedance 2.0",modelName:"Seedance 2.0",type:"unlimited",description:"Unlimited creation applies only to videos up to 5 seconds and 720p, until April 23, 2026.",startAt:nT,endAt:nC,isEligible:async e=>!!nN.includes(e.businessType)&&!!eR(e.user)&&new Date<=nC,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!nN.includes(n)||!eR(i)||new Date>nC||"number"!=typeof t?.duration||t.duration<1||t.duration>5||t?.resolution!=="480p"&&t?.resolution!=="720p")return null;let{totalCredits:a}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}},{id:"unlimited-wan2-7-wonder",name:"Unlimited Wan 2.7 Video",modelName:"Wan 2.7",type:"unlimited",description:"Unlimited video generation with Wan 2.7 (≤ 5s), until April 19, 2026.",startAt:nI,endAt:nS,isEligible:async e=>!!nj.includes(e.businessType)&&!!eR(e.user)&&new Date<=nS,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!nj.includes(n)||!eR(i)||new Date>nS)return null;let a=t?.duration;if("number"!=typeof a||a<1||a>5)return null;let{totalCredits:r}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:r}}},{id:"unlimited-wan2-7-image-wonder",name:"Unlimited Wan 2.7 Image",modelName:"Wan 2.7 Image",type:"unlimited",description:"Unlimited image generation with Wan 2.7 Image, until April 26, 2026.",startAt:n_,endAt:nD,isEligible:async e=>!!nP.includes(e.businessType)&&!!eR(e.user)&&new Date<=nD,match:async(e,t)=>{let{user:i,businessType:n}=e;return!nP.includes(n)||!eR(i)||new Date>nD?null:nk(e,t)}},{id:"unlimited-wan2-7-image-infinite",name:"Unlimited Wan 2.7 Image",modelName:"Wan 2.7 Image",type:"unlimited",description:"Unlimited image generation with Wan 2.7 Image, until April 19, 2026.",startAt:n_,endAt:nA,isEligible:async e=>!!nP.includes(e.businessType)&&!!eB(e.user,eO)&&new Date<=nA,match:async(e,t)=>{let{user:i,businessType:n}=e;return!nP.includes(n)||!eB(i,eO)||new Date>nA?null:nk(e,t)}},{id:"unlimited-qwen-image-2-wonder",name:"Unlimited Qwen Image 2",modelName:"Qwen Image 2",type:"unlimited",description:"Unlimited image generation with Qwen Image 2, until March 31, 2026.",startAt:nv,endAt:ny,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!nf.includes(n)||!eR(i)||new Date>ny)return null;let{totalCredits:a}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}},{id:"unlimited-qwen-image-2-infinite",name:"Unlimited Qwen Image 2",modelName:"Qwen Image 2",type:"unlimited",description:"Unlimited image generation with Qwen Image 2, until March 23, 2026.",startAt:nv,endAt:nw,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!nf.includes(n)||!eB(i,eO)||new Date>nw)return null;let{totalCredits:a}
88=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:a}}},{id:"unlimited-nano-banana-2-wonder",name:"Unlimited Nano Banana 2",modelName:"Nano Banana 2",type:"unlimited",description:"Unlimited image generation with Nano Banana 2 (1K, 2K, 4K), until March 12, 2026.",startAt:nh,endAt:nb,match:async(e,t)=>{let{user:i,businessType:n}=e;if(!nx.includes(n))return null;let a=t?.resolution;if(a&&!ng.includes(a)||!eR(i))return null;let{totalCredits:r}=(0,S.getCapability)(n).getBusinessDetails(t);return{originalCredits:r}}},i9,{id:"unlimited-seedream-5-lite-infinite",name:"Unlimited Seedream 5.0 Lite",modelName:"Seedream 5.0 Lite",type:"unlimited",description:"Unlimited image generation with Seedream 5.0 Lite, until March 3, 2026.",startAt:i6,endAt:i8,match:async(e,t)=>!eB(e.user,eO)||new Date>i8?null:i7(e,t)},nr,ns,i2,i1,i5];e.s(["unlimitedCampaigns",0,nR,"unlimitedGrokImagine",0,i5,"unlimitedKling3Omni",0,i2,"unlimitedNanoBanana2LiteInfinite",0,nm,"unlimitedNanoBanana2LiteWonder",0,np,"unlimitedSeedream5LiteWonder",0,i9,"unlimitedSeedream5ProInfinite",0,ns,"unlimitedSeedream5ProWonder",0,nr],633699),e.i(806369);let nV=[...E,...nR,{id:"pixverse-c1-limited-discount-202607",name:"PixVerse C1 Limited Offer",modelName:"PixVerse C1",type:"discount",description:"Limited-time offer: generate one PixVerse C1 video (720p, with audio) for 40 credits.",startAt:eS,endAt:eP,matchingCapabilities:eC,match:async(e,t,i)=>{let{user:n,businessType:a}=e;if(i?.isTeamWorkspace||n.subscription_active||!eC.includes(a))return null;let r=new Date;if(r<eS||r>eP)return null;let s=n.campaigns?.pixverse_c1_discount?.quota_used??0;if(s>=1)return null;if(!t)return{unitCredits:40,amount:40,perUserQuota:{quotaPath:{total:eI,used:ej},resourceType:"video",quotaConsumed:1,remainingQuota:1-s,totalQuota:1}};let l=t.quantity;if(1!==l||"720p"!==t.resolution||!0!==t.generateAudio)return null;let o=t.duration;return"number"!=typeof o||o<3||o>5?null:{unitCredits:40,amount:40*l,perUserQuota:{quotaPath:{total:eI,used:ej},resourceType:"video",quotaConsumed:l,remainingQuota:1-s,totalQuota:1}}},isEligible:async(e,t)=>{if(t?.isTeamWorkspace||e.user.subscription_active||!eC.includes(e.businessType))return!1;let i=new Date;return!(i<eS)&&!(i>eP)&&(e.user.campaigns?.pixverse_c1_discount?.quota_used??0)<1}},{id:"h3-max-launch-discount-202609",name:"MiniMax H3 Max Launch Discount",modelName:"MiniMax H3 Max",type:"discount",description:"Launch offer: generate with MiniMax H3 Max for less, through September 15.",startAt:w,endAt:N,matchingCapabilities:v,match:async(e,t)=>(function(e,t,i=new Date){if(!function(e=new Date){let t=e.getTime();return w.getTime()<=t&&t<=N.getTime()}(i)||!v.includes(e)||!t)return null;let n=t.resolution;if("string"!=typeof n)return null;let a=y[n];if(void 0===a)return null;let r=t.duration;if("number"!=typeof r||r<=0)return null;let s=t.quantity,l=a*r;return{unitCredits:l,amount:l*("number"==typeof s?s:1)}})(e.businessType,t),isEligible:async e=>v.includes(e.businessType)},{id:"h3-max-turbo-launch-discount-202609",name:"MiniMax H3 Max Turbo Launch Discount",modelName:"MiniMax H3 Max Turbo",type:"discount",description:"Launch offer: generate with MiniMax H3 Max Turbo for less, through September 15.",startAt:j,endAt:I,matchingCapabilities:T,match:async(e,t)=>(function(e,t,i=new Date){if(!function(e=new Date){let t=e.getTime();return j.getTime()<=t&&t<=I.getTime()}(i)||!T.includes(e)||!t)return null;let n=t.resolution;if("string"!=typeof n)return null;let a=C[n];if(void 0===a)return null;let r=t.duration;if("number"!=typeof r||r<=0)return null;let s=t.quantity,l=a*r;return{unitCredits:l,amount:l*("number"==typeof s?s:1)}})(e.businessType,t),isEligible:async e=>T.includes(e.businessType)},io,L,{id:"reve-2-1-launch-discount-202607",name:"Reve 2.1 Launch Discount",modelName:"Reve 2.1",type:"discount",description:"Launch offer: generate with Reve 2.1 at 120 credits/image for the first 30 days.",startAt:e_,endAt:eA,matchingCapabilities:ek,match:async(e,t)=>ek.includes(e.businessType)?function(e,t=new Date){return!function(e=new Date){let t=e.getTime();return e_.getTime()<=t&&t<=eA.getTime()}(t)?null:{unitCredits:120,amount:120*e}}(t?.quantity??1):null,isEligible:async e=>ek.includes(e.businessType)},{id:"seedance-2-5-1080p-discount-202608",name:"Seedance 2.5 1080p Discount",modelName:"Seedance 2.5",type:"discount",description:"Limited offer: render Seedance 2.5 at 1080p for less, through September 17.",startAt:eF,endAt
88:eU,matchingCapabilities:eE,match:async(e,t)=>eE.includes(e.businessType)&&t?function(e,t,i=new Date){if(!function(e=new Date){let t=e.getTime();return eF.getTime()<=t&&t<=eU.getTime()}(i))return null;let n=function(e){if(e.resolution!==eM)return null;let t=e.videoReference?.metadata?.duration,i="number"==typeof e.duration?e.duration:"number"==typeof t?(0,eD.seedance25EditOutputDurationS)(t):null;if(null===i||i<=0)return null;let n=(e.videoReference?.metadata?.duration??0)+(e.video?.metadata?.duration??0)+(0,eD.sumSeedance25InputVideoSeconds)(e.visualReferences??[]);return(0,eD.computeSeedance25UnitCredits)(eM,i,n,{rateNoVideo:233.28,rateWithVideo:136.08})}(e);return null===n?null:{unitCredits:n,amount:n*t}}(t,t.quantity??1):null,isEligible:async e=>eE.includes(e.businessType)},p,eb];async function nW(e,t,i){if(!e.user)return{success:!1};for(let n of nV)if(nH(n))switch(n.type){case"free_quota":{let a=await n.match(e,t,i);if(!a)break;return{success:!0,type:"free_quota",detail:{...a,id:n.id,name:n.name,type:"free_quota",description:n$(n,{...e,businessParams:t})}}}case"discount":{let a=await n.match(e,t,i);if(!a)break;return{success:!0,type:"discount",detail:{...a,id:n.id,name:n.name,type:"discount",description:a.description??n$(n,{...e,businessParams:t})}}}case"unlimited":{if(i?.isTeamWorkspace||i?.enableUnlimited!==!0)break;let a=await n.match(e,t,i);if(!a)break;return{success:!0,type:"unlimited",detail:{...a,id:n.id,name:n.name,type:"unlimited",description:n$(n,{...e,cohorts:i?.cohorts,businessParams:t})}}}}return{success:!1}}function nz(e){let t=new Date;return(e?nV.filter(t=>e.includes(t.type)):nV).some(e=>(!e.startAt||e.startAt<=t)&&(!e.endAt||e.endAt>=t))}function nH(e){let t=new Date;return(!e.startAt||e.startAt<=t)&&(!e.endAt||e.endAt>=t)}function nG(e,t){let i=t?.now??new Date;for(let n of nV){if(!n.modelListTag||t?.isTeamWorkspace&&n.excludesTeamWorkspaces||n.startAt&&n.startAt>i)continue;let a=n.upgradeDeadline??n.endAt;if(a&&a<i)continue;let r=n.matchingCapabilities??n.capabilities;if(r?.includes(e))return n.modelListTag}}function nq(e,t,i){for(let n of nV){if("discount"!==n.type||!nH(n))continue;let a=n.matchingCapabilities??n.capabilities;if(a&&!a.includes(e.businessType))continue;let r=n$(n,{...e,businessParams:t,cohorts:i?.cohorts,isSignedOut:i?.isSignedOut,isTeamWorkspace:i?.isTeamWorkspace});if(r)return r}}function nK(){return nR.filter(e=>nH(e)&&(e.capabilities?.length??0)>0&&(!e.isTargetedTo||!0===e.publiclyAdvertised))}function nZ(e){return nR.some(t=>nH(t)&&!!t.capabilities?.includes(e))}function nX(e,t,i,n){return nR.some(a=>nH(a)&&!!a.capabilities?.includes(e)&&nJ(a,t,i,n))}function nQ(e,t,i,n){let a=new Set;for(let r of nR)if(nH(r)&&r.capabilities?.includes(e)&&nJ(r,t,i,n))for(let e of r.requiredTiers??[])a.add(e);return[...a]}let nY={};function nJ(e,t,i,n){if(!e.isTargetedTo)return!0;let a=i?nY:t;return!!a&&e.isTargetedTo(a,i?void 0:n)}function n$(e,t={}){let{user:i,businessType:n}=t;if(e.getDescription&&i&&void 0!==n){let t=e.getDescription({user:i,businessType:n});if(void 0!==t)return t}let{description:a}=e;return"function"==typeof a?a(t):a}function n0(e,t,i,n){for(let a of nR){if(!nH(a)||!a.capabilities?.includes(e)||!nJ(a,t,i,n))continue;let r=n$(a,{user:t,businessType:e,isSignedOut:i,cohorts:n});return r?{campaignId:a.id,terms:r}:void 0}}function n2(e,t=1,i){return e.user?{eligible:k(e.user,e.businessType,t,i).eligible}:{eligible:!1}}async function n1(e,t){if(!e.user||t?.isTeamWorkspace)return{eligible:!1};let i={currentWorkspaceUserId:t?.currentWorkspaceUserId,isTeamWorkspace:t?.isTeamWorkspace,cohorts:t?.cohorts},n=null;for(let t of nR)if(nH(t)&&t.isEligible&&await t.isEligible(e,i)){n=t;break}if(!n)return{eligible:!1};let a={eligible:!0,campaignId:n.id,name:n.name,description:n$(n,{...e,cohorts:t?.cohorts,businessParams:t?.businessParams})};if(t?.businessParams===void 0)return a;for(let n of nR)if(nH(n)&&n.isEligible&&await n.isEligible(e,i)&&null!==await n.match(e,t.businessParams,i))return{eligible:!0,campaignId:n.id,name:n.name,description:n$(n,{...e,cohorts:t?.cohorts,businessParams:t.businessParams}),paramsEligible:!0};return{...a,paramsEligible:!1}}e.s(["checkFreeQuotaEligibility",()=>n2,"checkUnlimitedEligibility",()=>n1,"getCapabilityModelListTag",()=>nG,"getPubliclyAdvertisedUnlimitedCampaigns",()=>nK,"getUnlimitedRequiredTiers",()=>nQ,"getUnlimitedTermsSourceForCapability",()=>n0,"hasActiveCampaigns",()=>nz,"isCampaignActive",()=>nH,"isCapabilityInActiveUnlimited",()=>nZ,"isCapabilityVisibleUnlimitedForUser",()=>nX,"matchCampaign",()=>
88nW,"resolveCampaignDescription",()=>n$,"resolveDiscountDescription",()=>nq],366860)},900378,e=>{"use strict";e.i(366860);var t=e.i(668156),i=e.i(243445),n=e.i(6895),a=e.i(228650),r=e.i(933584),s=e.i(399331);let l="minimaxH3PromoDiscount",o="minimaxH3MaxPromoDiscount",d="minimaxH3MaxTurboPromoDiscount";function c(e){let t=r.BUSINESS_CREDIT_ESTIMATES.find(t=>t.id===e);if(!t)throw Error(`No credit estimate registered for ${e}`);return t}let u=c("nano-banana-pro"),p=c("seedance-2");function m(e){return{value:{type:"boolean",available:!0},...n.SubscriptionLevelConfig[e].canUseBrandKit?{}:{label:"Create reusable elements (Character, Objects)"}}}function x(e,t){return{value:{type:"number",value:(0,r.estimateGenerations)(n.SubscriptionLevelConfig[e].creditsAmount,t.creditsPerGeneration),prefix:"≈ "},highlight:!0,textPrefix:"Up to",showInfo:!0}}let g=[{id:"credits",label:"credits / month",category:"credits",tooltip:"Credits renew monthly. Each model consumes a unique amount — see the examples below for consumption estimates.",showInCard:!0,showInComparison:!0,comparisonLabel:"Credits"},{id:"addCredits",label:"Add credits as needed",category:"credits",showInCard:!0,showInComparison:!0,comparisonLabel:"Add-on Credit Packs"},{id:"images",label:"images",category:"usage",tooltip:"Create images with just a few clicks and let AI do the rest.",showInCard:!0,showInComparison:!0,comparisonLabel:"Number of Images"},{id:"videos",label:"videos (excluding Director)",category:"usage",tooltip:"Turn images, text, or elements into videos with our powerful generator and state-of-art models. This estimate does not include Director.",showInCard:!0,showInComparison:!0,comparisonLabel:"Number of Videos"},{id:"director",label:"of ready-to-post video",category:"usage",tooltip:"Turn your ideas into complete videos with Director, OpenArt's AI video agent. Estimated total video duration based on your monthly credits.",showInCard:!1,showInComparison:!0,comparisonLabel:"Director"},{id:"directorAccess",label:"Access to Director",cardHighlight:"Director",category:"usage",tooltip:"Unlock Director for more guided, controllable, and professional creative workflows.",showInCard:!0,showInComparison:!1},{id:"mcpAccess",label:"Access to OpenArt MCP",cardHighlight:"OpenArt MCP",category:"usage",tooltip:"Use OpenArt MCP to connect OpenArt capabilities with compatible external tools and agents.",showInCard:!0,showInComparison:!1},{id:"characters",label:"consistent characters",category:"usage",tooltip:"Create unique characters with consistent traits and styles. First character creation is free!",showInCard:!0,showInComparison:!0,comparisonLabel:"Character Creation"},{id:"stories",label:"One-Click Stories",category:"usage",tooltip:"Have an idea, script, beat, or a favorite character? OpenArt turns it into a visual story —complete with motion, music, and a narrative arc. One click.",showInCard:!0,showInComparison:!0,comparisonLabel:"One-Click Story"},{id:"models",label:"personalized models",category:"usage",tooltip:"Train your unique AI model effortlessly with just a few images to unlock personalized results that align perfectly with your vision.",showInCard:!0,showInComparison:!0,comparisonLabel:"Custom Model Training"},{id:"parallelGenerations",label:"parallel generations",category:"usage",tooltip:"Generate multiple images at once to speed up your workflow.",showInCard:!0,showInComparison:!0,comparisonLabel:"Parallel Generations"},{id:"premiumModels",label:"Access to 100+ premium image, video, and audio models",category:"capabilities",tooltip:"We continuously optimize and add more popular models to help you create better images and videos.",showInCard:!0,showInComparison:!0,comparisonLabel:"Premium Public Models"},{id:"imageTools",label:"All Image Creation Tools",category:"capabilities",showInCard:!1,showInComparison:!0},{id:"videoTools",label:"All Video Creation Tools",category:"capabilities",showInCard:!1,showInComparison:!0},{id:"storyCreation",label:"One-Click Story Creation",category:"capabilities",tooltip:"Have an idea, script, beat, or a favorite character? OpenArt turns it into a visual story —complete with motion, music, and a narrative arc. One click.",showInCard:!0,showInComparison:!0,comparisonLabel:"One-Click Stories"},{id:"storyboard",label:"Storyboard & Editor",category:"capabilities",showInCard:!1,showInComparison:!0},{id:"characterCreation",label:"Character Creation",category:"capabilities",showInCard:!1,showInComparison:!0},{id:"audioCreation",label:"Audio Creation",category:"capabilities",showInCard:!1,showInComparison:!0},{id:"watermarkFreeExports",label:"Watermark-free exports",category:"capabilities",tooltip:"Export, share, and edit your creations without an OpenArt watermark.",showInCard:!1,showInComparison:!0,comparisonLabel:"Watermark-free Exports"},{id:"historySearch",label:"Generation History Search",category:"capabilities",showInCard:!1,showInComparison:!0},{id:"editingSuite",label:"Powerful Image Editing Suite",category:"capabilities",showInCard:!0,showInComparison:!1},{id:"commercialUseRights",label:"Commercial use rights",category:"capabilities",tooltip:"Use your AI-generated content for commercial purposes, including marketing, products, and client work.",showInCard:!0,showInComparison:!0,comparisonLabel:"Commercial Use Rights"},{id:"prioritySupport",label:"Priority support",category:"support",tooltip:"Get faster response times and dedicated support — resolve any issues quickly.",showInCard:!0,showInComparison:!0,comparisonLabel:"Priority Support"},{id:"watermarkFree",label:"Watermark-free",category:"capabilities",showInCard:!0,showInComparison:!1},{id:"unlimitedCreation",label:"Unlimited Creation",category:"capabilities",tooltip:"Unlimited use of select models during promotion periods",showInCard:!0,showInComparison:!0},{id:"modelDiscount",label:"Up to 60% model discount",category:"credits",tooltip:"Nano Banana Pro, Veo 3.1, Kling 2.6, SeeDream 4.5, Hailuo 2.3",showInCard:!1,showInComparison:!1,comparisonLabel:"Up to 60% model discount"},{id:t.MODEL_SUMMER_SALE_CAMPAIGN_ID,label:"Upgrade by Aug 7 to lock in up to 40% OFF on top models",category:"credits",tooltip:"Nano Banana 2 Lite, GPT Image 2, Seedream 5.0 Pro, Gemini Omni Flash, Kling v3 Omni, Grok Imagine, and MiniMax H3. Available for qualifying subscriptions made between Jul 16 – Aug 7, 2026",showInCard:!0,showInComparison:!1},{id:l,label:"MiniMax H3",category:"credits",tooltip:"Up to 33% off MiniMax H3 through Oct 4, 11:59 PM PT.\n\nT2V — 768p 33% off, 2K 27% off\nVideo input — 768p 25% off, 2K 27% off\nImage input — 20% off",showInCard:!0,showInComparison:!1},{id:o,label:"MiniMax H3 Max",category:"credits",tooltip:"Up to 25% off MiniMax H3 Max through Oct 4, 11:59 PM PT.\n\nT2V & I2V:\n768p — 25% off\n480p — 20% off",showInCard:!0,showInComparison:!1},{id:d,label:"MiniMax H3 Max Turbo",category:"credits",tooltip:"Up to 33% off MiniMax H3 Max Turbo through Oct 4, 11:59 PM PT.\n\nT2V & I2V:\n480p — 33% off\n768p and 1080p — 25% off",showInCard:!0,showInComparison:!1},{id:"creditPack50OffDiscount",label:"add-on credit packs for the 1st month. Expires May 15, 11:59 PM PST",category:"credits",showInCard:!0,showInComparison:!1},{id:"unlimitedModels",label:"",category:"capabilities",showInCard:!0,showInComparison:!1},{id:"nanoBananaProImages",label:"Nano Banana Pro images / month",category:"usage",tooltip:`Estimated from your monthly credits at Nano Banana Pro's 2K rate (${u.creditsPerGeneration} credits per image). Other models and settings use a different number of credits.`,showInCard:!1,showInComparison:!1},{id:"seedance2Videos",label:"Seedance 2.0 videos / month",category:"usage",tooltip:`Estimated from your monthly credits at Seedance 2.0's 720p, 5-second rate (${p.creditsPerGeneration} credits per video). Other models and settings use a different number of credits.`,showInCard:!1,showInComparison:!1},{id:"reusableElements",label:"Create reusable elements (Character, Objects, Brand Kit)",category:"capabilities",showInCard:!1,showInComparison:!1},{id:"trialCreditsTest",label:"Use trial credits to test premium features",category:"free",showInCard:!0,showInComparison:!1},{id:"discordBonus",label:"Join Discord for extra 50 trial credits",category:"free",tooltip:"Get this one-time trial credit bonus and join our community for tips and inspiration.",showInCard:!0,showInComparison:!1},{id:"privateCreations",label:"All creations are private",category:"free",tooltip:"Feel confident exploring new ideas with full privacy.",showInCard:!0,showInComparison:!1}],h={[n.SubscriptionType.Free]:{credits:{value:{type:"text",value:"40 one-time trial credits for 7 days"},pinned:!0,pinnedIcon:"credits",showInfo:!0,tooltip:"Experience most of the features for free to experience the limitless creativity."},trialCreditsTest:{value:{type:"boolean",available:!0}},parallelGenerations:{value:{type:"number",value:4},highlight:!0,showInfo:!0,tooltip:"Generate multiple images at once to speed up your workflow."},discordBonus:{value:{type:"boolean",available:!0},showInfo:!0},privateCreations:{value:{type:"boolean",available:!0},showInfo:!0},addCredits:{value:{type:"boolean",available:!1},hideFromCard:!0},images:{value:{type:"number",value:40,prefix:"~"},hideFromCard:!0},videos:{value:{type:"number",value:0},hideFromCard:!0},director:{value:{type:"boolean",available:!1},hideFromCard:!0},characters:{value:{type:"number",value:0},hideFromCard:!0},stories:{value:{type:"number",value:0},hideFromCard:!0},models:{value:{type:"number",value:0},hideFromCard:!0},premiumModels:{value:{type:"boolean",available:!0},hideFromCard:!0},imageTools:{value:{type:"boolean",available:!0},hideFromCard:!0},videoTools:{value:{type:"boolean",available:!1},hideFromCard:!0},storyCreation:{value:{type:"boolean",available:!1},hideFromCard:!0},storyboard:{value:{type:"boolean",available:!1},hideFromCard:!0},characterCreation:{value:{type:"boolean",available:!1},hideFromCard:!0},audioCreation:{value:{type:"boolean",available:!1},hideFromCard:!0},historySearch:{value:{type:"boolean",available:!1},hideFromCard:!0},editingSuite:{value:{type:"boolean",available:!1},hideFromCard:!0},watermarkFreeExports:{value:{type:"boolean",available:!1}},commercialUseRights:{value:{type:"boolean",available:!1},hideFromCard:!0},prioritySupport:{value:{type:"boolean",available:!1},hideFromCard:!0},unlimitedCreation:{value:{type:"boolean",available:!1},hideFromCard:!0}},[n.SubscriptionType.Essential]:{[l]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[o]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[d]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Essential].creditsAmount},highlight:!0,showInfo:!0,pinned:!0,pinnedIcon:"credits"},addCredits:{value:{type:"boolean",available:!1},pinned:!0,pinnedIcon:"infinity",unavailableLabel:`No top-ups on ${(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Essential)}`,showInfo:!0,tooltip:`Add-on credit packs are available after you upgrade to ${(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Advanced)}.`},nanoBananaProImages:x(n.SubscriptionType.Essential,u),seedance2Videos:x(n.SubscriptionType.Essential,p),reusableElements:m(n.SubscriptionType.Essential),images:{value:{type:"number",value:4e3,prefix:"~"},highlight:!0,textPrefix:"Up to"},videos:{value:{type:"number",value:50,prefix:"~"},highlight:!0,textPrefix:"Up to"},director:{value:{type:"number",value:2,prefix:"~",suffix:" minutes"},highlight:!0,textPrefix:"Director — up to"},directorAccess:{value:{type:"boolean",available:!0}},mcpAccess:{value:{type:"boolean",available:!0}},characters:{value:{type:"number",value:13,prefix:"~"},highlight:!0,textPrefix:"Up to"},stories:{value:{type:"number",value:5,prefix:"~"},highlight:!0,textPrefix:"Up to"},models:{value:{type:"number",value:13,prefix:"~"},highlight:!0},parallelGenerations:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Essential].maxConcurrentSize},highlight:!0,showInfo:!0,tooltip:"Parallel generations: 4 images + 2 videos + 2 characters"},premiumModels:{value:{type:"boolean",available:!0}},imageTools:{value:{type:"boolean",available:!0}},videoTools:{value:{type:"boolean",available:!0}},storyCreation:{value:{type:"boolean",available:!0}},storyboard:{value:{type:"boolean",available:!0}},characterCreation:{value:{type:"boolean",available:!0}},audioCreation:{value:{type:"boolean",available:!0}},historySearch:{value:{type:"boolean",available:!1}},editingSuite:{value:{type:"boolean",available:!0}},watermarkFreeExports:{value:{type:"boolean",available:!0}},watermarkFree:{value:{type:"boolean",available:!0}},commercialUseRights:{value:{type:"boolean",available:!1}},prioritySupport:{value:{type:"boolean",available:!1}},unlimitedCreation:{value:{type:"boolean",available:!1}}},[n.SubscriptionType.Advanced]:{[l]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[o]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[d]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[t.MODEL_SUMMER_SALE_CAMPAIGN_ID]:{value:{type:"boolean",get available(){return(0,t.isModelSummerSaleActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Advanced].creditsAmount},highlight:!0,showInfo:!0,pinned:!0,pinnedIcon:"credits"},addCredits:{value:{type:"boolean",available:!0},pinned:!0,pinnedIcon:"infinity",showInfo:!0,tooltip:`Scroll down to see add-on packs. You can purchase add-on packs after you upgrade to ${(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Advanced)}.`},nanoBananaProImages:x(n.SubscriptionType.Advanced,u),seedance2Videos:x(n.SubscriptionType.Advanced,p),reusableElements:m(n.SubscriptionType.Advanced),images:{value:{type:"number",value:12e3,prefix:"~"},highlight:!0,textPrefix:"Up to"},videos:{value:{type:"number",value:150,prefix:"~"},highlight:!0,textPrefix:"Up to"},director:{value:{type:"number",value:6,prefix:"~",suffix:" minutes"},highlight:!0,textPrefix:"Director — up to"},directorAccess:{value:{type:"boolean",available:!0}},mcpAccess:{value:{type:"boolean",available:!0}},characters:{value:{type:"number",value:40,prefix:"~"},highlight:!0,textPrefix:"Up to"},stories:{value:{type:"number",value:17,prefix:"~"},highlight:!0,textPrefix:"Up to"},models:{value:{type:"number",value:40,prefix:"~"},highlight:!0},parallelGenerations:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Advanced].maxConcurrentSize},highlight:!0,showInfo:!0,tooltip:"Parallel generations: 8 images + 4 videos + 4 
88characters"},premiumModels:{value:{type:"boolean",available:!0}},imageTools:{value:{type:"boolean",available:!0}},videoTools:{value:{type:"boolean",available:!0}},storyCreation:{value:{type:"boolean",available:!0}},storyboard:{value:{type:"boolean",available:!0}},characterCreation:{value:{type:"boolean",available:!0}},audioCreation:{value:{type:"boolean",available:!0}},historySearch:{value:{type:"boolean",available:!0}},editingSuite:{value:{type:"boolean",available:!0}},watermarkFreeExports:{value:{type:"boolean",available:!0}},watermarkFree:{value:{type:"boolean",available:!0}},commercialUseRights:{value:{type:"boolean",available:!0}},prioritySupport:{value:{type:"boolean",available:!1}},unlimitedCreation:{value:{type:"boolean",available:!1}},creditPack50OffDiscount:{value:{type:"text",value:"50% off"},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",highlight:!0,hideFromCard:Date.now()>s.CREDIT_PACK_50_OFF_END_MS}},[n.SubscriptionType.Infinite]:{[l]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[o]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[d]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[t.MODEL_SUMMER_SALE_CAMPAIGN_ID]:{value:{type:"boolean",get available(){return(0,t.isModelSummerSaleActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Infinite].creditsAmount},highlight:!0,showInfo:!0,pinned:!0,pinnedIcon:"credits"},addCredits:{value:{type:"boolean",available:!0},pinned:!0,pinnedIcon:"infinity",showInfo:!0,tooltip:`Scroll down to see add-on packs. You can purchase add-on packs after you upgrade to ${(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Infinite)}.`},nanoBananaProImages:x(n.SubscriptionType.Infinite,u),seedance2Videos:x(n.SubscriptionType.Infinite,p),reusableElements:m(n.SubscriptionType.Infinite),images:{value:{type:"number",value:24e3,prefix:"~"},highlight:!0,textPrefix:"Up to"},videos:{value:{type:"number",value:300,prefix:"~"},highlight:!0,textPrefix:"Up to"},director:{value:{type:"number",value:12,prefix:"~",suffix:" minutes"},highlight:!0,textPrefix:"Director — up to"},directorAccess:{value:{type:"boolean",available:!0}},mcpAccess:{value:{type:"boolean",available:!0}},characters:{value:{type:"number",value:80,prefix:"~"},highlight:!0,textPrefix:"Up to"},stories:{value:{type:"number",value:34,prefix:"~"},highlight:!0,textPrefix:"Up to"},models:{value:{type:"number",value:80,prefix:"~"},highlight:!0},parallelGenerations:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Infinite].maxConcurrentSize},highlight:!0,showInfo:!0,tooltip:"Parallel generations: 16 images + 8 videos + 8 characters"},premiumModels:{value:{type:"boolean",available:!0}},imageTools:{value:{type:"boolean",available:!0}},videoTools:{value:{type:"boolean",available:!0}},storyCreation:{value:{type:"boolean",available:!0}},storyboard:{value:{type:"boolean",available:!0}},characterCreation:{value:{type:"boolean",available:!0}},audioCreation:{value:{type:"boolean",available:!0}},historySearch:{value:{type:"boolean",available:!0}},editingSuite:{value:{type:"boolean",available:!0}},watermarkFreeExports:{value:{type:"boolean",available:!0}},watermarkFree:{value:{type:"boolean",available:!0}},commercialUseRights:{value:{type:"boolean",available:!0}},prioritySupport:{value:{type:"boolean",available:!1}},unlimitedCreation:{value:{type:"boolean",available:!0},hideFromCard:!0},creditPack50OffDiscount:{value:{type:"text",value:"50% off"},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",highlight:!0,hideFromCard:Date.now()>s.CREDIT_PACK_50_OFF_END_MS},unlimitedModels:{value:{type:"unlimited",campaignIds:["aug17Promo-unlimited-pro-image","aug17Promo-unlimited-pro-video","wan3Launch-unlimited-pro","unlimited-openversary-infinite-image","unlimited-kling-3-omni","unlimited-grok-imagine","unlimited-seedream-5-lite-infinite","unlimited-seedream-5-pro-infinite","unlimited-nano-banana-2-lite-infinite","unlimited-qwen-image-2-infinite","unlimited-wan2-7-image-infinite"]}}},[n.SubscriptionType.Wonder]:{[l]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[o]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[d]:{value:{type:"boolean",get available(){return(0,i.minimaxH32WeeksPromoActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},[t.MODEL_SUMMER_SALE_CAMPAIGN_ID]:{value:{type:"boolean",get available(){return(0,t.isModelSummerSaleActive)()}},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",showInfo:!0},credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Wonder].creditsAmount},highlight:!0,showInfo:!0,pinned:!0,pinnedIcon:"credits"},addCredits:{value:{type:"boolean",available:!0},pinned:!0,pinnedIcon:"infinity",showInfo:!0,tooltip:`Scroll down to see add-on packs. You can purchase add-on packs after you upgrade to ${(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Advanced)} or above.`},nanoBananaProImages:x(n.SubscriptionType.Wonder,u),seedance2Videos:x(n.SubscriptionType.Wonder,p),reusableElements:m(n.SubscriptionType.Wonder),images:{value:{type:"number",value:106e3,prefix:"~"}
88,highlight:!0,textPrefix:"Up to",tooltip:"Full stack image creation and editing tools available."},videos:{value:{type:"number",value:1300,prefix:"~"},highlight:!0,textPrefix:"Up to",tooltip:"All-in-one video creation and editing tools available."},director:{value:{type:"number",value:50,prefix:"~",suffix:" minutes"},highlight:!0,textPrefix:"Director — up to"},directorAccess:{value:{type:"boolean",available:!0}},mcpAccess:{value:{type:"boolean",available:!0}},characters:{value:{type:"number",value:353,prefix:"~"},highlight:!0,textPrefix:"Up to"},stories:{value:{type:"number",value:150,prefix:"~"},highlight:!0,textPrefix:"Up to",tooltip:"One click creation of a visual story with motion, music, and a narrative arc."},models:{value:{type:"number",value:353,prefix:"~"},highlight:!0,tooltip:"Train your unique AI model effortlessly with just a few images to unlock personalized results."},parallelGenerations:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Wonder].maxConcurrentSize},highlight:!0,showInfo:!0,tooltip:"Parallel generations: 16 images + 8 videos + 8 characters"},premiumModels:{value:{type:"boolean",available:!0},tooltip:"We continuously optimize and add more popular models to help you create better visuals."},imageTools:{value:{type:"boolean",available:!0}},videoTools:{value:{type:"boolean",available:!0}},storyCreation:{value:{type:"boolean",available:!0},tooltip:"One click creation of a visual story with motion, music, and a narrative arc."},storyboard:{value:{type:"boolean",available:!0}},characterCreation:{value:{type:"boolean",available:!0}},audioCreation:{value:{type:"boolean",available:!0}},historySearch:{value:{type:"boolean",available:!0}},editingSuite:{value:{type:"boolean",available:!0}},watermarkFreeExports:{value:{type:"boolean",available:!0}},watermarkFree:{value:{type:"boolean",available:!0}},commercialUseRights:{value:{type:"boolean",available:!0}},prioritySupport:{value:{type:"boolean",available:!0},tooltip:"Faster responses and dedicated support."},unlimitedCreation:{value:{type:"boolean",available:!0},showInfo:!0,tooltip:"Unlimited use of select models during promotion periods"},creditPack50OffDiscount:{value:{type:"text",value:"50% off"},badgeImage:"https://cdn.openart.ai/pricing_page/DISCOUNT.png",highlight:!0,hideFromCard:Date.now()>s.CREDIT_PACK_50_OFF_END_MS},unlimitedModels:{value:{type:"unlimited",campaignIds:["minimax-h3-2-weeks-unlimited","unlimited-flux-3-oct-wonder","aug17Promo-unlimited-wonder-image","aug17Promo-unlimited-wonder-video","wan3Launch-unlimited-wonder","unlimited-openversary-wonder-image","unlimited-h3-max-wonder","unlimited-h3-wonder","unlimited-seedance-2-5-segment-b-wonder","unlimited-seedance-2-5-wonder","unlimited-seedance-2-wonder","unlimited-wan2-7-wonder","unlimited-wan2-7-image-wonder","unlimited-kling-3-omni","unlimited-grok-imagine","unlimited-seedream-5-lite-wonder","unlimited-seedream-5-pro-wonder","unlimited-nano-banana-2-wonder","unlimited-nano-banana-2-lite-wonder","unlimited-qwen-image-2-wonder","unlimited-flux-3-wonder"]}}},[n.SubscriptionType.Team]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Team].creditsAmount,suffix:"/seat"},highlight:!0,showInfo:!0,pinned:!0,pinnedIcon:"credits"},addCredits:{value:{type:"boolean",available:!0},pinned:!0,pinnedIcon:"infinity"},images:{value:{type:"number",value:36e3,prefix:"~"},highlight:!0,textPrefix:"Up to"},videos:{value:{type:"number",value:450,prefix:"~"},highlight:!0,textPrefix:"Up to"},characters:{value:{type:"number",value:120,prefix:"~"},highlight:!0,textPrefix:"Up to"},stories:{value:{type:"number",value:51,prefix:"~"},highlight:!0,textPrefix:"Up to"},models:{value:{type:"number",value:120,prefix:"~"},highlight:!0},parallelGenerations:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Team].maxConcurrentSize},highlight:!0,showInfo:!0},premiumModels:{value:{type:"boolean",available:!0}},imageTools:{value:{type:"boolean",available:!0}},videoTools:{value:{type:"boolean",available:!0}},storyCreation:{value:{type:"boolean",available:!0}},storyboard:{value:{type:"boolean",available:!0}},characterCreation:{value:{type:"boolean",available:!0}},audioCreation:{value:{type:"boolean",available:!0}},historySearch:{value:{type:"boolean",available:!0}},editingSuite:{value:{type:"boolean",available:!0}},watermarkFreeExports:{value:{type:"boolean",available:!0}},commercialUseRights:{value:{type:"boolean",available:!0}},prioritySupport:{value:{type:"boolean",available:!0}},unlimitedCreation:{value:{type:"boolean",available:!1}},modelDiscount:{value:{type:"boolean",available:!1}},unlimitedModels:{value:{type:"unlimited",campaignIds:["unlimited-seedance-2-wonder"]}}},[n.SubscriptionType.Enterprise]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.Enterprise].creditsAmount}}},[n.SubscriptionType.Trial]:{credits:{value:{type:"text",value:"40 trial credits"}}},[n.SubscriptionType.BusinessTeam50k]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.BusinessTeam50k].creditsAmount}}},[n.SubscriptionType.BusinessTeam100k]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.BusinessTeam100k].creditsAmount}}},[n.SubscriptionType.BusinessTeam150k]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.BusinessTeam150k].creditsAmount}}},[n.SubscriptionType.BusinessTeam250k]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.BusinessTeam250k].creditsAmount}}},[n.SubscriptionType.BusinessTeam500k]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.BusinessTeam500k].creditsAmount}}},[n.SubscriptionType.BusinessTeam750k]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.BusinessTeam750k].creditsAmount}}},[n.SubscriptionType.BusinessTeam1M]:{credits:{value:{type:"number",value:n.SubscriptionLevelConfig[n.SubscriptionType.BusinessTeam1M].creditsAmount}}}},b=[{featureId:"nanoBananaProImages"},{featureId:"seedance2Videos"},{featureId:"watermarkFree"},{featureId:"premiumModels",label:"All premium image, video, and audio models"},{featureId:"mcpAccess"},{featureId:"reusableElements"},{featureId:"parallelGenerations",textPrefix:"Run up to",label:"generations in parallel"},{featureId:"addCredits",label:"Purchase add-on credit packs anytime"},{featureId:"unlimitedCreation",label:"Unlimited creation on select models during promotions",labelByTier:{[n.SubscriptionType.Infinite]:"Unlimited creation on select image models during promotions",[n.SubscriptionType.Wonder]:"Unlimited creation on select image & video models during promotions"}},{featureId:"prioritySupport"}];function f(e){return g.find(t=>
88t.id===e)}function v(e,t){return h[t]?.[e]}function y(e){if(null===e)return!1;switch(e.type){case"boolean":return e.available;case"number":return e.value>0;case"text":case"unlimited":return!0;default:return!1}}e.s(["CLARITY_CARD_ROWS",0,b,"FEATURES",0,g,"TIER_FEATURE_VALUES",0,h,"getFeatureById",()=>f,"getFeatureValueForTier",()=>v,"isFeatureAvailable",()=>y])},541885,e=>{"use strict";var t=e.i(93801),i=e.i(834486),n=e.i(478790),a=e.i(464543),r=e.i(344884),s=e.i(368709),l=e.i(917690),o=e.i(596706);let d=async e=>await (0,s.post)("/legacy/api/team/update_subscription_schedules",e);e.s(["useUpdateSubscriptionSchedules",0,()=>{let e=(0,i.useQueryClient)(),{guardSponsoredAction:s}=(0,a.useSponsoredSubscriptionGuard)(),c=(0,t.useMutation)({mutationFn:d,onSuccess:async()=>{await (0,o.refetchAfterPlanMutation)(e,[l.legacySubscriptionKeys.currentPlan,r.TEAM_MEMBERS_QUERY_KEY])}}),u=(0,n.useCallback)((e,t)=>{s()&&c.mutate(e,t)},[s,c.mutate]);return{...c,mutate:u}}])},780550,179637,e=>{"use strict";var t=e.i(743265),i=e.i(74840),n=e.i(96673),a=e.i(647163);e.i(814368);var r=e.i(612003),s=e.i(790990);e.i(563178);var l=e.i(911030),o=e.i(281664),d=e.i(478790),c=e.i(779342),u=e.i(619165),p=e.i(541885),m=e.i(6895),x=e.i(228650),g=e.i(281133),h=e.i(450082),b=e.i(80095);function f({currentTier:e,targetTier:i,targetBillingInterval:n,scheduleId:r,subscriptionId:s,onKeep:l,onScheduled:m,onConfirm:f}){var w;let N,[T,C]=(0,d.useState)(!1),{precheckGuard:j,isPending:I}=(0,u.useSubscriptionPrecheckGuard)(),S=(0,p.useUpdateSubscriptionSchedules)(),P=(0,x.getSubscriptionDisplayName)(e),k=(0,x.getSubscriptionDisplayName)(i),_=(N=[{label:v(w=e),description:"Generation credits",iconSrc:"https://cdn.openart.ai/assets/internal/uploads/image_osjML9JY_80x80_1778060903111.webp"},{label:"100+",description:"Premium models & tools",iconSrc:"https://cdn.openart.ai/assets/internal/uploads/image_zBKnyZ8C_80x80_1778060902949.webp"}],(0,g.isBusinessTier)(w)||N.push({label:"Add-on Credits",description:"Any extra credit packs",iconSrc:"https://cdn.openart.ai/assets/internal/uploads/image_MI7uQI3u_80x80_1778060919280.webp"}),N),A=T||I,D=async()=>{if(!s)return void c.toast.error("Missing subscription information. Please refresh.");if(await j({tierKey:i,productBillingInterval:n,scheduleId:r})){f?.(),C(!0);try{await S.mutateAsync({schedule_id:"",subscription_id:s,is_cancel:!1,tier:i,interval:n}),c.toast.success("Downgrade scheduled",{description:`You will switch to ${k} at the next billing cycle.`}),m()}catch(e){console.error("[DowngradeRetentionPanel] updateSchedules failed",e)}finally{C(!1)}}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"aria-hidden":!0,className:(0,a.cn)("absolute inset-x-0 top-0 h-[100px] md:h-[154px]","bg-cover bg-top bg-no-repeat","pointer-events-none"),style:{backgroundImage:"url(https://cdn.openart.ai/assets/internal/uploads/image_N1Ups1dT_1270x308_1778060504221.webp)"}}),(0,t.jsxs)("div",{className:"relative flex flex-col gap-4 px-4 pt-14 pb-6 md:gap-6 md:px-9 md:pt-20 md:pb-8",children:[(0,t.jsx)("h2",{className:(0,a.cn)("font-semibold tracking-[-0.25px] text-center text-text-icon-neutral-primary","text-xl leading-7","md:text-[32px] md:leading-[1.2]"),children:"Are you sure you want to downgrade subscription?"}),(0,t.jsxs)("p",{className:(0,a.cn)("text-xs font-medium leading-4 tracking-[0.05px]","text-center text-text-icon-neutral-default"),children:["If you downgrade, you will lose your ",P," benefits:"]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 items-center",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-1.5 w-full",children:_.map(e=>(0,t.jsx)(y,{...e},e.label))}),(0,t.jsxs)("div",{className:(0,a.cn)("flex items-center w-full rounded-xl bg-background-container-panel-surface-raised-2","gap-2 px-3 py-3","md:gap-2.5 md:px-5 md:py-4"),children:[(0,t.jsx)(o.default,{src:"https://cdn.openart.ai/assets/internal/uploads/image_ZghIiV9-_80x80_1778060902951.webp",alt:"","aria-hidden":!0,width:40,height:40,className:"size-8 shrink-0 md:size-10"}),(0,t.jsx)("p",{className:(0,a.cn)("text-text-icon-neutral-primary","text-xs leading-4","md:text-sm md:leading-5"),children:(0,g.isBusinessTier)(e)?`Your workspace's shared credits will change from ${v(e)} to ${v(i)}
88 per month starting from the next billing cycle.`:"Any previously purchased add-on credit packs will be cancelled starting from the next billing cycle."})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-center mt-2 md:mt-0",children:[(0,t.jsxs)(h.Button,{variant:"solid",color:"brand",size:"40",onClick:l,disabled:A,className:"w-full rounded-xl md:max-w-[416px]",children:["Keep the ",P," Subscription"]}),(0,t.jsx)(h.Button,{variant:"soft",color:"neutral",size:"40",onClick:()=>{D()},disabled:A,iconStart:A?(0,t.jsx)(b.Spinner,{className:"animate-spin","aria-hidden":!0}):void 0,className:"w-full rounded-xl md:max-w-[416px]",children:A?"Processing...":"Continue"})]})]})]})}function v(e){let t=m.SubscriptionLevelConfig[e]?.creditsAmount??0;return t?t.toLocaleString("en-US"):"—"}function y({label:e,description:i,iconSrc:n}){return(0,t.jsxs)("div",{className:(0,a.cn)("flex rounded-xl bg-background-container-panel-surface-raised-2","items-center gap-2 px-3 py-3","md:flex-col md:items-center md:gap-2.5 md:px-1.5 md:py-4 md:h-[142px] md:justify-center"),children:[(0,t.jsx)(o.default,{src:n,alt:"","aria-hidden":!0,width:40,height:40,className:"size-8 shrink-0 md:size-10"}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 md:gap-1 md:items-center md:text-center",children:[(0,t.jsx)("span",{className:(0,a.cn)("font-semibold tracking-[-0.25px] text-text-icon-neutral-primary","text-sm leading-5","md:text-lg md:leading-6"),children:e}),(0,t.jsx)("span",{className:(0,a.cn)("text-text-icon-neutral-secondary","text-xs leading-4","md:text-sm md:leading-5"),children:i})]})]})}function w({open:e,onOpenChange:o,currentTier:d,targetTier:c,targetBillingInterval:u,subscriptionId:p,scheduleId:m,onConfirm:x}){let g=(0,n.useLayeredZindex)(e);return(0,t.jsx)(i.Root,{open:e,onOpenChange:o,children:(0,t.jsxs)(i.Portal,{children:[(0,t.jsx)(i.Overlay,{style:{zIndex:g},className:(0,a.cn)("fixed inset-0","bg-background-container-mask-base backdrop-blur-[30px]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0")}),(0,t.jsxs)(i.Content,{style:{zIndex:g},className:(0,a.cn)("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","rounded-xl md:rounded-[20px] overflow-hidden","bg-background-container-overlay-base","border border-border-container-overlay-base","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0","data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95","w-[95vw] max-w-[635px]"),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),"aria-describedby":void 0,children:[(0,t.jsx)(i.Title,{className:"sr-only",children:"Downgrade subscription"}),(0,t.jsx)(i.Close,{asChild:!0,children:(0,t.jsx)(r.IconButton,{variant:"soft",color:"neutral",size:"32",icon:l.IconCloseBold,className:"absolute top-4 right-4 z-10 rounded-lg","aria-label":"Close"})}),(0,t.jsx)(s.ScrollFadeContainer,{showIndicator:!0,viewportClassName:(0,a.cn)("max-h-[85dvh] md:max-h-[90vh]","overflow-y-auto overflow-x-hidden"),overlayClassName:"from-background-container-overlay-base h-8",children:(0,t.jsx)(f,{currentTier:d,targetTier:c,targetBillingInterval:u,scheduleId:m,subscriptionId:p,onKeep:()=>o(!1),onScheduled:()=>o(!1),onConfirm:x})})]})]})})}e.s(["DowngradeRetentionPanel",()=>f],179637),e.s(["DowngradeRetentionDialog",()=>w],780550)},414507,e=>{"use strict";var t=e.i(317884),i=e.i(478790),n=e.i(115465),a=e.i(495157);function r(){return(0,n.useFeatureFlag)("subscription-redirect-to-v2",!1)}function s(){return r()?"/suite/subscriptions":"/subscriptions"}function l(){let e=r(),{enabled:n,isResolving:s}=(0,a.useEnterpriseExperienceResolution)(),l=(0,t.useRouter)();return(0,i.useEffect)(()=>{if(!s){if(n)return void l.replace("/home");e||window.location.replace("/subscriptions")}},[s,n,e,l]),e&&!n&&!s}e.s(["useIsSubscriptionsV2Enabled",()=>r,"useSubscriptionsPath",()=>s,"useV2SubscriptionsGuard",()=>l])},430116,e=>{"use strict";var t=e.i(291900);let i="openart:director_return_to";function n(e){let i=e.startsWith(`${t.BASE_PATH}/`)?e.slice(t.BASE_PATH.length):e;return"/director"===i||i.startsWith("/director/")?"Director":"/ch
88at"===i||i.startsWith("/chat/")?"Chat":null}let a=["upgrade","highlight","success","session_id","tier","interval","uid","quantity","new_quantity","quantity_charged","member_id","members","change_type","team_checkout_action"];function r(){try{return window.sessionStorage}catch{return null}}function s(){let e=r();if(!e)return;let t=function(){try{let{pathname:e,search:t}=window.location,i=n(e);if(!i)return null;let r=new URLSearchParams(t);for(let e of a)r.delete(e);let s=r.toString();return{path:s?`${e}?${s}`:e,surface:i}}catch{return null}}();if(!t){try{e.removeItem(i)}catch{}return}try{let n={...t,ts:Date.now()};e.setItem(i,JSON.stringify(n))}catch{}}function l(){let e=r();if(!e)return null;try{let t=e.getItem(i);if(!t)return null;e.removeItem(i);let a=JSON.parse(t),r=a?.path,s=a?.ts??0;if(!r||!s||Date.now()-s>6e5)return null;let l=r.split("?")[0],o=n(l);if(!o)return null;return{path:r,surface:o}}catch{try{e.removeItem(i)}catch{}return null}}e.s(["consumeReturnTo",()=>l,"setReturnTo",()=>s])},586382,756851,655328,154507,772359,282014,275353,346565,e=>{"use strict";var t=e.i(743265),i=e.i(647163),n=e.i(6895),a=e.i(228650);e.i(814368);var r=e.i(881836);e.i(563178);var s=e.i(418939),l=e.i(911030),o=e.i(570685),d=e.i(711946),c=e.i(111586),u=e.i(38386),p=e.i(872294),m=e.i(900378),x=e.i(302250),g=e.i(497439),h=e.i(478790),b=e.i(779342),f=e.i(689289),v=e.i(780550),y=e.i(870667),w=e.i(414507),N=e.i(896753),T=e.i(447968),C=e.i(464543),j=e.i(619165),I=e.i(326854),S=e.i(430116),P=e.i(21383),k=e.i(853120),_=e.i(642558),A=e.i(368709);async function D(e){try{await fetch((0,A.buildApiUrl)("/api/analytics/brevo"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),keepalive:!0})}catch(e){console.error("Failed to send Brevo event",e)}}e.s(["sendBrevoEvent",()=>D],756851);var E=e.i(281133),M=e.i(91509);let F=new Set(["get_started","subscribe","upgrade","switch_interval"]),U="rounded-lg transition-all duration-150 hover:-translate-y-px active:translate-y-0 active:scale-[0.98] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/45";function L({className:e}){return(0,t.jsxs)("svg",{className:(0,i.cn)("animate-spin h-4 w-4",e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function O({targetTier:e,currentTier:a,isSubscriptionActive:r,isTeamMember:s=!1,isTeamOwner:l=!1,currentBillingInterval:o,selectedBillingInterval:d,isHighlightedTier:c,appearance:u,emphasizedCta:p=!1,isMigration:m=!1,teamId:x,className:A,redesignFallbackClassName:O,useRedesignFallbackForUpgrade:B=!1,couponId:R,textOverrides:V,onLoadingChange:W}){let{status:z}=(0,g.useSession)(),H="authenticated"===z,[G,q]=(0,h.useState)(!1),[K,Z]=(0,h.useState)(!1),X=(0,y.useOpenPlanPickerDialog)(),Q=(0,I.useUpgradeReviewStore)(e=>e.open),Y=h.default.useRef(null),{isMobile:J}=(0,f.useServerHints)(),$=(0,T.useIsMobile)(J),ee=p&&!$,et=h.default.useRef(!1),ei=h.default.useRef(null),en=(0,h.useCallback)(e=>{q(e),W?.(e)},[W]),ea=h.default.useCallback(()=>{null!=ei.current&&(clearTimeout(ei.current),ei.current=null),et.current=!1,en(!1)},[en]),er=h.default.useCallback(e=>{null!=ei.current&&(clearTimeout(ei.current),ei.current=null),null!=e&&(ei.current=setTimeout(()=>{ei.current=null,et.current=!1,en(!1)},e))},[en]);h.default.useEffect(()=>{if(!ee)return;let e=e=>{e.persisted&&ea()},t=()=>{null!=ei.current&&(clearTimeout(ei.current),ei.current=null)};return window.addEventListener("pageshow",e),window.addEventListener("pagehide",t),()=>{window.removeEventListener("pageshow",e),window.removeEventListener("pagehide",t),ea()}},[ee,ea]);let{subscriptions:es}=(0,k.useUserCurrentPlan)(),{signin:el}=(0,N.useAuth)(),eo=(0,w.useSubscriptionsPath)(),{guardSponsoredAction:ed}=(0,C.useSponsoredSubscriptionGuard)(),ec=es&&es.length>0?es[0]:null,{precheckGuard:eu}
88=(0,j.useSubscriptionPrecheckGuard)(),ep=(0,h.useCallback)(()=>{let t=(0,E.getSubscriptionTierAnalyticsValue)(e);t&&((0,_.event)("subscription_started",{subscription_tier:t,subscription_interval:d}),r||(D({event:"subscribe_clicked"}),console.debug("%c[TrackingMigration] subscribe_clicked","font-weight:bold","✓ brevo API fired")))},[r,d,e]),em=function(e){let{targetTier:t,currentTier:i,isSubscriptionActive:a,isAuthenticated:r,isTeamMember:s,isTeamOwner:l,currentBillingInterval:o,selectedBillingInterval:d}=e;if(!r)return"get_started";let c=i===n.SubscriptionType.Team||(0,E.isBusinessTier)(i),u=!a&&c,p=i===n.SubscriptionType.Team&&t!==n.SubscriptionType.Team||(0,E.isBusinessTier)(i)&&!(0,E.isBusinessTier)(t);return s||u&&!l?p?"switch_to_personal_workspace":"contact_admin":p||u&&l?"switch_to_personal_workspace":t===n.SubscriptionType.Team&&i!==n.SubscriptionType.Team?"create_team":a&&i===t&&o===d?"current":t===n.SubscriptionType.Free?i!==n.SubscriptionType.Free&&a?"downgrade":"current":a?"year"===o&&"month"===d&&t!==n.SubscriptionType.Free||i===t&&o!==d?"switch_interval":t>i?"upgrade":t<i?"downgrade":"disabled":"subscribe"}({targetTier:e,currentTier:a,isSubscriptionActive:r,isAuthenticated:H,isTeamMember:s,isTeamOwner:l,currentBillingInterval:o,selectedBillingInterval:d}),ex=function(e,t){let i=t?.overrides?.[e];if(i)return i;switch(e){case"get_started":return"Get Started";case"subscribe":return"Subscribe";case"upgrade":return"Upgrade";case"downgrade":return"Downgrade";case"switch_interval":return"Switch Plan";
88case"current":if(t?.isSubscriptionActive&&t?.targetTier!==n.SubscriptionType.Team)return"Current Plan • Add Seat";return"Current Plan";case"contact_admin":return"Contact Admin";case"create_team":return"Create A Team";case"switch_to_personal_workspace":return"Switch to Personal Workspace";default:return"Unavailable"}}(em,{targetTier:e,isSubscriptionActive:r,overrides:V}),eg=function(e){let{state:t}=e,n=(0,i.cn)("inline-flex w-full items-center justify-center rounded py-2.5 text-center text-sm font-semibold transition-colors cursor-pointer");if("pricing-redesign"===e.appearance)switch(t){case"current":return(0,i.cn)(n,"bg-[rgba(221,234,248,0.08)] text-[16px] text-[rgba(217,237,255,0.36)]");case"get_started":case"subscribe":case"upgrade":case"switch_interval":return(0,i.cn)(n,"bg-[#EDEEF0] text-[#111113] font-semibold hover:bg-[#EDEEF0]/90");case"downgrade":return(0,i.cn)(n,"bg-[rgba(221,234,248,0.08)] text-[#EDEEF0] font-medium hover:bg-[rgba(221,234,248,0.12)]")}switch(t){case"current":return(0,i.cn)(n,"bg-[#444] text-white");case"contact_admin":case"switch_to_personal_workspace":case"disabled":return(0,i.cn)(n,"bg-[#444] text-white/50 cursor-not-allowed");case"downgrade":return(0,i.cn)(n,"bg-transparent text-[#E0E0E0] border border-[#444] hover:bg-[#333]");case"get_started":case"subscribe":case"upgrade":case"switch_interval":case"create_team":if(!1===e.isHighlightedTier)return(0,i.cn)(n,"bg-transparent text-[#E0E0E0] border border-[#444] hover:bg-[#333]");return(0,i.cn)(n,"bg-white text-[#101010] hover:bg-white/90");default:return n}}({state:em,isHighlightedTier:c??!0,appearance:u}),eh=ee?function(e){let{targetTier:t,state:i}=e;if(!F.has(i))return;let a=t===n.SubscriptionType.Infinite?"bg-background-brand-solid text-white hover:bg-background-brand-solid-hover":t===n.SubscriptionType.Wonder?"bg-[#FFE629] text-text-icon-fixed-black-solid-high-contrast hover:bg-[#F5E147]":void 0;return a?`${U} ${a}`:U}({targetTier:e,state:em}):void 0,eb="contact_admin"===em||"switch_to_personal_workspace"===em||"disabled"===em||G,ef="pricing-redesign"===u&&("upgrade"===em&&B||"current"!==em&&"upgrade"!==em&&"downgrade"!==em),ev=["subscribe","upgrade"].includes(em)&&H&&!s,ey=a===n.SubscriptionType.Team?x:void 0,ew=(0,P.usePrefetchUpgradePreview)(),eN=(0,h.useMemo)(()=>({tier:e,billingInterval:d,teamId:ey}),[e,d,ey]),eT=(0,h.useCallback)(async()=>{if(!r){let e=Y.current;return!!e&&!!function(e){let t=!1,i=e=>{t=!e.defaultPrevented};e.addEventListener("submit",i);try{e.requestSubmit()}finally{e.removeEventListener("submit",i)}return t}(e)&&((0,S.setReturnTo)(),ep(),!0)}return!!await eu({tierKey:e,productBillingInterval:d,isMigration:!0})&&(ep(),ew(eN),Q(eN),!1)},[r,eu,e,d,ep,Q,ew,eN]),eC=(0,h.useCallback)(()=>{r&&("upgrade"===em||"switch_interval"===em&&"month"===o&&"year"===d)&&ew(eN)},[em,r,o,d,ew,eN]),ej=(0,h.useCallback)(async()=>{let t;if(eb)return;if(ee){if(et.current)return;et.current=!0}if(H&&"current"!==em&&!ed()){et.current=!1;return}if(r&&"year"===o&&"month"===d){b.toast.info("Switching to monthly billing from yearly is not supported yet."),et.current=!1;return}en(!0);let i=!1;try{switch(em){case"get_started":{let a=function(e){switch(e){case n.SubscriptionType.Free:return"pricing_page_free";case n.SubscriptionType.Essential:return"pricing_page_essential";case n.SubscriptionType.Advanced:return"pricing_page_advanced";case n.SubscriptionType.Infinite:return"pricing_page_infinite";case n.SubscriptionType.Wonder:return"pricing_page_wonder";default:return null}}(e);a&&(0,_.event)("sign_up_sign_in_entry_clicked",{source:a}),(i=el(a??void 0)&&ee)&&(t=3e3);break}case"current":{let e,n=(e=new URL(eo,window.location.href)).pathname===window.location.pathname&&e.search===window.location.search&&e.hash===window.location.hash;n||(window.location.href=eo),(i=ee&&!n)&&(t=3e3);break}case"create_team":X.openTeam(d);break;case"switch_interval":r&&"month"===o&&"year"===d&&(i=await eT()&&ee);break;case"contact_admin":case"switch_to_personal_workspace":case"disabled":break;case"downgrade":if(!ec?.id){b.toast.error("Loading subscription data. Please try again.");break}Z(!0);break;case"subscribe":case"upgrade":i=await eT()&&ee}}catch(e){console.error("Subscription action failed:",e),b.toast.error("An error occurred. Please try again."),i=!1}finally{i?er(t):(en(!1),et.current=!1)}},[em,eb,el,o,d,eT,ec,r,X.openTeam,e,eo,H,ed,ee,er,en]),eI=(0,t.jsx)("button",{type:"button","data-subscription-cta":!0,onClick:ej,onMouseEnter:eC,onFocus:eC,disabled:eb,className:(0,i.cn)(eg,ef&&O,eh,A,G&&"opacity-70"),children:G?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(L,{}),"Loading..."]}
88):(0,t.jsx)("span",{className:"min-w-0 whitespace-normal break-words",children:ex})});return ev?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.SubscriptionForm,{ref:Y,targetTier:e,billingInterval:d,isMigration:m,teamId:ey,couponId:R,children:eI}),ec&&(0,t.jsx)(v.DowngradeRetentionDialog,{open:K,onOpenChange:Z,currentTier:a,targetTier:e,targetBillingInterval:d,subscriptionId:ec.id,scheduleId:ec.schedule,onConfirm:ep})]}):(0,t.jsxs)(t.Fragment,{children:[eI,ec&&(0,t.jsx)(v.DowngradeRetentionDialog,{open:K,onOpenChange:Z,currentTier:a,targetTier:e,targetBillingInterval:d,subscriptionId:ec.id,scheduleId:ec.schedule,onConfirm:ep})]})}e.s(["SubscriptionButton",()=>O],655328),e.s([],154507);var B=e.i(806934),R=e.i(206453),V=e.i(399331);let W=(0,e.i(711317).create)(e=>({pendingFaqId:null,mountedCount:0,requestFaqFocus:t=>e({pendingFaqId:t}),clearFaqFocus:()=>e({pendingFaqId:null}),registerFaqSection:()=>(e(e=>({mountedCount:e.mountedCount+1})),()=>e(e=>({mountedCount:Math.max(0,e.mountedCount-1)})))}));e.s(["useFaqFocusStore",0,W],772359);let z="Fair usage policy and speed limits apply.",H=()=>{let e=W(e=>e.requestFaqFocus);return W(e=>e.mountedCount>0)?(0,t.jsx)(R.Link,{onClick:()=>e(V.UNLIMITED_FAQ_ID),className:"mt-1 text-inherit leading-4 opacity-80 hover:text-inherit hover:opacity-100",children:z}):(0,t.jsx)("span",{className:"mt-1 block leading-4 opacity-80",children:z})},G=new Set(["unlimitedCreation"]),q=new Set(["minimaxH3PromoDiscount","minimaxH3MaxPromoDiscount","minimaxH3MaxTurboPromoDiscount"]);function K(e,i){let n=q.has(e),a=G.has(e);return n||a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:n?"whitespace-pre-line":void 0,children:i}),a&&(0,t.jsx)(H,{})]}):i}e.s(["UnlimitedPolicyNote",0,H,"withUnlimitedPolicyNote",()=>K],282014);let Z=[{name:(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Free),tier:n.SubscriptionType.Free},{name:(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Essential),tier:n.SubscriptionType.Essential},{name:(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Advanced),tier:n.SubscriptionType.Advanced},{name:(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Infinite),tier:n.SubscriptionType.Infinite,popular:!0},{name:(0,a.getSubscriptionDisplayName)(n.SubscriptionType.Wonder),tier:n.SubscriptionType.Wonder,best:!0}],X=["credits","addCredits","images","videos","director","characters","stories","models","parallelGenerations","unlimitedCreation"],Q=["premiumModels","imageTools","videoTools","storyCreation","storyboard","characterCreation","audioCreation","watermarkFreeExports","commercialUseRights","prioritySupport"];function Y(e,t){let i=m.TIER_FEATURE_VALUES[t],a=i?.[e];if(!a||null===a.value)return"−";let{value:r}=a;switch(r.type){case"number":{if(0===r.value)return"0";let i=r.value.toLocaleString(),a=r.prefix||"",s=r.suffix||"";if(["images","videos","director","characters","stories","models"].includes(e)&&t!==n.SubscriptionType.Free)return`${a}${i}${s} per month`;if("credits"===e)return`${i} credits/mo`;return`${a}${i}${s}`}case"boolean":return r.available?"✓":"×";case"text":return r.value;case"unlimited":if(t===n.SubscriptionType.Wonder)return"✓✓";return"✓";default:return"−"}}function J(e){return"✓"===e?(0,t.jsx)(s.Check,{className:"w-6 h-6 text-text-icon-success-default"}):"✓✓"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Check,{className:"w-6 h-6 text-text-icon-success-default"}),(0,t.jsx)(s.Check,{className:"w-6 h-6 text-text-icon-success-default -ml-2"})]}):"×"===e?(0,t.jsx)(l.IconCloseBold,{className:"w-6 h-6 text-text-icon-neutral-secondary"}):"−"===e?(0,t.jsx)("span",{className:"text-text-icon-neutral-secondary",children:"−"}):(0,t.jsx)("span",{className:"text-text-icon-neutral-secondary",children:e})}e.s(["ComparisonTable",0,({billingInterval:e,userContext:a,onBillingIntervalChange:s})=>{let l=X.map(e=>{let t=m.FEATURES.find(t=>t.id===e),i=t?.comparisonLabel||t?.label||e,n=Z.map(t=>Y(e,t.tier));return{featureId:e,label:i,values:n,tooltip:K(e,t?.tooltip)}}),g=Q.map(e=>{let t=m.FEATURES.find(t=>t.id===e),i=t?.comparisonLabel||t?.label||e,n=Z.map(t=>Y(e,t.tier));return{featureId:e,label:i,values:n,tooltip:K(e,t?.tooltip)}});return(0,t.jsxs)("div",{className:"bg-background-container-panel-surface rounded-xl",children:[(0,t.jsxs)("div",{className:"grid grid-cols-6 gap-4 p-6 border-b border-border-neutral-outline/20 sticky top-0 bg-background-container-panel-surface z-10 rounded-t-xl",children:[(0,t.jsxs)("div",{className:"col-span-1",children:[(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)("span",{className:"text-xl font-semibold text-text-icon-neutral-primary",children:"Plans"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-6",children:[(0,t.jsx)(r.Switch,{checked:"year"===e,onCheckedChange:e=>s?.(e?"year":"month"),className:"scale-75"}),(0,t.jsx)("span",{className:"text-xs text-text-icon-neutral-secondary",children:"Annually"}),"year"===e&&(0,t.jsxs)("span",{className:"shrink-0 whitespace-nowrap bg-background-success-soft text-text-icon-success-default text-[8px] font-bold px-1.5 py-0.5 rounded tracking-[0.42px]",children:[" ",a.claimableCoupon?.percentOff?`UP TO ${a.claimableCoupon.percentOff}% OFF`:a.pricingUsAnnualDiscount?.toggleLabel??(0,x.getDefaultDiscountLabel)("UP TO")]})]})]}),Z.map(i=>{let r=((t,i)=>{if(t===n.SubscriptionType.Free)return null;let a=i[t];return a?"year"===e?a.yearly:a.monthly:null})(i.tier,a.tierPrices);return(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("div",{className:"h-5 flex items-center justify-center mb-1",children:[i.popular&&(0,t.jsxs)("span",{className:"text-[10px] font-bold px-1.5 py-0.5 rounded flex items-center gap-0.5 uppercase tracking-[0.36px] text-black",style:{background:"linear-gradient(74.5deg, rgb(255, 109, 217) 5.37%, rgb(255, 206, 243) 56.11%, rgb(170, 255, 194) 112.49%)"},children:[(0,t.jsx)(d.IconHeartFill,{className:"w-2.5 h-2.5"}),"Most Popular"]}),i.best&&(0,t.jsxs)("span",{className:"text-[10px] font-bold px-1.5 py-0.5 rounded flex items-center gap-0.5 uppercase tracking-[0.36px] text-black",style:{background:"linear-gradient(90deg, #EFFF0D 0%, #61F0C7 100%)"},children:[(0,t.jsx)(c.IconStar,{className:"w-2.5 h-2.5"}
88),"Best Value"]})]}),(0,t.jsx)("span",{className:"text-lg font-semibold text-text-icon-neutral-primary",children:i.name}),null!==r&&(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsxs)("span",{className:"text-sm text-white",children:["$",r]}),(0,t.jsx)("span",{className:"text-xs text-white/40",children:"/Seat/mo"}),(0,t.jsx)(O,{targetTier:i.tier,currentTier:a.currentTier,isSubscriptionActive:a.isSubscriptionActive,isTeamMember:a.isTeamMember,isTeamOwner:a.isTeamOwner,currentBillingInterval:a.currentBillingInterval,selectedBillingInterval:e,isHighlightedTier:!0,className:"mt-2 py-1.5 text-xs"})]})]},i.name)})]}),(0,t.jsxs)("div",{className:"px-6 py-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)(o.IconCurrencyeth,{className:"w-5 h-5 text-text-icon-neutral-primary"}),(0,t.jsx)("span",{className:"text-base font-semibold text-text-icon-neutral-primary",children:"Credits Usage"})]}),l.map((e,n)=>(0,t.jsxs)("div",{className:(0,i.cn)("grid grid-cols-6 gap-4 py-3",n!==l.length-1&&"border-b border-white/5"),children:[(0,t.jsxs)("div",{className:"col-span-1 flex items-center gap-1 min-h-[28px]",children:[(0,t.jsx)("span",{className:"text-sm text-text-icon-neutral-secondary whitespace-nowrap",children:e.label}),e.tooltip&&(0,t.jsx)(B.Tooltip,{content:e.tooltip,side:"right",children:(0,t.jsx)("span",{className:"cursor-pointer shrink-0",children:(0,t.jsx)(u.Info,{className:"w-4 h-4 text-text-icon-neutral-secondary hover:text-text-icon-neutral-primary transition-colors"})})})]}),e.values.map((i,n)=>(0,t.jsx)("div",{className:"text-center text-sm flex items-center justify-center gap-0.5",children:J(i)},`${e.label}-${Z[n].name}`))]},e.label))]}),(0,t.jsxs)("div",{className:"px-6 py-4 border-t border-border-neutral-outline/20",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)(p.Sparkle,{className:"w-5 h-5 text-text-icon-neutral-primary"}),(0,t.jsx)("span",{className:"text-base font-semibold text-text-icon-neutral-primary",children:"Features"})]}),g.map((e,n)=>(0,t.jsxs)("div",{className:(0,i.cn)("grid grid-cols-6 gap-4 py-3",n!==g.length-1&&"border-b border-white/5"),children:[(0,t.jsxs)("div",{className:"col-span-1 flex items-center gap-1 min-h-[28px]",children:[(0,t.jsx)("span",{className:"text-sm text-text-icon-neutral-secondary whitespace-nowrap",children:e.label}),e.tooltip&&(0,t.jsx)(B.Tooltip,{content:e.tooltip,side:"right",children:(0,t.jsx)("span",{className:"cursor-pointer shrink-0",children:(0,t.jsx)(u.Info,{className:"w-4 h-4 text-text-icon-neutral-secondary hover:text-text-icon-neutral-primary transition-colors"})})})]}),e.values.map((i,n)=>(0,t.jsx)("div",{className:"text-center text-sm flex items-center justify-center gap-0.5",children:J(i)},`${e.label}-${Z[n].name}`))]},e.label))]})]})}],586382);let $=new Map,ee={warning:"bg-background-warning-soft text-text-icon-warning-default",brand:"bg-background-brand-soft text-text-icon-brand-default",neutral:"bg-background-container-panel-surface text-text-icon-neutral-secondary"};function et({tone:e,className:n,children:a}){return(0,t.jsx)("span",{className:(0,i.cn)("text-[10px] font-bold px-1 py-0.5 rounded shrink-0",ee[e],n),children:a})}function ei({ratePer1k:e,comparison:i}){return(0,t.jsxs)("div",{className:"rounded-lg bg-background-success-soft px-5 py-2.5",children:[(0,t.jsxs)("p",{className:"flex items-baseline gap-1 text-xs font-bold text-text-icon-success-default",children:[(0,t.jsx)("span",{className:"text-base",children:function(e,t=2){let i=$.get(t);return i||(i=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t,maximumFractionDigits:t}),$.set(t,i)),i.format(e)}(e)})," ",V.COST_PER_CREDIT_COPY.unit]}),i?.kind==="baseline"?(0,t.jsx)(et,{tone:"neutral",className:"mt-2 inline-flex",children:V.COST_PER_CREDIT_COPY.baseline}):i?.kind==="cheaper"?(0,t.jsxs)(et,{tone:"brand",className:"mt-2 inline-flex",children:[(0,t.jsx)("span",{children:i.percent}),V.COST_PER_CREDIT_COPY.cheaperThan," ",i.baselineName]}):null]})}e.s(["FeatureBadge",()=>et],275353),e.s(["CostPerCreditBox",()=>ei],346565)},589155,e=>{"use strict";var t=e.i(93801),i=e.i(834486),n=e.i(478790),a=e.i(464543),r=e.i(671550),s=e.i(668919),l=e.i(344884),o=e.i(368709),d=e.i(430116),c=e.i(917690),u=e.i(596706);let p=async e=>{let t=(0,r.buildCheckoutCancelPath)()??void 0,i=await (0,o.post)("/legacy/api/stripe/update_credit_pack",{...e,cancel_path:t}),{redirectUrl:n}=i;return n&&((0,d.setReturnTo)(),window.location.href=n),i};e.s(["useUpdateCreditPack",0,()=>{let e=(0,i.useQueryClient)(),{guardSponsoredAction:r}=(0,a.useSponsoredSubscriptionGuard)(),o=(0,t.useMutation)({mutationFn:p,onSuccess:async()=>{await (0,u.refetchAfterPlanMutation)(e,[c.legacySubscriptionKeys.currentPlan,l.TEAM_MEMBERS_QUERY_KEY,s.legacyTeamKeys.teamInfo])}}),d=(0,n.useCallback)((e,t)=>{r()&&o.mutate(e,t)},[r,o.mutate]);return{...o,mutate:d}}])},622110,165336,e=>{"use strict";let t=[40,50,60,70,80,90,100,150,200,300],i=[...Array.from({length:30},(e,t)=>t+1),...t];function n(e){return e<=0?0:e<=30?e:t[e-31]??t[t.length-1]}function a(e){if(e<=0)return 0;if(e<=30)return e;let i=t.findIndex(t=>t>=e);return i>=0?31+i:40}function r(e,t){return t&&e>0?a(e):1}e.s(["CREDIT_PACK_ALLOWED_DISPLAY_LEVELS",0,i,"CREDIT_PACK_MAX_ACTUAL_LEVEL",0,40,"getCreditPackActualLevel",()=>a,"getCreditPackDisplayLevel",()=>n,"getInitialCreditPackActualLevel",()=>r],165336);var s=e.i(6895),l=e.i(228650);function o(e){return e.isExpiredTeamPlan?"expireTeam":e.subscriptionActive?e.isTeamMember?"contactAdmin":e.tierIsAdvancedOrAbove?0!==e.currentLevel&&e.currentCreditPackActive?e.displayLevel===e.currentLevel?"afterPurchasedExtraCredits":e.displayLevel>e.currentLevel?"increaseExtraCredits":0===e.displayLevel?"cancelExtraCredits":"reduceExtraCredits":"availableButNotSubscribeExtraCredits":"subscribeButNotAvailable":"free"}let d={free:{text:`Subscribe to ${(0,l.getSubscriptionDisplayName)(s.SubscriptionType.Advanced)} to Unlock`,showPlusIcon:!1,buttonColor:"fixed-white"},subscribeButNotAvailable:{text:`Upgrade to ${(0,l.getSubscriptionDisplayName)(s.SubscriptionType.Advanced)} to Unlock`,showPlusIcon:!1,buttonColor:"fixed-white"},availableButNotSubscribeExtraCredits:{text:"Add to Plan",showPlusIcon:!0,buttonColor:"fixed-white"},afterPurchasedExtraCredits:{text:"Current Plan",showPlusIcon:!1,buttonColor:"neutral"},reduceExtraCredits:{text:"Reduce Credit Packs",showPlusIcon:!1,buttonColor:"fixed-white"},increaseExtraCredits:{text:"Increase Credit Packs",showPlusIcon:!1,buttonColor:"fixed-white"},cancelExtraCredits:{text:"Cancel Credit Packs",showPlusIcon:!1,buttonColor:"fixed-white"},contactAdmin:{text:"Contact Admin to Change Plan",showPlusIcon:!1,buttonColor:"neutral"},expireTeam:{text:"Switch to Personal Workspace",showPlusIcon:!1,buttonColor:"neutral"}};function c(e,t){return t&&("free"===e||"subscribeButNotAvailable"===e)}e.s(["ALLOWED_DISPLAY_LEVELS",0,i,"EXTRA_CREDIT_ACTION_CONFIG",0,d,"EXTRA_CREDIT_CREDITS_PER_UNIT",0,5e3,"EXTRA_CREDIT_PRICE_PER_UNIT",0,15,"MAX_LEVEL",0,40,"NO_EXTRA_CREDITS_LEVEL",0,0,"getActualLevel",0,a,"getDisplayLevel",0,n,"getExtraCreditActionKey",()=>o,"shouldUseExtraCreditSubscriptionForm",()=>c],622110)},619985,513437,e=>{"use strict";var t=e.i(743265),i=e.i(912360),n=e.i(647163);e.i(563178);var a=e.i(402098),r=e.i(622110);
88function s({value:e,onChange:s,displayLevel:l,compact:o=!1,triggerClassName:d,arrowVariant:c}){let u=l*r.EXTRA_CREDIT_CREDITS_PER_UNIT,p=[0,...r.ALLOWED_DISPLAY_LEVELS];return(0,t.jsxs)(i.Root,{value:String(e),onValueChange:e=>s(Number(e)),children:[(0,t.jsxs)(i.Trigger,{className:(0,n.cn)("flex items-center justify-between gap-2","text-text-icon-neutral-primary",o?"h-[30px] px-2 text-[11px]":"h-10 px-4 text-sm",o?"rounded":"rounded-full","border-0 outline-none cursor-pointer",o?"w-full md:w-[129px]":"w-full md:w-[240px]","whitespace-nowrap","hover:bg-background-neutral-soft transition-colors","data-[state=open]:bg-background-neutral-soft",d),children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap",children:(0,t.jsxs)(i.Value,{children:[u.toLocaleString()," credits /"," ",o?"mo":"month"]})}),(0,t.jsx)(i.Icon,{className:"mr-0.5 flex size-5 shrink-0 items-center justify-center",children:"triangle"===(c??(o?"triangle":"chevron"))?(0,t.jsx)(a.IconTriangleDown,{className:"size-4 text-text-icon-neutral-primary transition-transform data-[state=open]:rotate-180"}):(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"size-4 text-text-icon-neutral-primary transition-transform data-[state=open]:rotate-180",children:(0,t.jsx)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,t.jsx)(i.Portal,{children:(0,t.jsxs)(i.Content,{className:(0,n.cn)("bg-background-container-panel-surface border border-border-neutral-outline/40 rounded-xl","shadow-xl overflow-hidden z-50","min-w-[240px]","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"),position:"popper",sideOffset:4,children:[(0,t.jsx)(i.ScrollUpButton,{className:"flex items-center justify-center h-6 bg-background-container-panel-surface cursor-default",children:(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",className:"text-text-icon-neutral-primary",children:(0,t.jsx)("path",{d:"M12 10L8 6L4 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)(i.Viewport,{className:"p-1 max-h-[280px]",children:p.map(e=>{let a=e*r.EXTRA_CREDIT_CREDITS_PER_UNIT,s=e*r.EXTRA_CREDIT_PRICE_PER_UNIT,l=(0,r.getActualLevel)(e);return(0,t.jsxs)(i.Item,{value:String(l),className:(0,n.cn)("flex items-center justify-between gap-3","px-3 py-2.5 rounded-lg cursor-pointer","text-sm text-text-icon-neutral-secondary","outline-none","hover:bg-background-container-panel-base hover:text-text-icon-neutral-primary","data-highlighted:bg-background-container-panel-base data-highlighted:text-text-icon-neutral-primary","data-[state=checked]:bg-background-success-soft data-[state=checked]:text-text-icon-success-default"),children:[(0,t.jsxs)(i.ItemText,{className:"whitespace-nowrap",children:[a.toLocaleString()," credits / month"]}),(0,t.jsxs)("span",{className:"text-text-icon-neutral-secondary text-xs",children:["$",s,"/mo"]})]},e)})}),(0,t.jsx)(i.ScrollDownButton,{className:"flex items-center justify-center h-6 bg-background-container-panel-surface cursor-default",children:(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",className:"text-text-icon-neutral-primary",children:(0,t.jsx)("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})}function l({value:e,onChange:i,displayValue:a,compact:s=!1,trackClassName:l,variant:o="default"}){let d=e/r.MAX_LEVEL*100,c="redesign"===o,u=c?a>=100?56:48:s?a>=100?48:a>=10?42:36:a>=100?56:a>=10?48:40,p=`calc(${d}% - ${d/100*u}px)`,m=`calc(${d}% + ${(1-d/100)*u}px)`;return(0,t.jsxs)("div",{className:(0,n.cn)("relative touch-none","w-full","md:flex-1",c?"h-8":s?"h-[30px]":"h-10"),children:[(0,t.jsx)("div",{className:(0,n.cn)("absolute inset-0 rounded-full",c?"top-2 h-4":s?"h-[30px]":"h-10",l)}),(0,t.jsx)("div",{className:(0,n.cn)("absolute left-0 rounded-full",!c&&"transition-[width] duration-75",c?"top-2 h-4 bg-[var(--text-icon-brand-secondary-primary,#16D866)]":"top-0 bottom-0 bg-[#3FDD7833]",!c&&(s?"h-[30px]":"h-10")),style:{width:m}}),(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 flex items-center justify-center rounded-full",!c&&"transition-[left,width] duration-75",c?"h-8 bg-white":"bg-[#3FDD78]",!c&&(s?"h-[30px]":"h-10")),style:{left:p,width:`${u}px`,height:`${c?32:s?30:40}px`},children:(0,t.jsxs)("span",{className:(0,n.cn)("font-bold whitespace-nowrap",!c&&"text-text-icon-success-solid-high-contrast",c?"text-[14px] text-[#111113]":s?a>=100?"text-xs":"text-sm":a>=100?"text-sm":"text-lg"),children:[a,c?"X":"x"]})}),(0,t.jsx)("input",{type:"range",min:0,max:r.MAX_LEVEL,value:e,onCh
88ange:e=>i(Number(e.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"})]})}e.s(["ExtraCreditSelect",()=>s],619985),e.s(["ExtraCreditSlider",()=>l],513437)},156941,803407,e=>{"use strict";var t=e.i(743265),i=e.i(211920);function n(e){return .8*e}var a=e.i(539992),r=e.i(250193);function s(){let{data:e}=(0,r.useMyProfile)(),t=e?.last_used_workspace?.workspace_user_id??"";return!!(t&&t!==e?.id)}e.s(["useIsTeamWorkspace",()=>s],803407);let l=i.CAMPAIGN_COHORT_IDS["creditPackBonus20-202609"];function o({currentLevel:e,recipientUserId:i,forMember:o=!1}){var d;let c,u=(0,a.useCampaignCohorts)(),{data:p}=(0,r.useMyProfile)(),m=s(),x=!!p&&!m;return{notice:(c="number"==typeof(d=Date.now())?d:d.getTime())>=Date.parse("2026-09-16T00:00:00Z")&&c<=Date.parse("2026-10-01T06:59:59Z")&&x&&(!o||p?.id&&i===p.id)&&e<=0&&u?.ids?.includes(l)&&!u?.redeemedCohortIds?.includes(l)?(0,t.jsxs)(t.Fragment,{children:["LIMITED TIME OFFER:"," ",(0,t.jsxs)("span",{className:"font-semibold text-text-icon-warning-default-2",children:[20,"% OFF"]})," ","1st Month."," ","Expires September 30 11:59 PM PST"]}):null,discount:n}}e.s(["useCreditPack20OffPromo",()=>o],156941)},420928,422237,307039,e=>{"use strict";var t=e.i(743265),i=e.i(478790),n=e.i(779342),a=e.i(235764),r=e.i(683276),s=e.i(464543),l=e.i(589155),o=e.i(647163);e.i(814368);var d=e.i(450082);e.i(563178);var c=e.i(418939),u=e.i(872294),p=e.i(80095),m=e.i(619985),x=e.i(513437),g=e.i(622110),h=e.i(497439),b=e.i(165336),f=e.i(733285),v=e.i(414507),y=e.i(896753),w=e.i(430116),N=e.i(244547),T=e.i(642558),C=e.i(6895),j=e.i(228650),I=e.i(922211),S=e.i(399331),P=e.i(91509),k=e.i(156941);function _({children:e,targetTier:i,billingInterval:n}){return(0,t.jsx)(P.SubscriptionForm,{targetTier:i,billingInterval:n,children:e})}function A({subscriptionActive:e,currentCreditPackActive:r,currentLevel:c=g.NO_EXTRA_CREDITS_LEVEL,isTeamMember:u,billingInterval:m,variant:x="default"}){let P=(0,v.useSubscriptionsPath)(),{notice:A,discount:D}=(0,k.useCreditPack20OffPromo)({currentLevel:c}),{status:E}=(0,h.useSession)(),{signin:M}=(0,y.useAuth)(),{data:F}=(0,N.useCurrentWorkspace)(),{mutate:U,isPending:L}=(0,l.useUpdateCreditPack)(),{guardSponsoredAction:O}=(0,s.useSponsoredSubscriptionGuard)(),[B,R]=(0,i.useState)(()=>(0,b.getInitialCreditPackActualLevel)(c,r??!1));(0,i.useEffect)(()=>{R((0,b.getInitialCreditPackActualLevel)(c,r??!1))},[c,r]);let V=(0,g.getDisplayLevel)(B),W="authenticated"===E,z=()=>{if(!W){(0,T.event)("sign_up_sign_in_entry_clicked",{source:"pricing_page_advanced"}),M("pricing_page_advanced");return}O()&&((0,w.setReturnTo)(),(0,T.event)("subscription_started",{subscription_tier:"advanced",subscription_interval:m??"month"}))},H=()=>{(0,a.trackSubscriptionEngaged)({module:"add_to_plan",subscription_tier:"extra_credits",subscription_interval:m??"month"})},{currentTier:G}=(0,f.useSubscriptionTier)(),q=(0,g.getExtraCreditActionKey)({subscriptionActive:e,tierIsAdvancedOrAbove:G>=C.SubscriptionType.Advanced,currentCreditPackActive:r??!1,currentLevel:c,displayLevel:V,isTeamMember:u??!1,isExpiredTeamPlan:G===C.SubscriptionType.Team&&!F?.subscription_active}),K={...g.EXTRA_CREDIT_ACTION_CONFIG[q],onClick:{free:z,subscribeButNotAvailable:z,availableButNotSubscribeExtraCredits:()=>{O()&&(H(),U({subscription_credit_pack_active:!0,subscription_credit_pack_num:V},{onError:e=>{n.toast.error(e.message||"Failed to add credit pack")},onSuccess:()=>{n.toast.success(`Credit pack added to ${V} successfully!`)}}))},afterPurchasedExtraCredits:()=>{window.location.href=P},reduceExtraCredits:()=>{O()&&U({subscription_credit_pack_active:!0,subscription_credit_pack_num:V},{onSuccess:()=>{n.toast.success(`Credit pack reduced to ${V} successfully!`)},onError:e=>{n.toast.error(e.message||"Failed to reduce credit pack. Please try again later.")}})},increaseExtraCredits:()=>{O()&&(H(),U({subscription_credit_pack_active:!0,subscription_credit_pack_num:V},{onSuccess:()=>{n.toast.success(`Credit pack increased to ${V} successfully!`)},onError:e=>{n.toast.error(e.message||"Failed to increase credit pack. Please try again later.")}}))},cancelExtraCredits:()=>{O()&&U({subscription_credit_pack_active:!1,subscription_credit_pack_num:0},{onSuccess:()=>{n.toast.success("Credit pack cancelled successfully!")},onError:e=>{n.toast.error(e.message||"Failed to cancel credit pack. Please try again later.")}})},contactAdmin:()=>{},expireTeam:()=>{}}[q],buttonContainer:(0,g.shouldUseExtraCreditSubscriptionForm)(q,W)?_:void 0},Z=Date.now()<S.CREDIT_PACK_50_OFF_END_MS?(0,t.jsxs)(t.Fragment,{children:["LIMITED TIME OFFER:"," ",(0,t.jsxs)("span",{className:"font-bold text-text-icon-neutral-primary",children:[S.CREDIT_PACK_FIRST_MONTH_DISCOUNT_PERCENT,"% OFF"]})," ","1st Month"]}):null;return{actualLevel:B,setActualLevel:R,displayLevel:V,pricePerMonth:V*g.EXTRA_CREDIT_PRICE_PER_UNIT,actionKey:q,promoLine:Z,creditPackPromoNotice:A,creditPack20OffDiscount:D,currentPlanLabel:e?function(e){switch(e){case C.SubscriptionType.Essential:case C.SubscriptionType.Advanced:case C.SubscriptionType.Infinite:case C.SubscriptionType.Wonder:case C.SubscriptionType.Team:return(0,j.getSubscriptionDisplayName)(e);default:return null}}(G):null,isUpdating:L,renderActionButton:()=>{let e=K.buttonContainer,i="contactAdmin"===q||L,n="fixed-white"===K.buttonColor,a=("default"===x||"redesign"===x)&&!L&&!!K.showPlusIcon,r=(0,t.jsx)(I.Plus,{className:"redesign"===x?"size-6":"w-5 h-5"}),s=K.text;"redesign"===x&&"availableButNotSubscribeExtraCredits"===q&&(s="Add to plan");let l=(0,t.jsx)(d.Button,{variant:"solid",color:K.buttonColor,size:"40",highContrast:!0,iconStart:a?r:void 0,onClick:K.onClick,disabled:i,className:(0,o.cn)("w-full font-semibold",n&&"text-text-icon-fixed-black-high-contrast","passive"===x&&"rounded-[5px]","standalone"===x&&"h-11 rounded-[5px] text-[16px] font-bold","redesign"===x&&"h-12 rounded-[12px] bg-[#edeef0] text-[16px] font-semibold text-[#111113] hover:bg-[#edeef0]/95 md:h-10 md:text-[14px]",i&&"cursor-not-allowed opacity-70"),children:L?(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Spinner,{className:"animate-spin h-4 w-4"}),"Loading..."]}):s});return e?(0,t.jsx)(e,{targetTier:C.SubscriptionType.Advanced,billingInterval:m??"month",children:l}):l}}}function D(e){let h,b,f,v,{actualLevel:y,setActualLevel:w,displayLevel:N,pricePerMonth:T,promoLine:C,creditPackPromoNotice:j,creditPack20OffDiscount:I,renderActionButton:S}=A(e),P=e.isTeamMember??!1,k=(e.currentCreditPackActive??!1)&&!P,_=e.currentLevel??0,D=(0,g.getActualLevel)(_),E=_*g.EXTRA_CREDIT_PRICE_PER_UNIT,[M,F]=(0,i.useState)(1),U=(0,g.getDisplayLevel)(M),L=U*g.EXTRA_CREDIT_PRICE_PER_UNIT,{mutate:O,isPending:B}=(0,l.useUpdateCreditPack)(),{guardSponsoredAction:R}
88=(0,s.useSponsoredSubscriptionGuard)();return(0,i.useEffect)(()=>{k&&w(D+1)},[k,D,w]),k?(h=M,b=e=>{F(e),w(D+e)},f=U,v=L):(h=y,b=w,f=N,v=T),(0,t.jsxs)("div",{className:(0,o.cn)("flex h-auto rounded-xl",e.className),children:[(0,t.jsx)("div",{className:"w-[5px] bg-[#3FDD78] rounded-tl rounded-bl shrink-0"}),(0,t.jsxs)("div",{className:"bg-[#1A1A1A] flex-1 p-5 rounded-tr-xl rounded-br-xl overflow-visible flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(u.Sparkle,{className:"w-4 h-4 text-text-icon-success-default"}),(0,t.jsx)("span",{className:"text-[13.5px] font-semibold text-text-icon-success-default",children:"Optional add-on"})]}),(0,t.jsx)("a",{href:"/suite/subscriptions",className:"text-xs text-text-icon-neutral-secondary underline hover:text-text-icon-neutral-primary",children:"Manage"})]}),k?(0,t.jsxs)("div",{className:"text-sm text-text-icon-neutral-secondary mb-4",children:["Current Credit: $",E,"/month"]}):null,(0,t.jsxs)("div",{className:(0,o.cn)("flex items-baseline gap-1",j?"mb-0":"mb-4"),children:[(0,t.jsx)("span",{className:"text-xl font-bold text-text-icon-neutral-primary mr-1",children:"Extra Credit"}),j?(0,t.jsxs)("span",{className:"text-xl font-light text-text-icon-neutral-secondary line-through",children:["$",v]}):null,(0,t.jsxs)("span",{className:"text-[32px] font-medium text-[#3FDD78]",children:["$",j?I(v):v]}),(0,t.jsx)("span",{className:"text-base text-text-icon-neutral-primary",children:"/month"})]}),j?(0,t.jsx)(r.Callout,{variant:"neutral",className:"mb-4",children:j}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-3 pb-4 md:flex-row",children:[(0,t.jsx)(x.ExtraCreditSlider,{value:h,onChange:b,displayValue:f,trackClassName:"bg-background-container-panel-base"}),(0,t.jsx)(m.ExtraCreditSelect,{value:h,onChange:b,displayLevel:f,triggerClassName:"bg-background-container-panel-base"})]})]}),(0,t.jsxs)("div",{className:"mt-auto",children:[(0,t.jsx)("div",{className:"mb-2",children:k?(0,t.jsx)(d.Button,{variant:"solid",color:"fixed-white",size:"40",highContrast:!0,disabled:0===U||B,className:(0,o.cn)("w-full font-semibold text-text-icon-fixed-black-high-contrast",(0===U||B)&&"cursor-not-allowed opacity-70"),onClick:()=>{if(!R())return;(0,a.trackSubscriptionEngaged)({module:"add_to_plan",subscription_tier:"extra_credits",subscription_interval:e.billingInterval??"month"});let t=_+U;O({subscription_credit_pack_active:!0,subscription_credit_pack_num:t},{onSuccess:()=>{n.toast.success(`Credit pack increased to ${t} successfully!`)},onError:e=>{n.toast.error(e.message||"Failed to add credit pack. Please try again later.")}})},children:B?(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Spinner,{className:"animate-spin h-4 w-4"}),"Loading..."]}):"Add credit pack"}):S()}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(c.Check,{className:"w-5 h-5 text-text-icon-success-default"}),(0,t.jsx)("span",{className:"text-xs text-text-icon-neutral-secondary",children:"Flexible Usage"})]}),C?(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(c.Check,{className:"w-5 h-5 text-text-icon-success-default"}),(0,t.jsx)("span",{className:"text-xs text-text-icon-neutral-secondary",children:C})]}):null]}),(0,t.jsx)("a",{href:"/suite/help-center#credit-usage",target:"_blank",className:"text-xs text-text-icon-neutral-secondary underline hover:text-text-icon-neutral-primary shrink-0",rel:"noopener",children:"Learn more"})]})]})]})]})}e.s(["useExtraCredits",()=>A],422237),e.s(["ExtraCreditsCardDefault",()=>D],420928);var E=e.i(278560);function M(e){let{className:i}=e,{actualLevel:n,setActualLevel:a,displayLevel:s,pricePerMonth:l,promoLine:d,creditPackPromoNotice:c,creditPack20OffDiscount:p,renderActionButton:g}=A(e);return(0,t.jsxs)("div",{className:(0,o.cn)("flex w-full flex-col","md:w-[370px] md:shrink-0",i),children:[(0,t.jsx)("div",{className:"h-[5px] w-full shrink-0 rounded-t-xl bg-background-success-solid"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-[34px] rounded-b-xl bg-[#1A1A1A]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-5 border-b border-border-neutral-divider px-3 pt-4 pb-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[18px]",children:[(0,t.jsx)("div",{className:"rounded bg-[#2e2e2e] p-2 text-center text-base font-medium tracking-[-0.24px] text-[#ccc]",children:"Need just a bit more? Add extra credits."}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(u.Sparkle,{className:"size-[22px] text-text-icon-success-default"}),(0,t.jsx)("span",{className:"text-xl font-semibold text-text-icon-success-default",children:"Optional add-on"})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2",children:[(0,t.jsx)("span",{className:"text-xl font-bold text-text-icon-neutral-primary",children:"Extra Credit"}),c?(0,t.jsxs)("span",{className:"text-xl font-light text-text-icon-neutral-secondary line-through",children:["$",l]}):null,(0,t.jsxs)("span",{className:"text-[32px] font-medium text-text-icon-success-default",children:["$",c?p(l):l]}),(0,t.jsx)("span",{className:"text-base text-text-icon-neutral-primary",children:"/month"})]}),c?(0,t.jsx)(r.Callout,{variant:"neutral",children:c}):null]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 md:flex-row md:items-center",children:[(0,t.jsx)(x.ExtraCreditSlider,{value:n,onChange:a,displayValue:s,compact:!0,trackClassName:"bg-[#292929]"}),(0,t.jsx)(m.ExtraCreditSelect,{value:n,onChange:a,displayLevel:s,compact:!0,triggerClassName:"bg-[#292929]"})]})]}),g()]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 px-3 pb-6",children:[(0,t.jsx)(F,{label:"Flexible Usage:",body:"Adjust or cancel packs each month as needed."}),d?(0,t.jsxs)("div",{className:"flex items-start gap-[5px]",children:[(0,t.jsx)(E.IconTickCircleFill,{className:"mt-px size-5 shrink-0 text-text-icon-success-default"}),(0,t.jsx)("span",{className:"flex-1 text-sm leading-[22px] text-text-icon-neutral-default",children:d})]}):null]})]})]})}function F({label:e,body:i}){return(0,t.jsxs)("div",{className:"flex items-start gap-[5px]",children:[(0,t.jsx)(E.IconTickCircleFill,{className:"mt-px size-5 shrink-0 text-text-icon-success-default"}),(0,t.jsxs)("span",{className:"flex-1 text-sm leading-[22px] text-[#ccc]",children:[(0,t.jsx)("span",{className:"font-semibold text-text-icon-neutral-primary",children:e})," ",i]})]})}e.s(["ExtraCreditsCardPassive",()=>M],307039)},861569,e=>{"use strict";var t=e.i(497439),i=e.i(478790),n=e.i(642558),a=e.i(896753);e.s(["useRequireAuth",0,()=>{let{status:e}=(0,t.useSession)(),{signin:r}=(0,a.useAuth)(),s="authenticated"===e,l="loading"===e,o=(0,i.useCallback)(e=>{if(l)return!1;if(!s){let t=e?.analyticObject;return t?.eventName&&(0,n.event)(t.eventName,t.eventProperties),r(t?.eventName==="sign_up_sign_in_entry_clicked"?t.eventProperties?.source:void 0),!1}return!0},[s,l,r]),d=(0,i.useCallback)(e=>(...t)=>{if(o())return e(...t)},[o]),c=(0,i.useCallback)((e,t)=>i=>o(t)?e(i):void i.preventDefault(),[o]);return{isLoggedIn:s,isLoading:l,checkAuth:o,withAuth:d,withAuthEvent:c,signin:r}}])},713689,925596,478912,e=>{"use strict";var t=e.i(743265),i=e.i(733285),n=e.i(206864),a=e.i(281133),r=e.i(420928),s=e.i(307039),l=e.i(861569),o=e.i(683276),d=e.i(647163),c=e.i(450082);e.i(563178);var u=e.i(418939),p=e.i(438679),m=e.i(619985),x=e.i(513437),g=e.i(422237);function h({title:e,description:i}){return(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsx)("div",{className:"flex size-7 shrink-0 items-center justify-center",children:(0,t.jsx)(u.Check,{className:"size-3.5 text-[var(--text-icon-brand-secondary-primary,#16D866)]"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1 py-1",children:[(0,t.jsx)("div",{className:"text-[12px] font-semibold leading-4 tracking-[0.05px] text-white",children:e}),(0,t.jsx)("div",{className:"text-[12px] font-normal leading-4 tracking-[0.05px] text-[#b0b4ba]",children:i})]})]})}function b(e){let{withAuthEvent:i}=(0,l.useRequireAuth)(),{actualLevel:n,setActualLevel:a,displayLevel:r,pricePerMonth:s,currentPlanLabel:b,promoLine:f,creditPackPromoNotice:v,creditPack20OffDiscount:y,renderActionButton:w}=(0,g.useExtraCredits)(e),N=b?`Your current plan is ${b}`:null,T=e.forceMobileLayout??!1,C="stacked"===e.redesignControl
88sLayout,j=(0,t.jsx)(x.ExtraCreditSlider,{value:n,onChange:a,displayValue:r,trackClassName:(0,d.cn)("bg-[rgba(221,234,248,0.08)]",!T&&"md:bg-[#34383c]"),variant:"redesign"});return(0,t.jsxs)("section",{className:(0,d.cn)("flex h-full w-full min-h-[424px] flex-col gap-5 overflow-hidden rounded-[20px] bg-[#1b1d1f] p-5",!T&&"md:min-h-[282px] md:gap-2 md:rounded-[20px] md:border md:border-[rgba(214,225,255,0.02)] md:bg-[linear-gradient(180deg,#232526_0%,#242628_100%)] md:p-5",!T&&"md:shadow-[inset_0_1px_0_rgba(255,255,255,0.1)]",e.className),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("h3",{className:(0,d.cn)("flex items-center gap-1 text-[14px] font-semibold normal-case leading-5 tracking-[-0.03px] text-white",!T&&"md:gap-0 md:pl-1.5 md:text-[18px] md:font-semibold md:leading-6 md:tracking-[-0.25px]"),children:[(0,t.jsx)(p.IconPricingOptionalAddOn,{className:(0,d.cn)("size-4 text-white",!T&&"md:hidden")}),"Optional Add-On"]}),(0,t.jsxs)("div",{className:(0,d.cn)("hidden items-center gap-1.5",!T&&"md:flex"),children:[(0,t.jsx)("a",{href:"/suite/help-center#credit-usage",target:"_blank",className:"hidden h-6 items-center rounded-[6px] px-1.5 py-1 text-[11px] font-medium leading-4 tracking-[0.1px] text-[#b0b4ba] underline transition-colors hover:text-white md:flex",rel:"noopener",children:"Learn more"}),(0,t.jsx)("a",{href:"/suite/subscriptions",onClick:i(()=>{}),className:(0,d.cn)((0,c.buttonVariants)({variant:"soft",color:"neutral",size:"32",highContrast:!1}),"h-6 rounded-[6px] px-1.5 py-1 text-[11px] font-medium leading-4 tracking-[0.1px] md:font-semibold"),children:"Manage"})]})]}),(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-col gap-7",!T&&"md:flex-1 md:gap-0 md:rounded-[16px] md:bg-[rgba(214,225,255,0.04)] md:pb-4 md:pl-6 md:pr-4 md:pt-3"),children:[(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-col gap-6",!T&&(C?"md:gap-6":"md:gap-3")),children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-wrap items-start gap-1.5",!T&&"md:items-end"),children:[(0,t.jsx)("span",{className:(0,d.cn)("flex h-[46px] items-end text-[18px] font-bold leading-[38px] tracking-[-0.25px] text-white",!T&&"md:mr-1 md:font-semibold md:leading-[38px]"),children:"Extra Credit"}),v?(0,t.jsxs)("span",{className:"flex h-[46px] items-end text-[24px] font-normal leading-[38px] text-[#b0b4ba] line-through",children:["$",s]}):null,(0,t.jsxs)("span",{className:(0,d.cn)("h-[46px] text-[36px] font-semibold leading-[49.68px] text-[#16d866]"),children:["$",v?y(s):s]}),(0,t.jsx)("span",{className:(0,d.cn)("pt-[18px] text-[12px] font-normal leading-5 tracking-[0.05px] text-[#b0b4ba]",!T&&"md:font-normal md:text-white"),children:"/month"})]}),v?(0,t.jsx)(o.Callout,{variant:"neutral",children:v}):null]}),(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-col gap-6",!T&&(C?"md:flex md:flex-col md:items-stretch md:gap-5":"md:grid md:grid-cols-[minmax(0,1fr)_minmax(200px,220px)] md:items-center md:gap-2")),children:[C?(0,t.jsx)("div",{className:"h-8 w-full",children:j}):j,(0,t.jsx)(m.ExtraCreditSelect,{value:n,onChange:a,displayLevel:r,triggerClassName:(0,d.cn)("h-10 w-full rounded-[10px] border-0 bg-[rgba(221,234,248,0.08)] px-3 text-[14px] text-white",C?"md:w-full":"md:w-[220px]"),arrowVariant:"chevron"})]})]}),(0,t.jsxs)("div",{className:(0,d.cn)("flex min-h-12 flex-col items-center gap-2.5",!T&&"md:mt-3 md:min-h-0"),children:[w(),N?(0,t.jsx)("p",{className:(0,d.cn)("text-center text-[12px] font-normal leading-4 tracking-[0.05px] text-[#b0b4ba]",!T&&"md:hidden"),children:N}):null]}),(0,t.jsx)("div",{className:(0,d.cn)("h-px w-full bg-[rgba(214,225,255,0.04)]",!T&&"md:hidden")}),(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-col gap-2 rounded-[12px]",!T&&"md:hidden"),children:[(0,t.jsx)(h,{title:"Available in 5,000-credit increments.",description:"Purchase additional credits whenever you need them."}),(0,t.jsx)(h,{title:"Credits roll over",description:"Unused add-on credits carry over to next month."})]})]}),(0,t.jsxs)("div",{className:(0,d.cn)("hidden flex-wrap items-center gap-0",!T&&"md:flex"),children:[(0,t.jsxs)("div",{className:"flex items-center rounded-[6px] pr-2.5",children:[(0,t.jsx)("div",{className:"flex size-7 shrink-0 items-center justify-center",children:(0,t.jsx)(u.Check,{className:"size-3.5 text-[var(--text-icon-brand-secondary-primary,#16D866)]"})}),(0,t.jsx)("span",{className:"text-[12px] font-normal leading-4 tracking-[0.05px] text-white",children:"Available in 5,000-credit increments."})]}),f?(0,t.jsxs)("div",{className:"flex items-center rounded-[6px] pr-2.5",children:[(0,t.jsx)("div",{className:"flex size-7 shrink-0 items-center justify-center",children:(0,t.jsx)(u.Check,{className:"size-3.5 text-[var(--text-icon-brand-secondary-primary,#16D866)]"})}),(0,t.jsx)("span",{className:"text-[12px] font-normal leading-4 tracking-[0.05px] text-white",children:f})]}):null]})]})}var f=e.i(6895),v=e.i(228650),y=e.i(278560);function w(e){let{className:i,standaloneControlsAppearance:n="control"}=e,a="redesign"===n,{actualLevel:r,setActualLevel:s,displayLevel:l,pricePerMonth:c,promoLine:u,creditPackPromoNotice:p,creditPack20OffDiscount:h,renderActionButton:b}=(0,g.useExtraCredits)(e);return(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col gap-5",i),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[18px] rounded-2xl bg-[#343434] px-3 pt-3 pb-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end gap-x-2",children:[(0,t.jsx)("span",{className:"text-2xl font-bold tracking-tight text-text-icon-neutral-primary",children:"Extra Credit"}),p?(0,t.jsxs)("span",{className:"text-2xl font-light leading-[49px] text-text-icon-neutral-secondary line-through",children:["$",c]}):null,(0,t.jsxs)("span",{className:(0,d.cn)("text-4xl font-medium leading-[49px]",a?"text-[#9AF54A]":"text-[#3FDD78]"),
88children:["$",p?h(c):c]}),(0,t.jsx)("span",{className:"text-base text-text-icon-neutral-primary",children:"/month"})]}),(0,t.jsxs)("p",{className:"text-[14px] leading-[23px] text-text-icon-neutral-default",children:["Available on ",(0,v.getSubscriptionDisplayName)(f.SubscriptionType.Advanced)," ","plan and above — Add extra monthly credits to your plan."," ",(0,t.jsx)("a",{href:"/suite/help-center#credit-usage",target:"_blank",rel:"noopener",className:"underline hover:text-text-icon-neutral-secondary",children:"Learn more."})]}),p?(0,t.jsx)(o.Callout,{variant:"neutral",children:p}):null]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 md:flex-row md:items-center",children:[(0,t.jsx)(x.ExtraCreditSlider,{value:r,onChange:s,displayValue:l,trackClassName:a?"bg-[rgba(221,234,248,0.08)]":"bg-[#292929]",variant:a?"redesign":"default"}),(0,t.jsx)(m.ExtraCreditSelect,{value:r,onChange:s,displayLevel:l,triggerClassName:(0,d.cn)("md:w-[230px]",a?"rounded-[10px] bg-[rgba(221,234,248,0.08)] text-white":"rounded bg-[#292929]"),arrowVariant:a?"chevron":"triangle"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 text-[12px] leading-[19px] text-white",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y.IconTickCircleFill,{className:"size-4 shrink-0 text-text-icon-success-default"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-bold",children:"Flexible Usage: "}),(0,t.jsx)("span",{children:"Adjust or cancel packs each month as needed."})]})]}),u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y.IconTickCircleFill,{className:"size-4 shrink-0 text-text-icon-success-default"}),(0,t.jsx)("span",{className:"text-text-icon-neutral-default",children:u})]}):null]}),(0,t.jsx)("div",{className:"mt-auto",children:b()})]})}function N(e){let{variant:l="default"}=e,{currentTier:o}=(0,i.useSubscriptionTier)(),{isBusiness:d}=(0,n.useTeamInfo)();return(0,a.isBusinessTier)(o)||d?null:"passive"===l?(0,t.jsx)(s.ExtraCreditsCardPassive,{...e}):"redesign"===l?(0,t.jsx)(b,{...e}):"standalone"===l?(0,t.jsx)(w,{...e}):(0,t.jsx)(r.ExtraCreditsCardDefault,{...e})}e.i(622110),e.s(["ExtraCreditsCard",()=>N],713689);var T=e.i(884270),C=e.i(478790);e.i(392435);var j=e.i(780951),I=e.i(803407),S=e.i(283995);function P(){let e=(0,I.useIsTeamWorkspace)(),t=(0,j.useAbTest)(S.AB_FLAGS.mcpDiscountPersonalEnabled,!1);return!e&&t}e.s(["useMcpDiscountPromoEnabled",()=>P],925596);var k=e.i(414507),_=e.i(922211),A=e.i(399331),D=e.i(772359);e.s(["FaqSection",0,({className:e,actionIconVariant:i="plain"})=>{let n=(0,k.useSubscriptionsPath)(),a=P(),r=(0,A.getFaqs)(n,a),s="ghost-circle"===i,[l,o]=(0,C.useState)([]),c=(0,D.useFaqFocusStore)(e=>e.pendingFaqId),u=(0,D.useFaqFocusStore)(e=>e.clearFaqFocus),p=(0,C.useRef)(new Map),m=(0,D.useFaqFocusStore)(e=>e.registerFaqSection);return(0,C.useEffect)(()=>m(),[m]),(0,C.useEffect)(()=>{if(!c)return;let e=p.current.get(c);e?.offsetParent&&(o(e=>e.includes(c)?e:[...e,c]),requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.scrollIntoView({block:"center",behavior:"smooth"})})}),u())},[c,u]),(0,t.jsx)("div",{className:(0,d.cn)(s?"py-2 md:px-[140px]":"pt-8",e),children:(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-col gap-6",!s&&"md:flex-row md:gap-20"),children:[(0,t.jsx)("h2",{className:(0,d.cn)("font-bold text-white",s?"text-[36px] leading-[38px]":"text-2xl text-text-icon-neutral-primary md:shrink-0 md:text-3xl"),children:"FAQs"}),(0,t.jsx)(T.Root,{type:"multiple",value:l,onValueChange:o,className:"flex-1 space-y-0",children:r.map((e,i)=>(0,t.jsxs)(T.Item,{value:e.id,ref:t=>{t?p.current.set(e.id,t):p.current.delete(e.id)},className:(0,d.cn)("scroll-mt-20",s?i!==r.length-1&&"mb-6 border-b border-border-neutral-outline/20 pb-6":0!==i&&"border-t border-border-neutral-outline/20"),children:[(0,t.jsx)(T.Header,{children:(0,t.jsxs)(T.Trigger,{className:(0,d.cn)("w-full flex items-center justify-between cursor-pointer group","text-left transition-colors",s?"py-0 text-[14px] font-medium leading-5 tracking-[-0.03px] text-white hover:text-white/80":"py-4 text-base font-normal text-text-icon-neutral-primary hover:text-text-icon-neutral-secondary md:py-6 md:text-xl"),children:[(0,t.jsx)("span",{className:"pr-4",children:e.question}),(0,t.jsx)("span",{className:(0,d.cn)("flex shrink-0 items-center justify-center",s?"size-8 rounded-[23px] bg-[rgba(221,234,248,0.08)] p-2 opacity-[0.88]":"size-5"),children:(0,t.jsx)(_.Plus,{className:(0,d.cn)(s?"size-4 text-[#EDEEF0]":"size-5 text-text-icon-neutral-secondary","transition-transform group-data-[state=open]:rotate-45")})})]})}),(0,t.jsx)(T.Content,{className:(0,d.cn)("overflow-hidden text-text-icon-neutral-secondary","data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp",s?"pb-3 pt-3 text-[14px] leading-5":"pb-4 text-sm md:pb-6 md:text-base"),children:(0,t.jsx)("div",{children:e.answer})})]},e.id))})]})})}],478912)},105654,e=>{"use strict";var t=e.i(478790);function i({scrollLeft:e,scrollWidth:t,clientWidth:i}){return{canScrollLeft:e>2,canScrollRight:e<Math.max(0,t-i)-2}}function n(e,t,i){let n=e*t;return"left"===i?-n:n}function a(e={}){let{scrollFraction:r=.8,deps:s=[]}=e,l=(0,t.useRef)(null),[o,d]=(0,t.useState)(!1),[c,u]=(0,t.useState)(!1),p=(0,t.useCallback)(()=>{let e=l.current;if(!e)return;let t=i({scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,clientWidth:e.clientWidth}
88);d(t.canScrollLeft),u(t.canScrollRight)},[]);(0,t.useEffect)(()=>{let e=l.current;if(!e)return;let t=new ResizeObserver(()=>p());t.observe(e);let i=requestAnimationFrame(()=>p());return()=>{cancelAnimationFrame(i),t.disconnect()}},[p,...s]);let m=(0,t.useCallback)(()=>{let e=l.current;e&&e.scrollBy({left:n(e.clientWidth,r,"left"),behavior:"smooth"})},[r]),x=(0,t.useCallback)(()=>{let e=l.current;e&&e.scrollBy({left:n(e.clientWidth,r,"right"),behavior:"smooth"})},[r]);return{scrollRef:l,canScrollLeft:o,canScrollRight:c,scrollLeft:m,scrollRight:x,onScroll:p}}e.s(["getHorizontalScrollState",()=>i,"useHorizontalScrollControls",()=>a])},561240,274346,127989,408657,571876,555440,997220,e=>{"use strict";var t=e.i(743265),i=e.i(478790),n=e.i(105654),a=e.i(647163),r=e.i(6895),s=e.i(228650);e.i(814368);var l=e.i(881836);e.i(563178);var o=e.i(35610),d=e.i(377513),c=e.i(743679),u=e.i(979573),p=e.i(963912),m=e.i(570685),x=e.i(711946),g=e.i(817941),h=e.i(38386),b=e.i(900378),f=e.i(302250);e.i(154507);var v=e.i(655328),y=e.i(806934),w=e.i(282014);let N="h-[164px]",T="border-[rgba(214,225,255,0.12)]",C=[{name:(0,s.getSubscriptionDisplayName)(r.SubscriptionType.Free),tier:r.SubscriptionType.Free},{name:(0,s.getSubscriptionDisplayName)(r.SubscriptionType.Essential),tier:r.SubscriptionType.Essential},{name:(0,s.getSubscriptionDisplayName)(r.SubscriptionType.Advanced),tier:r.SubscriptionType.Advanced},{name:(0,s.getSubscriptionDisplayName)(r.SubscriptionType.Infinite),tier:r.SubscriptionType.Infinite,popular:!0},{name:(0,s.getSubscriptionDisplayName)(r.SubscriptionType.Wonder),tier:r.SubscriptionType.Wonder,best:!0}],j=["credits","addCredits","images","videos","director","characters","stories","models","parallelGenerations","unlimitedCreation"],I=["premiumModels","imageTools","videoTools","storyCreation","storyboard","characterCreation","audioCreation","watermarkFreeExports","commercialUseRights","prioritySupport"];function S(e){return e.map(e=>{let t=b.FEATURES.find(t=>t.id===e),i=t?.comparisonLabel||t?.label||e,n=C.map(t=>(function(e,t){let i=b.TIER_FEATURE_VALUES[t],n=i?.[e];if(!n||null===n.value)return"−";let{value:a}=n;switch(a.type){case"number":{if(0===a.value)return"0";let i=a.value.toLocaleString(),n=a.prefix||"",s=a.suffix||"";if(["images","videos","director","characters","stories","models"].includes(e)&&t!==r.SubscriptionType.Free)return`${n}${i}${s} per month`;if("credits"===e)return`${i} credits/mo`;return`${n}${i}${s}`}case"boolean":return a.available?"✓":"×";case"text":return a.value;case"unlimited":return t===r.SubscriptionType.Wonder?"✓✓":"✓";default:return"−"}})(e,t.tier));return{featureId:e,label:i,values:n,tooltip:(0,w.withUnlimitedPolicyNote)(e,t?.tooltip)}})}function P({value:e}){let i=e.match(/^([~$]?\d[\d,.]*)(.*)$/);if(!i)return(0,t.jsx)("span",{className:"text-[14px] font-normal leading-5 text-[rgba(255,255,255,0.58)]",children:e});let[,n,a]=i;return(0,t.jsxs)("span",{className:"text-[14px] font-normal leading-5",children:[(0,t.jsx)("span",{className:"text-white",children:n}),(0,t.jsx)("span",{className:"text-[rgba(255,255,255,0.58)]",children:a})]})}function k({children:e}){return(0,t.jsx)("span",{className:"inline-flex h-[18px] items-center rounded-[5px] bg-[rgba(250,130,0,0.13)] px-1 text-[11px] font-semibold leading-4 tracking-[0.1px] text-[#ffc53d]",children:e})}function _({direction:e,onClick:i}){let n="left"===e?u.IconArrowLeftBold:p.IconArrowRightBold;return(0,t.jsx)("button",{type:"button",onClick:i,className:(0,a.cn)("pointer-events-auto absolute top-[42px] z-20 flex size-10 cursor-pointer items-center justify-center rounded-[26px]","bg-[rgba(221,234,248,0.08)] text-white/80 shadow-[0px_2px_4px_0px_rgba(0,0,0,0.15)] backdrop-blur-[6px]","transition-colors hover:bg-[rgba(221,234,248,0.14)] hover:text-white","left"===e?"left-0":"right-0"),"aria-label":`Scroll comparison ${e}`,children:(0,t.jsx)(n,{className:"size-5"})})}function A({plan:e}){if(!e.popular&&!e.best)return null;let i=!!e.popular,n=i?x.IconHeartFill:g.IconStarFill;return(0,t.jsxs)("span",{className:"inline-flex h-4 shrink-0 items-center gap-1 rounded-full px-1.5 text-[10px] font-bold uppercase leading-4 text-[#111113]",style:{background:i?"linear-gradient(87deg, #FF6DD9 5.37%, #FFCEF3 56.11%, #AAEAFF 112.49%), #ED00B5":"linear-gradient(90deg, #FF5A52 0%, #FFD04E 52.14%, #E4FFA0 100%)"},children:[(0,t.jsx)(n,{className:"size-3 text-[#111113]"}),i?"Most Popular":"Best Value"]})}function D({plan:e,price:i,billingInterval:n,userContext:r}){return(0,t.jsxs)("div",{className:(0,a.cn)("flex w-[210px] shrink-0 flex-col px-3 pt-6",N),children:[(0,t.jsxs)("div",{className:"flex h-5 min-w-0 items-center gap-1",children:[(0,t.jsx)("span",{className:"truncate text-[18px] font-bold leading-6 text-white",children:e.name}),(0,t.jsx)(A,{plan:e})]}),null!==i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-5 flex items-end gap-0.5",children:[(0,t.jsxs)("span",{className:"text-[16px] font-medium leading-6 text-white",children:["$",i]}),(0,t.jsx)("span",{className:"text-[14px] font-normal leading-5 text-white/40",children:"/Seat/mo"})]}),(0,t.jsx)(v.SubscriptionButton,{targetTier:e.tier,currentTier:r.currentTier,isSubscriptionActive:r.isSubscriptionActive,isTeamMember:r.isTeamMember,isTeamOwner:r.isTeamOwner,currentBillingInterval:r.currentBillingInterval,selectedBillingInterval:n,isHighlightedTier:e.popular||e.best,appearance:"pricing-redesign",teamId:r.teamId,couponId:r.claimableCoupon?.id,className:"mt-4 min-h-9 rounded-[6px] px-2 py-1.5 text-[12px] font-semibold leading-4 whitespace-normal"})]}):(0,t.jsx)("div",{className:"mt-5 h-6","aria-hidden":"true"})]})}function E({section:e}){let i="features"===e.id;return(0,t.jsx)("div",{className:(0,a.cn)("relative flex",i?"pt-11 pb-7":"h-16 items-end pb-7"),children:(0,t.jsxs)("div",{className:"flex h-6 items-center gap-2",children:["credits"===e.icon?(0,t.jsx)(m.IconCurrencyeth,{className:"size-[18px] text-white"}):(0,t.jsx)(c.IconWidgets,{className:"size-6 text-white"}),(0,t.jsx)("span",{className:"text-[18px] font-bold leading-6 text-white",children:e.label})]})})}function M(e){return"credits"===e.featureId?"h-14":"h-16"}function F({row:e}){return(0,t.jsx)("div",{className:(0,a.cn)("relative flex items-center border-b",M(e),T,"after:absolute after:-right-[82px] after:bottom-[-1px] after:h-px after:w-[82px] after:bg-[rgba(214,225,255,0.12)]"),children:(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1",children:[(0,t.jsx)("span",{className:"truncate text-[14px] font-normal leading-5 text-white",children:e.label}),e.tooltip?(0,t.jsx)(y.Tooltip,{content:e.tooltip,side:"right",variant:"light",children:(0,t.jsx)("span",{className:"flex size-4 shrink-0 cursor-pointer items-center justify-center",children:(0,t.jsx)(h.Info,{className:"size-3.5 text-white/55 transition-colors hover:text-white/80"})})}):null]})})}function U({row:e}){let i=M(e);return(0,t.jsx)("div",{className:(0,a.cn)("flex gap-2 border-b",i,T),
88children:e.values.map((n,r)=>(0,t.jsx)("div",{className:(0,a.cn)("flex w-[210px] shrink-0 items-center px-3",i),children:(0,t.jsx)("span",{className:"flex min-w-0 items-center gap-0.5",children:"✓"===n?(0,t.jsx)(o.IconPricingCheckCircleFill,{className:"size-[22px] text-[#00D26A]"}):"✓✓"===n?(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)(o.IconPricingCheckCircleFill,{className:"size-[22px] text-[#00D26A]"}),(0,t.jsx)(o.IconPricingCheckCircleFill,{className:"-ml-2 size-[22px] text-[#00D26A]"})]}):"×"===n||"−"===n?(0,t.jsx)(d.IconPricingCloseCircleFill,{className:"size-[22px] text-[#696E77]"}):(0,t.jsx)(P,{value:n})})},`${e.featureId}-${C[r].name}`))})}function L({billingInterval:e,userContext:s,onBillingIntervalChange:o,surfaceBackgroundClassName:d="bg-background-container-panel-surface",surfaceFadeFromClassName:c="from-background-container-panel-surface"}){let u=[{id:"credits-usage",label:"Credits",icon:"credits",rows:S(j)},{id:"features",label:"Features",icon:"features",rows:S(I)}],{scrollRef:p,canScrollLeft:m,canScrollRight:x,scrollLeft:g,scrollRight:h,onScroll:b}=(0,n.useHorizontalScrollControls)({scrollFraction:.55,deps:[e]}),v=(0,i.useRef)(null),y=s.claimableCoupon?.percentOff?`UP TO ${s.claimableCoupon.percentOff}% OFF`:s.pricingUsAnnualDiscount?.toggleLabel??(0,f.getDefaultDiscountLabel)("UP TO"),w=(0,i.useCallback)(()=>{let e=p.current?.scrollLeft??0;v.current&&(v.current.style.transform=`translate3d(${-e}px, 0, 0)`)},[p]),T=(0,i.useCallback)(()=>{w(),b()},[b,w]),P=(0,i.useCallback)(e=>{let t=p.current;if(!t)return;let i=0===e.deltaX&&e.shiftKey?e.deltaY:e.deltaX;if(0===i)return;let{scrollLeft:n,scrollWidth:a,clientWidth:r}=t,s=Math.min(Math.max(n+i,0),Math.max(0,a-r));s!==n&&(e.preventDefault(),t.scrollLeft=s,w(),b())},[b,p,w]);return(0,i.useEffect)(()=>{w()},[w]),(0,t.jsx)("div",{className:"relative isolate mx-auto max-w-[1472px]",children:(0,t.jsxs)("div",{className:"flex gap-[82px]",onWheel:P,children:[(0,t.jsxs)("div",{className:"w-[199px] shrink-0",children:[(0,t.jsxs)("div",{className:(0,a.cn)("sticky top-0 z-30 flex flex-col justify-start pt-6",d,N),children:[(0,t.jsx)("div",{"aria-hidden":!0,className:(0,a.cn)("pointer-events-none absolute left-full top-0 w-[82px]",d,N)}),(0,t.jsx)("div",{className:"text-[20px] font-semibold leading-7 text-white",children:"Plans"}),(0,t.jsxs)("div",{className:"mt-5 flex items-center gap-2",children:[(0,t.jsx)(l.Switch,{checked:"year"===e,onCheckedChange:e=>o?.(e?"year":"month"),className:"scale-75"}),(0,t.jsx)("span",{className:"text-[12px] font-normal leading-4 text-[rgba(255,255,255,0.58)]",children:"Annually"}),(0,t.jsx)(k,{children:y})]})]}),u.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)(E,{section:e}),e.rows.map(e=>(0,t.jsx)(F,{row:e},e.featureId))]},e.id))]}),(0,t.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:(0,a.cn)("sticky top-0 z-30 overflow-hidden",d,N),children:[(0,t.jsx)("div",{ref:v,className:(0,a.cn)("flex w-max gap-2 will-change-transform",N),children:C.map(i=>(0,t.jsx)(D,{plan:i,price:function(e,t,i){if(e===r.SubscriptionType.Free)return null;let n=t[e];return n?"year"===i?n.yearly:n.monthly:null}(i.tier,s.tierPrices,e),billingInterval:e,userContext:s},i.name))}),m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,a.cn)("absolute inset-y-0 left-0 z-10 w-16 bg-linear-to-r from-20% to-transparent",c)}),(0,t.jsx)(_,{direction:"left",onClick:g})]}):null,x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,a.cn)("absolute inset-y-0 right-0 z-10 w-16 bg-linear-to-l from-20% to-transparent",c)}),(0,t.jsx)(_,{direction:"right",onClick:h})]}):null]}),(0,t.jsx)("div",{ref:p,onScroll:T,className:"overflow-x-auto scrollbar-hide",children:(0,t.jsx)("div",{className:"w-max",children:u.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"features"===e.id?"h-[96px]":"h-16"}),e.rows.map(e=>(0,t.jsx)(U,{row:e},e.featureId))]},e.id))})})]})]})})}e.s(["PricingRedesignComparisonTable",()=>L],561240);var O=e.i(211920),B=e.i(539992),R=e.i(243445);function V(){let e=(0,B.useCampaignCohorts)();
88return!!(0,R.minimaxH32WeeksPromoActive)()&&e?.ids?.includes(O.CAMPAIGN_COHORT_IDS["minimax-h3-2-weeks-unlimited"])===!0}e.s(["useIsMinimaxH3Cohort",()=>V],274346);var W=e.i(497439),z=e.i(250193),H=e.i(719666),G=e.i(794761);function q(){let{status:e}=(0,W.useSession)(),{data:t}=(0,z.useMyProfile)();return"authenticated"===e&&!!t&&!!(0,H.isSeedance25SegmentBUpgradeWindowOpen)()&&(0,G.isSeedance25SegmentBUser)(t.id)}e.s(["useIsSeedance25SegmentB",()=>q],127989);var K=e.i(809993);function Z(){let{status:e}=(0,W.useSession)(),{data:t,error:i,isFetched:n}=(0,z.useMyProfile)();return"loading"===e||"authenticated"===e&&!i&&(!n||!!t&&(0,K.isWonderYearlySubscriber)(t))}e.s(["useIsWonderYearly",()=>Z],408657);var X=e.i(366860),Q=e.i(379660),Y=e.i(633699),J=e.i(124287);function $(e){return e.split(/(\*\*[^*]+\*\*)/g).map((e,n)=>{let a=`${n}:${e}`;return e.startsWith("**")&&e.endsWith("**")?(0,t.jsx)("strong",{className:"font-semibold text-text-icon-neutral-primary",children:e.slice(2,-2)},a):(0,t.jsx)(i.Fragment,{children:e},a)})}function ee({text:e}){let i=e.trim().split("\n"),n=[],a=[],r=()=>{if(0===a.length)return;let e=a;n.push((0,t.jsx)("ul",{className:"list-disc pl-4 my-1",children:e.map((e,i)=>(0,t.jsx)("li",{children:$(e)},`${i}:${e}`))},`ul-${n.length}`)),a=[]};for(let e of i){if(e.startsWith("- ")){a.push(e.slice(2));continue}r(),""===e.trim()?n.push((0,t.jsx)("div",{className:"h-1"},`sp-${n.length}`)):n.push((0,t.jsx)("div",{children:$(e)},`ln-${n.length}`))}return r(),(0,t.jsx)(t.Fragment,{children:n})}e.s(["RichText",()=>ee],571876);var et=e.i(399331),ei=e.i(772359);function en({showFaq:e}){let i=(0,ei.useFaqFocusStore)(e=>e.requestFaqFocus);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"font-semibold",children:"Limited-time offer: 10% off MCP generations for 7 days."}),(0,t.jsx)("p",{children:"Available to Plus, Pro, and Wonder members. Authorize OpenArt MCP while the offer is active to claim it. Already connected before the offer, or upgraded after connecting? Reconnect to activate your discount. One-time offer for personal workspaces only."}),e&&(0,t.jsx)("button",{type:"button",className:"cursor-pointer underline hover:opacity-80",onClick:()=>i(et.MCP_DISCOUNT_FAQ_ID),children:"See full terms"})]})}let ea=new Set(["unlimited-openversary-infinite-image","unlimited-openversary-wonder-image"]),er=new Set(["unlimited-seedance-2-5-segment-b-wonder"]),es=new Set(["minimax-h3-2-weeks-unlimited"]),el=new Set(["minimaxH3PromoDiscount","minimaxH3MaxPromoDiscount","minimaxH3MaxTurboPromoDiscount"]),eo={"aug17Promo-unlimited-pro-image":["Nano Banana 2 Lite","Qwen Image 3.0"],"aug17Promo-unlimited-pro-video":["MiniMax H3","FLUX 3"],"aug17Promo-unlimited-wonder-image":["Nano Banana 2 Lite","Qwen Image 3.0"],"aug17Promo-unlimited-wonder-video":["Seedance 2.5","MiniMax H3","FLUX 3"]},ed={"minimax-h3-2-weeks-unlimited":["MiniMax H3","MiniMax H3 Max","MiniMax H3 Max Turbo"]},ec="7 full days for new Pro upgrades, ends August 23, 11:59 PM PT.",eu="7 full days for new Wonder upgrades, ends August 23, 11:59 PM PT.",ep="Unlimited Nano Banana 2 Lite images.",em="Unlimited Qwen Image 3.0 images in Standard mode.",ex="Unlimited 5-second MiniMax H3 videos.",eg="Unlimited 5-second FLUX 3 videos in HD.",eh={"aug17Promo-unlimited-pro-image|Nano Banana 2 Lite":`${ep} ${ec}`,"aug17Promo-unlimited-pro-image|Qwen Image 3.0":`${em} ${ec}`,"aug17Promo-unlimited-pro-video|MiniMax H3":`${ex} ${ec}`,"aug17Promo-unlimited-pro-video|FLUX 3":`${eg} ${ec}`,"aug17Promo-unlimited-wonder-image|Nano Banana 2 Lite":`${ep} ${eu}`,"aug17Promo-unlimited-wonder-image|Qwen Image 3.0":`${em} ${eu}`,"aug17Promo-unlimited-wonder-video|Seedance 2.5":`Unlimited 5-second Seedance 2.5 videos in 480p, from input videos up to 5 seconds. ${eu}`,"aug17Promo-unlimited-wonder-video|MiniMax H3":`${ex} ${eu}`,"aug17Promo-unlimited-wonder-video|FLUX 3":`${eg} ${eu}`},eb={"wan3Launch-unlimited-pro|Wan 3.0":"Unlimited 5-second Wan 3.0 standard videos in 480p until August 31, 11:59 PM PT.","wan3Launch-unlimited-wonder|Wan 3.0":"Unlimited 5-second Wan 3.0 standard & prime videos in 480p until August 31, 11:59 PM PT."},ef={"unlimited-h3-max-wonder|MiniMax H3 Max":"Unlimited 5-second H3 Max video generations in 480p until September 9 at 11:59 PM PT."},ev={"unlimited-flux-3-oct-wonder|FLUX 3":"Unlimited video generations (T2V & I2V, 5s, 720p) until October 31, 11:59 PM PT."},ey={"minimax-h3-2-weeks-unlimited|MiniMax H3":"Unlimited generations(768p, 5s, T2V) through October 4, 11:59 PM PT.","minimax-h3-2-weeks-unlimited|MiniMax H3 Max":"Unlimited generations(768p, 5s, T2V & I2V) through October 4, 11:59 PM PT.","minimax-h3-2-weeks-unlimited|MiniMax H3 Max Turbo":"Unlimited generations (768p, 5s, T2V & I2V) through October 4, 11:59 PM PT."};function ew(e,i){let n=b.TIER_FEATURE_VALUES[e];if(!n)return[];let a=[];for(let s of b.FEATURES.filter(e=>!1!==e.showInCard)){let l=n[s.id];if(!l||null===l.value||l.hideFromCard||el.has(s.id)&&i?.isMinimaxH3Cohort)continue;let{value:o,badge:d,badgeImage:c,highlight:u,textPrefix:p,showInfo:m,tooltip:x,pinned:g,pinnedIcon:h}=l,b=x||s.tooltip,f=!!b,v=f?(0,w.withUnlimitedPolicyNote)(s.id,b):void 0;if("number"===o.type){if(0===o.value)continue;
88let e=o.value.toLocaleString(),t=o.prefix||"",i=o.suffix||"";a.push({id:s.id,prefix:p,highlight:u?`${t}${e}${i}`:void 0,text:u?s.label:`${t}${e}${i} ${s.label}`,showInfo:m||f,tooltip:v,badge:d,badgeImage:c,pinned:g,pinnedIcon:h})}else if("boolean"===o.type&&o.available){let n="mcpAccess"===s.id&&i?.showMcpDiscountOffer&&Q.MCP_DISCOUNT_ELIGIBLE_TIERS.has(e),r=s.cardHighlight&&s.label.endsWith(s.cardHighlight)?s.cardHighlight:void 0,l=r?s.label.slice(0,-r.length).trimEnd():void 0;a.push({id:s.id,prefix:l??p,highlight:r,text:r?"":s.label,showInfo:m||f,tooltip:n?(0,t.jsx)(en,{showFaq:!!i?.showMcpDiscountFaq}):v,badge:n?"10% OFF":d,badgeImage:c,pinned:g,pinnedIcon:h})}else if("text"===o.type)g?a.push({id:s.id,highlight:o.value,text:"",showInfo:m||f,tooltip:v,pinned:g,pinnedIcon:h}):a.push({id:s.id,prefix:p,highlight:u?o.value:void 0,text:u?s.label:`${o.value} ${s.label}`,badge:d,badgeImage:c,showInfo:m||f,tooltip:v,pinned:g,pinnedIcon:h});else if("unlimited"===o.type&&o.campaignIds){let n=new Date,s=r.SubscriptionType[e]?.toLowerCase();for(let e of o.campaignIds){if(i?.isWonderYearly&&!i?.isOpenversaryRecipient&&ea.has(e)||er.has(e)&&!i?.isSeedance25SegmentB||es.has(e)&&!i?.isMinimaxH3Cohort)continue;let r=Y.unlimitedCampaigns.find(t=>t.id===e);if(!r)continue;let l=s&&r.tierEndDates?.[s]||r.endAt;if(n>l||e.startsWith(J.AUG17_PROMO_CAMPAIGN_ID_PREFIX)&&!(0,J.isAug17PromoUpgradeWindowOpen)(n))continue;let o=Math.ceil((l.getTime()-n.getTime())/864e5),d=`${o} day${1===o?"":"s"} left`;for(let i of eo[e]??ed[e]??[r.name.replace(/^Unlimited\s+/,"")]){let n=eh[`${e}|${i}`]??eb[`${e}|${i}`]??ef[`${e}|${i}`]??ev[`${e}|${i}`]??ey[`${e}|${i}`]??(0,X.resolveCampaignDescription)(r);a.push({id:e,text:i,badge:"UNLIMITED",showInfo:!0,tooltip:(0,t.jsxs)(t.Fragment,{children:[n?(0,t.jsx)(ee,{text:n}):`Unlimited generation ends in ${d}`,(0,t.jsx)(w.UnlimitedPolicyNote,{})]})})}}}}return a}function eN(e,t){return{id:String(e.id),name:e.name,accentColor:e.accentColor,badge:e.badge,description:e.description,features:ew(e.id,t)}}function eT(e){return"new-infinite-wonder"===e.variant?e.planTier===r.SubscriptionType.Infinite?"popular":e.planTier===r.SubscriptionType.Wonder?"best":void 0:e.isFeatured?"popular":void 0}function eC(e){let t=e.availableTiers.find(t=>e.highlightedTiers?.has(t));if(null!=t)return t;let i="new-infinite"===e.variant||"new-infinite-wonder"===e.variant?r.SubscriptionType.Infinite:r.SubscriptionType.Advanced;return e.availableTiers.includes(i)?i:void 0}function ej(e){let t=e.availableTiers.find(t=>e.highlightedTiers?.has(t));return null!=t?t:e.isSubscriptionActive&&e.availableTiers.includes(e.currentTier)?e.currentTier:eC(e)}function eI(e){let t=e.isMobile?e.mobileArm:e.desktopArm;if(e.isMobile){if("desktop_group_abnormal"===t)return"control";if("mobile_group_a"===t)return"new-advanced";if("mobile_group_b"===t)return"new-infinite"}else{if("mobile_group_abnormal"===t)return"control";if("desktop_group_a"===t)return"new-infinite-wonder"}return"control"}e.s(["buildPlanFeatures",()=>ew,"toSubscriptionPlan",()=>eN],555440),e.s(["resolvePricingPageRedesignV2DesktopPlanBadge",()=>eT,"resolvePricingPageRedesignV2FeaturedTier",()=>eC,"resolvePricingPageRedesignV2MobileInitialTier",()=>ej,"resolvePricingPageRedesignV2Variant",()=>eI],997220)},707214,e=>{"use strict";var t=e.i(6895),i=e.i(228650),n=e.i(399331),a=e.i(900378);let r=[t.SubscriptionType.Essential,t.SubscriptionType.Advanced,t.SubscriptionType.Infinite,t.SubscriptionType.Wonder];function s(e,t){return(0,a.getFeatureValueForTier)(t,e)?.value??null}function l(e,t){let i,n=(i=s(e,t))&&"number"===i.type?{value:i.value,prefix:i.prefix??"",suffix:i.suffix??""}:{value:0,prefix:"",suffix:""};return`${n.prefix}${n.value.toLocaleString()}${n.suffix}`}function o(e,t){return(0,a.isFeatureAvailable)(s(e,t))}function d(e,t,i){let n=(0,a.getFeatureById)(t),r=(0,a.getFeatureValueForTier)(t,e);return{id:t,text:i,available:o(e,t),tooltip:r?.tooltip??n?.tooltip}}function c(e,t){let i=(0,a.getFeatureById)(t)?.label??t;return d(e,t,i)}function u(e,t,i){let a=t?.[e]??n.PRICES[e];
88return a?"year"===i?{price:a.yearly,originalPrice:a.monthly}:{price:a.monthly,originalPrice:null}:{price:0,originalPrice:null}}function p(e){return!!e.subscriptionActive&&o(e.currentTier,"addCredits")}function m(e,t){let a=n.SUBSCRIPTION_PLANS.find(t=>t.id===e),{price:r,originalPrice:s}=u(e,t.prices,t.billingInterval),p=l(e,"credits"),m=l(e,"images"),x=l(e,"videos"),g=l(e,"parallelGenerations"),h=l(e,"stories"),b=l(e,"characters"),f=l(e,"models"),v=o(e,"addCredits");return{tier:e,name:a?.name??(0,i.getSubscriptionDisplayName)(e),description:a?.description??"",badge:a?.badge??null,price:r,originalPrice:s,billingLine:"year"===t.billingInterval?"seat/month, billed annually":"seat/month, billed monthly",billingCaption:"year"===t.billingInterval?"Billed annually":"Billed monthly",creditsLine:`${p} credits / month`,videoLine:`up to ${x} videos (excluding Director)`,addCreditsLine:v?"Add credits as needed":"Cannot add credits",canAddCredits:v,featureGroups:[{id:"credits-create",title:"What Your Credits Can Create",lines:[d(e,"images",`up to ${m} images`),d(e,"videos",`up to ${x} videos (excluding Director)`),c(e,"directorAccess"),c(e,"mcpAccess"),d(e,"parallelGenerations",`${g} parallel generations`),d(e,"stories",`up to ${h} One-Click stories`),d(e,"characters",`up to ${b} consistent characters`),d(e,"models",`${f} personalized models`)]},{id:"creative-tools",title:"Included Creative Tools",lines:[c(e,"premiumModels"),c(e,"storyCreation"),c(e,"editingSuite")]},{id:"rights-support",title:"Rights & Support",lines:[c(e,"commercialUseRights"),c(e,"prioritySupport"),c(e,"unlimitedCreation")]}]}}function x(e,a){let{price:r,originalPrice:s}=u(t.SubscriptionType.Team,a,e);return{tier:t.SubscriptionType.Team,name:`${(0,i.getSubscriptionDisplayName)(t.SubscriptionType.Team)} Plan`,price:r,originalPrice:s,billingLine:"year"===e?"seat/month, billed annually":"seat/month, billed monthly",billingCaption:"year"===e?"Billed annually":"Billed monthly",creditsLine:`${n.TEAM_CREDITS_PER_SEAT.toLocaleString()} credits / seat / month`,featureLines:n.TEAM_PLAN_FEATURE_LINES.map(n.teamPlanFeaturePlainText)}}e.s(["INDIVIDUAL_PLAN_TIERS",0,r,"buildPricingPlanSummary",()=>m,"buildPricingTeamSummary",()=>x,"canPinExtraCreditsCard",()=>p])},248686,34666,e=>{"use strict";var t=e.i(743265),i=e.i(478790),n=e.i(274346),a=e.i(127989),r=e.i(408657),s=e.i(925596),l=e.i(105654),o=e.i(647163),d=e.i(6895);e.i(814368);var c=e.i(450082);e.i(563178);var u=e.i(424058),p=e.i(347876),m=e.i(333193),x=e.i(333532),g=e.i(979573),h=e.i(963912),b=e.i(570685),f=e.i(209330),v=e.i(284273),y=e.i(711946),w=e.i(269432),N=e.i(123247),T=e.i(111586),C=e.i(101409),j=e.i(418648),I=e.i(652605),S=e.i(905980),P=e.i(555440),k=e.i(399331),_=e.i(997220),A=e.i(707214);e.i(154507);var D=e.i(655328),E=e.i(629389),M=e.i(281664),F=e.i(418939),U=e.i(911030),L=e.i(770949),O=e.i(38386),B=e.i(275353),R=e.i(225230),V=e.i(806934);let W={popular:{icon:y.IconHeartFill,gradient:"linear-gradient(74.5deg, rgb(255, 109, 217) 5.37%, rgb(255, 206, 243) 56.11%, rgb(170, 255, 194) 112.49%)",textClass:"text-text-icon-fixed-black-solid-high-contrast"},best:{icon:T.IconStar,gradient:"linear-gradient(90deg, #EFFF0D 0%, #61F0C7 100%)",textClass:"text-text-icon-fixed-black-solid-high-contrast"}},z=({tooltip:e,side:i="right",appearance:n="legacy"})=>e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(E.Root,{children:[(0,t.jsx)(E.Trigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"More info",className:(0,o.cn)("md:hidden inline-flex items-center justify-center shrink-0","pricing-page-v2"===n&&"size-[22px] rounded-full","pricing-page-v2"===n&&"mr-1"),children:(0,t.jsx)(O.Info,{className:(0,o.cn)("text-text-icon-neutral-secondary","pricing-page-v2"===n?"size-[10px]":"w-4 h-4")})})}),(0,t.jsx)(E.Portal,{children:(0,t.jsxs)(E.Content,{side:"bottom",align:"center",sideOffset:8,collisionPadding:16,className:(0,o.cn)("z-9999 px-3 py-2 max-w-[280px] rounded-lg text-xs","pricing-page-v2"===n?"bg-background-fixed-white-solid-high-contrast text-text-icon-fixed-black-high-contrast":"bg-background-container-panel-surface text-text-icon-neutral-secondary","shadow-lg animate-in fade-in-0 zoom-in-95"),children:[e,(0,t.jsx)(E.Arrow,{className:"pricing-page-v2"===n?"fill-background-fixed-white-solid-high-contrast":"fill-background-container-panel-surface"})]})})]}),(0,t.jsx)(V.Tooltip,{content:e,side:"pricing-page-v2"===n?"right":i,variant:"pricing-page-v2"===n?"light":"dark",collisionPadding:"pricing-page-v2"===n?16:void 0,children:(0,t.jsx)("span",{className:(0,o.cn)("hidden shrink-0 cursor-default md:inline-block","pricing-page-v2"===n&&"size-5 items-center justify-center md:mr-3 md:flex"),children:(0,t.jsx)(O.Info,{className:(0,o.cn)("text-text-icon-neutral-secondary transition-colors hover:text-text-icon-neutral-primary","pricing-page-v2"===n?"size-3":"size-4")})})})]}):"pricing-page-v2"===n?(0,t.jsx)("span",{className:"hidden size-5 shrink-0 items-center justify-center md:mr-3 md:flex",children:(0,t.jsx)(O.Info,{className:"size-3 text-text-icon-neutral-secondary"})}):(0,t.jsx)(O.Info,{className:"w-4 h-4 text-text-icon-neutral-secondary shrink-0"}),H=({prefix:e,highlight:i,text:n,badge:a,badgeImage:r,showInfo:s,tooltip:l,icon:d,tooltipSide:c,unavailable:u,appearance:p="legacy"})=>{let m="pricing-page-v2"===p,x="UNLIMITED"===a?a:r?"DISCOUNT":a;return(0,t.jsxs)("div",{className:(0,o.cn)("flex items-start gap-1.5","pricing-page-v2"===p&&"items-center md:items-start","pricing-page-v2"===p&&"pl-3 md:pl-[14px]"),children:[d||(u?(0,t.jsx)(U.IconCloseBold,{className:"w-4 h-4 text-text-icon-neutral-secondary mt-0.5 shrink-0"}):(0,t.jsx)(F.Check,{className:"w-4 h-4 text-text-icon-success-default mt-0.5 shrink-0"})),u?(0,t.jsx)("span",{className:"sr-only",children:"Not included:"}):null,(0,t.jsxs)("span",{className:"text-xs text-text-icon-neutral-secondary flex-1",children:[e&&`${e} `,i&&(0,t.jsxs)("span",{className:(0,o.cn)("text-text-icon-neutral-primary","pricing-page-v2"===p?"font-semibold":"font-medium"),children:[i," "]}),n]}),m&&x?(0,t.jsx)("span",{className:"shrink-0 rounded-[4px] bg-background-success-soft px-1.5 py-0.5 text-[10px] font-bold uppercase leading-4 text-text-icon-success-default",children:x}):r?(0,t.jsx)(M.default,{src:r,alt:"badge",width:60,height:16,className:"h-4 w-auto shrink-0"}):"UNLIMITED"===a?(0,t.jsx)(M.default,{src:"https://cdn.openart.ai/assets/internal/uploads/image_mO781Jam_152x40_1763607576034.webp",alt:"UNLIMITED",
88width:60,height:16,className:"h-4 w-auto shrink-0"}):a?(0,t.jsx)(B.FeatureBadge,{tone:"warning",children:a}):null,s&&(0,t.jsx)(z,{tooltip:l,side:c,appearance:p})]})};e.s(["SubscriptionCard",0,({plan:e,price:i,originalPrice:n,isYearly:a=!1,userContext:r,className:s,tooltipSide:l="right",isHighlighted:d,isDimmed:c,emphasizedCta:u=!1,belowPinned:p})=>{let m=e.badge,x=m?W[m.type]:null,g=x?.icon,h=Number(e.id),f=a?r.pricingUsAnnualDiscount?.planBadges[h]:void 0,v=f?(0,R.getPricingUsAnnualDiscountPlanBadgeStyle)(h):void 0;return(0,t.jsxs)("div",{className:(0,o.cn)("bg-background-container-panel-surface rounded-xl flex flex-col","w-full","md:w-[305px] md:shrink-0",f&&"md:w-[332px]",c&&"scale-[0.97] opacity-80",s),children:[(0,t.jsx)("div",{className:(0,o.cn)("h-[5px] w-full rounded-t-xl",e.accentColor)}),(0,t.jsxs)("div",{className:"p-5 pb-0 flex flex-col flex-1",children:[(0,t.jsxs)("div",{className:"mb-5",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-5",children:[(0,t.jsx)("h3",{className:"min-w-0 text-lg font-semibold text-text-icon-neutral-primary",children:e.name}),m&&x&&g?(0,t.jsx)("div",{className:"flex shrink-0 flex-wrap items-center justify-end gap-1",children:(0,t.jsxs)("span",{className:(0,o.cn)("flex items-center gap-1 rounded px-2 py-1 text-[11px] font-bold uppercase tracking-[0.36px]",x.textClass),style:{background:x.gradient},children:[(0,t.jsx)(g,{className:"w-3 h-3"}),m.label]})}):null]}),(0,t.jsxs)("div",{className:"flex items-end gap-x-1 mb-5",children:[null!=n&&n>0&&a&&i>0&&(0,t.jsxs)("span",{className:(0,o.cn)("text-lg leading-[18px] tracking-[-0.25px]","text-text-icon-neutral-secondary line-through"),children:["$",n]}),(0,t.jsx)("span",{className:(0,o.cn)("text-4xl font-medium leading-9","text-text-icon-neutral-primary"),children:0===i?"$0":`$${i}`}),i>0&&(0,t.jsx)("span",{className:(0,o.cn)("pb-1 text-sm leading-[14px] tracking-[0.56px]","text-text-icon-neutral-secondary"),children:"/Seat/mo"}),f?(0,t.jsx)("span",{className:(0,o.cn)("ml-auto mb-1 shrink-0 rounded-[5px] px-[5px] py-[2px]","text-[11px] font-semibold leading-4 tracking-[0.1px]","uppercase"),style:v,children:f}):null]}),(0,t.jsx)(D.SubscriptionButton,{targetTier:h,currentTier:r.currentTier,isSubscriptionActive:r.isSubscriptionActive,isTeamMember:r.isTeamMember,isTeamOwner:r.isTeamOwner,currentBillingInterval:r.currentBillingInterval,selectedBillingInterval:a?"year":"month",isHighlightedTier:!0,teamId:r.teamId,className:"mb-2",couponId:r.claimableCoupon?.id,emphasizedCta:u}),(0,t.jsx)("p",{className:"text-xs text-text-icon-neutral-secondary whitespace-nowrap",children:e.description})]}),(0,t.jsx)("div",{className:"border-t border-border-neutral-outline/40 -mx-5"}),e.features.some(e=>e.pinned)&&(0,t.jsx)("div",{className:"-mx-5 px-5 py-2.5 mt-5 bg-background-success-soft rounded-lg space-y-2",children:e.features.filter(e=>e.pinned).map((e,i)=>{if(!e.highlight&&!e.text)return null;let n="credits"===e.pinnedIcon?b.IconCurrencyeth:"infinity"===e.pinnedIcon?L.InfinityIcon:null,a=e.unavailable?"text-text-icon-disable-default":"text-text-icon-success-default";return(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[n&&(0,t.jsx)(n,{className:(0,o.cn)("w-4 h-4",a)}),(0,t.jsxs)("span",{className:(0,o.cn)("text-xs font-bold flex-1",a),children:[e.highlight&&`${e.highlight} `,e.text]}),e.showInfo&&(0,t.jsx)(z,{tooltip:e.tooltip,side:l})]},`pinned-${e.text}-${i}`)})}),p?(0,t.jsx)("div",{className:"-mx-5 mt-3",children:p}):null,(0,t.jsx)("div",{className:(0,o.cn)("space-y-3 flex-1 -mx-5 px-5 pb-6 rounded-b-xl",e.features.some(e=>e.pinned)?"pt-3":"pt-6"),style:m?.type==="popular"?{backgroundImage:"linear-gradient(180deg, rgba(170, 255, 194, 0) 7.71%, rgba(251, 35, 194, 0.3) 140.79%)"}:m?.type==="best"?{backgroundImage:"linear-gradient(180deg, rgba(97, 240, 199, 0) 11.36%, rgba(239, 255, 13, 0.2) 113.6%)"}:void 0,children:e.features.filter(e=>!e.pinned).map((e,i)=>(0,t.jsx)(H,{...e,tooltipSide:l},`${e.text}-${i}`))})]})]})},"SubscriptionFeatureItem",0,H],34666);let G={[d.SubscriptionType.Advanced]:"[background:linear-gradient(180deg,rgba(170,255,194,0)_-7.71%,rgba(35,89,251,0.21)_140.79%),#141414]",[d.SubscriptionType.Infinite]:"[background:linear-gradient(180deg,rgba(170,255,194,0)_-7.71%,rgba(251,35,194,0.21)_140.79%),#141414]"},q={[d.SubscriptionType.Essential]:"!bg-[#444] !text-white rounded-[4px] tracking-[0.05px]",[d.SubscriptionType.Advanced]:"!bg-[#2F66FF] !text-white rounded-[6px] tracking-[0.05px]",[d.SubscriptionType.Infinite]:"!bg-[#FB23C2] !text-white rounded-[6px] tracking-[0.05px]",[d.SubscriptionType.Wonder]:"!bg-[#FFE733] !text-[#111113] rounded-[4px] tracking-[0.05px]"};function K(e){return Number.isInteger(e)?`$${e}`:`$${e.toFixed(1)}`}function Z(e){return A.INDIVIDUAL_PLAN_TIERS.includes(e.id)}
88function X({selectedTab:e,onChange:i,showTeams:n}){return n?(0,t.jsx)("div",{className:"mx-auto flex w-fit items-center gap-0.5 rounded-full border border-[rgba(214,225,255,0.02)] bg-[rgba(211,237,248,0.11)]",children:["individual","teams"].map(n=>{let a=e===n;return(0,t.jsx)(c.Button,{type:"button",variant:"ghost",color:"neutral",size:"32","aria-pressed":a,onClick:()=>i(n),className:(0,o.cn)("h-8 rounded-full px-3 text-[12px] leading-4","teams"===n&&"w-[81px] px-2.5",a?"bg-[rgba(217,237,254,0.15)] font-semibold text-white":"font-medium text-[#b0b4ba] hover:bg-transparent hover:text-white"),children:"individual"===n?"Individual":"Teams"},n)})}):null}function Q({value:e,onChange:i,discountLabel:n}){let a="year"===e;return(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)("div",{className:"flex h-7 items-center gap-1 text-[12px] md:h-11 md:w-[281px] md:gap-0 md:rounded-full md:bg-[rgba(221,234,248,0.08)] md:p-0",children:[(0,t.jsx)("button",{type:"button",onClick:()=>i("month"),className:(0,o.cn)("h-7 text-[12px] font-semibold leading-4 transition-colors md:hidden",a?"text-[#696e77] hover:text-white/70":"text-white"),children:"Monthly"}),(0,t.jsx)(c.Button,{type:"button",variant:"ghost",color:"neutral",size:"32",onClick:()=>i("month"),className:(0,o.cn)("hidden h-7 rounded-full px-1.5 text-[12px] md:flex md:h-full md:flex-1 md:px-5 md:text-sm",a?"font-semibold text-white/45 md:hover:!bg-transparent md:hover:!text-white/45 md:active:!bg-transparent":"font-semibold text-white md:bg-white md:text-[#111113] md:hover:!bg-white md:hover:!text-[#111113] md:active:!bg-white"),children:"Monthly"}),(0,t.jsx)("button",{type:"button","aria-pressed":a,onClick:()=>i(a?"month":"year"),className:(0,o.cn)("relative h-[18px] w-8 rounded-full p-0.5 transition-colors md:hidden",a?"bg-[#fb23c2]":"bg-[#696e77]"),"aria-label":"Toggle annual billing",children:(0,t.jsx)("span",{"aria-hidden":"true",className:(0,o.cn)("block size-3.5 rounded-full bg-white transition-transform",a&&"translate-x-3.5")})}),(0,t.jsx)("button",{type:"button",onClick:()=>i("year"),className:(0,o.cn)("h-7 text-[12px] font-semibold leading-4 transition-colors md:hidden",a?"text-white":"text-[#696e77] hover:text-white/70"),children:"Annually"}),(0,t.jsx)("span",{className:"ml-1 text-[12px] font-bold leading-4 text-[#ff82db] md:hidden",children:n}),(0,t.jsxs)(c.Button,{type:"button",variant:"ghost",color:"neutral",size:"32",onClick:()=>i("year"),className:(0,o.cn)("hidden h-7 gap-1 rounded-full px-1.5 text-[12px] md:flex md:h-full md:flex-1 md:gap-2 md:px-4 md:text-sm",a?"font-semibold text-white md:bg-white md:text-[#111113] md:hover:!bg-white md:hover:!text-[#111113] md:active:!bg-white":"font-semibold text-white/45 md:hover:!bg-transparent md:hover:!text-white/45 md:active:!bg-transparent"),children:["Annually",(0,t.jsx)("span",{className:"ml-2 text-[12px] font-bold leading-4 text-[#ff82db] md:text-[#FB23C2] md:font-semibold md:tracking-[0.05px]",children:n})]})]})})}function Y({features:e}){return(0,t.jsx)("div",{className:"space-y-[14px]",children:e.map(e=>(0,t.jsx)(H,{...e,appearance:"pricing-page-v2",tooltipSide:"right"},`${e.prefix}-${e.highlight}-${e.text}`))})}function J({feature:e,label:i}){return e?.showInfo&&e.tooltip?(0,t.jsx)(V.Tooltip,{content:e.tooltip,side:"right",variant:"light",collisionPadding:16,children:(0,t.jsx)("button",{type:"button",className:"ml-auto flex size-[22px] shrink-0 items-center justify-center rounded-full outline-none md:size-5","aria-label":`${i} details`,children:(0,t.jsx)(w.IconInfoCircleBold,{className:"size-[10px] text-[#16D866] transition-colors hover:text-[#16D866] md:size-3"})})}):null}function $({icon:e,title:i,description:n}){return(0,t.jsx)("div",{"data-v2-mobile-team-feature":"true",className:"flex items-start py-0.5 pr-1",children:(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-1.5 px-2",children:[(0,t.jsx)("span",{className:"flex size-6 shrink-0 items-center justify-center text-white",children:e}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 text-[12px] tracking-[0.05px]",children:[(0,t.jsx)("div",{className:"flex min-h-6 items-center font-semibold leading-4 text-white",children:i}),(0,t.jsx)("p",{className:"mt-0.5 font-normal leading-4 text-[#b0b4ba]",children:n})]})]})})}function ee({showMcpDiscountFaq:e,plan:i,billingInterval:l,userContext:u,isFeatured:p,desktopBadge:m,expanded:g,onToggleDetails:h,initialPlanRef:b,viewport:w}){let N=(0,a.useIsSeedance25SegmentB)(),C=(0,n.useIsMinimaxH3Cohort)(),j=(0,r.useIsWonderYearly)(),I=(0,s.useMcpDiscountPromoEnabled)(),S=(0,A.buildPricingPlanSummary)(i.id,{billingInterval:l,prices:u.tierPrices}),k=(0,P.buildPlanFeatures)(i.id,{isSeedance25SegmentB:N,isMinimaxH3Cohort:C,isWonderYearly:j,showMcpDiscountOffer:I,showMcpDiscountFaq:e}),_=k.filter(e=>!e.pinned),E=g?_:_.slice(0,5),M=k.find(e=>"credits"===e.pinnedIcon),F=k.find(e=>"infinity"===e.pinnedIcon),U="year"===l?u.pricingUsAnnualDiscount?.planBadges[i.id]:void 0,L=p?G[i.id]:void 0,O=q[
88i.id],B=S.badge?.type==="popular"?"bg-[rgba(255,0,171,0.29)] text-[#ff82db]":"bg-[rgba(250,130,0,0.13)] text-[#ffc53d]",R="!border-0 !bg-[#edeef0] !text-[#111113] hover:!bg-[#edeef0]/90",V={[d.SubscriptionType.Essential]:"bg-[#696e77] text-white",[d.SubscriptionType.Advanced]:"bg-[#78dafa] text-[#111113]",[d.SubscriptionType.Infinite]:"bg-[#f823c4] text-white",[d.SubscriptionType.Wonder]:"bg-[#ffe33d] text-[#111113]"}[i.id]??"bg-[#696e77] text-white",W=(0,t.jsxs)("article",{ref:b,className:(0,o.cn)("relative flex h-full min-h-[256px] scroll-mt-20 flex-col overflow-hidden rounded-[20px] px-4 pb-4 pt-5","md:min-h-[720px] md:rounded-[18px] md:px-3 md:py-5","mobile"===w?L??"bg-[#1b1d1f]":"best"===m?"[background:linear-gradient(0deg,rgba(0,0,0,0.40)_0%,rgba(0,0,0,0.40)_100%),linear-gradient(180deg,#2E2621_50.04%,#5C4834_79.92%,#7B735A_100%)]":p?"bg-[#1f1921]":"bg-[#242628]"),children:[(0,t.jsxs)("div",{className:"min-w-0 w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 pl-2",children:[(0,t.jsx)("h3",{className:"text-[20px] font-bold leading-[30px] text-white md:text-[20px] md:font-semibold md:leading-7",children:S.name}),"mobile"===w&&S.badge?(0,t.jsx)("span",{className:(0,o.cn)("inline-flex h-[18px] items-center rounded-[5px] px-1 text-[11px] font-semibold leading-4 tracking-[0.1px]",B),children:S.badge.label}):null]}),(0,t.jsx)("p",{className:"mt-0.5 min-h-4 pl-2 text-[12px] leading-4 text-[#b0b4ba] md:hidden",children:S.description}),(0,t.jsx)("p",{className:"mt-0.5 hidden min-h-4 pl-2 text-[12px] font-normal leading-4 text-[var(--text-icon-neutral-secondary,#696E77)] md:block",children:S.description}),(0,t.jsxs)("div",{className:"mt-3 flex w-full items-end gap-0.5 pl-2 pr-1 py-2 md:mt-7 md:flex-wrap md:justify-between md:px-0 md:py-0",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-end gap-0.5",children:[null!=S.originalPrice?(0,t.jsx)("span",{className:"pb-1 text-[14px] leading-6 text-[#7d838c] line-through md:text-[12px] md:font-normal md:leading-4 md:tracking-[0.05px] md:text-[var(--text-icon-neutral-secondary,#696E77)]",children:K(S.originalPrice)}):null,(0,t.jsx)("span",{className:"text-[36px] font-semibold leading-9 text-white md:text-[36px] md:font-semibold md:leading-10 md:tracking-[-1.8px]",children:K(S.price)}),(0,t.jsx)("span",{className:"pb-0 text-[12px] leading-[22px] text-white/50 md:pb-1 md:text-[12px] md:leading-5",children:"/seat/mo"})]}),U&&"mobile"===w?(0,t.jsx)("span",{className:(0,o.cn)("ml-auto inline-flex h-5 min-w-0 shrink-0 items-center justify-center whitespace-nowrap px-1.5 py-0.5 text-[11px] font-bold not-italic leading-4",O),children:U}):null,U&&"desktop"===w?(0,t.jsx)("span",{className:(0,o.cn)("self-center rounded-[4px] px-1.5 py-0.5 text-[10px] font-semibold leading-4",V),children:U}):null]})]}),(0,t.jsx)(D.SubscriptionButton,{targetTier:i.id,currentTier:u.currentTier,isSubscriptionActive:u.isSubscriptionActive,isTeamMember:u.isTeamMember,isTeamOwner:u.isTeamOwner,currentBillingInterval:u.currentBillingInterval,selectedBillingInterval:l,isHighlightedTier:p,appearance:"pricing-redesign",redesignFallbackClassName:"desktop"===w?R:p?"!border-0 !bg-[#f823c4] !text-white hover:!bg-[#f823c4]/90":R,useRedesignFallbackForUpgrade:!0,teamId:u.teamId,couponId:u.claimableCoupon?.id,className:"mt-3 h-12 rounded-[12px] text-[16px] md:mt-5 md:h-9 md:rounded-[10px] md:text-[13px]"}),(0,t.jsx)("div",{className:"mt-4 md:mt-5 md:px-0",children:(0,t.jsxs)("div",{className:"rounded-[12px] bg-[var(--background-brand-secondary-soft,rgba(34,255,70,0.12))] py-1.5 shadow-[inset_0_1px_0_0_rgba(255,255,255,0.1)] md:space-y-2 md:rounded-[8px] md:bg-[rgba(62,159,87,0.25)] md:p-3",children:[(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 pl-3 pr-1 py-[7px] text-[12px] font-bold leading-4 text-[#16D866] md:gap-1.5 md:px-0 md:py-0.5 md:font-semibold md:text-[#49f296]",children:[(0,t.jsx)(f.IconCurrencyethBold,{className:"size-4 shrink-0 text-[#16D866] md:text-[#49f296]"}),(0,t.jsx)("span",{className:"min-w-0 flex-1",children:S.creditsLine}),(0,t.jsx)(J,{feature:M,label:S.creditsLine})]}),S.canAddCredits?(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 pl-3 pr-1 py-[7px] text-[12px] font-bold leading-4 text-[#16D866] md:gap-1.5 md:px-0 md:py-0.5 md:font-semibold md:text-[#49f296]",children:[(0,t.jsx)(v.IconEnhance2,{className:"size-4 shrink-0 text-[#16D866] md:text-[#49f296]"}),(0,t.jsx)("span",{className:"min-w-0 flex-1",children:S.addCreditsLine}),(0,t.jsx)(J,{feature:F,label:S.addCreditsLine})]}):null]})}),(0,t.jsxs)("div",{className:"mt-2 md:hidden",children:[(0,t.jsx)(Y,{features:E}),(0,t.jsx)(c.Button,{type:"button",variant:"ghost",color:"neutral",size:"32","aria-expanded":g,onClick:h,iconEnd:(0,t.jsx)(x.IconArrowDownBold,{className:(0,o.cn)("size-4 transition-transform",g&&"rotate-180")}
88),className:"mt-1 h-8 w-full justify-start gap-1 rounded-[8px] pl-3 pr-0 text-[12px] font-medium leading-4 tracking-[0.05px] text-[#b0b4ba] hover:bg-transparent hover:text-white",children:g?"Show fewer details":"Show more details"})]}),(0,t.jsx)("div",{className:"mt-6 hidden flex-1 space-y-2 md:block",children:_.map(e=>(0,t.jsx)(H,{...e,appearance:"pricing-page-v2",tooltipSide:"right"},`${e.prefix}-${e.highlight}-${e.text}`))})]});if(!m)return W;let z="best"===m;return(0,t.jsxs)("div",{className:"relative h-full",children:[(0,t.jsx)("div",{className:(0,o.cn)("pointer-events-none absolute -inset-x-[2px] -bottom-[2px] -top-7 hidden rounded-[20px] md:block",z?"[background:linear-gradient(90deg,#FF5A52_0%,#FFD04E_52.14%,#E4FFA0_100%),linear-gradient(90deg,#EFFF0D_0%,#61F0C7_100%),linear-gradient(90deg,#FF5A52_0%,#FFD04E_52.14%,#E4FFA0_100%),linear-gradient(90deg,#FFE733_0%,#EFFF0D_47.86%,#61F0C7_100%),linear-gradient(87deg,#FF6DD9_5.37%,#FFCEF3_56.11%,#AAEAFF_112.49%),var(--background-brand-solid-hover,#ED00B5)]":"bg-[linear-gradient(90deg,#ff6dd9_0%,#ffcef3_56%,#aaeaff_112%)]")}),(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-x-0 -top-7 z-20 hidden h-7 items-center justify-center gap-1 text-[11px] font-bold uppercase leading-none text-[#111113] md:flex",children:[z?(0,t.jsx)(T.IconStar,{className:"size-3 md:size-3.5"}):(0,t.jsx)(y.IconHeartFill,{className:"size-3 md:size-3.5"}),z?"Best Value":"Most Popular"]}),(0,t.jsx)("div",{className:"relative z-10 h-full",children:W})]})}function et({billingInterval:e,userContext:i,onEnterpriseContact:n}){let a=(0,A.buildPricingTeamSummary)(e,i.tierPrices),r=[{id:"credit-pool",icon:(0,t.jsx)(b.IconCurrencyeth,{className:"size-4"}),title:"Team Credit Pool",description:`${k.TEAM_CREDITS_PER_SEAT.toLocaleString()} credits/seat/month, pooled across the team`},{id:"shared-workspace",icon:(0,t.jsx)(j.IconXFill,{className:"size-4"}),title:"Shared Workspace",description:"Shared assets in team workspace"},{id:"migration",icon:(0,t.jsx)(C.IconSwitchBold,{className:"size-4"}),title:"Easy Migration",description:"Seamless migration from personal assets"},{id:"roles",icon:(0,t.jsx)(u.IconPricingAiUsers,{className:"size-4"}),title:"Role Management",description:"Manage team roles and permissions"},{id:"support",icon:(0,t.jsx)(S.IconPricingSupport,{className:"size-4"}),title:"Priority Support",description:"Get faster responses when your team needs help"}],s=[{id:"indemnification",icon:(0,t.jsx)(I.IconPricingProtectedFile,{className:"size-4"}),title:"Indemnification",description:"up to $1m copyright and trademark protection"},{id:"licenses",icon:(0,t.jsx)(p.IconPricingChair,{className:"size-4"}),title:"Floating Licenses",description:"Reassign seats freely as project needs evolve"},{id:"credits",icon:(0,t.jsx)(m.IconPricingCreditStack,{className:"size-4"}),title:"Flexible Credit Management",description:"Allocate credits across users and workspaces"},{id:"privacy",icon:(0,t.jsx)(N.IconShielddoneFill,{className:"size-4"}),title:"Data Privacy & Ownership",description:"unambiguous and broad commercial rights to all content"},{id:"dedicated-support",icon:(0,t.jsx)(S.IconPricingSupport,{className:"size-4"}),title:"Dedicated Support",description:"Priority support, onboarding assistance, and training"},{id:"secure-workspaces",icon:(0,t.jsx)(j.IconXFill,{className:"size-4"}),title:"Secure Workspaces",description:"for Projects & Teams"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-[repeat(auto-fit,minmax(240px,1fr))] md:gap-3",children:[(0,t.jsxs)("article",{className:(0,o.cn)("flex w-full flex-col items-center gap-4 roun
88ded-[20px] px-4 pb-4 pt-5 md:min-h-[510px] md:items-stretch md:gap-0 md:rounded-[20px] md:bg-[linear-gradient(180deg,#18211a_0%,#1d352a_100%)] md:p-6","[background:linear-gradient(180deg,rgba(170,255,194,0)_-7.71%,rgba(35,251,211,0.21)_140.79%),linear-gradient(0deg,#141414_0%,#141414_100%),var(--background-container-panel-surface-raised,#1b1d1f)]"),children:[(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("h3",{className:"pl-2 text-[20px] font-bold leading-[30px] text-white md:pl-0 md:text-[20px] md:leading-6",children:"Team Plan"}),(0,t.jsx)("p",{className:"pl-2 text-[12px] leading-4 tracking-[0.05px] text-white/65 md:mt-0.5 md:pl-0 md:text-[12px] md:tracking-normal",children:"Create at full speed with uninterrupted flow."}),(0,t.jsxs)("div",{className:"mt-2 flex items-end gap-0.5 px-2 py-2 md:mt-5 md:px-0 md:py-0",children:[null!=a.originalPrice?(0,t.jsx)("span",{className:"pb-1 text-[14px] leading-6 text-[#7d838c] line-through md:text-[16px]",children:K(a.originalPrice)}):null,(0,t.jsx)("span",{className:"text-[36px] font-bold leading-9 text-white md:text-[40px] md:leading-10",children:K(a.price)}),(0,t.jsx)("span",{className:"pb-0 text-[12px] leading-[22px] tracking-[0.05px] text-white/50 md:pb-1 md:text-[12px] md:tracking-normal",children:"/seat/mo"})]})]}),(0,t.jsx)(D.SubscriptionButton,{targetTier:d.SubscriptionType.Team,currentTier:i.currentTier,isSubscriptionActive:i.isSubscriptionActive,isTeamMember:i.isTeamMember,isTeamOwner:i.isTeamOwner,currentBillingInterval:i.currentBillingInterval,selectedBillingInterval:e,isHighlightedTier:!0,appearance:"pricing-redesign",redesignFallbackClassName:"!border-0 !bg-[#edeef0] !text-[#111113] hover:!bg-[#edeef0]/90",useRedesignFallbackForUpgrade:!0,teamId:i.teamId,couponId:i.claimableCoupon?.id,className:"h-12 rounded-[12px] text-[16px] md:mt-5 md:rounded-[9px] md:text-[16px]"}),(0,t.jsx)("div",{className:"flex w-full flex-col gap-3 md:mt-5 md:gap-0 md:space-y-3",children:r.map(e=>(0,t.jsx)($,{...e},e.id))})]}),(0,t.jsxs)("article",{className:"flex w-full flex-col items-center gap-4 roun
88ded-[20px] bg-[#1b1d1f] px-4 pb-4 pt-5 md:items-stretch md:gap-0 md:min-h-[510px] md:rounded-[20px] md:p-6",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4 md:gap-0",children:[(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("h3",{className:"pl-2 text-[20px] font-bold leading-[30px] text-white md:pl-0 md:text-[20px] md:leading-6",children:"Enterprise Plans"}),(0,t.jsx)("p",{className:"pl-2 text-[12px] leading-4 tracking-[0.05px] text-white/65 md:mt-0.5 md:pl-0 md:text-[12px] md:tracking-normal",children:"Customized plans and billing terms, for large organizations and global teams"})]}),(0,t.jsx)("div",{className:"mt-0 flex h-[52px] w-full items-center justify-start rounded-[12px] bg-white/[0.08] px-3 py-2 text-left text-[12px] leading-4 tracking-[0.05px] text-white md:mt-4 md:h-auto md:rounded-[8px] md:text-[12px] md:tracking-normal",children:"🚀 Customized plans and billing terms"})]}),(0,t.jsx)(c.Button,{type:"button",variant:"solid",color:"fixed-white",size:"40",highContrast:!0,onClick:n,className:"h-12 w-full rounded-[12px] text-[16px] text-[#111113] md:mt-5 md:rounded-[9px] md:text-[16px]",children:"Contact sales"}),(0,t.jsx)("div",{className:"flex w-full flex-col gap-3 md:mt-5 md:gap-0 md:space-y-3",children:s.map(e=>(0,t.jsx)($,{...e},e.id))})]})]}),(0,t.jsx)(ea,{}),(0,t.jsxs)("section",{className:"mt-0 border-0 px-0 pb-2 pt-0 md:mt-12 md:border-t md:border-white/[0.08] md:pb-0 md:pt-10",children:[(0,t.jsx)("h3",{className:"text-left text-[15px] font-bold leading-6 text-white md:text-[18px]",children:"Built for Teams & Enterprise"}),(0,t.jsxs)("div",{className:"mt-4 max-w-[650px] space-y-5 text-[14px] leading-5 tracking-[-0.03px] text-[#b0b4ba] md:text-[14px] md:leading-6",children:[(0,t.jsx)("p",{children:"OpenArt gives creative teams the AI tools they need to move faster — shared credits, collaborative workspaces, and 100+ model integrations under one roof."}),(0,t.jsx)("p",{children:"Whether you're a small agency or a global enterprise, we have a plan that scales with you."})]})]})]})}function ei({onExplore:e}){return(0,t.jsxs)("section",{className:"flex h-full w-full min-h-[282px] flex-col gap-3 rounded-[20px] border border-[rgba(214,225,255,0.02)] bg-[linear-gradient(180deg,#232526_0%,#242628_100%)] p-5 shadow-[inset_0_1px_0_rgba(255,255,255,0.1)]",children:[(0,t.jsx)("h3",{className:"pl-2 text-[18px] font-semibold normal-case leading-6 tracking-[-0.25px] text-white",children:"For Teams & Enterprise"}),(0,t.jsx)("p",{className:"w-full text-[14px] font-semibold leading-5 tracking-[-0.03px] text-[#16d866]",children:"🚀 Turn Your Creative Teams into AI-Native Rockstars!"}),(0,t.jsx)("div",{className:"flex flex-1 items-center rounded-[20px] bg-[rgba(214,225,255,0.04)] p-5",children:(0,t.jsx)("p",{className:"w-full text-[14px] font-normal leading-5 tracking-[-0.03px] text-white",children:"OpenArt gives creative teams the AI tools they need to move faster — shared credits, collaborative workspaces, and 100+ model integrations. Whether you're a small agency or a global enterprise, we have a plan that scales with you."})}),(0,t.jsx)(c.Button,{type:"button",variant:"solid",color:"fixed-white",size:"40",highContrast:!0,onClick:e,className:"h-10 w-full rounded-[12px] text-[14px] font-semibold text-[#111113]",children:"Explore Team and Enterprise plans"})]})}function en({children:e}){return(0,t.jsx)("section",{className:"-mx-4 bg-[#090a0a] px-6 pb-16 pt-6 md:hidden",children:e})}function ea(){return(0,t.jsx)("div",{className:"h-[112px] pt-14 md:hidden",children:(0,t.jsx)("div",{className:"h-px w-full bg-white/[0.08]"})})}function er(){return(0,t.jsx)("div",{className:"mt-4 h-[72px] pt-9 md:hidden",children:(0,t.jsx)("div",{className:"h-px w-full bg-white/[0.08]"})})}e.s(["PricingRedesignPlans",0,function({displayPlans:e,billingInterval:n,onBillingIntervalChange:a,userContext:r,highlightedTiers:s,redesignVariant:d,contextHeader:u,discountLabel:p,pinnedExtraCreditsCard:m,pinnedTeamEnterpriseTeaser:b,lowerExtraCreditsCard:f,passiveExtraCreditsCard:v,showTeamEnterpriseCard:y,onTeamExplore:w,onEnterpriseContact:N,showComparison:T,onComparisonToggle:C,comparisonTable:j,faq:I,banner:S}){let P=e.filter(Z),k=P.length+Number(!!v),A=(0,_.resolvePricingPageRedesignV2FeaturedTier)({availableTiers:P.map(e=>e.id),highlightedTiers:s,variant:d}),D=(0,_.resolvePricingPageRedesignV2MobileInitialTier)({availableTiers:P.map(e=>e.id),currentTier:r.currentTier,isSubscriptionActive:r.isSubscriptionActive,highlightedTiers:s,variant:d}),E=1===k?"md:max-w-[440px]":2===k?"md:max-w-[892px]":3===k?"md:max-w-[1344px]":"md:max-w-[1796px]",M=1===k?"@max-[224px]/plan-grid:flex @max-[224px]/plan-grid:w-max @max-[224px]/plan-grid:flex-row @max-[224px]/plan-grid:flex-nowrap @max-[224px]/plan-grid:justify-start":2===k?"@max-[460px]/plan-grid:flex @max-[460px]/plan-grid:w-max @max-[460px]/plan-grid:flex-row @max-[460px]/plan-grid:flex-nowrap @max-[460px]/plan-grid:justify-start":3===k?"@max-[696px]/plan-grid:flex @max-[696px]/plan-grid:w-max @max-[696px]/plan-grid:flex-row @max-[696px]/plan-grid:flex-nowrap @max-[696px]/plan-grid:justify-start":"@max-[932px]/plan-grid:flex @max-[932px]/plan-grid:w-max @max-[932px]/plan-grid:flex-row @max-[932px]/plan-grid:flex-nowrap @max-[932px]/plan-grid:justify-start",F=1===k?"@max-[224px]/plan-grid:w-[224px] @max-[224px]/plan-grid:shrink-0":2===k?"@max-[460px]/plan-grid:w-[224px] @max-[460px]/plan-grid:shrink-0":3===k?"@max-[696px]/plan-grid:w-[224px] @max-[696px]/plan-grid:shrink-0":"@max-[932px]/plan-grid:w-[224px] @max-[932px]/plan-grid:shrink-0",U=1===k?"@max-[224px]/plan-grid:-mt-7 @max-[224px]/plan-grid:overflow-x-auto @max-[224px]/plan-grid:pt-7":2===k?"@max-[460px]/plan-grid:-mt-7 @max-[460px]/plan-grid:overflow-x-auto @max-[460px]/plan-grid:pt-7":3===k?"@max-[696px]/plan-grid:-mt-7 @max-[696px]/plan-grid:overflow-x-auto @max-[696px]/plan-grid:pt-7":"@max-[932px]/plan-grid:-mt-7 @max-[932px]/plan-grid:overflow-x-auto @max-[932px]/plan-grid:pt-7",{scrollRef:L,canScrollLeft:O,canScrollRight:B,scrollLeft:R,scrollRight:V,onScroll:W}
88=(0,l.useHorizontalScrollControls)({deps:[k]}),[z,H]=(0,i.useState)("individual"),[G,q]=(0,i.useState)(null),K=(0,i.useRef)(null),Y=(0,i.useRef)(!1),J=r.claimableCoupon?.percentOff?`UP TO ${r.claimableCoupon.percentOff}% OFF`:"25% OFF",$="teams"===z?J:p,es=null!=f||y&&!b;(0,i.useLayoutEffect)(()=>{if("individual"!==z||Y.current||!window.matchMedia("(max-width: 767px)").matches)return;let e=K.current;e&&(e.scrollIntoView({block:"start",behavior:"auto"}),Y.current=!0)},[z]);let el=(e,i)=>{let a=e.id===A,s="desktop"===i?(0,_.resolvePricingPageRedesignV2DesktopPlanBadge)({planTier:e.id,isFeatured:a,variant:d}):void 0;return(0,t.jsx)(ee,{showMcpDiscountFaq:!!I,plan:e,billingInterval:n,userContext:r,isFeatured:a,desktopBadge:s,expanded:G===e.id,onToggleDetails:()=>q(t=>t===e.id?null:e.id),initialPlanRef:"mobile"===i&&e.id===D?K:void 0,viewport:i})},eo=e=>"mobile"===e&&"teams"===z?(0,t.jsx)(et,{billingInterval:n,userContext:r,onEnterpriseContact:N}):"desktop"===e?(0,t.jsxs)("div",{className:(0,o.cn)("relative mx-auto w-full @container/plan-grid",E),children:[(0,t.jsx)("div",{ref:L,onScroll:W,className:(0,o.cn)("overflow-visible pb-1 scrollbar-hide",U),children:(0,t.jsxs)("div",{className:(0,o.cn)("mx-auto w-full flex flex-col gap-3","md:grid md:grid-cols-[repeat(auto-fit,minmax(224px,1fr))] md:justify-center md:gap-3",M),children:[v?(0,t.jsx)("div",{className:(0,o.cn)("min-w-0",F),children:v}):null,P.map(e=>(0,t.jsx)("div",{className:(0,o.cn)("min-w-0",F),children:el(e,"desktop")},e.id))]})}),O?(0,t.jsxs)("div",{className:"pointer-events-none absolute left-0 top-0 flex h-full w-16 items-center",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-linear-to-r from-background-container-panel-surface from-20% to-transparent"}),(0,t.jsx)(c.Button,{type:"button",variant:"soft",color:"neutral",size:"32",onClick:R,"aria-label":"Scroll plans left",className:"pointer-events-auto relative z-10 size-8 rounded-full p-0",children:(0,t.jsx)(g.IconArrowLeftBold,{className:"size-5"})})]}):null,B?(0,t.jsxs)("div",{className:"pointer-events-none absolute right-0 top-0 flex h-full w-16 items-center justify-end",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-linear-to-l from-background-container-panel-surface from-20% to-transparent"}),(0,t.jsx)(c.Button,{type:"button",variant:"soft",color:"neutral",size:"32",onClick:V,"aria-label":"Scroll plans right",className:"pointer-events-auto relative z-10 size-8 rounded-full p-0",children:(0,t.jsx)(h.IconArrowRightBold,{className:"size-5"})})]}):null]}):(0,t.jsx)("div",{className:"flex flex-col gap-4",children:P.map(e=>(0,t.jsx)("div",{children:el(e,"mobile")},e.id))});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(en,{children:[u??(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("h2",{className:"font-bricolage-grotesque text-[24px] font-extrabold leading-[38px] tracking-[-0.48px] text-white",children:"Choose Your creative plans"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(X,{selectedTab:z,onChange:H,showTeams:y})}),"individual"===z?(0,t.jsxs)(t.Fragment,{children:[m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-4",children:m}),(0,t.jsx)(er,{})]}):null,v?(0,t.jsx)("div",{className:"mt-3",children:v}):null]}):null,(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(Q,{value:n,onChange:a,discountLabel:$})}),S?(0,t.jsx)("div",{className:"mt-4",children:S}):null,(0,t.jsx)("div",{className:"mt-3",children:eo("mobile")}),"individual"===z&&f?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ea,{}),(0,t.jsx)("div",{className:"mt-0 md:mt-10 md:grid md:grid-cols-[repeat(auto-fit,minmax(320px,1fr))]",children:f})]}):null,I?(0,t.jsx)("div",{className:"mt-12 border-t border-white/[0.08] pt-8",children:I}):null]}),(0,t.jsxs)("section",{className:"hidden pb-16 pt-12 md:block",children:[u,m||b?(0,t.jsxs)("div",{className:(0,o.cn)("mb-6 mx-auto max-w-[1320px]",b&&"grid grid-cols-1 gap-3 md:grid-cols-2 md:items-stretch"),children:[m,b?(0,t.jsx)(ei,{onExplore:w}):null]}):null,(0,t.jsx)(Q,{value:n,onChange:a,discountLabel:p}),S?(0,t.jsx)("div",{className:"mx-auto mt-10 max-w-[1320px]",children:S}):null,(0,t.jsx)("div",{className:"mx-auto mt-14",children:eo("desktop")}),(0,t.jsxs)("div",{className:"mx-auto max-w-[1320px]",children:[j?(0,t.jsxs)("div",{className:"mt-9",children:[(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(c.Button,{type:"button",variant:"ghost",color:"neutral",size:"36",iconEnd:(0,t.jsx)(x.IconArrowDownBold,{className:(0,o.cn)("size-4 transition-transform",T&&"rotate-180")}
88),onClick:C,className:"h-9 rounded-[8px] px-3 py-2 text-[13px] font-medium leading-5 text-text-icon-neutral-primary transition-colors hover:bg-transparent",children:"Compare all features"})}),T?(0,t.jsx)("div",{className:"pt-6",children:j}):null]}):null,es?(0,t.jsxs)("div",{className:"mt-10 grid grid-cols-1 gap-3 md:items-stretch lg:grid-cols-2",children:[f,y&&!b?(0,t.jsx)(ei,{onExplore:w}):null]}):null,I?(0,t.jsx)("div",{className:"mt-16",children:I}):null]})]})]})}],248686)},500325,e=>{"use strict";var t=e.i(55769),i=e.i(497439),n=e.i(904908),a=e.i(244547),r=e.i(368709),s=e.i(668919);e.s(["useCheckUserRole",0,()=>{let{status:e}=(0,i.useSession)(),{data:l}=(0,a.useCurrentWorkspace)(),o=l?.last_used_workspace?.workspace_team_id??"",d=async()=>await (0,r.get)("/legacy/api/team/check_user_role"),{data:c,isFetching:u,...p}=(0,t.useQuery)({queryKey:[...s.legacyTeamKeys.checkUserRole,o],queryFn:d,enabled:"authenticated"===e&&!!l,retry:n.retryOnNon4xx});return[c,u,p]}])},950091,714623,143951,474029,115593,e=>{"use strict";var t=e.i(743265);e.i(74840),e.i(478790),e.i(853120),e.i(500325),e.i(244547),e.i(96673);var i=e.i(647163);e.i(6895),e.i(228650),e.i(281133),e.i(563178),e.i(474544),e.i(911030),e.
88i(570685),e.i(872294),e.i(727373),e.s([],950091),e.i(925596),e.s([],714623);var n=e.i(366860),a=e.i(243445),r=e.i(211920),s=e.i(539992),l=e.i(250193),o=e.i(809993),d=e.i(497439);function c(){let{status:e}=(0,d.useSession)(),{data:t,error:i,isFetched:n}=(0,l.useMyProfile)();return"unauthenticated"===e||"authenticated"===e&&n&&!i&&!t}e.s(["useViewerState",()=>c],143951);var u=e.i(577099),p=e.i(68818),m=e.i(770949);function x(){let{data:e}=(0,l.useMyProfile)(),i=c();if((0,a.minimaxH32WeeksPromoActive)())return null;let r=(0,n.getPubliclyAdvertisedUnlimitedCampaigns)();if(0===r.length)return null;if(r.some(e=>e.id===u.H3_MAX_CAMPAIGN_ID))return!i&&e&&(0,o.isWonderSubscription)(e)?null:(0,t.jsx)(g,{message:"Create Unlimited Videos With MiniMax H3 Max Until Sep 9. Upgrade to Wonder Now!"});if(r.some(e=>e.id===p.FLUX_3_OCT_CAMPAIGN_ID))return!i&&e&&(0,o.isWonderSubscription)(e)?null:(0,t.jsx)(g,{message:"Create UNLIMITED videos with Flux 3 720p Until October 31 on Wonder Plan"});let s=`GET UNLIMITED - ${[...new Set(r.map(e=>e.modelName??e.name.replace(/^Unlimited\s+/,"")))].join(", ")} Creation With Wonder Plan`;return(0,t.jsx)(g,{message:s})}function g({message:e,showInfinityIcon:n=!0}){return(0,t.jsx)("div",{className:(0,i.cn)("flex mb-3.5 min-w-0","justify-center items-center"),children:(0,t.jsx)("div",{className:(0,i.cn)("relative rounded-[8px] overflow-hidden","border border-[rgba(217,237,254,0.15)]","w-fit max-w-full"),style:{backgroundImage:"url('https://cdn.openart.ai/assets/internal/uploads/image_VbwZHr0k_1920x186_1775213322944.webp')",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},children:(0,t.jsxs)("div",{className:(0,i.cn)("relative flex items-center gap-2.5","py-1.5 px-5"),children:[n&&(0,t.jsx)(m.InfinityIcon,{className:"size-6 shrink-0 text-white"}),(0,t.jsx)("span",{className:(0,i.cn)("text-[14px] font-semibold leading-normal tracking-[0.28px]","text-white"),style:{textShadow:"0px 2px 2.4px rgba(0,0,0,0.1)"},children:e})]})})})}function h(){let{data:e}=(0,l.useMyProfile)(),i=(0,s.useCampaignCohorts)(),n=e?.last_used_workspace?.workspace_user_id??"",d=!!(n&&n!==e?.id),c=i?.ids?.includes(r.CAMPAIGN_COHORT_IDS["minimax-h3-2-weeks-unlimited"])===!0,u=c?!!(e&&(0,o.isWonderSubscription)(e)&&(0,a.isMinimaxH32WeeksPromoFlagged)(e)):!!(e&&((0,a.isMinimaxH32WeeksPromoFlagged)(e)||(0,o.isWonderSubscription)(e)));return!(0,a.minimaxH32WeeksPromoActive)()||d||u?null:(0,t.jsx)(g,{message:c?"UNLIMITED GENERATIONS Available on MiniMax H3, H3 Max & H3 Max Turbo through October 4, 11:59 PM PT on Wonder.":"Upgrade to any higher plan for up to 30% off all MiniMax H3 models until October 4, 11:59 PM PT.",showInfinityIcon:c})}e.s(["BannerStrip",()=>g,"UnlimitedModelsBanner",()=>x],474029),e.s(["MinimaxH3PricingBanner",()=>h],115593)},979961,791428,609087,577584,e=>{"use strict";e.s([],979961);var t=e.i(743265);e.i(366860);var i=e.i(668156),n=e.i(478790);e.s([],609087);var a=e.i(74840),r=e.i(219468),s=e.i(707214),l=e.i(225230);e.i(154507);var o=e.i(655328),d=e.i(526761),c=e.i(500325),u=e.i(244547),p=e.i(96673),m=e.i(647163),x=e.i(6895),g=e.i(281133);e.i(814368);var h=e.i(881836);e.i(563178);var b=e.i(326263),f=e.i(911030),v=e.i(711946),y=e.i(817941);let w={popular:"linear-gradient(74deg, #FF6DD9 5%, #FFCEF3 56%, #AAFFC2 112%)",best:"linear-gradient(90deg, #EFFF0D 0%, #61F0C7 100%)"};function N({items:e,className:i}){return(0,t.jsx)("div",{className:(0,m.cn)("rounded-[15px] bg-white/[0.09] p-3 backdrop-blur-[8px] shadow-[0px_1px_0px_0px_rgba(0,0,0,0.25)]",i),children:(0,t.jsx)("ul",{className:"list-disc space-y-1 pl-4 text-[11px] font-semibold leading-4 text-white/60 marker:text-white/40",children:e.map(e=>(0,t.jsx)("li",{children:e.split("**").map((e,i)=>i%2==1?(0,t.jsx)("strong",{className:"font-semibold text-white",children:e},i):e)},e))})})}function T({open:e,onOpenChange:i,config:T,hideComparePlans:C=!1}){let j=(0,p.useLayeredZindex)(e),{data:I}=(0,u.useCurrentWorkspace)(),[S]=(0,c.useCheckUserRole)(),P=(0,r.useTierPrices)(null),[k,_]=(0,n.use
88State)(!0),[A,D]=(0,n.useState)(T.tiers.at(-1)??T.tiers[0]),[E,M]=(0,n.useState)(!1),F=(0,n.useRef)(0),U=k?"year":"month",L=(0,l.getPricingUsAnnualDiscountToggleLabel)(),O=I?(0,g.getSubscriptionTypeFromProductId)(I.subscription_type||""):x.SubscriptionType.Free,B=I?.subscription_active??!1,R=I?.subscription_billing_interval,V=S?.role==="member"||S?.role==="admin",W=S?.role==="owner",z=I?.last_used_workspace?.workspace_team_id||void 0,H=B&&"month"===R,G=(0,n.useMemo)(()=>{let e=T.tiers.filter(e=>e>O||H&&e===O);return e.length>0?e:T.tiers},[T.tiers,O,H]),q=G.includes(A)?A:G.at(-1)??G[0],K=(0,n.useMemo)(()=>new Map(G.map(e=>[e,(0,s.buildPricingPlanSummary)(e,{billingInterval:U,prices:P})])),[G,U,P]),Z=!!T.description&&T.description.length>0,X=T.ctaText??"Unlock Discount Now",Q=(0,n.useMemo)(()=>({get_started:X,subscribe:X,upgrade:X,switch_interval:X}),[X]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Root,{open:e,onOpenChange:i,children:(0,t.jsxs)(a.Portal,{children:[(0,t.jsx)(a.Overlay,{className:"fixed inset-0 bg-black/70 backdrop-blur-[6px]",style:{zIndex:j}}),(0,t.jsxs)(a.Content,{style:{zIndex:j},onInteractOutside:e=>{(E||Date.now()<F.current)&&e.preventDefault()},className:(0,m.cn)("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","flex w-[calc(100vw-24px)] max-w-[1020px] overflow-hidden rounded-[20px]","max-h-[90vh] border border-border-container-overlay-base bg-background-container-panel-surface shadow-2xl","flex-col md:h-[648px] md:flex-row"),children:[(0,t.jsx)(a.Title,{className:"sr-only",children:T.title}),(0,t.jsx)(a.Close,{className:(0,m.cn)("absolute right-2 top-2 z-20 flex items-center justify-center rounded-xl p-2 md:right-4 md:top-4 md:p-3",T.media&&"md:hidden","bg-background-neutral-soft text-text-icon-neutral-primary hover:bg-white/15"),"aria-label":"Close",children:(0,t.jsx)(f.IconCloseBold,{className:"size-6"})}),(0,t.jsxs)("div",{className:"relative flex min-h-0 w-full flex-col gap-[22px] overflow-y-auto p-6 mt-4 md:min-w-[540px] md:max-w-[594px] md:flex-none md:p-8 md:mt-0",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:gap-[35px]",children:[(0,t.jsx)("p",{className:"font-bricolage-grotesque text-[26px] font-extrabold capitalize leading-tight tracking-[-0.7px] md:text-[35px]",style:{backgroundImage:"linear-gradient(87deg, #ffffff 0.4%, #fb23c2 131%)",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"},children:T.title}),(0,t.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-text-icon-neutral-secondary",children:"Monthly"}),(0,t.jsx)(h.Switch,{checked:k,onCheckedChange:_,"aria-label":"Toggle annual billing"}),(0,t.jsx)("span",{className:"text-xs font-medium text-text-icon-neutral-primary",children:"Annually"}),(0,t.jsx)("span",{className:"rounded bg-background-success-soft px-1 py-0.5 text-[10px] font-bold uppercase tracking-wide text-text-icon-success-default",children:L})]}),!C&&(0,t.jsxs)("button",{type:"button",onClick:()=>M(!0),className:"flex shrink-0 items-center gap-0.5 self-start text-[11px] font-medium text-text-icon-neutral-default hover:text-white md:self-auto",children:["Compare all plans",(0,t.jsx)(b.IconArrowOutward,{className:"size-3.5"})]})]}),G.length>0?(0,t.jsx)("div",{className:"flex flex-col gap-2",children:G.map(e=>{let i=K.get(e),n=e===q,a=i?.badge;return(0,t.jsxs)("button",{type:"button",onClick:()=>D(e),className:(0,m.cn)("flex items-center justify-between gap-3 rounded-[20px] p-3 text-left transition-colors md:p-7","border bg-white/[0.08]",n?"border-2 border-background-brand-solid":"border-border-container-overlay-base hover:bg-white/[0.12]"),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-lg font-semibold text-white md:text-xl",children:i?.name}),a?(0,t.jsxs)("span",{className:"hidden items-center gap-1 rounded px-1.5 py-1 text-[11px] font-bold uppercase tracking-wide text-black md:flex",style:{backgroundImage:w[a.type]},children:["popular"===a.type?(0,t.jsx)(v.IconHeartFill,{className:"size-3.5"}):(0,t.jsx)(y.IconStarFill,{className:"size-3.5"}),a.label]}):null]}),i?.description?(0,t.jsx)("span",{className:"truncate text-xs text-white/70",children:i.description}):null]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-end",children:[(0,t.jsxs)("span",{className:"text-xl font-semibold text-white md:text-[30px]",children:["$",i?.price]}),(0,t.jsx)("span",{className:"pb-1 pl-0.5 text-xs font-semibold text-white/45",children:"/Seat/mo"})]})]},e)})}):null]})]}),(0,t.jsx)(o.SubscriptionButton,{targetTier:q,currentTier:O,isSubscriptionActive:B,isTeamMember:V,isTeamOwner:W,currentBillingInterval:R,selectedBillingInterval:U,teamId:z,className:(0,m.cn)("w-full gap-1.5 rounded-[12px] px-3.5 py-3","bg-background-neutral-solid-high-contrast text-[16px] font-semibold leading-6 tracking-[-0.12px] text-text-icon-fixed-black-solid-high-contrast","hover:bg-background-neutral-solid-high-contrast/90"),textOverrides:Q}),Z?(0,t.jsx)(N,{items:T.description??[],className:"md:hidden"}):null]}),T.media?(0,t.jsxs)("div",{className:"relative hidden shrink-0 md:block md:h-auto md:flex-1",children:[(0,t.jsx)(a.Close,{className:(0,m.cn)("absolute right-4 top-4 z-20 flex items-center justify-center rounded-xl p-3","bg-background-neutral-soft text-text-icon-neutral-primary hover:bg-white/15"),"aria-label":"Close",children:(0,t.jsx)(f.IconCloseBold,{className:"size-6"})}),"video"===T.media.type?(0,t.jsx)("video",{className:"h-full w-full object-cover",src:T.media.url,poster:T.media.poster,autoPlay:!0,loop:!0,muted:!0,playsInl
88ine:!0,children:(0,t.jsx)("track",{kind:"captions"})}):(0,t.jsx)("div",{className:"h-full w-full bg-cover bg-center",style:{backgroundImage:`url(${T.media.url})`}}),Z?(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 hidden md:block",children:[(0,t.jsx)("div",{className:"h-40 w-full bg-gradient-to-t from-black/95 to-transparent"}),(0,t.jsx)(N,{items:T.description??[],className:"absolute inset-x-4 bottom-4"})]}):null]}):null]})]})}),!C&&(0,t.jsx)(d.UpgradeDialog,{open:E,paywallTrigger:"user_click",onOpenChange:e=>{e||(F.current=Date.now()+400),M(e)},currentTier:O})]})}e.s(["ModelSummerSaleUpgradeDialog",()=>I],791428);var C=e.i(228650);let j={endDate:i.MODEL_SUMMER_SALE_UPGRADE_DEADLINE,title:"Upgrade to lock in up to 40% OFF on top models for 2026",description:["Save up to **40%** on top models including **Nano Banana 2 Lite, GPT Image 2, Seedream 5.0 Pro, Gemini Omni Flash, Kling v3 Omni, Grok Imagine, and MiniMax H3**.",`Upgrade to **${(0,C.getSubscriptionDisplayName)(x.SubscriptionType.Advanced)} or above** by **August 7** to keep these discounted model rates through **Dec 31, 2026**.`,`Monthly subscribers (${(0,C.getSubscriptionDisplayName)(x.SubscriptionType.Advanced)} or above) qualify by upgrading to an **Annual** plan by August 7.`,`All **${(0,C.getSubscriptionDisplayName)(x.SubscriptionType.Wonder)} Annual** subscribers automatically qualify.`,"Canceling or downgrading your plan will end your discounted rates."],tiers:[x.SubscriptionType.Advanced,x.SubscriptionType.Infinite,x.SubscriptionType.Wonder],media:{type:"video",url:"https://cdn.openart.ai/production/2026-07/uploads/nIp59rPDHPc0MRaW2DWt/file_Mij90VbS_1784212711355.mp4",poster:"https://cdn.openart.ai/assets/internal/uploads/image_RAloiKAx_576x1024_1784214185696.webp"},ctaText:"Unlock Discount Now"};function I({open:e,onOpenChange:i,hideComparePlans:n}){return(0,t.jsx)(T,{open:e,onOpenChange:i,config:j,hideComparePlans:n})}e.i(408657),e.i(250193),e.i(963912),e.i(418939),e.i(570685),e.i(770949),e.i(38386),e.i(399331),e.i(806934),e.s([],577584)},596702,e=>{"use strict";var t=e.i(425709);function i(e,i){return(0,t.useAmplitudeExperimentVariants)()[e]??i}function n(e,t){return i(e,{value:t}).value??t}e.s(["useAmplitudeExperiment",()=>i,"useAmplitudeExperimentValue",()=>n])},976830,418691,12633,909303,e=>{"use strict";var t=e.i(478790),i=e.i(642558),n=e.i(596702);function a({enabled:e=!0,fallback:a,flagKey:r}){let s=(0,n.useAmplitudeExperiment)(r,a),l=(0,t.useRef)(new Set);return(0,t.useEffect)(()=>{if(!e||null==s)return;let t=JSON.stringify([r,s.key,s.value,s.metadata?.default,s.metadata?.experimentKey,s.metadata?.trackExposure]);l.current.has(t)||(l.current.add(t),(0,i.trackExperimentExposure)(r,s))},[e,r,s?.key,s?.value,s?.metadata?.default,s?.metadata?.experimentKey,s?.metadata?.trackExposure]),null}e.s(["AmplitudeExperimentExposure",()=>a],418691),e.i(425709);let r={testIpBucketing:"test-ip-bucketing-v2",amplitudePricingPageDesktopRedesignV2:"amplitude_pricing_page_desktop_redesign_v2",amplitudePricingPageMobileRedesignV2:"amplitude_pricing_page_mobile_redesign_v2",navPage:"nav-page",directorFreeUserGate:"director-free-user-gate",gaIsAvailable:"ga-is-available",generalAgentHomepage:"general-agent-homepage",cancelFlowAbTesting2080:"cancel-flow-ab-testing-20-80",creationModeSwitcher:"creation-mode-switcher",directorPreReminder:"director-pre-reminder-v2"};Object.values(r),e.s(["AMPLITUDE_EXPERIMENT_FLAGS",0,r],12633);let s={value:"false",metadata:{default:!0}};function l(){return"true"===(0,n.useAmplitudeExperiment)(r.gaIsAvailable,s).value}e.s(["GA_IS_AVAILABLE_FALLBACK_VARIANT",0,s,"useGaIsAvailable",()=>l],909303),e.s([],976830)},732501,e=>{"use strict";var t=e.i(689289);e.i(976830);var i=e.i(596702),n=e.i(447968),a=e.i(12633),r=e.i(997220);function s(){let{isMobile:e}=(0,t.useServerHints)(),s=(0,n.useIsMobile)(e),l=(0,i.useAmplitudeExperimentValue)(a.AMPLITUDE_EXPERIMENT_FLAGS.amplitudePricingPageDesktopRedesignV2,"desktop_group_default"),o=(0,i.useAmplitudeExperimentValue)(a.AMPLITUDE_EXPERIMENT_FLAGS.amplitudePricingPageMobileRedesignV2,"mobile_group_default");return(0,r.resolvePricingPageRedesignV2Variant)({isMobile:s,mobileArm:o,desktopArm:l})}e.s(["usePricingPageRedesignV2Variant",()=>s])},218040,e=>{"use strict";e.s([]),e.i(586382),e.i(346565),e.i(399331),e.i(713689),e.i(478912),e.i(900378),e.i(561240),e.
88i(248686),e.i(997220),e.i(707214),e.i(154507),e.i(34666),e.i(950091),e.i(714623),e.i(115593),e.i(979961),e.i(474029),e.i(577584),e.i(732501)},568863,492277,458431,466118,e=>{"use strict";var t=e.i(743265),i=e.i(478790),n=e.i(647163);e.i(814368);var a=e.i(450082),r=e.i(881836);e.i(563178);var s=e.i(418939),l=e.i(517726),o=e.i(616407),d=e.i(911030),c=e.i(284273),u=e.i(846099),p=e.i(399331),m=e.i(639124),x=e.i(933584);let g=(0,n.cn)("relative flex flex-col rounded-[28px]","border border-border-container-panel-base bg-background-neutral-surface","shadow-[inset_0px_1px_0px_0px_rgba(221,234,248,0.08)]"),h=(0,n.cn)("rounded-full px-12","bg-linear-to-b from-white/95 to-white/70 text-black/95","shadow-[inset_0px_1px_0px_0px_var(--color-overlays-white-100,#fff)]","hover:from-white hover:to-white/80"),b=[{icon:u.IconSofa,label:"Unlimited seats"},{icon:l.IconAiKey,label:"Single sign-on (SSO)"},{icon:o.IconAiLearningFill,label:"Premium support & training"},{icon:c.IconEnhance2,label:"Evergreen credits that never expire"}];function f({isYearly:e,onChange:i}){return(0,t.jsxs)("div",{className:"flex items-center gap-2.5 rounded-full bg-background-neutral-soft px-4 py-1.5",children:[(0,t.jsx)("span",{className:(0,n.cn)("text-sm font-bold leading-5",e?"text-text-icon-neutral-secondary":"text-text-icon-neutral-primary"),children:"Monthly"}),(0,t.jsx)(r.Switch,{checked:e,onCheckedChange:i,"aria-label":"Bill Business annually"}),(0,t.jsx)("span",{className:(0,n.cn)("text-sm font-bold leading-5",e?"text-text-icon-neutral-primary":"text-text-icon-neutral-secondary"),children:"Annually"})]})}function v({enterpriseColumnIncluded:e}){let i=[{key:"included",items:e?x.ENTERPRISE_PLAN_FEATURES_INCLUDED:x.BUSINESS_PLAN_FEATURES_INCLUDED,supported:!0},{key:"enterprise-only",items:x.PLAN_FEATURES_ENTERPRISE_ONLY,supported:e}];return(0,t.jsx)("div",{className:"flex flex-col p-4 sm:flex-row sm:gap-8",children:i.map(e=>(0,t.jsx)("ul",{className:"flex flex-1 flex-col gap-2",children:e.items.map(i=>(0,t.jsxs)("li",{className:"flex items-start gap-2 p-1",children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:e.supported?(0,t.jsx)(s.Check,{className:"size-3.5 text-text-icon-brand-default"}):(0,t.jsx)(d.IconCloseBold,{className:"size-3 text-text-icon-neutral-secondary"})}),(0,t.jsx)("span",{className:(0,n.cn)("text-[13px] leading-5",e.supported?"text-text-icon-neutral-high-contrast":"text-text-icon-neutral-secondary"),children:i})]},i))},e.key))})}function y({onStart:e,onEnterpriseContact:r}){let[s,l]=(0,i.useState)(x.BUSINESS_DEFAULT_TIER),[o,d]=(0,i.useState)(!0),c=(0,p.getTierPrices)(s),u=o?c?.yearly:c?.monthly,y=o?c?.monthly:void 0;return(0,t.jsxs)("div",{className:(0,n.cn)("mx-auto flex max-w-[1200px] flex-col gap-4","lg:grid lg:grid-cols-[minmax(0,1fr)_4px_minmax(0,1fr)] lg:grid-rows-[auto_auto] lg:gap-x-5 lg:gap-y-3"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 lg:row-span-2 lg:grid lg:grid-rows-subgrid",children:[(0,t.jsxs)("div",{className:g,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-7",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsx)("h3",{className:"text-[36px] font-semibold capitalize leading-9 tracking-[-0.25px] text-text-icon-neutral-primary",children:"Business"}),(0,t.jsx)(f,{isYearly:o,onChange:d})]}),(0,t.jsx)("p",{className:"text-[13px] leading-5 text-text-icon-neutral-secondary",children:x.BUSINESS_TAGLINE})]}),(0,t.jsx)("div",{className:"px-6",children:(0,t.jsx)("div",{className:(0,n.cn)("rounded-2xl p-5","bg-linear-to-b from-[rgba(214,225,255,0.1)] to-[rgba(214,225,255,0.05)]","shadow-[inset_0px_1px_0px_0px_rgba(211,237,248,0.11)]"),children:(0,t.jsx)(m.BusinessCreditSlider,{tier:s,onTierChange:l})})}),(0,t.jsxs)("div",{className:"mt-auto flex flex-col items-center gap-4 p-6 sm:flex-row sm:flex-wrap sm:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end gap-1 px-1",children:[null!=y&&(0,t.jsx)("span",{className:"pb-1 text-[20px] font-semibold leading-6 text-text-icon-neutral-secondary line-through",children:(0,x.formatBusinessPrice)(y)}),(0,t.jsx)("span",{className:"text-[32px] font-semibold leading-10 tracking-[-1.6px] text-text-icon-neutral-primary",children:null==u?"—":(0,x.formatBusinessPrice)(u)}),(0,t.jsx)("span",{className:"pb-1.5 text-[13px] leading-5 text-text-icon-neutral-secondary",children:"/mo"})]}),(0,t.jsx)(a.Button,{type:"button",variant:"solid",color:"fixed-white",size:"48",onClick:()=>e({tier:s,billingInterval:o?"year":"month"}),className:h,children:"Start Business"})]})]}),(0,t.jsx)(v,{enterpriseColumnIncluded:!1})]}
88),(0,t.jsx)("div",{"aria-hidden":!0,className:"hidden bg-[linear-gradient(180deg,rgba(214,225,255,0)_0%,rgba(214,225,255,0.08)_25%,rgba(214,225,255,0.16)_50%,rgba(214,225,255,0.08)_75%,rgba(214,225,255,0)_100%)] lg:row-span-2 lg:block"}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 lg:row-span-2 lg:grid lg:grid-rows-subgrid",children:[(0,t.jsxs)("div",{className:(0,n.cn)(g,"flex-1 bg-linear-to-b from-white/[0.07] to-transparent"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-7",children:[(0,t.jsx)("h3",{className:"text-[36px] font-semibold capitalize leading-9 tracking-[-0.25px] text-text-icon-neutral-primary",children:"Enterprise"}),(0,t.jsx)("p",{className:"text-[13px] leading-5 text-white/80",children:x.ENTERPRISE_TAGLINE})]}),(0,t.jsx)("div",{className:"flex flex-1 flex-col gap-3 px-7 py-2",children:b.map(({icon:e,label:i})=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(e,{className:"size-5 shrink-0 text-text-icon-neutral-primary"}),(0,t.jsx)("span",{className:"text-[15px] font-medium leading-6 tracking-[-0.08px] text-text-icon-neutral-primary",children:i})]},i))}),(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-4 p-6 sm:justify-end",children:(0,t.jsx)(a.Button,{type:"button",variant:"solid",color:"fixed-white",size:"48",onClick:r,className:h,children:"Contact Sales"})})]}),(0,t.jsx)(v,{enterpriseColumnIncluded:!0})]})]})}e.s(["BusinessPlansTab",()=>y],568863);let w=(0,n.cn)("font-bricolage-grotesque font-bold","bg-[linear-gradient(110deg,rgba(255,255,255,0.4)_6%,rgb(255,255,255)_49%,rgba(255,255,255,0.2)_104%)]","bg-clip-text text-center text-transparent","[-webkit-background-clip:text] [-webkit-text-fill-color:transparent]"),N={individual:"Individual plans",business:"Business plans"};function T({audience:e,onAudienceChange:i,billingInterval:s,onBillingIntervalChange:l,discountLabel:o,className:d}){let c="year"===s;return(0,t.jsxs)("div",{className:(0,n.cn)("flex flex-col items-center gap-5",d),children:[(0,t.jsx)("h2",{className:(0,n.cn)(w,"text-[24px] leading-8 tracking-[-0.25px] md:text-[36px] md:leading-10"),children:"Choose Your Creative Plan"}),(0,t.jsx)("div",{className:(0,n.cn)("flex w-fit items-center gap-0.5 rounded-full p-0.5","border border-border-container-overlay-surface bg-background-container-overlay-surface"),children:["individual","business"].map(r=>{let s=e===r;return(0,t.jsx)(a.Button,{type:"button",variant:"ghost",color:"neutral",size:"40","aria-pressed":s,onClick:()=>i(r),className:(0,n.cn)("h-10 rounded-full px-5 text-sm leading-5","md:w-[148px] md:max-w-[160px]",s?(0,n.cn)("bg-[rgba(217,237,254,0.15)] font-bold text-white","shadow-[inset_0px_1px_0px_0px_rgba(217,237,254,0.15)]"):"font-medium text-text-icon-neutral-default hover:bg-transparent hover:text-white"),children:N[r]},r)})}),"individual"===e?(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>l("month"),className:(0,n.cn)("cursor-pointer text-sm font-bold leading-5 transition-colors",c?"text-text-icon-neutral-secondary hover:text-white/70":"text-text-icon-neutral-primary"),children:"Monthly"}),(0,t.jsx)(r.Switch,{checked:c,onCheckedChange:e=>l(e?"year":"month"),"aria-label":"Bill annually"}),(0,t.jsx)("button",{type:"button",onClick:()=>l("year"),className:(0,n.cn)("cursor-pointer text-sm font-bold leading-5 transition-colors",c?"text-text-icon-neutral-primary":"text-text-icon-neutral-secondary hover:text-white/70"),children:"Annually"}),(0,t.jsx)("span",{className:"text-[13px] font-bold uppercase leading-4 text-text-icon-brand-default",children:o})]}):null]})}e.s(["PlanAudienceControls",()=>T],492277);var C=e.i(74840),j=e.i(497439),I=e.i(870667),S=e.i(896753),P=e.i(642558);function k(){let{status:e}=(0,j.useSession)(),{signin:t}=(0,S.useAuth)(),i=(0,I.useOpenPlanPickerDialog)();return({tier:n,billingInterval:a})=>{if("authenticated"!==e){(0,P.event)("sign_up_sign_in_entry_clicked",{source:"pricing_page_business"}),t("pricing_page_business");return}i.openBusiness(n,a)}}e.s(["useBusinessStartGuard",()=>k],458431);var _=e.i(96673),A=e.i(612003),D=e.i(347876),E=e.i(333193),M=e.i(346338),F=e.i(123247),U=e.i(418648),L=e.i(6
8852605),O=e.i(905980);function B({onStart:e}){let[n,l]=(0,i.useState)(x.BUSINESS_DEFAULT_TIER),[o,d]=(0,i.useState)(!0),c=(0,p.getTierPrices)(n),u=o?c?.yearly:c?.monthly,g=o?c?.monthly:void 0;return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h3",{className:"text-[18px] font-semibold leading-6 text-white",children:"Business"}),(0,t.jsxs)("div",{className:"flex items-center gap-1 text-[12px] font-medium leading-4",children:[(0,t.jsx)("span",{className:o?"text-[#696e77]":"text-white",children:"Monthly"}),(0,t.jsx)(r.Switch,{"aria-label":"Toggle Business annual billing",checked:o,onCheckedChange:d}),(0,t.jsx)("span",{className:o?"text-white":"text-[#696e77]",children:"Annually"})]})]}),(0,t.jsx)("p",{className:"mt-2 text-[13px] leading-5 text-[#696e77]",children:"Shared credits and centralized control for growing creative teams"}),(0,t.jsx)("div",{className:"mt-4 rounded-xl bg-white/[0.04] p-3",children:(0,t.jsx)(m.BusinessCreditSlider,{tier:n,onTierChange:l})}),(0,t.jsx)("div",{className:"mt-4 flex flex-wrap items-end justify-between gap-3",children:(0,t.jsxs)("div",{className:"flex items-end gap-1",children:[null!=g&&(0,t.jsx)("span",{className:"pb-1 text-[16px] leading-6 text-[#7d838c] line-through",children:(0,x.formatBusinessPrice)(g)}),(0,t.jsx)("span",{className:"text-[36px] font-bold leading-10 text-white",children:null==u?"—":(0,x.formatBusinessPrice)(u)}),(0,t.jsx)("span",{className:"pb-1 text-[12px] leading-4 text-white/50",children:"/mo"})]})})]}),(0,t.jsx)(a.Button,{type:"button",variant:"solid",color:"neutral",highContrast:!0,size:"40",onClick:()=>e({tier:n,billingInterval:o?"year":"month"}),className:"w-full cursor-pointer rounded-full",children:"Start Business"}),(0,t.jsx)("div",{className:"flex flex-col gap-[5px]",children:x.BUSINESS_FEATURE_LINES.map(e=>(0,t.jsxs)("div",{className:"flex items-start gap-2 px-2 py-[5px]",children:[(0,t.jsx)(s.Check,{className:"mt-1 size-3 shrink-0 text-[#49f296]"}),(0,t.jsxs)("p",{className:"text-[12px] font-medium leading-4 text-text-icon-neutral-secondary",children:[(0,t.jsx)("strong",{className:"font-bold text-text-icon-neutral-primary",children:e.lead}),e.tail]})]},e.lead))})]})}let R=[{title:"Indemnification",description:"up to $1m copyright and trademark protection",icon:(0,t.jsx)(L.IconPricingProtectedFile,{className:"size-4"})},{title:"Floating Licenses",description:"Reassign seats freely as project needs evolve",icon:(0,t.jsx)(D.IconPricingChair,{className:"size-4"})},{title:"Flexible Credit Management",description:"Seamless migration from personal assets",icon:(0,t.jsx)(E.IconPricingCreditStack,{className:"size-4"})},{title:"Data Privacy & Ownership",description:"Manage team roles and permissions",icon:(0,t.jsx)(F.IconShielddoneFill,{className:"size-4"})},{title:"Dedicated Support",description:"Get faster responses when your team needs help",icon:(0,t.jsx)(O.IconPricingSupport,{className:"size-4"})},{title:"Secure Workspaces",description:"for Projects & Teams",icon:(0,t.jsx)(U.IconXFill,{className:"size-4"})}],V=[{lead:"Indemnification",tail:"up to $1m copyright and trademark protection"},{lead:"Floating Licenses",tail:"Reassign seats freely as project needs evolve"},{lead:"Flexible Credit Management",tail:"Allocate credits across users and workspaces"},{lead:"Data Privacy & Ownership",tail:"unambiguous and broad commercial rights to all content"},{lead:"Dedicated Support",tail:"Priority support, onboarding assistance, and training"},{lead:"Secure Workspaces",tail:"for Projects & Teams"}];function W({feature:e,stacked:i=!1}){return(0,t.jsxs)("div",{className:"flex items-start gap-2 px-2 py-[5px]",children:[(0,t.jsx)(s.Check,{className:"mt-1 size-3 shrink-0 text-[#49f296]"}),(0,t.jsxs)("p",{className:i?"text-[12px] leading-4 text-[#696e77]":"text-[12px] font-medium leading-4 text-text-icon-neutral-secondary",children:[(0,t.jsx)("strong",{className:i?"block font-bold text-white":"font-bold text-text-icon-neutral-primary",children:e.lead}),e.tail?(0,t.jsx)("span",{className:i?"block":void 0,children:i?e.tail
88:` ${e.tail}`}):null]})]})}function z({feature:e}){return(0,t.jsx)("div",{className:"flex items-start pr-1 py-0.5",children:(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-1.5 px-2",children:[(0,t.jsx)("div",{className:"flex size-6 shrink-0 items-center justify-center text-white",children:e.icon}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"text-[16px] font-semibold leading-6 text-white",children:e.title}),(0,t.jsx)("div",{className:"mt-2 text-[12px] font-normal leading-4 text-[#edeef0]",children:e.description})]})]})})}function H({open:e,onOpenChange:n,initialView:r="overview",presentation:s="default"}){let[l,o]=(0,i.useState)(!1),c=k(),u="pricing-page-v2"===s,p=l||e&&"contact"===r;(0,i.useEffect)(()=>{e||o(!1)},[e]);let m=(0,_.useLayeredZindex)(e),x=e=>{e||o(!1),n(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C.Root,{open:e,onOpenChange:x,children:(0,t.jsxs)(C.Portal,{children:[(0,t.jsx)(C.Overlay,{className:"fixed inset-0 bg-[#050606]/78 backdrop-blur-[52px]",style:{zIndex:m}}),(0,t.jsx)(C.Content,{"aria-describedby":void 0,className:u?"fixed left-1/2 top-1/2 max-h-[calc(100vh-120px)] w-[calc(100vw-120px)] max-w-[1392px] -translate-x-1/2 -translate-y-1/2 overflow-y-auto rounded-[30px] border border-white/[0.02] bg-[#1b1d1f]":"fixed inset-0 overflow-y-auto",style:{zIndex:m},children:(0,t.jsxs)("div",{className:u?"relative isolate overflow-hidden p-8":"relative min-h-screen px-10 py-[77px]",children:[u?(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute left-1/2 top-[-127px] z-0 flex h-[415px] w-[410px] -translate-x-1/2 items-center justify-center",children:(0,t.jsx)("div",{className:"h-[367px] w-[217px] rotate-[43.56deg] rounded-full bg-white/10 blur-[85px]"})}):null,(0,t.jsx)(C.Close,{asChild:!0,children:(0,t.jsx)(A.IconButton,{type:"button",variant:"solid",color:"neutral",size:"32",icon:d.IconCloseBold,iconClassName:u?"size-6":"size-4",className:u?"absolute right-[11px] top-[11px] z-20 h-12 w-12 rounded-[12px] !bg-transparent text-white/65 transition-colors hover:!bg-white/[0.08] hover:text-white":"fixed right-10 top-10 z-10 rounded-full bg-white/28 text-white hover:bg-white/38","aria-label":"Close",onClick:()=>x(!1)})}),(0,t.jsx)(C.Title,{className:u?"relative z-10 text-center text-[32px] font-bold leading-10 text-white":"text-center text-[32px] font-semibold leading-10 text-white",children:u?"Team and Enterprise plans":"Explore Team & Enterprise Plan"}),u?(0,t.jsx)("p",{className:"relative z-10 mt-1 text-center text-[14px] font-medium leading-5 text-[#49f296]",children:"Turn your Creative Teams into AI-Native Rockstars"}):null,(0,t.jsxs)("div",{className:u?"relative z-10 mx-auto mt-8 grid max-w-[1296px] grid-cols-1 gap-3 lg:grid-cols-3":"mx-auto mt-[44px] grid max-w-[1208px] grid-cols-2 gap-3",children:[u?(0,t.jsxs)("section",{className:"min-h-[516px] rounded-[20px] border border-white/[0.02] bg-[#242729] px-3 py-5",children:[(0,t.jsx)("div",{className:"flex size-11 items-center justify-center rounded-[10px] bg-white/[0.04] text-white",children:(0,t.jsx)(M.IconPeopleFill,{className:"size-6"})}),(0,t.jsx)("h3",{className:"mt-5 text-[18px] font-semibold leading-6 text-white",children:"Built for Teams & Enterprise"}),(0,t.jsx)("p",{className:"mt-2 text-[14px] leading-5 text-[#696e77]",children:"OpenArt gives creative teams the AI tools they need to move faster — shared credits, collaborative workspaces, and 100+ model integrations under one roof. Whether you're a small agency or a global enterprise, we have a plan that scales with you."})]}):null,(0,t.jsx)("section",{className:u?"min-h-[516px] rounded-[20px] border border-white/[0.02] bg-[#242729] px-3 py-5 shadow-[inset_0_1px_0_rgba(255,255,255,0.1)]":"min-h-[620px] rounded-[20px] p-5",style:{border:u?void 0:"0",background:u?void 0:"linear-gradient(180deg, #111512 56.93%, #1B281A 84.73%, #1A321E 100%)"},children:(0,t.jsx)(B,{onStart:e=>{n(!1),c(e)}})}),(0,t.jsxs)("section",{className:u?"relative min-h-[516px] overflow-hidden rounded-[20px] border border-white/[0.02] px-3 py-5 shadow-[inset_0_1px_0_rgba(255,255,255,0.1)]":"relative min-h-[624px] overflow-hidden rounded-[20px] p-5",style:{border:u?void 0:"0",background:u?"linear-gradient(180deg, rgb(35, 37, 38) 0%, rgb(36, 38, 40) 100%)":"linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%), linear-gradient(180deg, #1C1B32 56.93%, #392D48 84.73%, #514160 100%)"},children:[u?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -bottom-[86px] -left-[12px] h-[324px] w-[602px] rounded-full bg-[rgba(255,139,98,0.38)] blur-[80px]"}),(0,t.jsx)("div",{className:"pointer-events-none absolute bottom-[-74px] left-[54px] h-[195px] w-[470px] rounded-full bg-[rgba(255,255,255,0.24)] blur-[64px]"})]}),(0,t.jsxs)("div",{className:"relative flex w-full flex-col gap-3",children:[(0,t.jsxs)("div",{className:u?void 0:"pl-2",children:[(0,t.jsx)("h3",{className:u?"text-[18px] font-semibold leading-6 text-white":"text-[20px] font-black uppercase leading-[30px] text-white",children:u?"Enterprise Plans":"Enterprise"}),u?(0,t.jsx)("p",{className:"mt-1.5 text-[12px] leading-4 text-text-icon-neutral-secondary",children:"Customized plans and billing terms, for large organizations and global teams"}):null,u?null:(0,t.jsx)("p",{className:"mt-0.5 text-[12px] font-normal leading-4 text-white/60",children:"Customized plans and billing terms"})]}),u?null:(0,t.jsxs)("div",{className:"flex h-[52px] items-center gap-1 rounded-[12px] bg-[rgba(221,234,248,0.08)] px-2 text-[14px] font-medium leading-5 text-white",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"shrink-0 text-[16px] leading-none",children:"🚀"}),(0,t.jsx)("span",{children:"Empower your team to create without limits"})]})]}),(0,t.jsx)(a.Button,{type:"button",variant:"solid",color:"fixed-white",size:"48",highContrast:!0,onClick:()=>{(0,P.event)("subscription_started",{subscription_tier:"enterprise"}),o(!0)},className:u?"relative mt-5 h-10 w-full rounded-[12px] bg-white text-[14px] font-semibold text-[#111113] hover:bg-white":"relative mt-3 h-12 w-full rounded-[12px] bg-white text-[16px] font-semibold text-[#111113] shadow-[inset_0px_2px_9px_0px_#ead6ff] hover:bg-white",children:"Contact sales"}),u?(0,t.jsx)("div",{className:"relative mt-5 flex flex-col gap-[5px]",children:V.map(e=>(0,t.jsx)(W,{feature:e,stacked:!0},e.lead))}):(0,t.jsx)("div",{className:"relative mt-5 flex flex-col gap-4",children:R.map(e=>(0,t.jsx)(z,{feature:e},e.title))})]})]})]})})]})}),(0,t.jsx)(C.Root,{open:p,onOpenChange:e=>{if(!e&&"contact"===r){o(!1),n(!1);return}o(e)},children:(0,t.jsxs)(C.Portal,{children:[(0,t.jsx)(C.Overlay,{className:"fixed inset-0 z-[100] bg-background-container-mask-base backdrop-blur-sm"}),(0,t.jsxs)(C.Content,{className:"fixed left-1/2 top-1/2 z-[100] h-[85vh] w-[95vw] max-w-[700px] -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-xl bg-background-fixed-white-solid","aria-label":"Contact Sales",children:[(0,t.jsx)(C.Title,{className:"sr-only",children:"Contact Sales"}),(0,t.jsx)(C.Close,{asChild:!0,children:(0,t.jsx)(A.IconButton,{type:"button",variant:"solid",color:"neutral",size:"32",icon:d.IconCloseBold,iconClassName:"size-4",className:"absolute right-3 top-3 z-10 bg-black/20 text-white hover:bg-black/40","aria-label":"Close contact form"})}),(0,t.jsx)("iframe",{src:"https://41upnq.share-na2.hsforms.com/2nwsf2jTxQ2ST1b3BlsRABA",title:"Contact Sales",className:"h-full w-full border-0"})]})]})})]})}e.s(["PricingRedesignTeamEnterpriseDialog",()=>H],466118)},195960,e=>{"use strict";e.i(20079);var t=e.i(212292),i=e.i(219794),n=e.i(555440),a=e.i(900378),r=e.i(707214),s=e.i(6895),l=e.i(228650),o=e.i(399331);function d(e,t){return e/s.SubscriptionLevelConfig[t].creditsAmount*o.COST_PER_CREDIT_UNIT}let c=i.STATSIG_EXPERIMENTS.pricingInfoClarity,u=["v0","v1"],p={toPlan:n.toSubscriptionPlan,costPerCredit:()=>null},m={toPlan:function(e,t){let i=(0,n.toSubscriptionPlan)(e,t);return{...i,features:function(e,t){if(!r.INDIVIDUAL_PLAN_TIERS.includes(e))return t;let i=new Map(t.filter(e=>!e.pinned&&null!=e.id).map(e=>[e.id,e]));return[...t.filter(e=>e.pinned),...a.FEATURES.flatMap(t=>{let i=(0,a.getFeatureValueForTier)(t.id,e);if(!i?.pinned||(0,a.isFeatureAvailable)(i.value))return[];let n=i.tooltip??t.tooltip;return[{id:t.id,text:i.unavailableLabel??t.label,pinned:!0,pinnedIcon:i.pinnedIcon,unavailable:!0,showInfo:!!(i.showInfo||n),tooltip:n}]}),...a.CLARITY_CARD_ROWS.flatMap(t=>{let n=function(e,t,i){let n=(0,a.getFeatureById)(t.featureId),r=(0,a.getFeatureValueForTier)(t.featureId,e);if(!n||!r)return null;let s=t.labelByTier?.[e]??r.label;if(i&&null==s&&null==t.label&&null==t.textPrefix)return i;let l=s??t.label??n.label;if(!(0,a.isFeatureAvailable)(r.value))return{id:n.id,text:l,unavailable:!0};let o=r.tooltip??n.tooltip,d=!!(r.showInfo||o),{value:c}=r;return c?.type==="number"?{id:n.id,prefix:t.textPrefix??r.textPrefix,highlight:`${c.prefix??""}
88${c.value.toLocaleString()}${c.suffix??""}`,text:l,showInfo:d,tooltip:o}:{id:n.id,text:l,showInfo:d,tooltip:o}}(e,t,i.get(t.featureId));return n?[n]:[]}),...t.filter(e=>!e.pinned&&("UNLIMITED"===e.badge||null!=e.badgeImage))]}(e.id,i.features)}},costPerCredit:function(e){let t=t=>{let i=e.tierPrices[t];return i?"year"===e.billingInterval?i.yearly:i.monthly:0},i=t(e.tier);if(i<=0)return null;let n=d(i,e.tier);if(e.tier===o.COST_PER_CREDIT_BASELINE_TIER)return{ratePer1k:n,comparison:{kind:"baseline"}};let a=d(t(o.COST_PER_CREDIT_BASELINE_TIER),o.COST_PER_CREDIT_BASELINE_TIER),r=a>0?Math.round((1-n/a)*100):0;return{ratePer1k:n,comparison:r>0?{kind:"cheaper",percent:r,baselineName:(0,l.getSubscriptionDisplayName)(o.COST_PER_CREDIT_BASELINE_TIER)}:null}}};function x(e){let i=(0,t.useStatsigExperimentArm)(c,"",{enabled:e}),n=u.includes(i)?i:null;return(0,t.useStatsigExposure)(n?c:null),"v1"===n?m:p}e.s(["usePricingInfoClarityExperiment",()=>x],195960)},526761,114607,e=>{"use strict";e.s(["PricingContent",()=>ei,"UpgradeDialog",()=>en],526761);var t=e.i(743265),i=e.i(74840),n=e.i(497439),a=e.i(478790),r=e.i(991399),s=e.i(379693);e.i(218040);var l=e.i(586382),o=e.i(346565),d=e.i(707214),c=e.i(713689),u=e.i(478912),p=e.i(115593),m=e.i(561240),x=e.i(248686),g=e.i(399331),h=e.i(34666),b=e.i(474029),f=e.i(568863),v=e.i(492277),y=e.i(219468),w=e.i(466118),N=e.i(195960),T=e.i(225230),C=e.i(302250),j=e.i(732501),I=e.i(458431),S=e.i(274346),P=e.i(250193),k=e.i(633699),_=e.i(668780),A=e.i(127989),D=e.i(408657),E=e.i(925596),M=e.i(790318),F=e.i(637765),U=e.i(105654),L=e.i(500325),O=e.i(244547),B=e.i(642558);e.i(643148);let R=e.i(358207).publicEnv.isProductionEnv;function V(e,t){if(!R)return;let i=window;if("function"==typeof i.gtag){let{category:n,label:a,value:r}=t||{};i.gtag("event",e,{event_category:n,event_label:a,value:r})}}function W(e,t={}){let i=window,n="function"==typeof i.gtag;if(R&&n){let{user_email:t,...n}=e;t&&i.gtag?.("set","user_data",{email:t}),i.gtag?.("event","purchase",n),i.gtag?.("event","conversion_event_purchase",n),i.uetq=i.uetq||[],i.uetq.push("event","purchase",{transaction_id:n.transaction_id,revenue_value:n.value,currency:n.currency})}t.onGa4?.(n),t.onGoogleAds?.(n),t.onBing?.("function"==typeof i.UET)}function z(e,t={}){let i=window,n="function"==typeof i.gtag;if(R&&n){let{user_email:t,...n}=e;t&&i.gtag?.("set","user_data",{email:t}),i.gtag?.("event","purchase_first",n),i.gtag?.("event","conversion_event_purchase_first",n)}t.onGa4?.(n),t.onGoogleAds?.(n)}e.s(["event",()=>V,"purchase",()=>W,"purchaseFirst",()=>z],114607);var H=e.i(96673),G=e.i(647163),q=e.i(6895),K=e.i(281133);e.i(563178);var Z=e.i(468667),X=e.i(979573),Q=e.i(963912),Y=e.i(911030);function J({value:e,onChange:i,claimableCoupon:n,discountLabel:a,className:r}){let s="year"===e,l=a??(n?.percentOff?`${n.percentOff}% OFF`:(0,C.getDefaultDiscountLabel)());return(0,t.jsx)("div",{className:(0,G.cn)("flex items-center justify-center","mb-6","md:mb-8",r),children:(0,t.jsxs)("div",{className:(0,G.cn)("inline-flex items-stretch rounded-full","p-1 border border-border-neutral-outline bg-transparent"),children:[(0,t.jsx)("button",{type:"button",onClick:()=>i("month"),className:(0,G.cn)("relative flex items-center justify-center rounded-full cursor-pointer","transition-all duration-200","py-2.5 px-5 gap-1.5",s?"text-white/50 hover:text-white/70":"bg-text-icon-neutral-primary text-background-container-panel-base"),children:(0,t.jsx)("span",{className:"text-sm font-semibold whitespace-nowrap",children:"Monthly"})}),(0,t.jsxs)("button",{type:"button",onClick:()=>i("year"),className:(0,G.cn)("relative flex items-center justify-center rounded-full cursor-pointer","transition-all duration-200","py-2.5 px-5 gap-1.5",s?"bg-text-icon-neutral-primary text-background-container-panel-base":"text-white/50 hover:text-white/70"),children:[(0,t.jsx)("span",{className:"text-sm font-semibold whitespace-nowrap",children:"Annually"}),(0,t.jsx)("span",{className:"text-[#ec4899] text-xs font-bold whitespace-nowrap",children:l})]})]})})}function $({children:e}){return(0,t.jsx)(t.Fragment,{children:e})}function ee(){return(0,t.jsxs)("div",{role:"status","aria-label":"Loading pricing","aria-busy":"true",className:"relative -mx-4 min-h-[760px] overflow-hidden bg-[#090a0a] px-4 pt-8 md:mx-0 md:min-
88h-[960px] md:bg-transparent md:px-0 md:pt-[72px]",children:[(0,t.jsx)("div",{className:"mx-auto h-[34px] w-[312px] animate-pulse rounded-full bg-[rgba(221,234,248,0.08)] md:h-[52px] md:w-[520px]"}),(0,t.jsx)("div",{className:"mx-auto mt-8 h-[60px] w-[270px] animate-pulse rounded-full bg-[rgba(221,234,248,0.08)] md:mt-10"}),(0,t.jsx)("div",{className:"mt-6 flex gap-2 overflow-hidden md:mt-12 md:grid md:grid-cols-4 md:gap-2.5",children:[0,1,2,3].map(e=>(0,t.jsx)("div",{className:"h-[346px] w-[344px] shrink-0 animate-pulse rounded-[20px] bg-[rgba(221,234,248,0.08)] md:h-[862px] md:w-auto"},e))})]})}function et(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{role:"status","aria-label":"Loading pricing","aria-busy":"true",className:"relative -mx-4 min-h-[760px] overflow-hidden bg-[#090a0a] px-6 pb-16 pt-6 md:hidden",children:[(0,t.jsx)("div",{className:"mx-auto h-[38px] w-[313px] animate-pulse rounded-[12px] bg-[rgba(221,234,248,0.08)]"}),(0,t.jsx)("div",{className:"mx-auto mt-4 h-8 w-[164px] animate-pulse rounded-full bg-[rgba(221,234,248,0.08)]"}),(0,t.jsx)("div",{className:"mx-auto mt-4 h-7 w-[212px] animate-pulse rounded-[45px] bg-[rgba(221,234,248,0.08)]"}),(0,t.jsx)("div",{className:"mt-4 flex flex-col gap-4 md:hidden",children:[{id:"essential",height:458},{id:"advanced",height:480},{id:"infinite",height:486},{id:"wonder",height:480}].map(({id:e,height:i})=>(0,t.jsx)("div",{className:"w-full animate-pulse rounded-[20px] bg-[rgba(221,234,248,0.08)]",style:{height:i}},e))})]}),(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(ee,{})})]})}function ei({currentTier:e,isActive:i,forceTeamTab:s,highlightedTiers:j,defaultInterval:M,variant:R="default",title:V,description:W,visibleTiers:z,showExtraCredits:H,forceMobileExtraCreditsLayout:Y,showTeamEnterpriseCard:ee=!0,showFaq:ei=!0,showFreePlan:en,pricingPageRedesignV2Variant:ea,comparisonSurfaceBackgroundClassName:er,comparisonSurfaceFadeFromClassName:es,paywallVariant:el,paywallTrigger:eo}){let ed="passive"===R,ec=null!=ea&&"control"!==ea,[eu,ep]=(0,a.useState)(M??"year"),[em,ex]=(0,a.useState)(!1),[eg,eh]=(0,a.useState)("individual"),[eb,ef]=(0,a.useState)(!!s),[ev,ey]=(0,a.useState)("overview"),ew=(0,I.useBusinessStartGuard)(),{claimableCoupon:eN,subscriptionActive:eT,subscriptionCreditPackNum:eC,subscriptionCreditPackActive:ej,isTeamMember:eI,pricingUserContextReady:eS,userContext:eP}=function(e,t){let{status:i}=(0,n.useSession)(),{coupon:a}=(0,F.useCouponFromStorage)(!!e),r=(0,T.shouldUsePricingUsAnnualDiscount)({hasClaimableCoupon:!!a}),s=(0,y.useTierPrices)(a),{data:l,isFetched:o}=(0,O.useCurrentWorkspace)(),{subscription_active:d=!1,subscription_billing_interval:c,subscription_credit_pack_num:u=0,subscription_credit_pack_active:p=!1}=l||{},m=t??(l?(0,K.getSubscriptionTypeFromProductId)(l.subscription_type||""):q.SubscriptionType.Free),[x]=(0,L.useCheckUserRole)(),g=x?.role==="member"||x?.role==="admin",h={currentTier:m,isSubscriptionActive:d??!1,isTeamMember:g??!1,isTeamOwner:(x?.role==="owner")??!1,currentBillingInterval:c,claimableCoupon:a??void 0,pricingUsAnnualDiscount:r?{enabled:!0,toggleLabel:(0,T.getPricingUsAnnualDiscountToggleLabel)(),planBadges:(0,T.getPricingUsAnnualDiscountPlanBadges)()}:void 0,tierPrices:s};return{claimableCoupon:a,subscriptionActive:d,subscriptionCreditPackNum:u,subscriptionCreditPackActive:p,isTeamMember:g,pricingUserContextReady:null!=t||"unauthenticated"===i||"authenticated"===i&&o,userContext:h}}(i,e),ek=(H??!0)&&!(0,K.isBusinessTier)(eP.currentTier),e_=(0,D.useIsWonderYearly)(),eA=function(){let{status:e}=(0,n.useSession)(),{data:t}=(0,P.useMyProfile)();if("authenticated"!==e||!t)return!1;let i=k.unlimitedCampaigns.find(e=>"unlimited-openversary-wonder-image"===e.id);return!!i&&(0,_.isUserUpgradedDuringCampaign)(t,{startAt:i.startAt,endAt:i.endAt})}(),eD=(0,A.useIsSeedance25SegmentB)(),eE=(0,S.useIsMinimaxH3Cohort)(),eM=(0,E.useMcpDiscountPromoEnabled)(),eF=null!=z?g.SUBSCRIPTION_PLANS.filter(e=>z.includes(e.id)):en?g.SUBSCRIPTION_PLANS:g.SUBSCRIPTION_PLANS.filter(e=>e.id!==q.SubscriptionType.Free),eU=eF.length>0,{scrollRef:eL,canScrollLeft:eO,canScrollRight:eB,scrollLeft:eR,scrollRight:eV,onScroll:eW}
88=(0,U.useHorizontalScrollControls)({deps:[eF.length,ed,ek]}),ez=eU&&ec&&!eS;(0,r.usePaywallImpression)({variant:el??"upgrade_dialog",trigger:eo??"other",active:!!el&&!!i&&!ez});let eH=(0,N.usePricingInfoClarityExperiment)(eU&&!ec);if(ez)return(0,t.jsx)(et,{});let eG=e=>{var i,n;let a,{price:r,originalPrice:s}=(i=e.id,n=eP.tierPrices,(a=n[i])?"year"===eu?{price:a.yearly,originalPrice:a.monthly}:{price:a.monthly,originalPrice:null}:{price:0,originalPrice:null}),l=e.id===q.SubscriptionType.Wonder?"left":"right",d=eH.costPerCredit({tier:e.id,billingInterval:eu,tierPrices:eP.tierPrices});return(0,t.jsx)(h.SubscriptionCard,{plan:eH.toPlan(e,{isWonderYearly:e_,isOpenversaryRecipient:eA,isSeedance25SegmentB:eD,isMinimaxH3Cohort:eE,showMcpDiscountOffer:eM,showMcpDiscountFaq:ei}),belowPinned:d?(0,t.jsx)(o.CostPerCreditBox,{...d}):null,price:r,originalPrice:s??void 0,isYearly:"year"===eu,userContext:eP,tooltipSide:l,isHighlighted:j?.has(e.id),isDimmed:null!=j&&j.size>0&&!j.has(e.id),emphasizedCta:!0},e.id)},eq=e=>{ep(e),(0,B.event)("pricing_billing_interval_changed",{interval:e,source:"toggle"})},eK=e=>{ep(e),(0,B.event)("pricing_billing_interval_changed",{interval:e,source:"comparison_table"})},eZ=()=>{ex(e=>!e)},eX=()=>{ey("contact"),ef(!0),(0,B.event)("subscription_started",{subscription_tier:"enterprise"})},eQ=(e="extra-credits",i)=>(0,t.jsx)(c.ExtraCreditsCard,{subscriptionActive:eT,currentCreditPackActive:ej,currentLevel:eC,isTeamMember:eI,billingInterval:eu,variant:ec?"redesign":ed?"passive":"default",forceMobileLayout:i?.forceMobileLayout,redesignControlsLayout:i?.redesignControlsLayout},e),eY=(0,d.canPinExtraCreditsCard)({currentTier:eP.currentTier,subscriptionActive:eT}),eJ=ek&&eY,e$=eY&&ee,e0=eJ?eQ("extra-credits-pinned"):null,e2=ek&&!eJ?eQ("extra-credits-lower"):null,e1=ek?(0,t.jsx)("div",{className:(0,G.cn)("grid gap-3","grid-cols-1"),children:eQ()}):null,e5=V||W?(0,t.jsxs)("div",{className:(0,G.cn)("mx-auto flex max-w-[1046px] flex-col","gap-2 mb-6",ed&&"md:mb-[28px]"),children:[V?(0,t.jsx)("h2",{className:(0,G.cn)("text-center text-[22px] font-bold leading-[29px] text-text-icon-neutral-primary",ed&&"md:text-[23px]"),children:V}):null,W?(0,t.jsx)("p",{className:"text-center text-[14px] font-medium leading-[24px] text-text-icon-neutral-secondary",children:W}):null]}):null,e3=()=>{let e=[];return ek&&e.push(eQ("passive-extra-credits")),e.push(...eF.map(eG)),e},e6=eU?ec?(0,t.jsx)(m.PricingRedesignComparisonTable,{billingInterval:eu,userContext:eP,onBillingIntervalChange:eK,surfaceBackgroundClassName:er??"bg-background-container-panel-surface",surfaceFadeFromClassName:es??"from-background-container-panel-surface"}):(0,t.jsx)(l.ComparisonTable,{billingInterval:eu,userContext:eP,onBillingIntervalChange:eK}):null,e4=eU&&ei?(0,t.jsx)(u.FaqSection,{actionIconVariant:ec?"ghost-circle":"plain"}):null,e8=!ed&&ee,e7=e8&&"business"===eg,e9=(0,t.jsx)(w.PricingRedesignTeamEnterpriseDialog,{open:eb,onOpenChange:ef,initialView:ev,presentation:"pricing-page-v2"}),te=eN?.percentOff?`UP TO ${eN.percentOff}% OFF`:eP.pricingUsAnnualDiscount?.toggleLabel??(0,C.getDefaultDiscountLabel)(),tt=eN?.percentOff?`${eN.percentOff}% OFF`:eP.pricingUsAnnualDiscount?.toggleLabel??(0,C.getDefaultDiscountLabel)(),ti="year"===eu&&eP.pricingUsAnnualDiscount?.enabled,tn=ti?"gap-3":ed?"gap-4":"gap-[18px]",ta=ti?"w-10":"w-16";return eU&&ec?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.PricingRedesignPlans,{displayPlans:eF,billingInterval:eu,onBillingIntervalChange:eq,userContext:eP,highlightedTiers:j,redesignVariant:ea,contextHeader:e5,discountLabel:te,pinnedExtraCreditsCard:ed?void 0:e0,pinnedTeamEnterpriseTeaser:!ed&&e$,lowerExtraCreditsCard:ed?void 0:e2,passiveExtraCreditsCard:ed&&ek?eQ("passive-v2-extra-credits",{forceMobileLayout:Y,redesignControlsLayout:"stacked"}):void 0,showTeamEnterpriseCard:!ed&&ee,onTeamExplore:()=>{ey("overview"),ef(!0),(0,B.event)("pricing_team_enterprise_explore_clicked")},onEnterpriseContact:eX,showComparison:em,onComparisonToggle:eZ,comparisonTable:ed?void 0:e6,faq:e4,banner:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.MinimaxH3PricingBanner,{}),(0,t.jsx)(b.UnlimitedModelsBanner,{})]})}),e9]}):(0,t.jsxs)($,{children:[e5,!ed&&eT&&!e7&&e1?(0,t.jsx)("div",{className:"mb-4 md:mb-6",children:e1}):null,(0,t.jsxs)("div",{className:"space-y-6",children:[eU?e8?(0,t.jsx)(v.PlanAudienceControls,{audience:eg,onAudienceChange:eh,billingInterval:eu,onBillingIntervalChange:eq,discountLabel:tt,className:(0,G.cn)("mb-6",ed?"md:mb-5":"md:mb-8")}):(0,t.jsx)(J,{value:eu,onChange:eq,claimableCoupon:eN,discountLabel:tt,className:ed?"md:mb-5":void 0}):null,e7?(0,t.jsx)(f.BusinessPlansTab,{onStart:ew,onEnterpriseContact:eX}):null,!e7&&(0,t.jsx)(p.MinimaxH3PricingBanner,{}),!e7&&(0,t.jsx)(b.UnlimitedModelsBanner,{}
88),eU&&!e7?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,G.cn)("relative group/cards","hidden md:block"),children:[(0,t.jsx)("div",{ref:eL,onScroll:eW,className:(0,G.cn)("pb-2 scrollbar-hide overflow-x-auto",ti&&"md:-mx-6"),children:(0,t.jsx)("div",{className:(0,G.cn)("flex flex-row items-stretch w-max mx-auto",tn),children:ed?e3():eF.map(eG)})}),eO&&(0,t.jsxs)("div",{className:(0,G.cn)("absolute top-0 h-full flex items-center pointer-events-none",ta,ti?"md:-left-6":"left-0"),children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-linear-to-r from-background-container-panel-surface from-20% to-transparent pointer-events-none"}),(0,t.jsx)("button",{type:"button",onClick:eR,className:(0,G.cn)("relative z-10 flex items-center justify-center size-8 rounded-full cursor-pointer pointer-events-auto","bg-background-neutral-soft hover:bg-background-neutral-ghost-hover","text-text-icon-neutral-primary transition-colors duration-200"),"aria-label":"Scroll plans left",children:(0,t.jsx)(X.IconArrowLeftBold,{className:"size-5"})})]}),eB&&(0,t.jsxs)("div",{className:(0,G.cn)("absolute top-0 h-full flex items-center justify-end pointer-events-none",ta,ti?"md:-right-6":"right-0"),children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-linear-to-l from-background-container-panel-surface from-20% to-transparent pointer-events-none"}),(0,t.jsx)("button",{type:"button",onClick:eV,className:(0,G.cn)("relative z-10 flex items-center justify-center size-8 rounded-full cursor-pointer pointer-events-auto","bg-background-neutral-soft hover:bg-background-neutral-ghost-hover","text-text-icon-neutral-primary transition-colors duration-200"),"aria-label":"Scroll plans right",children:(0,t.jsx)(Q.IconArrowRightBold,{className:"size-5"})})]})]}),(0,t.jsx)("div",{className:(0,G.cn)("flex pb-2","gap-3 flex-col items-stretch","md:hidden"),children:ed?e3():eF.map(eG)})]}):null,!ed&&!eT&&!e7&&e1,!eU||ed||e7?null:(0,t.jsxs)("div",{className:(0,G.cn)("hidden","md:block"),children:[(0,t.jsxs)("button",{type:"button",onClick:eZ,className:(0,G.cn)("flex items-center gap-2 mx-auto cursor-pointer","text-text-icon-neutral-secondary hover:text-text-icon-neutral-primary transition-colors"),children:[(0,t.jsx)("span",{className:"text-sm font-semibold",children:"Compare all features"}),(0,t.jsx)(Z.CaretDown,{className:(0,G.cn)("w-4 h-4 transition-transform duration-200",em&&"rotate-180")})]}),em&&(0,t.jsx)("div",{className:"pt-6",children:e6})]}),!e7&&e4]}),e9]})}let en=({open:e,paywallTrigger:n,onOpenChange:r,currentTier:l,forceTeamTab:o,highlightedTiers:d,variant:c="default",title:u,description:p,visibleTiers:m,showExtraCredits:x,forceMobileExtraCreditsLayout:g,showTeamEnterpriseCard:h,showFaq:b,defaultInterval:f})=>{let v="passive"===c,y=(0,j.usePricingPageRedesignV2Variant)(),w="control"!==y,N=(0,a.useRef)(!1);(0,a.useEffect)(()=>{e&&!N.current&&(V("open-subscription-dialog",{category:"subscription"}),console.debug("%c[TrackingMigration] open-subscription-dialog","font-weight:bold","function"==typeof window.gtag?"✓ gtag fired":"✗ gtag unavailable"),N.current=!0),e||(N.current=!1)},[e]);let T=(0,H.useLayeredZindex)(e??!1);return(0,t.jsx)(i.Root,{open:e,onOpenChange:r,children:(0,t.jsxs)(i.Portal,{children:[(0,t.jsx)(i.Overlay,{className:"fixed inset-0 bg-background-container-mask-base backdrop-blur-[30px]",style:{zIndex:T}}),(0,t.jsxs)(i.Content,{"aria-describedby":void 0,className:(0,G.cn)("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","w-[95vw] max-w-[1400px] max-h-[90vh]","bg-background-container-panel-surface rounded-xl shadow-2xl","overflow-hidden","border border-white/15"),style:{zIndex:T},children:[(0,t.jsx)(s.PageProbe,{id:"upgrade-dialog"}),(0,t.jsx)(i.Title,{className:"sr-only",children:"Upgrade your subscription"}),(0,t.jsx)(i.Close,{asChild:!0,children:(0,t.jsx)("button",{className:(0,G.cn)("absolute z-20 flex items-center justify-center","w-[30px] h-[30px] rounded-lg cursor-pointer","text-text-icon-neutral-secondary transition-colors","hover:text-text-icon-neutral-primary hover:bg-background-neutral-soft","top-3 right-3","md:top-5 md:right-5"),"aria-label":"Close",children:(0,t.jsx)(Y.IconCloseBold,{className:"w-5 h-5"})})}),(0,t.jsxs)("div",{className:(0,G.cn)("relative","overflow-y-auto overflow-x-hidden max-h-[90vh]",
88w&&"bg-background-container-page-base md:bg-transparent",w?"px-4 md:px-6":v?"px-4 pt-6 md:px-[74px] md:pt-[51px] md:pb-0":"px-4 pt-6 md:px-6 md:pt-8"),children:[v&&!w?(0,t.jsx)("div",{"aria-hidden":!0,className:(0,G.cn)("pointer-events-none absolute left-1/2 top-[-168px] -translate-x-1/2","h-[398px] w-[530px]"),children:(0,t.jsx)("div",{className:(0,G.cn)("absolute inset-[-50.25%_-37.74%]","bg-[radial-gradient(ellipse_at_center,rgba(239,166,255,0.10)_0%,rgba(239,166,255,0.07)_22%,rgba(239,166,255,0.035)_42%,transparent_70%)]","blur-[14px]")})}):null,(0,t.jsx)("div",{className:(0,G.cn)("relative z-10",w?"pt-6 md:pt-8":""),children:(0,t.jsx)(ei,{currentTier:l,isActive:e,paywallVariant:"upgrade_dialog",paywallTrigger:n??M.consumePendingUpgradeTrigger,forceTeamTab:o,highlightedTiers:d,variant:c,title:u,description:p,visibleTiers:m,showExtraCredits:x,forceMobileExtraCreditsLayout:g,showTeamEnterpriseCard:h,showFaq:b,defaultInterval:f,pricingPageRedesignV2Variant:y})})]})]})]})})}}]);

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.