PageSourceSearch

https://www.veed.io/marketing-pages-ap/_next/static/chunks/pages/index-69aae7385509e7af.js

js veed.io collected 2026-09-24 08:24:12 UTC 82,236 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="877ec677-0a5d-4aed-9272-5572aa918a24",e._sentryDebugIdIdentifier="sentry-dbid-877ec677-0a5d-4aed-9272-5572aa918a24")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{198:(e,t,a)=>{"use strict";a.d(t,{w:()=>m});var r=a(4930),n=a(33234),l=a(68092),s=a(11309),o=a(92546),i=a(61396);let c=e=>{let{locales:t}=e,a=(0,i.Y)();return(0,r.jsxs)(n.W,{as:"div",className:"relative font-swissnow text-hp3-text text-sm",children:[(0,r.jsxs)(n.W.Button,{className:"grid cursor-pointer grid-flow-col items-center gap-1 text-start leading-[110%] transition",children:[(0,o.Qk)(a),(0,r.jsx)(s.Vr3,{className:"h-3 w-3"})]}),(0,r.jsx)(n.W.Items,{as:"ul",unmount:!1,className:"absolute bottom-full mb-2 grid max-h-96 grid-flow-row gap-0.5 overflow-y-auto rounded-lg bg-white p-4 text-neutral-600 shadow-xl ltr:left-0 lg:ltr:right-0 lg:ltr:left-auto rtl:right-0 lg:rtl:right-auto lg:rtl:left-0",children:t.filter(e=>e.locale.toLocaleLowerCase()!==a.toLocaleLowerCase()).map(e=>({...e,text:(0,o.Qk)(e.locale)})).sort((e,t)=>e.text.localeCompare(t.text)).map(e=>(0,r.jsx)(n.W.Item,{as:"li",className:"grid w-full",children:t=>{let{active:a}=t;return(0,r.jsx)("a",{href:e.link,className:(0,l.cx)("whitespace-nowrap rounded-md p-2 font-medium text-sm no-underline transition hover:text-black",a?"bg-neutral-100":"bg-white"),children:e.text})}},e.locale))})]})},d=[{label:"YouTube",href:"https://www.youtube.com/veedstudio"},{label:"LinkedIn",href:"https://www.linkedin.com/company/veedhq/"},{label:"X / Twitter",href:"https://twitter.com/veedstudio"},{label:"Instagram",href:"https://www.instagram.com/veedstudio/"},{label:"TikTok",href:"https://www.tiktok.com/@veedstudio"},{label:"Email",href:"mailto:[email protected]"}],u=e=>{let{href:t,className:a,children:n}=e;return(0,r.jsx)("a",{href:t,className:a,children:n})},p=e=>{var t;let{category:a}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-4 lg:gap-8",children:[(0,r.jsx)("p",{className:"font-normal text-hp3-text text-sm",children:a.label}),(0,r.jsx)("div",{className:"flex flex-col gap-4",children:null==(t=a.links)?void 0:t.map((e,t)=>{let{label:a,link:n}=e;return(0,r.jsx)(u,{href:n,className:"text-pretty text-hp3-text-subtle text-sm no-underline hover:text-hp3-text hover:no-underline",children:a},t)})})]})},x=()=>(0,r.jsxs)("div",{className:"flex flex-col gap-4 lg:gap-8",children:[(0,r.jsx)("p",{className:"font-normal text-hp3-text text-sm",children:"Connect"}),(0,r.jsx)("div",{className:"flex flex-col gap-4",children:d.map(e=>{let{label:t,href:a}=e;return(0,r.jsx)(u,{href:a,className:"text-hp3-text-subtle text-sm no-underline hover:text-hp3-text hover:no-underline",children:t},t)})})]}),m=e=>{let{footerData:t,locales:a}=e,n=t.categories[t.categories.length-3],l=t.categories[t.categories.length-2],s=t.categories[t.categories.length-1],o=t.categories.slice(0,t.categories.length-3);return(0,r.jsxs)("footer",{className:"relative mx-auto mt-12 flex max-w-[1200px] flex-col items-center justify-between px-3 font-normal",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 grid-rows-[repeat(3,fit-content(100%))] gap-x-4 gap-y-7 self-stretch text-sm lg:w-full lg:grid-cols-5 lg:grid-rows-none lg:gap-y-4",children:[o.map((e,t)=>(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)(p,{category:e})},t)),(0,r.jsxs)("div",{className:"flex flex-col gap-7",children:[n&&(0,r.jsx)(p,{category:n}),l&&(0,r.jsx)(p,{category:l})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-7",children:[s&&(0,r.jsx)(p,{category:s}),(0,r.jsx)(x,{})]})]}),(0,r.jsxs)("div",{className:"my-12 flex w-full flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[(0,r.jsx)("p",{className:"text-hp3-text-subtle text-xs",children:"\xa9 Copyright ".concat(new Date().getFullYear()," VEED")}),a&&a.length>1&&(0,r.jsx)(c,{locales:a})]})]})}},14312:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r,n=a(65162);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let s=function(e){return n.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r||(r=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M13 3 3 13M3 3l10 10"}
1)))}},18348:(e,t,a)=>{"use strict";a.d(t,{o:()=>s});var r=a(4930),n=a(65162),l=a(13949);let s=e=>{let{children:t,className:a,gap:s=24,initialPosition:o="start",infinite:i=!1}=e,c=(0,n.useRef)(null),d=(0,n.useRef)(null),[u,p]=(0,n.useState)(!1),[x,m]=(0,n.useState)(0),[h,f]=(0,n.useState)(!1),g=(0,n.useRef)(!1),b=(0,n.useRef)(!1),w=(0,n.useRef)(0),v=(0,n.useRef)(0),j=(0,n.useCallback)(e=>{let t=c.current;t&&(b.current=!0,f(!0),w.current=e.pageX-t.offsetLeft,v.current=t.scrollLeft,e.preventDefault())},[]),y=(0,n.useCallback)(e=>{if(!b.current)return;let t=c.current;if(!t)return;e.preventDefault();let a=e.pageX-t.offsetLeft-w.current;t.scrollLeft=v.current-a},[]),N=(0,n.useCallback)(()=>{b.current=!1,f(!1)},[]),k=(0,n.useCallback)(()=>{b.current=!1,f(!1)},[]);return(0,n.useEffect)(()=>{if(!i)return;let e=d.current;if(!e)return;let t=()=>{let t=e.offsetWidth;t>0&&m(t)},a=new ResizeObserver(t);return a.observe(e),t(),()=>a.disconnect()},[i,t]),(0,n.useEffect)(()=>{if(!i||0===x)return;let e=c.current;if(!e)return;let t=x+s+(x-e.clientWidth)/2;e.scrollLeft=t},[i,x,s]),(0,n.useEffect)(()=>{if(!i||0===x)return;let e=c.current;if(!e)return;let t=()=>{let t=e.scrollLeft,a=x+s;t<a?e.scrollLeft=t+a:t>=2*a&&(e.scrollLeft=t-a)};return e.addEventListener("scrollend",t),()=>e.removeEventListener("scrollend",t)},[i,x,s]),(0,n.useEffect)(()=>{if(i||"start"===o)return;let e=c.current;if(!e)return;let t=()=>{if(g.current)return;let t=e.scrollWidth,a=e.clientWidth;if(0===t)return;if(t<=a){p(!0),g.current=!0;return}let r=(t-a)/2;r>0&&e.scrollTo({left:r,behavior:"auto"}),g.current=!0},a=new ResizeObserver(()=>{t()});return a.observe(e),t(),()=>a.disconnect()},[i,o,t]),(0,r.jsx)("div",{ref:c,className:(0,l.cn)("scrollbar-hide flex snap-x snap-mandatory flex-row overflow-x-auto","cursor-grab select-none",h&&"cursor-grabbing",!i&&u&&"justify-center",a),style:{gap:"".concat(s,"px")},onMouseDown:j,onMouseMove:y,onMouseUp:N,onMouseLeave:k,children:(()=>{if(!i)return t;let e=n.Children.toArray(t);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex flex-none flex-row",style:{gap:"".concat(s,"px")},"aria-hidden":"true",children:e}),(0,r.jsx)("div",{ref:d,className:"flex flex-none flex-row",style:{gap:"".concat(s,"px")},children:e}),(0,r.jsx)("div",{className:"flex flex-none flex-row",style:{gap:"".concat(s,"px")},"aria-hidden":"true",children:e})]})})()})}},21863:(e,t,a)=>{"use strict";a.d(t,{OV:()=>r,Wc:()=>l,ft:()=>n});let r=4.6,n=2139,l="2,100+"},24452:(e,t,a)=>{"use strict";a.d(t,{y:()=>s});var r=a(4930),n=a(3904);let l=10.5*Math.PI*2/2,s=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{className:(0,n.A)(t,"inline-block animate-spin fill-none stroke-3 stroke-current stroke-round"),viewBox:"0 0 ".concat(24," ").concat(24),"data-testid":"@spinner",children:[(0,r.jsx)("circle",{opacity:".25",cx:12,cy:12,r:10.5}),(0,r.jsx)("circle",{cx:12,cy:12,r:10.5,strokeDasharray:l})]})}},36478:(e,t,a)=>{"use strict";a.d(t,{Ub:()=>n,nu:()=>o,qF:()=>s});var r=a(65162);let n=e=>{let[t,a]=(0,r.useState)(()=>!!window.matchMedia&&matchMedia(e).matches);return(0,r.useEffect)(()=>{if(!window.matchMedia)return;function t(e){a(e.matches)}let r=matchMedia(e);return r.addEventListener("change",t),a(r.matches),()=>r.removeEventListener("change",t)},[e]),t},l={sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},s=e=>n("(width >= ".concat(l[e],")")),o=e=>n("(width < ".concat(l[e],")"))},42486:(e,t,a)=>{"use strict";a.d(t,{j:()=>r});let r=(e,t,a)=>{try{let a=JSON.parse(e);return t.parse(a)}catch(e){return a}}},60068:(e,t,a)=>{"use strict";a.d(t,{k:()=>s});var r=a(4930),n=a(21863),l=a(95016);let s=e=>{let{title:t,description:a}=e,s={"@context":"https://schema.org","@type":"SoftwareApplication",url:"https://www.veed.io",name:"VEED, ".concat(t),description:a,operatingSystem:"Windows, MacOS, Chrome OS, Linux, iOS, Android",applicationCategory:"MultimediaApplication",applicationSubCategory:"Video Editor",aggregateRating:{"@type":"AggregateRating",ratingValue:n.OV,bestRating:5,ratingCount:n.ft},offers:{"@type":"Offer",price:0,priceCurrency:"USD"}};return(0,r.jsx)(l.Q,{schema:s})}},77739:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r,n=a(65162);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let s=function(e){return n.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r||(r=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8h10m0 0L9 4m4 4-4 4"})))}},89970:(e,t,a)=>{"use strict";a.r(t),a.d(t,{HomePage:()=>t_,__N_SSG:()=>tC,default:()=>tL});var r,n,l,s,o,i,c,d=a(4930),u=a(44953),p=a(38552),x=a(57942),m=a(6
15162),h=a(97371),f=a(87072),g=a(12438),b=a(14312),w=a(77739),v=a(35283),j=a(81497),y=a(42486);let N="closedBanners",k=()=>(0,y.j)(localStorage.getItem(N),v.z.array(v.z.string()),[]),C=e=>{let{text:t,ctaLink:a}=e,[r,n]=(0,m.useState)(!1),l=t.replace(/\s+/g,"-");return((0,m.useEffect)(()=>{n(!k().includes(l))},[l]),r)?(0,d.jsxs)("div",{className:"relative flex h-12 w-full items-center justify-center bg-[#121212] pr-12 font-normal lg:px-10",children:[(0,d.jsxs)("a",{href:a,onClick:(0,j.i)(a,()=>Promise.resolve()),className:"flex w-fit items-center gap-2.5 rounded-xl py-1 pr-2 pl-6",children:[(0,d.jsx)("span",{className:"font-swissnow text-[11px] text-white leading-[1.4] md:text-[15px]",children:t}),(0,d.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-white",children:(0,d.jsx)(w.A,{className:"size-[19px] -rotate-45 text-[#121212]"})})]}),(0,d.jsx)("button",{type:"button",onClick:()=>{let e=[...k(),l];localStorage.setItem(N,JSON.stringify(e)),n(!1)},className:"absolute top-1 right-1 z-10 flex size-10 items-center justify-center rounded-lg","aria-label":"Close banner",children:(0,d.jsx)(b.A,{className:"size-4 text-white"})})]}):null};var _=a(60068),L=a(198),S=a(65607),E=a(40775),M=a(94287);let V=e=>{if(null==e?void 0:e.aborted)throw new DOMException("Prompt classification aborted","AbortError")},I=(e,t)=>new Promise((a,r)=>{if(null==t?void 0:t.aborted)return void r(new DOMException("Prompt classification aborted","AbortError"));let n=setTimeout(()=>{null==t||t.removeEventListener("abort",l),a()},e),l=()=>{clearTimeout(n),r(new DOMException("Prompt classification aborted","AbortError"))};null==t||t.addEventListener("abort",l,{once:!0})}),A=async(e,t,a)=>{V(a);let{id:r}=(await e.v1AiStudioClassifyPromptAsyncPost({prompt:t})).data,n=Date.now();for(;Date.now()-n<3e4;){V(a);let t=(await e.v1AiStudioClassifyPromptAsyncIdGet(r)).data;if("completed"===t.status&&t.flow)return t.flow;if("error"===t.status)throw Error("Classify prompt job failed");await I(1e3,a)}throw Error("Classify prompt job timed out")};var P=a(10885),T=a(33123),D=a(87945),H=a(36478),R=a(21473),F=a(55548),O=a(15683),z=a(28190),U=a(24452),B=a(13949),Z=a(79318),W=a(45828);let q=async e=>{var t,a;let r,n=await e.clone().text();try{r=JSON.parse(n)}catch(e){}let l=r?(null==(a=r.errors)||null==(t=a[0])?void 0:t.message)||r.message:n;return Error("".concat(e.status," ").concat(e.url," - ").concat(l&&"undefined"!==l?l:"").trim())};var K=a(52581);let Y=async()=>{let e=(0,Z.e)(),{data:t}=await e.projects.createProject({privacy:K.CreateProjectBody.PrivacyEnum.Public});return t},X=async e=>{let{file:t,projectId:a,options:r}=e,n=t.name.split(".");try{let e=n.slice(-1).pop();if(!e)throw Error("Something went wrong");let l=await (0,Z.e)().assets.generateUploadUrl({filename:t.name,assetType:R.AssetTypeEnum.VIDEO,group:R.AssetGroupEnum.SrcVideo,plan:R.AssetPlanEnum.FREE,projectId:a,extension:e,mimeType:t.type,storage:R.AssetStorageEnum.PERMANENT,assetSubType:R.AssetSubTypeEnum.SOURCE,contentSize:t.size,...r});return{uploadUrl:l.data.url,cdnUrl:l.data.asset.cdnUrl,contentLength:l.data.contentLength,assetId:l.data.asset.id}}catch(e){throw console.log(e),e}};var G=a(79075),Q=a(44083);let J=()=>{let{getBoolean:e,loading:t}=(0,Q.h)();return{isVaiDashboardEnabled:e("enable-dashboard-veed-ai-phase-1",!1),loading:t}};var $=a(27244),ee=a(39838),et=a(66284),ea=a(50957),er=a(61333);let en=(e,t,a)=>"".concat("https://cdn-site-assets.veed.io","/").concat(t,"/").concat(t).concat(a),el=[{label:"Ad",videoSrc:en("ad_example_video_e2c28e2e8a","ad_example_video_babfc3b778",".mp4"),posterSrc:en("ad_example_thumbnail_e1d7daa44f","ad_example_thumbnail_e1d7daa44f",".webp"),prompt:"Create a 30-second advertisement for a tech product. Start with a bold hook, show the product in action, and end with a clear call to action."},{label:"Product Launch",videoSrc:en("product_launch_video_0938208d99","product_launch_video_8d41cbb45a",".mp4"),posterSrc:en("product_launch_thumbnail_28d22a286a","product_launch_thumbnail_28d22a286a",".webp"),prompt:"A high-energy launch video for an AI video generating app. Hook: Start by identifying a costly problem in the marketing industry. Solution: Reveal the product as the automated solution. CTA: Ask viewers to request a demo."},{label:"Reel",videoSrc:en("reel_example_video_cf1b9eae10","reel_example_video_97f7561a98",".mp4"),posterSrc:en("reel_example_thumbnail_eba0742aad","reel_example_thumbnail_eba0742aad",".webp"),prompt:"Create a short, eye-catching social media reel showcasing a new product launch with dynamic transitions and upbeat music."},{label:"Webinar invite",videoSrc:en("webinar_example_video_80e622dc6f","webinar_example_video_caf4cfe344",".mp4"),posterSrc:en("webinar_example_thumbnail_0c76399
16e9","webinar_example_thumbnail_0c763996e9",".webp"),prompt:"A video inviting professionals to a free industry masterclass. The tone should be urgent but professional, mentioning that spots are limited and the event is happening this Thursday."},{label:"Tutorial",videoSrc:en("tutorial_example_video_89f882c325","tutorial_example_video_d99d952ff1",".mp4"),posterSrc:en("tutorial_example_thumbnail_0b6d7f11cd","tutorial_example_thumbnail_0b6d7f11cd",".webp"),prompt:"A step-by-step educational video explaining a technical concept to a beginner audience. Break it down into three simple steps and end with a summary of the benefits."}],es="h-[418px] w-[313.5px] overflow-hidden rounded-xl bg-neutral-900 md:h-[418px] md:w-[314px]",eo=e=>{let{label:t}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-1/4 bg-gradient-to-t from-black to-transparent"}),(0,d.jsx)("span",{className:"absolute bottom-4 left-4 font-swissnow text-sm text-white leading-[140%]",children:t})]})},ei=e=>{let{example:t,isActive:a,isMuted:r,onToggleMute:n,onSelect:l,onEnded:s}=e,{t:o}=(0,ea.Bd)(),i=(0,m.useRef)(null);(0,m.useEffect)(()=>{let e=i.current;e&&(a?(e.currentTime=0,e.play().catch(()=>{})):(e.pause(),e.currentTime=0,e.load()))},[a]);let c=(0,m.useCallback)(()=>{l(t.prompt)},[t.label,t.prompt,l]),u=(0,m.useCallback)(e=>{e.stopPropagation(),n()},[n]);return(0,d.jsxs)("div",{role:"button",tabIndex:0,onClick:c,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&c()},className:"group relative flex-none cursor-pointer ".concat(es),"aria-label":"Select ".concat(t.label," example"),children:[(0,d.jsx)("video",{ref:i,src:t.videoSrc,poster:t.posterSrc,muted:r,playsInline:!0,onEnded:s,className:"absolute inset-0 h-full w-full bg-neutral-900 object-cover",style:{backgroundImage:"url(".concat(t.posterSrc,")"),backgroundSize:"cover",backgroundPosition:"center"}}),(0,d.jsx)(eo,{label:t.label}),(0,d.jsx)("button",{type:"button",onClick:u,className:"absolute top-2.5 right-2.5 z-10 flex h-8 w-8 items-center justify-center overflow-hidden rounded-lg bg-white/90 text-neutral-900 shadow-[0px_1px_2px_-1px_rgba(68,68,70,0.15),0px_2px_5px_0px_rgba(68,68,70,0.05)] transition-opacity ".concat(a?"opacity-100":"pointer-events-none opacity-0"),"aria-label":r?o("homepage.carousel.unmute",{defaultValue:"Unmute video"}):o("homepage.carousel.mute",{defaultValue:"Mute video"}),children:r?(0,d.jsx)(ec,{}):(0,d.jsx)(ed,{})})]})},ec=()=>(0,d.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("path",{d:"M11 5L6 9H2v6h4l5 4V5z"}),(0,d.jsx)("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),(0,d.jsx)("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]}),ed=()=>(0,d.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("path",{d:"M11 5L6 9H2v6h4l5 4V5z"}),(0,d.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),(0,d.jsx)("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]}),eu=(e,t,a)=>{let r=((t-e)%a+a)%a;return r>a/2?r-a:r},ep={type:"spring",stiffness:300,damping:30},ex=e=>{let{onSelectPrompt:t}=e,[a,r]=(0,m.useState)(Math.floor(el.length/2)),[n,l]=(0,m.useState)(!0),[s,o]=(0,m.useState)(!1),[i,c]=(0,m.useState)(null),u=(0,m.useRef)(null),p=(0,m.useRef)(0),x=(()=>{let[e,t]=(0,m.useState)(314);return(0,m.useEffect)(()=>{let e=()=>{t(window.innerWidth<768?313.5:314)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e})()+8,h=el.length,f=(0,m.useRef)(0),g=(0,m.useRef)(el.map(()=>(0,$.OQ)(0))),b=(0,m.useRef)((0,$.OQ)(0));(0,m.useEffect)(()=>{let e=u.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e,a=t.isIntersecting;o(a),a||l(!0)},{threshold:.3});return t.observe(e),()=>t.disconnect()},[]),(0,m.useEffect)(()=>{let e=f.current;f.current=a;let t=Math.ceil(h/2);el.forEach((r,n)=>{let l=eu(e,n,h),s=eu(a,n,h),o=s*x,i=Math.abs(s-l)>h/2,d=g.current[n];if(d)if(i){let e=el[n],a=l<0?-(t+1)*x:(t+1)*x;e&&(b.current.jump(l*x),c({posterSrc:e.posterSrc,label:e.label,startX:l*x,targetX:a}),(0,ee.i)(b.current,a,ep).then(()=>{c(null)}));let r=s>0?(t+1)*x:-(t+1)*x;d.jump(r),(0,ee.i)(d,o,ep)}
1else(0,ee.i)(d,o,ep)})},[a,x]),(0,m.useEffect)(()=>{el.forEach((e,t)=>{let r=eu(a,t,h),n=g.current[t];n&&n.jump(r*x)})},[x]);let w=(0,m.useCallback)(()=>{r(e=>e>=1?e-1:h-1)},[]),v=(0,m.useCallback)(()=>{r(e=>e<h-1?e+1:0)},[]),j=(0,m.useCallback)(e=>{var t,a;p.current=null!=(a=null==(t=e.touches[0])?void 0:t.clientX)?a:0},[]),y=(0,m.useCallback)(e=>{var t,a;let r=null!=(a=null==(t=e.changedTouches[0])?void 0:t.clientX)?a:0,n=p.current-r;Math.abs(n)>50&&(n>0?v():w())},[v,w]),N=(0,m.useCallback)(()=>{l(e=>!e)},[]);return(0,d.jsxs)("section",{ref:u,className:"relative w-full",children:[(0,d.jsx)("div",{className:"flex justify-center overflow-hidden",onTouchStart:j,onTouchEnd:y,children:(0,d.jsxs)("div",{className:"relative flex items-center justify-center",children:[el.map((e,r)=>(0,d.jsx)(et.P.div,{className:"flex-none",style:{position:0===r?"relative":"absolute",x:g.current[r]},children:(0,d.jsx)(ei,{example:e,isActive:r===a&&s,isMuted:n,onToggleMute:N,onSelect:a=>t(a,e.label),onEnded:v})},e.label)),i&&(0,d.jsx)(et.P.div,{className:"pointer-events-none absolute flex-none",style:{x:b.current},children:(0,d.jsx)("div",{className:es,style:{backgroundImage:"url(".concat(i.posterSrc,")"),backgroundSize:"cover",backgroundPosition:"center"},children:(0,d.jsx)(eo,{label:i.label})})})]})}),(0,d.jsxs)("div",{className:"mt-6 flex justify-center gap-2",children:[(0,d.jsx)("button",{type:"button",onClick:w,className:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-full bg-neutral-100 text-neutral-600 transition-colors hover:bg-neutral-200","aria-label":"Previous examples",children:(0,d.jsx)(er.irw,{className:"h-4 w-4"})}),(0,d.jsx)("button",{type:"button",onClick:v,className:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-full bg-neutral-100 text-neutral-600 transition-colors hover:bg-neutral-200","aria-label":"Next examples",children:(0,d.jsx)(er.fOo,{className:"h-4 w-4"})})]})]})},em=e=>{let{subSource:t,prompt:a,extraParams:r=[]}=e,n=r.map(e=>{let[t,a]=e;return"&".concat(t,"=").concat(a)}).join("");return"".concat("https://www.veed.io","/ai-studio?source=homepage&subSource=").concat(t).concat(n,"&prompt=").concat(encodeURIComponent(a))},eh="/home",ef=e=>{let{subSource:t,prompt:a,characterId:r,voiceId:n,imageAssetId:l,videoAssetId:s,openClonePanel:o}=e,i=new URLSearchParams({source:"homepage",subSource:t,prompt:a});if(r&&i.set("characterId",r),n&&i.set("voiceId",n),l&&i.set("imageAssetId",l),s&&i.set("videoAssetId",s),o)return i.set("panel","clone"),"".concat(eh,"?").concat(i.toString());let c=!!(l||s);return"".concat(c?"/assets/new":eh,"?").concat(i.toString())};function eg(){return(eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let eb=function(e){return m.createElement("svg",eg({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r||(r=m.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m6 12 4-4-4-4"})))};function ew(){return(ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let ev=function(e){return m.createElement("svg",ew({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n||(n=m.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M10 4 6 8l4 4"})))};function ej(){return(ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let ey=function(e){return m.createElement("svg",ej({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l||(l=m.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M10 10H5.333a2.667 2.667 0 0 0-2.666 2.667V14m8-9.333a2.667 2.667 0 1 1-5.334 0 2.667 2.667 0 0 1 5.334 0"})),s||(s=m.createElement("path",{fill:"currentColor",d:"M13.456 9.318a.486.486 0 0 0-.912 0l
1-.407 1.1a1.22 1.22 0 0 1-.719.719l-1.1.407a.486.486 0 0 0 0 .912l1.1.407c.333.124.595.386.719.719l.407 1.1a.486.486 0 0 0 .912 0l.407-1.1c.124-.333.386-.595.719-.719l1.1-.407a.486.486 0 0 0 0-.912l-1.1-.407a1.22 1.22 0 0 1-.719-.719z"})))};function eN(){return(eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let ek=function(e){return m.createElement("svg",eN({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o||(o=m.createElement("g",{clipPath:"url(#a)"},m.createElement("path",{fill:"#262525",d:"M16 8a1.13 1.13 0 0 1-.255.723c-.257.316-.7.367-1.102.433-.994.163-2.956.594-3.926 1.565-.958.959-1.39 2.885-1.558 3.89-.07.426-.128.898-.472 1.158l-.037.026a1.14 1.14 0 0 1-1.342-.026c-.344-.26-.401-.732-.472-1.158-.167-1.005-.6-2.932-1.558-3.89-.958-.96-2.885-1.392-3.89-1.559-.425-.07-.897-.128-1.157-.473A1.14 1.14 0 0 1 0 8a1.14 1.14 0 0 1 .231-.69c.26-.344.732-.401 1.158-.472 1.004-.167 2.93-.6 3.89-1.558.958-.959 1.39-2.886 1.557-3.891.07-.426.128-.898.472-1.158A1.14 1.14 0 0 1 7.998 0a1.14 1.14 0 0 1 .69.231c.343.26.4.732.471 1.158.167 1.005.6 2.932 1.559 3.89.97.97 2.93 1.402 3.925 1.565.402.066.845.117 1.103.433l.05.067c.135.192.206.421.204.656"}
1))),i||(i=m.createElement("defs",null,m.createElement("clipPath",{id:"a"},m.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))};var eC=a(3904);let e_=function(e){var t,a,r,n;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,s=arguments.length>2?arguments[2]:void 0,o=null==(a=e.aspectRatios)||null==(t=a.find(e=>"portrait"===e.aspectRatio))?void 0:t.imageUrl,i=null!=(n=null!=(r=e.thumbnailUrl)?r:o)?n:e.imageUrl,c=s?"width=".concat(l,",height=").concat(s,",fit=cover,gravity=top,format=png"):"width=".concat(l,",format=png"),d=new URL(i);return d.pathname="/cdn-cgi/image/".concat(c).concat(d.pathname),d.toString()},eL=(e,t)=>{let a=e.currentTarget;t&&a.src!==t&&(a.src=t)},eS=e=>{let{character:t,isSelected:a,onSelect:r}=e,[n,l]=(0,m.useState)(!1),[s,o]=(0,m.useState)(!1);return(0,d.jsxs)("button",{type:"button",onClick:r,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),className:(0,eC.A)("relative h-[156px] w-[117px] shrink-0 cursor-pointer rounded-xl",a?"ring-3 ring-[#96ff1a] ring-offset-0":"ring-0"),children:[(0,d.jsx)("img",{src:e_(t,400,533),alt:t.name,className:"h-full w-full rounded-xl object-cover object-top",onError:e=>eL(e,t.thumbnailUrl)}),t.previewUrl&&n&&!s&&(0,d.jsx)("video",{src:t.previewUrl,controls:!1,muted:!0,autoPlay:!0,loop:!0,playsInline:!0,disablePictureInPicture:!0,onError:()=>o(!0),className:"absolute inset-0 h-full w-full rounded-xl object-cover object-top"}),(0,d.jsx)("div",{className:"absolute right-2 bottom-2 rounded-sm bg-black/50 p-1",children:(0,d.jsx)(ek,{width:12,height:12,className:"[&_path]:fill-[#fff]"})})]})},eE=e=>{let{characters:t,selectedId:a,onSelect:r,onCloneYourself:n,cloneYourselfLabel:l,isCloneYourselfPending:s=!1}=e,o=(0,G.j)()===W.O.RTL,i=o?eb:ev,c=o?ev:eb,u=(0,m.useRef)(null),[p,x]=(0,m.useState)(o),[h,f]=(0,m.useState)(!o),g=(0,m.useCallback)(()=>{let e=u.current;if(!e)return;let t=e.scrollWidth-e.clientWidth;o?(x(e.scrollLeft>-t+1),f(e.scrollLeft<-1)):(x(e.scrollLeft>0),f(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[o]),b=(0,m.useCallback)(e=>{let t=u.current;t&&(t.scrollBy({left:"left"===e?-399:399,behavior:"smooth"}),setTimeout(g,350))},[g]);return(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("button",{type:"button",onClick:()=>b("left"),className:(0,eC.A)("absolute top-1/2 left-3 z-10 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-[#f2f1f0] shadow-[0_2px_5px_0_rgba(68,68,70,0.05),0_1px_2px_-1px_rgba(68,68,70,0.15)]",!p&&"hidden"),"aria-label":"Scroll characters back",children:(0,d.jsx)(i,{width:16,height:16,className:"text-[#444446]"})}),(0,d.jsx)("button",{type:"button",onClick:()=>b("right"),className:(0,eC.A)("absolute top-1/2 right-3 z-10 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-[#f2f1f0] shadow-[0_2px_5px_0_rgba(68,68,70,0.05),0_1px_2px_-1px_rgba(68,68,70,0.15)]",!h&&"hidden"),"aria-label":"Scroll characters forward",children:(0,d.jsx)(c,{width:16,height:16,className:"text-[#444446]"})}),(0,d.jsxs)("div",{ref:u,onScroll:g,className:"scrollbar-hide flex gap-4 overflow-x-auto px-3 py-2",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:[n&&(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("button",{type:"button",onClick:n,disabled:s,"aria-busy":s,className:"shine-border flex h-[156px] w-[117px] shrink-0 cursor-pointer flex-col items-center justify-center gap-3 rounded-xl border-2 border-[#83d206]/50 bg-white shadow-[0_0_16px_0_rgba(81,244,97,0.1)] transition hover:bg-gray-50 disabled:cursor-default","data-testid":"hero-character-panel/clone-yourself",children:[s?(0,d.jsx)(U.y,{className:"h-6 w-6"}):(0,d.jsx)(ey,{width:24,height:24,className:"text-[#444446]"}),(0,d.jsx)("span",{className:"font-medium font-swissnow text-[#79716b] text-[13px] leading-4",children:l})]})}),t.map(e=>(0,d.jsx)(eS,{character:e,isSelected:a===e.id,onSelect:()=>r(a===e.id?null:e)},e.id))]})]})},eM=(e,t)=>{t&&localStorage.setItem("anonVideoId",t),window.location.href="".concat("https://www.veed.io","/signup?postLoginUrl=").concat(encodeURIComponent(e))},eV=(e,t,a)=>{let[r,n]=(0,m.useState)(null),{mutate:l,isLoading:s,variables:o,reset:i,data:c,error:d}=(0,P.n)({mutationFn:async r=>{if(n(null),t.every(e=>!r.type.includes("".concat(e,"/"))))throw F.Ay.error("Invalid file type"),Error("Invalid file type");let l={source:"".concat(a,"-").concat(e,"-tab"),fileType:r.type,megabytes:r.size/1048576,pathname:window.location.pathname};D._F.uploadFileInitiated(l);let s="";try{let t=await Y();s=t.id,D._F.uploadFile({...(0,M.L)(),app:"marketingSite",feature:"productExperience",duration:0,format:r.type,size:r.size/1048576,projectId:s,source:l.source,subsource:"".concat(e,"Tab"),status:"initiated",trigger:"user",userId:"",workspaceId:""});let{uploadUrl:a,contentLength:o,assetId:i,cdnUrl:c}=await X({file:r,projectId:t.id,options:r.type.includes("image/")?{assetType:R.AssetTypeEnum.IMAGE,group:R.AssetGroupEnum.Image}:{assetType:R.AssetTypeEnum.VIDEO,group:R.AssetGroupEnum.SrcVideo}});return await new Promise((e,t)=>
1{let l=new XMLHttpRequest;l.upload.addEventListener("progress",e=>{if(e.lengthComputable&&e.total>0){let t=Math.round(e.loaded/e.total*100);n(t)}}),l.addEventListener("load",()=>{l.status>=200&&l.status<300?(n(100),e()):t(Error("Upload failed: ".concat(l.status)))}),l.addEventListener("error",()=>{t(Error("Upload failed"))}),l.open("PUT",a),l.setRequestHeader("Content-Type",r.type),l.setRequestHeader("Content-Length",o),l.send(r)}),D._F.uploadFileCompleted(l),D._F.uploadFile({...(0,M.L)(),app:"marketingSite",feature:"productExperience",duration:0,format:r.type,size:r.size/1048576,projectId:t.id,source:l.source,subsource:"".concat(e,"Tab"),status:"completed",trigger:"user",userId:"",workspaceId:""}),{id:i,cdnUrl:null!=c?c:"",projectId:t.id}}catch(t){throw console.error(t),F.Ay.error("Upload failed, please try again."),i(),D._F.uploadFileFailed({...l,error:t instanceof Response?await q(t):t}),D._F.uploadFile({...(0,M.L)(),app:"marketingSite",feature:"productExperience",duration:0,format:r.type,size:r.size/1048576,projectId:s,source:l.source,subsource:"".concat(e,"Tab"),status:"failed",trigger:"user",userId:"",workspaceId:""}),t}finally{n(null)}}});return{onUploadFile:l,onResetUploadFile:i,isUploadingFile:s,uploadProgress:r,uploadedFile:o,uploadedAsset:c,uploadFileError:d}},eI=e=>{let{file:t}=e,a=(0,m.useMemo)(()=>URL.createObjectURL(t),[t]);return t.type.includes("image/")?(0,d.jsx)("img",{src:a,alt:"",className:"h-full w-full rounded-lg object-cover"}):(0,d.jsx)("video",{src:a,className:"h-full w-full rounded-lg object-cover",loop:!0,controls:!1,muted:!0,playsInline:!0,autoPlay:!0,disablePictureInPicture:!0,disableRemotePlayback:!0})},eA=(0,m.forwardRef)((e,t)=>{var a;let{prompt:r,setPrompt:n,onSelectPrompt:l,characters:s,analyticsSourcePrefix:o,heroSection:i}=e,c=(0,m.useRef)(null),u=(0,m.useRef)(null),p=(0,G.j)()===W.O.RTL,{isVaiDashboardEnabled:x}=J(),{selectedCharacter:h,isOpen:f,handleButtonClick:g,handleSelect:b}=(()=>{let[e,t]=(0,m.useState)(null),[a,r]=(0,m.useState)(!0);return{selectedCharacter:e,isOpen:a,handleButtonClick:()=>{r(!a),a||D._F.clickButton({...(0,M.L)(),app:"marketingSite",buttonName:"characterButton",buttonText:"",ctaName:"",pageName:"homePage",source:"heroPrompt",subsource:"characterSelector",status:"completed",trigger:"user",userId:"",workspaceId:""})},handleSelect:(0,m.useCallback)(e=>{var a;t(e),D._F.selectAsset({app:"homepage",assetType:"character",route:null!=(a=null==e?void 0:e.name)?a:"none",pathname:window.location.pathname})},[])}})(),w=e=>{let t=c.current;t&&(t.accept=e?"".concat(e,"/*"):"image/*,video/*",t.click())},{onUploadFile:v,onResetUploadFile:j,isUploadingFile:y,uploadedFile:N,uploadedAsset:k}=eV("create",["image","video"],o),[C,_]=(0,m.useState)(!1),{mutate:L,isLoading:S,data:V}=(0,P.n)({mutationFn:async()=>{let e,t=r.trim().replace(/(\r\n|\n|\r)/gm," "),a={source:"".concat(o,"-create-tab"),prompt:t,pathname:window.location.pathname},n=(e,t,a)=>{if(x)return void eM(e,a);window.location.href=t};if(k)return(null==N?void 0:N.type.includes("image/"))?(D._F.promptCtaClicked({...a,videoKind:"imageToVideo"}),n(ef({subSource:"imageToVideo",prompt:t,imageAssetId:k.id}),em({subSource:"imageToVideo",prompt:t,extraParams:[["imageAssetId",k.id]]}),k.projectId)):(D._F.promptCtaClicked({...a,videoKind:"videoEdits"}),n(ef({subSource:"videoEdits",prompt:t,videoAssetId:k.id}),em({subSource:"videoEdits",prompt:t,extraParams:[["mode","video-edits"],["model","kwaivgi/kling-omni-pro-video-to-video"],["videoAssetId",k.id]]}),k.projectId)),!0;try{e=await A((0,Z.e)().aiStudio,t)}catch(t){console.error(t),e="social"}return h?("generative"===e&&(e="social"),D._F.promptCtaClicked({...a,videoKind:e}),n(ef({subSource:"actor-".concat(e),prompt:t,characterId:h.id,voiceId:h.voiceId}),em({subSource:"actor-".concat(e),prompt:t,extraParams:[["flow",e],["actorId",h.id],["voiceId",String(h.voiceId)]]}))):(D._F.promptCtaClicked({...a,videoKind:e}),"generative"===e)?n(ef({subSource:"textToVideo",prompt:t}),em({subSource:"textToVideo",prompt:t})):n(ef({subSource:e,prompt:t}),em({subSource:e,prompt:t,extraParams:[["flow",e]]})),!0}}),I=S||!0===V||C,T=(e=>
1{let[t,a]=(0,m.useState)(""),[r,n]=(0,m.useState)(0),[l,s]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{let o=e[r].label,i=t.length===o.length,c=window.setTimeout(()=>!l&&t.length<o.length?void a(o.slice(0,t.length+1)):!l&&i?void s(!0):t.length>0?void a(o.slice(0,t.length-1)):void(s(!1),n(t=>(t+1)%e.length)),l?30:i?750:100);return()=>{window.clearTimeout(c)}},[e,r,l,t]),t})(i.typingUseCases);return(0,d.jsx)("div",{"data-tab":"create",className:"relative z-20 flex justify-center",children:(0,d.jsx)("div",{className:"flex w-[724px] max-w-full flex-col items-center px-4",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-3 overflow-hidden rounded-3xl border border-[#f5f5f6] bg-[#fafaf9] p-1.5",children:[(0,d.jsxs)("form",{className:"group flex w-full flex-col overflow-hidden rounded-[20px] bg-white shadow-[0_8px_20px_8px_rgba(0,0,0,0.04),0_0_8px_0_rgba(0,0,0,0.04)]",onSubmit:e=>{e.preventDefault(),L()},onDragOver:e=>e.preventDefault(),onDrop:e=>{if(e.preventDefault(),I)return;let t=e.dataTransfer.files[0];t&&v(t)},children:[N&&(0,d.jsx)("div",{className:"pt-5 pr-3 pb-1.5 pl-6",children:(0,d.jsxs)("div",{className:"relative h-30 max-h-30 w-30 max-w-30 rounded-lg border border-gray-50 border-inset",children:[y?(0,d.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-white/50",children:(0,d.jsx)(U.y,{className:"h-4 w-4"})}):(0,d.jsx)("button",{type:"button",className:"absolute -top-2.5 -right-2.5 flex h-5 w-5 cursor-pointer items-center justify-center rounded-full bg-[#F5F5F6] text-[#262525] transition hover:bg-[#e8e8e9] disabled:cursor-default disabled:opacity-50",onClick:j,disabled:I,children:(0,d.jsx)(O.Mz4,{className:"h-3.5 w-3.5"})}),(0,d.jsx)(eI,{file:N})]})}),(0,d.jsx)(z.A,{ref:t,className:(0,B.cn)("scrollbar-hide resize-none overflow-y-auto border-none bg-transparent pt-5 pr-3 pb-1.5 pl-6 ring-0 focus-within:outline-none focus:outline-hidden active:outline-none",N&&"pt-3.5"),placeholder:h?"Describe talking points or paste a script":(null==N?void 0:N.type.includes("image/"))?"Describe how to turn this image into a video":(null==N?void 0:N.type.includes("video/"))?"Describe changes you want to make to this video":T,minRows:2,maxRows:12.2,value:r,onChange:e=>n(e.target.value),required:!0,onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){var t;e.preventDefault(),null==(t=u.current)||t.click()}},disabled:S}),(0,d.jsxs)("div",{className:"flex flex-row items-center justify-between px-3 pt-1.5 pb-3 font-normal text-[14px] text-gray-800 leading-[140%]",children:[(0,d.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,d.jsx)("input",{ref:c,type:"file",className:"hidden",onChange:e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];a&&v(a)}}),(0,d.jsxs)(E.W1,{as:"div",className:"relative",children:[(0,d.jsx)(E.IU,{className:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-gray-100 bg-white transition hover:bg-gray-50 disabled:cursor-default disabled:opacity-50 hover:disabled:bg-white",disabled:!!N||!!h||I,onDoubleClick:e=>{N||h||I||(e.preventDefault(),w())},children:(0,d.jsx)(O.K0m,{className:"h-4 w-4"})}),(0,d.jsxs)(E.c,{anchor:"top start",className:"z-50 flex min-w-[160px] flex-col overflow-hidden rounded-2xl border border-gray-100 bg-white py-1 [--anchor-gap:8px] focus:outline-none",style:{boxShadow:"0 8px 12px 0 rgba(68, 68, 70, 0.10), 0 2px 8px -2px rgba(68, 68, 70, 0.05), 0 1px 4px -1px rgba(68, 68, 70, 0.05)"},children:[(0,d.jsx)(E.Dr,{children:(0,d.jsxs)("button",{type:"button",className:"flex cursor-pointer items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 transition data-focus:bg-gray-50",onClick:()=>w("image"),children:[(0,d.jsx)(O.gTg,{className:"h-4 w-4 shrink-0 text-gray-500"}),i.addImageLabel]})}),(0,d.jsx)(E.Dr,{children:(0,d.jsxs)("button",{type:"button",className:"flex cursor-pointer items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 transition data-focus:bg-gray-50",onClick:()=>w("video"),children:[(0,d.jsx)(O.Kkz,{className:"h-4 w-4 shrink-0 text-gray-500"}),i.addVideoLabel]})})]})]}),(0,d.jsxs)("button",{type:"button",className:(0,B.cn)("flex h-9 cursor-pointer items-center justify-center gap-2 rounded-full border border-gray-100 bg-white px-4 py-3 text-center transition hover:bg-gray-50 disabled:cursor-default disabled:opacity-50 hover:disabled:bg-white",f&&"bg-gray-50"),disabled:!!N||I,onClick:()=>g(),children:[h?(0,d.jsx)("img",{className:"-ml-1 h-5 w-5 rounded-full bg-gray-200 object-cover object-top",src:e_(h,400,533),alt:"",onError:e=>eL(e,h.thumbnailUrl)}):(0,d.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M11.2222 13.5V12.2222C11.2222 11.5444 10.953 10.8944 10.4737 10.4152C9.99446 9.93591 9.34444 9.66667 8.66667 9.66667H3.55556C2.87778 9.66667 2.22776 9.93591 1.7485 10.4152C1.26925 10.8944 1 11.5444 1 12.2222V13.5M13.6073 2.63889C14.5346 3.4862 15.0556 4.63524 15.0556 5.83333C15.0556 7.03143 14.5346 8.18047 13.6073 9.02778M11.5417 4.23611C12.0053 4.65977 12.2658 5.23429 12.2658 5.83333C12.2658 6.43238 12.0053 7.0069 11.5417 7.43056M8.66667 4.55556C8.66667 5.96695 7.52251 7.11111 6.11111 7.11111C4.69972 7.11111 3.55556 5.96695 3.55556 4.55556C3.55556 3.14416 4.69972 2 6.11111 2C7.52251 2 8.66667 3.14416 8.66667 4.55556Z",stroke:"#444446",strokeLinecap:"round",strokeLinejoin:"round"})}
1),i.characterLabel,f?(0,d.jsx)(O.cQk,{className:"h-4 w-4"}):(0,d.jsx)(O.zKo,{className:"h-4 w-4"})]})]}),(0,d.jsx)("div",{className:"flex flex-row gap-2",children:(0,d.jsx)("button",{ref:u,type:"submit",className:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-[#96FF1A] bg-[#96FF1A] text-[#262525] transition hover:bg-[#96FF1A]/75 disabled:cursor-default disabled:opacity-50 hover:disabled:bg-bg-[#96FF1A]",disabled:y||I,children:I?(0,d.jsx)(U.y,{className:"h-4 w-4"}):p?(0,d.jsx)(O.eQE,{className:"h-4 w-4"}):(0,d.jsx)(O.r9I,{className:"h-4 w-4"})})})]})]}),f&&(0,d.jsx)(eE,{characters:s,selectedId:null!=(a=null==h?void 0:h.id)?a:null,onSelect:b,onCloneYourself:x?()=>{_(!0),D._F.selectAsset({app:"homepage",assetType:"character",route:"cloneYourself",pathname:window.location.pathname}),D._F.promptCtaClicked({source:"".concat(o,"-create-tab"),prompt:"",pathname:window.location.pathname,videoKind:"cloneYourself"}),eM(ef({subSource:"cloneYourself",prompt:"",openClonePanel:!0}))}:void 0,cloneYourselfLabel:i.characterCloneYourselfLabel||"Clone yourself",isCloneYourselfPending:C})]})})})}),eP={clean_audio:e=>{let{className:t}=e;return(0,d.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M11.75 6.47727V7.75C11.75 8.93142 11.3286 10.0644 10.5784 10.8998C9.82828 11.7352 8.81086 12.2045 7.75 12.2045V14.75M13.5 0.5V0.75M12 2H12.25M13.5 3.25V3.5M14.75 2H15M3 9.25V10.5M0.5 11.75H1.75M3 13V14.25M4.25 11.75H5.5M7.75 0.75C7.29534 0.75 6.8593 0.951136 6.53781 1.30916C6.21632 1.66718 6.03571 2.15277 6.03571 2.65909V7.75C6.03571 8.25632 6.21632 8.74191 6.53781 9.09993C6.8593 9.45795 7.29534 9.65909 7.75 9.65909C8.20465 9.65909 8.64069 9.45795 8.96218 9.09993C9.28367 8.74191 9.46428 8.25632 9.46428 7.75V2.65909C9.46428 2.15277 9.28367 1.66718 8.96218 1.30916C8.64069 0.951136 8.20465 0.75 7.75 0.75Z",stroke:"#5DAD00",strokeLinecap:"round",strokeLinejoin:"round"})})},captions:e=>{let{className:t}=e;return(0,d.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M4 11L12 11M3.54545 14H12.4545C14.0654 14 15 13.0991 15 11.6V4.4C15 2.90094 14.0654 2 12.4545 2H3.54545C1.93462 2 1 2.90094 1 4.4V11.6C1 13.0991 1.93462 14 3.54545 14Z",stroke:"#5DAD00",strokeLinecap:"round",strokeLinejoin:"round"}),(0,d.jsx)("path",{d:"M4 11L12 11M3.54545 14H12.4545C14.0654 14 15 13.0991 15 11.6V4.4C15 2.90094 14.0654 2 12.4545 2H3.54545C1.93462 2 1 2.90094 1 4.4V11.6C1 13.0991 1.93462 14 3.54545 14Z",stroke:"#5DAD00",strokeLinecap:"round",strokeLinejoin:"round"})]})},transitions:e=>{let{className:t}=e;return(0,d.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M4.00016 14.6667C2.5274 14.6667 1.3335 13.4728 1.3335 12L1.3335 4.00004C1.3335 2.52728 2.5274 1.33337 4.00016 1.33337L12.0002 1.33337C13.4729 1.33337 14.6668 2.52728 14.6668 4.00004V12C14.6668 13.4728 13.4729 14.6667 12.0002 14.6667H4.00016Z",stroke:"#5DAD00",strokeLinecap:"round"}),(0,d.jsx)("path",{d:"M3.3335 10.3639V5.63623C3.3335 5.36734 3.63549 5.20911 3.85657 5.36217L7.27096 7.72598C7.46242 7.85853 7.46242 8.14155 7.27096 8.2741L3.85657 10.6379C3.63549 10.791 3.3335 10.6327 3.3335 10.3639Z",stroke:"#5DAD00",strokeLinecap:"round"}),(0,d.jsx)("path",{d:"M12.6668 5.63623L12.6668 10.3639C12.6668 10.6327 12.3648 10.791 12.1438 10.6379L8.72937 8.2741C8.5379 8.14155 8.5379 7.85853 8.72937 7.72598L12.1438 5.36217C12.3648 5.20911 12.6668 5.36734 12.6668 5.63623Z",stroke:"#5DAD00",strokeLinecap:"round"})]})},music:e=>{let{className:t}=e;return(0,d.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M6 12.6667V4.29438C6 3.72048 6.36724 3.21096 6.9117 3.02947L12.245 1.2517C13.1084 0.963904 14 1.60653 14 2.51661V11.3334M14 11.3334C14 12.4379 13.1046 13.3334 12 13.3334C10.8954 13.3334 10 12.4379 10 11.3334C10 10.2288 10.8954 9.33337 12 9.33337C13.1046 9.33337 14 10.2288 14 11.3334ZM6 12.6667C6 13.7713 5.10457 14.6667 4 14.6667C2.89543 14.6667 2 13.7713 2 12.6667C2 11.5621 2.89543 10.6667 4 10.6667C5.10457 10.6667 6 11.5621 6 12.6667Z",stroke:"#5DAD00",strokeLinecap:"round",strokeLinejoin:"round"})})}},eT=e=>{let{analyticsSourcePrefix:t,heroSection:a}=e,{aiEditHeading:r,aiEditFeaturePills:n,aiEditChooseVideoLabel:l,aiEditStartFromScratchLabel:s}=a,o=(0,m.useRef)(null),i=(0,H.nu)("md"),{onUploadFile:c,isUploadingFile:u,uploadedFile:p,uploadedAsset:x,uploadProgress:h}=eV("create",["image","video","audio"],t),{data:f}=(0,T.I)({queryKey:[x],enabled:!!x,queryFn:async()=>{try{var e,t,a,r;let n=await (e=>new Promise(t=>{if(e.type.includes("image/"))return void t(10);let a=URL.createObjectURL(e),r=e.type.includes("audio/")?document.createElement("audio"):document.createElement("video");r.src=a,r.addEventListener("loadedmetadata",()=>{URL.revokeObjectURL(a),t(Number.isFinite(r.duration)?r.duration:10)},{once:!0}),r.addEventListener("error",()=>{URL.revokeObjectURL(a),t(10)},{once:!0})}))(p);if(p.type.includes("audio/"))await (e=x.id,t=x.projectId,(0,Z.e)().timelineItems.createTimelineItem({data:{category:K.AudioStreamCreateBodySchema.CategoryEnum.AudioStream,from:0,zIndex:1,assetId:e,metadata:{isRecording:!1,isVoiceOver:!1,playbackRate:1,trimStart:0,trimEnd:n,volume:.33,loopingEnabled:!0,fadeInDuration:0,fadeOutDuration:0}}},t));else if(p.type.includes("image/")){let e=new Image,t=URL.createObjectURL(p),a=await new Promise(a=>{e.onload=()=>{URL.revokeObjectURL(t),a(e.width/e.height||1)},e.onerror=()=>{URL.revokeObjectURL(t),a(1)},e.src=t});await ((e,t,a,r)=>{let n={width:.5,height:.5};return a>
11?n.height=.5/a:n.width=.5*a,n.width/=16/9,(0,Z.e)().timelineItems.createTimelineItem({data:{category:K.StickerCreateBodySchema.CategoryEnum.Sticker,translationX:.5,translationY:.5,name:e,zIndex:0,from:0,to:15,width:n.width,height:n.height,assetId:t,metadata:{fillList:[]}}},r)})(p.name,x.id,a,x.projectId)}else p.type.includes("video/")&&await (a=x.id,r=x.projectId,(0,Z.e)().timelineItems.createTimelineItem({data:{category:K.VideoCreateBodySchema.CategoryEnum.Video,from:0,zIndex:1,flipY:!1,flipX:!1,height:1,width:1,assetId:a,metadata:{playbackRate:1,trimStart:0,trimEnd:n,volume:1,loopingEnabled:!0},filters:{blur:0,brightness:0,contrast:0,exposure:0,noise:0,saturation:0,sharpen:0,vignette:0,opacity:100,hue:0},rotation:0,to:null,translationX:.5,translationY:.5,animation:K.AnimationEnum.None}},r));return localStorage.setItem("anonVideoId",x.projectId),p.type.includes("image/")?window.location.href="".concat("https://www.veed.io","/edit/").concat(x.projectId,"?locale=en&source=homepage&subSource=hero"):i?window.location.href="".concat("https://www.veed.io","/edit/").concat(x.projectId,"/subtitles?locale=en&source=homepage&subSource=hero"):window.location.href="".concat("https://www.veed.io","/edit/").concat(x.projectId,"?locale=en&source=homepage&subSource=hero&flow=%7B%22title%22%3A%22Enhance%20your%20video%20with%20AI%22%2C%22steps%22%3A%5B%7B%22type%22%3A%22subtitle%22%2C%22config%22%3A%7B%7D%7D%2C%7B%22type%22%3A%22navigation%22%2C%22config%22%3A%7B%22tabHref%22%3A%22%2Fai-tools%22%7D%7D%5D%7D"),!0}catch(e){return console.error(e),window.location.href="".concat("https://www.veed.io","/new?locale=en&source=homepage&subSource=hero"),!0}}}),g=u||!!x||!0===f;return(0,d.jsx)("div",{className:"px-4",children:(0,d.jsx)("div",{role:"form",className:"mx-auto flex w-full max-w-[712px] flex-col overflow-hidden rounded-4xl bg-white/90 text-center ring-1 ring-[#B6FF60] backdrop-blur-[6px]",style:{"--tw-shadow":"0 4px 8px 0 rgba(25, 25, 25, 0.03), 0 10px 20px -18px rgba(25, 25, 25, 0.05)"},onDragOver:e=>e.preventDefault(),onDrop:e=>{if(e.preventDefault(),g)return;let t=e.dataTransfer.files[0];t&&c(t)},children:(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center px-4 py-8 text-center text-[#262525]",children:[(0,d.jsx)("h2",{className:"font-medium text-[16px] leading-normal",children:r}),(0,d.jsx)("div",{className:"mt-4 flex flex-row flex-wrap items-center justify-center gap-4 font-normal text-[14px] leading-[140%]",children:g?(0,d.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,d.jsx)("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M9 1.5V6H13.5M14 7V6.82843C14 6.29799 13.7893 5.78929 13.4142 5.41421L9.58579 1.58579C9.21071 1.21071 8.70201 1 8.17157 1H4C2.89543 1 2 1.89543 2 3V13C2 14.1046 2.89543 15 4 15H7M12 15V9M12 9L9 12M12 9L15 12",stroke:"#5DAD00",strokeLinecap:"round",strokeLinejoin:"round"})}),x?"Creating your project...":h?"Uploading your ".concat(p.type.split("/")[0]," • ").concat(h,"%"):"Preparing your ".concat(p.type.split("/")[0],"...")]}):n.map(e=>{let{label:t,iconKey:a}=e,r=a?eP[a]:void 0;return(0,d.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[r&&(0,d.jsx)(r,{className:"h-3.5 w-3.5"}),t]},t)})}),(0,d.jsxs)("div",{className:"mt-8 flex w-[200px] flex-col items-center justify-center gap-2 font-normal text-[14px] leading-[140%]",children:[(0,d.jsx)("input",{ref:o,type:"file",className:"hidden",onChange:e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];a&&c(a)}}),(0,d.jsx)("button",{type:"button",className:"flex h-9 w-full cursor-pointer items-center justify-center gap-2 rounded-full bg-[#121212] px-4 py-3 text-white transition disabled:cursor-default disabled:opacity-50",disabled:g,onClick:()=>{D._F.clickButton({...(0,M.L)(),app:"marketingSite",buttonName:"chooseVideo",buttonText:"Choose video",ctaName:"chooseVideo",pageName:"homePage",source:"homepage",subsource:"productExperienceCtas",status:"completed",trigger:"user",userId:"",workspaceId:""}),(()=>{let e=o.current;e&&(e.accept="image/*,video/*,audio/*",e.click())})()},children:g?(0,d.jsx)(U.y,{className:"h-4 w-4"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M9 1.5V6H13.5M14 7V6.82843C14 6.29799 13.7893 5.78929 13.4142 5.41421L9.58579 1.58579C9.21071 1.21071 8.70201 1 8.17157 1H4C2.89543 1 2 1.89543 2 3V13C2 14.1046 2.89543 15 4 15H7M12 15V9M12 9L9 12M12 9L15 12",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),l]})}),(0,d.jsx)("button",{type:"button",className:"flex h-9 w-full cursor-pointer items-center justify-center gap-2 rounded-full bg-white px-4 py-3 text-gray-800 ring ring-neutral-100 ring-inset transition hover:bg-neutral-50",onClick:()=>{D._F.clickButton({...(0,M.L)(),app:"marketingSite",buttonName:"startFromScratch",buttonText:"Start from scratch",ctaName:"startFromScratch",pageName:"homePage",source:"homepage",subsource:"productExperienceCtas",status:"completed",trigger:"user",userId:"",workspaceId:""}),window.location.href="/new?source=homepage&subSource=hero"},children:s})]})]})})})},eD=e=>{let{className:t,presetCharacters:a,analyticsSourcePrefix:r,renderCarousel:n,heroSection:l}=e,{ctaCreateLabel:s,ctaEditLabel:o}=l,i=(0,m.useRef)(null),[c,u]=(0,m.useState)("create"),[p,x]=(0,m.useState)(""),h=(e,t)=>{D._F.selectPrompt({app:"homepage",source:"suggestion_chips",suggestion_type:t,status:"completed",trigger:"user",pathname:window.location.pathname}),x(e),u("create"),setTimeout(()=>{var e,t;null==(e=i.current)||e.focus(),null==(t=i.current)||t.scrollIntoView({behavior:"smooth",block:"center"})}
1,1)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("section",{className:(0,B.cn)("mb-18 flex flex-col items-stretch justify-center gap-4",t),children:[(0,d.jsxs)("div",{className:"mx-auto flex flex-row gap-2 px-4 md:gap-3",children:[(0,d.jsxs)("button",{type:"button",className:(0,B.cn)("flex h-9 cursor-pointer flex-row items-center justify-between gap-2 rounded-full bg-[#96FF1A] px-4 text-[#083300] text-[14px] leading-[140%] transition md:px-6","create"!==c&&"bg-[#E6FFC8] text-black/70 hover:bg-[#96FF1A]/75"),onClick:()=>u("create"),children:[(0,d.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsxs)("g",{children:[(0,d.jsx)("path",{d:"M10.6954 8.59015L8.68075 9.89049C8.66489 9.89049 8.66489 9.90831 8.64902 9.90831L6.63435 11.2086C6.53917 11.2799 6.41226 11.3333 6.28535 11.3333C5.95221 11.3333 5.66667 11.0305 5.66667 10.6386V5.34821C5.66667 5.22352 5.69839 5.11665 5.74599 5.00977C5.92048 4.68914 6.28535 4.56445 6.58676 4.76039L8.63316 6.07854L10.6637 7.39669C10.7589 7.45013 10.8382 7.5392 10.9017 7.6460
17C11.092 7.98452 10.9968 8.41203 10.6954 8.59015Z",stroke:"#083300",strokeLinecap:"round"}),(0,d.jsx)("path",{d:"M1 4C1 2.34315 2.34315 1 4 1H12C13.6569 1 15 2.34315 15 4V12C15 13.6569 13.6569 15 12 15H4C2.34315 15 1 13.6569 1 12V4Z",stroke:"#083300",strokeLinecap:"round"})]})}),(0,d.jsx)("span",{children:s})]}),(0,d.jsxs)("button",{type:"button",className:(0,B.cn)("flex h-9 cursor-pointer flex-row items-center justify-between gap-2 rounded-full bg-[#96FF1A] px-4 font-normal text-[#083300] text-[14px] leading-[140%] transition md:px-6","edit"!==c&&"bg-[#E6FFC8] text-black/70 hover:bg-[#96FF1A]/75"),onClick:()=>u("edit"),children:[(0,d.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M4.72197 5.67276C4.52671 5.4775 4.21013 5.4775 4.01486 5.67276C3.8196 5.86802 3.8196 6.1846 4.01486 6.37987L4.36842 6.02631L4.72197 5.67276ZM6.5675 8.9325C6.76276 9.12776 7.07934 9.12776 7.2746 8.9325C7.46987 8.73724 7.46987 8.42065 7.2746 8.22539L6.92105 8.57894L6.5675 8.9325ZM8.89927 9.85664C8.70383 9.66156 8.38725 9.66184 8.19216 9.85728C7.99708 10.0527 7.99736 10.3693 8.1928 10.5644L8.54603 10.2105L8.89927 9.85664ZM11.831 14.196C12.0264 14.3911 12.343 14.3908 12.5381 14.1953C12.7331 13.9999 12.7329 13.6833 12.5374 13.4882L12.1842 13.8421L11.831 14.196ZM4.01482 10.7781C3.81958 10.9734 3.81962 11.2899 4.01491 11.4852C4.2102 11.6804 4.52678 11.6804 4.72202 11.4851L4.36842 11.1316L4.01482 10.7781ZM9.2882 6.91891C9.48346 6.72365 9.48346 6.40706 9.2882 6.2118C9.09293 6.01654 8.77635 6.01654 8.58109 6.2118L8.93464 6.56535L9.2882 6.91891ZM14.3289 7.59211C14.3289 7.31596 14.1051 7.09211 13.8289 7.09211C13.5528 7.09211 13.3289 7.31596 13.3289 7.59211H13.8289H14.3289ZM13.3289 9.56579C13.3289 9.84193 13.5528 10.
10658 13.8289 10.0658C14.1051 10.0658 14.3289 9.84193 14.3289 9.56579H13.8289H13.3289ZM14.8158 9.07895C15.0919 9.07895 15.3158 8.85509 15.3158 8.57895C15.3158 8.30281 15.0919 8.07895 14.8158 8.07895V8.57895V9.07895ZM12.8421 8.07895C12.566 8.07895 12.3421 8.30281 12.3421 8.57895C12.3421 8.85509 12.566 9.07895 12.8421 9.07895V8.57895V8.07895ZM12.0263 2C12.0263 1.72386 11.8025 1.5 11.5263 1.5C11.2502 1.5 11.0263 1.72386 11.0263 2H11.5263H12.0263ZM11.0263 5.94737C11.0263 6.22351 11.2502 6.44737 11.5263 6.44737C11.8025 6.44737 12.0263 6.22351 12.0263 5.94737H11.5263H11.0263ZM13.5 4.47368C13.7761 4.47368 14 4.24983 14 3.97368C14 3.69754 13.7761 3.47368 13.5 3.47368V3.97368V4.47368ZM9.55263 3.47368C9.27649 3.47368 9.05263 3.69754 9.05263 3.97368C9.05263 4.24983 9.27649 4.47368 9.55263 4.47368V3.97368V3.47368ZM4.94737 4.63158H4.44737C4.44737 5.44547 3.78758 6.10526 2.97368 6.10526V6.60526V7.10526C4.33986 7.10526 5.44737 5.99776 5.44737 4.63158H4.94737ZM2.97368 6.60526V6.10526C2.15979 6.10526 1.5 5.44547 1.5 4.63158H1H0.5C0.5 5.99776 1.60751 7.10526 2.97368 7.10526V6.60526ZM1 4.63158H1.5C1.5 3.81769 2.15979 3.15789 2.97368 3.15789V2.65789V2.15789C1.60751 2.15789 0.5 3.2654 0.5 4.63158H1ZM2.97368 2.65789V3.15789C3.78758 3.15789 4.44737 3.81769 4.44737 4.63158H4.94737H5.44737C5.44737 3.2654 4.33986 2.15789 2.97368 2.15789V2.65789ZM4.36842 6.02631L4.01486 6.37987L6.5675 8.9325L6.92105 8.57894L7.2746 8.22539L4.72197 5.67276L4.36842 6.02631ZM8.54603 10.2105L8.1928 10.5644L11.831 14.196L12.1842 13.8421L12.5374 13.4882L8.89927 9.85664L8.54603 10.2105ZM4.94737 12.5263H4.44737C4.44737 13.3402 3.78758 14 2.97368 14V14.5V15C4.33986 15 5.44737 13.8925 5.44737 12.5263H4.94737ZM2.97368 14.5V14C2.15979 14 1.5 13.3402 1.5 12.5263H1H0.5C0.5 13.8925 1.60751 15 2.97368 15V14.5ZM1 12.5263H1.5C1.5 11.7124 2.15979 11.0526 2.97368 11.0526V10.5526V10.0526C1.60751 10.0526 0.5 11.1601 0.5 12.5263H1ZM2.97368 10.5526V11.0526C3.38077 11.0526 3.7485 11.217 4.01574 11.4843L4.36929 11.1307L4.72284 10.7772C4.27574 10.3301 3.65663 10.0526 2.97368 10.0526V10.5526ZM4.36929 11.1307L4.01574 11.4843C4.28297 11.7515 4.44737 12.1192 4.44737 12.5263H4.94737H5.44737C5.44737 11.8434 5.16994 11.2243 4.72284 10.7772L4.36929 11.1307ZM4.36929 11.1307L4.01569 10.7772L4.01482 10.7781L4.36842 11.1316L4.72202 11.4851L4.72289 11.4842L4.36929 11.1307ZM8.93464 6.56535L8.58109 6.2118L4.01573 10.7772L4.36929 11.1307L4.72284 11.4843L9.2882 6.91891L8.93464 6.56535ZM13.8289 7.59211H13.3289V8.57895H13.8289H14.3289V7.59211H13.8289ZM13.8289 8.57895H13.3289V9.56579H13.8289H14.3289V8.57895H13.8289ZM13.8289 8.57895V9.07895H14.8158V8.57895V8.07895H13.8289V8.57895ZM13.8289 8.57895V8.07895H12.8421V8.57895V9.07895H13.8289V8.57895ZM11.5263 2H11.0263V3.97368H11.5263H12.0263V2H11.5263ZM11.5263 3.97368H11.0263V5.94737H11.5263H12.0263V3.97368H11.5263ZM11.5263 3.97368V4.47368H13.5V3.97368V3.47368H11.5263V3.97368ZM11.5263 3.97368V3.47368H9.55263V3.97368V4.47368H11.5263V3.97368Z",fill:"black",fillOpacity:"0.7"})}),(0,d.jsx)("span",{children:o})]})]}),"create"===c?(0,d.jsx)(eA,{ref:i,prompt:p,setPrompt:x,onSelectPrompt:h,characters:a,analyticsSourcePrefix:r,heroSection:l}):(0,d.jsx)(eT,{analyticsSourcePrefix:r,heroSection:l})]}),n?n(h):(0,d.jsx)(ex,{onSelectPrompt:h})]})},eH=e=>{let{children:t,className:a}=e;return(0,d.jsx)("h1",{className:(0,B.cn)("font-swissnow font-normal text-balance text-[40px] leading-[88%] tracking-[-2px] md:text-[72px] md:tracking-[-3.6px]","text-hp3-text",a),children:t})},eR=e=>{let{children:t,className:a}=e;return(0,d.jsx)("h2",{className:(0,B.cn)("font-swissnow font-normal text-balance text-[34px] leading-[88%] tracking-[-1.7px] sm:text-[54px] sm:tracking-[-2.7px]","text-hp3-text",a),children:t})};var eF=a(96757),eO=a(92546),ez=a(90514);let eU=e=>{let{section:t,className:a,heading:r,logoClassName:n}=e,{text:l,logos:s}=t,{locale:o="en"}=(0,eF.useRouter)(),i=(0,eO.u6)(o);if(!(null==s?void 0:s.length))return null;let c=s.map((e,t)=>e.image&&(0,d.jsx)("div",{className:"shrink-0",style:{"--logo-width":"".concat(e.width,"px"),"--logo-height":"".concat(e.height,"px"),"--logo-width-mobile":"".concat(+e.width,"px"),"--logo-height-mobile":"".concat(+e.height,"px")},children:(0,d.jsx)(ez._V,{...e.image,width:e.width,height:e.height,loading:"eager",className:(0,B.cn)("h-[var(--logo-height-mobile)] w-[var(--logo-width-mobile)] sm:h-[var(--logo-height)] sm:w-[var(--logo-width)]",n),quality:100})},t));return(0,d.jsxs)("section",{id:"logos-section","data-testid":"logos-section",className:(0,B.cn)("relative",a),children:[r||l&&(0,d.jsx)("p",{className:"mx-auto mb-6 max-w-72 pt-4 text-center font-normal font-swissnow text-neutral-900 text-xl leading-6 tracking-[-0.015em] md:max-w-[416px] md:text-balance md:pt-0 md:pb-4 lg:max-w-64",children:l}),(0,d.jsxs)("div",{className:"relative overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex w-max items-center",children:[(0,d.jsx)("div",{className:(0,B.cn)("flex w-max shrink-0 items-center gap-16 pr-16 sm:gap-24 sm:pr-24",i===W.O.RTL?"animate-marquee-reverse":"animate-marquee"),style:{"--marquee-duration":"".concat(3*s.length,"s")},children:c}
1),(0,d.jsx)("div",{"aria-hidden":!0,className:(0,B.cn)("flex w-max shrink-0 items-center gap-16 pr-16 sm:gap-24 sm:pr-24",i===W.O.RTL?"animate-marquee-reverse":"animate-marquee"),style:{"--marquee-duration":"".concat(3*s.length,"s")},children:c})]}),(0,d.jsx)("div",{className:"pointer-events-none absolute top-0 bottom-0 left-0 z-10 w-[100px] bg-linear-to-r from-white to-transparent md:w-[177px]"}),(0,d.jsx)("div",{className:"pointer-events-none absolute top-0 right-0 bottom-0 z-10 w-[100px] bg-linear-to-l from-white to-transparent md:w-[177px]"})]})]})},eB=e=>{let{label:t}=e;return(0,d.jsx)("span",{className:"inline-flex items-center justify-center gap-1 rounded-[4px] bg-black/40 px-2 py-2 font-medium font-swissnow text-[12px] text-white leading-none backdrop-blur-[12px]",children:t})};function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let eW=function(e){return m.createElement("svg",eZ({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),c||(c=m.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M13 8H3m0 0 4 4M3 8l4-4"})))},eq=()=>{let e=(0,G.j)()===W.O.RTL?eW:w.A;return(0,d.jsx)("span",{"aria-hidden":"true",className:"inline-flex size-8 items-center justify-center rounded-lg bg-[#96ff1a]",children:(0,d.jsx)(e,{className:"size-4 text-[#121212]"})})},eK=e=>{let{badge:t,src:a,href:r,title:n,description:l,className:s=""}=e;return(0,d.jsxs)("a",{href:r,"aria-label":n,className:"relative flex flex-col items-start justify-end overflow-hidden rounded-2xl bg-[#1a1a1a] ".concat(s),children:[(0,d.jsx)(ez._V,{src:a,alt:n,width:932,he
1ight:807,className:"absolute inset-0 h-full w-full object-cover object-top"}),(0,d.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent"}),(0,d.jsx)("div",{className:"absolute top-4 left-4 z-10",children:(0,d.jsx)(eB,{label:t})}),(0,d.jsxs)("div",{className:"relative flex flex-col items-start gap-2.5 p-6",children:[(0,d.jsx)(eq,{}),(0,d.jsxs)("p",{className:"font-swissnow text-[14px] text-white leading-[1.3] md:text-[16px]",children:[(0,d.jsx)("span",{className:"font-medium",children:n})," ",(0,d.jsx)("span",{className:"text-white/70",children:l})]})]})]})};var eY=a(43109),eX=a(21751);let eG=e=>{let{isMuted:t,onToggle:a}=e;return(0,d.jsx)("button",{type:"button",onClick:a,className:"absolute top-4 right-4 z-20 flex size-8 cursor-pointer items-center justify-center rounded-lg bg-white/90 text-neutral-900 shadow-[0px_1px_2px_-1px_rgba(68,68,70,0.15),0px_2px_5px_0px_rgba(68,68,70,0.05)]","aria-label":t?"Unmute video":"Mute video",children:t?(0,d.jsx)(eY.A,{}):(0,d.jsx)(eX.A,{})})},eQ=e=>{let{badge:t,src:a,webmSrc:r,poster:n,href:l,title:s,description:o,className:i=""}=e,c=(0,m.useRef)(null),[u,p]=(0,m.useState)(!0),[x,h]=(0,m.useState)(!1),f=(0,m.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),p(e=>{let t=!e;return c.current&&(c.current.muted=t),t})},[]);(0,m.useEffect)(()=>{let e=c.current;if(!e)return;let t=new IntersectionObserver(t=>{let[a]=t;(null==a?void 0:a.isIntersecting)?(h(!0),e.play().catch(()=>{})):e.pause()},{threshold:.25});return t.observe(e),()=>t.disconnect()},[]);let g=n?(0,ez.wG)({src:n,width:932,quality:75}):void 0;return(0,d.jsxs)("a",{href:l,"aria-label":s,className:"relative flex flex-col items-start justify-end overflow-hidden rounded-2xl bg-[#1a1a1a] ".concat(i),children:[(0,d.jsxs)("video",{ref:c,className:"absolute inset-0 h-full w-full object-cover object-top",poster:g,preload:"none",muted:!0,loop:!0,playsInline:!0,children:[x&&r&&(0,d.jsx)("source",{src:r,type:"video/webm"}),x&&(0,d.jsx)("source",{src:a,type:"video/mp4"})]}),(0,d.jsx)(eG,{isMuted:u,onToggle:f}),(0,d.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/60 via-trans
1parent to-transparent"}),(0,d.jsx)("div",{className:"absolute top-4 left-4 z-10",children:(0,d.jsx)(eB,{label:t})}),(0,d.jsxs)("div",{className:"relative flex flex-col items-start gap-2.5 p-6",children:[(0,d.jsx)(eq,{}),(0,d.jsxs)("p",{className:"font-swissnow text-[14px] text-white leading-[1.3] md:text-[16px]",children:[(0,d.jsx)("span",{className:"font-medium",children:s})," ",(0,d.jsx)("span",{className:"text-white/70",children:o})]})]})]})},eJ=(e,t)=>"".concat("https://cdn-site-assets.veed.io","/").concat(e,"/").concat(e).concat(t),e$=["row-span-2 min-h-[800px]","min-h-[380px]"],e0=["aspect-[9/16] max-h-[648px]","aspect-[16/10]"],e1="https://cdn-site-assets.veed.io",e2={badge:"Generate",kind:"video",src:"".concat(e1,"/bento_generate_dektop_956eb34af4/bento_generate_dektop_956eb34af4.mp4"),webmSrc:"".concat(e1,"/bento_generate_dektop_956eb34af4_683868d482/bento_generate_dektop_956eb34af4_683868d482.webm"),poster:"".concat(e1,"/generate_poster_b6144e5421/generate_poster_b6144e5421.webp"),href:"/tools/ai-video",title:"Generate videos in minutes.",description:"Turn any idea into a video worth posting — no camera needed"},e4={...e2,src:"".concat(e1,"/bento_generate_mobile_54b28e20ec/bento_generate_mobile_54b28e20ec.mp4"),webmSrc:"".concat(e1,"/bento_generate_mobile_54b28e20ec_f187e15f6a/bento_generate_mobile_54b28e20ec_f187e15f6a.webm"),poster:"".concat(e1,"/generate_poster_mobile_5923d7f6ff/generate_poster_mobile_5923d7f6ff.webp")},e6={badge:"Subtitles",kind:"image",src:"".concat(e1,"/bento_subtitles_a74f84eb52/bento_subtitles_a74f84eb52.webp"),href:"/tools/auto-subtitle-generator-online",title:"Keep people watching.",description:"The best subtitles on the internet — designed to make your videos unskippable."},e5={badge:"Brand",kind:"image",src:"".concat(e1,"/bento_brand_b3149f7ac1/bento_brand_b3149f7ac1.webp"),href:"/ai/brand-kit",title:"Make every video look like your brand.",description:"Your colours, fonts, logos and voice — applied instantly, every time."},e3=[e2,e6,e5],e8=[e4,e6,e5],e7=(e,t,a)=>0===e.length?t:e.map((e,r)=>((e,t,a)=>{let r={badge:t.badge,href:t.href,title:t.title,description:t.description},n=((e,t)=>{let a=t&&e.mobileMedia?e.mobileMedia:e.media;if(!a)return null;if("video"===e.mediaType){let r=t&&e.mobilePoster?e.mobilePoster:e.poster;return{kind:"video",src:eJ(a.hash,a.ext),poster:r?eJ(r.hash,r.ext):void 0}}return{kind:"image",src:eJ(a.hash,a.ext)}})(t,a);return n?{...n,...r}:e?{...e,...r}:null})(t[r],e,a)).filter(e=>null!==e),e9=e=>"video"===e.kind?(0,d.jsx)(eQ,{...e}):(0,d.jsx)(eK,{...e}),te=e=>{let{brandUseCasesSection:t}=e,{headingPart1:a,headingEmphasis:r,headingPart2:n,cards:l}=t,s=e7(l,e3,!1),o=e7(l,e8,!0);return(0,d.jsx)("section",{id:"brand-use-cases-section",className:"bg-[#121212] px-4 py-20 sm:px-8 md:px-[120px] md:py-[100px]",children:(0,d.jsxs)("div",{className:"mx-auto flex max-w-[1200px] flex-col items-center gap-10 md:gap-12",children:[(0,d.jsxs)(eR,{className:"max-w-[320px] text-center text-white sm:max-w-[580px]",children:[a," ",(0,d.jsx)("span",{className:"font-editorial",children:r})," ",n]}),(0,d.jsx)("div",{className:"hidden w-full grid-cols-2 gap-6 md:grid",children:s.map((e,t)=>{var a;return(0,d.jsx)(e9,{...e,className:null!=(a=e$[t])?a:"min-h-[380px]"},e.href)})}),(0,d.jsx)("div",{className:"flex w-full flex-col gap-4 md:hidden",children:o.map((e,t)=>{var a;return(0,d.jsx)(e9,{...e,className:null!=(a=e0[t])?a:"aspect-[16/10]"},e.href)})})]})})},tt=e=>{let{label:t,href:a}=e,r=(0,G.j)()===W.O.RTL?eW:w.A;return(0,d.jsxs)("a",{href:a,className:"inline-flex items-center gap-1.5 rounded-[12px] bg-[#f2f1f0] p-2 md:gap-[9px] md:p-3.5",children:[(0,d.jsx)("span",{className:"font-swissnow text-[#4D4D51] text-[14px] leading-[1.2] tracking-[-0.42px] md:text-[16px] md:leading-none md:tracking-[-0.08px]",children:t}),(0,d.jsx)(r,{className:"size-3.5 text-[#4D4D51] md:size-5"})]})},ta=/^(.*?)([^\s::、,.!?]+)([\s::、,.!?]*)$/,tr=e=>{let{fontClass:t="font-alpina",discoverMoreSection:a}=e,{eyebrow:r,heading:n,desktopLinks:l,mobileLinks:s}=a;return(0,d.jsx)("section",{id:"discover-more-section",className:"mt-24",children:(0,d.jsxs)("div",{className:"mx-auto flex w-full max-w-[1200px] flex-col items-center gap-10 px-6 md:px-10 xl:px-0",children:[(0,d.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,d.jsx)("p",{className:"font-semibold font-swissnow text-[#121212] text-xs uppercase leading-[21.6px]",children:r}),(0,d.jsx)("h2",{className:"text-center font-swissnow text-[#121212] text-[32px] leading-[0.9] tracking-[-1.28px] md:text-[44px] md:tracking-[-1.76px]",children:((e,t)=>{var a;let[,r,n,l]=null!=(a=e.trim().match(ta))?a:[];return r?(0,d.jsxs)(d.Fragment,{children:[r,(0,d.jsx)("span",{className:t,children:n}),l]}):e})(n,t)})]}),(0,d.jsx)("div",{className:"hidden flex-wrap gap-x-3 gap-y-4 md:flex",children:l.map(e=>(0,d.jsx)(tt,{label:e.label,href:e.href},e.href))}),(0,d.jsx)("div",{className:"flex flex-wrap gap-x-3 gap-y-4 md:hidden",children:s.map(e=>(0,d.jsx)(tt,{label:e.label,href:e.href},e.href))})]})})},tn=(e,t,a)=>"".concat("https://cdn-site-assets.veed.io","/").concat(t,"/").concat(t).concat(a),tl=tn("editor_promo_video_e839bde768","editor_promo_video_6febbb1dd3",".mp4"),ts=tn("editor_promo_thumbnail_c0acc9c852","editor_promo_thumbnail_c0acc9c852",".webp"),to=e=>{let{fontClass:t="font-alpina",editorPromoSection:a}=e,{headingPart1:r,headingEmphasis:n,headingPart2:l,video:s,poster:o}=a,i=s?eJ(s.hash,s.ext):tl,c=o?eJ(o.hash,o.ext):ts;return(0,d.jsxs)("section",{id:"editor-promo-section",className:"relative w-full overflow-y-clip bg-white px-[11
1px] pt-[80px] pb-[80px] md:px-6 md:pt-[100px] md:pb-24 xl:px-4 min-[1440px]:px-0",children:[(0,d.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8.8' height='8.8'%3E%3Ccircle cx='1' cy='1' r='1' fill='black' fill-opacity='0.1'/%3E%3C/svg%3E\")",backgroundRepeat:"repeat"}}),(0,d.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-[700px]",style:{background:"radial-gradient(ellipse 100% 70% at 50% 100%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0.3) 65%, transparent 100%)"}}),(0,d.jsxs)("div",{className:"relative mx-auto flex max-w-[1920px] flex-col items-center xl:max-w-[1408px]",children:[(0,d.jsxs)("h2",{className:"mx-auto max-w-[800px] text-pretty text-center font-swissnow text-[#262525] text-[32px] leading-none tracking-[-1.6px] md:text-[40px] md:tracking-[-2px]",children:[r," ",(0,d.jsx)("span",{className:t,children:n})," ",l]}),(0,d.jsx)("div",{className:"relative mt-8 w-full max-w-[845px]",children:(0,d.jsx)("video",{src:i,poster:c,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-auto w-full rounded-xl shadow-md md:rounded-2xl",style:{backgroundImage:"url(".concat(c,")"),backgroundSize:"cover",backgroundPosition:"center"}})})]})]})};var ti=a(38331);let tc=e=>{let{label:t}=e;return(0,d.jsx)("div",{className:"absolute top-4 left-4 z-10 flex h-[30px] items-center justify-center rounded-[4px] border border-white/[0.08] bg-[rgba(12,10,9,0.3)] px-2 backdrop-blur-[4px]",children:(0,d.jsx)("span",{className:"font-medium font-swissnow text-[11px] text-white leading-none tracking-[-0.0275px]",children:t})})},td=e=>{let{visible:t,onClick:a,ctaText:r}=e,n=(0,m.useCallback)(e=>{e.stopPropagation(),a()},[a]);return(0,d.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 flex flex-col items-start px-4 pt-[70px] pb-4 transition-opacity ".concat(t?"pointer-events-auto opacity-100":"opacity-0"),style:{backgroundImage:"linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,1) 100%)"},children:(0,d.jsx)("button",{type:"button",onClick:n,tabIndex:t?0:-1,className:"flex h-8 cursor-pointer items-center justify-center rounded-[58px] bg-[#96ff1a] px-3 py-2",children:(0,d.jsx)("span",{className:"whitespace-nowrap font-swissnow text-[#262525] text-[13px] leading-[1.4]",children:r})})})},tu=e=>{let{example:t,ctaText:a,hideGetPromptCta:r,isActive:n,isMuted:l,onToggleMute:s,onSelect:o,onEnded:i,onDurationLoad:c,cardWidth:u,cardHeight:p}=e,{t:x}=(0,ea.Bd)(),h=(0,m.useRef)(null);(0,m.useEffect)(()=>{let e,t=h.current;if(!t)return;let a=!1;if(n){var r;t.currentTime=0,null==(r=t.play())||r.catch(()=>{a||(e=setTimeout(()=>{a||t.play().catch(()=>{})},100))})}else t.pause(),t.currentTime=0,t.load();return()=>{a=!0,clearTimeout(e)}},[n]);let f=(0,m.useCallback)(()=>{let e=h.current;e&&Number.isFinite(e.duration)&&c(1e3*e.duration)},[c]),g=(0,m.useCallback)(e=>{e.stopPropagation(),s()},[s]);return(0,d.jsxs)("div",{role:"button",tabIndex:0,onClick:o,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&o()},className:"group relative flex-none cursor-pointer ".concat("overflow-hidden rounded-2xl bg-neutral-900"),style:{width:u,height:p},"aria-label":"Select ".concat(t.label," example"),children:[(0,d.jsxs)("video",{ref:h,poster:t.posterSrc.url,muted:l,playsInline:!0,preload:"metadata",onEnded:i,onLoadedMetadata:f,className:"absolute inset-0 h-full w-full rounded-2xl bg-neutral-900 object-cover",style:{backgroundImage:"url(".concat(t.posterSrc.url,")"),backgroundSize:"cover",backgroundPosition:"center"},children:[(0,d.jsx)("source",{src:t.webm.url,type:"video/webm"}),(0,d.jsx)("source",{src:t.mp4.url,type:"video/mp4"})]}),(0,d.jsx)(tc,{label:t.label}),!r&&(0,d.jsx)(td,{visible:n,onClick:o,ctaText:a}),(0,d.jsx)("button",{type:"button",onClick:g,tabIndex:n?0:-1,className:"absolute top-2.5 right-2.5 z-10 flex h-8 w-8 cursor-pointer items-center justify-center overflow-hidden rounded-lg bg-white/90 text-neutral-900 shadow-[0px_1px_2px_-1px_rgba(68,68,70,0.15),0px_2px_5px_0px_rgba(68,68,70,0.05)] transition-opacity ".concat(n?"opacity-100":"pointer-events-none opacity-0"),"aria-label":l?x("homepage.carousel.unmute",{defaultValue:"Unmute video"}):x("homepage.carousel.mute",{defaultValue:"Mute video"}),children:l?(0,d.jsx)(eY.A,{}):(0,d.jsx)(eX.A,{})})]})},tp=e=>{let{onSelectPrompt:t,examples:a,ctaText:r}=e,{t:n}=(0,ea.Bd)(),{isVaiDashboardEnabled:l}=J(),s=(0,m.useCallback)(e=>{let r=a[e];r&&t(r.prompt,r.label)},[a,t]);return(0,d.jsx)(ti.TJ,{onCardSelect:s,showDurationProgress:!0,prevLabel:n("homepage.carousel.previous",{defaultValue:"Previous example"}),nextLabel:n("homepage.carousel.next",{defaultValue:"Next example"}),cards:a.map(e=>({key:e.label,render:t=>(0,d.jsx)(tu,{...t,example:e,ctaText:r,hideGetPromptCta:l})}))})},tx=e=>{var t;return null!=(t=e.url)?t:"".concat("https://cdn-site-assets.veed.io","/").concat(e.hash,"/").concat(e.hash).concat(e.ext)},tm={width:181,height:209},th={width:156,height:180},tf=e=>{let{g2Section:t}=e,a=tx(t.bgMobile),r=tx(t.bgDesktop);return(0,d.jsx)("section",{className:"mx-auto mt-24 w-full max-w-[1200px] px-2 md:px-6 lg:max-w-[845px] lg:px-0 xl:max-w-[1200px]",children:(0,d.jsxs)("div",{className:"relative flex flex-col items-center gap-[31px] overflow-hidden rounded-2xl bg-[#121212] py-10",children:[(0,d.jsx)("img",{src:a,alt:"",className:"pointer-events-none absolute bottom-0 left-0 w-full select-none object-cover md:hidden"}),(0,d.jsx)("img",{src:r,alt:"",className:"pointer-events-none absolute bottom-0 left-0 hidden w-full select-none object-cover md:block"}),(0,d.jsx)("p",{className:"relative text-center font-swissnow text-sm text-white leading-none tracking-[-0.08px] md:text-base",children:t.text}),(0,d.jsx)("div",{className:"relative flex items-center gap-[15px] md:gap-6",children:t.badges.map(e=>{let{width:t,height:a}=e.featured?tm:th;return(0,d.jsx)("img",{src:tx(e.image),alt:e.image.alt,width:t,height:a,className:"h-auto ".concat(e.featured?"w-[114px]":"w-[99px]"," md:w-auto"),style:{maxWidth:t}},e.image.hash)})})]})})};var tg=a(6550);let tb=e=>{let{count:t,label:a}=e;return(0,d.jsxs)("div",{className:"flex flex-row items-center justify-center gap-2.5 font-heading text-black/50 text-sm",children:[(0,d.jsx)(tg.S_O,{className:"h-4"}),(0,d.jsx)("span",{className:"font-bold tabular-nums",children:t}),(0,d.jsx)("span",{children:a})]})};
1var tw=a(18348),tv=a(85117);let tj=(e,t,a,r)=>r+e*(t+a)+t/2,ty=e=>{let{testimonial:t}=e;return(0,d.jsxs)("div",{className:"flex h-[440px] flex-col justify-between rounded-2xl bg-[#d6ffa6] p-6",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("p",{className:"font-editorial text-[#0c0a09] text-[40px] leading-[0.96] tracking-[-1.2px]",children:"“"}),(0,d.jsx)("p",{className:"font-medium font-swissnow text-[#0c0a09] text-base leading-[1.36] tracking-[-0.08px]",children:t.quote})]}),(0,d.jsxs)("div",{className:"relative h-[236px] w-full overflow-hidden rounded-[10px]",children:[(0,d.jsx)("img",{src:t.image,alt:t.name,className:"h-full w-full object-cover object-top"}),(0,d.jsxs)("div",{className:"absolute bottom-0 left-0 flex flex-col gap-2 rounded-[10px] bg-white p-4",children:[(0,d.jsx)("p",{className:"font-medium font-swissnow text-[#121212] text-[13px] leading-[1.36]",children:t.name}),(0,d.jsxs)("p",{className:"font-swissnow text-[#797676] text-[13px] leading-[1.36] tracking-[0.13px]",children:[t.title,",",(0,d.jsx)("br",{}),t.company]})]})]})]})},tN=e=>{let{testimonials:t}=e,a=t.map(e=>({quote:e.testimonialText,name:e.name,title:e.title,company:e.company,image:(e=>{var t;return null!=(t=e.url)?t:"".concat("https://cdn-site-assets.veed.io","/").concat(e.hash,"/").concat(e.hash).concat(e.ext)})(e.image)})),{scrollRef:r,activeIndex:n,handleScroll:l,handlePrev:s,handleNext:o}=(e=>{let{totalItems:t,cardWidth:a,gap:r,padding:n,autoplayInterval:l}=e,s=(0,m.useRef)(null),o=(0,m.useRef)(!1),[i,c]=(0,m.useState)(0),d=(0,G.j)()===W.O.RTL;(0,m.useEffect)(()=>{let e=s.current;if(!e)return;e.scrollLeft=0;let t=requestAnimationFrame(()=>{e.scrollLeft=0});return()=>cancelAnimationFrame(t)},[]),(0,m.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>{o.current=!1};return e.addEventListener("scrollend",t),()=>e.removeEventListener("scrollend",t)},[]);let u=(0,m.useCallback)(()=>{if(!s.current||o.current)return;let{scrollLeft:e,clientWidth:l,scrollWidth:i}=s.current,u=((e,t)=>t?-e:e)(e,d);if(i-l-u<1)return void c(t-1);if(u<1)return void c(0);let p=u+l/2,x=0,m=1/0;for(let e=0;e<t;e++){let t=Math.abs(tj(e,a,r,n)-p);t<m&&(m=t,x=e)}c(x)},[t,a,r,n,d]),p=(0,m.useCallback)(e=>{let l;if(!s.current)return;let{scrollWidth:i,clientWidth:u}=s.current,p=i-u;l=e<=0?0:e>=t-1?p:Math.max(0,Math.min(l=tj(e,a,r,n)-u/2,p)),o.current=!0,c(e),s.current.scrollTo({left:((e,t)=>t?-e:e)(l,d),behavior:"smooth"})},[t,a,r,n,d]),x=(0,m.useCallback)(()=>{p(i<=0?t-1:i-1)},[i,t,p]),h=(0,m.useCallback)(()=>{p(i>=t-1?0:i+1)},[i,t,p]);return(0,m.useEffect)(()=>{if(!l)return;let e=setInterval(()=>{p(i>=t-1?0:i+1)},l);return()=>clearInterval(e)},[i,t,l,p]),{scrollRef:s,activeIndex:i,handleScroll:u,handlePrev:x,handleNext:h}})({totalItems:a.length,cardWidth:294,gap:8,padding:8,autoplayInterval:5e3}),i=(0,m.useMemo)(()=>{if(0===a.length)return a;let e=302*a.length;if(e>=2200)return a;let t=Math.ceil(2200/e),r=[];for(let e=0;e<t;e++)r.push(...a);let n=Math.floor((r.length-a.length)/2);return 0===n?r:[...r.slice(-n),...r.slice(0,-n)]},[a]);return(0,d.jsxs)("section",{className:"w-full",children:[(0,d.jsx)("div",{className:"hidden w-full overflow-hidden md:block",children:(0,d.jsx)("div",{className:"mx-auto w-full max-w-[1200px] px-6 xl:px-0",children:(0,d.jsx)(tw.o,{className:"w-full",gap:8,initialPosition:"center",infinite:!0,children:i.map((e,t)=>(0,d.jsx)("div",{style:{width:294},className:"flex-none snap-start",children:(0,d.jsx)(ty,{testimonial:e})},t))})})}),(0,d.jsxs)("div",{className:"flex flex-col gap-10 md:hidden",children:[(0,d.jsx)("div",{ref:r,style:{gap:8,paddingLeft:8,paddingRight:8},className:"scrollbar-hide flex snap-x snap-mandatory overflow-x-auto",onScroll:l,children:a.map(e=>(0,d.jsx)("div",{style:{width:294},className:"flex-none snap-center",children:(0,d.jsx)(ty,{testimonial:e})},e.name))}),(0,d.jsx)(tv.h,{totalItems:a.length,activeIndex:n,onPrev:s,onNext:o,autoplayInterval:5e3})]})]})},tk=e=>{var t,a,r,n;let{navbarV2Data:l,footerData:s,pageData:o,locales:i,promoBanner:c,presetCharacters:u}=e;return(0,d.jsxs)(g.P,{locales:i,locale:o.locale,breadcrumbData:void 0,navbarV2Data:null,footerData:null,hideAppBanner:!0,className:"bg-white",contentClassName:"max-w-[1920px]",allowOverflow:!0,banner:(null==c?void 0:c.active)?(0,d.jsx)(C,{text:c.text,ctaLink:c.ctaLink}):null,children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(S.Y,{navbarV2Data:l,locale:o.locale}),(0,d.jsx)(_.k,{title:null!=(t=null==o?void 0:o.meta.metaTitle)?t:"",description:null!=(a=null==o?void 0:o.meta.metaDescription)?a:""}),(0,d.jsx)(f.W8,{title:null!=(r=null==o?void 0:o.meta.metaTitle)?r:"",description:null!=(n=null==o?void 0:o.meta.metaDescription)?n:"",locales:i}),(0,d.jsx)("div",{className:"flex flex-col gap-22 md:gap-30 lg:gap-[140px]",children:(0,d.jsxs)("div",{className:"mb-20 flex w-full flex-col overflow-hidden md:mb-[120px]",children:[(0,d.jsx)("div",{className:"mx-auto max-w-screen-2xl md:px-6 xl:max-w-[1408px] xl:px-0",children:(0,d.jsx)("section",{id:"hero-section",className:"relative",children:(0,d.jsx)("div",{className:"mx-auto max-w-[1920px] px-4 pt-24 pb-4 md:px-6 md:pb-0 lg:pt-28 xl:max-w-[1408px] xl:px-4 min-[1440px]:px-0",children:(0,d.jsx)("div",{className:"mx-auto flex flex-col items-center",children:(0,d.jsxs)("div",{className:"flex w-full flex-col items-center",children:[(0,d.jsx)(tb,{count:o.heroSection.socialProofCount,label:o.heroSection.socialProofLabel}),(0,d.jsx)(eH,{className:"mt-3 w-full max-w-[20rem] text-pretty text-center font-medium font-swissnow text-[#121212] md:max-w-none md:text-[44px] md:tracking-[-1.76px]",children:o.heroSection.heading}),(0,d.jsx)("p",{className:"mt-6 text-pretty text-center font-normal font-swissnow text-[#79716B] text-[16px] leading-none tracking-[-0.08px]",children:o.heroSection.subheading})]})})})})}
1),(0,d.jsx)(eD,{className:"mt-8",presetCharacters:u,analyticsSourcePrefix:"homepage-v3-product-experience-v3",heroSection:o.heroSection,renderCarousel:e=>(0,d.jsx)(tp,{onSelectPrompt:e,examples:o.examplesCarouselSection.examples,ctaText:o.examplesCarouselSection.ctaText})}),o.logosSection&&(0,d.jsx)(eU,{className:"mx-auto w-full max-w-7xl py-10 md:py-[100px]",logoClassName:"brightness-0",section:{text:"",headingPart1:o.logosSection.headingPart1,headingPart2:o.logosSection.headingPart2,logos:o.logosSection.logos.map(e=>({...e,height:54,width:54/e.height*e.width}))},heading:(0,d.jsxs)("p",{className:"mx-auto mb-6 max-w-[302px] text-center font-editorial font-normal text-[#262525] text-[32px] leading-none tracking-[-0.96px] md:mb-8 md:max-w-none md:text-[40px] md:tracking-[-1.2px]",children:[(0,d.jsx)("span",{className:"font-medium font-swissnow md:tracking-[-0.64px]",children:o.logosSection.headingPart1})," ",(0,d.jsx)("span",{className:"tracking-[-0.32px] md:tracking-[-1.2px]",children:o.logosSection.headingPart2})]})}),(0,d.jsx)(te,{brandUseCasesSection:o.brandUseCasesSection}),(0,d.jsx)(to,{fontClass:"font-editorial",editorPromoSection:o.editorPromoSection}),(0,d.jsx)(tN,{testimonials:o.testimonialsSection.testimonials}),o.g2Section&&(0,d.jsx)(tf,{g2Section:o.g2Section}),(0,d.jsx)(tr,{discoverMoreSection:o.discoverMoreSection,fontClass:"font-editorial"})]})})]}),(0,d.jsx)(L.w,{footerData:s,locales:i})]})};var tC=!0;let t_=e=>{let{navbarV2Data:t,footerData:a,locales:r,staticContent:n,pageDataV3:l,locale:s="en",promoBanner:o,presetCharacters:i}=e,c=(0,h.X)(),f=(()=>{let{isInVeedAndroidTwaBestEffort:e}=(0,u.Kq)();
1return(0,p.U)()?"ios":e?"android":null})();return(0,m.useEffect)(()=>{f&&window.location.replace((0,x.ye)(x.T4,window.location.search))},[f]),(0,m.useEffect)(()=>{c&&window.location.replace((0,x.ye)(x.T4,window.location.search))},[c]),(0,d.jsx)(tk,{navbarV2Data:t,footerData:a,pageData:l,locales:r,staticContent:n,locale:s,promoBanner:o,presetCharacters:i})},tL=t_},91246:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(89970)}])}},e=>{e.O(0,[420,7215,5998,9519,9749,1166,8809,168,6860,8778,9600,2864,3374,2102,8278,2438,8625,636,6593,8792],()=>e(e.s=91246)),_N_E=e.O()}]);

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.