1import{g as h,c as Wt,a as Q,b as vt,E as Qe,s as j,y as He,R as Je,bE as Yt,f as Kt,d as ft,bI as Xt,i as es,bJ as ts,u as gt,H as ss,_ as as}from"./Cq05Gqjl.js";import{e as mt,f as oe,g as wt,r,c as v,a as e,m as ge,x as We,w as R,i as V,b as g,k as Ze,d as T,t as M,A as $,B as q,F as ze,v as ut,n as ct,q as pt,o as p,J as os,u as is,z as ns,j as Ie,l as ls}from"./CsJ3pi86.js";/* empty css */import{E as rs}from"./Dik1UWgF.js";import{E as ds,b as us}from"./Dc38fa1H.js";import{E as cs}from"./CyuZigaM.js";import{E as ps,a as vs}from"./BBAvF9ZF.js";import{E as fs}from"./Cj1p2ZkO.js";import{E as gs}from"./Bm8rBTe8.js";import{v as ms}from"./Cft3HT9h.js";import{E as Z}from"./X-2oddpb.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{i as ws}from"./CQjnReas.js";import{u as ht}from"./B0yPKXn8.js";import"./Bw8uRMjv.js";import{_ as hs}from"./CutncLpd.js";import{G as xs}from"./CwpTmyIL.js";/* empty css */import{u as bs}from"./Cbtrofxk.js";import{u as ys}from"./C2N0H6NB.js";/* empty css *//* empty css */import{u as ks}from"./CqX7tjVq.js";import{_ as xt}from"./DlAUqK2U.js";import{F as _s}from"./VNpF3HDG.js";import{_ as Cs,a as Ts,b as Ls,c as zs,d as Is}from"./C4MM0pqC.js";import{_ as Ms}from"./DpjTgo1V.js";import{_ as Ss}from"./D58-L26Y.js";import"./BUwcFHhk.js";import"./CZEbddMG.js";import"./WjYDEHNG.js";import"./D6ZOdtSK.js";import"./BIT02HhW.js";import"./CGxOIVRl.js";import"./DmQVMYOn.js";import"./C6gRA7zP.js";import"./C0O1LYwq.js";import"./Du-Wcawk.js";import"./tfRKMNcx.js";import"./CtgxFsTS.js";import"./Z9sPedY9.js";import"./CS_dwY8V.js";import"./CIqB2974.js";import"./bvVmwgqf.js";import"./DWc827Ju.js";import"./BTGg5KF0.js";import"./DC-LiI81.js";import"./vJiSGBS3.js";const Us={class:"w-[90%] max-[768px]:w-[100%] max-w-[1200px] h-[auto] m-auto border-2 pt-[43px] pb-[43px] rounded-[30px]"},js={class:"max-[768px]:w-[100%] max-[1024px]:w-[90%] w-[90%] h-[46px] m-auto rounded-[50px] rounded-full bg-gray-100"},Vs={class:"flex content-center w-full h-full justify-around p-0.5"},Ps={key:0,class:"w-full h-auto flex flex-wrap justify-around md:mt-[102px] mt-[50px] relative"},Es={class:"space-y-6 xl:w-[462px] lg:w-[80%] h-auto w-[90%] mb-10"},As={class:"bg-white rounded-xl md:p-5 px-2 py-5 shadow-sm border border-gray-100 relative"},Ds={class:"md:pt-1 pt-4 space-y-3"},Bs={key:1,class:"md:w-full w-full flex justify-between items-center"},Rs={class:"relative"},$s=["src"],Ns={style:{},t:"1731056312656",class:"icon absolute top-[50%] left-[50%] transform translate-x-[-50%] translate-y-[-50%] z-10",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6673",width:"28",height:"28","data-v-5b9ea975":""},qs={key:2,class:"md:w-full w-full flex justify-between items-center"},Os=["src"],Gs={class:"bg-white rounded-xl md:p-5 px-2 py-5 shadow-sm border border-gray-100 relative"},Fs={class:"md:pt-1 pt-4 space-y-3"},Hs={key:1,class:"md:w-full w-full flex justify-between items-center"},Js={class:"w-[50px] h-[50px] rounded-[50%] overflow-hidden"},Zs=["src"],Qs={class:"bg-white rounded-xl md:p-5 px-2 py-5 shadow-sm border border-gray-100 relative"},Ws={class:"md:pt-1 pt-4 space-y-3"},Ys={class:"mb-3 bg-gray-50 rounded-md"},Ks={class:"flex items-center gap-3"},Xs={key:0,class:"w-2.5 h-2.5 rounded-full bg-[#18181b]"},ea={class:"font-semibold text-sm"},ta={class:"text-[#18181b] font-semibold text-sm"},sa={class:"w-full flex md:flex-row flex-col",style:{"margin-top":"20px"}},aa={key:0,class:"inline-flex items-center justify-center cursor-not-allowed whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-white h-10 px-4 py-2 w-full gap-2 bg-[#18181b] hover:bg-[#18181b]/90"},oa={key:2,class:"inline-flex items-center justify-center cursor-not-allowed whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-white h-10 px-4 py-2 w-full gap-2 bg-[#18181b] hover:bg-[#18181b]/90"},ia={class:"sel-loading-box"},na={class:"relative xl:w-[500px] lg:w-[80%] w-[90%] md:h-[500px] h-auto flex justify-center items-center"},la={class:"relative w-full"},ra=["src"],da={class:"clip-bar absolute bottom-0 left-0 right-0 z-10"},ua={class:"minutes-line"},ca={class:"play-btn"},pa={class:"clip-time"},va={class:"time-left"},fa={class:"add-plus",style:{"margin-right":"30px"}},ga=["fill"],ma=["fill"],wa={class:"time-right"},ha={class:"add-plus"},xa=["fill"],ba=["fill"],ya={key:1,class:"w-full min-h-[500px] flex flex-col items-center mt-[20px] relative"},ka={class:"w-full flex justify-around md:justify-between items-center mb-6 md:px-6"},_a={key:0,class:"loading mt-10 md:mt-0"},Ca={key:1,class:"w-full md:h-[500px] h-auto flex flex-wrap overflow-y-auto mt-[20px] p-3 relative"},Ta={class:"grid grid-cols-1 w-full md:h-[280px] h-auto gap-6 sm:grid-cols-2 lg:grid-cols-3"},La={class:"bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-md transition-shadow"},za={class:"relative"},Ia={class:"w-full h-40 bg-gray-800 flex items-center justify-center"},Ma={class:"text-center"},Sa={class:"text-white"},Ua={class:"p-4"},ja={class:"mt-4"},Va={class:"w-full bg-gray-200 rounded-full h-2"},Pa={class:"bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-md transition-shadow"},Ea={class:"relative w-full h-40 bg-gradient-to-t from-black flex justify-center"},Aa=["onEnded","src"],Da=["onClick"],Ba={class:"p-4"},Ra={class:"text-lg font-medium text-gray-900 truncate"},$a={class:"mt-1 text-sm text-gray-500"},Na={class:"mt-4 flex space-x-2"},qa=["onClick"],Oa={key:1,class:"flex-1 flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"},Ga=["onClick"],Fa={class:"bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-md transition-shadow"},Ha={class:"p-4"},Ja={class:"text-lg font-medium text-gray-900 truncate"},Za={class:"mt-1 text-sm text-gray-500"},Qa={class:"mt-4 flex space-x-2"},Wa=["onClick"],Ya={key:2,class:"w-full min-h-[500px] mt-[20px] pt-20 p-3 text-[16px] relative text-center"},Ka={class:"w-[330px] mx-auto text-center mt-4"},Xa={class:"container-video-player"},eo=["src"],to={class:"demons-tration"},so={t:"1717653840438",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"26923","data-spm-anchor-id":"a313x.search_index.
10.i16.ed013a817xmazH",width:"50",height:"50",style:{cursor:"pointer"}},ao={t:"1717653874473",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"28389",width:"50",height:"50",style:{cursor:"pointer"}},oo={class:"tration-time"},io={class:"time-left"},no={class:"time-right"},lo={class:"edit-video-time"},ro={class:"time-start",style:{color:"black"}},uo={class:"time-end",style:{color:"black"}},co={class:"footer-button"},po="https://cdn.videofaceswap.io/retain/videofaceswap/video/video-face-swap.mp4",vo=mt({__name:"videofaceswap",props:["msg2"],setup(bt,{emit:Me}){const{isPaySuccess:me}=gt(),{detectVideo:ie}=ks(),Ye=r(!1),x=r(null),Se=r(null),we=r(!1),W=Me,Ue=r(!1),je=r(null),Ve=r(null);ys("(max-width: 768px)");const he=s=>{const t=je.value,l=Ve.value,a=o=>{if(!o)return!1;if(o.contains(s.target))return!0;const n=document.querySelectorAll(".dropdownRefitem");for(let c of n)if(c.contains(s.target))return!0;return!1};!a(t)&&!a(l)&&(Ue.value=!1)},N=r(null),ne=r([]);function Pe(s){N.value===s.id&&(N.value=null)}const le=async s=>{await ct();const t=ne.value.find(l=>l.id===s.id);if(t&&t.el)if(N.value===s.id)t.el.pause(),N.value=null;else{const l=ne.value.find(a=>a.id===N.value);l&&l.el&&l.el.pause(),t.el.play(),N.value=s.id}},{trimVideo:re}=bs(),Ee=()=>{W("showNoPointsPop");const s=Number(E.value);xe(s,H.value,0),j("buyQuickly-button",{type:"click",user_id:h("loginUserId")||null})},E=ht("singInCredits"),{handleCreditsChange:xe}=ft({tracking:{trial:{event:"double-holiday",package:"drop-in-trial"},new:{event:"double-holiday",package:"new-user"},nonPayment:{event:"double-holiday",package:"paid-subscriber"}}});oe(me,s=>{s&&ae()}),wt(async()=>{function s(){we.value||(we.value=!0,ct(()=>{const o=Se.value;o&&(o.src=po,o.play().catch(()=>{}))}))}if("IntersectionObserver"in window){const o=new IntersectionObserver((n,c)=>{n.forEach(f=>{f.isIntersecting&&(s(),c.unobserve(f.target))})},{threshold:.5});x.value&&o.observe(x.value)}else setTimeout(s,2e3);document.addEventListener("mousedown",he),ye(),window.addEventListener("resize",ye);const t=new URL(window.location.href);h("loginUserToken")?k.value=!0:k.value=!1;const a=t.searchParams.get("xy_access_token");if(a)Wt("loginUserToken",JSON.stringify(a),7);else{const o=h("loginUserToken");if(h("loginUserEmail"),!o)return;if(de()){Q("loginUserToken"),Q("loginUserEmail"),localStorage.removeItem("userEmail");return}await ae()}});function de(){const s=localStorage.getItem("userEmail"),t=localStorage.getItem("tokenTimestamp");return!s||!t?!0:(Date.now()-parseInt(t))/(1e3*60*60*24)>30?(localStorage.removeItem("token"),localStorage.removeItem("tokenTimestamp"),!0):!1}const be=r(!1),Y=r(!0),ye=()=>{const s=navigator.userAgent.toLowerCase();Y.value=!(/mobile|android|iphone|ipod|ipad|blackberry|windows phone/i.test(s)||window.innerWidth<=769)},O=r("video"),ke=r(null),m=r({}),w=r(!1),d=r(""),K=r(1),z=r(1),_e=r(1),y=r(3),Ae=r(!1),Ce=r(!1),De=r(""),u=r([0,10]),A=r(100);var G=[];const S=pt({start:0,end:0}),X=r([0,0]),Ke=r([0,0]),Be=r(0),F=r(null),k=r(!0),yt=[{value:!1,label:"Normal",description:"2 crédits/s"},{value:!0,label:"HD",description:"6 crédits/s"}];var Xe=r({});const H=r({email:"",gift_credits:0,is_discount:0,is_purchased:0,purchasePoints:0,rewardPoints:0,status:0,user_id:""}),D=r(!1),ee=r(!1),te=r(null);var U=null;const Te=r(!1),P=r(""),Re=r(!0),_=pt({list:[]}),$e=[],se=r(!1),et=r(-1);oe(k,async(s,t)=>{const l=h("loginUserToken"),a=ve();a>0?P.value=` ( ${a} credits ) `:P.value="",!l&&s&&(k.value=!1,be.value=!0)});var ue=null;const tt=s=>{s===2&&(K.value=s,J.value=1,qe(!1),typeof window<"u"&&ke.value?.scrollIntoView({behavior:"smooth"})),s===1&&(K.value=s,D.value=!1,d.value="",m.value={},z.value=1,_e.value=1,P.value="",Le.value="")},st=r(""),at=s=>{if(_e.value=2,!s.raw.type.startsWith("image/"))return y.value=3,Z({title:"",message:"Please upload the avatar image in the correct format.",type:"warning",duration:3e3}),!1;d.value=URL.createObjectURL(s.raw),j("upload-photo",{status:"click"}),ue=s},Le=r(""),ce=r(!1),Ne=r(""),pe=s=>{const t=h("loginUserToken");if(!/\.(mp4|mov|gif|webp)$/i.test(s.raw.name)){Qe.error("Unsupported file format. Please upload MP4, MOV, GIF, or WEBP."),j("upload-video-error",{from:"video",type:s.raw.name,status:"click"});return}if(s.raw.type==="image/gif"||s.raw.type==="image/webp"){u.value[0]=0,u.value[1]=0,A.value=0,ce.value=!0,z.value=2,D.value=!0,z.value=4,
1Le.value=s.raw,D.value=!1,m.value=s;const a=new FileReader;a.onload=o=>{const n=new Blob([o.target.result],{type:s.raw.type});Ne.value=URL.createObjectURL(n)},a.readAsArrayBuffer(s.raw),s.raw.type==="image/gif"?new xs(URL.createObjectURL(s.raw)).getInfo(s.raw).then(c=>{const f=c.images.length/10;P.value=` ( ${Math.ceil(f*2)<2?2:Math.ceil(f*2)} credits ) `}):s.raw.type==="image/webp"&&(P.value="");return}if(ce.value=!1,z.value=2,D.value=!0,z.value=3,Le.value=s.raw,D.value=!1,m.value=s,typeof document<"u"){const a=document.createElement("video");a.className="video-player",a.style.width="100%",a.style.height="100%",a.style.backgroundColor="#5d5b5b",a.style.borderRadius="20px",te.value&&(te.value.innerHTML="",te.value.appendChild(a),te.value.style.backgroundImage="none",te.value.style.background="transparent");const o=new FileReader;o.onload=n=>{const c=new Blob([n.target.result],{type:s.raw.type});a.src=URL.createObjectURL(c),De.value=URL.createObjectURL(c),st.value=URL.createObjectURL(c)},o.readAsArrayBuffer(s.raw),a.addEventListener("loadeddata",function(){const n=Math.floor(a.duration);t?(u.value=[0,n],G=[0,n]):(u.value=[0,5],G=[0,5]),A.value=n;const c=ve();c>0&&h("loginUserToken")?P.value=` ( ${c} credits ) `:P.value=""}),a.addEventListener("ended",function(n){Te.value=!1}),j("upload-video",{status:"click"}),U=a}},ve=()=>m.value.raw===void 0||m.value.raw===null||!U?-1:Math.floor(u.value[1]-u.value[0])*(k.value?6:2);async function ae(){const s=h("loginUserToken");let t=!!s;const a=await vt(t,s?"ai_videofaceswap":"ai_videofaceswap_faceswap");if(a&&a.code==200)return Xe.value=a.data,H.value=a.data,t&&W("getDayCredits",Xe.value),a.data;be.value=!0,Q("loginUserToken"),Q("loginUserEmail"),localStorage.removeItem("userEmail"),Qe.warning("Please log in to continue."),setTimeout(()=>{console.log("reload")},3e3)}const kt=(s,t)=>{t=t||"";const l=1024,a=atob(s.split(",")[1]),o=[];for(let n=0;n<a.length;n+=l){const c=a.slice(n,n+l),f=new Array(c.length);for(let b=0;b<c.length;b++)f[b]=c.charCodeAt(b);const C=new Uint8Array(f);o.push(C)}return new Blob(o,{type:t})},_t=(s,t)=>new File([s],t,{type:s.type}),Ct=s=>new Promise((t,l)=>{const a=new Image;a.onload=()=>{const o=document.createElement("canvas"),n=o.getContext("2d");o.width=a.width+a.width*.4,o.height=a.height+a.height*.4,n.fillStyle="#ffffff",n.fillRect(0,0,o.width,o.height),n.drawImage(a,(o.width-a.width)/2,(o.height-a.height)/2);const c=o.toDataURL("image/png");c.length<30?t(s):t(c)},a.src=s}),Tt=s=>new Promise((t,l)=>{var a=new Image;a.onload=function(){var o=3072,n=3072;if(a.width>o||a.height>n){var c=Math.min(o/a.width,n/a.height),f=a.width*c,C=a.height*c,b=document.createElement("canvas"),L=b.getContext("2d");b.width=f,b.height=C,L.drawImage(a,0,0,f,C);var i=b.toDataURL("image/jpeg");t(i)}else t(s)},a.src=s});async function Lt(s,t,l){const a=ve(),o=new FileReader;o.readAsArrayBuffer(s.raw),o.onload=async b=>{const L=new Blob([b.target.result],{type:s.raw.type}),i=URL.createObjectURL(L);let I=await Ct(i),B=await Tt(I);const Fe=kt(B,s.raw.type),Qt=_t(Fe,s.raw.name);s.raw=Qt};const n=h("loginUserToken");let c=!!n,f=n?"ai_videofaceswap":"ai_videofaceswap_faceswap";const C=await Xt({imageUrl:s.raw,videoUrl:t,duration:zt(a),oldOrNew:c,app_id:f,face_enhance:k.value});if(C.code===200){if(C.data.job_id,j("swap-now",{video_type:k.value,status:"success",interface:"create"}),ee.value=!1,l.toString().replace("trim-",""),!n){let b=ot();b+=1,Mt(b)}await ae(),J.value=1,qe(!0)}else ee.value=!1,y.value=3,Z({title:"",message:C.msg||"Request timed out, please try again!",type:"warning",duration:3e3}),j("swap-now",{video_type:k.value,status:"failed",msg:C.msg,interface:"create"})}function zt(s){const l=new TextEncoder().encode(s);let a="";return l.forEach(o=>{a+=String.fromCharCode(o)}),btoa(a)}function It(){return new Date().toISOString().split("T")[0]}function ot(){return It(),localStorage.getItem("lastUsedDateForVideo"),parseInt(localStorage.getItem("usageCountForVideo"),10)||0}function Mt(s){localStorage.setItem("usageCountForVideo",s)}function St(){const s=new Date,t=s.getFullYear(),l=String(s.getMonth()+1).padStart(2,"0"),a=String(s.getDate()).padStart(2,"0"),o=`${t}-${l}-${a}`;return localStorage.getItem("lastVisitDateForNewToolsNotification")!==o?(localStorage.setItem("lastVisitDateForNewToolsNotification",o),!0):!1}const Ut=async()=>{y.value=1;const s=h("loginUserToken");if(ot(),j("swap-now",{status:"click",video_type:k.value,token:s}),s){y.value=2;let l=await ae(),a=l.purchasePoints+l.rewardPoints;const o=ve();if(ee.value===!0)return;if(o>a){j("double-holiday",{status:"show",form:"popup"}),y.value=3;const n=Number(E.value);xe(n,H.value,o-a);return}}else{W("event"),D.value=!1,y.value=1;return}const t=u.value[0]===0&&u.value[1]===A.value;if(u.value[1]-u.value[0],s){if(H.value.user_id==="989520"){if(!await ie(m.value.raw,s,H.value,He,Je,()=>{y.value=1},ue.raw))return}else if(!ws(H.value.user_id)){if(!await ie(m.value.raw,s,H.value,He,Je,()=>{y.value=1},ue.raw))return}}else if(!await ie(m.value.raw,s,H.value,He,Je,()=>{y.value=1},ue.raw))return;if(St()&&setTimeout(()=>{Ye.value=!0},3e3),t){if(!(m.value.raw.size/1024/1024<500)){Z({title:"",message:"The size of the uploaded video cannot exceed 500MB!",type:"warning",duration:3e3});return}it(m.value.raw,m.value.raw.name,m.value.raw.type)}else Nt()};async function it(s,t,l){let o=h("loginUserToken")?"ai_videofaceswap":"ai_videofaceswap_faceswap";ee.value=!0;const n=await Yt(s,t,l,o),c=/https?:\/\/[^\s]+?\.(?:mp4|avi|mov|wmv|flv|mkv|gif|webp)(?=\?|$)/gi;let f;
1n.uploadUrl&&(f=n.uploadUrl.match(c)[0].replace(/mrpa-chatpdf.oss-us-west-1.aliyuncs.com/,"cdn.videofaceswap.io")),n.status===!0?Lt(ue,f,s.name):(ee.value=!1,y.value=3,D.value=!1,Z({title:"",message:n.msg||"Please switch video format",type:"warning",duration:3e3}))}const jt=s=>{J.value=s,qe()},J=r(1),nt=r(20);async function qe(s=!1){typeof window<"u"&&ke.value?.scrollIntoView({behavior:"smooth"});const t=h("loginUserToken");let l=!!t,a=t?"ai_videofaceswap":"ai_videofaceswap_faceswap";Ae.value=!0;try{Re.value=!0;const o=await Kt(l,a,J.value);Re.value=!1,o.code===200&&(s&&(K.value=2),y.value=1,_.list=o.data.data,nt.value=o.data.totalCount,Ae.value=!1,await Promise.all(_.list.map(n=>{if(n.status===1)return Vt(n,J.value)})))}catch{Re.value=!1}ae()}async function Vt(s,t){const l=h("loginUserToken");let a=!!l,o=l?"ai_videofaceswap":"ai_videofaceswap_faceswap";const n=s.id,c=s.job_id;let f=0;$e.push({id:n,jobId:c,updateProgress:null});const C=async()=>{try{if(document.hidden){await Oe(15e3),await C();return}const L=await es(c,a,o);if(L.data.status===0){const i=_.list.findIndex(I=>I.id===n);_.list[i].face_swap_url=L.data.face_swap_url,_.list[i].thumbnail_path=L.data.thumbnail_path,_.list[i].status=L.data.status,j("swap-now",{status:"success",video_type:k.value,interface:"getStatus",msg:"success"})}else if(L.data.status===1){const i=_.list.find(I=>I.job_id===c);if(i){i.progress=L.data.progress;const I=new Date,B=new Date(i.created_at),Fe=3600*1e3;I-B>Fe?i.exceededTimeValue=!0:i.exceededTimeValue=!1}if(t===J.value)await Oe(15e3),await C();else return}else if(L.code===400){const i=_.list.findIndex(I=>I.id===n);_.list[i].status=2,ae(),j("swap-now",{status:"failed",video_type:k.value,msg:L.msg,interface:"getStatus"})}}catch{if(f+=1,f>=3){const i=_.list.findIndex(I=>I.id===n);i!==-1&&(_.list[i].status=2,j("swap-now",{status:"failed",video_type:k.value,msg:"Request failed 3 times, stopping task",interface:"Inquire"}))}else await Oe(15e3),await C()}},b=$e.findIndex(L=>L.id===n);b!==-1&&($e[b].updateProgress=C),await C()}const Oe=s=>new Promise(t=>setTimeout(t,s)),lt=async(s,t)=>{const l=h("loginUserToken");let a=!!l,o=l?"ai_videofaceswap":"ai_videofaceswap_faceswap";se.value=!0,et.value=t;try{if((await ts(s.id,a,o)).code==200){const c=_.list.findIndex(f=>f.id===s.id);_.list.splice(c,1),se.value=!1,y.value=3,Z({title:"",message:"Delete Successfully!",type:"success",duration:3e3})}else y.value=3,Z({title:"",message:"Delete Failed!",type:"warning",duration:3e3})}catch(n){console.error("faceInfo---",n),se.value=!1,y.value=3,Z({title:"",message:"Delete Failed!",type:"warning",duration:3e3})}},Pt=(s,t)=>{const l=_.list.findIndex(o=>o.id===s.id);_.list[l].downloadLoading=!0,se.value=!0,et.value=t;const a=s.job_id+".mp4";fetch(s.face_swap_url).then(o=>o.blob()).then(o=>{if(typeof window<"u"){const n=window.URL.createObjectURL(o),c=document.createElement("a");c.style.display="none",c.href=n,c.download=a,document.body.appendChild(c),c.click(),window.URL.revokeObjectURL(n),document.body.removeChild(c),se.value=!1,_.list[l].downloadLoading=!1}}).catch(o=>{se.value=!1,y.value=3,Z({title:"",message:"Download Failed!",type:"warning",duration:3e3})}),j("swap-now",{status:"download"})},Et=()=>{U&&(U.play(),Te.value=!0)},At=()=>{U&&(U.pause(),Te.value=!1)};function rt(s){const t=Math.floor(s/3600).toString().padStart(2,"0"),l=Math.floor(s%3600/60).toString().padStart(2,"0"),a=Math.floor(s%60).toString().padStart(2,"0");return`${t}:${l}:${a}`}const Dt=()=>{u.value[0]+1<A.value&&u.value[0]+1<u.value[1]&&(u.value[0]++,U.currentTime=u.value[0])},Bt=()=>{u.value[0]-1>=0&&(u.value[0]--,U.currentTime=u.value[0])},Rt=()=>{u.value[1]+1<A.value&&(u.value[1]++,U.currentTime=u.value[1])},$t=()=>{u.value[1]-1>=1&&u.value[1]-1>u.value[0]&&(u.value[1]--,U.currentTime=u.value[1])};async function Nt(s,t){ee.value=!0,`${m.value.raw.name}`;const l=u.value[0],a=u.value[1]-.5,o=await re(m.value.raw,l,a),n={name:o.data.name,raw:o.data,size:o.data.size,uid:m.value.uid};it(n.raw,n.raw.name,n.raw.type)}const qt=s=>{h("loginUserToken")?(s[0]!==G[0]?U.currentTime=s[0]:s[1]!==G[1]&&(U.currentTime=s[1]),u.value=s,G=s):(s[0]!==G[0]?(U.currentTime=s[0],u.value=[s[0],s[0]+5],u.value[1]>A.value&&(u.value[1]=A.value)):s[1]!==G[1]&&(U.currentTime=s[1],u.value=[s[1]-5,s[1]],u.value[0]<0&&(u.value[0]=0)),G=u.value);const l=ve();l>0&&h("loginUserToken")?P.value=` ( ${l} credits ) `:P.value=""},dt=s=>{const t=Math.floor(s/3600),l=Math.floor(s%3600/60),a=Math.floor(s%60),o=String(t).padStart(2,"0"),n=String(l).padStart(2,"0"),c=String(a).padStart(2,"0");return`${o}:${n}:${c}`},Ot=s=>{F.value&&(s[0]!==Ke.value[0]?F.value.currentTime=s[0]:F.value.currentTime=s[1]),Ke.value=s},fe=r(!0),Gt=()=>{const s=F.value;s.paused?(s.play(),fe.value=!1,s.currentTime=X.value[0],s.addEventListener("timeupdate",Ge())):(fe.value=!0,s.pause(),s.removeEventListener("timeupdate",Ge()))},Ge=()=>{const s=F.value;s.currentTime>=X.value[1]&&(fe.value=!0,s.pause(),s.removeEventListener("timeupdate",Ge()))},Ft=s=>{F.value.currentTime=s},Ht=s=>{F.value.currentTime=s};oe(X,s=>{S.start=s[0],S.end=s[1]}),oe(()=>S.start,s=>{X.value=[s,S.end]}),oe(()=>S.end,s=>{X.value=[S.start,s]});const Jt=async()=>
1{if(!De.value)return;w.value=!0;const s=await re(Le.value,S.start,S.end),t={name:s.data.name,percentage:0,raw:s.data,size:s.data.size,status:"ready",uid:m.value.uid};pe(t),w.value=!1,Ce.value=!1,URL.createObjectURL(s.data)},Zt=()=>{Ce.value=!1};return(s,t)=>{const l=gs,a=us,o=ds,n=ps,c=fs,f=vs,C=rs,b=cs,L=ms;return p(),v("div",Us,[e("div",js,[e("div",Vs,[e("a",{href:"https://videofaceswap.io/fr/multiple-face-swap",target:"_blank",class:ge(["w-1/2 h-full cursor-pointer leading-[42px] text-center relative max-[900px]:text-[14px] max-[800px]:text-[10px]",O.value==="multiple"?"rounded-[50px] text-white bg-[#6b4dff]":""])}," Ãchange de visages multiples ",2),e("a",{href:"https://videofaceswap.io/fr/video-face-swap",target:"_blank",class:ge(["w-1/2 h-full cursor-pointer leading-[42px] text-center relative max-[900px]:text-[14px] max-[800px]:text-[10px]",O.value==="video"?"rounded-[50px] bg-black text-white":""])}," Ãchange de visage vidéo ",2),e("a",{href:"https://videofaceswap.io/fr/face-swap",target:"_blank",class:ge(["w-1/2 h-full cursor-pointer leading-[42px] text-center relative max-[900px]:text-[14px] max-[800px]:text-[10px]",O.value==="photo"?"rounded-[50px] bg-[#6b4dff] text-white":""])}," Ãchange de visage photo ",2)])]),K.value===1?(p(),v("div",Ps,[e("div",Es,[e("div",As,[t[15]||(t[15]=e("div",{class:"absolute -top-3 -left-3 h-10 w-10 rounded-lg bg-[#18181b] flex items-center justify-center text-white font-bold text-lg shadow-md"}," 1 ",-1)),e("div",Ds,[t[13]||(t[13]=e("div",{class:"font-medium md:text-lg text-[14px]"},"Téléchargez une vidéo avec un visage (Visage dâorigine) ",-1)),z.value==1?(p(),We(l,{key:0,class:"!w-full",ref:"videoUploadRef",accept:"video/*, .gif, .webp","show-file-list":!1,"on-change":pe,"auto-upload":!1},{default:R(()=>[...t[9]||(t[9]=[e("button",{class:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-white h-10 px-4 py-2 w-full gap-2 bg-[#18181b] hover:bg-[#18181b]/90"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-play h-4 w-4"},[e("polygon",{points:"6 3 20 12 6 21 6 3"})]),T("Télécharger une vidéo")],-1)])]),_:1},512)):V("",!0),z.value==3?(p(),v("div",Bs,[e("div",Rs,[e("video",{style:{width:"42px",height:"42px"},src:st.value},null,8,$s),(p(),v("svg",Ns,[...t[10]||(t[10]=[e("path",{d:"M772.7 217.7a32.2 32.1 0 1 0 64.4 0 32.2 32.1 0 1 0-64.4 0Z",fill:"#ffffff","p-id":"6674","data-v-5b9ea975":""},null,-1),e("path",{d:"M415.8 679.9c5.9 0 11.5-1.6 16.2-4.5l231.1-134.6c10.9-5.2 18.5-16.3 18.5-29.2 0-11.9-6.4-22.3-16-27.8L439.7 352.2c-5.8-6.7-14.4-10.9-23.9-10.9-17.6 0-31.8 14.4-31.8 32.1 0 0.6 0 1.2 0.1 1.8l-0.4 0.2 0.5 269c-0.1 1.1-0.2 2.2-0.2 3.4 0 17.7 14.3 32.1 31.8 32.1z",fill:"#ffffff","p-id":"6675","data-v-5b9ea975":""},null,-1),e("path",{d:"M909.8 306.6c-5.4-10.5-16.3-17.8-28.9-17.8-17.8 0-32.2 14.4-32.2 32.1 0 6 1.7 11.7 4.6 16.5l-0.1 0.1c26.9 52.4 42.1 111.8 42.1 174.7 0 211.6-171.6 383.2-383.2 383.2S128.8 723.8 128.8 512.2 300.4 129.1 512 129.1c62.5 0 121.5 15 173.6 41.5l0.2-0.4c4.6 2.6 10 4.1 15.7 4.1 17.8 0 32.2-14.4 32.2-32.1 0-13.1-7.9-24.4-19.3-29.4C653.6 81.9 584.9 64.5 512 64.5 264.7 64.5 64.3 265 64.3 512.2S264.7 959.9 512 959.9s447.7-200.4 447.7-447.7c0-74.1-18-144-49.9-205.6z",fill:"#ffffff","p-id":"6676","data-v-5b9ea975":""},null,-1)])]))]),g(l,{class:"w-[85%]",ref:"videoUploadRef",accept:"video/*, .gif, .webp","show-file-list":!1,"on-change":pe,"auto-upload":!1},{default:R(()=>[...t[11]||(t[11]=[e("button",{class:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-white h-10 px-4 py-2 w-[80%] gap-2 bg-[#18181b] hover:bg-[#18181b]/90"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-play h-4 w-4"},[e("polygon",{points:"6 3 20 12 6 21 6 3"})]),T("Télécharger une vidéo")],-1)])]),_:1},512)])):V("",!0),z.value==4?(p(),v("div",qs,[e("img",{src:Ne.value,style:{width:"58px",height:"58px"},alt:""},null,8,Os),g(l,{class:"w-[85%]",ref:"videoUploadRef",accept:"video/*, .gif, .webp","show-file-list":!1,"on-change":pe,"auto-upload":!1},{default:R(()=>[...t[12]||(t[12]=[e("button",{class:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-white h-10 px-4 py-2 w-[80%] gap-2 bg-[#18181b] hover:bg-[#18181b]/90"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-play h-4 w-4"},[e("polygon",{points:"6 3 20 12 6 21 6 3"})]),T("Télécharger une GIF")],-1)])]),_:1},512)])):V("",!0),t[14]||(t[14]=e("div",{class:"flex items-center md:text-xs text-[10px] text-[#71717a]"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4 mr-1"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"})]),e("span",null,"Un seul visage, prend en charge MP4/MOV/GIF")],-1))])]),e("div",Gs,[t[20]||(t[20]=e("div",{class:"absolute -top-3 -left-3 h-10 w-10 rounded-lg bg-[#18181b] flex items-center justify-center text-white font-bold text-lg shadow-md"}," 2 ",-1)),e("div",Fs,[t[18]||(t[18]=e("div",{class:"font-medium md:text-lg text-[14px]"},"Téléchargez une photo avec un visage (Visage cible)",-1)),_e.value==1?(p(),We(l,{key:0,class:"w-full",ref:"imgUploadRef",accept:"image/*","show-file-list":!1,"on-change":at,"auto-upload":!1},{default:R(()=>[...t[16]||(t[16]=[e("button",{class:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-white h-10 px-4 py-2 w-full gap-2 bg-[#18181b] hover:bg-[#18181b]/90"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-image h-4 w-4"},[e("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),e("circle",{cx:"9",cy:"9",r:"2"}),e("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"})]),T("Télécharger une photo")],-1)])]),_:1},512)):V("",!0),_e.value==2?(p(),v("div",Hs,[e("div",Js,[e("img",{class:"w-[50px] h-[50px]",src:d.value,alt:""},null,8,Zs)]),g(l,{class:"w-[85%]",ref:"imgUploadRef",accept:"image/*","show-file-list":!1,"on-change":at,"auto-upload":!1},{default:R(()=>[...t[17]||(t[17]=[e("button",{class:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-white h-10 px-4 py-2 w-[80%] gap-2 bg-[#18181b] hover:bg-[#18181b]/90"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-image h-4 w-4"},[e("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),e("circle",{cx:"9",cy:"9",r:"2"}),e("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"})]),T("Télécharger une photo")],-1)])]),_:1},512)])):V("",!0),t[19]||(t[19]=e("div",{class:"flex items-center md:text-xs text-[10px] text-[#71717a]"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4 mr-1"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"}
1)]),e("span",null," Un seul visage, prend en charge PNG/JPG/JPEG/WEBP ")],-1))])]),e("div",Qs,[t[25]||(t[25]=e("div",{class:"absolute -top-3 -left-3 h-10 w-10 rounded-lg bg-[#18181b] flex items-center justify-center text-white font-bold text-lg shadow-md"}," 3",-1)),e("div",Ws,[t[24]||(t[24]=e("div",{class:"font-medium md:text-lg text-[14px]"},"Cliquez pour démarrer lâéchange de visage vidéo",-1)),e("div",Ys,[g(o,{modelValue:k.value,"onUpdate:modelValue":t[0]||(t[0]=i=>k.value=i),class:"flex w-full gap-4"},{default:R(()=>[(p(),v(ze,null,ut(yt,i=>e("label",{key:i.value,class:ge(["flex-1 border rounded-lg cursor-pointer px-2 md:px-4 py-1 transition-all",{"border-[#18181b] bg-gray-50":k.value===i.value,"border-gray-200 hover:border-[#18181b]":k.value!==i.value}])},[g(a,{label:i.value,style:{display:"none"},class:"hidden"},null,8,["label"]),e("div",Ks,[e("div",{class:ge(["mt-1 w-5 h-5 rounded-full border-2 flex items-center justify-center",k.value===i.value?"border-[#18181b]":"border-gray-300"])},[k.value===i.value?(p(),v("div",Xs)):V("",!0)],2),e("div",null,[e("div",ea,M(i.label),1),e("div",ta,M(i.description),1)])])],2)),64))]),_:1},8,["modelValue"])]),e("div",sa,[!(d.value||m.value.row)&&y.value!==2?(p(),v("button",aa,[t[21]||(t[21]=Ze('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles h-4 w-4" data-v-a97c94f2><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" data-v-a97c94f2></path><path d="M20 3v4" data-v-a97c94f2></path><path d="M22 5h-4" data-v-a97c94f2></path><path d="M4 17v2" data-v-a97c94f2></path><path d="M5 18H3" data-v-a97c94f2></path></svg>',1)),T("Ãchanger maintenant "+M(P.value),1)])):V("",!0),(d.value||m.value.row)&&y.value!==2?(p(),v("button",{key:1,onClick:Ut,class:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-white h-10 px-4 py-2 w-full gap-2 bg-[#18181b] hover:bg-[#18181b]/90"},[t[22]||(t[22]=Ze('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles h-4 w-4" data-v-a97c94f2><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" data-v-a97c94f2></path><path d="M20 3v4" data-v-a97c94f2></path><path d="M22 5h-4" data-v-a97c94f2></path><path d="M4 17v2" data-v-a97c94f2></path><path d="M5 18H3" data-v-a97c94f2></path></svg>',1)),T("Ãchanger maintenant "+M(P.value),1)])):V("",!0),y.value===2?(p(),v("button",oa,[...t[23]||(t[23]=[e("div",{class:"loading1",style:{border:"2px solid #FFF","border-top-color":"transparent"}},null,-1)])])):V("",!0),e("button",{onClick:t[1]||(t[1]=i=>tt(2)),class:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-[#18181b] h-10 px-4 py-2 md:w-[30%] w-full gap-2 border border-[#18181b] md:ml-4 mt-5 md:mt-0"}," Mes vidéos ")]),g(hs,{onBuyQuickly:Ee})])])]),$(e("div",ia,null,512),[[q,D.value]]),$(e("div",na,[$(e("div",{class:"xl:w-[500px] sm:w-full w-full h-auto md:h-[500px] rounded-[20px]",ref_key:"videoPlayerBox",ref:te,id:"video-container"},[e("div",la,[g(l,{class:"w-full h-full",ref:"videoUploadRef",accept:"video/*, .gif, .webp",drag:"","show-file-list":!1,"on-change":pe,"auto-upload":!1},{default:R(()=>[...t[26]||(t[26]=[e("div",{class:"md:w-full md:h-[500px] w-full h-full border-2 border-dashed border-gray-300 rounded-lg flex flex-col items-center justify-center p-8"},[e("div",{class:"flex flex-col items-center justify-center text-center h-full"},[e("div",{class:"w-20 h-20 bg-gray-100 rounded-full flex items-center justify-center mb-4"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-play text-gray-500 ml-1"},[e("polygon",{points:"6 3 20 12 6 21 6 3"}
1)])]),e("span",{class:"text-xl font-semibold text-gray-800 mb-2"},"Zone de prévisualisation et dâédition vidéo"),e("p",{class:"text-gray-500 mb-1"},"Votre vidéo sera prévisualisée ici après téléchargement"),e("p",{class:"text-sm text-gray-400"},"Vous pouvez également glisser-déposer votre vidéo ici")]),e("div",{class:"mt-auto w-full pt-4"},[e("div",{class:"w-full bg-gray-200 h-1 rounded-full mb-2"}),e("div",{class:"flex justify-between text-xs text-gray-400"},[e("span",null,"00:00:00"),e("span",null,"00:00:00")])])],-1)])]),_:1},512)])],512),[[q,!D.value&&!ce.value]]),ce.value?(p(),v("img",{key:0,style:{"max-width":"100%","max-height":"100%"},src:Ne.value,alt:""},null,8,ra)):V("",!0),e("div",da,[m.value&&m.value.raw&&!ce.value?(p(),v(ze,{key:0},[g(n,{modelValue:u.value,"onUpdate:modelValue":t[2]||(t[2]=i=>u.value=i),range:"",max:A.value,onChange:qt},null,8,["modelValue","max"]),e("div",ua,[e("div",ca,[Te.value?(p(),v("svg",{key:0,onClick:At,t:"1720754408492",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"13437",width:"34",height:"34"},[...t[27]||(t[27]=[e("path",{d:"M512 162c-192.992 0-350 157.008-350 350s157.008 350 350 350 350-157.008 350-350-157.008-350-350-350z m0 641.667c-160.825 0-291.667-130.842-291.667-291.667S351.175 220.333 512 220.333 803.667 351.175 803.667 512 672.825 803.667 512 803.667z",fill:"#fff","p-id":"13438"},null,-1),e("path",{d:"M424.5 385.611h58.333v252.778H424.5zM541.167 385.611H599.5v252.778h-58.333z",fill:"#fff","p-id":"13439"},null,-1)])])):(p(),v("svg",{key:1,onClick:Et,t:"1720754376004",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"13167",width:"32",height:"32"},[...t[28]||(t[28]=[e("path",{d:"M512 141.21142578a370.78857422 370.78857422 0 1 1 0 741.57714844A370.78857422 370.78857422 0 0 1 512 141.21142578z m0 52.9486084a317.83996582 317.83996582 0 1 0 0 635.67993165A317.83996582 317.83996582 0 0 0 512 194.16003418z m-63.62731934 165.3717041c4.89440918 0 9.71466065 1.33483887 13.9416504 3.93035889l168.63464355 103.82080078a52.9486084 52.9486084 0 0 1 0 90.24993897l-168.63464356 103.82080077a26.4743042 26.4743042 0 0 1-40.41595459-22.54394531V386.00604248c0-14.60906982 11.86523438-26.4743042 26.47430421-26.4743042z","p-id":"13168",fill:"#fff"},null,-1)])]))]),e("div",pa,[e("div",va,M(rt(u.value[0])),1),e("div",fa,[(p(),v("svg",{onClick:Dt,t:"1720754813711",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14832",width:"12",height:"12"},[e("path",{d:"M928 721.8L510.8 304.5l-416 416 833.2 1.3z m0 0","p-id":"14833",fill:u.value[0]>=A.value-1?"#999":"#515151"},null,8,ga)])),(p(),v("svg",{onClick:Bt,t:"1720754832017",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15090",width:"12",height:"12"},[e("path",{d:"M94.8 304.5L512 721.8l416-416-833.2-1.3z m0 0","p-id":"15091",fill:u.value[0]===0?"#999":"#515151"},null,8,ma)]))]),e("div",wa,M(rt(u.value[1])),1),e("div",ha,[(p(),v("svg",{onClick:Rt,t:"1720754813711",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14832",width:"12",height:"12"},[e("path",{d:"M928 721.8L510.8 304.5l-416 416 833.2 1.3z m0 0","p-id":"14833",fill:u.value[1]===A.value?"#999":"#515151"},null,8,xa)])),(p(),v("svg",{onClick:$t,t:"1720754832017",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15090",width:"12",height:"12"},[e("path",{d:"M94.8 304.5L512 721.8l416-416-833.2-1.3z m0 0","p-id":"15091",fill:u.value[1]<=1?"#999":"#515151"},null,8,ba)]))])])])],64)):V("",!0)])],512),[[q,!D.value]]),t[29]||(t[29]=e("div",{class:"absolute lg:bottom-[-15px] bottom-[-50px] left-[50%] translate-x-[-50%] text-center lg:w-full w-[90%] h-10 md:h-5 text-[12px] text-[#504f4f]"}," La confidentialité et la sécurité de la base de données sont activées, vos historiques sont protégés pour garantir la vie privée ",-1))])):(p(),v("div",ya,[e("div",ka,[t[31]||(t[31]=e("div",{class:"md:text-2xl text-[12px] font-bold text-gray-900"},"My Creations",-1)),e("button",{onClick:t[3]||(t[3]=i=>tt(1)),class:"inline-flex items-center px-4 py-2 border border-transparent roun
1ded-md shadow-sm text-sm font-medium text-white bg-[#8437eb]"},[...t[30]||(t[30]=[e("svg",{class:"-ml-1 mr-2 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z","clip-rule":"evenodd"})],-1),T(" Create New Video ",-1)])])]),Ae.value?(p(),v("div",_a)):_.list.length>0?(p(),v("div",Ca,[e("div",Ta,[(p(!0),v(ze,null,ut(_.list,(i,I)=>(p(),v(ze,{key:I},[$(e("div",La,[e("div",za,[e("div",Ia,[e("div",Ma,[t[32]||(t[32]=e("svg",{class:"animate-spin h-10 w-10 text-white mx-auto mb-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),e("div",Sa,M(i.progress||0)+"%",1)])])]),e("div",Ua,[t[33]||(t[33]=e("h3",{class:"text-lg font-medium text-gray-900 truncate"},"Processing...",-1)),t[34]||(t[34]=e("p",{class:"mt-1 text-sm text-gray-500"},"Started just now",-1)),e("div",ja,[e("div",Va,[e("div",{class:"bg-blue-600 h-2 rounded-full",style:os({width:`${i.progress}%`})},null,4)])])])],512),[[q,i.status===1]]),$(e("div",Pa,[e("div",Ea,[e("video",{ref_for:!0,ref:B=>ne.value.push({id:i.id,el:B}),onEnded:B=>Pe(i),src:i.face_swap_url,class:"max-w-full max-h-full object-cover"},null,40,Aa),N.value!==i.id?(p(),v("div",{key:0,onClick:B=>le(i),class:"absolute cursor-pointer p-3 top-1/2 left-1/2 translate-x-[-50%] translate-y-[-50%] rounded-full flex items-center justify-center z-6 bg-black/50"},[...t[35]||(t[35]=[e("svg",{t:"1744783885424",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3762",width:"24",height:"24"},[e("path",{d:"M769.376 547.424l-445.28 272.128a44.8 44.8 0 0 1-68.16-38.24V237.12a44.8 44.8 0 0 1 68.16-38.24l445.28 272.128a44.8 44.8 0 0 1 0 76.48z",fill:"#ffffff","p-id":"3763"})],-1)])],8,Da)):V("",!0)]),e("div",Ba,[e("h3",Ra,M(i.title),1),e("p",$a,"Created "+M(i.created_at),1),e("div",Na,[i.downloadLoading?(p(),v("button",Oa,[...t[37]||(t[37]=[e("div",{class:"loading1",style:{border:"2px solid #5d5d5d","border-top-color":"transparent"}},null,-1)])])):(p(),v("button",{key:0,onClick:B=>Pt(i,I),class:"flex-1 flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"},[...t[36]||(t[36]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 mr-1",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),T(" Download ",-1)])],8,qa)),e("button",{onClick:B=>lt(i,I),class:"flex-1 flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"},[...t[38]||(t[38]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 mr-1",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1),T(" Delete ",-1)])],8,Ga)])])],512),[[q,i.status===0]]),$(e("div",Fa,[t[41]||(t[41]=Ze('<div class="relative" data-v-a97c94f2><div class="w-full h-40 object-cover opacity-60" data-v-a97c94f2></div><div class="absolute inset-0 bg-red-900 bg-opacity-30 flex items-center justify-center" data-v-a97c94f2><div class="bg-white bg-opacity-90 rounded-lg p-3 text-center" data-v-a97c94f2><svg class="h-8 w-8 text-red-500 mx-auto mb-1" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" data-v-a97c94f2><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" data-v-a97c94f2></path></svg><span class="text-red-600 font-medium text-sm" data-v-a97c94f2>Generation Failed</span></div></div><div class="absolute inset-0 bg-gradient-to-t from-black opacity-60" data-v-a97c94f2></div><div class="absolute bottom-2 left-3 text-white flex items-center" data-v-a97c94f2><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" viewB
1ox="0 0 20 20" fill="currentColor" data-v-a97c94f2><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z" clip-rule="evenodd" data-v-a97c94f2></path></svg><span class="text-xs" data-v-a97c94f2></span></div><div class="absolute top-2 right-2" data-v-a97c94f2><button class="text-white bg-black bg-opacity-50 rounded-full p-1 hover:bg-opacity-70" data-v-a97c94f2><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor" data-v-a97c94f2><path d="M10 12a2 2 0 100-4 2 2 0 000 4z" data-v-a97c94f2></path><path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" clip-rule="evenodd" data-v-a97c94f2></path></svg></button></div></div>',1)),e("div",Ha,[e("h3",Ja,M(i.title),1),e("p",Za,"Created "+M(i.created_at),1),t[40]||(t[40]=e("div",{class:"mt-2 p-2 bg-red-50 text-red-600 text-sm rounded-md"},"Generation failed, credits have been refunded.",-1)),e("div",Qa,[e("button",{onClick:B=>lt(i,I),class:"flex-1 flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"},[...t[39]||(t[39]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 mr-1",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1),T(" Delete ",-1)])],8,Wa)])])],512),[[q,i.status===2]])],64))),128))])])):(p(),v("div",Ya,[...t[42]||(t[42]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"mx-auto h-12 w-12 text-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 20h16a1 1 0 001-1V5a1 1 0 00-1-1H4a1 1 0 00-1 1v14a1 1 0 001 1z"})],-1),e("div",{class:"mt-2 text-sm font-medium text-gray-900"},"No videos",-1),e("p",{class:"mt-1 text-sm text-gray-500"}," Get started by creating a new video. ",-1)])])),e("div",Ka,[g(c,{"page-size":6,"pager-count":7,"current-page":J.value,"onUpdate:currentPage":t[4]||(t[4]=i=>J.value=i),layout:"prev, pager, next",onCurrentChange:jt,total:nt.value},null,8,["current-page","total"])]),t[43]||(t[43]=e("div",{class:"w-[100%] absolute bottom-[-35px] px-5 left-[50%] text-center translate-x-[-50%] text-[10px] text-[#3a3a3a] md:text-[14px]"}," The results will be automatically deleted after 10 days,please download them in time",-1))])),g(b,{modelValue:Ce.value,"onUpdate:modelValue":t[8]||(t[8]=i=>Ce.value=i),title:"",width:"65%"},{default:R(()=>[$((p(),v("div",null,[e("div",Xa,[e("video",{ref_key:"videoPlayerDom",ref:F,src:De.value,muted:!0,controls:"","cross-origin":"anonymous",crossorigin:"anonymous",class:"video-select video"},null,8,eo)]),e("div",to,[e("div",{class:"video-player-on",onClick:Gt},[$((p(),v("svg",so,[...t[44]||(t[44]=[e("path",{d:"M595.04 504.92l0.07 0.07 0.01-0.01z","p-id":"26924",fill:"#707070"},null,-1),e("path",{d:"M512 64.5C264.85 64.5 64.5 264.85 64.5 512S264.85 959.5 512 959.5 959.5 759.15 959.5 512 759.15 64.5 512 64.5z m184.5 444.17c-0.12 1.21-0.32 2.39-0.55 3.58-0.24 1.22-0.49 2.43-0.85 3.64-0.36 1.22-0.82 2.39-1.3 3.57-0.45 1.1-0.9 2.19-1.46 3.25-0.65 1.24-1.41 2.4-2.19 3.57-0.43 0.63-0.72 1.32-1.19 1.93-0.22 0.28-0.5 0.48-0.73 0.75-1.21 1.5-2.6 2.87-4.07 4.21-0.69 0.63-1.32 1.34-2.05 1.92-0.16 0.12-0.27 0.28-0.43 0.4L439.94 719.54a38.162 38.162 0 0 1-23.21 7.84c-11.56 0-23-5.21-30.54-15.12-6.54-8.59-8.85-19.04-7.37-28.94-0.19-1.57-0.48-3.11-0.48-4.72V320.93c0-0.36 0.1-0.69 0.1-1.04 0.04-1.4 0.23-2.78 0.42-4.18 0.16-1.14 0.27-2.28 0.52-3.38 0.28-1.22 0.71-2.39 1.11-3.59 0.41-1.21 0.78-2.43 1.31-3.58 0.46-1.01 1.05-1.97 1.6-2.96 0.7-1.24 1.4-2.48 2.23-3.63 0.2-0.28 0.33-0.6 0.54-0.88 0.49-0.64 1.09-1.13 1.61-1.73 0.89-1.03 1.78-2.05 2.78-2.98 0.93-0.87 1.91-1.63 2.9-2.39 0.96-0.73 1.91-1.45 2.93-2.09 1.11-0.69 2.25-1.29 3.42-1.86 1.06-0.52 2.11-1.02 3.22-1.45 1.24-0.47 2.49-0.83 3.76-1.17 1.12-0.3 2.22-0.59 3.38-0.79
11.41-0.24 2.82-0.34 4.25-0.43 0.76-0.05 1.48-0.23 2.25-0.23 0.34 0 0.66 0.09 1 0.1 1.44 0.04 2.86 0.23 4.29 0.43 1.11 0.15 2.22 0.26 3.3 0.51 1.23 0.28 2.42 0.72 3.63 1.13 1.2 0.41 2.41 0.78 3.56 1.3 1.02 0.46 1.98 1.05 2.96 1.61 1.24 0.7 2.48 1.39 3.63 2.22 0.28 0.2 0.6 0.33 0.88 0.54l241.73 184.04c0.32 0.25 0.56 0.56 0.87 0.81 1.02 0.82 1.95 1.75 2.89 2.69 0.95 0.95 1.88 1.88 2.71 2.91 0.25 0.31 0.56 0.54 0.81 0.86 0.47 0.62 0.76 1.3 1.19 1.93 0.79 1.17 1.55 2.34 2.19 3.57 0.56 1.07 1.01 2.15 1.46 3.25 0.48 1.18 0.94 2.35 1.3 3.57 0.36 1.2 0.61 2.41 0.85 3.64 0.23 1.19 0.44 2.37 0.55 3.58 0.12 1.23 0.15 2.46 0.14 3.69 0.04 1.26 0.01 2.49-0.11 3.72z","p-id":"26925","data-spm-anchor-id":"a313x.search_index.0.i17.ed013a817xmazH",class:"",fill:"#707070"},null,-1)])],512)),[[q,fe.value]]),$((p(),v("svg",ao,[...t[45]||(t[45]=[e("path",{d:"M512 938.688A426.688 426.688 0 1 1 512 85.376a426.688 426.688 0 0 1 0 853.312zM384 384v256h256V384H384z",fill:"#707070","p-id":"28390"},null,-1)])],512)),[[q,!fe.value]])]),g(n,{modelValue:X.value,"onUpdate:modelValue":t[5]||(t[5]=i=>X.value=i),"show-tooltip":!0,onChange:Ot,range:"",max:Be.value},null,8,["modelValue","max"]),e("div",oo,[e("p",io,M(dt(S.start)),1),e("p",no,M(dt(S.end)),1)])]),e("div",lo,[e("div",ro,[t[46]||(t[46]=e("span",null,"Start time ",-1)),g(f,{modelValue:S.start,"onUpdate:modelValue":t[6]||(t[6]=i=>S.start=i),"controls-position":"right",onChange:Ft,step:.1,min:0,max:Be.value},null,8,["modelValue","max"]),t[47]||(t[47]=e("span",null," (s)",-1))]),e("div",uo,[t[48]||(t[48]=e("span",null,"End time ",-1)),g(f,{modelValue:S.end,"onUpdate:modelValue":t[7]||(t[7]=i=>S.end=i),"controls-position":"right",onChange:Ht,step:.1,min:0,max:Be.value},null,8,["modelValue","max"]),t[49]||(t[49]=e("span",null," (s)",-1))])]),e("div",co,[g(C,{onClick:Zt,class:"cancel-button",type:"info"},{default:R(()=>[...t[50]||(t[50]=[T(" Cancel ",-1)])]),_:1}),g(C,{onClick:Jt,type:"primary",class:"next-button"},{default:R(()=>[...t[51]||(t[51]=[T(" Confirm ",-1)])]),_:1})])])),[[L,w.value]])]),_:1},8,["modelValue"])])}}}),fo=xt(vo,[["__scopeId","data-v-a97c94f2"]]),go={class:"w-full h-auto"},mo={class:"w-[100%] h-[50px] flex items-center justify-center"},wo={key:0,style:{height:"100%","background-color":"rgba(0, 0, 0, 0.5)",overflow:"auto",position:"fixed",top:"0",left:"0",right:"0",bottom:"0","z-index":"2000"},class:""},ho={style:{"box-shadow":"0px 4px 10px 0px rgba(0, 0, 0, 0.3)"},class:"p-[30px] absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] bg-white w-[500px] max-[768px]:w-[90%] max-[768px]:h-[300px] h-[230px]"},xo={class:"w-[100%] h-[50px] flex items-center justify-end"},bo={class:"w-full min-h-screen mx-auto"}
1,yo={id:"content",class:"w-full h-auto max-[768px]:h-auto"},ko={class:"w-full h-full max-[768px]:h-auto max-[768px]:px-[5px] pt-[80px] pb-[100px] max-[768px]:pt-[60px]"},_o={class:"w-full"},Co={class:"max-w-[1200px] mx-auto max-[768px]:h-auto font-[600] text-center text-[56px] max-[768px]:text-[36px] mb-[20px] mt-[40px]"},To={class:"max-w-[1200px] mx-auto text-center text-[18px] mt-[24px] mb-[60px]"},Lo={id:"footer",class:"w-full max-h-[120px] bg-[#ffffff] py-[20px]"},zo={class:"max-w-[1200px] max-[768px]:w-[100%] h-[80px] mx-auto"},Io=mt({__name:"index",setup(bt){const{btnLoading:Me,isPaySuccess:me,handleEventPayment:ie}=gt();is({title:"Face Swap Video Gratuit â Ãchange de visage en ligne",meta:[{name:"description",content:"Créez facilement des vidéos avec face swap video gratuit. Rapide, sans filigrane et compatible avec tous les formats populaires."}],link:[{rel:"canonical",href:"https://videofaceswap.io/fr/video-face-swap"},{rel:"alternate",hreflang:"en",href:"https://videofaceswap.io/"},{rel:"alternate",hreflang:"id",href:"https://videofaceswap.io/id/video-face-swap"},{rel:"alternate",hreflang:"es",href:"https://videofaceswap.io/es/video-face-swap"},{rel:"alternate",hreflang:"pt",href:"https://videofaceswap.io/pt/video-face-swap"},{rel:"alternate",hreflang:"ja",href:"https://videofaceswap.io/ja/video-face-swap"},{rel:"alternate",hreflang:"ru",href:"https://videofaceswap.io/ru/video-face-swap"},{rel:"alternate",hreflang:"fr",href:"https://videofaceswap.io/fr/video-face-swap"},{rel:"alternate",hreflang:"de",href:"https://videofaceswap.io/de/video-face-swap"},{rel:"alternate",hreflang:"ar",href:"https://videofaceswap.io/ar/video-face-swap"},{rel:"alternate",hreflang:"it",href:"https://videofaceswap.io/it/video-face-swap"},{rel:"alternate",hreflang:"vi",href:"https://videofaceswap.io/vi/video-face-swap"},{rel:"alternate",hreflang:"kr",href:"https://videofaceswap.io/kr/video-face-swap"},{rel:"alternate",hreflang:"x-default",href:"https://videofaceswap.io/"},{rel:"icon",href:"https://cdn.videofaceswap.io/retain/videofaceswap/assets/icon/videofaceswap-42x42.png",sizes:"32x32"},{rel:"icon",href:"https://cdn.videofaceswap.io/retain/videofaceswap/assets/icon/videofaceswap.png",sizes:"192x192"},{rel:"apple-touch-icon",href:"https://cdn.videofaceswap.io/retain/videofaceswap/assets/icon/videofaceswap.png"}],script:[{src:"https://www.googletagmanager.com/gtag/js?id=G-P6KWF3H95M",async:!0},{children:` 2
vendor: 157 bytes, lines 2-5
2window.dataLayer = window.dataLayer || []; 3 function gtag(){dataLayer.push(arguments);} 4 gtag('js', new Date()); 5 gtag('config', '
5G-P6KWF3H95M
vendor: 12 bytes, lines 5-6
5'); 6
6`},{type:"text/javascript",children:` 7 (function(c,l,a,r,i,t,y){ 8 c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; 9 t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; 10 y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); 11 })(window, document, "clarity", "script", "r3ibn6jgdz"); 12 `},{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"Face Swap Video Gratuit â Ãchange de visage en ligne",operatingSystem:"Windows 7+, OSX 10.6+",applicationCategory:"BrowserApplication",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",ratingCount:"794835"},offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}})}],htmlAttrs:{lang:"en-US"}});const x={functional:{title:"Face swap video gratuit en ligne",description:"Créez rapidement des vidéos face swap video gratuit en téléchargeant vos vidéos et images, transformées facilement grâce à notre IA avancée."},howToUse:{title:"Comment utiliser le service gratuit de face swap video gratuit",lists:[{title:"Téléchargez la vidéo dâorigine",content:"Cliquez sur le bouton « Télécharger une vidéo » et sélectionnez le fichier local contenant le visage à remplacer."},{title:"Téléchargez le visage cible",content:"Cliquez sur le bouton « Télécharger une photo » et choisissez lâimage du visage que vous souhaitez insérer dans la vidéo."},{title:"Démarrez le face swap vidéo",content:"Appuyez sur le bouton « Ãchanger le visage » et patientez pendant le traitement. Une fois terminé, vous pourrez télécharger la vidéo générée."}]},feature:{title:"Découvrez la magie du face swap video gratuit illimité et gratuit",lists:[{title:"Créez du contenu divertissant unique",desc:"Avec le face swap video gratuit en ligne, vous pouvez facilement remplacer les visages de vos amis, de votre famille, ou même de célébrités par des personnages, et créer des vidéos amusantes et originales. Idéal pour attirer lâattention sur les réseaux sociaux comme TikTok ou Instagram et générer plus dâinteractions.",img:"/img/ja/video-face-swap/feature-case1.webp"},{title:"Créez des vidéos promotionnelles créatives",desc:"En utilisant notre outil de face swap video gratuit, vous pouvez réaliser des vidéos promotionnelles plus attrayantes. Par exemple, remplacez le visage du modèle dans la vidéo par celui dâun ambassadeur local ou dâun client potentiel pour créer des campagnes marketing plus personnalisées et pertinentes.",img:"/img/ja/video-face-swap/feature-case2.webp"},{title:"Découvrez la technologie IA gratuitement",desc:"Grâce à la fonction de face swap video gratuit sans filigrane, les utilisateurs, étudiants et créateurs peuvent facilement expérimenter la puissance de lâintelligence artificielle dans le montage vidéo. Un outil idéal pour lâapprentissage, lâexpérimentation ou les projets scolaires et universitaires.",img:"/img/ja/video-face-swap/feature-case3.webp"}]},whyChoose:{title:"Pourquoi choisir notre service gratuit de face swap video gratuit ?",lists:[{title:"Utilisation illimitée",description:"Profitez de la fonction de face swap video gratuit en ligne sans aucune limite. Aucun souci concernant le nombre dâutilisations ou la durée."},{title:"Processus rapide et simple",description:"Grâce à la technologie IA de pointe, remplacez facilement et rapidement les visages dans vos vidéos en quelques minutes seulement."},{title:"Maintien dâune haute qualité",description:"Les vidéos générées conservent une haute résolution et lâéchange de visages reste naturel et fluide, sans perdre les expressions ou les détails subtils."},{title:"Interface facile à utiliser",description:"Avec un design simple et intuitif, tout le monde peut utiliser notre outil de face swap video gratuit en ligne sans difficulté."},{title:"Compatibilité avec divers formats vidéo",description:"Supporte de nombreux formats populaires, vous permettant de remplacer les visages dans des vidéos provenant de différentes sources."},{title:"Sans filigrane",description:"Certaines plateformes gratuites permettent un face swap video gratuit sans filigrane, offrant un rendu professionnel prêt à être partagé sur les réseaux sociaux."}]},usersSay:{title:"Les avis de nos utilisateurs",description:"Découvrez les témoignages de ceux qui ont essayé notre service de face swap video gratuit et qui sont satisfaits de sa qualité et de sa valeur.",list:[{name:"Ãlodie Martin",review:"Incroyable ! Grâce au face swap video gratuit, jâai pu créer des vidéos amusantes avec mes amis en quelques minutes seulement. La qualité est parfaite et très naturelle."},{name:"Lucas Dupont",review:"Service rapide et facile à utiliser. Le face swap video gratuit mâa permis de personnaliser mes vidéos pour mes réseaux sociaux sans aucune limite ni filigrane. Je recommande vivement !"},{name:"Chloé Bernard",review:"Je suis impressionné par la précision et la fluidité des échanges de visages. Le face swap video gratuit est parfait pour les projets créatifs et les vidéos promotionnelles."}]},faqTitle:"FAQ sur le face swap video gratuit en ligne",faqLists:[{question:"Peut-on vraiment faire un face swap video gratuit avec cet outil ?",answer:"Oui, le face swap video gratuit est entièrement accessible. Aucune inscription ni paiement nâest nécessaire pour utiliser les fonctions de base."},{question:"Quels types de fichiers vidéo peut-on télécharger ?",answer:"Notre outil prend en charge les formats courants comme MP4, MOV, AVI, permettant de remplacer les visages dans des vidéos provenant de différentes sources."},{question:"Comment fonctionne le face swap vidéo avec IA ?",answer:"La technologie avancée dâintelligence artificielle analyse les traits du visage et les intègre naturellement dans la vidéo dâorigine, en conservant expressions et mouvements."},{question:"Les vidéos générées contiennent-elles un filigrane ?",answer:"Non, le face swap video gratuit est réalisé sans filigrane. Les vidéos finales ont un rendu professionnel et peuvent être partagées directement."},{question:"Combien de temps prend le traitement des vidéos ?",answer:"Le temps de traitement dépen
12d de la longueur de la vidéo, mais grâce à notre système optimisé par IA, cela ne prend généralement que quelques minutes."},{question:"Peut-on utiliser cet outil sur smartphone ou tablette ?",answer:"Oui, la plateforme est compatible avec les appareils mobiles, permettant de faire un face swap video gratuit depuis un smartphone ou une tablette sans problème."}],CTA:{title:"Commencez dès maintenant votre face swap video gratuit !",desc:"Il vous suffit de télécharger vos vidéos et photos pour obtenir en quelques minutes une vidéo avec échange de visage professionnel, sans filigrane."},button:"Ãchanger le visage",toolsLists:[{img:"/img/other-tools/video-face-swap_format.webp",alt:"Ãchange de visage vidéo",name:"Ãchange de visage vidéo",link:"https://videofaceswap.io/",icon:"image"},{img:"/img/other-tools/gif-face-swap_format.webp",alt:"Ãchange de visage GIF",name:"Ãchange de visage GIF",link:"https://videofaceswap.io/gif-face-swap",icon:"image"},{img:"/img/other-tools/image-to-video_format.webp",alt:"Conversion IA dâimages en vidéo",name:"Conversion IA dâimages en vidéo",link:"https://videofaceswap.io/image-to-video-ai-free",icon:"video"},{img:"/img/other-tools/batch-face-swap_format.webp",alt:"Ãchange de plusieurs visages (traitement par lot)",name:"Ãchange de plusieurs visages (traitement par lot)",link:"https://videofaceswap.io/batch-face-swap",icon:"image"},{img:"/img/other-tools/bikini.webp",alt:"Générateur IA de bikini",name:"Générateur IA de bikini",link:"https://videofaceswap.io/ai-bikini-generator",icon:"video"},{img:"/img/other-tools/kiss.webp",alt:"Générateur IA de baiser",name:"Générateur IA de baiser",link:"https://videofaceswap.io/ai-kiss-generator",icon:"video"},{img:"/img/other-tools/ai-jiggle-generator-other.webp",alt:"Générateur IA de mouvements",name:"Générateur IA de mouvements",link:"https://videofaceswap.io/ai-video-generator/ai-jiggle-generator",icon:"video"},{img:"/img/other-tools/ai-twerk-generator.webp",alt:"Générateur IA de twerking",name:"Générateur IA de twerking",link:"https://videofaceswap.io/ai-twerk-generator",icon:"video"}]},Se=ht("singInCredits"),{creditsModalType:we,isModalOpen:W,handleCreditsChange:Ue,handlePayment:je}=ft({tracking:{trial:{event:"double-holiday",package:"drop-in-trial"},new:{event:"double-holiday",package:"new-user"},nonPayment:{event:"double-holiday",package:"paid-subscriber"}}}),Ve=()=>{je(ie)};oe(me,w=>{w&&de()});const he=()=>{typeof window<"u"&&window.scrollTo({top:0,behavior:"smooth"})},N=()=>{window.location.href=`${window.location.origin}/price`},ne=w=>{E.value=!1};wt(()=>{const w=h("loginUserToken"),d=h("loginUserEmail");if(w){if(Pe()){Q("loginUserToken"),Q("loginUserEmail"),localStorage.removeItem("userEmail");return}xe.value=d,de()}});function Pe(){const w=localStorage.getItem("userEmail"),d=localStorage.getItem("tokenTimestamp");return!w||!d?!0:(Date.now()-parseInt(d))/(1e3*60*60*24)>30?(localStorage.removeItem("token"),localStorage.removeItem("tokenTimestamp"),!0):!1}const le=r({}),re=r({email:"",gift_credits:0,is_discount:0,is_purchased:0,purchasePoints:0,rewardPoints:0,status:0,user_id:""}),Ee=w=>{le.value=w},E=r(!1),xe=r("");async function de(){if(!h("loginUserToken")){E.value=!0,j("login",{type:Y.value===1?"photo":Y.value===2?"multiple":Y.value===3?"videofaceswap":"batch",status:"show"});return}const d=await vt(!0,"ai_videofaceswap");if(d&&d.code==200)return le.value=d.data,re.value=d.data,d.data;E.value=!0,Q("loginUserToken"),Q("loginUserEmail"),localStorage.removeItem("userEmail"),Qe.warning("Please log in to continue."),setTimeout(()=>{console.log("reload")},3e3)}const be=()=>{E.value=!0},Y=r(1),ye=async w=>{h("loginUserToken"),Y.value=w},O=r(!1),ke=()=>{E.value=!1;const w=Number(Se.value);Ue(w,re.value,2)&&(O.value=!0),j("buyQuickly-button",{type:"click",user_id:h("loginUserId")||null})},m=r(!1);return(w,d)=>{const K=as;return p(),v("div",go,[$(e("div",{onClick:d[4]||(d[4]=()=>{O.value=!1}),style:{height:"100%","background-color":"rgba(0, 0, 0, 0.5)",overflow:"auto",position:"fixed",top:"0",left:"0",right:"0",bottom:"0","z-index":"2000"}},[e("div",{onClick:d[3]||(d[3]=ns(()=>{},["stop"])),class:"p-[30px] absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] flex flex-col justify-center items-center w-[440px] max-[768px]:w-[90%] bg-[#fff] rounded-[10px]"},[(p(),v("svg",{onClick:d[0]||(d[0]=()=>{O.value=!1}),class:"absolute top-[8px] right-[10px] cursor-pointer",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},[...d[7]||(d[7]=[e("g",null,[e("path",{d:"M12,24C5.373,24,0,18.627,0,12C0,5.373,5.373,0,12,0C18.627,0,24,5.373,24,12C24,18.627,18.627,24,12,24ZM12,10.586L7.046,5.63C6.65526,5.242,6.02397,5.24424,5.636,5.635C5.24358,6.02228,5.24134,6.65495,5.631,7.045L10.586,12L5.63,16.954C5.24201,17.3447,5.24424,17.976,5.635,18.364C6.02228,18.7564,6.65495,18.7587,7.045,18.369L12,13.414L16.954,18.369C17.3447,18.757,17.976,18.7548,18.364,18.364C18.7564,17.9767,18.7587,17.3441,18.369,16.954L13.414,12L18.369,7.046C18.757,6.65527,18.7548,6.02397,18.364,5.636C17.9767,5.24358,17.3441,5.24134,16.954,5.631L12,10.586Z",fill:"#000000","fill-opacity":"1",style:{"mix-blend-mode":"passthrough"}})],-1)])])),d[8]||(d[8]=e("div",{class:"w-[100%] font-[800] h-[30px] flex justify-center items-center"},[e("svg",{class:"mr-3",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"24.39153289794922",height:"24.39153289794922153289794922"},[T(' viewBox="0 0 24.39153289794922 24.39 '),e("g",null,[e("path",{d:"M12.1958,0C5.47051,0,0,5.47051,0,12.1958C0,18.921,5.47051,24.3915,12.1958,24.3915C18.921,24.3915,24.3915,18.921,24.3915,12.1958C24.3915,5.47051,18.921,0,12.1958,0ZM13.0708,18.3208C13.0708,18.8047,12.6797,19.1958,12.1958,19.1958C11.7119,19.1958,11.3207,18.8047,11.3207,18.3208L11.3207,10.4458C11.3207,9.9619,11.7119,9.57074,12.1958,9.57074C12.6796,9.57074,13.0708,9.96185,13.0708,10.4458L13.0708,18.3208ZM12.1958,7.82079C11.4713,7.82079,10.8833,7.23189,10.8833,6.50828C10.8833,5.78293,11.4713,5.19577,12.1958,5.19577C12.9203,5.19577,13.5083,5.78288,13.5083,6.50828C13.5083,7.23189,12.9203,7.82079,12.1958,7.82079Z",fill:"#FF942E","fill-opacity":"1",style:{"mix-blend-mode":"passthrough"}})])]),T(" Insufficient Remaining Credits ")],-1)),d[9]||(d[9]=e("div",{class:"w-[100%] h-[100px] max-[768px]:h-[130px] flex justify-center items-center text-[14px]"},[T(" Your current credits are insufficient for this face swap."),e("br"),T(" You can choose to buy more credits. ")],-1)),e("div",mo,[e("div",{onClick:d[1]||(d[1]=(...z)=>
12w.CollectPoints&&w.CollectPoints(...z)),class:"w-[200px] h-[40px] bg-[#6d4bff] text-[12px] mr-4 rounded-[5px] text-white flex justify-center items-center cursor-pointer"}," Buy Credits (Up to 50% Off) "),e("div",{onClick:d[2]||(d[2]=(...z)=>w.closeNoPoints&&w.closeNoPoints(...z)),class:"w-[100px] h-[40px] text-[#6d4bff] text-[12px] rounded-[5px] border-[#6d4bff] border-[1px] flex justify-center items-center cursor-pointer"}," Maybe Later ")])])],512),[[q,O.value]]),m.value?(p(),v("div",wo,[e("div",ho,[d[10]||(d[10]=e("div",{class:"w-[100%] font-[800] h-[30px] max-[768px]:h-[60px] flex"},[e("svg",{class:"mr-3",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"24.39153289794922",height:"24.39153289794922",viewBox:"0 0 24.39153289794922 24.39153289794922"},[e("g",null,[e("path",{d:"M12.1958,0C5.47051,0,0,5.47051,0,12.1958C0,18.921,5.47051,24.3915,12.1958,24.3915C18.921,24.3915,24.3915,18.921,24.3915,12.1958C24.3915,5.47051,18.921,0,12.1958,0ZM13.0708,18.3208C13.0708,18.8047,12.6797,19.1958,12.1958,19.1958C11.7119,19.1958,11.3207,18.8047,11.3207,18.3208L11.3207,10.4458C11.3207,9.9619,11.7119,9.57074,12.1958,9.57074C12.6796,9.57074,13.0708,9.96185,13.0708,10.4458L13.0708,18.3208ZM12.1958,7.82079C11.4713,7.82079,10.8833,7.23189,10.8833,6.50828C10.8833,5.78293,11.4713,5.19577,12.1958,5.19577C12.9203,5.19577,13.5083,5.78288,13.5083,6.50828C13.5083,7.23189,12.9203,7.82079,12.1958,7.82079Z",fill:"#FF942E","fill-opacity":"1",style:{"mix-blend-mode":"passthrough"}})])]),T(" Friendly Reminder ")],-1)),d[11]||(d[11]=e("div",{class:"w-[100%] h-[100px] max-[768px]:h-[130px] flex justify-center items-center text-[14px]"}," Batch Face Swap is available exclusively for VIP users. Purchase any credit package to become a VIP and enjoy unlimited access to face swap features for life. ",-1)),e("div",xo,[e("div",{onClick:d[5]||(d[5]=z=>m.value=!1),class:"w-[100px] h-[40px] text-[#6d4bff] text-[12px] mr-4 rounded-[5px] border-[#6d4bff] border-[1px] flex justify-center items-center cursor-pointer"}," Maybe Later "),e("div",{onClick:N,class:"w-[150px] h-[40px] bg-[#6d4bff] text-[12px] rounded-[5px] text-white flex justify-center items-center cursor-pointer"}," Get 50% Off Coupon ")])])])):V("",!0),e("div",bo,[g(ss,{dayCredits:le.value,onUpdateCredit:de,showLoginDialog:E.value,onCShowLoginDialog:ne,showH:!0},null,8,["dayCredits","showLoginDialog"]),e("div",yo,[e("div",ko,[e("div",_o,[e("h1",Co,M(x.functional.title),1),e("p",To,M(x.functional.description),1),Y.value===1?(p(),We(fo,{key:0,showLoginDialog:E.value,onGetDayCredits:Ee,onShowNoPointsPop:ke,onEvent:be,onChildEvent:ye},null,8,["showLoginDialog"])):V("",!0),g(Cs,{title:x.howToUse.title,"how-to-use-list":x.howToUse.lists},null,8,["title","how-to-use-list"]),g(Ts,{"feature-title":x.feature.title,"feature-lists":x.feature.lists,button:x.button,onGotoTop:he},null,8,["feature-title","feature-lists","button"]),g(Ls,{"why-choose-title":x.whyChoose.title,"why-choose-lists":x.whyChoose.lists},null,8,["why-choose-title","why-choose-lists"]),g(Ms,{"users-say-title":x.usersSay.title,"users-say-description":x.usersSay.description,"users-say":x.usersSay.list},null,8,["users-say-title","users-say-description","users-say"]),d[12]||(d[12]=e("div",{id:"othertools",class:"w-full pb-[20px] px-[10px]"},[e("div",{class:"max-w-[1200px] max-[768px]:w-[100%] mx-auto"},[e("h2",{class:"w-full h-[62px] text-center max-[768px]:text-[25px] text-[32px]"}," Découvrez plus dâoutils dâIA ")])],-1)),g(Ss,{"tools-list":x.toolsLists},null,8,["tools-list"]),g(zs,{title:x.faqTitle,"faq-lists":x.faqLists},null,8,["title","faq-lists"]),g(Is,{CTA:x.CTA,button:x.button,onGotoTop:he},null,8,["CTA","button"]),e("div",Lo,[e("div",zo,[g(_s,{type:"video"})])])])])])]),g(K,{type:Ie(we),isOpen:Ie(W),"onUpdate:isOpen":d[6]||(d[6]=z=>ls(W)?W.value=z:null),onPayCredits:Ve,btnLoading:Ie(Me),isPaySuccess:Ie(me)},null,8,["type","isOpen","btnLoading","isPaySuccess"])])}}}),Si=xt(Io,[["__scopeId","data-v-27e9f4c8"]]);export{Si as default};
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.