1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,380549,e=>{"use strict";var t=e.i(743265),a=e.i(410105),n=e.i(17110),r=e.i(478790),i=e.i(209751),s=e.i(689289),o=e.i(379693),l=e.i(23254),c=e.i(828959),d=e.i(647163);e.i(976830);var p=e.i(418691),x=e.i(909303),u=e.i(511953),m=e.i(82170),g=e.i(543742),h=e.i(447968),f=e.i(74840),b=e.i(327199),v=e.i(612003);e.i(563178);var j=e.i(911030),w=e.i(55769),_=e.i(368709),N=e.i(962045);function y(e){return`whatsNewDismissedPopup:${e}`}function C({popup:e,onClose:a}){let n,r=(0,h.useIsMobile)(),i=!!e.cover&&(0,N.isVideoUrl)(e.cover),s=e.startTime??e.createdAt;return(0,t.jsx)(f.Root,{open:!0,onOpenChange:e=>!e&&a(),children:(0,t.jsxs)(f.Portal,{children:[(0,t.jsx)(f.Overlay,{className:(0,d.cn)("fixed inset-0 z-50","bg-background-fixed-black-solid/60 backdrop-blur-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0")}),(0,t.jsxs)(f.Content,{className:(0,d.cn)("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-[calc(100%-32px)] max-w-[526px]","rounded-3xl bg-white/95 shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95"),children:[(0,t.jsx)(f.Close,{asChild:!0,children:(0,t.jsx)(v.IconButton,{icon:j.IconCloseBold,variant:"solid",color:"neutral",size:"32","aria-label":"Close",className:(0,d.cn)("absolute z-10 cursor-pointer rounded-full","right-2 top-2 !bg-white !text-black shadow-md","md:top-[5px] md:right-[-48px]")})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 px-4 pt-4 pb-8",children:[(0,t.jsx)("div",{className:"relative w-full aspect-[578/326] overflow-hidden rounded-xl",children:i?(0,t.jsx)(b.MediaPlaceholder,{url:e.cover,posterUrl:e.poster,videoPlayback:r?"hover":"always",muted:!0,loop:!0,className:"object-cover",width:526,height:326}):(0,t.jsx)("img",{src:e.cover,alt:e.title,className:"absolute inset-0 size-full rounded-xl object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-8 w-full",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 w-full",children:[(0,t.jsx)("span",{className:(0,d.cn)("inline-block px-3 py-1.5 rounded-md text-xs","bg-background-brand-surface-hover text-text-icon-brand-default-2"),children:`What's New - ${Number.isNaN((n=new Date(s)).getTime())?"":n.toLocaleDateString("en-US",{month:"long",year:"numeric"})}`}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center w-full",children:[(0,t.jsx)(f.Title,{className:(0,d.cn)("font-bricolage-grotesque font-extrabold uppercase whitespace-pre-line","text-[34px] leading-[42px]","text-text-icon-fixed-black-high-contrast"),children:e.title}),e.description&&(0,t.jsx)(f.Description,{className:(0,d.cn)("max-h-[80px] overflow-y-auto overscroll-contain","text-sm leading-5 tracking-[-0.03px] max-w-[454px]","text-text-icon-neutral-secondary","[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4","[&_p]:mb-1 [&_a]:underline [&_strong]:font-semibold"),dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.actionButtonText&&(0,t.jsx)("a",{href:e.actionButtonUrl,onClick:a,className:(0,d.cn)("w-[210px] px-6 py-2.5 rounded-xl text-center","bg-background-fixed-black-solid-high-contrast text-white text-sm font-medium","shadow-[0px_2px_4px_0px_rgba(0,0,0,0.15)] backdrop-blur-[6px]","hover:opacity-90 transition-opacity cursor-pointer"),children:e.actionButtonText})]})]})]})]})})}function k(){let{data:e}=(0,w.useQuery)({queryKey:["current-popup"],queryFn:()=>(0,_.get)("/api/whats-new/current"),staleTime:6e5}),a=e?.popup??null,[n,i]=(0,r.useState)(null);(0,r.useEffect)(()=>{if(a)try{i("true"===localStorage.getItem(y(a.id)))}catch{i(!0)}},[a]);let s=(0,r.useCallback)(()=>{if(i(!0),a)try{localStorage.setItem(y(a.id),"true")}catch{}},[a]);return a&&!1===n?(0,t.jsx)(C,{popup:a,onClose:s}):null}var I=e.i(678381),S=e.i(349316),A=e.i(113192);e.i(20079);var P=e.i(212292),L=e.i(219794),T=e.i(606633),E=e.i(844133),O=e.i(571113);function M(e){return{agent:"general",category:e.category,description:e.prompt,example:e,icon:e.icon,id:e.id,title:e.title}}let R={primary:T.GENERAL_CHAT_HOMEPAGE_PRIMARY_ACTIONS.map(M),more:T.GENERAL_CHAT_HOMEPAGE_MORE_ACTIONS.map(M)},U=E.STORY_PAGE_CHAT_SAMPLES.map(e=>
1({agent:"director",category:"video",description:e.prompt,example:{id:e.id,prompt:e.prompt,references:e.references.map(e=>({label:e.label,mediaType:e.type,url:e.url}))},icon:O.IconIconsaxVideoGenerateBold,id:e.id,title:e.chipLabel})),D={general:R,director:{primary:U.slice(0,3),more:U.slice(3)}},z={films:["short-film-direct-scene","short-film-design-poster","short-film-music-finale"],ads_marketing:["homepage-film-my-product","commerce-spin-product","commerce-music-for-ad"],ecommerce:["commerce-spin-product","commerce-stage-hero-shot","commerce-music-for-ad"],social_short_form:["social-sell-product-on-camera","social-design-ai-influencer","social-music-for-reel"],music_videos:["homepage-music-for-film","short-film-music-finale","social-music-for-reel"],animation:["short-film-direct-scene","social-design-ai-influencer","homepage-music-for-film"],graphics_print:["homepage-design-film-poster","commerce-stage-hero-shot","social-design-ai-influencer"],comics_illustration:["homepage-design-film-poster","short-film-direct-scene","commerce-stage-hero-shot"]},F=L.STATSIG_EXPERIMENTS.personalizedPills,W={status:"ineligible"};var V=e.i(317884),G=e.i(779342),H=e.i(747107),B=e.i(465894),$=e.i(275348),q=e.i(780506),K=e.i(187453),X=e.i(202714),Y=e.i(389077),Z=e.i(861569),Q=e.i(32772),J=e.i(24949),ee=e.i(914005),et=e.i(530231),ea=e.i(405471),en=e.i(417798),er=e.i(36478),ei=e.i(682503),es=e.i(803298),eo=e.i(478297),el=e.i(408456),ec=e.i(856609),ed=e.i(561154),ep=e.i(608423),ex=e.i(499758),eu=e.i(273324),em=e.i(642558);function eg(e){(0,em.event)("navigation_engaged",{navigation_name:e.toLowerCase().replaceAll(/[\s-]/g,"_"),click_source:"primary_navigation"})}let eh={text:"",picks:[]};function ef(e,t){if(!e)return;let a=new Map(t.flatMap(e=>e.uploadId?[[e.id,e.uploadId]]:[]));return function e(t){let n="string"==typeof t.attrs?.id?t.attrs.id:void 0,r="chatboxMention"===t.type&&n?a.get(n):void 0;return{...t,...r?{attrs:{...t.attrs,id:r}}:{},...t.content?{content:t.content.map(t=>e(t))}:{}}}(e)}function eb(e){return`openart:homepage:agent-composer-draft:${e}`}function ev(e,t){if(e)try{if(0===t.text.trim().length&&0===t.picks.length)return void window.localStorage.removeItem(eb(e));window.localStorage.setItem(eb(e),JSON.stringify(t))}catch{}}function ej(e){return e.replaceAll("-","_")}function ew(e){return"director"===e?"director":"chat"}
1let e_=(0,e.i(711317).create)(e=>({agent:"general",setAgent:t=>e({agent:t})}));var eN=e.i(804628),ey=e.i(418939),eC=e.i(589286),ek=e.i(333532);let eI=[{id:"general",label:"Chat Mode",subtitle:"Creates images, videos, and audio as you chat",icon:eC.IconAiChattingFill},{id:"director",label:"Director Mode",subtitle:"Starts a full production, from script to final cut",icon:O.IconIconsaxVideoGenerateBold}],eS={general:"Chat Mode",director:"Director Mode"};function eA({value:e,onChange:a,className:n,triggerLabelClassName:r}){return(0,t.jsxs)(eN.Root,{children:[(0,t.jsx)(eN.Trigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","aria-label":`Agent: ${eS[e]}`,title:eS[e],className:(0,d.cn)($.CHATBOX_PILL_TRIGGER_CLASS,"group/agent",n),children:[(0,t.jsx)("span",{className:(0,d.cn)("whitespace-nowrap",r),children:eS[e]}),(0,t.jsx)(ek.IconArrowDownBold,{className:"size-4 shrink-0 group-data-[state=open]/agent:rotate-180"})]})}),(0,t.jsx)(eN.Portal,{children:(0,t.jsx)(eN.Content,{align:"start",collisionPadding:12,side:"bottom",sideOffset:8,className:(0,d.cn)("z-50 w-max max-w-[calc(100vw-24px)] rounded-2xl p-2","border border-border-container-overlay-base bg-background-container-overlay-base","shadow-[0_8px_64px_rgba(0,0,0,0.85)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95"),children:eI.map(n=>{let r=n.icon;return(0,t.jsxs)(eN.Item,{className:(0,d.cn)("flex w-full cursor-pointer select-none items-center justify-between gap-5 rounded-lg p-2 outline-none","transition-colors duration-100","data-[highlighted]:bg-background-neutral-soft-hover"),onSelect:()=>a(n.id),children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col items-start",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(r,{"aria-hidden":"true",className:"size-4 shrink-0 text-text-icon-neutral-high-contrast"}),(0,t.jsx)("span",{className:"text-[13px] font-medium leading-5 text-text-icon-neutral-high-contrast",children:n.label})]}),(0,t.jsx)("span",{className:"max-w-full truncate whitespace-nowrap pl-[26px] text-[12px] leading-4 tracking-[0.05px] text-text-icon-neutral-default",children:n.subtitle})]}),n.id===e?(0,t.jsx)(ey.Check,{"aria-hidden":"true",className:"size-6 shrink-0 text-text-icon-neutral-high-contrast"}):null]},n.id)})})})]})}let eP=(0,d.cn)("h-9 min-w-0 pl-3 pr-2 text-[12px] leading-4 tracking-[0.05px]","md:h-[40px] md:pl-[16px] md:pr-[12px] md:text-[14px] md:leading-[20px] md:tracking-[-0.03px]"),eL="min-w-0 truncate",eT=(0,eo.buildMyAssetsCharactersTab)(""),eE=["Film my perfume bottle on a beach at sunset...","A 30-second short film about a long-distance goodbye...","Make a poster for my coffee shop's grand opening...","Turn my cat into an action movie hero...","Upbeat background music for my unboxing video...","A vertical drama scene: two strangers share an umbrella..."];function eO(e){return e.types.includes("Files")}function eM({appearance:e="default",className:a,ref:n}){let[i,s]=(0,r.useState)(""),o=(0,r.useRef)(i);o.current=i;let l=(0,r.useRef)(void 0),c=(0,r.useRef)(null),[p,x]=(0,r.useState)(!1),[u,m]=(0,r.useState)(!1),[g,h]=(0,r.useState)(void 0),f=e_(e=>e.agent),b=e_(e=>e.setAgent),v=(0,r.useRef)(null),j=(0,r.useRef)(null),w=(0,r.useRef)(null),{start:_,isStarting:N}=function(){let e=(0,V.useRouter)(),[t,a]=(0,r.useTransition)(),n=(0,en.useGeneralChatStore)(e=>e.setSessionId),i=(0,en.useGeneralChatStore)(e=>e.setAutoModeEnabled),s=(0,en.useGeneralChatStore)(e=>e.clearComposerPicks),o=(0,en.useGeneralChatStore)(e=>e.enqueueComposerExample);return{start:(0,r.useCallback)((t,r=[],{onAutoSendConsumed:l,origin:c}={})=>{let{autoModeEnabled:d}=en.useGeneralChatStore.getState();n(null),s(),i(d);let p=t.trim();(p||r.length>0)&&((0,es.trackAgentToolStart)({agentType:"chat",clickSource:A.AGENT_TOOL_CLICK_SOURCE.home,autoModeEnabled:d,...c?{origin:c}:{}}),o({prompt:p,picks:r,autoSend:!0,...l?{onAutoSendConsumed:l}:{},...c?{origin:c}:{}})),eg("chat"),a(()=>
1{e.push((0,ed.withProjectParams)("/chat"))})},[n,i,s,o,e]),isStarting:t}}(),{start:y,isStarting:C}=(0,ep.useStartDirectorStory)(A.AGENT_TOOL_CLICK_SOURCE.chatbox),{checkAuth:k}=(0,Z.useRequireAuth)(),{openVisualReferences:I}=(0,er.useGlobalDialogs)(),S=(0,en.useGeneralChatStore)(e=>e.autoModeEnabled),P=(0,en.useGeneralChatStore)(e=>e.setAutoModeEnabled),{projectId:L}=(0,ec.useProjectContext)(),{attachments:T,isUploading:O,ingestFiles:M,addMediaPicks:R,replaceMediaPicks:U,removeAttachment:D}=(0,et.useComposerAttachments)({projectId:L??""}),z=(0,r.useRef)(T);z.current=T;let F=(0,r.useRef)(void 0),W=(0,r.useRef)(void 0),eo=(0,r.useRef)(!1),em=(0,r.useCallback)(()=>{window.clearTimeout(W.current),W.current=void 0;let e=F.current;if(!e||eo.current)return;let t=ef(l.current,z.current);ev(e,{text:o.current,...t?{content:t}:{},picks:(0,et.mediaPicksFromAttachments)(z.current)})},[]);(0,r.useEffect)(()=>{if(!L||!u||F.current===L)return;let e=F.current;em();let t=o.current.trim().length>0||z.current.length>0;eo.current=!1;let a=function(e){if(!e)return eh;try{let t=window.localStorage.getItem(eb(e));if(!t)return eh;let a=JSON.parse(t);return{text:"string"==typeof a.text?a.text:"",...a.content&&"object"==typeof a.content?{content:a.content}:{},picks:Array.isArray(a.picks)?a.picks:[]}}catch{return eh}}(L);if(function({previousProjectId:e,hasLiveDraft:t}){return!e&&t}({previousProjectId:e,hasLiveDraft:t})){F.current=L,h(L);return}c.current=null,o.current=a.text,l.current=a.content,s(a.text),U(a.picks),a.content?v.current?.setJsonContentSilently(a.content):v.current?.setContentSilently(a.text,[]),F.current=L,h(L)},[L,u,U,em]),(0,r.useEffect)(()=>()=>em(),[em]);let ew=(0,r.useMemo)(()=>T.map(e=>{let t=e.fileName??e.name;return"audio"===e.type?{id:e.id,name:t,type:"audio"}:"video"===e.type?{id:e.id,name:t,type:"video",...e.url?{videoUrl:e.url}:{}}:{id:e.id,name:t,type:"image",...e.previewUrl?{thumbnailUrl:e.previewUrl}:{}}}),[T]);(0,r.useEffect)(()=>{L&&g===L&&(window.clearTimeout(W.current),W.current=window.setTimeout(()=>{let e=ef(l.current,T);ev(L,{text:i,...e?{content:e}:{},picks:(0,et.mediaPicksFromAttachments)(T)}),W.current=void 0},300))},[L,g,i,T]);let eN=(0,r.useCallback)(e=>{o.current=e,l.current=v.current?.getJson()??void 0,0===e.trim().length&&(c.current=null),s(e)},[]),ey=(0,r.useCallback)(()=>m(!0),[]),eC=(0,r.useCallback)(e=>{eo.current=!0,window.clearTimeout(W.current),W.current=void 0;if(e)try{window.localStorage.removeItem(eb(e))}catch{}},[]),ek=(0,r.useMemo)(()=>"general"===f?e=>{let t=T.find(t=>t.id===e.id||t.uploadId===e.id),a=t?.url;if(!a)return`@${e.label}`;let n=(0,el.sanitizeMentionLabel)(e.label),r=t.uploadId??e.id;return t.assetKind?`@[${n}](${t.assetKind}:${r},url:${(0,J.encodeMentionUrl)(a)})`:`@[${n}](upload:${r},media:${t.type},url:${(0,J.encodeMentionUrl)(a)})`}:null,[f,T]),eI=(0,r.useCallback)(e=>{v.current?.appendText(e)},[]),eS=(0,ei.useVoiceComposer)({onTranscript:eI});(0,r.useImperativeHandle)(n,()=>({setExample:e=>{let{prompt:t}=e;c.current=e.id;let a=(0,ea.mediaPicksFromEmptyStateExample)(e);v.current?.setTextWithMentions(t,a.map((e,t)=>{let a=e.label??`${e.mediaType} ${t+1}`;return"audio"===e.mediaType?{id:e.id,name:a,type:"audio"}:"video"===e.mediaType?{id:e.id,name:a,type:"video",videoUrl:e.url}:{id:e.id,name:a,type:"image",thumbnailUrl:e.thumbnailUrl??e.url}})),U(a),requestAnimationFrame(()=>{j.current&&(j.current.scrollTop=0)})}}));let eM=("general"===f||i.trim().length>0)&&!O&&!C&&!N,eR="desktop-homepage"===e,eU=()=>{if(!eM||!k())return;let e=(v.current?.getText()??i).trim(),t=(0,et.mediaPicksFromAttachments)(T),a=c.current,n=a?{promptOrigin:"suggestion",suggestionId:ej(a)}:{promptOrigin:"typed"};if("director"===f)return L?void y({projectId:L,text:e,references:(0,ee.storyPageReferencesFromMediaPicks)(t),autoModeEnabled:S,origin:n}).then(e=>{"started"===e&&eC(L)}):void G.toast.error("Couldn't resolve your project. Please retry in a moment.");let r=t.filter(t=>!t.assetKind||!e.includes(`${t.assetKind}:${t.id}`));_([e,...(0,ee.characterMentionTokensFromMediaPicks)(r)].filter(Boolean).join(" "),t,{onAutoSendConsumed:()=>eC(L),origin:n})},eD=(0,r.useCallback)(e=>{eO(e.dataTransfer)&&(e.preventDefault(),x(!0))},[]),ez=(0,r.useCallback)(e=>{eO(e.dataTransfer)&&(e.preventDefault(),e.dataTransfer.dropEffect="copy")},[]),eF=(0,r.useCallback)(e=>{e.currentTarget.contains(e.relatedTarget)||x(!1)},[]),eW=(0,r.useCallback)(e=>{x(!1),0===e.dataTransfer.files.length||(e.preventDefault(),k()&&M(Array.from(e.dataTransfer.files)))},[k,M]),eV=(0,r.useCallback)(e=>{let t=Array.from(e.clipboardData.files);0===t.length||(e.preventDefault(),k()&&M(t))},[k,M]);return(0,t.jsx)("div",{className:(0,d.cn)("relative flex w-full max-w-[832px] flex-col",$.CHATBOX_CARD_CLASS,!eR&&"rounded-[20px] border-0 bg-transparent p-0 shadow-none",eR&&"max-w-[888px] border-0 bg-[rgba(9,10,10,0.85)] ring-1 ring-inset ring-[rgba(255,255,255,0.05)] shadow-[0px_8px_28px_rgba(0,0,0,0.45)]",p&&"ring-2 ring-border-brand-default",a),onMouseDown:e=>(0,K.handleComposerSurfaceMouseDown)(e,()=>v.current?.focus()),onDragEnter:eD,onDragOver:ez,onDragLeave:eF,onDrop:eW,onPaste:eV,children:(0,t.jsxs)("div",{className:(0,d.cn)("relative flex w-full flex-col justify-between gap-2 overflow-clip","min-h-[156px] rounded-[20px] p-3 backdrop-blur-[25px]","bg-background-neutral-soft md:bg-transparent","md:rounded-[30px] md:p-4 md:backdrop-blur-none",!eR&&"border border-white/40",eR?"md:min-
1h-[176px]":"md:min-h-[160px]"),children:[eR?(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1] rounded-[inherit]",style:$.CHATBOX_BORDER_STYLE}):null,(0,t.jsx)("input",{accept:[Y.COMPOSER_MEDIA_ACCEPT,Y.COMPOSER_VIDEO_ACCEPT].join(","),className:"hidden",multiple:!0,onChange:e=>{let t=Array.from(e.target.files??[]);t.length>0&&M(t),e.target.value=""},ref:w,type:"file"}),T.length>0&&(0,t.jsx)("div",{"data-chatbox-references":!0,className:"scrollbar-on-hover relative z-10 flex max-w-full shrink-0 gap-2 overflow-x-auto overflow-y-hidden px-2 pb-1",children:T.map(e=>(0,t.jsx)(Q.ComposerAttachmentChip,{attachment:e,onRemove:()=>{var t;let a;return D(t=e.id),a=T.find(e=>e.id===t),void v.current?.removeMentions([t,a?.uploadId].filter(e=>!!e))}},e.id))}),(0,t.jsx)("div",{ref:j,className:"relative z-10 flex min-h-0 w-full flex-1 cursor-text flex-col overflow-y-auto px-2 py-1.5",style:{maxHeight:"min(312px, calc(80vh - 92px))"},children:(0,t.jsx)(ex.ChatboxEditor,{ref:v,placeholderPhrases:"director"===f?E.CHATBOX_PLACEHOLDER_PHRASES:eE,mentionAssets:ew,serializeMention:ek,onReady:ey,onChange:eN,onSubmit:eU,maxLength:1e4,className:(0,d.cn)("font-bricolage-grotesque font-medium leading-8","text-[14px] tracking-[-0.28px] md:text-[15px] md:tracking-[-0.3px]","caret-[#ff00c7] text-text-icon-neutral-primary")})}),(0,t.jsxs)("div",{className:"relative z-10 flex h-9 w-full items-center justify-between md:h-[40px]",children:[(0,t.jsxs)("div",{className:(0,d.cn)("flex min-w-0 items-center gap-0.5 md:gap-2","transition-[opacity,transform] duration-200 ease-out",eS.isUiVisible&&"pointer-events-none opacity-0"),children:[(0,t.jsx)(q.ComposerAddMenu,{className:"size-9 shrink-0 md:size-[40px]",localSubtitle:"Images / Audio / Videos",myAssetsSubtitle:"Characters / Media",onAction:e=>{if(k()){let t;if("local"===e)return void w.current?.click();(t=Math.max(0,et.MAX_COMPOSER_ATTACHMENTS-T.length))<=0?G.toast.warning(`Supports up to ${et.MAX_COMPOSER_ATTACHMENTS} Attached`):I({title:"My Assets",centered:!0,confirmMode:!0,max:t,capMessage:`Supports up to ${et.MAX_COMPOSER_ATTACHMENTS} Attached`,allowedTabs:["characters","images","videos","audios"],defaultTab:"images",flowVariant:"general",tabExtensions:{charactersTab:eT},onSelect:e=>R((0,ee.myAssetsPicksFromSelection)(e))})}},side:"bottom"}),(0,t.jsx)(eA,{className:eP,onChange:b,triggerLabelClassName:eL,value:f})]}),(0,t.jsxs)("div",{className:(0,d.cn)("flex min-w-0 items-center gap-1 md:gap-1.5","transition-[opacity,transform] duration-200 ease-out",eS.isUiVisible&&"pointer-events-none translate-x-3 opacity-0"),children:[(0,t.jsx)(H.AutoModeMenu,{...B.GENERAL_AUTO_MODE_COPY,enabled:S,onChange:P,showTriggerIcon:!1,side:"bottom",triggerClassName:(0,d.cn)($.CHATBOX_PILL_TRIGGER_CLASS,eP),triggerLabelClassName:eL}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[eS.isSupported&&(0,t.jsx)("span",{className:"flex [&>button]:size-9 md:[&>button]:size-[40px]",children:(0,t.jsx)(X.ComposerMicButton,{voice:eS})}),(0,t.jsx)("button",{type:"button","aria-label":"Send",disabled:!eM,onClick:eU,className:(0,d.cn)((0,$.chatboxSubmitClass)(!eM),"size-9 md:size-[40px]"),children:(0,t.jsx)(eu.IconArrowUpwardAlt,{className:"size-5 md:size-[24px]"})})]})]}),eS.isUiVisible&&(0,t.jsx)(X.ComposerVoiceOverlay,{voice:eS})]})]})})}e.i(814368);var eR=e.i(790990);function eU({tabs:e,value:a,onChange:i,className:s}){let o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{o.current?.querySelector(`[data-tab-id="${a}"]`)?.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})},[a]),(0,t.jsx)(eR.ScrollFadeContainer,{axis:"x",fadeMode:"mask",fadeSize:24,className:s,viewportClassName:"h-full w-full overflow-x-auto flex items-center gap-3 md:justify-center",ref:o,children:e.map(e=>{let r=e.id===a;return(0,t.jsxs)("button",{"data-tab-id":e.id,type:"button",onClick:()=>i(e.id),className:"group relative flex max-w-40 cursor-pointer items-center justify-center rounded-full px-4 py-2",children:[r?(0,t.jsx)(n.motion.span,{layoutId:"agent-hero-category-tab-pill",transition:{duration:.2,ease:"easeOut"}
1,"aria-hidden":!0,className:(0,d.cn)("pointer-events-none absolute inset-0 rounded-full","bg-background-neutral-solid-high-contrast","shadow-[inset_0px_1px_0px_0px_rgba(217,237,254,0.15)]")}):(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.cn)("pointer-events-none absolute inset-0 rounded-full","opacity-0 transition-opacity duration-100 ease-out group-hover:opacity-100","bg-background-neutral-ghost-hover","shadow-[inset_0px_1px_0px_0px_rgba(221,234,248,0.08)]")}),(0,t.jsx)("span",{className:(0,d.cn)("relative whitespace-nowrap text-center text-[14px] leading-5 tracking-[-0.03px]","transition-colors duration-100 ease-out",r?"font-bold text-text-icon-neutral-solid-high-contrast":"font-medium text-text-icon-neutral-high-contrast group-hover:text-text-icon-neutral-primary"),children:e.label})]},e.id)})})}var eD=e.i(710411);let ez=`url("data:image/svg+xml;utf8,${encodeURIComponent('<svg viewBox="0 0 97 38" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><rect width="100%" height="100%" fill="url(#g)"/><defs><radialGradient id="g" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="10" gradientTransform="matrix(2.6902e-7 2.2859 -4.8099 5.0027e-7 48.099 38)"><stop stop-color="rgba(146,153,166,1)" offset="0"/><stop stop-color="rgba(110,115,124,0.75)" offset="0.25"/><stop stop-color="rgba(73,76,83,0.5)" offset="0.5"/><stop stop-color="rgba(37,38,41,0.25)" offset="0.75"/><stop stop-color="rgba(0,0,0,0)" offset="1"/></radialGradient></defs></svg>')}")`,eF=[{mode:"agent",label:"Chat",icon:eC.IconAiChattingFill},{mode:"tools",label:"Tools",icon:eD.IconEnhance1}];function eW({mode:e,onModeChange:a,className:r,agentLabel:i="Agents"}){return(0,t.jsx)("div",{className:(0,d.cn)("flex items-center gap-0.5 rounded-full p-0.5","bg-background-neutral-soft-hover","border border-border-container-panel-base",r),children:eF.map(({mode:r,label:s,icon:o})=>{let l=r===e,c="agent"===r?i:s;return(0,t.jsxs)("button",{type:"button",onClick:()=>a(r),className:(0,d.cn)("group relative flex max-w-40 cursor-pointer items-center justify-center gap-1.5","rounded-full px-5 py-1.5 md:py-[9px]"),children:[l?(0,t.jsx)(n.motion.span,{layoutId:"agent-hero-mode-thumb",transition:{duration:.4,ease:"easeOut"},"aria-hidden":!0,className:(0,d.cn)("pointer-events-none absolute inset-0 rounded-full","bg-background-neutral-soft-active","shadow-[inset_0px_1px_0px_0px_rgba(217,237,254,0.15)]"),children:(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 rounded-full mix-blend-exclusion",style:{backgroundImage:ez}})}):(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.cn)("pointer-events-none absolute inset-0 rounded-full","opacity-0 transition-opacity duration-100 ease-out group-hover:opacity-100","bg-background-neutral-ghost-hover","shadow-[inset_0px_1px_0px_0px_rgba(221,234,248,0.08)]")}),(0,t.jsx)(o,{className:(0,d.cn)("relative size-[18px] shrink-0","transition-colors duration-100 ease-out",l?"text-text-icon-neutral-primary":"text-text-icon-neutral-default group-hover:text-text-icon-neutral-primary")}),(0,t.jsx)("span",{className:(0,d.cn)("relative whitespace-nowrap text-center text-[14px] leading-5 tracking-[-0.03px]","transition-colors duration-100 ease-out",l?"font-bold text-text-icon-neutral-primary":"font-medium text-text-icon-neutral-default group-hover:text-text-icon-neutral-primary"),children:c})]},r)})})}var eV=e.i(281664),eG=e.i(16389),eH=e.i(493745);let eB={video:"Video",image:"Image",audio:"Audio"},e$={video:"bg-background-brand-soft text-text-icon-brand-default",image:"bg-background-brand-secondary-soft text-text-icon-brand-secondary-default",audio:"bg-background-info-soft text-text-icon-info-default"};function eq({suggestion:e,className:a,iconClassName:n}){let r=e.icon;return(0,t.jsx)("span",{className:(0,d.cn)("flex shrink-0 items-center justify-center",e$[e.category],a),children:(0,t.jsx)(r,{"aria-hidden":!0,className:(0,d.cn)("shrink-0",n)})})}function eK(e){let[t,a]=(0,r.useState)(!1);return{expanded:t,toggle:()=>{t||e?.(),a(e=>!e)},collapse:()=>a(!1)}}function eX({expanded:e,className:a,children:n}){return(0,t.jsx)("div",{className:(0,d.cn)("grid transition-[grid-template-rows] duration-[450ms] ease-[cubic-bezier(0.2,0,0,1)]",e?"grid-rows-[1fr]":"grid-rows-[0fr]",a),children:(0,t.jsx)("div",{inert:!e,className:(0,d.cn)("min-h-0 overflow-hidden transition-opacity duration-300",e?"opacity-100":"opacity-0"),children:n})})}function eY({expanded:e,onToggle:a,className:n}){return(0,t.jsxs)("button",{type:"button","aria-expanded":e,onClick:a,className:(0,d.cn)("flex cursor-pointer items-center transition-colors duration-150",n),children:[e?"Show less":"More ideas",(0,t.jsx)(ek.IconArrowDownBold,{"aria-hidden":!0,
1className:(0,d.cn)("size-4 shrink-0",e&&"rotate-180")})]})}function eZ({suggestion:e,onSelect:a,ref:n}){let i=(0,r.useId)(),s=e.example.references.filter(e=>"image"===e.mediaType).slice(0,2);return(0,t.jsxs)("button",{ref:n,type:"button","aria-labelledby":i,onClick:()=>a(e),className:(0,d.cn)("flex w-full cursor-pointer flex-col gap-2.5 rounded-[14px] p-3 text-left md:rounded-2xl md:p-3.5","bg-gradient-to-b from-customize-ice-blue-5 to-customize-ice-blue-9","shadow-[inset_0_1px_0_var(--color-border-neutral-divider),0_0_0_1px_var(--color-customize-ice-blue-8)]","transition-[background,box-shadow] duration-150","hover:from-customize-ice-blue-13 hover:to-customize-ice-blue-17","hover:shadow-[inset_0_1px_0_var(--color-customize-ice-blue-20),0_0_0_1px_var(--color-customize-ice-blue-18),0_8px_24px_rgba(0,0,0,0.35)]"),children:[(0,t.jsxs)("span",{className:"flex items-center justify-between",children:[s.length>0?(0,t.jsx)("span",{className:"flex",children:s.map((e,a)=>(0,t.jsx)("span",{className:(0,d.cn)("relative size-9 shrink-0 overflow-hidden rounded-[10px] md:size-10","ring-2 ring-background-container-overlay-surface-sunken",a>0&&"-ml-2.75 md:-ml-3"),children:(0,t.jsx)(eV.default,{src:(0,eG.cdnImageUrl)(e.url,{width:80}),alt:"",fill:!0,sizes:"40px",className:"object-cover"})},e.url))}):(0,t.jsx)(eq,{suggestion:e,className:"size-9 rounded-[10px] md:size-10",iconClassName:"size-5.5"}),(0,t.jsx)("span",{className:"text-[11px] font-medium leading-4 text-text-icon-neutral-secondary",children:eB[e.category]})]}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.75",children:[(0,t.jsx)("span",{id:i,className:"text-[13px] font-semibold leading-4.5 text-text-icon-neutral-primary md:text-[14px] md:leading-5",children:e.title}),(0,t.jsx)("span",{"data-notranslate":!0,className:"line-clamp-2 text-[11px] leading-3.75 text-text-icon-neutral-default [text-wrap:pretty] md:text-[12px] md:leading-4.25",children:e.description})]})]})}var eQ=e.i(629389);let eJ=(0,d.cn)("relative rounded-full cursor-pointer","bg-gradient-to-b from-[rgba(214,225,255,0.04)] to-[rgba(214,225,255,0.08)]","shadow-[inset_0px_1px_0px_0px_rgba(214,225,255,0.1)]","transition-[background,box-shadow,color] duration-100 ease-out","hover:from-[rgba(214,225,255,0.25)] hover:to-[rgba(214,225,255,0.16)]","hover:shadow-[inset_0px_1px_0px_0px_rgba(214,225,255,0.2)]","active:from-[rgba(214,225,255,0.3)] active:to-[rgba(214,225,255,0.3)]");function e0({label:e,icon:a,onClick:n,className:r,appearance:i="default"}){return(0,t.jsxs)("button",{type:"button",onClick:n,className:(0,d.cn)(eJ,"group flex items-center justify-center gap-1","desktop-homepage"===i?"px-4 py-2.5":"py-2 pl-3.5 pr-4",r),children:[(0,t.jsx)(a,{className:(0,d.cn)("size-4 shrink-0 text-white/80","transition-colors duration-100 ease-out","group-hover:text-text-icon-neutral-primary","group-active:text-text-icon-neutral-primary")}),(0,t.jsx)("span",{className:(0,d.cn)("whitespace-nowrap font-medium","desktop-homepage"===i?"text-[13px] leading-5":"text-[12px] leading-4 tracking-[0.05px]","text-white/80 transition-colors duration-100 ease-out","group-hover:text-text-icon-neutral-primary","group-active:text-text-icon-neutral-primary"),children:e})]})}let e1=(0,r.forwardRef)(function({className:e,type:a="button",...n},r){return(0,t.jsx)("button",{ref:r,type:a,...n,className:(0,d.cn)(eJ,"flex shrink-0 items-center justify-center px-4 py-2 md:py-2.5","whitespace-nowrap text-[12px] font-medium leading-4 tracking-[0.05px] text-white/80","hover:text-text-icon-neutral-primary active:text-text-icon-neutral-primary","md:text-[13px] md:leading-5 md:tracking-normal",e),children:"More"})});function e2({items:e,onSelect:a,onOpen:n}){return(0,t.jsxs)(eQ.Root,{onOpenChange:e=>e&&n?.(),children:[(0,t.jsx)(eQ.Trigger,{asChild:!0,children:(0,t.jsx)(e1,{})}),(0,t.jsx)(eQ.Portal,{children:(0,t.jsx)(eQ.Content,{align:"end",collisionPadding:12,side:"bottom",sideOffset:8,className:(0,d.cn)("z-50 max-h-[min(278px,calc(var(--radix-popover-content-available-height)-16px))] w-[280px] max-w-[calc(100vw-24px)] overflow-hidden rounded-[20px] outline-none","border border-border-container-overlay-base bg-background-container-overlay-base","shadow-[0px_9px_32px_rgba(0,0,0,0.45)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95"),children:(0,t.jsx)(eR.ScrollFadeContainer,{className:"overflow-hidden",contentKey:e,overlayClassName:"from-background-container-overlay-base",showIndicator:!0,showScrollbar:!0,size:"sm",viewportClassName:"max-h-[min(276px,calc(var(--radix-popover-content-available-height)-18px))] overflow-x-hidden overflow-y-auto",children:(0,t.jsx)("div",{className:"m-2 flex flex-col",children:e.map(e=>(0,t.jsx)(eQ.Close,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",className:(0,d.cn)("relative flex w-full cursor-pointer items-center gap-2 rounded-[10px] px-3 py-2.5 outline-none","text-[13px] font-normal leading-5 text-text-icon-neutral-primary","hover:bg-gradient-to-b hover:from-[rgba(214,225,255,0.08)] hover:to-[rgba(214,225,255,0.16)]","hover:shadow-[inset_0px_1px_0px_rgba(214,225,255,0.1)]","active:bg-[rgba(214,225,255,0.3)] active:bg-none active:shadow-[inset_0px_1px_0px_rgba(214,225,255,0.2)]","focus-visible:bg-gradient-to-b focus-visible:from-[rgba(214,225,255,0.08)] focus-visible:to-[rgba(214,225,255,0.16)]","transition-[background,box-shadow] duration-100 ease-out"),onClick:()=>a(e),title:e.description,children:[(0,t.jsx)(e.icon,{"aria-hidden":!0,
1className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap",children:e.title})]})},e.id))})})})})]})}let e3={"homepage-design-film-poster":"Design your poster"};function e5({suggestion:e,onSelect:a}){return(0,t.jsxs)("button",{type:"button",onClick:()=>a(e),className:(0,d.cn)("flex w-full cursor-pointer items-start gap-3 py-2.25 text-left md:items-center md:gap-4","text-label-large text-text-icon-neutral-default md:text-[16px] md:leading-5.5","transition-colors duration-150 hover:text-text-icon-neutral-primary"),children:[(0,t.jsx)(eq,{suggestion:e,className:"-mt-px size-5.5 rounded-md md:mt-0 md:size-6",iconClassName:"size-4"}),(0,t.jsx)("span",{"data-notranslate":!0,className:"line-clamp-2 min-w-0 [text-wrap:pretty] md:line-clamp-1",children:function(e,t=160){if(e.length<=t)return e;let a=e.slice(0,t),n=a.lastIndexOf(" ");return`${(n>t/2?a.slice(0,n):a).trimEnd()}â¦`}(e.description)})]})}let e4=["chips","list","cards"],e8=L.STATSIG_EXPERIMENTS.homepageSuggestionLayout;function e6(){let e=(0,P.useStatsigExperimentArm)(e8,"");return e4.includes(e)?e:null}let e7={chips:function({suggestions:e,onSelect:a,onExpandMore:n,appearance:r}){return(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full items-start justify-center gap-2","desktop-homepage"===r?"max-w-[732px]":"max-w-[720px]"),children:[(0,t.jsx)(eR.ScrollFadeContainer,{axis:"x",fadeMode:"mask",fadeSize:24,className:"min-w-0",viewportClassName:"h-full w-full overflow-x-auto flex",children:(0,t.jsxs)("div",{className:"mx-auto flex items-start gap-1.5 md:gap-2",children:[e.primary.map(e=>(0,t.jsx)("div",{children:(0,t.jsx)(e0,{label:"desktop-homepage"===r?e.title:e3[e.id]??e.title,icon:e.icon,onClick:()=>a(e),appearance:r})},`${e.agent}:${e.id}`)),(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)(e2,{items:e.more,onSelect:a,onOpen:n})})]})}),(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(e2,{items:e.more,onSelect:a,onOpen:n})})]})},list:function({suggestions:e,onSelect:a,onExpandMore:n,appearance:r}){let{expanded:i,toggle:s,collapse:o}=eK(n),l=e=>{o(),a(e)};return(0,t.jsxs)("div",{className:(0,d.cn)("mt-1 flex w-full flex-col px-5 md:px-6","desktop-homepage"===r?"max-w-[888px]":"max-w-[832px]"),children:[e.primary.map(e=>(0,t.jsx)(e5,{suggestion:e,onSelect:l},`${e.agent}:${e.id}`)),e.more.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eX,{expanded:i,children:(0,t.jsx)("div",{className:"flex flex-col",children:e.more.map(e=>(0,t.jsx)(e5,{suggestion:e,onSelect:l},`${e.agent}:${e.id}`))})}),(0,t.jsx)(eY,{expanded:i,onToggle:s,className:(0,d.cn)("self-start gap-1 py-2 pl-8.5 md:py-2.25 md:pl-10","text-label-large text-text-icon-neutral-secondary md:text-[15px] md:leading-5.5","hover:text-text-icon-neutral-primary")})]})]})},cards:function({suggestions:e,onSelect:a,onExpandMore:n,appearance:i}){let{isMobile:o}=(0,s.useServerHints)(),l=(0,h.useIsMobile)(o),{expanded:c,toggle:p,collapse:x}=eK(n),[u,m]=(0,r.useState)(!1),g=(0,r.useRef)(null),f=(0,r.useRef)(null),b=(0,r.useRef)(null),v=e=>{b.current=e,c||m(!0),p()};(0,r.useEffect)(()=>{let e=b.current;b.current=null,"firstMore"===e&&c&&f.current?.focus(),"dashed"!==e||c||g.current?.focus()},[c]);let j=e=>{x(),a(e)},[w,..._]=e.more,N=l?_:e.more;return(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col px-4 md:px-0","desktop-homepage"===i?"max-w-[888px]":"max-w-[832px]"),children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2.5 md:grid-cols-3 md:gap-3",children:[e.primary.map(e=>(0,t.jsx)(eZ,{suggestion:e,onSelect:j},`${e.agent}:${e.id}`)),l&&w&&(0,t.jsxs)("div",{className:"grid",children:[(0,t.jsxs)("button",{ref:g,type:"button","aria-expanded":c,inert:c,onClick:()=>v("firstMore"),className:(0,d.cn)("col-start-1 row-start-1 flex cursor-pointer flex-col items-center justify-center gap-2 rounded-[14px] p-3","border border-dashed border-customize-ice-blue-22","text-[13px] font-medium leading-4.5 text-text-icon-neutral-default","transition-[opacity,transform] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",c?"scale-[0.96] opacity-0":"opacity-100"),children:[(0,t.jsx)("span",{className:"flex size-9 items-center justify-center rounded-full bg-customize-ice-blue-8",children:(0,t.jsx)(eH.IconAddBold,{"aria-hidden":!0,
1className:"size-5.5"})}),"More ideas"]}),u&&(0,t.jsx)("div",{inert:!c,className:(0,d.cn)("col-start-1 row-start-1 grid transition-opacity delay-100 duration-300",c?"opacity-100":"opacity-0"),children:(0,t.jsx)(eZ,{ref:f,suggestion:w,onSelect:j})})]})]}),e.more.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eX,{expanded:c,children:u&&(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2.5 pt-2.5 md:grid-cols-3 md:gap-3 md:pt-3",children:N.map(e=>(0,t.jsx)(eZ,{suggestion:e,onSelect:j},`${e.agent}:${e.id}`))})}),l?(0,t.jsx)(eX,{expanded:c,children:(0,t.jsxs)("button",{type:"button",onClick:()=>v("dashed"),className:(0,d.cn)("mt-2.5 flex w-full cursor-pointer items-center justify-center gap-1 rounded-[14px] py-2.75","bg-customize-ice-blue-6 text-[13px] font-medium leading-4.5 text-text-icon-neutral-default"),children:["Show less",(0,t.jsx)(ek.IconArrowDownBold,{"aria-hidden":!0,className:"size-4 shrink-0 rotate-180"})]})}):(0,t.jsx)(eY,{expanded:c,onToggle:()=>v(null),className:(0,d.cn)("mt-3 self-center gap-1 rounded-full py-2 pr-3.5 pl-4.5","bg-customize-ice-blue-6 text-[13px] font-medium leading-5 text-text-icon-neutral-default","hover:bg-border-neutral-divider hover:text-text-icon-neutral-primary")})]})]})}};function e9(e){let a;a=e6(),(0,P.useStatsigExposure)(a?e8:null);let n=e7[e6()??"chips"];return(0,t.jsx)(n,{...e})}var te=e.i(290378),tt=e.i(936447),ta=e.i(709851),tn=e.i(416019),tr=e.i(578156),ti=e.i(286343),ts=e.i(445067),to=e.i(144843),tl=e.i(57913),tc=e.i(830611);let td=[{id:"popular",label:"Popular"},{id:"video",label:"Video"},{id:"image",label:"Image"},{id:"audio",label:"Audio"},{id:"character",label:"Character"},{id:"world",label:"World"}],tp=(e,t)=>{let a=e.find(e=>e.title===t);return a||(console.error(`AgentHero tool list: no entry titled "${t}"`),null)},tx=(e,t,a)=>e.map(e=>({config:e,icon:t,...a?.[e.title]})),tu={"Create Music":{icon:tc.IconMusic2Fill}},tm={popular:[{config:tp(ta.videoConfigs,"Text to Video"),icon:ti.IconAiVideocameraFill,title:"Create Video"},{config:tp(ta.videoConfigs,"Frame to Video"),icon:ti.IconAiVideocameraFill},{config:tp(ta.imageConfigs,"Create Image"),icon:tr.IconAiImageFill},{config:tp(ta.imageConfigs,"Edit Image"),icon:tr.IconAiImageFill},{config:tp(ta.videoConfigs,"Smart Shot"),icon:ti.IconAiVideocameraFill},{config:tp(ta.audioConfigs,"Create voice-over"),icon:ts.IconAiVoiceNoteFill},{config:tp(ta.audioConfigs,"Create Music"),icon:tc.IconMusic2Fill},{config:tp(ta.characterConfigs,"Create Character"),icon:tl.IconCharacterFill}].filter(e=>null!==e.config),video:tx(ta.videoConfigs,ti.IconAiVideocameraFill),image:tx(ta.imageConfigs,tr.IconAiImageFill),audio:tx(ta.audioConfigs,ts.IconAiVoiceNoteFill,tu),character:tx(ta.characterConfigs,tl.IconCharacterFill),world:tx(ta.worldConfigs,to.IconAiWorldFill)};function tg({entry:e}){let{config:a,icon:n,title:r,isNew:i}=e,s=a.tool;return(0,t.jsxs)(tt.ProjectLink,{href:e.href??(0,ta.getToolHref)(s),onClick:()=>{te.ToolActionAnalytics.trackUseTool(s,te.EnumUseToolSource.OpenartSuite)},className:(0,d.cn)("group relative flex cursor-pointer items-center overflow-clip","rounded-[20px] py-2.5 md:py-2 md:pl-2 md:pr-6","transition-[background,box-shadow] duration-100 ease-out","hover:bg-gradient-to-b hover:from-[rgba(214,225,255,0.04)] hover:from-[25.321%] hover:to-[rgba(214,225,255,0.08)]","hover:shadow-[inset_0px_1px_0px_0px_rgba(214,225,255,0.1)]","active:bg-[rgba(214,225,255,0.12)] active:bg-none","active:shadow-[inset_0px_1px_0px_0px_rgba(214,225,255,0.16)]"),children:[(0,t.jsx)(tn.CachedImage,{src:a.posterUrl??"",alt:r??a.title,width:72,height:72,className:"size-12 shrink-0 rounded-[10px] object-cover md:size-[72px] md:rounded-[12px]"}),(0,t.jsxs)("div",{className:"flex min-w-px flex-1 flex-col justify-center self-stretch px-2 md:gap-0.5 md:px-4 md:py-2",children:[(0,t.jsxs)("div",{className:"flex w-full items-center gap-1.5 pr-10",children:[(0,t.jsx)("span",{className:(0,d.cn)("truncate text-text-icon-neutral-primary","text-[13px] font-semibold leading-5","md:font-bricolage-grotesque md:text-[16px] md:font-bold md:leading-6 md:tracking-[-0.12px]"),children:r??a.title}),i&&(0,t.jsx)("span",{className:(0,d.cn)("relative flex shrink-0 items-center justify-center px-1.5 py-px","rounded-tl-[2px] rounded-tr-[8px] rounded-br-[2px] rounded-bl-[8px]","bg-[#bfff40]","shadow-[inset_0px_1px_0px_0px_rgba(255,255,255,0.2)]","font-bricolage-grotesque text-[12px] font-extrabold capitalize leading-4","text-text-icon-fixed-black-high-contrast"),children:"NEW"})]}),(0,t.jsx)("span",{className:"w-full truncate text-[12px] leading-4 tracking-[0.05px] text-[rgba(214,225,255,0.4)] md:text-[14px] md:leading-5 md:tracking-[-0.03px]",children:a.description})]}),(0,t.jsx)("span",{className:(0,d.cn)("relative flex size-9 shrink-0 items-center justify-center rounded-full p-2.5 md:size-[34px]","bg-background-neutral-surface","shadow-[inset_0px_-2px_8px_0px_rgba(214,225,255,0.12),inset_0px_2px_6px_0px_rgba(214,225,255,0.12)]"),children:(0,t.jsx)(n,{className:"size-4 shrink-0 text-text-icon-neutral-default"})})]})}let th=(0,d.cn)("flex cursor-pointer items-center gap-1 rounded-full py-2 pl-4 pr-3","bg-background-neutral-soft transition-colors duration-100 ease-out","hover:bg-background-neutral-soft-hover","shadow-[inset_0px_1px_0px_0px_rgba(217,237,254,0.15)]","whitespace-nowrap text-[12px] font-medium leading-4 tracking-[0.05px] text-text-icon-neutral-high-contrast");function tf({category:e,className:a}){let[n,i]=(0,r.useState)(!1),s=(0,h.useIsMobile)()?4:8,o=tm[e],l=o.length>s+2,c=l&&!n,p=c?o.slice(0,s):o,x=c?o.slice(s):[];return(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col",a),children:[(0,t.jsx)("div",{className:"grid w-full grid-cols-1 gap-y-1 md:grid-cols-2 md:gap-x-6 md:gap-y-2",children:p.map(e=>(0,t.jsx)(tg,{entry:e},e.config.tool))}),c&&(0,t.jsxs)("div",{className:"relative mt-1 h-[100px] w-full md:mt-2 md:h-[184px]",children:[(0,t.jsx)("div",{"aria-hidden":!0,inert:!0,className:(0,d.cn)("pointer-events-none absolute inset-x-0 top-0 h-full overflow-clip","[mask-image:linear-gradient(180deg,rgba(0,0,0,1)_0%,rgba(0,0,0,0.85)_10%,rgba(0,0,0,0.45)_25%,rgba(0,0,0,0.12)_50%,rgba(0,0,0,0.02)_75%,rgba(0,0,0,0)_100%)]"),children:(0,t.jsx)("div",{className:"grid w-full grid-cols-1 gap-y-1 md:grid-cols-2 md:gap-x-6 md:gap-y-2",children:x.map(e=>(0,t.jsx)(tg,{entry:e},e.config.tool))})}),(0,t.jsxs)("button",{type:"button",onClick:()=>i(!0),className:(0,d.cn)(th,"absolute bottom-0 left-1/2 -translate-x-1/2"),children:["Show more",(0,t.jsx)(ek.IconArrowDownBold,{className:"size-4 shrink-0"})]})]}),l&&n&&(0,t.jsxs)("button",{type:"button",onClick:()=>i(!1),className:(0,d.cn)(th,"mx-auto mt-[38px]"),children:["Show less",(0,t.jsx)(ek.IconArrowDownBold,{className:"size-4 shrink-0 rotate-180"})]})]})}let tb={agent:"What are we making today?",tools:"Your studio, your controls"},tv={duration:.2,ease:"easeOut"};function tj({appearance:e="default",clickSource:a}){var n;let i=(0,r.useRef)(null),o=e_(e=>e.agent),l=function(){let{personalizedPills:e}
1=(0,s.useServerHints)(),t=e.withinCutoff&&e.hasAnsweredQ3,a="v1"===(0,P.useStatsigExperimentArm)(F,"v0",{enabled:t})?"v1":"v0",n=e.segment;return(0,r.useMemo)(()=>{if(!t)return W;if("v1"!==a)return{status:"enrolled",arm:a,segment:n,suggestions:null};let e=function(e,t=T.GENERAL_CHAT_ALL_ACTIONS,a=z){if(!e)return null;let n=new Map(t.map(e=>[e.id,e])),r=(a[e]??[]).flatMap(e=>{let t=n.get(e);return t?[t]:[]}).slice(0,3);if(r.length<3)return console.warn("[personalized-pills] incomplete mapping for segment:",e),null;let i=new Set(r.map(e=>e.id));return{primary:r,more:(0,T.sortActionsByHomepageCategory)(t.filter(e=>!i.has(e.id)))}}(n);return{status:"enrolled",arm:a,segment:n,suggestions:e?{primary:e.primary.map(M),more:e.more.map(M)}:null}},[t,a,n])}();n="general"===o&&"enrolled"===l.status,(0,P.useStatsigExposure)(n?F:null);let c="general"===o&&"enrolled"===l.status&&l.suggestions?l.suggestions:D[o];return(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-center","desktop-homepage"===e?"gap-6":"gap-4 md:gap-7"),children:[(0,t.jsx)(eM,{ref:i,appearance:e}),(0,t.jsx)(e9,{suggestions:c,onSelect:e=>{var t,n;a&&(t=e.id,n=[...c.primary,...c.more].findIndex(e=>e.id===t)+1,(0,em.event)("agent_reference_engaged",{agent_type:ew(e.agent),reference_type:"suggestion_chip",suggestion_id:ej(e.id),suggestion_position:n,click_source:a})),i.current?.setExample(e.example)},onExpandMore:()=>{a&&(0,em.event)("agent_reference_engaged",{agent_type:ew(o),reference_type:"suggestion_more",click_source:a})},appearance:e})]})}function tw(){let[e,a]=(0,r.useState)("popular"),n=(0,r.useRef)(null);return(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-center overflow-clip rounded-[24px] md:max-w-[1800px]","gap-3 py-4 md:gap-8 md:px-6 md:py-8","border-t border-[rgba(214,225,255,0.1)]","bg-[linear-gradient(180deg,rgba(214,225,255,0.06)_0%,rgba(214,225,255,0)_75.48%)]"),children:[(0,t.jsx)(eU,{tabs:td,value:e,onChange:a,className:"w-full px-3 md:px-0"}),(0,t.jsx)("div",{className:"w-full",onTouchStart:e=>{let t=e.touches[0];n.current={x:t.clientX,y:t.clientY}},onTouchEnd:t=>{let r=n.current;if(n.current=null,!r)return;let i=t.changedTouches[0],s=i.clientX-r.x,o=i.clientY-r.y;if(48>Math.abs(s)||Math.abs(s)<1.5*Math.abs(o))return;let l=td.findIndex(t=>t.id===e),c=td[l+(s<0?1:-1)];c&&a(c.id)},children:(0,t.jsx)(tf,{category:e,className:"px-4 md:px-0"},e)})]})}function t_({children:e}){let a=(0,r.useRef)(null),[n,i]=(0,r.useState)();return(0,r.useEffect)(()=>{let e=a.current;if(!e)return;i(e.offsetHeight);let t=new ResizeObserver(()=>i(e.offsetHeight));return t.observe(e),()=>t.disconnect()},[]),(0,t.jsx)("div",{className:"relative z-10 w-full overflow-clip transition-[height] duration-[400ms] ease-out",style:{height:n},children:(0,t.jsx)("div",{ref:a,className:"flex w-full flex-col items-center",children:e})})}function tN(){let[e,a]=(0,r.useState)("agent"),i=function(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>t(!0),[]),e}(),s=(0,S.useSectionExposure)("hero");return(0,t.jsx)("div",{ref:s,className:"flex w-full flex-col",children:(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-center overflow-clip rounded-b-[30px]","gap-4 px-2 py-12","md:gap-8 md:rounded-b-[40px] md:px-4 md:pt-6"),children:[(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-4",children:[(0,t.jsx)("div",{className:"relative h-7 w-full text-center md:h-10",children:["agent","tools"].map(a=>{let n=a===e;return(0,t.jsx)(n?"h1":"span",{"aria-hidden":!n,className:(0,d.cn)("absolute left-1/2 top-0 block w-fit -translate-x-1/2","whitespace-nowrap font-bricolage-grotesque","text-[24px] font-bold leading-7 tracking-[-0.48px]","md:text-[36px] md:font-semibold md:leading-10 md:tracking-[-0.72px]","text-text-icon-neutral-primary md:bg-clip-text md:text-transparent","md:[background-image:linear-gradient(95deg,rgb(255,255,255)_4.73%,rgba(255,255,255,0.3)_96.27%)]","[text-shadow:0px_1px_1px_rgba(0,0,0,0.25)]","transition-[opacity,translate] duration-[400ms] ease-out",n?"translate-y-0 opacity-100":"pointer-events-none -translate-y-1.5 opacity-0"),children:tb[a]},a)})}),(0,t.jsx)(eW,{mode:e,onModeChange:a})]}),(0,t.jsx)(t_,{children:(0,t.jsx)(n.motion.div,{initial:!!i&&{opacity:0,y:8}
1,animate:{opacity:1,y:0},transition:tv,className:"flex w-full flex-col items-center",children:"agent"===e?(0,t.jsx)(tj,{clickSource:A.AGENT_TOOL_CLICK_SOURCE.home}):(0,t.jsx)(tw,{})},e)})]})})}var ty=e.i(246587),tC=e.i(633812);function tk({className:e}){return(0,t.jsxs)("svg",{className:e,width:"98",height:"26",viewBox:"0 0 98 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Claude, ChatGPT, Cursor and more",children:[(0,t.jsx)("circle",{cx:"13",cy:"13",r:"13",fill:"#CF7153"}),(0,t.jsx)("g",{clipPath:"url(#clip0_3081_51107)",children:(0,t.jsx)("path",{d:"M8.13933 15.6367L11.286 13.872L11.3393 13.7187L11.286 13.6333H11.1333L10.6067 13.6013L8.808 13.5527L7.24867 13.488L5.738 13.4067L5.35733 13.326L5 12.856L5.03667 12.6213L5.35667 12.4073L5.814 12.4473L6.82733 12.516L8.346 12.6213L9.44733 12.686L11.08 12.856H11.3393L11.376 12.7513L11.2867 12.686L11.218 12.6213L9.646 11.5573L7.94467 10.432L7.054 9.784L6.57133 9.45667L6.32867 9.14867L6.22333 8.47667L6.66067 7.99533L7.248 8.03533L7.398 8.076L7.99333 8.53333L9.26533 9.51733L10.926 10.7393L11.1693 10.942L11.266 10.8733L11.2787 10.8247L11.1693 10.642L10.266 9.01133L9.302 7.35133L8.87267 6.66333L8.75933 6.25067C8.71615 6.09217 8.69286 5.92892 8.69 5.76467L9.18867 5.08933L9.464 5L10.128 5.08933L10.408 5.332L10.8213 6.27467L11.4893 7.76067L12.526 9.78067L12.83 10.3793L12.992 10.934L13.0527 11.104H13.158V11.0067L13.2433 9.86933L13.4013 8.47267L13.5547 6.676L13.608 6.16933L13.8587 5.56267L14.3567 5.23467L14.746 5.42133L15.066 5.878L15.0213 6.174L14.8307 7.408L14.458 9.34333L14.2153 10.638H14.3567L14.5187 10.4767L15.1753 9.606L16.2767 8.23L16.7633 7.68333L17.33 7.08067L17.6947 6.79333H18.3833L18.89 7.546L18.6633 8.32333L17.954 9.22133L17.3667 9.98267L16.524 11.116L15.9973 12.0227L16.046 12.096L16.1713 12.0827L18.0753 11.6787L19.104 11.492L20.3313 11.282L20.8867 11.5407L20.9473 11.804L20.7287 12.342L19.416 12.666L17.8767 12.974L15.584 13.516L15.556 13.536L15.5887 13.5767L16.6213 13.674L17.0627 13.698H18.144L20.1573 13.848L20.684 14.196L21 14.6213L20.9473 14.9447L20.1373 15.358L19.044 15.0987L16.4913 14.492L15.6167 14.2727H15.4953V14.346L16.224 15.058L17.5613 16.2647L19.234 17.818L19.3187 18.2033L19.104 18.5067L18.8773 18.474L17.4073 17.3693L16.84 16.8713L15.556 15.7913H15.4707V15.9047L15.7667 16.3373L17.33 18.6847L17.4113 19.4047L17.298 19.64L16.8927 19.782L16.4473 19.7007L15.5313 18.4173L14.588 16.9727L13.826 15.6773L13.7327 15.7307L13.2833 20.5667L13.0727 20.8133L12.5867 21L12.182 20.6927L11.9673 20.1947L12.182 19.2107L12.4413 17.928L12.6513 16.908L12.842 15.6413L12.9553 15.22L12.9473 15.192L12.854 15.204L11.898 16.5153L10.4447 18.4787L9.294 19.7087L9.018 19.818L8.54 19.5713L8.58467 19.13L8.852 18.7373L10.444 16.7133L11.404 15.4587L12.024 14.7347L12.02 14.6293H11.9833L7.75467 17.3733L7.00133 17.4707L6.67667 17.1667L6.71733 16.6693L6.87133 16.5073L8.14333 15.6327L8.13933 15.6367Z",fill:"white"})}),(0,t.jsx)("path",{d:"M37 0C44.1797 0 50 5.8203 50 13C50 20.1797 44.1797 26 37 26C32.4783 26 28.496 23.6913 26.167 20.1885C27.3349 18.0538 28 15.6048 28 13C28 10.3949 27.3351 7.94536 26.167 5.81055C28.4961 2.30814 32.4786 0 37 0Z",fill:"#D9D9D9"}),(0,t.jsx)("g",{clipPath:"url(#clip1_3081_51107)",children:(0,t.jsx)("path",{d:"M35.8083 5.0138C36.0554 4.98029 36.4809 5.01486 36.7265 5.04279C37.5229 5.13332 38.6728 5.68277 39.1606 6.34403C39.9958 6.24323 40.4724 6.19883 41.3104 6.47381C42.3042 6.80976 43.1281 7.51961 43.6074 8.45282C44.1175 9.46295 44.2083 10.4734 43.8509 11.5567C43.9818 11.7251 44.1136 11.8696 44.2343 12.0483C45.7359 14.2714 44.5792 17.3925 42.0025 18.1181C41.9462 18.134 41.754 18.1931 41.7192 18.2272C41.6298 18.315 41.4787 18.7511 41.4238 18.8513C40.7771 20.0322 39.6346 20.8188 38.2949 20.9722C38.0519 21.0025 37.8064 21.008 37.5623 20.9888C36.5256 20.9135 35.5159 20.4471 34.8338 19.6566C34.1739 19.8196 33.2464 19.7274 32.6066 19.5045C30.6294 18.8159 29.4227 16.4749 30.1395 14.4633C29.6535 13.8178 29.4049 13.4557 29.2033 12.6397C28.9554 11.6358 29.1609 10.5513 29.6844 9.66791C30.3023 8.62542 31.1546 8.08944 32.3079 7.80503C32.8461 6.17463 34.1381 5.24298 35.8083 5.0138ZM34.557 17.1833C34.2119 17.0586 33.7249 16.7441 33.3864 16.5501L31.0326 15.1936C30.9975 15.8397 30.9935 16.0084 31.1377 16.6323C31.4844 17.489 31.9472 18.0693 32.8116 18.4624C33.4627 18.7585 34.4487 18.7766 35.1008 18.4861C35.6621 18.2361 36.2975 17.8278 36.8482 17.5114L38.1548 16.7591C38.3048 16.6726 38.4593 16.596 38.6092 16.5094C38.719 16.4461 38.7342 16.3665 38.7347 16.2454C38.7363 15.8678 38.7043 15.4904 38.7171 15.1126C38.7197 15.0358 38.7277 14.9414 38.7183 14.8669L38.696 14.8537C38.2536 15.1581 34.9315 17.0949 34.557 17.1833ZM39.4804 12.4379L39.4807 15.4259C39.4811 15.6988 39.5498 17.0489 39.3616 17.2221C39.0552 17.5042 38.4229 17.7952 38.0559 18.0278C37.3437 18.4278 36.6167 18.8804 35.9061 19.2678C36.2567 19.5133 36.8761 19.8763 37.3129 19.9172C38.2486 20.01 38.9326 19.8947 39.6976 19.2974C40.9291 18.336 40.8559 16.9881 40.839 15.5832C40.8295 14.8014 40.847 14.0108 40.833 13.2275C40.3901 12.9508 39.939 12.6875 39.4804 12.4379ZM34.5353 12.8303L34.5301 10.4227C34.5299 9.93528 34.5063 9.41734 34.5702 8.93397C34.5902 8.78311 34.8225 8.63612 34.9408 8.55264C35.4349 8.25919 35.9392 7.98259 36.4358 7.69254C36.802 7.47673 37.1703 7.26444 37.5406 7.05573C37.6879 6.97228 37.9774 6.79799 38.1253 6.7446C37.3101 6.23771 36.9619 6.02582 35.9829 6.05595C34.7084 6.17788 33.6694 6.93723 33.3041 8.19696C33.1609 8.69087 33.1917 9.18353 33.1937 9.69073L33.1961 11.6392C33.1962 11.9404 33.21 12.5023 33.1744 12.7833C33.6082 13.0787 34.1386 13.3145 34.5487 13.598C34.5377 13.3659 34.5305 13.063 34.5353 12.8303ZM35.2775 11.9956C35.3005 12.3054 35.3052 13.7345 35.2653 14.0137C35.4237 14.1076 35.7551 14.289 35.9136 14.3734C36.1207 14.4835 36.8814 14.9634 37.0235 15.0025C37.3987 14.7426 37.8501 14.5159 38.2455 14.2822C38.3909 14.1962 38.6124 14.0958 38.7441 14.0031C38.7125 13.4627 38.7005 12.535 38.7268 11.9812C38.5285 11.877 37.0194 11.0012 36.9966 10.9974C36.76
159 11.1562 36.4734 11.3088 36.2247 11.4497L35.2775 11.9956ZM41.8709 17.0819C41.987 17.0379 42.1845 16.9562 42.284 16.8824C43.7713 16.0052 44.2672 14.2728 43.4335 12.7513C43.0143 11.9862 42.357 11.6578 41.6328 11.2456L40.3104 10.4867C40.0881 10.3566 39.3136 9.86212 39.1238 9.79798C38.6668 10.0004 38.1759 10.3463 37.7077 10.5773C38.5946 11.0744 39.4767 11.5802 40.3537 12.0947C40.7752 12.3411 41.2153 12.5741 41.6238 12.8421C41.7044 12.9038 41.7968 12.9512 41.8292 13.053C41.8657 13.1676 41.8949 13.2941 41.8965 13.4138C41.9102 14.4497 41.8979 15.4864 41.9008 16.5225C41.9013 16.699 41.907 16.9115 41.8709 17.0819ZM39.9878 7.30554C39.1053 7.37502 38.8836 7.4972 38.1314 7.92257C37.6341 8.20569 37.1386 8.49195 36.6449 8.78136L35.6675 9.34258C35.5906 9.3872 35.3428 9.52257 35.2803 9.56805C35.2984 9.96985 35.3074 10.7867 35.2652 11.1734C36.1186 10.6521 36.9962 10.1603 37.8598 9.65549C38.0537 9.54216 38.2744 9.40695 38.4741 9.30815C38.7304 9.15442 39.1431 8.88713 39.4258 8.8334C39.7116 8.89396 40.1867 9.20321 40.4573 9.36144L42.0823 10.3012C42.3225 10.4404 42.7659 10.7154 42.9969 10.8151C42.9676 10.5428 43.0034 10.2638 42.977 9.98709C42.8325 8.47419 41.5126 7.27703 39.9878 7.30554ZM32.0853 8.94113C31.3407 9.25875 30.7219 9.80454 30.4164 10.5649C30.0909 11.3534 30.1012 12.2405 30.4449 13.0212C30.9105 14.1047 31.9923 14.5087 32.9322 15.0835C33.4769 15.4166 34.0457 15.7116 34.5918 16.0463C34.6814 16.0985 34.7986 16.1624 34.8823 16.2197C35.1355 16.0886 35.3796 15.937 35.6262 15.7927C35.8292 15.674 36.0887 15.5527 36.2813 15.4259L33.6338 13.9016C33.1962 13.6492 32.696 13.3802 32.282 13.0926C32.22 13.0496 32.1734 12.9694 32.1591 12.8963C32.0721 12.4505 32.1049 11.8405 32.1053 11.3772L32.1086 9.51928C32.1095 9.37094 32.1111 9.13295 32.1164 8.97678C32.1043 8.96298 32.094 8.95108 32.0853 8.94113Z",fill:"#111113"})}),(0,t.jsx)("path",{d:"M61 0C68.1797 0 74 5.8203 74 13C74 20.1797 68.1797 26 61 26C56.4783 26 52.496 23.6913 50.167 20.1885C51.3349 18.0538 52 15.6048 52 13C52 10.3949 51.3351 7.94536 50.167 5.81055C52.4961 2.30814 56.4786 0 61 0Z",fill:"#D9D9D9"}),(0,t.jsx)("path",{d:"M67.7375 8.78707L61.3323 5.08908C61.1267 4.97031 60.8729 4.97031 60.6672 5.08908L54.2623 8.78707C54.0894 8.8869 53.9827 9.07152 53.9827 9.27149V16.7285C53.9827 16.9282 54.0894 17.1131 54.2623 17.2129L60.6675 20.9109C60.8732 21.0297 61.127 21.0297 61.3326 20.9109L67.7378 17.2129C67.9107 17.1131 68.0175 16.9285 68.0175 16.7285V9.27149C68.0175 9.07183 67.9107 8.8869 67.7378 8.78707H67.7375ZM67.3352 9.57039L61.1519 20.2801C61.1101 20.3522 60.9998 20.3228 60.9998 20.2392V13.2266C60.9998 13.0864 60.9249 12.9568 60.8034 12.8865L54.7305 9.38034C54.6583 9.33856 54.6878 9.22818 54.7714 9.22818H67.1379C67.3135 9.22818 67.4233 9.41853 67.3355 9.5707H67.3352V9.57039Z",fill:"#111113"}),(0,t.jsx)("path",{d:"M84.833 0C92.0127 0 97.833 5.8203 97.833 13C97.833 20.1797 92.0127 26 84.833 26C80.3113 26 76.329 23.6913 74 20.1885C75.1679 18.0538 75.833 15.6048 75.833 13C75.833 10.3949 75.1681 7.94536 74 5.81055C76.3291 2.30814 80.3116 0 84.833 0Z",fill:"#D9EDFE",fillOpacity:"0.145098"}),(0,t.jsx)("path",{d:"M79.6667 13C79.6667 12.6334 79.7972 12.3195 80.0584 12.0584C80.3195 11.7972 80.6334 11.6667 81 11.6667C81.3667 11.6667 81.6806 11.7972 81.9417 12.0584C82.2028 12.3195 82.3334 12.6334 82.3334 13C82.3334 13.3667 82.2028 13.6806 81.9417 13.9417C81.6806 14.2028 81.3667 14.3334 81 14.3334C80.6334 14.3334 80.3195 14.2028 80.0584 13.9417C79.7972 13.6806 79.6667 13.3667 79.6667 13ZM83.6667 13C83.6667 12.6334 83.7972 12.3195 84.0584 12.0584C84.3195 11.7972 84.6334 11.6667 85 11.6667C85.3667 11.6667 85.6806 11.7972 85.9417 12.0584C86.2028 12.3195 86.3334 12.6334 86.3334 13C86.3334 13.3667 86.2028 13.6806 85.9417 13.9417C85.6806 14.2028 85.3667 14.3334 85 14.3334C84.6334 14.3334 84.3195 14.2028 84.0584 13.9417C83.7972 13.6806 83.6667 13.3667 83.6667 13ZM87.6667 13C87.6667 12.6334 87.7972 12.3195 88.0584 12.0584C88.3195 11.7972 88.6334 11.6667 89 11.6667C89.3667 11.6667 89.6806 11.7972 89.9417 12.0584C90.2028 12.3195 90.3334 12.6334 90.3334 13C90.3334 13.3667 90.2028 13.6806 89.9417 13.9417C89.6806 14.2028 89.3667 14.3334 89 14.3334C88.6334 14.3334 88.3195 14.2028 88.0584 13.9417C87.7972 13.6806 87.6667 13.3667 87.6667 13Z",fill:"white"}),(0,t.jsxs)("defs",{children:[(0,t.jsx)("clipPath",{id:"clip0_3081_51107",children:(0,t.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(5 5)"})}),(0,t.jsx)("clipPath",{id:"clip1_3081_51107",children:(0,t.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(29 5)"})})]})]})}let tI="https://openart.ai/mcp";function tS(){let e=(0,S.useSectionExposure)("mcp_promo");return(0,t.jsx)("div",{ref:e,className:"flex w-full flex-col items-center px-16 pt-4",children:(0,t.jsxs)("div",{className:(0,d.cn)("flex h-[46px] items-center justify-center gap-5 rounded-full py-[3px] pl-4 pr-1","border border-[rgba(214,225,255,0.04)] bg-[rgba(214,225,255,0.06)]"),children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(tC.IconEnhance3,{className:"size-5 shrink-0 text-text-icon-neutral-default"}),(0,t.jsx)("span",{className:"whitespace-nowrap text-[13px] font-medium leading-5 text-text-icon-neutral-default",children:"Create images & videos in your AI agent"})]}),(0,t.jsxs)("a",{href:tI,target:"_blank",rel:"noopener noreferrer",className:(0,d.cn)("relative flex items-center justify-center gap-2.5 rounded-[64px] py-1.5 pl-1.5 pr-3.5","bg-[rgba(214,225,255,0.12)] shadow-[inset_0px_1px_0px_0px_rgba(214,225,255,0.1)]","transition-colors hover:bg-background-neutral-soft-hover active:bg-background-neutral-soft-active"),children:[(0,t.jsx)(tk,{className:"h-[26px] w-[98px] shrink-0"}),(0,t.jsx)("span",{className:"whitespace-nowrap text-[12px] font-semibold leading-4 tracking-[0.05px] text-text-icon-neutral-primary",children:"Set up MCP / CLI â"})]})]})})}let tA=(0,d.cn)("relative flex w-full items-center justify-center overflow-clip rounded-b-[32px]");function tP(){return(0,t.jsxs)("div",{className:(0,d.cn)(tA,"gap-3 py-3 pl-6 pr-4"),children:[(0,t.jsx)(ty.GradientBorder,{borderRadius:"0 0 32px 32px",width:1,noOverlay:!0,gradient1:"linear-gradient(90deg, rgba(214,225,255,0) 0%, rgba(214,225,255,0.15) 50%, rgba(214,225,255,0) 100%)",maskStyle:{inset:"0 0 1px 0",borderRadius:"0 0 31px 31px",background:"linear-gradient(270deg, rgba(214,225,255,0.02) 0%, rgba(214,225,255,0.06) 49.52%, rgba(214,225,255,0.02) 100%), var(--color-background-container-page-base)"}}),(0,t.jsxs)("span",{className:"relative flex items-center gap-2",children:[(0,t.jsx)(tC.IconEnhance3,{className:"size-[22px] shrink-0 text-text-icon-neutral-default"}),(0,t.jsx)("span",{className:"whitespace-nowrap text-[13px] font-medium leading-5 text-text-icon-neutral-default",children:"Create images & videos with OpenArt in your AI agent"})]}),(0,t.jsxs)("a",{href:tI,target:"_blank",rel:"noopener noreferrer",className:(0,d.cn)("relative flex cursor-pointer items-center gap-2.5 rounded-full py-1 pl-1 pr-3.5","bg-background-neutral-soft transition-[background-color,box-shadow] duration-100 ease-out","hover:bg-background-neutral-soft-hover","hover:shadow-[inset_0px_1px_0px_0px_rgba(214,225,255,0.12),inset_0px_-4px_16px_0px_rgba(214,225,255,0.12)]","active:bg-background-neutral-soft-active active:shadow-none"),children:[(0,t.jsx)(tk,{className:"h-[26px] w-[98px] shrink-0"}),(0,t.jsx)("span",{className:"whitespace-nowrap text-[12px] font-semibold leading-4 tracking-[0.05px] text-white",children:"Set up MCP / CLI â"})]})]})}function tL(){return(0,t.jsxs)("div",{className:(0,d.cn)("relative flex h-[92px] w-full items-center gap-2 overflow-clip rounded-[20px] py-3 pl-3 pr-4","border border-[rgba(214,225,255,0.04)]","bg-[linear-gradient(270deg,rgba(214,225,255,0.02)_0%,rgba(214,225,255,0.06)_49.52%,rgba(214,225,255,0.02)_100%),linear-gradient(90deg,rgba(217,240,255,0.08)_0%,rgba(217,240,255,0.08)_100%)]","shadow-[inset_0px_1px_0px_0px_rgba(211,237,248,0.11)]"),children:[(0,t.jsxs)("div",{className:"flex min-w-px flex-1 flex-col items-start gap-2.5 pl-1",children:[(0,t.jsx)("span",{className:"text-[12px] font-medium leading-4 tracking-[0.05px] text-text-icon-neutral-primary",children:"Create images & videos with OpenArt in your AI agent"}),(0,t.jsx)(tk,{className:"h-[26px] w-[98px] shrink-0"})]}),(0,t.jsx)("a",{href:tI,target:"_blank",rel:"noopener noreferrer",className:(0,d.cn)("relative flex shrink-0 cursor-pointer items-center justify-center gap-1 rounded-full px-2.5 py-2","bg-background-neutral-soft-active","shadow-[inset_0px_1px_0px_0px_rgba(217,237,254,0.15)]","whitespace-nowrap text-[12px] font-semibold leading-4 tracking-[0.05px] text-text-icon-neutral-primary"),children:"Set up MCP / CLI â"})]})}function tT({className:e}){let a=(0,S.useSectionExposure)("mcp_promo");return(0,t.jsxs)("div",{ref:a,className:(0,d.cn)("w-full md:px-16 md:pt-0",e),children:[(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)(tL,{})}),(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(tP,{})})]})}var tE=e.i(963912);function tO({title:e,action:a,className:n}){return(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full items-center gap-12 px-2 md:px-1","h-[22px] md:h-12",n),children:[(0,t.jsx)("h2",{className:(0,d.cn)("min-w-0 flex-1 font-bricolage-grotesque font-bold text-text-icon-neutral-primary","truncate text-[16px] leading-[22px] tracking-[-0.12px]","md:text-[24px] md:leading-7 md:tracking-[-0.48px]"),children:e}),a]})}function tM({onClick:e,className:a}){return(0,t.jsxs)("button",{type:"button",onClick:e,className:(0,d.cn)("flex shrink-0 cursor-pointer items-center whitespace-nowrap","text-text-icon-neutral-default transition-[color,opacity] duration-200","hover:text-text-icon-neutral-primary hover:underline","active:opacity-[0.82]","text-[12px] font-medium leading-4 tracking-[0.05px]","md:font-bricolage-grotesque md:text-[15px] md:font-semibold md:tracking-[-0.12px]",a),children:[(0,t.jsx)("span",{className:"md:hidden",children:"View all"}),(0,t.jsx)(tE.IconArrowRightBold,{className:"size-4 md:hidden"}),(0,t.jsxs)("span",{className:"hidden md:inline",children:["More ",(0,t.jsx)("span",{className:"font-sans",children:"â"})]})]})}function tR(e){(0,em.event)("campaign_banner_engaged",{card_name:e.replaceAll("-","_"),click_source:"homepage"})}let tU={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function tD(e={}
1){let t,a,n,r,i=null,s=0,o=!1,l=!1,c=!1,d=!1;function p(){if(!n){if(m()){c=!0;return}o||a.emit("autoplay:play"),function(){let{ownerWindow:e}=a.internalEngine();e.clearTimeout(s),s=e.setTimeout(v,r[a.selectedScrollSnap()]),i=new Date().getTime(),a.emit("autoplay:timerset")}(),o=!0}}function x(){n||(o&&a.emit("autoplay:stop"),function(){let{ownerWindow:e}=a.internalEngine();e.clearTimeout(s),s=0,i=null,a.emit("autoplay:timerstopped")}(),o=!1)}function u(){if(m())return c=o,x();c&&p()}function m(){let{ownerDocument:e}=a.internalEngine();return"hidden"===e.visibilityState}function g(){l||x()}function h(){l||p()}function f(){l=!0,x()}function b(){l=!1,p()}function v(){let{index:e}=a.internalEngine(),n=e.clone().add(1).get(),r=a.scrollSnapList().length-1,i=t.stopOnLastSnap&&n===r;if(a.canScrollNext()?a.scrollNext(d):a.scrollTo(0,d),a.emit("autoplay:select"),i)return x();p()}return{name:"autoplay",options:e,init:function(i,s){var o,l,c,m;let v,j;a=i;let{mergeOptions:w,optionsAtMedia:_}=s,N=w(tU,tD.globalOptions);if(t=_(w(N,e)),a.scrollSnapList().length<=1)return;d=t.jump,n=!1,o=a,l=t.delay,v=o.scrollSnapList(),r="number"==typeof l?v.map(()=>l):l(v,o);let{eventStore:y,ownerDocument:C}=a.internalEngine(),k=!!a.internalEngine().options.watchDrag,I=(c=a,m=t.rootNode,j=c.rootNode(),m&&m(j)||j);y.add(C,"visibilitychange",u),k&&a.on("pointerDown",g),k&&!t.stopOnInteraction&&a.on("pointerUp",h),t.stopOnMouseEnter&&y.add(I,"mouseenter",f),t.stopOnMouseEnter&&!t.stopOnInteraction&&y.add(I,"mouseleave",b),t.stopOnFocusIn&&a.on("slideFocusStart",x),t.stopOnFocusIn&&!t.stopOnInteraction&&y.add(a.containerNode(),"focusout",p),t.playOnInit&&p()},destroy:function(){a.off("pointerDown",g).off("pointerUp",h).off("slideFocusStart",x),x(),n=!0,o=!1},play:function(e){void 0!==e&&(d=e),p()},stop:function(){o&&x()},reset:function(){o&&p()},isPlaying:function(){return o},timeUntilNext:function(){return i?r[a.selectedScrollSnap()]-(new Date().getTime()-i):null}}}tD.globalOptions=void 0;var tz=e.i(854436),tF=e.i(979573);function tW(e){return e>=2?480:286}let tV="w-[72px] md:w-[104px]";function tG({children:e,colSpans:a,autoplayDelay:n=5e3,onSlideChange:i,mobileSlideWidthPx:s,className:o}){let[l,c]=(0,r.useState)(!1),[p,x]=(0,r.useState)(!1),u=(0,h.useIsMobile)(),m=e.length,g=(0,r.useMemo)(()=>u?[tD({delay:n,stopOnInteraction:!1,stopOnMouseEnter:!0})]:[],[u,n]),[f,b]=(0,tz.default)({loop:u,align:"start",slidesToScroll:1,containScroll:!u&&"trimSnaps",duration:u?25:20,watchDrag:u},g),j=(0,r.useCallback)(()=>{b&&(c(b.canScrollPrev()),x(b.canScrollNext()))},[b]),w=(0,r.useCallback)(()=>{b&&(i?.(b.selectedScrollSnap()),j())},[b,i,j]);(0,r.useEffect)(()=>{if(b)return b.on("select",w),b.on("reInit",j),w(),()=>{b.off("select",w),b.off("reInit",j)}},[b,w,j]),(0,r.useEffect)(()=>{if(!b)return;let e=()=>{b.reInit(),j()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[b,j]);let _=(0,r.useCallback)(()=>{let e=b?.plugins()?.autoplay;e?.reset()},[b]),N=(0,r.useCallback)(()=>{b?.scrollPrev(),_()},[b,_]),y=(0,r.useCallback)(()=>{b?.scrollNext(),_()},[b,_]),C=(0,r.useRef)(null),k=(0,r.useRef)(0),I=(0,r.useRef)(!1),S=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=C.current;if(!e||!b||u)return;let t=e=>{if(Math.abs(e.deltaX)<=Math.abs(e.deltaY))return;let t=b.canScrollNext(),a=b.canScrollPrev();(t||a)&&(e.preventDefault(),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{k.current=0},200),k.current+=e.deltaX,!t&&k.current>0&&(k.current=0),!a&&k.current<0&&(k.current=0),!I.current&&(k.current>15&&t?(I.current=!0,b.scrollNext(),k.current=0,setTimeout(()=>{I.current=!1},80)):k.current<-15&&a&&(I.current=!0,b.scrollPrev(),k.current=0,setTimeout(()=>{I.current=!1},80))))};return e.addEventListener("wheel",t,{passive:!1,capture:!0}),()=>{e.removeEventListener("wheel",t,{capture:!0}),S.current&&clearTimeout(S.current)}},[b,u]),(0,t.jsxs)("div",{ref:C,className:(0,d.cn)("relative w-0 min-w-full overflow-hidden overscroll-x-none",o),children:[(0,t.jsx)("div",{ref:f,className:"w-full overflow-hidden overscroll-x-none",children:(0,t.jsx)("div",{className:(0,d.cn)("flex",s?"ml-[-8px]":"ml-[-4px]","md:ml-0 md:gap-3"),children:e.map((e,n)=>{let r=a?.[n]??1,i=m<=5;return(0,t.jsx)("div",{className:(0,d.cn)("min-w-0",s?"pl-2":"flex-[0_0_calc(100%-36px)] pl-1",i?"md:pl-0":"md:flex-[0_0_auto] md:pl-0"),style:u?s?{flex:`0 0 ${s+8}px`}:void 0:i?{flex:`${r} 1 0%`,minWidth:tW(r)}:{flex:`0 0 ${tW(r)}px`,width:tW(r),minWidth:tW(r)},children:e},e?.key)})})}
1),l&&(0,t.jsx)("div",{"aria-hidden":!0,className:(0,d.cn)("pointer-events-none absolute inset-y-0 left-0 z-[5] hidden","bg-linear-to-r from-background-container-page-base from-10% to-transparent",tV,"md:block")}),l&&(0,t.jsx)("div",{className:"absolute top-1/2 left-1.5 z-10 hidden -translate-y-1/2 md:left-2 md:block",children:(0,t.jsx)(v.IconButton,{icon:tF.IconArrowLeftBold,color:"fixed-white",size:"32",variant:"solid",onClick:N,"aria-label":"Previous slide",className:"rounded-full bg-[rgba(255,255,255,0.1)]! p-1.5 shadow-none backdrop-blur-[6px]"})}),p&&(0,t.jsx)("div",{"aria-hidden":!0,className:(0,d.cn)("pointer-events-none absolute inset-y-0 right-0 z-[5] hidden","bg-linear-to-l from-background-container-page-base from-10% to-transparent",tV,"md:block")}),p&&(0,t.jsx)("div",{className:"absolute top-1/2 right-1.5 z-10 hidden -translate-y-1/2 md:right-2 md:block",children:(0,t.jsx)(v.IconButton,{icon:tE.IconArrowRightBold,color:"fixed-white",size:"32",variant:"solid",onClick:y,"aria-label":"Next slide",className:"rounded-full bg-[rgba(255,255,255,0.1)]! p-1.5 shadow-none backdrop-blur-[6px]"})})]})}e.i(392435);var tH=e.i(780951),tB=e.i(550016),t$=e.i(408657),tq=e.i(925596),tK=e.i(495157),tX=e.i(283995),tY=e.i(842118);let tZ=(0,r.createContext)(!1),tQ=tZ.Provider;function tJ(){return(0,r.useContext)(tZ)}function t0({href:e,onClick:a,children:n,variant:r="primary",className:i,target:s,rel:o}){let l=tJ(),c="ghost"===r?"inline-flex items-center justify-center gap-[3px] px-1 py-1 rounded-[19px] text-[11px] font-medium leading-4 tracking-[0.1px] text-text-icon-neutral-default hover:text-text-icon-neutral-primary transition-colors no-underline cursor-pointer":l?"inline-flex items-center justify-center gap-[3px] px-2.5 py-[5px] rounded-tl-[4px] rounded-tr-[12px] rounded-br-[4px] rounded-bl-[12px] border border-white/20 backdrop-blur-[10px] bg-[#aaff00] drop-shadow-[0px_4px_4px_rgba(0,0,0,0.25)] font-bricolage-grotesque text-[12px] font-extrabold leading-4 text-text-icon-neutral-solid-high-contrast hover:bg-[#c1ff40] transition-colors no-underline cursor-pointer":"inline-flex items-center justify-center gap-[3px] px-2.5 py-1 rounded-[24px] backdrop-blur-[6px] bg-white/30 shadow-[0px_2px_4px_0px_rgba(0,0,0,0.15)] text-[11px] font-medium leading-4 tracking-[0.1px] text-white hover:bg-white/40 transition-colors no-underline cursor-pointer";if(e){let r=e.startsWith("http");return(0,t.jsx)(tY.default,{href:r?e:(0,ed.withProjectParams)(e),onClick:a,target:s,rel:"_blank"===s?o??"noopener noreferrer":o,className:(0,d.cn)(c,i),children:n})}return(0,t.jsx)("button",{type:"button",onClick:a,className:(0,d.cn)(c,i),children:n})}function t1({children:e,backgroundImage:a,videoUrl:n,autoPlayVideo:i=!1,showOverlay:s=!0,onCardClick:o,className:l}){let c=(0,h.useIsMobile)(),p=tJ(),x=(0,r.useRef)(null),[u,m]=(0,r.useState)(i);return(0,t.jsxs)("div",{className:(0,d.cn)("relative flex flex-col items-start justify-end overflow-hidden",p?"h-[148px] w-full rounded-[16px] px-2 pt-2 pb-3 md:aspect-[160/90] md:h-auto md:rounded-[16px] md:px-4 md:pb-3.5":(0,d.cn)("w-full h-[148px] rounded-[12px] px-2 pt-2 pb-3","md:rounded-[16px] md:px-3 md:pb-3"),o&&"cursor-pointer",l),onClick:e=>{!o||e.target.closest("a, button")||o()},onMouseEnter:()=>{i||x.current?.play().catch(()=>{})},onMouseLeave:()=>{if(i)return;let e=x.current;e&&(e.pause(),e.currentTime=0,m(!1))},children:[(0,t.jsxs)("div",{"aria-hidden":"true",className:"absolute inset-0 pointer-events-none",children:[a&&(0,t.jsx)("img",{alt:"",className:"absolute inset-0 w-full h-full object-cover",src:a,loading:"lazy"}),!c&&n&&(0,t.jsx)("video",{ref:x,className:(0,d.cn)("absolute inset-0 w-full h-full object-cover transition-opacity duration-200",u?"opacity-100":"opacity-0"),src:n,loop:!0,muted:!0,playsInline:!0,preload:i?"auto":"metadata",autoPlay:i,onPlaying:()=>m(!0)}),s&&(p?(0,t.jsx)("div",{className:"absolute inset-0 mix-blend-multiply pointer-events-none",style:{backgroundImage:"linear-gradient(180deg, rgb(255,255,255) 0%, rgb(242,242,242) 25%, rgba(178,178,178,0.95) 45%, rgba(89,89,89,0.85) 65%, rgba(26,26,26,0.7) 82%, rgba(0,0,0,0.6) 100%)"}}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-linear-to-b from-[rgba(72,84,97,0)] from-[32.14%] to-[rgba(67,67,81,0.2)] to-[90.06%] mix-blend-multiply"}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-3/5 bg-linear-to-b from-[rgba(0,0,0,0)] to-[rgba(0,0,0,0.9)] pointer-events-none rounded-b-none"})]}))]}),(0,t.jsx)("div",{className:(0,d.cn)("relative flex flex-1 flex-col items-start justify-between w-full min-h-0",p&&"md:w-[calc(100%+8px)]"),children:e})]})}
1let t2="https://openart.ai/program/ad-awards/",t3=new Date("2026-09-10T16:00:00Z"),t5=new Date("2026-10-01T06:59:59Z");var t4=e.i(31792),t8=e.i(326263),t6=e.i(124287),t7=e.i(790318),t9=e.i(244547),ae=e.i(809993),at=e.i(668780),aa=e.i(6895);let an="/create-image/nano-banana-2-lite",ar=[aa.SubscriptionType.Infinite,aa.SubscriptionType.Wonder];var ai=e.i(656816),as=e.i(624800),ao=e.i(51668);let al="https://openart.ai/mcp",ac=`url("data:image/svg+xml;utf8,${encodeURIComponent('<svg viewBox="0 0 130 36" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><rect width="100%" height="100%" fill="url(#g)"/><defs><radialGradient id="g" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="10" gradientTransform="matrix(3.6055e-7 2.1656 -6.4463 4.7394e-7 64.463 36)"><stop stop-color="rgba(146,153,166,1)" offset="0"/><stop stop-color="rgba(110,115,124,0.75)" offset="0.25"/><stop stop-color="rgba(73,76,83,0.5)" offset="0.5"/><stop stop-color="rgba(37,38,41,0.25)" offset="0.75"/><stop stop-color="rgba(0,0,0,0)" offset="1"/></radialGradient></defs></svg>')}")`,ad="font-bricolage-grotesque text-[15px] font-semibold leading-5 tracking-[-0.3px] md:text-[18px] md:leading-7 md:tracking-[-0.36px]";function ap({className:e}){return(0,t.jsxs)("a",{href:al,target:"_blank",rel:"noopener noreferrer",className:(0,d.cn)("group relative flex h-9 w-[130px] shrink-0 items-center justify-center overflow-hidden","gap-1 rounded-full py-2 pl-[18px] pr-3.5","text-[14px] font-bold leading-5 tracking-[-0.03px]","text-text-icon-neutral-primary no-underline cursor-pointer","bg-background-neutral-soft-active","hover:bg-background-neutral-solid","active:bg-background-neutral-soft-active","shadow-[inset_0px_1px_0px_0px_rgba(217,237,254,0.15)]",e),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.cn)("pointer-events-none absolute inset-0 rounded-full mix-blend-exclusion","group-hover:opacity-0 group-active:opacity-0"),style:{backgroundImage:ac}}),(0,t.jsx)("span",{className:"relative shrink-0",children:"Set up MCP"}),(0,t.jsx)("span",{"aria-hidden":!0,className:"relative flex size-4 shrink-0 items-center justify-center",children:(0,t.jsx)(ai.IconArrowDiagonalExtra,{className:"size-4 -scale-y-100 rotate-180"})})]})}let ax="/dub-video/sonilo",au="/create-video/gemini-omni-1-1-flash",am="/create-video/gemini-omni-flash",ag="/create-image/gpt-image-2-5",ah="/create-image/gpt-image-2",af=new Date("2026-02-23T07:59:00Z");var ab=e.i(243445),av=e.i(366860),aj=e.i(211920),aw=e.i(497439),a_=e.i(539992);let aN="/create-video/minimax-h3";var ay=e.i(668156);e.i(609087);var aC=e.i(791428);let ak="/create-image/gpt-image-2",aI={id:"model-summer-sale",component:function(e){let a=(0,V.useRouter)(),{data:n}=(0,t9.useCurrentWorkspace)(),i=n?.campaigns?.model_summer_sale_202607===!0,[s,o]=(0,r.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_ZhIc8shX_874x491_1784212536451.webp",videoUrl:"https://cdn.openart.ai/production/2026-07/uploads/nIp59rPDHPc0MRaW2DWt/file_-ecLSDw8_1784212442080.mp4",onCardClick:()=>{i?a.push((0,ed.withProjectParams)(ak)):o(!0)},autoPlayVideo:!0,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:i?(0,t.jsx)(t0,{href:ak,children:"Create Now"}):(0,t.jsx)(t0,{onClick:()=>o(!0),children:"Upgrade to unlock"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full",children:(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Up to 40% OFF for the hottest models"})})]}),(0,t.jsx)(aC.ModelSummerSaleUpgradeDialog,{open:s,onOpenChange:o})]})},isActive:ay.isModelSummerSaleActive};var aS=e.i(633699),aA=e.i(228650),aP=e.i(337254);function aL(e){let t=e.getTime()-Date.now();return t<=0?{days:0,hours:0,minutes:0,seconds:0}:{days:Math.floor(t/864e5),hours:Math.floor(t/36e5%24),minutes:Math.floor(t/6e4%60),seconds:Math.floor(t/1e3%60)}}function aT(e){return String(e).padStart(2,"0")}function aE({endDate:e,onEnd:a,className:n}){let[i,s]=(0,r.useState)(null);return(0,r.useEffect)(()=>{s(aL(e));let t=setInterval(()=>{let n=aL(e);s(n),0===n.days&&0===n.hours&&0===n.minutes&&0===n.seconds&&(clearInterval(t),a?.())},1e3);return()=>clearInterval(t)},[e,a]),(0,t.jsxs)("div",{"data-notranslate":!0,className:(0,d.cn)("inline-flex items-center gap-[3px] px-1.5 py-1 rounded-[6px]","backdrop-blur-[6px] bg-black/15 border border-black/5","shadow-[0px_2px_4px_0px_rgba(0,0,0,0.15)]",n),children:[(0,t.jsx)(aP.IconClock,{className:"size-3.5 text-white/85"}),(0,t.jsx)("span",{className:"text-[12px] font-medium leading-4 tracking-[0.05px] text-white/85",children:i?`${i.days}d : ${aT(i.hours)}h : ${aT(i.minutes)}m : ${aT(i.seconds)}s`:"Â "})]})}let aO=(0,eG.cdnImageUrl)("https://cdn.openart.ai/openart-strapi-assets/hero_keycaps_ac8129dbd5/hero_keycaps_ac8129dbd5.png",{width:1920,sharpen:!0}),aM="https://openart.ai/mcp";var aR=e.i(580616);function aU({children:e}){let a=(0,t7.useOpenUpgradeDialog)();return(0,t.jsx)(t0,{onClick:()=>a.open(),children:e??"Unlock Unlimited"})}let aD="https://www.aipersonality.ai/",az=new Date("2026-04-27T06:59:00Z"),aF=new Date("2026-02-17T08:00:00Z"),aW=new Date("2026-03-03T08:00:00Z"),aV="/create-video/seedance-2";var aG=e.i(68818);let aH="/create-video/flux-3-video";var aB=e.i(577099);let a$="/create-video/fal-h3-max",aq="/create-image/nano-banana-2",aK="/create-video/byte-plus-seedance-2-5",aX="/create-image/byte-plus-seedream-5-lite";var aY=e.i(413278);let aZ="/create-video/wan3-0",aQ=[aa.SubscriptionType.Infinite,aa.SubscriptionType.Wonder],aJ=[{id:"arena-leaderboard",component:function(e){return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_aQdE8g4a_918x516_1789475197681.webp",videoUrl:"https://cdn.openart.ai/production/2026-09/uploads/c5ABGT4VgtCo
1aQsWwf3S/file_y2jnNikL_1789475377286.mp4",autoPlayVideo:!0,onCardClick:()=>window.open((0,t4.arenaUrl)("home"),"_blank","noopener,noreferrer"),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsxs)(t0,{href:(0,t4.arenaUrl)("home"),target:"_blank",children:["View leaderboard",(0,t.jsx)(t8.IconArrowOutward,{className:"size-3 shrink-0"})]})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-end items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"Which model performs best"})})]})},isActive:()=>!0},{id:"create-from-mcp",component:function(e){return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_xxxgK6f0_480x148_1785533196958.webp",showOverlay:!1,onCardClick:()=>window.open(al,"_blank","noopener,noreferrer"),className:(0,d.cn)("justify-between rounded-[16px] p-4","md:rounded-[20px] md:p-5","border border-[rgba(214,225,255,0.04)]","shadow-[inset_0px_1px_0px_0px_rgba(211,237,248,0.11)]"),children:[(0,t.jsx)("img",{"aria-hidden":!0,alt:"",src:"https://cdn.openart.ai/assets/internal/uploads/image_r4cQpz_y_180x104_1785533492653.webp",loading:"lazy",style:{height:"100%"},className:(0,d.cn)("pointer-events-none absolute -right-5 -bottom-5 z-0 w-auto max-w-none","opacity-70 md:opacity-100")}),(0,t.jsxs)("div",{className:"relative z-10 flex min-w-0 flex-col gap-1 px-0.5 md:px-1",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5",children:[(0,t.jsx)("span",{className:(0,d.cn)(ad,"text-text-icon-neutral-primary"),children:"Create From"}),(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(as.IconModelClaude,{"aria-hidden":!0,className:"size-4 shrink-0 text-[#ff6f40] md:size-5"}),(0,t.jsx)("span",{className:(0,d.cn)(ad,"text-[#ff6f40]"),children:"Claude"})]}),(0,t.jsx)("span",{className:(0,d.cn)(ad,"font-normal text-text-icon-neutral-tertiary"),children:"/"}),(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(ao.IconModelGpt,{"aria-hidden":!0,className:"size-4 shrink-0 text-[#ececec] md:size-5"}),(0,t.jsx)("span",{className:(0,d.cn)(ad,"text-[#ececec]"),children:"ChatGPT"})]})]})]}),(0,t.jsx)("p",{className:"line-clamp-2 text-[12px] font-normal leading-4 text-text-icon-neutral-secondary md:text-[13px] md:leading-5",children:"Generate images, video, and characters without leaving the chat."})]}),(0,t.jsx)(ap,{className:"relative z-10"})]})},isActive:()=>!0,colSpan:2},{id:"aug17Promo-unlimited-pro",component:function(e){let a=(0,V.useRouter)(),n=(0,t7.useOpenUpgradeDialog)(),{data:r}=(0,t9.useCurrentWorkspace)(),i=!!r&&((0,ae.hasActiveSubscription)(r,ae.INFINITE_PRODUCT_IDS)||(0,ae.hasActiveSubscription)(r,ae.WONDER_PRODUCT_IDS))&&(0,at.isUserUpgradedDuringCampaign)(r,{startAt:t6.AUG17_PROMO_START,endAt:t6.AUG17_PROMO_UPGRADE_DEADLINE});return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_M0yaxobg_1920x1080_1786960409374.webp",videoUrl:"https://cdn.openart.ai/production/2026-08/uploads/nIp59rPDHPc0MRaW2DWt/file_nw8AkTGQ_1786960481517.mp4",onCardClick:()=>{i?a.push((0,ed.withProjectParams)(an)):n.open(ar)},autoPlayVideo:!0,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:i?(0,t.jsx)(t0,{href:an,children:"Create Now"}):(0,t.jsx)(t0,{onClick:()=>n.open(ar),children:"Upgrade Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full",children:(0,t.jsx)("p",{className:"font-[family-name:var(--font-bricolage-grotesque)] font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Aug Promotions: Unlimited Models with Pro and Wonder"})})]})},isActive:()=>(0,t6.isAug17PromoUpgradeWindowOpen)()},{id:"unlimited-seedance-2-5-wonder",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_BWWVSBoa_1280x720_1786081716223.webp",videoUrl:"https://cdn.openart.ai/production/2026-08/uploads/nIp59rPDHPc0MRaW2DWt/file_o9V8ZvMa_1786085182982.mp4",onCardClick:()=>
1{a.push((0,ed.withProjectParams)(aK))},autoPlayVideo:!0,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:aK,children:"Create Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full",children:(0,t.jsx)("p",{className:"font-[family-name:var(--font-bricolage-grotesque)] font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Seedance 2.5 : 30s videos. Frame level editing. Highest Detail"})})]})},isActive:()=>!0},{id:"minimax-h3-2-weeks-promo",component:function(e){let a=(0,V.useRouter)(),n=(0,t7.useOpenUpgradeDialog)(),{data:r}=(0,t9.useCurrentWorkspace)(),{status:i}=(0,aw.useSession)(),s=(0,a_.useCampaignCohorts)(),o=s?.ids?.includes(aj.CAMPAIGN_COHORT_IDS["minimax-h3-2-weeks-unlimited"])===!0,l=!!("authenticated"===i&&r)&&(o?(0,ae.isWonderSubscription)(r)&&(0,ab.isMinimaxH32WeeksPromoFlagged)(r):(0,ab.isMinimaxH32WeeksPromoFlagged)(r)),c=o?[aa.SubscriptionType.Wonder]:void 0;return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_u47AKWe9_768x432_1789992636256.webp",videoUrl:"https://cdn.openart.ai/production/2026-09/uploads/nIp59rPDHPc0MRaW2DWt/file_uKtweddk_1789992682739.mp4",onCardClick:()=>{l?a.push((0,ed.withProjectParams)(aN)):n.open(c)},autoPlayVideo:!0,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:l?(0,t.jsx)(t0,{href:aN,children:"Create Now"}):(0,t.jsx)(t0,{onClick:()=>n.open(c),children:"Upgrade Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col items-start w-full",children:(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:o?"All MiniMax H3 models. Unlimited Until October 4.":"Up to 30% Off All Minimax H3 Models â Ends Oct 4"})})]})},isActive:()=>(0,ab.minimaxH32WeeksPromoActive)()},{id:"ad-awards",component:function(e){return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_BupvPP70_768x429_1789020022105.webp",videoUrl:"https://cdn.openart.ai/production/2026-09/uploads/nIp59rPDHPc0MRaW2DWt/file_LHGlepY9_1789019860023.mp4",autoPlayVideo:!0,onCardClick:()=>window.open(t2,"_blank","noopener,noreferrer"),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:t2,target:"_blank",children:"Join Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"OpenArt Ad Awards: Win from $50K in prizes"})})]})},isActive:()=>{let e=new Date;return e>=t3&&e<=t5}},{id:"gpt-image-2-5-launch",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_a9KshnHb_768x395_1788922475220.webp",videoUrl:"https://cdn.openart.ai/production/2026-09/uploads/nIp59rPDHPc0MRaW2DWt/file__YP-GETc_1788920599521.mp4",autoPlayVideo:!0,onCardClick:()=>a.push((0,ed.withProjectParams)(ag)),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:ag,children:"Try Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"GPT Image 2.5: Smart, fast, and precise creation & edits"})})]})},isActive:()=>!0,colSpan:2},{id:"unlimited-flux-3-oct-wonder",component:function(e){let a=(0,V.useRouter)(),n=(0,t7.useOpenUpgradeDialog)(),{data:r}=(0,t9.useCurrentWorkspace)(),{status:i}=(0,aw.useSession)(),s="authenticated"===i&&!!r&&(0,ae.hasActiveSubscription)(r,ae.WONDER_PRODUCT_IDS);return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_Va8P_t0C_768x432_1789383523221.webp",videoUrl:"https://cdn.openart.ai/production/2026-09/uploads/nIp59rPDHPc0MRaW2DWt/file_q0INo48R_1789383557956.mp4",onCardClick:()=>
1{s?a.push((0,ed.withProjectParams)(aH)):n.open([aa.SubscriptionType.Wonder])},autoPlayVideo:!0,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:s?(0,t.jsx)(t0,{href:aH,children:"Create Now"}):(0,t.jsx)(t0,{onClick:()=>n.open([aa.SubscriptionType.Wonder]),children:"Upgrade Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col items-start w-full",children:(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Unlimited Flux 3 video until October 31"})})]})},isActive:()=>(0,av.isCampaignActive)(aG.unlimitedFlux3OctWonder)},{id:"unlimited-h3-max-wonder",component:function(e){let a=(0,V.useRouter)(),n=(0,t7.useOpenUpgradeDialog)(),{data:r}=(0,t9.useCurrentWorkspace)(),{status:i}=(0,aw.useSession)(),s="authenticated"===i&&!!r&&(0,ae.hasActiveSubscription)(r,ae.WONDER_PRODUCT_IDS);return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_fRBhQME2_1200x675_1785398945074.webp",videoUrl:"https://cdn.openart.ai/production/2026-07/uploads/nIp59rPDHPc0MRaW2DWt/file_WXsnJ_eB_1785398856176.mp4",onCardClick:()=>{s?a.push((0,ed.withProjectParams)(a$)):n.open([aa.SubscriptionType.Wonder])},autoPlayVideo:!0,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:s?(0,t.jsx)(t0,{href:a$,children:"Create Now"}):(0,t.jsx)(t0,{onClick:()=>n.open([aa.SubscriptionType.Wonder]),children:"Upgrade Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col items-start w-full",children:(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"H3 Max: Fastest video model. Unlimited Until Sep 9"})})]})},isActive:()=>(0,av.isCampaignActive)(aB.unlimitedH3MaxWonder)},{id:"dub-video-launch",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_FYa4AJ9X_1920x1080_1787827149090.webp",videoUrl:"https://cdn.openart.ai/production/2026-08/uploads/8NX6NnDnPc4CuiBCUz81/file_X2irbOWI_1787827354255.mp4",autoPlayVideo:!0,onCardClick:()=>a.push((0,ed.withProjectParams)(ax)),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:ax,children:"Try Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"Dub videos into multiple languages"})})]})},isActive:()=>!0},{id:"gemini-omni-1-1-flash-launch",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_Tuv4xeLU_1024x576_1782833157395.webp",videoUrl:"https://cdn.openart.ai/production/2026-06/uploads/nIp59rPDHPc0MRaW2DWt/file_9aTBLtOW_1782833186274.mp4",autoPlayVideo:!0,onCardClick:()=>a.push((0,ed.withProjectParams)(au)),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:au,children:"Create Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"Gemini Omni 1.1: Create up to 4K. Extend Any Clip."})})]})},isActive:()=>!0,colSpan:1},{id:"wan3Launch-unlimited",component:function(e){let a=(0,V.useRouter)(),n=(0,t7.useOpenUpgradeDialog)(),{data:r}=(0,t9.useCurrentWorkspace)(),{status:i}=(0,aw.useSession)(),s="authenticated"===i&&!!r&&((0,ae.hasActiveSubscription)(r,ae.INFINITE_PRODUCT_IDS)||(0,ae.hasActiveSubscription)(r,ae.WONDER_PRODUCT_IDS));return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_yYmobvPr_1280x720_1787575418768.webp",videoUrl:"https://cdn.openart.ai/production/2026-08/uploads/nIp59rPDHPc0MRaW2DWt/file_XXGG4Z7g_1787575491536.mp4",onCardClick:()=>
1{s?a.push((0,ed.withProjectParams)(aZ)):n.open(aQ)},autoPlayVideo:!0,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:s?(0,t.jsx)(t0,{href:aZ,children:"Create Now"}):(0,t.jsx)(t0,{onClick:()=>n.open(aQ),children:"Upgrade Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full",children:(0,t.jsx)("p",{className:"font-[family-name:var(--font-bricolage-grotesque)] font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Wan 3.0: Unlimited Generations with Pro and Wonder"})})]})},isActive:()=>(0,av.isCampaignActive)(aY.wan3LaunchUnlimitedPro)},aI,{id:"openart-mcp",component:function(e){return(0,t.jsxs)(t1,{backgroundImage:aO,videoUrl:"https://cdn.openart.ai/openart-strapi-assets/76acb91bce0d4a20cf8bcd0e0f280f9c_d82e74d0_608e_4dbb_a4d8_0b08340abb0b_61a63ef940_720p/76acb91bce0d4a20cf8bcd0e0f280f9c_d82e74d0_608e_4dbb_a4d8_0b08340abb0b_61a63ef940_720p.mp4",autoPlayVideo:!0,onCardClick:()=>window.open(aM,"_blank","noopener,noreferrer"),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:aM,target:"_blank",children:"Limited 10% OFF"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"OpenArt MCP: Create with OpenArt from Claude, Cursor & More"})})]})},isActive:()=>!0,colSpan:1},{id:"unlimited-seedream-5-pro-wonder",component:function(e){let a=(0,V.useRouter)(),n=(0,t7.useOpenUpgradeDialog)(),{data:i,isLoggedIn:s}=(0,t9.useCurrentWorkspace)(),[o,l]=(0,r.useState)(!0);(0,r.useEffect)(()=>
1{l(new Date<=aS.unlimitedSeedream5ProInfinite.endAt)},[]);let c=!!i&&((0,ae.hasActiveSubscription)(i,ae.WONDER_PRODUCT_IDS)||(0,ae.hasActiveSubscription)(i,ae.INFINITE_PRODUCT_IDS));return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_4qs5elKO_874x492_1783511285134.webp",videoUrl:"https://cdn.openart.ai/production/2026-07/uploads/nIp59rPDHPc0MRaW2DWt/file_LusdNrUC_1783511313198.mp4",onCardClick:()=>{c||s&&!i?a.push((0,ed.withProjectParams)("/create-image/byte-plus-seedream-5-pro")):n.open(o?[aa.SubscriptionType.Infinite,aa.SubscriptionType.Wonder]:[aa.SubscriptionType.Wonder])},autoPlayVideo:!0,children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(aE,{endDate:aS.unlimitedSeedream5ProWonder.endAt})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full",children:(0,t.jsx)("p",{className:"font-[family-name:var(--font-bricolage-grotesque)] font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Unlimited Seedream 5.0 Pro: Interactive Editing"})})]})},isActive:()=>(0,av.isCampaignActive)(aS.unlimitedSeedream5ProWonder)},{id:"gemini-omni-flash-launch",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_Tuv4xeLU_1024x576_1782833157395.webp",videoUrl:"https://cdn.openart.ai/production/2026-06/uploads/nIp59rPDHPc0MRaW2DWt/file_9aTBLtOW_1782833186274.mp4",autoPlayVideo:!0,onCardClick:()=>a.push((0,ed.withProjectParams)(am)),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:am,children:"Try Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"Gemini Omni Flash: Multimodal Input & Conversational Editing"})})]})},isActive:()=>!1,colSpan:1},{id:"nano-banana-2-lite-launch",component:function(e){let a=(0,V.useRouter)(),n=(0,t7.useOpenUpgradeDialog)(),{data:i,isLoggedIn:s}=(0,t9.useCurrentWorkspace)(),[o,l]=(0,r.useState)(!0);(0,r.useEffect)(()=>
1{l(new Date<=aS.unlimitedNanoBanana2LiteInfinite.endAt)},[]);let c=!!i&&((0,ae.hasActiveSubscription)(i,ae.WONDER_PRODUCT_IDS)||(0,ae.hasActiveSubscription)(i,ae.INFINITE_PRODUCT_IDS));return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_EenX7OkS_600x337_1782901287344.webp",videoUrl:"https://cdn.openart.ai/production/2026-07/uploads/nIp59rPDHPc0MRaW2DWt/file_NKsbr19T_1782901365265.mp4",autoPlayVideo:!0,onCardClick:()=>{c||s&&!i?a.push((0,ed.withProjectParams)("/create-image/nano-banana-2-lite")):n.open([aa.SubscriptionType.Infinite,aa.SubscriptionType.Wonder])},children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(aE,{endDate:aS.unlimitedNanoBanana2LiteWonder.endAt})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:o?`Unlimited Nano Banana 2 Lite for ${(0,aA.getSubscriptionDisplayName)(aa.SubscriptionType.Infinite)} & ${(0,aA.getSubscriptionDisplayName)(aa.SubscriptionType.Wonder)} plans`:`Unlimited Nano Banana 2 Lite for ${(0,aA.getSubscriptionDisplayName)(aa.SubscriptionType.Wonder)} plans`})})]})},isActive:()=>(0,av.isCampaignActive)(aS.unlimitedNanoBanana2LiteWonder),colSpan:2},{id:"openversary",component:function(e){return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image__pXDwAG0_1280x720_1778166512617.webp",videoUrl:"https://cdn.openart.ai/production/2026-05/uploads/8b16UjVsunB34g8mJCax/file_oO1jBNDG_1778169480948.mp4",autoPlayVideo:!0,children:[(0,t.jsx)(aE,{endDate:aR.unlimitedOpenversaryWonderImage.endAt}),(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(aU,{children:"Claim Offer"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-12",children:(0,t.jsx)("p",{className:(0,d.cn)("font-bricolage-grotesque font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"Get Unlimited Creations on our 3rd Anniversary"})})]})},isActive:()=>(0,av.isCampaignActive)(aR.unlimitedOpenversaryWonderImage),colSpan:2},{id:"gpt-image-2-launch",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_GPTImage2_1920x1080_1776806802000.webp",videoUrl:"https://cdn.openart.ai/production/2026-05/uploads/nIp59rPDHPc0MRaW2DWt/file_h86mcFbm_1778168512300.mp4",autoPlayVideo:!0,onCardClick:()=>a.push((0,ed.withProjectParams)(ah)),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:ah,children:"Try Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-[3rem]",children:(0,t.jsx)("p",{className:(0,d.cn)("font-[family-name:var(--font-bricolage-grotesque)] font-bold","text-[16px] leading-6 text-text-icon-neutral-high-contrast","md:text-[18px]","line-clamp-2","[text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]"),children:"GPT Image 2.0 â A New Era of Image Generation"})})]})},isActive:()=>!0,colSpan:2},{id:"seedance-2-promo",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_eY9XrPVO_1920x1070_1775105385443.webp",videoUrl:"https://cdn.openart.ai/production/2026-04/uploads/nIp59rPDHPc0MRaW2DWt/file_nc7k03qt_1775104845814.mp4",autoPlayVideo:!0,onCardClick:()=>a.push((0,ed.withProjectParams)(aV)),children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 z-10",children:(0,t.jsx)(t0,{href:aV,children:"Try Now"})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"flex flex-col justify-start items-start w-full min-h-12",children:(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-6 md:text-[18px] line-clamp-2 text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Seedance 2.0 â The World's Most Powerful Video Model"})})]})},isActive:()=>!0,colSpan:2},{id:"personality-year-awards",component:function(e){return(0,t.jsxs)(t1,{backgroundImage:"https://cdn.openart.ai/assets/internal/uploads/image_EMxqPMLV_1920x1072_1774263690688.webp",videoUrl:"https://cdn.openart.ai/production/2026-03/uploads/8b16UjVsunB34g8mJCax/file_I8O_495y_1774264771915.mp4",onCardClick:()=>window.open(aD,"_blank","noopener,noreferrer"),children:[(0,t.jsx)(aE,{endDate:az}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-start w-full",children:[(0,t.jsx)("p",{className:"font-[family-name:var
1(--font-bricolage-grotesque)] font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"AI Personality of the Year Awards"}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(0,t.jsx)(t0,{href:aD,target:"_blank",children:"Create. Post. Win $90K"})})]})]})},isActive:()=>new Date<az},{id:"kling3-cash-challenge",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/KlingChallange.webp",videoUrl:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/KlingChanllege.mp4",onCardClick:()=>a.push((0,ed.withProjectParams)("/create-image/kling-3-omni")),children:[(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-start w-full",children:[(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Kling 3.0 $15,000 Cash Challenge is Live !"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(t0,{href:"/create-image/kling-3-omni",children:"Create Now"}),(0,t.jsx)(t0,{href:"https://openart.notion.site/openart-kling-3-0-challenge",target:"_blank",rel:"noopener noreferrer",variant:"ghost",className:"text-text-icon-fixed-white-secondary hover:text-text-icon-fixed-white-default",children:"View Details"})]})]})]})},isActive:()=>new Date<=af},{id:"unlimited-kling-3-omni",component:function(e){let a=(0,t7.useOpenUpgradeDialog)();return(0,t.jsxs)(t1,{backgroundImage:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/KingUnlimited.webp",videoUrl:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/KlingUnlimited.mp4",onCardClick:()=>a.open(),children:[(0,t.jsx)(aE,{endDate:aS.unlimitedKling3Omni.endAt}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-start w-full",children:[(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"UNLIMITED Kling 3.0 with Wonder Plan"}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(0,t.jsx)(aU,{})})]})]})},isActive:()=>(0,av.isCampaignActive)(aS.unlimitedKling3Omni)},{id:"unlimited-nano-banana-2-wonder",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/NanoBanana2.webp",videoUrl:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/NanoBanana2.mp4",onCardClick:()=>a.push((0,ed.withProjectParams)(aq)),children:[(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-start w-full",children:[(0,t.jsx)("p",{className:"font-[family-name:var(--font-bricolage-grotesque)] font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Nano Banana 2"}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(0,t.jsx)(t0,{href:aq,children:"Create"})})]})]})},isActive:()=>!1},{id:"unlimited-seedream-5-lite-wonder",component:function(e){let a=(0,V.useRouter)();return(0,t.jsxs)(t1,{backgroundImage:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/SeedreamComing.webp",videoUrl:"https://cdn.openart.ai/production/2026-03/uploads/k9ibvGFg7xXwLVJKQvTM/file_z9oTZd8y_1773811919130.mp4",onCardClick:()=>a.push((0,ed.withProjectParams)(aX)),children:[(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-start w-full",children:[(0,t.jsx)("p",{className:"font-[family-name:var(--font-bricolage-grotesque)] font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Seedream 5.0 Lite"}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(0,t.jsx)(t0,{href:aX,children:"Create"})})]})]})},isActive:()=>(0,av.isCampaignActive)(aS.unlimitedSeedream5LiteWonder)},{id:"seedance-2-coming-soon",component:function(e){return(0,t.jsxs)(t1,{backgroundImage:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/SeedanceComing.webp",videoUrl:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/SeedanceComing.mp4",children:[(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-start w-full",children:[(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Seedance 2.0 COMING SOON"}),(0,t.jsx)("div",{className:"h-6 shrink-0","aria-hidden":"true"})]})]})},isActive:()=>{let e=new Date;return e>=aF&&e<=aW}},{id:"sweetest-deal",component:function(e){let a=(0,t7.useOpenUpgradeDialog)();return(0,t.jsxs)(t1,{backgroundImage:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/SweetestDeal.webp",videoUrl:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/SweetestDeal.mp4",onCardClick:()=>a.open(),children:[(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-start w-full",children:[(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"Sweetest Deal of the Year 69% OFF"}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(0,t.jsx)(aU,{children:"Upgrade and Save BIG"})})]})]})},isActive:()=>{let e=new Date("2026-02-14T08:00:00Z"),t=new Date("2026-02-15T07:59:00Z"),a=new Date;return a>=e&&a<=t}},{id:"unlimited-grok-imagine",component:function(e){let a=(0,t7.useOpenUpgradeDialog)();return(0,t.jsxs)(t1,{backgroundImage:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/GrokUnlimited.webp",videoUrl:"https://storage.googleapis.com/cdn.openart.ai/openart_suite/promo/GrokUnlimited.mp4",onCardClick:()=>a.open(),children:[(0,t.jsx)(aE,{endDate:aS.unlimitedGrokImagine.endAt}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-start w-full",children:[(0,t.jsx)("p",{className:"font-bricolage-grotesque font-semibold text-[16px] leading-[1.34] md:text-[18px] text-text-icon-neutral-high-contrast [text-shadow:1px_1px_0.5px_rgba(0,0,0,0.34)]",children:"UNLIMITED Grok Imagine With Wonder Plan"}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(0,t.jsx)(aU,{})})]})]})},isActive:()=>(0,av.isCampaignActive)(aS.unlimitedGrokImagine)}];function a0({className:e,title:a}){let n,r,i,s,o,l=(n=(0,t$.useIsWonderYearly)(),r=(0,tB.useIsWonderSubscriber)(),i=(0,tK.useEnterpriseExperienceEnabled)(),s=(0,tH.useAbTest)(tX.AB_FLAGS.mcpIntegrationSidebar,!1),o=(0,tq.useMcpDiscountPromoEnabled)(),i?[]:aJ.filter(e=>!!e.isActive()&&("openversary"!==e.id||!n)&&("minimax-h3-2-weeks-promo"!==e.id||!r)&&("create-from-mcp"!==e.id&&"openart-mcp"!==e.id||!!s)&&("openart-mcp"!==e.id||!!o))),c=(0,S.useSectionExposure)("campaign_banner"),p=a?l.filter(e=>"create-from-mcp"!==e.id&&"openart-mcp"!==e.id):l;if(0===p.length)return null;let x=p.slice(0,6),u=x[0].component,m=1===x.length?(0,t.jsx)("div",{onClick:()=>tR(x[0].id),className:"contents",children:(0,t.jsx)(u,{})}):(0,t.jsx)(tG,{colSpans:x.map((e,t)=>a||0!==t?1:e.colSpan??1),mobileSlideWidthPx:a?286:void 0,children:x.map(e=>{let a=e.component;return(0,t.jsx)("div",{onClick:()=>tR(e.id),className:"contents",children:(0,t.jsx)(a,{})},e.id)})});return(0,t.jsxs)("div",{ref:c,className:(0,d.cn)("flex flex-col w-full",a?"gap-3":"gap-4 md:gap-6","md:max-w-[1800px]",e),children:[a&&(0,t.jsx)(tO,{title:a}),(0,t.jsx)("div",{className:"relative overflow-hidden w-full self
1-stretch md:self-center",children:(0,t.jsx)(tQ,{value:!!a,children:m})})]})}var a1=e.i(51722),a2=e.i(450082),a3=e.i(217514),a5=e.i(446216),a4=e.i(96895);function a8({title:e,description:a,badge:n="New",ctaLabel:i="Try it now",backgroundUrl:s,videoUrl:o,onCtaClick:l,className:c}){let p=!!l,x=(0,r.useRef)(null),u=()=>{let e=x.current;e&&(e.currentTime=0,e.play().catch(()=>{}))},m=()=>{let e=x.current;e&&(e.pause(),e.currentTime=0)};return(0,t.jsxs)("div",{"data-name":"Task card",role:p?"button":void 0,tabIndex:p?0:void 0,onClick:l,onKeyDown:e=>{l&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l())},onMouseEnter:o?u:void 0,onMouseLeave:o?m:void 0,onFocus:o?u:void 0,onBlur:o?m:void 0,className:(0,d.cn)("group/card relative isolate flex w-full flex-col rounded-[16px] text-left",p&&"cursor-pointer",c),children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 overflow-hidden rounded-[16px]",children:s?(0,t.jsx)("img",{src:s,alt:"",className:"absolute inset-0 size-full object-cover"}):(0,t.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_30%_20%,rgba(40,40,55,0.9),rgba(0,0,0,1))]"})}),(0,t.jsx)("div",{className:"relative flex flex-1 flex-col rounded-[16px] bg-[rgba(0,0,0,0.45)] p-[4px] backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col justify-end overflow-hidden rounded-[12px] p-[12px]",children:[(0,t.jsxs)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 rounded-[12px]",children:[s?(0,t.jsx)("img",{src:s,alt:"",className:"absolute inset-0 size-full object-cover"}):(0,t.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_30%_20%,rgba(40,40,55,0.9),rgba(0,0,0,1))]"}),o?(0,t.jsx)("video",{ref:x,src:o,muted:!0,loop:!0,playsInline:!0,preload:"none",poster:s,tabIndex:-1,className:"absolute inset-0 size-full object-cover opacity-0 transition-opacity duration-200 ease-out group-hover/card:opacity-100 group-focus-within/card:opacity-100"}):null,(0,t.jsx)("div",{className:"absolute inset-0 rounded-[12px] bg-linear-to-b from-[rgba(0,0,0,0)] from-50% to-[rgba(0,0,0,0.65)]"})]}),(0,t.jsxs)("div",{className:"relative flex w-full items-end gap-[16px]",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[2px] px-[4px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,t.jsx)("h3",{className:"font-bricolage-grotesque truncate text-[24px] font-bold leading-[1.2] tracking-[-0.48px] text-text-icon-neutral-primary",children:e}),n?(0,t.jsx)(a5.CardBadge,{className:"relative",children:n}):null]}),(0,t.jsx)("p",{className:"w-full truncate text-[13px] font-medium leading-[20px] text-text-icon-fixed-white-secondary",children:a})]}),(0,t.jsx)(a2.Button,{variant:"solid",color:"neutral",size:"36",highContrast:!0,onClick:e=>{e.stopPropagation(),l?.()},iconEnd:(0,t.jsx)(a3.IconArrowOutwardBold,{}),className:"relative shrink-0 rounded-full font-semibold",children:i})]})]})}),(0,t.jsx)("span",{"aria-hidden":"true",className:(0,d.cn)("pointer-events-none absolute inset-0 overflow-hidden rounded-[16px]","shadow-[inset_0px_-1px_0px_0px_rgba(217,237,254,0.15),inset_0px_1px_0px_0px_rgba(217,237,254,0.15)]")}),(0,t.jsx)("span",{"aria-hidden":"true",style:a4.HOVER_GRADIENT_BORDER_STYLE,className:"pointer-events-none absolute inset-0 overflow-hidden rounded-[16px] opacity-0 transition-opacity duration-200 ease-out group-hover/card:opacity-100 group-focus-within/card:opacity-100"})]})}var a6=e.i(585463),a7=e.i(292717),a9=e.i(703707);function ne(e){(0,em.event)("tool_engaged",{action:"use",tool:e.replaceAll("-","_"),click_source:"homepage"})}var nt=e.i(924952);function na({className:e,action:a}){return(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full items-center gap-3 px-1","md:gap-4 md:px-1",e),children:[(0,t.jsxs)("div",{className:(0,d.cn)("relative flex shrink-0 items-center justify-center overflow-hidden","size-9 rounded-[11px]","md:size-[46px] md:rounded-[14px]"),children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0",style:{backgroundImage:"linear-gradient(152.92deg, #FFCBEF 0%, #FB23C2 100%)"}}
1),(0,t.jsx)(nt.IconDirectorMark,{"aria-hidden":!0,className:"relative size-[17.7px] text-white md:size-[22.588px]"}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 rounded-[inherit] shadow-[inset_0px_1px_0px_0px_rgba(255,255,255,0.4)]"})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:(0,d.cn)("font-bricolage-grotesque font-semibold text-text-icon-neutral-primary","text-[18px] leading-6 tracking-[-0.36px]","md:text-[24px] md:leading-7 md:tracking-[-0.48px]"),children:"Vibe Direct Now"}),(0,t.jsx)("p",{className:(0,d.cn)("truncate text-text-icon-neutral-secondary","text-[12px] leading-4","md:text-[13px] md:leading-5"),children:"Pick a vibe - Director handles the shots, cuts, and sound."})]}),a]})}function nn({onMoreClick:e}={}){let a=(0,l.useOpenQuickStartDialog)(),[n,...r]=a7.QUICK_START_CARDS,i=e=>{ne(e),a(e,"banner")};return(0,t.jsxs)("section",{"data-testid":"homepage-director-quick-start",className:(0,d.cn)("flex w-full flex-col","gap-4","md:gap-6 md:max-w-[1800px]"),children:[(0,t.jsxs)("div",{className:"hidden w-full flex-col gap-3 md:flex",children:[(0,t.jsx)(na,{}),(0,t.jsxs)("div",{className:"grid w-full grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-12 lg:grid-rows-2",children:[n?(0,t.jsx)(a8,{title:a9.STORY_TYPES[n.type].label,description:n.description,badge:"Featured",ctaLabel:"Try Now",backgroundUrl:n.backgroundUrl,videoUrl:n.videoUrl,onCtaClick:()=>i(n.type),className:"col-span-2 min-h-[175px] sm:col-span-2 lg:col-span-4 lg:min-h-0 lg:row-span-1"}):null,r.map(e=>{let{label:a,icon:n}=a9.STORY_TYPES[e.type];return(0,t.jsx)(a6.MusicVideoSmallCard,{title:a,backgroundUrl:e.backgroundUrl,videoUrl:e.videoUrl,icon:(0,t.jsx)(n,{}),onClick:()=>i(e.type),badge:e.badge,className:"min-h-[175px] lg:col-span-2 lg:min-h-0"},e.id)})]})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4 md:hidden",children:[(0,t.jsx)(na,{action:(0,t.jsxs)("button",{type:"button",onClick:()=>{ne("director"),e?.()},className:(0,d.cn)("font-bricolage-grotesque shrink-0 cursor-pointer whitespace-nowrap","text-[12px] font-semibold leading-4 tracking-[-0.12px]","text-text-icon-neutral-default transition-colors","hover:text-text-icon-neutral-high-contrast"),children:["More ",(0,t.jsx)("span",{className:"font-sans",children:"â"})]})}),(0,t.jsx)(a1.CardCarousel,{children:a7.QUICK_START_CARDS.map(e=>{let{label:a,icon:n}=a9.STORY_TYPES[e.type];return(0,t.jsx)(a6.MusicVideoSmallCard,{title:a,backgroundUrl:e.backgroundUrlMobile??e.backgroundUrl,videoUrl:e.videoUrl,icon:(0,t.jsx)(n,{}),onClick:()=>i(e.type),badge:e.badge,className:"w-[160px] shrink-0"},e.id)})})]})]})}var nr=e.i(596702),ni=e.i(12633),ns=e.i(690538),no=e.i(468667),nl=e.i(842450),nc=e.i(823739),nd=e.i(309138),np=e.i(919455),nx=e.i(808210);let nu=[...ta.videoConfigs.filter(e=>"text-to-video"===e.tool),...ta.videoConfigs.filter(e=>"text-to-video"!==e.tool)],nm=[{id:"story",label:"Story",icon:(0,t.jsx)(nl.IconAiPlayVideoFill,{className:"size-5"}),dropdownType:"story"},{id:"video",label:"Video",icon:(0,t.jsx)(np.IconVideoFill,{className:"size-5"}),generalAgentIcon:(0,t.jsx)(ti.IconAiVideocameraFill,{}),dropdownType:"tools",tools:nu},{id:"image",label:"Image",icon:(0,t.jsx)(nc.IconGalleryFill,{className:"size-5"}),generalAgentIcon:(0,t.jsx)(tr.IconAiImageFill,{}),dropdownType:"tools",tools:ta.imageConfigs},{id:"character",label:"Character",icon:(0,t.jsx)(nd.IconHappyemojiFill,{className:"size-5"}),generalAgentIcon:(0,t.jsx)(tl.IconCharacterFill,{}),dropdownType:"character"},{id:"world",label:"World",icon:(0,t.jsx)(to.IconAiWorldFill,{className:"size-5"}),dropdownType:"world",tools:ta.worldConfigs},{id:"audio",label:"Audio",icon:(0,t.jsx)(nx.IconVoiceSquareFill,{className:"size-5"}),generalAgentIcon:(0,t.jsx)(ts.IconAiVoiceNoteFill,{}),dropdownType:"audio",tools:ta.audioConfigs}],ng={id:"chat",label:"Agents",icon:(0,t.jsx)(eC.IconAiChattingFill,{className:"size-5"}),dropdownType:"chat"},nh={id:"director",label:"Director",icon:(0,t.jsx)(O.IconIconsaxVideoGenerateBold,{className:"size-5"}),dropdownType:"director",badge:"NEW"},nf=[{title:"Music Video",link:`${ns.PREVIOUS_STORY_PATH}?template=music-video`,icon:"https://cdn.openart.ai/assets/internal/uploads/image_vvAxA3KK_72x72_1772531713127.webp"},{title:"Character Vlog",link:`${ns.PREVIOUS_STORY_PATH}?template=character-vlog`,icon:"https://cdn.openart.ai/assets/internal/uploads/image_Q3fc2za7_72x72_1772532300093.webp"},{title:"Explainer Video",link:`${ns.PREVIOUS_STORY_PATH}?template=explainer-video`,icon:"https://cdn.openart.ai/assets/internal/uploads/image_TuDHeVVn_72x72_1772532331551.webp"},{title:"ASMR Video",link:`${ns.PREVIOUS_STORY_PATH}?template=asmr-video`,icon:"https://cdn.openart.ai/assets/internal/uploads/image_CFBZtUya_72x72_1772532357916.webp"}],nb=[{title:"Create a Character",url:"character?create_character=true",tool:"create-character",icon:"https://cdn.openart.ai/assets/internal/uploads/image_i7pSX
1Q3I_72x72_1772533532354.webp"},{title:"Character Image",url:"character?character-image=true",tool:"create-character",icon:"https://cdn.openart.ai/assets/internal/uploads/image_wkwZjJH6_72x72_1772533579212.webp"},{title:"Character Video",url:"character?character-video=true",tool:"create-character",icon:"https://cdn.openart.ai/assets/internal/uploads/image_gz7Lk7-K_1008x1008_1771458828719.webp"}];function nv({config:e}){let a=e.icon;return a?(0,t.jsx)("div",{className:"flex items-center justify-center size-9 shrink-0 rounded-full bg-[rgba(211,237,248,0.04)] border border-[rgba(211,237,248,0.11)] text-text-icon-neutral-default",children:(0,t.jsx)(a,{className:"size-5"})}):(0,t.jsx)("div",{className:"relative size-9 shrink-0 rounded-full overflow-hidden",children:e.posterUrl&&(0,t.jsx)(eV.default,{src:e.posterUrl,alt:e.title,fill:!0,className:"object-cover",sizes:"36px"})})}function nj({config:e}){let a=nP[e.tool]??`/${e.url??e.tool}`;return(0,t.jsxs)(tY.default,{href:(0,ed.withProjectParams)(a),onClick:()=>eg(e.title),className:(0,d.cn)("flex items-center gap-[10px] pr-[14px] rounded-full w-full","transition-colors duration-150","hover:bg-background-neutral-ghost-hover"),children:[(0,t.jsx)("div",{className:"flex items-center p-[2px] shrink-0",children:(0,t.jsx)(nv,{config:e})}),(0,t.jsx)("span",{className:(0,d.cn)("flex-1 min-w-0 truncate text-[14px] font-medium leading-5 tracking-[-0.03px]","text-text-icon-neutral-default hover:text-text-icon-neutral-primary"),children:e.title}),e.isNew&&(0,t.jsx)("span",{className:"flex shrink-0 items-center justify-center rounded-full bg-background-brand-secondary-soft px-1.5 text-[11px] font-bold text-text-icon-brand-secondary-default-2 italic leading-4 tracking-[0.1px]",children:"NEW"})]})}function nw(){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"px-1 py-2",children:(0,t.jsx)("span",{className:"text-[13px] font-semibold leading-5 text-text-icon-neutral-high-contrast",children:"Use legacy"})}),nf.map(e=>(0,t.jsxs)("a",{href:(0,ed.withProjectParams)(e.link),target:"_blank",rel:"noopener noreferrer",onClick:()=>eg(e.title),className:(0,d.cn)("flex items-center gap-[10px] pr-2 rounded-full w-full","hover:bg-background-neutral-ghost-hover transition-colors duration-150"),children:[(0,t.jsx)("div",{className:"flex items-center p-[2px] shrink-0",children:(0,t.jsx)(eV.default,{src:e.icon,alt:e.title,className:"rounded-full",width:36,height:36})}),(0,t.jsx)("span",{className:"flex-1 min-w-0 truncate text-[14px] font-medium leading-5 tracking-[-0.03px] text-text-icon-neutral-default hover:text-text-icon-neutral-primary",children:e.title}),(0,t.jsx)(a3.IconArrowOutwardBold,{className:"size-[18px] shrink-0 text-text-icon-neutral-default"})]},e.title))]})}function n_(){return(0,t.jsx)("div",{className:"border-t border-border-neutral-outline pt-2",children:(0,t.jsxs)("a",{href:(0,ed.withProjectParams)(ns.PREVIOUS_STORY_PATH),target:"_blank",rel:"noopener noreferrer",onClick:()=>eg("Use legacy Story feature"),className:(0,d.cn)("flex w-full items-center justify-center gap-1 rounded-full px-3 py-2","text-[13px] font-medium leading-5 text-text-icon-neutral-default","transition-colors duration-150","hover:bg-background-neutral-ghost-hover hover:text-text-icon-neutral-primary"),children:["Use legacy Story feature",(0,t.jsx)(a3.IconArrowOutwardBold,{className:"size-[14px] shrink-0"})]})})}function nN(){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("div",{className:"flex items-center gap-2 rounded-[12px] bg-background-brand-secondary-surface px-[14px] py-2",children:(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,t.jsx)("span",{className:"font-bricolage-grotesque text-[15px] font-semibold leading-6 tracking-[-0.3px] bg-clip-text text-transparent bg-linear-to-r from-white to-[#16d866]",children:"Story under revamp"}),(0,t.jsx)("span",{className:"text-[12px] font-medium leading-4 tracking-[0.05px] text-text-icon-brand-secondary-high-contrast",children:"Available in the previous version"})]}),(0,t.jsx)(eV.default,{src:"https://cdn.openart.ai/assets/internal/uploads/image_MhL5w6Tq_103x103_1772530609541.webp",alt:"",width:48,height:48})]})}),(0,t.jsx)(nw,{})]})}function ny({title:e,backgroundUrl:a,quickStartId:n,badge:r}
1){return(0,t.jsxs)(tY.default,{href:(0,ed.withProjectParams)(n?`/director?quickStart=${n}&quickStartSource=navigation`:"/director"),onClick:()=>eg(e),className:(0,d.cn)("flex items-center gap-[10px] pr-[14px] rounded-full w-full","transition-colors duration-150 hover:bg-background-neutral-ghost-hover"),children:[(0,t.jsx)("div",{className:"flex items-center p-[2px] shrink-0",children:(0,t.jsx)("div",{className:"relative size-9 shrink-0 overflow-hidden rounded-full bg-background-neutral-soft",children:a&&(0,t.jsx)(eV.default,{src:a,alt:"",fill:!0,className:"object-cover",sizes:"36px"})})}),(0,t.jsx)("span",{className:"flex-1 min-w-0 truncate text-[14px] font-medium leading-5 tracking-[-0.03px] text-text-icon-neutral-default hover:text-text-icon-neutral-primary",children:e}),r&&(0,t.jsx)("span",{className:"shrink-0 flex items-center justify-center px-1.5 rounded-full bg-background-brand-secondary-soft text-[11px] font-bold italic leading-4 tracking-[0.1px] text-text-icon-brand-secondary-default-2",children:r})]})}function nC({title:e,showLegacyStory:a,scrollRows:n=!0}){let r=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[a7.HOMEPAGE_QUICK_START_CARDS.map(e=>(0,t.jsx)(ny,{title:e.title,backgroundUrl:e.backgroundUrl,quickStartId:e.config?.id,badge:e.badge?.toUpperCase()},e.id)),a&&(0,t.jsx)(n_,{})]});return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"px-1 py-2",children:(0,t.jsx)("span",{className:"text-[13px] font-semibold leading-5 text-text-icon-neutral-high-contrast",children:e})}),n?(0,t.jsx)(eR.ScrollFadeContainer,{fadeMode:"mask",showIndicator:!0,size:"sm",viewportClassName:"h-[108px] overflow-y-auto",children:r}):r]})}function nk(){let e=(0,tK.useEnterpriseExperienceEnabled)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-[12px] shadow-[inset_0px_1px_0px_0px_rgba(217,237,254,0.15)]",children:[(0,t.jsxs)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[(0,t.jsx)(eV.default,{src:"https://cdn.openart.ai/assets/internal/uploads/image_2TwqQ1Xx_1920x1080_1782117142771.webp",alt:"",fill:!0,sizes:"280px",className:"object-cover"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/80"})]}),(0,t.jsxs)("div",{className:"relative flex flex-col gap-3 p-4",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"font-bricolage-grotesque text-[15px] font-semibold leading-6 tracking-[-0.3px] bg-clip-text text-transparent bg-linear-to-r from-white to-text-icon-brand-default",children:"Direct Your Next Video"}),(0,t.jsx)("span",{className:"text-[12px] font-medium leading-4 tracking-[0.05px] text-white/60",children:"Create videos by chatting with AI."})]}),(0,t.jsxs)(tY.default,{href:(0,ed.withProjectParams)("/director"),onClick:()=>eg("Director"),style:{backgroundImage:"linear-gradient(180deg, #ff8cdc 0%, #ff1ac2 100%)"},className:(0,d.cn)("relative flex h-9 w-fit items-center justify-center gap-[6px] rounded-full pl-3 pr-[14px]","shadow-[0px_4px_16px_0px_rgba(0,0,0,0.45)]"),children:[(0,t.jsx)("span",{className:"pointer-events-none absolute inset-0 rounded-full shadow-[inset_0px_1px_0px_0px_rgba(255,255,255,0.45)]"}),(0,t.jsx)(eC.IconAiChattingFill,{className:"size-4 text-white"}),(0,t.jsx)("span",{className:"text-[13px] font-bold leading-5 text-white",children:"Chat to direct"})]})]})]}),(0,t.jsx)(nC,{title:"Quick Starts",showLegacyStory:!e})]})}function nI({href:e,icon:a,label:n,subtitle:r}){return(0,t.jsxs)(tY.default,{href:(0,ed.withProjectParams)(e),onClick:()=>eg(n),className:(0,d.cn)("inset-top-highlight relative flex items-center gap-2 rounded-[12px] px-3 py-[14px]","bg-linear-to-b from-[rgba(214,225,255,0.06)] to-[rgba(214,225,255,0.12)]","[--inset-top-highlight-color:rgba(214,225,255,0.1)]","transition-[background-color] duration-150","hover:bg-[linear-gradient(rgba(214,225,255,0.12),rgba(214,225,255,0.12))]","hover:[--inset-top-highlight-color:rgba(214,225,255,0.12)]","active:bg-[linear-gradient(rgba(214,225,255,0.20),rgba(214,225,255,0.20))]","active:[--inset-top-highlight-color:rgba(214,225,255,0.16)]"),children:[(0,t.jsx)("span",{className:"flex size-10 shrink-0 items-center justify-center rounded-[12px] text-text-icon-neutral-primary [&>svg]:size-[22px]",children:a}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"truncate font-bricolage-grotesque text-[15px] font-semibold leading-6 tracking-[-0.3px] text-text-icon-neutral-primary",children:n}),(0,t.jsx)("span",{className:"truncate text-[12px] font-medium leading-4 tracking-[0.05px] text-text-icon-neutral-default",children:r})]})]})}function nS(){let e=(0,tK.useEnterpriseExperienceEnabled)();return(0,t.jsx)(eR.ScrollFadeContainer,{fadeMode:"mask",showIndicator:!0,size:"sm",viewportClassName:"h-[318px] max-h-[calc(var(--radix-popover-content-available-height)-16px)] overflow-y-auto",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(nI,{href:"/chat",icon:(0,t.jsx)(eC.IconAiChattingFill,{}),label:"Chat Mode",subtitle:"Simple asks, instant results"}),(0,t.jsx)(nI,{href:"/director",icon:(0,t.jsx)(O.IconIconsaxVideoGenerateBold,{}),label:"Director Mode",subtitle:"Big ideas, fully produced"})]}),(0,t.jsx)(nC,{title:"Director Quick Starts",showLegacyStory:!e,scrollRows:!1})]})})}function nA(){return(0,t.jsx)("div",{className:"flex flex-col gap-1",children:nb.map(e=>
1(0,t.jsxs)(tY.default,{href:(0,ed.withProjectParams)(`/${e.url}`),onClick:()=>eg(e.title),className:(0,d.cn)("flex items-center gap-[10px] pr-[14px] rounded-full w-full","transition-colors duration-150","hover:bg-background-neutral-ghost-hover"),children:[(0,t.jsx)("div",{className:"flex items-center p-[2px] shrink-0",children:(0,t.jsx)(eV.default,{src:e.icon,alt:e.title,className:"rounded-full",width:36,height:36})}),(0,t.jsx)("span",{className:(0,d.cn)("flex-1 min-w-0 truncate text-[14px] font-medium leading-5 tracking-[-0.03px]","text-text-icon-neutral-default hover:text-text-icon-neutral-primary"),children:e.title})]},e.title))})}let nP={"character-builder":"/character?create_character=true&flow=form","create-voice-over":"/create-voice-over/eleven_multilingual_v2"},nL={"create-pano":"/world?create_world=true","create-3d-world":"/world?tool=create-3d-world","take-photo":"/world?tool=take-photo"};function nT({tools:e}){let a=e.map(e=>"create-pano"===e.tool?{...e,posterUrl:"https://cdn.openart.ai/assets/internal/uploads/image_i7pSXQ3I_72x72_1772533532354.webp"}:e);return(0,t.jsx)("div",{className:"flex flex-col gap-1",children:a.map(e=>{let a=nL[e.tool]??`/${e.url??e.tool}`;return(0,t.jsxs)(tY.default,{href:(0,ed.withProjectParams)(a),onClick:()=>eg(e.title),className:(0,d.cn)("flex items-center gap-[10px] pr-[14px] rounded-full w-full","transition-colors duration-150","hover:bg-background-neutral-ghost-hover"),children:[(0,t.jsx)("div",{className:"flex items-center p-[2px] shrink-0",children:(0,t.jsx)(eV.default,{src:e.posterUrl??"",alt:e.title,className:"rounded-full",width:36,height:36})}),(0,t.jsx)("span",{className:(0,d.cn)("flex-1 min-w-0 truncate text-[14px] font-medium leading-5 tracking-[-0.03px]","text-text-icon-neutral-default hover:text-text-icon-neutral-primary"),children:e.title})]},e.tool)})})}let nE={"create-voice":"/audio?create-voice=true","create-voice-over":"/create-voice-over/eleven_multilingual_v2","create-music":"/create-music","create-sound-effect":"/create-sound-effect","voice-clone":"/voice-clone","voice-changer":"/voice-changer"};function nO({tools:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)(tY.default,{href:(0,ed.withProjectParams)("/audio?create-voice=true"),onClick:()=>eg("Create Voice"),className:(0,d.cn)("flex items-center gap-[10px] pr-[14px] rounded-full w-full","transition-colors duration-150","hover:bg-background-neutral-ghost-hover"),children:[(0,t.jsx)("div",{className:"flex items-center p-[2px] shrink-0",children:(0,t.jsx)(eV.default,{src:"https://cdn.openart.ai/assets/internal/uploads/image_i7pSXQ3I_72x72_1772533532354.webp",alt:"Create Voice",className:"rounded-full",width:36,height:36})}),(0,t.jsx)("span",{className:(0,d.cn)("flex-1 min-w-0 truncate text-[14px] font-medium leading-5 tracking-[-0.03px]","text-text-icon-neutral-default hover:text-text-icon-neutral-primary"),children:"Create Voice"})]}),e.map(e=>{let a=nE[e.tool]??`/${e.url??e.tool}`;return(0,t.jsxs)(tY.default,{href:(0,ed.withProjectParams)(a),onClick:()=>eg(e.title),className:(0,d.cn)("flex items-center gap-[10px] pr-[14px] rounded-full w-full","transition-colors duration-150","hover:bg-background-neutral-ghost-hover"),children:[(0,t.jsx)("div",{className:"flex items-center p-[2px] shrink-0",children:(0,t.jsx)(nv,{config:e})}),(0,t.jsx)("span",{className:(0,d.cn)("flex-1 min-w-0 truncate text-[14px] font-medium leading-5 tracking-[-0.03px]","text-text-icon-neutral-default hover:text-text-icon-neutral-primary"),children:e.title})]},e.title)})]})}function nM({item:e,appearance:a}){let n=(0,V.useRouter)(),[i,s]=(0,r.useState)(!1),o=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{o.current&&(clearTimeout(o.current),o.current=null),s(!0)},[]),c=(0,r.useCallback)(()=>{o.current=setTimeout(()=>s(!1),150)},[]),p=(0,r.useCallback)(()=>{if(window.matchMedia("(hover: hover)").matches)switch(e.dropdownType){case"director":eg(e.label),n.push((0,ed.withProjectParams)("/director"));return;case"chat":eg(e.label),n.push((0,ed.withProjectParams)("/chat"));return;case"story":{let t=nf[0];
1t&&(eg(e.label),window.open((0,ed.withProjectParams)(t.link),"_blank","noopener,noreferrer"));return}case"character":{let t=nb[0];t&&(eg(e.label),n.push((0,ed.withProjectParams)(`/${t.url}`)));return}case"world":{let t=e.tools?.[0];if(t){eg(e.label);let a=nL[t.tool]??`/${t.url??t.tool}`;n.push((0,ed.withProjectParams)(a))}return}case"audio":eg(e.label),n.push((0,ed.withProjectParams)("/audio?create-voice=true"));return;case"tools":{let t=e.tools?.[0];if(t){eg(e.label);let a=nP[t.tool]??`/${t.url??t.tool}`;n.push((0,ed.withProjectParams)(a))}return}}},[e,n]),x=(0,r.useCallback)(()=>{switch(e.dropdownType){case"director":return(0,t.jsx)(nk,{});case"chat":return(0,t.jsx)(nS,{});case"story":return(0,t.jsx)(nN,{});case"character":return(0,t.jsx)(nA,{});case"world":return(0,t.jsx)(nT,{tools:e.tools??[]});case"audio":return(0,t.jsx)(nO,{tools:e.tools??[]});case"tools":return(0,t.jsx)("div",{className:"flex flex-col gap-1",children:e.tools?.map(e=>(0,t.jsx)(nj,{config:e},e.tool))})}},[e]);return(0,t.jsxs)(eQ.Root,{open:i,onOpenChange:s,children:[(0,t.jsx)(eQ.Trigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",onMouseEnter:l,onMouseLeave:c,onClick:p,className:(0,d.cn)("relative flex shrink-0 items-center justify-center gap-2 rounded-full","general-agent"===a?"max-w-[160px] py-[7px] pl-3 pr-[14px]":"py-3 pl-4 pr-[14px]","transition-colors duration-200 cursor-pointer focus:outline-none",i?"bg-background-neutral-soft-hover":"hover:bg-background-neutral-soft-hover"),children:[(0,t.jsx)("span",{className:(0,d.cn)("flex shrink-0 items-center justify-center text-text-icon-neutral-primary","general-agent"===a&&"size-[18px] [&>svg]:size-[18px]"),children:"general-agent"===a&&e.generalAgentIcon?e.generalAgentIcon:e.icon}),(0,t.jsxs)("span",{className:(0,d.cn)("flex items-center","general-agent"===a?"gap-0.5":"gap-1"),children:[(0,t.jsx)("span",{className:(0,d.cn)("font-bricolage-grotesque text-[16px] font-semibold leading-6 tracking-[-0.12px]","text-text-icon-neutral-primary","general-agent"===a&&"text-[15px]"),children:e.label}),(0,t.jsx)(no.CaretDown,{className:(0,d.cn)("size-3 text-text-icon-neutral-primary transition-transform duration-200",i&&"rotate-180")})]}),e.badge&&(0,t.jsx)("span",{className:(0,d.cn)("absolute top-0 -right-1.5","flex items-center justify-center px-1.5 rounded-full","bg-background-brand-secondary-soft","text-[11px] font-bold italic leading-4 tracking-[0.1px]","text-text-icon-brand-secondary-default-2"),children:e.badge})]})}),(0,t.jsx)(eQ.Portal,{children:(0,t.jsx)(eQ.Content,{side:"bottom",align:"center",sideOffset:8,collisionPadding:12,avoidCollisions:"director"!==e.dropdownType&&"chat"!==e.dropdownType,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),onMouseEnter:l,onMouseLeave:c,className:(0,d.cn)("w-[280px] rounded-[20px] p-2","max-h-(--radix-popover-content-available-height)","chat"===e.dropdownType?"overflow-hidden":"overflow-y-auto","bg-background-container-overlay-base","border border-border-container-overlay-base","shadow-[0px_9px_64px_0px_rgba(0,0,0,0.45)]","animate-in fade-in-0 zoom-in-95 duration-150","z-50 outline-none"),children:x()})})]})}function nR({appearance:e="default"}){let a="general-agent"===e?ng:nh,n=nm.flatMap(e=>"story"===e.id?[a]:[e]);return(0,t.jsx)("nav",{className:(0,d.cn)("hidden","md:flex items-center justify-center max-w-full","rounded-full p-1","general-agent"===e?(0,d.cn)("bg-[rgba(214,225,255,0.12)]","inset-top-highlight relative","[--inset-top-highlight-color:rgba(211,237,248,0.11)]"):(0,d.cn)("bg-background-neutral-soft","shadow-[inset_0px_1px_0px_0px_rgba(211,237,248,0.11)]")),children:n.map(a=>(0,t.jsx)(nM,{item:a,appearance:e},a.id))})}let nU={value:"heromenu",metadata:{default:!0}},nD={agent:"What are we making today?",tools:"Your studio, your controls"},nz={duration:.2,ease:"easeOut"};function nF(){return(0,t.jsx)("h1",{className:(0,d.cn)("font-bricolage-grotesque text-center text-[35px] font-semibold","leading-10 tracking-[-0.7px] text-text-icon-neutral-primary","[text-shadow:0px_1px_1px_rgba(0,0,0,0.25)]"),children:"What are we making today?"})}function nW({mode:e}){return(0,t.jsx)("div",{className:"relative h-10 w-full text-center",children:["agent","tools"].map(a=>{let n=a===e;return(0,t.jsx)(n?"h1":"span",{"aria-hidden":!n,className:(0,d.cn)("absolute left-1/2 top-0 block w-fit -translate-x-1/2","whitespace-nowrap font-bricolage-grotesque text-[36px] font-semibold","leading-10 tracking-[-0.72px] text-text-icon-neutral-primary","[text-shadow:0px_1px_1px_rgba(0,0,0,0.25)]","transition-[opacity,translate] duration-[400ms] ease-out",n?"translate-y-0 opacity-100":"pointer-events-none -translate-y-1.5 opacity-0"),children:nD[a]},a)})})}function nV(){return(0,t.jsxs)("section",{className:"flex w-full flex-col items-center gap-10 px-4 pb-10 pt-6","data-general-agent-homepage-variant":"heromenu",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-6 pb-2",children:[(0,t.jsx)(nF,{}),(0,t.jsx)(nR,{appearance:"general-agent"})]}),(0,t.jsx)(tj,{appearance:"desktop-homepage",clickSource:A.AGENT_TOOL_CLICK_SOURCE.home})]})}function nG(){let[e,a]=(0,r.useState)("agent"),i=function(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>t(!0),[]),e}();return(0,t.jsxs)("section",{className:"flex w-full flex-col items-center gap-10 rounded-[40px] px-4 pb-10 pt-6","data-general-agent-homepage-variant":"tabs",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-5",children:[(0,t.jsx)(nW,{mode:e}),(0,t.jsx)(eW,{agentLabel:"Agents",className:"h-[42px]",mode:e,onModeChange:a})]}
1),(0,t.jsx)(t_,{children:(0,t.jsx)(n.motion.div,{animate:{opacity:1,y:0},className:"flex w-full flex-col items-center",initial:!!i&&{opacity:0,y:8},transition:nz,children:"agent"===e?(0,t.jsx)(tj,{appearance:"desktop-homepage",clickSource:A.AGENT_TOOL_CLICK_SOURCE.home}):(0,t.jsx)(tw,{})},e)})]})}function nH(){let e="tabs"===(0,nr.useAmplitudeExperiment)(ni.AMPLITUDE_EXPERIMENT_FLAGS.generalAgentHomepage,nU).value,a=(0,S.useSectionExposure)("hero");return(0,t.jsxs)("div",{ref:a,className:"isolate flex w-full flex-col items-center",children:[e?(0,t.jsx)(nG,{}):(0,t.jsx)(nV,{}),(0,t.jsx)(tS,{}),(0,t.jsx)(p.AmplitudeExperimentExposure,{fallback:nU,flagKey:ni.AMPLITUDE_EXPERIMENT_FLAGS.generalAgentHomepage})]})}var nB=e.i(914070),n$=e.i(358556);function nq({title:e,icon:a,actions:n,onAction:r,compact:i,badge:s}){return(0,t.jsx)("div",{className:(0,d.cn)("group relative flex-1",(r||n&&n.length>0)&&"cursor-pointer"),onClick:()=>{(eg(e),r)?r():n&&0!==n.length&&(0,n$.jumpToLink)(n[0].link,n[0].target)},children:(0,t.jsxs)("div",{className:(0,d.cn)("relative flex flex-col items-center justify-center","bg-[#1c1c1e] border border-white/[0.06]",i?"gap-1 p-1.5 rounded-xl":"gap-1.5 py-3 px-3 rounded-2xl"),children:[s&&(0,t.jsx)("span",{className:(0,d.cn)("absolute -top-1 right-1.5 z-10 flex items-center justify-center rounded-full px-1.5","bg-background-brand-secondary-soft","text-[11px] font-bold italic leading-4 tracking-[0.1px] text-text-icon-brand-secondary-default-2"),children:s}),a&&(0,t.jsx)("span",{className:(0,d.cn)("text-white/90",i?"[&_svg]:h-5 [&_svg]:w-5":"[&_svg]:h-6 [&_svg]:w-6"),children:a}),(0,t.jsx)("span",{className:(0,d.cn)("font-semibold text-white/90 text-center",i?"text-[13px] leading-5":"text-sm leading-5"),children:e})]})})}let nK={video:`${ns.CREATION_URL_PREFIX}/video`,image:`${ns.CREATION_URL_PREFIX}/image`,audio:`${ns.CREATION_URL_PREFIX}/audio`};function nX(){let e=function(){let{isVariantB:e}=(0,nB.useAbTestingCreationPageUrl)();return e?n$.DIRECTOR_MOBILE_HERO_FEATURES_CONFIG.map(e=>{let t=nK[e.title.toLowerCase()];return t&&e.actions?.length?{...e,actions:[{...e.actions[0],link:t}]}:e}):n$.DIRECTOR_MOBILE_HERO_FEATURES_CONFIG}();return(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-col items-center justify-center w-full","gap-4 pt-2","md:gap-[28px] md:pt-12"),children:[(0,t.jsxs)("h1",{className:(0,d.cn)("font-bricolage-grotesque","font-bold text-center","text-[34px] leading-[34px] tracking-[-0.68px]","md:text-[48px] md:leading-[44px] md:tracking-[-0.88px]","bg-clip-text text-transparent bg-[linear-gradient(98.85deg,rgba(255,255,255,0.4)_6.03%,#ffffff_48.89%,rgba(255,255,255,0.2)_103.81%)]"),children:["What would you like",(0,t.jsx)("br",{}),(0,t.jsx)("span",{children:"to create today?"}),(0,t.jsx)("span",{className:(0,d.cn)("relative inline-block align-baseline","w-[34px] h-[34px] -mb-0.5 ml-0.5","md:w-[52px] md:h-[52px] md:-mb-1 md:ml-1"),children:(0,t.jsx)(tn.CachedImage,{src:n$.HERO_POINTER_IMAGE,alt:"Hero Pointer",width:64,height:64})})]}),(0,t.jsx)("div",{className:(0,d.cn)("flex flex-col w-full gap-1.5","md:hidden"),children:(0,t.jsx)("div",{className:"grid grid-cols-3 gap-1.5 w-full",children:e.map(e=>(0,t.jsx)(nq,{...e},e.title))})}),(0,t.jsx)(nR,{})]})}var nY=e.i(928438),nZ=e.i(876037),nQ=e.i(261275),nJ=e.i(806810),n0=e.i(825543),n1=e.i(139428);let n2=(0,d.cn)("flex cursor-pointer items-center justify-center rounded-full","bg-[rgba(255,255,255,0.15)] shadow-[0px_4px_32px_0px_rgba(0,0,0,0.2)]","backdrop-blur-[2px] transition-colors duration-150 ease-out","hover:bg-[rgba(255,255,255,0.25)] active:bg-[rgba(255,255,255,0.05)]","disabled:cursor-default disabled:opacity-40 disabled:hover:bg-[rgba(255,255,255,0.15)]");function n3({direction:e="right",onClick:a,className:n,disabled:r}){let i="left"===e?tF.IconArrowLeftBold:tE.IconArrowRightBold;return(0,t.jsxs)("button",{type:"button","aria-label":"left"===e?"Previous":"Next",onClick:a,disabled:r,className:(0,d.cn)(n2,"relative p-1.5",n),children:[(0,t.jsx)(n1.GlassRim,{}),(0,t.jsx)(i,{className:"size-5 text-text-icon-neutral-primary"})]})}function n5({children:e,className:a}){return(0,t.jsx)("h2",{className:(0,d.cn)("font-bricolage-grotesque font-semibold text-text-icon-neutral-primary","text-[18px] leading-[22px] tracking-[-0.12px]","md:text-[30px] md:leading-[48px] md:tracking-[-0.6px]",a),children:e})}let n4="px-2 md:px-5",n8=["a","b","c","d"];function n6({isCurator:e,scrollRootRef:a,stickyTopOffset:n=0,ga:i}){let[s,o]=(0,r.useState)(132),l=(0,S.useSectionExposure)("inspirations"),c=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{if(c.current?.disconnect(),!e)return;let t=()=>o(e.offsetHeight);
1t(),c.current=new ResizeObserver(t),c.current.observe(e)},[]),x=s+n,{categoryList:u,activeCategoryId:m,scrollToCategory:g,isPending:h,isError:f}=(0,n0.useCategoryFeed)("home",{scrollRootRef:a,topOffsetPx:x}),b=i?"":n4;return 0===u.length?h?(0,t.jsx)(n9,{ga:i,sectionRef:l,children:(0,t.jsx)("div",{className:(0,d.cn)("grid grid-cols-2 gap-4 md:grid-cols-4",b),children:n8.map(e=>(0,t.jsx)("div",{className:"aspect-[3/4] animate-pulse rounded-[14px] bg-background-neutral-soft"},e))})}):f?(0,t.jsx)(n9,{ga:i,sectionRef:l,children:(0,t.jsx)("p",{className:(0,d.cn)("text-sm text-text-icon-neutral-secondary",b),children:"Failed to load inspirations. Please try again later."})}):null:(0,t.jsx)(nJ.FeedProjectGate,{children:(0,t.jsx)(nY.EngagementPlacementProvider,{value:"homepage",children:(0,t.jsxs)("section",{ref:l,className:"flex w-full flex-col md:max-w-[1800px]",children:[(0,t.jsxs)("div",{ref:p,className:(0,d.cn)("sticky z-20 flex flex-col gap-4","bg-background-container-page-base pt-3 pb-3 md:pb-6",b),style:{top:n},children:[i?(0,t.jsx)(tO,{title:"Inspirations"}):(0,t.jsx)(n5,{children:"Inspirations"}),i?(0,t.jsx)(n7,{categories:u,activeCategoryId:m,onSelect:g}):(0,t.jsx)(nZ.CategoryChips,{categories:u,activeCategoryId:m,onSelect:g})]}),(0,t.jsx)("div",{className:"flex w-full flex-col gap-3 md:gap-20 md:pt-6",children:(0,t.jsx)(nQ.CategorySectionList,{categoryList:u,surface:"home",seeAllBasePath:"/inspire/feed",detailBasePath:"/inspire/feed/p",ctaVariant:"standard",isCurator:e,hideMetaOnMobile:!0,sectionClassName:b,scrollMarginTop:x})})]})})})}function n7({categories:e,activeCategoryId:a,onSelect:n}){let i=(0,r.useRef)(null),[s,o]=(0,r.useState)(!1),l=(0,r.useCallback)(()=>{let e=i.current;e&&o(e.scrollLeft<e.scrollWidth-e.clientWidth-2)},[]);return(0,r.useEffect)(()=>{let e=i.current;if(!e)return;l(),e.addEventListener("scroll",l,{passive:!0});let t=new ResizeObserver(l);return t.observe(e),()=>{e.removeEventListener("scroll",l),t.disconnect()}},[l]),(0,t.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,t.jsx)(eR.ScrollFadeContainer,{axis:"x",fadeMode:"mask",ref:i,fadeSize:24,className:"min-w-0 flex-1",viewportClassName:"h-full w-full overflow-x-auto flex",children:(0,t.jsx)(nZ.CategoryChips,{categories:e,activeCategoryId:a,onSelect:n,className:"flex-nowrap overflow-x-visible pr-10"})}),s&&(0,t.jsx)(n3,{className:"absolute right-0",onClick:()=>{let e=i.current;e?.scrollBy({left:Math.max(.8*e.clientWidth,240),behavior:"smooth"})}})]})}function n9({children:e,ga:a,sectionRef:n}){return(0,t.jsxs)("section",{ref:n,className:"flex w-full flex-col md:max-w-[1800px]",children:[(0,t.jsx)("div",{className:(0,d.cn)("flex flex-col gap-4 pt-3 pb-6",a?"":n4),children:a?(0,t.jsx)(tO,{title:"Inspirations"}):(0,t.jsx)(n5,{children:"Inspirations"})}),e]})}let re=({title:e,className:a,textColor:n,hoverColor:r,hoverAnchor:i="group"})=>(0,t.jsxs)("h3",{className:(0,d.cn)("font-bricolage-grotesque","text-xl font-medium capitalize leading-6 tracking-[-0.2px]",r&&"relative",a),children:[(0,t.jsx)("span",{className:(0,d.cn)("bg-clip-text",r&&`${"group"===i?"group-hover:opacity-0 group-active:opacity-0":"peer-hover:opacity-0 peer-active:opacity-0"} transition-opacity duration-300`),style:{backgroundImage:`linear-gradient(90deg, #FFFFFF 0%, ${n} 100%)`,WebkitTextFillColor:"transparent"},children:e}),r&&(0,t.jsx)("span",{className:(0,d.cn)("absolute inset-0",`opacity-0 ${"group"===i?"group-hover:opacity-100 group-active:opacity-100":"peer-hover:opacity-100 peer-active:opacity-100"}`,"transition-opacity duration-300"),style:{color:r},children:e})]});function rt({title:e,description:a,mediaUrl:n,posterUrl:r,className:i,link:s,modelName:o,ga:l}){let c="22, 216, 102",p=()=>{(0,em.event)("latest_ai_model_engaged",{card_name:o.replaceAll("-","_"),click_source:"homepage"}),window.open((0,ed.withProjectParams)(s),"_self","noopener,noreferrer")};if(l){let s="linear-gradient(135deg, var(--color-text-icon-brand-high-contrast, #ffcbef) 0%, var(--color-text-icon-brand-primary, #fb23c2) 100%)";return(0,t.jsxs)("div",{className:(0,d.cn)("group flex w-full cursor-pointer flex-col gap-2 transition-opacity active:opacity-60",i),onClick:p,children:[(0,t.jsx)("div",{className:"relative aspect-[441/248] w-full",children:(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col rounded-[16px] transition-[padding] duration-150 ease-out group-hover:p-[6px] group-active:p-[6px]",children:[(0,t.jsx)("div",{className:"opacity-0 transition-opacity duration-150 ease-out group-hover:opacity-100 group-active:opacity-100",children:(0,t.jsx)(ty.GradientBorder,{borderRadius:"16px",width:2,gradient1:s,maskClassName:"bg-background-container-page-base",noOverlay:!0})}),(0,t.jsx)("div",{className:"relative min-h-0 w-full flex-1 overflow-hidden rounded-[16px] transition-[border-radius] duration-150 ease-out group-hover:rounded-[12px] group-active:rounded-[12px]",children:(0,t.jsx)(b.MediaPlaceholder,{url:n,posterUrl:r,alt:e,objectFit:"cover",videoPlayback:"lazy-hover",loop:!0,muted:!0}
1)})]})}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-1 py-1.5 pr-4 pl-1",children:[(0,t.jsxs)("span",{className:"relative truncate font-bricolage-grotesque text-[14px] font-semibold leading-5 md:text-[18px] md:leading-6",children:[(0,t.jsx)("span",{className:"text-text-icon-neutral-primary transition-opacity duration-150 group-hover:opacity-0 group-active:opacity-0",children:e}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 truncate bg-clip-text text-transparent opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-active:opacity-100",style:{backgroundImage:s},children:e})]}),(0,t.jsx)("p",{className:"truncate text-[12px] leading-4 tracking-[0.05px] text-text-icon-neutral-secondary md:text-[14px] md:leading-5 md:tracking-[-0.03px]",children:a})]})]})}return(0,t.jsxs)("div",{className:(0,d.cn)("group flex flex-col gap-2 rounded-[20px] overflow-hidden cursor-pointer active:opacity-[0.82] transition-opacity",i),onClick:p,children:[(0,t.jsx)("div",{className:"relative aspect-[441/248] rounded-[20px]",children:(0,t.jsxs)("div",{className:(0,d.cn)("absolute inset-0 flex flex-col items-start rounded-[20px]","group-hover:p-2 group-active:p-2","transition-all duration-200"),children:[(0,t.jsx)("div",{className:(0,d.cn)("opacity-0 group-hover:opacity-100 group-active:opacity-100","transition-opacity duration-200"),children:(0,t.jsx)(ty.GradientBorder,{borderRadius:"20px",width:1.5,gradient1:`linear-gradient(120deg, rgba(${c}, 1) 0%, rgba(255, 255, 255, 0.1) 12.5%, rgba(255, 255, 255, 0) 24.09%)`,gradient2:`linear-gradient(300deg, rgba(${c}, 1) 0%, rgba(255, 255, 255, 0.1) 12.5%, rgba(255, 255, 255, 0) 21.46%)`,maskClassName:"bg-black"})}),(0,t.jsx)("div",{className:"relative flex-1 w-full rounded-[14px] overflow-hidden",children:(0,t.jsx)(b.MediaPlaceholder,{url:n,posterUrl:r,alt:e,objectFit:"cover",videoPlayback:"lazy-hover",loop:!0,muted:!0})}),(0,t.jsx)("div",{className:(0,d.cn)("absolute top-[14.5px] right-[14.5px]","bg-white/95 rounded-full p-2.5","opacity-0 group-hover:opacity-100 group-active:opacity-100","transition-opacity duration-200"),children:(0,t.jsx)(a3.IconArrowOutwardBold,{className:"w-5 h-5 text-black"})})]})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 px-3 pt-2 pb-3",children:[(0,t.jsx)(re,{title:e,textColor:"#16d866",hoverColor:"#1dda68",className:"text-lg font-semibold leading-6"}),(0,t.jsx)("p",{className:(0,d.cn)("text-sm leading-5","text-text-icon-neutral-secondary","group-hover:text-[#adf4bb]","group-active:text-[#adf4bb]","transition-colors duration-200","truncate"),children:a})]})]})}function ra({ga:e}){let a=()=>{(0,em.event)("latest_ai_model_engaged",{card_name:"more",click_source:"homepage"}),(0,n$.jumpToLink)(`${ns.CREATION_URL_PREFIX}/video`)},n=(0,S.useSectionExposure)("latest_models");return(0,t.jsxs)("div",{ref:n,className:(0,d.cn)("flex flex-col items-center w-full",e?"gap-3":"gap-4 md:gap-6","md:max-w-[1800px]"),children:[e?(0,t.jsx)(tO,{title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"md:hidden",children:"Latest models"}),(0,t.jsx)("span",{className:"hidden md:inline",children:"Latest AI Models"})]}),action:(0,t.jsx)(tM,{onClick:a})}):(0,t.jsxs)("div",{className:(0,d.cn)("flex items-center justify-between w-full","px-2","md:px-5"),children:[(0,t.jsx)(n5,{children:"Latest AI Models"}),(0,t.jsx)("button",{className:(0,d.cn)("font-semibold text-text-icon-neutral-default text-right cursor-pointer","text-[12px] leading-4","md:text-lg"),onClick:a,children:"More â"})]}),(0,t.jsx)("div",{className:(0,d.cn)("flex gap-2 w-full overflow-x-auto scrollbar-hide","md:hidden"),children:n$.LATEST_MODELS_CONFIG.map(a=>(0,t.jsx)(rt,{title:a.title,description:a.description,mediaUrl:a.mediaUrl??"",posterUrl:a.posterUrl??"",link:a.link??"",modelName:a.modelName,className:e?"w-[285px] shrink-0":"w-[calc(100vw-32px)] shrink-0",ga:e},a.title))}),(0,t.jsx)("div",{className:(0,d.cn)("hidden w-full","md:grid md:grid-cols-4",e?"md:gap-4":"md:gap-3"),children:n$.LATEST_MODELS_CONFIG.map(a=>(0,t.jsx)(rt,{title:a.title,description:a.description,mediaUrl:a.mediaUrl??"",posterUrl:a.posterUrl??"",link:a.link??"",modelName:a.modelName,ga:e},a.title))})]})}function rn({title:e,description:a,mediaUrl:n,posterUrl:r,link:i,className:s,tool:o,badge:l}){let c="22, 216, 102";return(0,t.jsxs)("div",{className:(0,d.cn)("relative cursor-pointer rounded-[20px] overflow-hidden group transition-transform duration-200 active:opacity-88 h-full",s),onClick:()=>{te.ToolActionAnalytics.trackUseTool(o,te.EnumUseToolSource.OpenartSuite),(0,n$.jumpToLink)(i)},children:[(0,t.jsx)(ty.GradientBorder,{borderRadius:"20px",className:"group-hover:opacity-0 transition-opacity duration-300",gradient1:`linear-gradient(135deg, rgba(${c}
1, 1) 0%, rgba(255, 255, 255, 0.1) 12.15%, rgba(255, 255, 255, 0) 24.09%)`,gradient2:`linear-gradient(315deg, rgba(${c}, 1) 0%, rgba(255, 255, 255, 0.1) 10.82%, rgba(255, 255, 255, 0) 21.46%)`,maskClassName:"bg-background-container-page-base"}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{borderRadius:"20px",border:`1.5px solid rgba(${c}, 1)`,background:`rgba(${c}, 0.10)`,boxShadow:`0 -8px 24px 0 rgba(${c}, 0.45) inset, 0 2px 6px 0 rgba(${c}, 0.40) inset, 0 -4px 8px 0 rgba(${c}, 0.60) inset`}}),(0,t.jsxs)("div",{className:(0,d.cn)("relative flex items-start rounded-[20px] h-full","gap-1 p-2","md:flex-row-reverse md:gap-6 md:p-2"),children:[(0,t.jsx)(b.MediaPlaceholder,{url:n,posterUrl:r,alt:e,width:120,height:120,className:(0,d.cn)("rounded-[14px] object-cover shrink-0","w-[80px] h-[80px]","md:w-[120px] md:h-[120px]"),videoPlayback:"lazy-hover",muted:!0,loop:!0}),(0,t.jsxs)("div",{className:(0,d.cn)("relative flex-1 flex flex-col min-w-0 h-full","gap-0.5 px-3 py-2","md:gap-1"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 w-full",children:[(0,t.jsx)(re,{title:e,textColor:`rgba(${c}, 1)`,hoverColor:`rgba(${c}, 1)`,className:(0,d.cn)("normal-case overflow-hidden","text-base leading-6 whitespace-nowrap","md:text-lg md:leading-7")}),l&&(0,t.jsx)("span",{className:"shrink-0 flex items-center justify-center px-1.5 rounded-full bg-background-brand-secondary-solid text-[11px] font-bold italic leading-4 tracking-[0.1px] text-text-icon-fixed-black-default",children:l})]}),(0,t.jsx)("p",{className:(0,d.cn)("font-normal text-text-icon-neutral-secondary group-hover:text-text-icon-brand-secondary-high-contrast transition-colors duration-300 overflow-hidden line-clamp-2","text-[13px] leading-5 w-[196px]","md:text-sm md:w-full"),children:a}),(0,t.jsx)(a3.IconArrowOutwardBold,{className:"absolute bottom-[5px] mt-1 hidden opacity-0 transition-opacity duration-300 md:block md:group-hover:opacity-100",style:{color:`rgba(${c}, 1)`},width:20,height:20})]})]})]})}let rr={"Edit Image":tr.IconAiImageFill,"Image Upscale":tr.IconAiImageFill,"Create Image":tr.IconAiImageFill,"Multi View":tr.IconAiImageFill,"Camera Angle Control":tr.IconAiImageFill,"Create Music":tc.IconMusic2Fill,"Create voice-over":ts.IconAiVoiceNoteFill};function ri({ga:e}){let a=()=>{(0,n$.jumpToLink)(`${ns.CREATION_URL_PREFIX}/video`)},n=(0,S.useSectionExposure)("openart_suite");return(0,t.jsxs)("div",{ref:n,className:(0,d.cn)("flex flex-col items-center w-full",e?"gap-3":"gap-4 md:gap-6","md:max-w-[1800px]"),children:[e?(0,t.jsx)(tO,{title:"Get Started with Tools",action:(0,t.jsx)(tM,{onClick:a})}):(0,t.jsxs)("div",{className:(0,d.cn)("flex items-center justify-between w-full","px-2","md:px-5"),children:[(0,t.jsx)(n5,{children:"OpenArt Suite"}),(0,t.jsx)("button",{className:(0,d.cn)("font-semibold text-text-icon-neutral-default text-right cursor-pointer","text-[12px] leading-4","md:text-lg"),onClick:a,children:"More â"})]}),e?(0,t.jsx)("div",{className:"grid w-full grid-cols-1 gap-y-1 md:grid-cols-3 md:gap-x-6 md:gap-y-3",children:n$.OPENART_SUITE_CONFIG.slice(0,9).map(e=>(0,t.jsx)(tg,{entry:{config:e,icon:rr[e.title]??ti.IconAiVideocameraFill,isNew:"NEW"===e.badge,href:`/${e.url||e.tool}`}},e.title))}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,d.cn)("flex gap-2 w-full overflow-x-auto scrollbar-hide","md:hidden"),children:Array.from({length:2}).map((e,a)=>(0,t.jsx)("div",{className:"flex flex-col gap-2 min-w-[320px] flex-shrink-0",children:n$.OPENART_SUITE_CONFIG.slice(0,8).slice(4*a,(a+1)*4).map(e=>(0,t.jsx)(rn,{title:e.title,description:e.description,mediaUrl:e.mediaUrl,posterUrl:e.posterUrl,link:`${ns.CREATION_URL_PREFIX}/${e.url||e.tool}`,tool:e.tool,badge:e.badge},e.title))},`column-${a}`))}),(0,t.jsx)("div",{className:(0,d.cn)("hidden w-full","md:grid md:gap-3 md:overflow-hidden","md:[grid-template-columns:repeat(auto-fill,minmax(330px,1fr))]","md:auto-rows-[136px]","md:max-h-[284px]"),children:n$.OPENART_SUITE_CONFIG.map(e=>
1(0,t.jsx)(rn,{title:e.title,description:e.description,mediaUrl:e.mediaUrl,posterUrl:e.posterUrl,className:"w-full max-w-[520px] mx-auto",link:`${ns.CREATION_URL_PREFIX}/${e.url||e.tool}`,tool:e.tool,badge:e.badge},e.title))})]})]})}let rs=(0,d.cn)("size-[32px] bg-[rgba(255,255,255,0.15)] backdrop-blur-[2px]","shadow-[0px_4px_32px_0px_rgba(0,0,0,0.2)]","hover:bg-[rgba(255,255,255,0.25)] active:bg-[rgba(255,255,255,0.05)]");function ro({onMoreClick:e}={}){let a=(0,l.useOpenQuickStartDialog)(),n=(0,S.useSectionExposure)("quick_start");return(0,t.jsxs)("section",{ref:n,"data-testid":"homepage-use-cases",className:"flex w-full flex-col gap-3 md:max-w-[1800px]",children:[(0,t.jsx)(tO,{title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"md:hidden",children:"Direct Your Videos"}),(0,t.jsx)("span",{className:"hidden md:inline",children:"Direct Your Video"})]}),action:(0,t.jsx)(tM,{onClick:()=>{ne("director"),e?.()}})}),(0,t.jsx)(a1.CardCarousel,{navButtonTop:78,navButtonClassName:rs,navButtonInset:16,hideEdgeFadeOnMobile:!0,navButtonOverlay:(0,t.jsx)(n1.GlassRim,{}),children:a7.QUICK_START_CARDS.map(e=>{let{label:n,icon:r}=a9.STORY_TYPES[e.type];return(0,t.jsx)(a6.MusicVideoSmallCard,{title:n,backgroundUrl:e.backgroundUrl,videoUrl:e.videoUrl,icon:(0,t.jsx)(r,{}),onClick:()=>{var t;ne(t=e.type),a(t,"banner")},badge:e.badge,variant:"media-card",className:"w-[150px] shrink-0 md:w-[200px]"},e.id)})})]})}var rl=e.i(697177),rc=e.i(777407);let rd="/home/feed/viral-templates";function rp({isCurator:e,ga:a}){let n=(0,rc.useViralTemplates)("home"),r=(0,V.useRouter)();return(0,t.jsx)(rl.ViralTemplateSection,{templates:n.items,isPending:n.isPending,isSuccess:n.isSuccess,error:n.error,isCurator:e,surface:"home",seeAllHref:rd,hrefPrefix:"/home/templates",header:a?(0,t.jsx)(tO,{title:"Viral Seedance 2.5 Presets",action:(0,t.jsx)(tM,{onClick:()=>r.push(rd)})}):void 0})}let rx={duration:.6,ease:[.22,1,.36,1]};function ru({isMobile:e,showAgentHero:a}){return e?a?(0,t.jsx)(tN,{}):(0,t.jsx)(nX,{}):a?(0,t.jsx)(nH,{}):(0,t.jsx)(nX,{})}function rm({isCurator:e}){(0,I.useCouponIdFromUrl)();let{isMobile:f}=(0,s.useServerHints)(),b=(0,h.useIsMobile)(f),v=(0,x.useGaIsAvailable)(),[j,w]=(0,r.useState)(!1),[_,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>N(!0),[]);let y=(0,r.useRef)(null),C=(0,u.useNavigationScrollContainer)(),S=!b&&C?C:y,A=function(e,t,a){let[n,i]=(0,r.useState)(null);return(0,r.useLayoutEffect)(()=>{let n=t?.current;if(!e||!n)return;let r=()=>{let e=n.getBoundingClientRect();i({top:e.top+a,left:e.left,width:e.width,height:e.height-a})};r();let s=new ResizeObserver(r);return s.observe(n),window.addEventListener("resize",r),()=>{s.disconnect(),window.removeEventListener("resize",r)}},[e,t,a]),n}(j&&!b,C,g.TOP_NAV_HEIGHT),P=b?null:A;(0,r.useLayoutEffect)(()=>{if(b||!C?.current)return;let e=C.current;return e.scrollTop=0,()=>{e.scrollTop=0}},[b,C]);let L=(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-col items-center w-full","px-3 pb-[calc(12px+env(safe-area-inset-bottom))]",v?"gap-8":"gap-4","md:gap-14 md:px-8 min-[1600px]:px-15 md:pb-20"),children:[b&&!v&&(0,t.jsx)(m.PromoBanner,{mobile:!0}),(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-col items-center w-full gap-4 md:gap-12",v&&b&&"gap-0"),children:[(0,t.jsx)(ru,{isMobile:b,showAgentHero:v}),v?(0,t.jsx)(ro,{onMoreClick:()=>w(!0)}):(0,t.jsx)(a0,{})]}),v?(0,t.jsx)(a0,{title:"What's New?"}):(0,t.jsx)(nn,{onMoreClick:()=>w(!0)}),v&&b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tT,{}),(0,t.jsx)(ra,{ga:!0}),(0,t.jsx)(rp,{isCurator:e,ga:!0})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(rp,{isCurator:e,ga:v}),(0,t.jsx)(ri,{ga:v}),(0,t.jsx)(ra,{ga:v})]}),(0,t.jsx)(n6,{isCurator:e,scrollRootRef:S,stickyTopOffset:b?0:g.TOP_NAV_HEIGHT,ga:v})]});return(0,t.jsx)(l.QuickStartDialogProvider,{children:(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col",b&&"h-full overflow-hidden",v&&!b?"bg-transparent":"bg-background-container-page-base"),children:[(0,t.jsx)("div",{ref:y,className:(0,d.cn)("w-full",b&&"flex-1 overflow-y-auto"),children:L}),_?(0,i.createPortal)((0,t.jsx)(a.AnimatePresence,{children:j&&(0,t.jsx)(n.motion.div,{className:(0,d.cn)("fixed z-30 bg-background-container-page-base",!P&&"inset-0"),style:P??void 0,initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:rx,children:(0,t.jsx)(c.QuickStartListPage,{source:"banner",onBack:()=>w(!1)})},"quick-start-list-overlay")}),document.body):null,(0,t.jsx)(k,{}),(0,t.jsx)(p.AmplitudeExperimentExposure,{flagKey:"test-ip-bucketing-v2",fallback:{key:"control_group",value:"control_group",metadata:{default:!0}}}),(0,t.jsx)(o.PageProbe,{id:"home"})]})})}e.s(["HomePage",()=>rm],380549)}]);
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.