(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6778],{85881:function(e,a,t){"use strict";var i,s,n=t(52846);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}a.Z=e=>n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:80,height:80,fill:"none"},e),i||(i=n.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M6.67 41.6c0 .277 0 .416.055.524a.5.5 0 0 0 .18.195c.103.065.242.076.52.098l27.392 2.172c2.022.16 3.033.24 4.046.27q1.14.03 2.279 0c1.013-.03 2.024-.11 4.046-.27l27.393-2.172c.277-.022.416-.033.519-.098a.5.5 0 0 0 .18-.195c.056-.108.056-.247.056-.525V38.4c0-.278 0-.417-.056-.525a.5.5 0 0 0-.18-.195c-.103-.064-.242-.075-.52-.097L45.188 35.41c-2.022-.16-3.033-.24-4.045-.27a40 40 0 0 0-2.279 0c-1.012.03-2.023.11-4.045.27L7.424 37.583c-.277.022-.416.033-.519.097a.5.5 0 0 0-.18.195c-.056.108-.056.247-.056.525z",clipRule:"evenodd"})),s||(s=n.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M41.6 73.335c.277 0 .416 0 .524-.056a.5.5 0 0 0 .195-.18c.065-.104.076-.242.097-.52l2.173-27.392c.16-2.022.24-3.034.27-4.046q.03-1.14 0-2.28c-.03-1.012-.11-2.023-.27-4.045L42.417 7.422c-.022-.277-.033-.416-.098-.52a.5.5 0 0 0-.195-.18c-.108-.055-.247-.055-.525-.055H38.4c-.278 0-.417 0-.525.056a.5.5 0 0 0-.195.18c-.064.103-.075.242-.097.52L35.41 34.82c-.16 2.022-.24 3.033-.27 4.045q-.03 1.14 0 2.278c.03 1.013.11 2.024.27 4.046l2.172 27.39c.022.278.033.416.097.52a.5.5 0 0 0 .195.18c.108.056.247.056.525.056z",clipRule:"evenodd"})))},83513:function(e,a,t){"use strict";var i,s=t(52846);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}a.Z=e=>s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:80,height:80,stroke:"#fff",viewBox:"0 0 38 38"},e),i||(i=s.createElement("g",{fill:"none",fillRule:"evenodd",strokeWidth:2,transform:"translate(1 1)"},s.createElement("circle",{cx:18,cy:18,r:18,strokeOpacity:.5}),s.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},s.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 18 18",repeatCount:"indefinite",to:"360 18 18",type:"rotate"})))))},82384:function(e,a,t){Promise.resolve().then(t.bind(t,78562))},78562:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return q}});var i=t(3827),s=t(64090),n=t(34734),r=t(51367),l=t(92044),o=t.n(l),c=t(78151),d=t.n(c),m=t(50529),p=t(93176),u=t(28777),h=t(29785),f=t(53542),x=t(42592),v=t(2983),g=t(64526),j=e=>{let{images:a,directionClassName:t="flex-col md:flex-row"}=e,[n,l]=(0,s.useState)(0),o=a.previews[n];return(0,i.jsxs)("div",{className:(0,r.m6)("mb-4 flex flex-1 flex-col items-start md:mb-0 md:flex-row md:items-center",t),children:[(0,i.jsx)(v.Z,{src:o.src,poster:a.poster,title:(0,i.jsx)("span",{className:"text-sm sm:text-base sm:font-bold",children:o.title}),className:"w-full lg:w-[600px]"},"video_".concat(n)),(0,i.jsx)(g.Z,{faces:a.faces,activeFace:n,onFaceClick:l})]})},w=t(67253);let y="https://1857756846.rsc.cdn77.org/static",b=[{title:"Bill Medley and Jennifer Warnes -",image:{src:y+"/main/animate/slider/01_couple-buddy_holly-thatll_be_the_day.mp4",preview:y+"/main/animate/slider/01_couple-buddy_holly-thatll_be_the_day.png",motion:y+"/main/animate/slider/01_buddy_holly-thatll_be_the_day.mp4",motionPreview:y+"/main/animate/slider/01_buddy_holly-thatll_be_the_day.png"}},{title:"I've Had The Time Of My Life",image:{src:y+"/main/animate/slider/02_washington-i_feel_good.mp4",preview:y+"/main/animate/slider/02_washington-i_feel_good.png",motion:y+"/main/animate/slider/02_i_feel_good.mp4",motionPreview:y+"/main/animate/slider/02_i_feel_good.png"}},{title:"Aqua - Barbie Girl",image:{src:y+"/main/animate/slider/03_meme_boy.mp4",preview:y+"/main/animate/slider/03_meme_boy.png",motion:y+"/main/animate/slider/03_im_getting_too_old_for_this_shit.mp4",motionPreview:y+"/main/animate/slider/03_im_getting_too_old_for_this_shit.png"}}],N={sing:{poster:y+"/hiw/animate/1 vintage/2 Voca People - Happy Birthday (anim2).png",previews:[{src:y+"/hiw/animate/1 vintage/1 James Brown - I Feel Good (anim).mp4",title:"James Brown - I Feel Good"},{src:y+"/hiw/animate/1 vintage/2 Voca People - Happy Birthday (anim).mp4",title:"Voca People - Happy Birthday"},{src:y+"/hiw/animate/1 vintage/3 Reel 2 Real - I Like To Move It (anim).mp4",title:"Reel 2 Real - I Like To Move It"}],faces:[y+"/hiw/animate/1 vintage/1 James Brown - I Feel Good (preview).png",y+"/hiw/animate/1 vintage/2 Voca People - Happy Birthday (preview).png",y+"/hiw/animate/1 vintage/3 Reel 2 Real - I Like To Move It (preview).png"]},family:{poster:y+"/hiw/animate/2 family/2 Kaoma - Lambada (anim).png",previews:[{src:y+"/hiw/animate/2 family/ShowerSinging-I’mABarbieGirl(anim).mp4",title:"Shower Singing - I’m A Barbie Girl"},{src:y+"/hiw/animate/2 family/2 Kaoma - Lambada (anim).mp4",title:"Kaoma - Lambada"},{src:y+"/hiw/animate/2 family/3 The Muppets - About Damn Time (anim).mp4",title:"The Muppets - About Damn Time"}],faces:[y+"/hiw/animate/2 family/ShowerSinging-I’mABarbieGirl(preview)_new.png",y+"/hiw/animate/2 family/2 Kaoma - Lambada (prod preview).png",y+"/hiw/animate/2 family/3 The Muppets - About Damn Time [re] (prod preview).png"]},pet:{poster:y+"/hiw/animate/3 dogs/2 TikTok - Distinguished Gentleman (anim).png",previews:[{src:y+"/hiw/animate/3 dogs/1 Singing Animals - Happy Dog.mp4",title:"Singing Animals - Happy Dog"},{src:y+"/hiw/animate/3 dogs/2 TikTok - Distinguished Gentleman (anim).mp4",title:"TikTok - Distinguished Gentleman"},{src:y+"/hiw/animate/3 dogs/3 Keemstar - I’m Fast AF (anim).mp4",title:"Keemstar - I’m Fast AF.mp4"}],faces:[y+"/hiw/animate/3 dogs/1 Happy dog.jpg",y+"/hiw/animate/3 dogs/2 TikTok - Distinguished Gentleman (preview).png",y+"/hiw/animate/3 dogs/3 Keemstar - I’m Fast AF (preview).png"]}};var _=t(21640),Z=t(73306),P=t(15423),k=t(17168),T=t(15889),A=t(74174);t(2961);var M=t(483),E=t(75834),C=t(80363),I=t(95601),S=t.n(I),V=t(32302),O=t(78890),D=t(6781),L=t(97157),R=t(46926),B=t(27622),F=t(81960);let U=e=>{let{src:a,miniSrc:t,title:n,poster:l}=e,[o,c,d]=(0,C.Z)({muted:!0,loop:!0,playsInline:!0,preload:"auto",src:a,poster:l,className:"block aspect-square w-full"});(0,s.useEffect)(()=>{d.play()},[]);let m=(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(D.Z,{className:(0,r.m6)("h-10 w-10 text-white"),onPress:()=>{c.paused?d.play():d.pause()},children:c.paused?(0,i.jsx)(R.default,{}):(0,i.jsx)(L.default,{})}),(0,i.jsxs)(h.Z,{variant:[],className:"group relative h-10 w-10 overflow-hidden rounded-xl text-white",onPress:c.muted?d.unmute:d.mute,children:[c.muted?(0,i.jsx)(F.default,{className:"transition-transform group-hover:scale-125 group-active:scale-100"}):(0,i.jsx)(B.default,{className:"transition-transform group-hover:scale-125 group-active:scale-100"}),(0,i.jsx)(O.Z,{})]})]});return(0,i.jsxs)(i.Fragment,{children:[o,(0,i.jsxs)("div",{className:(0,r.m6)("absolute bottom-0 left-0 right-0 h-[104px]","bg-gradient-to-t from-black/60","flex items-center justify-between px-6 pb-6 pt-4"),children:[(0,i.jsxs)("div",{className:"mr-8 flex items-center",children:[(0,i.jsx)("img",{src:t,className:(0,r.m6)("h-[56px] w-[56px] rounded-12 ring-2 ring-yellow lg:h-[72px] lg:w-[72px]")}),(0,i.jsxs)("div",{className:"ml-4 overflow-hidden font-manrope",children:[(0,i.jsx)("div",{className:"mb-1 text-xs text-grays100 sm:text-sm",children:"Animation applied:"}),(0,i.jsx)("div",{className:(0,r.m6)("text-ellipsis whitespace-nowrap text-md font-bold","overflow-hidden text-yellow md:whitespace-normal"),children:n})]})]}),m]})]})};var z=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S(),{children:b.map(e=>[e.image.preview,e.image.motionPreview]).flat().map((e,a)=>(0,i.jsx)("link",{rel:"preload",href:e,as:"image"},"poster_".concat(a)))}),(0,i.jsx)(V.Z,{delay:3e4,children:b.map((e,a)=>(0,i.jsx)(E.ck,{title:e.title,children:(0,i.jsx)(U,{src:e.image.src,poster:e.image.preview,miniSrc:e.image.motionPreview,title:e.title})},a))})]});let G=e=>{let{dropzoneProps:a,isUploading:t,onUploadPress:s}=e;return(0,i.jsxs)(M.Z,{...a,clickable:!1,className:(0,n.Z)("container",o().sectionBg,o().headSectionWithPreviews),children:[(0,i.jsxs)("div",{className:(0,n.Z)(o().description,"text-white"),children:[(0,i.jsxs)("h1",{className:o().mainSectionTitle,children:[(0,i.jsx)("span",{children:"Make your photos"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:"talk and dance"})]}),(0,i.jsx)("div",{className:"su",children:"Transform any photo into an animated video with our online face photo animator"}),(0,i.jsxs)(k.Z,{className:"mt-8",children:[(0,i.jsx)(A.Z,{onPress:s,className:"w-full sm:w-auto",isUploading:t,children:"Upload content"}),(0,i.jsx)(T.Z,{href:"/animate/editor?demo=1"})]})]}),(0,i.jsx)(z,{})]})};var H=t(29248),J=t(66196),K=t(90882),W=t(45652);function q(e){let a=(0,s.useMemo)(()=>({tool:"animate"}),[]),t=(0,p.z$)(a),{dropzoneProps:l,isContentUploading:c,openDropzone:v}=(0,_.Z)(),g=()=>{m.iN.userContentUploadTap(t()),v()};return(0,i.jsx)(p.ph.Provider,{value:a,children:(0,i.jsxs)(u.Z,{headerClasses:{root:d().animateHeaderRoot,menu:d().animateHeaderMenu},headerChildren:(0,i.jsx)(K.Z,{className:"opacity-10"}),navigation:(0,i.jsx)(P.Z,{}),logoHref:"/animate",children:[(0,i.jsx)(J.Z,{itemListElements:[{name:"Animate",item:"".concat("https://reface.ai/unboring","/animate")}]}),(0,i.jsxs)("section",{className:(0,n.Z)(o().mainSection,o().animateMainSection,"bg-[#6e3ca0]"),"data-event":"first-screen",children:[(0,i.jsx)(K.Z,{className:"opacity-10"}),(0,i.jsx)(G,{isUploading:c,dropzoneProps:l,onUploadPress:g})]}),(0,i.jsxs)("section",{className:"relative w-full overflow-hidden bg-grays95","data-event":"second-screen",children:[(0,i.jsxs)("div",{className:(0,r.m6)("container -mb-5 pt-8 md:pt-10 lg:pt-20"),children:[(0,i.jsx)("h3",{children:"Explore well-designed styles"}),(0,i.jsx)("div",{className:"flex flex-col gap-8 pt-4 sm:pt-10",children:(0,i.jsx)("div",{className:(0,r.m6)("grid grid-cols-[repeat(auto-fill,minmax(160px,1fr))] justify-between gap-4","sm:grid-cols-[repeat(auto-fill,minmax(235px,1fr))]","lg:gap-8"),children:e.collection.map((e,a)=>{let{item:t}=e;return(0,i.jsx)(w.Z,{motion:t,href:"/animate/editor?motion_id=".concat(t.object_id)},a)})})})]}),(0,i.jsx)("div",{className:(0,r.m6)("absolute bottom-0 flex h-[168px] w-full items-end justify-center pb-8 md:pb-10","bg-gradient-to-t from-grays95/95 to-transparent"),children:(0,i.jsx)(f.Z,{href:"/animate/catalog",children:(0,i.jsx)(h.Z,{variant:["solid","dark","action"],children:"Explore more animations"})})})]}),(0,i.jsx)("section",{className:"anchor-section w-full bg-white",id:"how-it-works","data-event":"how-it-works",children:(0,i.jsxs)("div",{className:(0,n.Z)("container pb-10 pt-8 md:pt-10 lg:pb-40 lg:pt-20"),children:[(0,i.jsx)("h2",{children:"Use cases"}),(0,i.jsxs)("div",{className:o().hiwContainer,children:[(0,i.jsxs)("article",{className:"flex flex-col items-center justify-between md:flex-row",children:[(0,i.jsx)(j,{images:N.sing}),(0,i.jsxs)("div",{className:o().hiwDescription,children:[(0,i.jsx)("div",{className:"h3",children:"Sing even if you can`t"}),(0,i.jsx)("p",{className:"mb-6 mt-4",children:"Create hilarious singing and dancing images with unboring AI animation."}),(0,i.jsxs)("div",{className:"button-group",children:[(0,i.jsx)(h.Z,{onPress:g,variant:"solid","data-event":"upload-btn",children:"Upload photo"}),(0,i.jsxs)(x.Z,{href:"/animate/catalog",className:"ml-6",children:[(0,i.jsx)(Z.cy,{})," Explore catalog"]})]})]})]}),(0,i.jsxs)("article",{className:"flex flex-col-reverse items-center justify-between md:flex-row",children:[(0,i.jsxs)("div",{className:o().hiwDescription,children:[(0,i.jsx)("div",{className:"h3",children:"Add fun to your family gatherings"}),(0,i.jsx)("p",{className:"mb-6 mt-4",children:"Get ready for some laughs! Turn your family portrait into a hilarious animated video of everyone singing your favorite song. Just upload a photo and watch the magic happen."}),(0,i.jsxs)("div",{className:"button-group",children:[(0,i.jsx)(h.Z,{onPress:g,variant:"solid","data-event":"upload-btn",children:"Upload photo"}),(0,i.jsxs)(x.Z,{href:"/animate/catalog",className:"ml-6",children:[(0,i.jsx)(Z.cy,{})," Explore catalog"]})]})]}),(0,i.jsx)(j,{images:N.family,directionClassName:"flex-col md:flex-row-reverse"})]}),(0,i.jsxs)("article",{className:"flex flex-col items-center justify-between md:flex-row",children:[(0,i.jsx)(j,{images:N.pet}),(0,i.jsxs)("div",{className:o().hiwDescription,children:[(0,i.jsx)("div",{className:"h3",children:"Create a duet with your pet"}),(0,i.jsx)("p",{className:"mb-6 mt-4",children:"We know how much you love your furry friend. With thousands of pet photos from your gallery, our AI technology can animate them into funny videos."}),(0,i.jsxs)("div",{className:"button-group",children:[(0,i.jsx)(h.Z,{onPress:g,variant:"solid","data-event":"upload-btn",children:"Upload photo"}),(0,i.jsxs)(x.Z,{href:"/animate/catalog",className:"ml-6",children:[(0,i.jsx)(Z.cy,{})," Explore catalog"]})]})]})]})]})]})}),(0,i.jsx)(W.ZP,{plans:e.plans,className:"bg-[#D5DD8B]"}),(0,i.jsx)(H.Z,{plans:e.plans})]})})}},42592:function(e,a,t){"use strict";var i=t(3827);t(64090);var s=t(29785),n=t(53542);a.Z=e=>(0,i.jsx)(n.Z,{...e,className:"inline-flex h-10 items-center text-[16px] font-normal leading-[24px]",children:(0,i.jsx)(s.Z,{variant:"iconText",children:e.children})})},67253:function(e,a,t){"use strict";t.d(a,{Z:function(){return j}});var i=t(3827),s=t(64090),n=t(51367),r=t(29785),l=t(50529),o=t(93176),c=t(53542),d=t(78890),m=t(6781),p=t(97157),u=t(46926),h=t(27622),f=t(81960),x=t(51111);let v=e=>{let[a,t]=(0,s.useState)(!0),[n,l]=(0,s.useState)(!1),[o,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let a=e.video.current,i=()=>{t(null==a?void 0:a.paused),l(!0)};return null==a||a.addEventListener("pause",i),null==a||a.addEventListener("play",i),()=>{null==a||a.removeEventListener("pause",i),null==a||a.removeEventListener("play",i)}},[e.video]),(0,i.jsxs)("div",{className:"absolute left-4 right-4 top-4 flex justify-between",children:[(0,i.jsx)(m.Z,{className:"h-10 w-10 text-white",onPress:()=>{var a,t,i;let s=null===(a=e.video.current)||void 0===a?void 0:a.paused;e.video.current&&(0,x.Z)(e.video.current),s?null===(t=e.video.current)||void 0===t||t.play():null===(i=e.video.current)||void 0===i||i.pause()},"aria-label":"Play/pause animation preview",children:a?(0,i.jsx)(u.default,{}):(0,i.jsx)(p.default,{})}),n&&(0,i.jsxs)(r.Z,{variant:[],className:"group relative h-10 w-10 overflow-hidden rounded-xl text-white",onPress:()=>{e.video.current&&(e.video.current.muted=!e.video.current.muted,c(e.video.current.muted))},"aria-label":"Toggle video muted",children:[!o&&(0,i.jsx)(h.default,{className:"transition-transform group-hover:scale-125 group-active:scale-100"}),o&&(0,i.jsx)(f.default,{className:"transition-transform group-hover:scale-125 group-active:scale-100"}),(0,i.jsx)(d.Z,{})]})]})},g=(0,s.forwardRef)((e,a)=>{let{motion:t,href:d,isReadonly:m,...p}=e,u=(0,s.useRef)(null),h=(0,o.z$)({content:{id:t.video_id,content_source:"catalog",user_content_format:"video",url:t.url,title:t.title}});return(0,i.jsxs)("div",{ref:a,...p,className:(0,n.m6)("group/card relative aspect-square overflow-hidden rounded-[20px]",p.className),"data-id":t.object_id,children:[!m&&(0,i.jsx)(v,{video:u}),(0,i.jsx)("video",{ref:u,src:t.url,poster:t.preview_image_url,className:"pointer-events-none h-full w-full object-cover",loop:!0,controls:!1,playsInline:!0,preload:"none"}),(0,i.jsxs)("div",{className:(0,n.m6)("absolute flex h-20 w-full flex-col justify-end rounded-b-[20px] bg-gradient-to-t from-black","bottom-0"),children:[(0,i.jsx)("div",{className:(0,n.m6)("absolute bottom-4 left-6 right-6 overflow-hidden overflow-ellipsis whitespace-nowrap text-white",d&&"transition-opacity group-hover/card:opacity-0"),children:t.title}),d&&(0,i.jsx)("div",{className:(0,n.m6)("absolute flex w-full flex-col justify-end p-4","translate-y-full transition-all duration-300 group-hover/card:translate-y-0"),children:(0,i.jsx)(c.Z,{href:d,onClick:()=>l.iN.contentTap(h()),prefetch:!1,children:(0,i.jsx)(r.Z,{variant:["action","solid"],size:"md",className:"w-full",children:"Use animation"})})})]})]})});g.displayName="MotionCard";var j=g},2983:function(e,a,t){"use strict";var i=t(3827);t(64090);var s=t(80363),n=t(34734),r=t(94499),l=t.n(r),o=t(29785),c=t(78890),d=t(6781),m=t(97157),p=t(46926),u=t(27622),h=t(81960);a.Z=e=>{let{src:a,poster:t,title:r,className:f,width:x=480,height:v=320,overlayControls:g,loop:j,playsInline:w,muted:y=!0}=e,[b,N,_]=(0,s.Z)({src:a,type:"video/mp4",className:l().video,muted:y,preload:"none",loop:j,poster:t,width:x,height:v,playsInline:w}),Z=()=>{N.paused?_.play():_.pause()};return(0,i.jsxs)("div",{className:(0,n.Z)(l().root,f),children:[b,(0,i.jsxs)("div",{className:(0,n.Z)(l().toolbar,g?l().toolbarOverlay:"bg-gradient-to-t from-black/60"),children:[!g&&(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(d.Z,{className:(0,n.Z)("h-10 w-10 text-white"),onPress:Z,"aria-label":"play/pause video",children:N.paused?(0,i.jsx)(p.default,{}):(0,i.jsx)(m.default,{})}),!N.paused&&(0,i.jsxs)(o.Z,{variant:[],className:"group relative h-10 w-10 overflow-hidden rounded-xl text-white",onPress:N.muted?_.unmute:_.mute,"aria-label":"mute/unmute audio",children:[N.muted?(0,i.jsx)(h.default,{className:"transition-transform group-hover:scale-125 group-active:scale-100"}):(0,i.jsx)(u.default,{className:"transition-transform group-hover:scale-125 group-active:scale-100"}),(0,i.jsx)(c.Z,{})]})]}),(0,i.jsx)("div",{className:"text-white",children:r})]}),g&&(0,i.jsx)(d.Z,{overlay:!0,className:(0,n.Z)("h-10 w-10 text-white",N.playing&&"opacity-0 group-hover:opacity-100"),onPress:Z,"aria-label":"play/pause video",children:N.paused?(0,i.jsx)(p.default,{}):(0,i.jsx)(m.default,{})})]})}},21640:function(e,a,t){"use strict";var i=t(64090),s=t(48863);let n={"image/jpeg":[".jpg",".jpeg"],"image/png":[".png"]};a.Z=()=>{let e=(0,i.useRef)(null),[a,t]=(0,i.useState)(!1);return{dropzoneProps:{href:"/animate/editor",onDropValidation:(0,i.useCallback)(async()=>!0,[]),accept:n,ref:e,onStartUpload:()=>t(!0),onCancel:()=>t(!1),onError:()=>t(!1),onContentUploaded:(0,s.Z)("/animate/editor")},openDropzone:()=>{e.current.open()},isContentUploading:a}}},48863:function(e,a,t){"use strict";var i=t(64090),s=t(50529),n=t(93176),r=t(91055),l=t(33559),o=t(24201),c=t(91730),d=t(18596),m=t(84654);a.Z=e=>{let{isSignedIn:a,profile:t,triggerSignIn:p}=(0,r.Z)(),u=(0,c.tv)(),h=(0,i.useContext)(n.ph),f=(0,n.z$)(h);return async(t,i)=>{let n,{response:r,isVideoExtension:c,extension:p}=t,{path:h}=(0,m.Z)(r.url),x=Object.assign({},"object"==typeof i?{start_time:i[0],end_time:i[1]}:[],{url:h});n=a?c?d.yJ.videoParseApiV1MediaVideosParsePost(x):d.yJ.imageParseApiV1MediaImagesParsePost(x):c?d.yJ.videoParseAnonymousApiV1MediaVideosParseAnonymousPost(x):d.yJ.imageParseAnonymousApiV1MediaImagesParseAnonymousPost(x);let v=await (0,o.el)(n),g=c?{contentType:"video",id:v.video.id}:{contentType:"image",id:v.image.id};a||l.W.save(g.id,v),s.iN.userContentUploadSuccess(f({file_format:p,content_faces:{found:c?v.video.persons.length:v.image.persons.length}}));let{contentType:j,id:w}=g,y=/[?&]/.test(e)?"&":"?";return u.push("".concat(e).concat(y,"user_content_id=").concat(j,"_").concat(w).concat(a?"":"&anon=true")),g}}},15423:function(e,a,t){"use strict";var i=t(3827),s=t(53217),n=t(849),r=t(73306);a.Z=e=>{let{usecases:a}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.O,{href:"/animate/editor#upload",children:[(0,i.jsx)(r.Ur,{}),"Add photo"]}),(0,i.jsxs)(n.O,{href:"/animate/catalog",children:[(0,i.jsx)(r.Wh,{}),"Content catalog"]}),(0,i.jsx)(s.Z,{usecases:a})]})}},15889:function(e,a,t){"use strict";var i=t(3827),s=t(64090),n=t(45425),r=t(34734),l=t(50529),o=t(93176),c=t(29785),d=t(53542),m=t(50881),p=t(42965),u=t(41764);a.Z=e=>{let{className:a,...t}=e,h=(0,s.useContext)(o.ph),f=(0,o.z$)(h),x=(0,n.Z)((0,u.sp)("sm"),!1);return(0,m.VR)()?(0,i.jsx)(d.Z,{...t,legacyBehavior:!0,children:(0,i.jsx)("a",{target:"_parent",className:"rounded-20",onClick:()=>{l.iN.demoNavigateTap(f({id:1}))},children:(0,i.jsxs)(c.Z,{variant:["iconText","action"],className:(0,r.Z)("w-auto",a),size:x?"lg":void 0,tabIndex:-1,children:[(0,i.jsx)(p.default,{})," See demo"]})})}):null}},64526:function(e,a,t){"use strict";var i=t(3827);t(64090);var s=t(20703),n=t(51367);a.Z=e=>{let{faces:a,activeFace:t,onFaceClick:r}=e;return(0,i.jsx)("div",{className:"mx-8 flex flex-row gap-4 py-2 md:flex-col",children:a.map((e,a)=>(0,i.jsx)("div",{role:"button",className:(0,n.m6)("overflow-hidden rounded-8 border-2 border-transparent",a===t&&"border-[#80bfff]"),onClick:()=>r(a),"data-event":"face-switch",children:(0,i.jsx)(s.default,{src:e,alt:"Face ".concat(a),width:32,height:32})},a))})}},2961:function(e,a,t){"use strict";t(3827),t(64090),t(483),t(85881),t(83513),t(52846)},94499:function(e){e.exports={root:"VideoMediumPlayer_root__RsN7V",video:"VideoMediumPlayer_video__1V_M1",toolbar:"VideoMediumPlayer_toolbar__08K5V",toolbarOverlay:"VideoMediumPlayer_toolbarOverlay__MEzW7"}}},function(e){e.O(0,[8054,6695,1866,8418,8996,9295,703,4979,5918,2352,8544,7249,4592,8568,4585,6344,938,8126,2971,9119,5913,1744],function(){return e(e.s=82384)}),_N_E=e.O()}]);