1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8950,2674],{96447:function(e,t,a){"use strict";a.d(t,{a:function(){return i},g:function(){return n}});let r="https://static.leadde.ai/",n=[`${r}leadde-site/photo to video/image_generation_06fa54e776404612_d90dc267-f90d-41cb-affd-57000da3bd0f.png`,`${r}leadde-site/photo to video/image_generation_d68cab0c63fd4f47_3ac6db96-6182-43ce-934f-df9e6cc1d4aa.png`,`${r}leadde-site/photo to video/image_generation_ca29b029262e40ea_df969546-47f5-4adc-8ee1-da2604dd0612.png`,`${r}leadde-site/photo to video/9041425e-e456-46c9-a190-c0a6ee4093e7.png`],i=[`${r}leadde-site/photo to video/image_generation_06fa54e776404612_d90dc267-f90d-41cb-affd-57000da3bd0f.png`,`${r}leadde-site/photo to video/c928883e-b104-4a68-a75a-73da94aa5ca7.png`,`${r}leadde-site/photo to video/9041425e-e456-46c9-a190-c0a6ee4093e7.png`,`${r}leadde-site/photo to video/image_generation_d58192cccea54391_72cf7cb1-ee90-49e0-90df-a27da042a75f.png`,`${r}leadde-site/photo to video/image_generation_6392d40e70664ad0_c7ca5589-b533-4bdd-9c7f-ed0047d6d557.png`,`${r}leadde-site/photo to video/image_generation_6c7eb0899d514b76_1f8d0006-a1d4-4221-aad0-bc760880d8b4.png`,`${r}leadde-site/photo to video/image_generation_ca29b029262e40ea_df969546-47f5-4adc-8ee1-da2604dd0612.png`,`${r}leadde-site/photo to video/image_generation_6e2ae3423bd645aa_95161a26-bfdc-49de-80d5-2d304a30b56a.png`,`${r}leadde-site/photo to video/1cdda99c-e69d-4ad7-8f78-4dcaa36516f0.png`,`${r}leadde-site/photo to video/image_generation_d68cab0c63fd4f47_3ac6db96-6182-43ce-934f-df9e6cc1d4aa.png`,`${r}leadde-site/photo to video/bc7e5519-4563-428e-a183-1f493595ad74.png`,`${r}leadde-site/photo to video/image_generation_609c2698a01e4e48_509c2adb-ea6c-42cd-82d8-c8ee99cd96af.png`]},57967:function(e,t,a){"use strict";var r=a(3735),n=a(9068),i=a.n(n),s=a(30294),o=a(23115),l=a(86631),d=a(79714);t.Z=e=>{let{videoSrc:t,coverImageUrl:a,width:n="100%",height:c="264px",className:u="",autoPlay:p=!0,showControls:m=!0,useNativeControls:f=!1,vedioClassName:g="",blurControlBackground:h=!0}=e,[x,v]=(0,s.useState)(p),[b,w]=(0,s.useState)(p),[j,y]=(0,s.useState)(!1),_=(0,s.useRef)(null),C=!t&&!!a||f&&!!a&&!b;(0,s.useEffect)(()=>{let e=_.current;if(!e)return;let t=()=>{v(!0),w(!0)},a=()=>v(!1);return e.addEventListener("play",t),e.addEventListener("pause",a),()=>{e.removeEventListener("play",t),e.removeEventListener("pause",a)}},[]),(0,s.useEffect)(()=>{let e=_.current;e&&f&&(j?e.setAttribute("controls","controls"):e.removeAttribute("controls"))},[j,f]),(0,s.useEffect)(()=>{p&&_.current&&t&&_.current.play().catch(e=>{console.warn("èªå¨ææ¾å¤±è´¥:",e)})},[p,t]);let E=()=>{_.current&&(x?_.current.pause():(p||f||(_.current.muted=!1),_.current.ended&&(_.current.currentTime=0),_.current.play()))},N=`absolute top-1/2 start-1/2 -translate-x-1/2 -translate-y-1/2 w-12 h-12 rounded-xl lg:rou
1nded-3xl border border-white bg-[#1e2026]/20 cursor-pointer flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-20 ${h?"backdrop-blur-[6px]":""}`;return(0,r.jsxs)("div",{style:{"--container-width":n,"--container-height":c},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),className:`jsx-bd6670436e20f610 rounded-xl lg:rounded-3xl relative group bg-[radial-gradient(circle,rgba(110,77,252,0.09)_0%,rgba(110,77,252,0.09)_100%)] w-full aspect-video ${u}`,children:[(0,r.jsx)(i(),{id:"bd6670436e20f610",children:"@media(min-width:1024px){div.jsx-bd6670436e20f610{width:var(--container-width)!important;height:var(--container-height)!important}}"}),C&&a&&(0,r.jsx)(o.default,{src:a,alt:"Video cover",fill:!0,sizes:"(max-width: 1024px) 100vw, 1117px",className:`object-cover absolute top-0 start-0 z-10 cursor-pointer rounded-xl lg:rounded-3xl ${g}`,onClick:E}),t&&(0,r.jsx)(d.default,{ref:_,src:t,className:`w-full h-full object-cover rounded-xl lg:rounded-3xl ${g}`,autoPlay:p,muted:!f,loop:!f,playsInline:!0,preload:"metadata",controls:!1}),m&&f&&!b&&(0,r.jsx)("div",{onClick:E,className:"jsx-bd6670436e20f610 "+(N||""),children:(0,r.jsx)(l.Z,{name:"paly",size:48,color:"#fff"})}),m&&!f&&(0,r.jsx)("div",{onClick:E,className:"jsx-bd6670436e20f610 "+(N||""),children:(0,r.jsx)(l.Z,{name:x?"stop":"paly",size:48,color:"#fff"})})]})}},68950:function(e,t,a){"use strict";a.d(t,{default:function(){return k}});var r=a(3735),n=a(23115),i=a(96122),s=a(57967),o=a(18952),l=a(86631),d=a(32397),c=a(30294),u=a(48588),p=a(20745),m=a(70306),f=a(61846),g=a(43112),h=a(3705),x=a(4175),v=a(53492),b=a(96447),w=a(79714);async function j(e){let t=await e.arrayBuffer();return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("").substring(0,16)}function y(e){let t=e.name;return t.split(".").pop()?.toLowerCase()||"png"}let _=new Set(["image/png","image/jpeg"]),C=new Set(["png","jpg","jpeg"]);function E(e){let{mode:t="avatar-to-video",title:a,avatars:n,script:i,defaultSelectedId:s,maxChars:o=200,minChars:d=10,className:u="",onScriptTextChange:E}=e,N=(0,x.T)("avatars.aiAvatarGenerator"),k="photo-to-video"===t,$=(0,c.useMemo)(()=>b.g.map((e,t)=>({id:`photo-${t}`,name:`Photo ${t+1}`,image_url:e,dh_model_key:""})),[]),[S,F]=(0,c.useState)([]),M=!!n?.length,z=(0,c.useMemo)(()=>n??[],[n]),[D,Z]=(0,c.useState)(!M&&!k),R=M?z:k?$:S,[P,I]=(0,c.useState)(s||""),T=i?.defaultValue??(k?N("photoToVideo.defaultScript"):N("script.defaultValue")),[L,U]=(0,c.useState)(T),[V,A]=(0,c.useState)(!1),[O,H]=(0,c.useState)(""),B=(0,c.useRef)(null),W=(0,c.useRef)(null),[K,q]=(0,c.useState)(!1),G=L.trim(),X=N("validation.minScript",{min:d}),J=k?N("photoToVideo.title"):N("title"),Y=k?N("upload.photoToVideoIdle"):N("upload.idle"),Q=!!(P&&G&&!K),ee=(0,c.useCallback)(e=>{q(!e.isValid)},[]);(0,c.useEffect)(()=>{(async()=>{if(M){s||I(e=>e||z[0].id),Z(!1);return}if(k){!s&&$.length>0&&I(e=>e||$[0].id),Z(!1);return}try{let e=(await (0,g.i)(!0)).map(e=>({id:e.id.toString(),name:e.name,image_url:e.image_url,background_url:e.background_url,dh_model_key:e.dh_model_key,tts_id:e.tts_id}));e.length>0?(F(e),s||I(t=>t||e[0].id)):F([])}catch(e){console.error("Failed to fetch avatars:",e),F([])}finally{Z(!1)}})()},[z,M,s,k,$]);let et=(0,c.useCallback)(e=>{I(e)},[]),ea=(0,c.useCallback)(async e=>{let a=e.target.files?.[0];if(!a)return;if(!function(e){let t=y(e);return _.has(e.type)||C.has(t)}(a)){alert(N("upload.error.invalidType")),e.target.value="";return}if(a.size>31457280){alert("File size exceeds 30MB"),e.target.value="";return}let r=URL.createObjectURL(a);H(r),A(!0);try{let e=await j(a),r=y(a),n=`${e}.${r}`,{file_key:i,upload_url:s}=await (0,h.Fl)(n);await (0,h.OC)({url:s,file:a});let o=await (0,h.OH)({file_key:i,avatar_data:{file_name:n,file_type:a.type,upload_time:new Date().toISOString(),upload_url:s}}),l=o?.session_key;if(console.log(l,"sessionKey"),l){let e=new URLSearchParams({session_key:l,mode:t}),a="photo-to-video"===t?"/home/avatar-video":"/assets/avatars";window.location.href=(0,p.y8)(`https://app.leadde.ai${a}?${e.toString()}`)}
1else throw Error(N("upload.error.noSessionKey"))}catch(e){console.error("Upload error:",e),alert(e instanceof Error?e.message:N("upload.error.generic")),URL.revokeObjectURL(r),H("")}finally{A(!1),B.current&&(B.current.value="")}},[t,N]),er=(0,c.useCallback)(()=>{B.current?.click()},[]);(0,c.useEffect)(()=>{E?.(L)},[L,E]);let en=(0,c.useCallback)(()=>{if(!P){v.ZP.error(N("validation.selectAvatar"));return}if(!G){v.ZP.error(N("validation.enterScript"));return}let e=W.current?.getValidation();if(e&&!e.isValid){v.ZP.error(e.errorMessage||X);return}let a=R.find(e=>e.id===P),r=new URLSearchParams({mode:t,dh_model_key:a?.dh_model_key||"",tts_id:a?.tts_id||"",text:G});"photo-to-video"===t&&r.set("image_url",a?.image_url||""),window.open((0,p.y8)(`https://app.leadde.ai/home/avatar-video?${r.toString()}`),"_blank")},[P,G,X,N,R,t]);return(0,r.jsxs)("div",{"data-mode":t,className:`relative p-1 bg-white/0 rounded-4xl shadow-[0px_4px_30px_0px_rgba(181,189,201,1.00)] inline-flex flex-col justify-start items-start gap-2.5 overflow-hidden ${u}`,children:[(0,r.jsx)(w.default,{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!1,className:"absolute inset-0 w-full h-full object-cover -z-10 rounded-4xl p-1",src:"https://static.leadde.ai/leadde-site/home/avatar_bg.mp4"}),(0,r.jsxs)("div",{className:"lg:w-[564px] bg-white rounded-3xl shadow-[0px_8px_24px_0px_rgba(0,0,0,0.12)] outline-1 -outline-offset-1 outline-zinc-100 backdrop-blur-[6px] m-5 p-4 flex flex-col gap-4",children:[(0,r.jsx)("div",{children:(0,r.jsx)("h3",{className:"text-neutral-800 text-base font-bold font-poppins leading-5",children:a??J})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-5 gap-2",children:[(0,r.jsx)("button",{onClick:er,disabled:V,className:`group relative w-full aspect-9/10 lg:w-25 lg:h-28 px-2 py-0.5 bg-white cursor-pointer rounded-lg inline-flex flex-col justify-center items-center gap-2.5 overflow-hidden transition-all disabled:opacity-50 ${O?"":"border border-dashed border-[#76808F] hover:border-[#6E4DFC]"}`,children:O?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{src:O,alt:"preview",className:"absolute inset-0 w-full h-full object-cover",decoding:"async"}),V&&(0,r.jsx)("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:(0,r.jsx)("div",{className:"w-6 h-6 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}):(0,r.jsxs)("div",{className:"flex flex-col justify-start items-center gap-2",children:[(0,r.jsx)("div",{className:"lg:w-8 lg:h-8 w-6 h-6 bg-neutral-800 group-hover:bg-[#6E4DFC] rounded-3xl inline-flex justify-center items-center gap-2.5 text-white transition-colors",children:(0,r.jsx)(l.Z,{name:"uplaod",size:24})}),(0,r.jsx)("div",{className:"lg:w-20 text-center justify-center text-slate-500 group-hover:text-[#6E4DFC] text-[8px] lg:text-xs font-normal font-inter transition-colors",children:V?N("upload.uploading"):Y})]})}),(0,r.jsx)("input",{ref:B,type:"file",accept:".png,.jpg,.jpeg,image/png,image/jpeg",onChange:ea,className:"hidden"}),D?(0,r.jsx)(r.Fragment,{children:[1,2,3,4].map((e,t)=>(0,r.jsx)("div",{className:"w-full aspect-9/10 lg:w-25 lg:h-28 rounded-lg bg-gray-200 animate-pulse"},`skeleton-${t}`))}):R.map(e=>(0,r.jsxs)("button",{onClick:()=>et(e.id),className:`w-full aspect-9/10 lg:w-25 lg:h-28 cursor-pointer rounded-lg overflow-hidden relative transition-all ${P!==e.id||O?"border-2 border-transparent":"border-2 border-[#6E4DFC]"}`,children:[(0,r.jsx)("div",{className:"absolute inset-0 backdrop-blur-[20px] bg-cover bg-center",style:{backgroundImage:e.background_url?`url("${e.background_url}")`:void 0}}),(0,r.jsx)("img",{src:e.image_url,alt:e.name,className:"absolute inset-0 w-full h-full object-cover",loading:"lazy",decoding:"async"}),P===e.id&&!O&&(0,r.jsx)("div",{className:"absolute top-1 right-1 w-6 h-6 z-10",children:(0,r.jsx)("img",{src:"/assets/icon_colored_success.svg",alt:e.name,className:"w-full h-full object-cover",decoding:"async"})})]},e.id))]})}),(0,r.jsx)("div",{children:(0,r.jsx)("h3",{className:"text-neutral-800 text-base font-bold font-poppins leading-5",children:i?.title??N("script.title")})}),(0,r.jsxs)("div",{className:"flex flex-col justify-start items-end gap-4",children:[(0,r.jsx)(f.ZP,{ref:W,value:L,onChange:U,placeholder:N("script.placeholder"),maxChars:o,minChars:d,minCharsErrorMessage:X,height:"128px",className:"w-full -mb-3",onValidationChange:ee}),(0,r.jsx)(m.Z,{variant:"gradient",endIcon:(0,r.jsx)(l.Z,{name:"a-buttonarrow",size:20}),onClick:en,className:"lg:w-auto px-8 py-3 h-11 w-full",disabled:!Q,children:N("generateButton")})]})]})]})}let N=(0,i.default)(()=>Promise.all([a.e(4989),a.e(7815),a.e(4805),a.e(2376),a.e(7730),a.e(8569),a.e(595),a.e(7146),a.e(3816),a.e(9813)]).then(a.bind(a,34462)),{loadableGenerated:{webpack:()=>[34462]},ssr:!1});var k=e=>{let{title:t,description:a,buttonText:i,tips:m,highlightText:f,videoSrc:g,imageSrc:h,secondaryButtonText:x,descriptionList:v=[],showAIAvatarGenerator:b=!1,onScriptTextChange:w,avatarGeneratorProps:j,hideMobileActions:y=!1,rightContent:_,tipsClassName:C="lg:w-[540px] h-5 font-inter text-[20px] font-normal not-italic leading-none tracking-normal text-[#553CFA] mb-1",onPrimaryButtonClick:k,onSecondaryButtonClick:$,primaryButtonUrl:S,primaryButtonTarget:F,primaryButtonVariant:M}=e,z=(0,u.bU)(),[D,Z]=(0,c.useState)(!1),R="dark"===M?"dark":"secondary"===M?"outlined":"gradient",P=k||(()=>{if(S){window.open(S,F||"_self");return}window.open((0,p.y8)("https://app.leadde.ai/register"),"_blank")});return(0,r.jsxs)("div",{className:"lg:mx-[110px] mx-5 pt-9 lg:pt-0",children:[(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row mx-auto max-w-max",children:[(0,r.jsxs)("div",{className:"lg:w-[530px] flex flex-col gap-6 lg:gap-8 items-center lg:items-start",children:[(0,r.jsx)("div",{className:"flex flex-col gap-6 lg:gap-4 text-center lg:text-start",children:(0,r.jsxs)("div",{children:[m&&(0,r.jsx)("p",{className:C,children:m}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("h1",{className:"font-poppins font-bold lg:text-[50px] lg:leading-16 text-[#1F1E26] leading-[50px] text-4xl wrap-anywhere",children:(()=>
1{if(!f)return t;let e=t.split(f);return(0,r.jsx)(r.Fragment,{children:e.map((t,a)=>(0,r.jsxs)("span",{children:[t,a<e.length-1&&(0,r.jsx)("span",{className:"text-[#553CFA]",children:f})]},a))})})()}),(0,r.jsx)("div",{className:"font-inter font-normal text-[20px] text-[#1F1E26]",children:(0,d.Z)(a,z)}),v?.length>0&&(()=>{let e=v.map(e=>(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{className:"font-medium",children:e.bold}),e.normal]},e.normal+e.bold));return(0,r.jsx)("div",{className:"flex flex-col gap-4",children:e.map((e,t)=>(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)(l.Z,{name:"icon_colored_success",color:"#02C076",size:20,className:"shrink-0 mt-0.5"}),(0,r.jsx)("div",{className:"text-neutral-800 text-base font-normal font-inter",children:e})]},t))})})()]})]})}),(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6 lg:gap-4 w-full mb-6 items-center",children:[!y&&(0,r.jsx)(o.z,{variant:R,className:"lg:hidden w-60 h-13",onClick:P,endIcon:(0,r.jsx)(l.Z,{name:"a-buttonarrow",size:20}),children:i}),(0,r.jsx)(o.z,{variant:R,className:"hidden! lg:flex! h-11",endIcon:(0,r.jsx)(l.Z,{name:"a-buttonarrow",size:20}),onClick:P,children:i}),x&&(0,r.jsxs)(r.Fragment,{children:[!y&&(0,r.jsx)(o.z,{variant:"dark",className:"w-60 text-lg font-semibold lg:hidden! h-13",onClick:$||(()=>window.location.href=`/${z}/book-demo`),children:x}),(0,r.jsx)(o.z,{variant:"dark",className:"hidden! lg:flex! w-auto text-sm font-semibold",onClick:$||(()=>Z(!0)),children:x})]})]})]}),(0,r.jsx)("div",{className:"lg:ms-[73px] mx-auto",children:_??(b?(0,r.jsx)(E,{mode:j?.mode,title:j?.title,avatars:j?.avatars,script:j?.script,onScriptTextChange:w}):h?(0,r.jsx)(n.default,{src:h,alt:"Hero",width:616,height:347,sizes:"(max-width: 1024px) 100vw, 616px",priority:!0,fetchPriority:"high",className:"lg:w-[616px] lg:h-[347px] object-cover rounded-xl lg:rou
1nded-3xl"}):(0,r.jsx)(s.Z,{videoSrc:g||"https://static.leadde.ai/leadde-site/solutions/Usecase-right.mp4",width:"616px",height:"347px",showControls:!1}))})]}),D&&(0,r.jsx)(N,{open:D,onClose:()=>Z(!1)})]})}},86631:function(e,t,a){"use strict";a.d(t,{B:function(){return n}});var r=a(3735);a(30294);let n=e=>{let{name:t,size:a=1,color:n,className:i="",style:s={}}=e,o={width:`${a}em`,height:`${a}em`,verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden",...s};return n&&(o.color=n),"number"==typeof a&&(o.width=`${a}px`,o.height=`${a}px`,o.fontSize=`${a}px`),(0,r.jsx)("svg",{className:`icon ${i}`.trim(),style:o,"aria-hidden":"true",children:(0,r.jsx)("use",{xlinkHref:`#${t}`})})};t.Z=n},79714:function(e,t,a){"use strict";var r=a(3735),n=a(30294);let i=(0,n.forwardRef)(function(e,t){let{src:a,sources:i,rootMargin:s="300px 0px",preload:o="metadata",autoPlay:l,pauseWhenHidden:d=!0,muteWhenHidden:c=!0,onAutoMute:u,...p}=e,m=(0,n.useRef)(null),f=(0,n.useRef)(!1),[g,h]=(0,n.useState)(!1),x=i?.map(e=>`${e.src}:${e.media||""}:${e.type||""}`).join("|");return(0,n.useImperativeHandle)(t,()=>m.current),(0,n.useEffect)(()=>{let e=m.current;if(!e)return;if(!("IntersectionObserver"in window)){let e=globalThis.setTimeout(()=>h(!0),0);return()=>globalThis.clearTimeout(e)}let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&(h(!0),t.disconnect())},{rootMargin:s});return t.observe(e),()=>t.disconnect()},[s]),(0,n.useEffect)(()=>{let e=m.current;g&&e&&e.load()},[g,a,x]),(0,n.useEffect)(()=>{let e=m.current;if(!g||!e)return;if(!("IntersectionObserver"in window)){l&&e.play().catch(()=>{});return}let t=new IntersectionObserver(t=>{if(t[0]?.isIntersecting){f.current=!0,l&&e.play().catch(()=>{});return}f.current&&(d&&e.pause(),c&&!e.muted&&(e.muted=!0,u?.()))},{threshold:.1});return t.observe(e),()=>t.disconnect()},[l,c,u,d,g]),(0,r.jsx)("video",{ref:m,src:g?a:void 0,preload:g?o:"none",autoPlay:l,...p,children:g&&i?.map((e,t)=>r.jsx("source",{...e},`${e.src}-${t}`))})});t.default=i},70306:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var r=a(3735),n=a(30294),i=a(27381);function s(e){let{children:t,variant:a="gradient",startIcon:s,endIcon:o,disabled:l,className:d,asChild:c=!1,...u}=e,p=(0,n.useRef)(null),[m,f]=(0,n.useState)(!1),[g,h]=(0,n.useState)(!1),x=e=>{if(l)return;let t=c?e.currentTarget:p.current;if(!t)return;let a=t.getBoundingClientRect(),r=document.createElement("span"),n=Math.max(a.width,a.height),i=e.clientX-a.left-n/2,s=e.clientY-a.top-n/2;r.style.position="absolute",r.style.width=r.style.height=`${n}px`,r.style.left=`${i}px`,r.style.top=`${s}px`,r.style.background="rgba(255,255,255,0.3)",r.style.borderRadius="50%",r.style.transform="scale(0)",r.style.opacity="1",r.style.pointerEvents="none",r.style.transition="transform 1500ms ease-out, opacity 1500ms ease-out",t.appendChild(r),requestAnimationFrame(()=>{r.style.transform="scale(2)",r.style.opacity="0"}),setTimeout(()=>r.remove(),1500)},v={gradient:"text-white",dark:(0,i.Z)(l?"bg-[#E0E0E0] text-[#8C8C8C]":"bg-[#1E2026] text-white hover:bg-[#6E4DFC] active:bg-[#6E4DFC]"),light:(0,i.Z)(l?"bg-[#E0E0E0] text-[#8C8C8C]":"bg-white text-[#1E2026] hover:bg-[#6E4DFC] hover:text-white active:bg-[#6E4DFC]"),"light-dark":(0,i.Z)(l?"bg-[#E0E0E0] text-[#8C8C8C]":"bg-white text-[#1E2026] hover:bg-[#1E2026] hover:text-white active:bg-[#1E2026]"),outlined:(0,i.Z)(l?"bg-[#E0E0E0] text-[#8C8C8C]":"bg-white text-[#1E2026] outline hover:bg-[#6E4DFC] hover:text-white active:bg-[#6E4DFC] active:text-white"),"outlined-dark":(0,i.Z)(l?"border border-[#8C8C8C] bg-[#010101] text-[#8C8C8C]":"border border-white bg-[#010101] text-white hover:border-transparent hover:bg-[#6E4DFC] active:bg-[#6E4DFC]")},b=()=>{if("gradient"===a)return l?{background:"#E0E0E0",color:"#8C8C8C"}:{background:"radial-gradient(50% 50% at 50% 50%, #3A2AF4 0%, #6E4DFC 100%)",color:"#fff"}},w=()=>"gradient"!==a||l?0:g?1:m?.8:0,j=(0,i.Z)("relative overflow-hidden inline-flex items-center justify-center gap-2","select-none cursor-pointer shrink-0","text-sm font-semibold px-6 py-3 rounded-[46px] font-inter whitespace-nowrap",v[a],l&&"cursor-not-allowed",d),y=e=>(0,r.jsxs)(r.Fragment,{children:["gradient"===a&&(0,r.jsx)("span",{style:{position:"absolute",inset:0,background:g?"#886DFD":"#5E41D6",opacity:w(),transition:"opacity 250ms cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:c?"inherit":"46p
1x",pointerEvents:"none"}}),s&&(0,r.jsx)("span",{className:"relative z-10 flex items-center",children:s}),(0,r.jsx)("span",{className:"relative z-10",children:e}),o&&(0,r.jsx)("span",{className:"relative z-10 flex items-center transition-transform duration-200",style:{transform:m?"translateX(4px)":"translateX(0)"},children:o})]});if(c){if(!n.isValidElement(t))return null;let e=n.Children.only(t),{onClick:a,onMouseEnter:r,onMouseLeave:s,onMouseDown:o,onMouseUp:d,style:c}=u,p=(e,t)=>e?.(t);return n.cloneElement(e,{className:(0,i.Z)(j,e.props.className),style:{...b(),...c,...e.props.style},"aria-disabled":l||void 0,tabIndex:l?-1:e.props.tabIndex,onClick:t=>{if(l){t.preventDefault();return}x(t),p(a,t),e.props.onClick?.(t)},onMouseEnter:t=>{f(!0),p(r,t),e.props.onMouseEnter?.(t)},onMouseLeave:t=>{f(!1),h(!1),p(s,t),e.props.onMouseLeave?.(t)},onMouseDown:t=>{h(!0),p(o,t),e.props.onMouseDown?.(t)},onMouseUp:t=>{h(!1),p(d,t),e.props.onMouseUp?.(t)}},y(e.props.children))}return(0,r.jsx)("button",{ref:p,disabled:l,onClick:e=>{x(e),u.onClick?.(e)},onMouseEnter:()=>f(!0),onMouseLeave:()=>{f(!1),h(!1)},onMouseDown:()=>h(!0),onMouseUp:()=>h(!1),className:j,style:b(),...u,children:y(t)})}},61846:function(e,t,a){"use strict";var r=a(3735),n=a(30294),i=a(4175);let s=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter(Boolean).join(" ")},o=e=>{let t=e.charCodeAt(0);return t>=19968&&t<=40959||t>=12352&&t<=12447||t>=12448&&t<=12543||t>=44032&&t<=55215},l=e=>{if(!e)return 0;let t=0,a="";for(let r=0;r<e.length;r++){let n=e[r];o(n)?(a.trim()&&(t+=1,a=""),t+=1):/\s/.test(n)?a.trim()&&(t+=1,a=""):/[a-zA-Z]/.test(n)?a+=n:(a.trim()&&(t+=1,a=""),t+=1)}return a.trim()&&(t+=1),t},d=[{type:"json",check:e=>{let t=e.trim();if(!t.startsWith("{")&&!t.startsWith("["))return!1;try{let e=JSON.parse(t);return"object"==typeof e&&null!==e}catch{return!1}},errorMessage:"textMenu.error.json"},{type:"html",check:e=>/<\/?(html|head|body|div|span|p|a|img|ul|ol|li|table|tr|td|th|form|input|button|script|style|link|iframe|object|embed|video|audio|h[1-6]|b|i|u|strong|em|br|hr|meta|title)\b[^>]*>/i.test(e),errorMessage:"textMenu.error.html"}],c=e=>{if(!e||0===e.trim().length)return{isValid:!0,errorMessage:""};for(let t of d)if(t.check(e))return{isValid:!1,errorMessage:t.errorMessage};return{isValid:!0,errorMessage:""}},u=(0,n.forwardRef)((e,t)=>{let{value:a,onChange:o,placeholder:d="Write or paste your text here...",maxChars:u=3e4,minChars:p=0,minCharsErrorMessage:m,maxScenes:f=100,showScene:g=!1,className:h,height:x="338px",sx:v,onValidationChange:b}=e,[w,j]=(0,n.useState)(!1),y=(0,i.T)("videoCreationForm"),_=c(a),C=!_.isValid,E=l(a),N=g&&a.trim()?a.split(/\r?\n|\r/).filter(e=>""!==e.trim()).length:0,k=E>u,$=a.trim().length>0,S=p>0&&$&&E<p,F=g&&$&&N>f,M=k||S||F,z=C?y(_.errorMessage):S?m||y("textMenu.error.minChars",{min:p}):"",D=(0,n.useMemo)(()=>({isValid:!M&&!C,currentLength:E,isOverCharLimit:k,isUnderMinChars:S,isOverSceneLimit:F,isContentInvalid:C,errorMessage:z}),[E,z,C,k,M,F,S]);return(0,n.useEffect)(()=>{b?.(D)},[b,D]),(0,n.useImperativeHandle)(t,()=>({hasValidation:()=>M||C,getContentValidation:()=>_,getValidation:()=>D})),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{children:` 2 .limited-textarea::placeholder { 3 color: #8c8c8c; 4 font-size: 14px; 5 font-style: normal; 6 font-weight: 400; 7 line-height: 20px; 8 } 9 10 .limited-textarea--over-limit { 11 border-color: #ef4444 !important; 12 } 13 14 .limited-textarea--over-limit:focus { 15 outline: none; 16 border-color: #ef4444 !important; 17 border-style: solid !important; 18 } 19 `}),(0,r.jsxs)("div",{className:s("relative",h),style:v,children:[(0,r.jsx)("div",{className:s("border border-dashed rounded-lg p-3 mb-3",M||C?"border-red-500":w?"border-[#6E4DFC]":"border-[#E0E0E0]"),style:{height:x},children:(0,r.jsx)("textarea",{className:s("w-full border-0 outline-none bg-transparent p-0 resize-none","limited-textarea",(M||C)&&"limited-textarea--over-limit"),placeholder:d,value:a,onChange:e=>{let t=e.target.value;l(t)>u||o(t)},onFocus:()=>j(!0),onBlur:()=>j(!1),style:{height:`calc(${x} - 44px)`,fontSize:"14px",fontWeight:400,lineHeight:"20px",overflowY:"auto",overflowX:"hidden"}})}),(0,r.jsxs)("div",{className:"flex gap-2 absolute bottom-6 end-3 text-[14px] text-[#8C8C8C] bg-[#fff] leading-[20px]",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:k?"text-red-500":"text-[#6E4DFC
19]",children:E}),"/",u]}),C||S?(0,r.jsx)("div",{className:"text-red-500",children:D.errorMessage}):g&&N>0?(0,r.jsxs)("div",{children:["(",(0,r.jsx)("span",{className:F?"text-red-500":"text-[#6E4DFC]",children:N}),"/",f," ",1===N?"Scene":"Scenes"," ",(0,r.jsx)("span",{className:F?"text-red-500":1===N||N>f?"text-[#6E4DFC]":"text-[#8C8C8C]",children:y(1===N?"textMenu.sceneInfo.onlyOneScene":N>f?"textMenu.sceneInfo.tooManyScenes":"textMenu.sceneInfo.onePerScene")}),")"]}):null]})]})]})});t.ZP=u},18952:function(e,t,a){"use strict";a.d(t,{z:function(){return r.Z},v:function(){return d}});var r=a(70306),n=a(3735),i=a(27381),s=a(30294),o=a(56503),l=a.n(o);function d(e){let{children:t,as:a="div",className:r,delay:o=0,disableOnMobile:d=!1,threshold:c=.16}=e,u=(0,s.useRef)(null),[p,m]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=u.current;if(!e)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||d&&window.matchMedia("(max-width: 767px)").matches){let e=window.requestAnimationFrame(()=>m(!0));return()=>window.cancelAnimationFrame(e)}let t=new IntersectionObserver(e=>{let a=e[0];a&&a.isIntersecting&&(m(!0),t.disconnect())},{threshold:c,rootMargin:"0px 0px -8%"});return t.observe(e),()=>t.disconnect()},[d,c]),(0,n.jsx)(a,{ref:u,className:(0,i.Z)(l().reveal,d&&l().instantOnMobile,p&&l().visible,r),"data-visible":p?"true":"false",style:{"--reveal-delay":`${o}ms`},children:t})}},47057:function(e,t,a){"use strict";a.d(t,{Hw:function(){return i},al:function(){return n},k1:function(){return r}});let r=["en","es","pt","fr","de","it","nl","sv","ko","ja","zh","zh-Hant","ar"],n="en",i={en:{name:"English",nativeName:"English",flag:"US"},de:{name:"German",nativeName:"Deutsch",flag:"DE"},ja:{name:"Japanese",nativeName:"æ¥æ¬èª",flag:"JP"},fr:{name:"French",nativeName:"Fran\xe7ais",flag:"FR"},zh:{name:"Chinese",nativeName:"ç®ä½ä¸æ",flag:"CN"},pt:{name:"Portuguese",nativeName:"Portugu\xeas",flag:"PT"},es:{name:"Spanish",nativeName:"Espa\xf1ol",flag:"ES"},ko:{name:"Korean",nativeName:"íêµì´",flag:"KR"},sv:{name:"Swedish",nativeName:"Svenska",flag:"SE"},nl:{name:"Dutch",nativeName:"Nederlands",flag:"NL"},it:{name:"Italian",nativeName:"Italiano",flag:"IT"},"zh-Hant":{name:"Traditional Chinese",nativeName:"ç¹é«ä¸æ",flag:"TW"},ar:{name:"Arabic",nativeName:"Ø§ÙØ¹Ø±Ø¨ÙØ©",flag:"SA",dir:"rtl"}}},12547:function(e,t,a){"use strict";a.d(t,{d:function(){return l}});var r=a(49574),n=a(53492);let i=r.Z.create({baseURL:"https://api-sg.leadde.ai/overseas-agent",timeout:3e4,headers:{"Content-Type":"application/json"}}),s=r.Z.create({baseURL:"https://api-sg.leadde.ai/overseas-agent",headers:{"Content-Type":"application/json"}});s.interceptors.response.use(e=>200===e.status?e:(n.ZP.error("Upload failed"),Promise.reject(Error("Upload failed"))),e=>(console.log(e),Promise.reject(Error("Upload failed")))),i.interceptors.response.use(e=>{let t=e.config,a=t.silent;if((t.url||"").includes("leadde-sg.s3.ap-southeast-1.amazonaws.com/temp"))return e;let r=e.data;if(0===r.code)return r.data;let i=r.message||"Request failed";return a||n.ZP.error(i),Promise.reject(Error(i))},e=>{let t=e.config,a=t?.silent,r="Network error";return"ECONNABORTED"===e.code?r="Request timeout":e.response&&(r=e.response.data?.message||`HTTP Error ${e.response.status}`),a||n.ZP.error(r),Promise.reject(Error(r))});let o=e=>e.includes("leadde-sg.s3.ap-southeast-1.amazonaws.com/temp")?s:i,l={get:(e,t)=>o(e).get(e,t),post:(e,t,a)=>o(e).post(e,t,a),put:(e,t,a)=>o(e).put(e,t,a),delete:(e,t)=>o(e).delete(e,t)}},43112:function(e,t,a){"use strict";async function r(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=await fetch(`https://api-sg.leadde.ai/overseas-agent/api/public/avatars?main_avatar=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error(`Failed to fetch avatars: ${t.status}`);let a=await t.json();if(0!==a.code)throw Error(a.message||"Failed to fetch avatars");return a.data.items}a.d(t,{i:function(){return r}})},3705:function(e,t,a){"use strict";a.d(t,{Fl:function(){return n},OC:function(){return i},OH:function(){return s}});var r=a(12547);function n(e){return r.d.post("/api/public/temp-upload-url",{file_name:e})}function i(e){var t;let a=(t=e.file.name,({png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",mp4:"video/mp4",mov:"video/quicktime",webm:"video/webm",avi:"video/x-msvideo",mkv:"video/x-matroska",pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",txt:"text/plain"})[t.split(".").pop()?.toLowerCase()||""]||"application/octet-stream");return r.d.put(`${e?.url}`,e?.file,{headers:{"Content-Type":a}})}function s(e){return r.d.post("/api/public/temp-session",e)}},20745:function(e,t,a){"use strict";a.d(t,{K$:function(){return n},sS:function(){return i},y8:function(){return r}});let r=e=>{let t=new URLSearchParams(window.location.search),a={};for(let e of["gclid","gbraid","wbraid","utm_source","utm_medium","utm_campaign","utm_content","utm_term"]){let r=t.get(e);if(r){a[e]=r;continue}try{let t=window.localStorage.getItem(e);t&&(a[e]=t)}catch{}}
19let r=document.documentElement.lang;r&&(a.lang=r);let n=Object.entries(a);if(0===n.length)return e;let i=new URLSearchParams(e.split("?")[1]||"");for(let[e,t]of n)i.has(e)||i.set(e,t);let s=e.split("?")[0];return`${s}?${i.toString()}`},n=(e,t)=>{if(!t)return e;let[a,r=""]=e.split("?"),n=new URLSearchParams(r);return n.has("lang")||n.set("lang",t),`${a}?${n.toString()}`},i=e=>{if(0===e)return"0 Bytes";let t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["Bytes","KB","MB","GB"][t]}},32397:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var r=a(3735);a(30294);var n=a(47057);let i=new Set(n.k1),s=(e,t)=>{if(!e||!e.startsWith("/")||e.startsWith("//")||t===n.al)return e;let a=e.split("/")[1]??"";return i.has(a)?e:"/"===e?`/${t}`:`/${t}${e}`},o=(e,t)=>{if(!e||"string"!=typeof e)return e;let a=e;return t&&(a=a.replace(/(<a\b[^>]*?\bhref=)(["'])(.*?)\2/gi,(e,a,r,n)=>`${a}${r}${s(n,t)}${r}`)),a=(a=a.replace(/<a\s+/g,'<a target="_blank" rel="noopener noreferrer" ')).replace(/<a\s+([^>]*?)>/gi,(e,t)=>t.includes("class=")?`<a ${t.replace(/class="([^"]*)"/,'class="$1 rich-text-link"')}>`:t.includes("style=")?`<a ${t.replace(/style="([^"]*)"/,'style="$1;color:#5D4EFD;cursor:pointer;"')}>`:`<a ${t} style="color:#5D4EFD;cursor:pointer;">`)},l=(e,t)=>{if(!e||"string"!=typeof e)return e;if(e.includes("<")){let a=o(e,t);return(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:a},suppressHydrationWarning:!0})}return e}},56503:function(e){e.exports={reveal:"ViewportReveal_reveal__3SHXm",visible:"ViewportReveal_visible__uHDRc",instantOnMobile:"ViewportReveal_instantOnMobile__0egtc"}}}]);
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.