(window.webpackJsonp=window.webpackJsonp||[]).push([[69,5,8],{2925:function(e,t,n){"use strict"},3012:function(e,t,n){var content=n(3137);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(9).default)("23ecc03f",content,!1,{sourceMap:!1})},3136:function(e,t,n){"use strict";n(3012)},3137:function(e,t,n){var r=n(8),o=n(47),d=n(582),l=n(579),f=n(234),m=r((function(i){return i[1]})),c=o(d),w=o(l),h=o(f);m.push([e.i,"@media(min-width:980px){.feature-page[data-v-6f5d48fc]{background:#fff}.feature-page .feature-page-wrap .main-wrap[data-v-6f5d48fc]{background:#f4f4f8;padding-top:104px}.feature-page .feature-page-wrap .main-wrap .main[data-v-6f5d48fc]{margin:0 auto;padding-bottom:56px;position:relative;width:1200px}.feature-page .feature-page-wrap .main-wrap .main .main-text[data-v-6f5d48fc]{position:relative}.feature-page .feature-page-wrap .main-wrap .main .main-text .main-title-wrap[data-v-6f5d48fc]{align-items:center;display:flex;justify-content:center;margin:0 auto;width:-moz-fit-content;width:fit-content}.feature-page .feature-page-wrap .main-wrap .main .main-text .main-title-wrap .main-title[data-v-6f5d48fc]{color:#020322;font-family:Manrope-ExtraBold;font-size:64px;font-weight:800;line-height:60px;text-align:center}.feature-page .feature-page-wrap .main-wrap .main .main-text .main-title-wrap .icon[data-v-6f5d48fc]{height:48px;margin-left:10px;width:48px}.feature-page .feature-page-wrap .main-wrap .main .main-text .main-desc[data-v-6f5d48fc]{color:rgba(2,3,34,.6);font-family:Manrope-Regular,Manrope;font-size:18px;font-weight:400;line-height:28px;margin:20px auto 0;text-align:center;width:1000px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel[data-v-6f5d48fc]{align-items:flex-start;margin:56px auto 0;width:1080px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel #input-img-upload[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel #input-img-upload-2[data-v-6f5d48fc]{display:none}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap[data-v-6f5d48fc]{display:flex;justify-content:space-between}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload[data-v-6f5d48fc]{display:flex;flex-direction:column;justify-content:space-between;width:210px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-text[data-v-6f5d48fc]{color:#020322;font-family:Manrope-ExtraBold,Manrope;font-size:16px;font-style:normal;font-weight:800;line-height:20px;text-align:center}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2[data-v-6f5d48fc]{background-color:#fff;border:2px dashed #c6c6d0;border-radius:8px;box-sizing:border-box;height:210px;margin-top:20px;position:relative;width:210px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1 .upload-btn[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .upload-btn[data-v-6f5d48fc]{background-repeat:no-repeat;color:#898998;cursor:pointer;font-family:Manrope-Bold,Manrope;font-size:14px;font-style:normal;font-weight:700;height:100%;line-height:20px;text-align:center}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1 .img[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .img[data-v-6f5d48fc]{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1 .icon-close[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .icon-close[data-v-6f5d48fc]{cursor:pointer;height:26px;position:absolute;right:8px;top:8px;width:26px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1[data-v-6f5d48fc] .el-loading-mask,.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2[data-v-6f5d48fc] .el-loading-mask{z-index:955}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1[data-v-6f5d48fc]{overflow:hidden}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1 .upload-btn[data-v-6f5d48fc]{background-image:url("+c+");background-position:50%;background-size:80px 80px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2[data-v-6f5d48fc]{border-radius:50%}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .upload-btn[data-v-6f5d48fc]{background-image:url("+w+");background-position:bottom;background-size:180px 180px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .img[data-v-6f5d48fc]{border-radius:50%;overflow:hidden}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2[data-v-6f5d48fc] .el-loading-mask{border-radius:50%!important}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .btn[data-v-6f5d48fc]{background:#6c56ff;border-radius:4px;color:#fff;cursor:pointer;font-family:Manrope-Bold,Manrope;font-size:16px;font-style:normal;font-weight:700;height:48px;line-height:48px;margin-top:25px;text-align:center;width:486px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .btn[data-v-6f5d48fc]:hover{background:#604ddc;color:#fff}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .btn.disabled[data-v-6f5d48fc]{background:rgba(109,88,251,.5);color:hsla(0,0%,100%,.7);pointer-events:none}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .result-wrap .result-text[data-v-6f5d48fc]{color:#020322;font-family:Manrope-ExtraBold,Manrope;font-size:18px;font-style:normal;font-weight:800;line-height:26px;margin-bottom:14px;text-align:center}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .result-wrap .result-img-wrap[data-v-6f5d48fc]{position:relative}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .result-wrap .result-img-wrap .result-img[data-v-6f5d48fc]{height:282px;-o-object-fit:contain;object-fit:contain;width:418px}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .result-wrap .result-img-wrap .watermark[data-v-6f5d48fc]{filter:blur(2px)}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .result-wrap .down-btn[data-v-6f5d48fc]{align-items:center;background:#6d58fb;border-radius:4px;color:#fff;cursor:pointer;display:flex;font-family:Manrope-Bold,Manrope;font-size:14px;font-style:normal;font-weight:700;height:36px;justify-content:center;line-height:36px;margin:20px auto 0;padding:0 16px;text-align:left;width:-moz-fit-content;width:fit-content}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .result-wrap .down-btn .icon-download[data-v-6f5d48fc]{background:url("+h+") no-repeat 50%;background-size:100% 100%;height:22px;margin-right:8px;width:22px}.feature-page .porn-tip[data-v-6f5d48fc]{background:#fff;border-radius:16px;height:160px;width:440px}.feature-page .porn-tip .title[data-v-6f5d48fc]{color:#151519;font-family:Manrope-Bold;font-size:24px;font-weight:700;line-height:32px}.feature-page .porn-tip .centet[data-v-6f5d48fc]{color:#151519;font-family:Manrope-SemiBold;font-size:14px;font-weight:500;height:40px;line-height:20px;margin-top:8px;text-align:center;width:360px}.feature-page .porn-tip .centet a[data-v-6f5d48fc]{color:#6d58fb;font-family:Manrope-Medium;-webkit-text-decoration:underline;text-decoration:underline}}@media(max-width:980px){.feature-page[data-v-6f5d48fc]{background:#fff}.feature-page .feature-page-wrap .main-wrap[data-v-6f5d48fc]{background:#f4f4f8;padding-top:1rem}.feature-page .feature-page-wrap .main-wrap .main[data-v-6f5d48fc]{margin:0 auto;padding-bottom:1rem;position:relative}.feature-page .feature-page-wrap .main-wrap .main .main-text[data-v-6f5d48fc]{position:relative}.feature-page .feature-page-wrap .main-wrap .main .main-text .main-title-wrap[data-v-6f5d48fc]{margin:0 auto;text-align:center;width:6.86rem}.feature-page .feature-page-wrap .main-wrap .main .main-text .main-title-wrap .main-title[data-v-6f5d48fc]{color:#020322;display:inline;font-family:Manrope-Bold,Manrope;font-size:.6rem;font-weight:700;line-height:.72rem;vertical-align:middle}.feature-page .feature-page-wrap .main-wrap .main .main-text .main-title-wrap .icon[data-v-6f5d48fc]{height:.48rem;width:.48rem}.feature-page .feature-page-wrap .main-wrap .main .main-text .main-desc[data-v-6f5d48fc]{color:rgba(2,3,34,.6);font-family:Manrope-Regular,Manrope;font-size:.28rem;font-weight:400;line-height:.36rem;margin:.24rem auto 0;text-align:center;width:6.86rem}.feature-page .feature-page-wrap .main-wrap .main .main-pannel[data-v-6f5d48fc]{margin:.48rem .32rem 0}.feature-page .feature-page-wrap .main-wrap .main .main-pannel #input-img-upload[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel #input-img-upload-2[data-v-6f5d48fc]{display:none}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap[data-v-6f5d48fc]{display:flex;justify-content:space-between}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload[data-v-6f5d48fc]{display:flex;flex-direction:column;justify-content:space-between;max-width:3.27rem}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-text[data-v-6f5d48fc]{color:#020322;font-family:Manrope-ExtraBold,Manrope;font-size:.26rem;font-style:normal;font-weight:800;line-height:.32rem;text-align:center}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2[data-v-6f5d48fc]{background-color:#fff;border:.04rem dashed #c6c6d0;border-radius:.16rem;box-sizing:border-box;height:3.27rem;margin-top:.24rem;position:relative;width:3.27rem}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1 .upload-btn[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .upload-btn[data-v-6f5d48fc]{align-items:center;background-repeat:no-repeat;color:#898998;cursor:pointer;display:flex;font-family:Manrope-Bold,Manrope;font-size:.28rem;font-style:normal;font-weight:700;height:100%;justify-content:center;text-align:center;width:100%}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1 .img[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .img[data-v-6f5d48fc]{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1 .icon-close[data-v-6f5d48fc],.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .icon-close[data-v-6f5d48fc]{height:.4rem;position:absolute;right:.12rem;top:.12rem;width:.4rem}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1[data-v-6f5d48fc] .el-loading-mask,.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2[data-v-6f5d48fc] .el-loading-mask{z-index:955}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1[data-v-6f5d48fc]{overflow:hidden}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-1 .upload-btn[data-v-6f5d48fc]{background-image:url("+c+");background-position:50%;background-size:1.6rem 1.6rem}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2[data-v-6f5d48fc]{border-radius:50%}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .upload-btn[data-v-6f5d48fc]{background-image:url("+w+");background-position:bottom;background-size:2.8rem 2.8rem}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2 .img[data-v-6f5d48fc]{border-radius:50%;overflow:hidden}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .top-wrap .one-upload .upload-area-2[data-v-6f5d48fc] .el-loading-mask{border-radius:50%}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .btn[data-v-6f5d48fc]{background:#6d58fb;border-radius:.16rem;color:#fff;cursor:pointer;font-family:Manrope-Bold,Manrope;font-size:.32rem;font-style:normal;font-weight:700;height:.88rem;line-height:.88rem;margin-top:25px;text-align:center;width:6.86rem}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .upload-wrap .btn.disabled[data-v-6f5d48fc]{background:rgba(109,88,251,.5);color:hsla(0,0%,100%,.7)}.feature-page .feature-page-wrap .main-wrap .main .main-pannel .result-wrap[data-v-6f5d48fc]{display:none}.feature-page .porn-tip[data-v-6f5d48fc]{background:#fff;border-radius:.16rem;height:3rem;padding:0 .3rem;width:6.26rem}.feature-page .porn-tip .title[data-v-6f5d48fc]{color:#020322;font-family:Manrope-Bold;font-size:.4rem;font-weight:700;line-height:.48rem}.feature-page .porn-tip .centet[data-v-6f5d48fc]{color:#020322;font-family:Manrope-SemiBold;font-size:.3rem;font-weight:500;line-height:.4rem;margin-top:.12rem;text-align:center}.feature-page .porn-tip .centet a[data-v-6f5d48fc]{color:#6d58fb;font-family:Manrope-Medium;-webkit-text-decoration:underline;text-decoration:underline}}",""]),m.locals={},e.exports=m},3291:function(e,t,n){"use strict";n.r(t);n(74),n(33);var r=n(11),o=n.n(r),d=n(0),l=(n(23),n(27),n(73),n(82),n(231),n(20)),f=n(59),m=n(2973),c=n(16),w={name:"FaceSwap",mixins:[l.a,f.a],data:function(){return{inputImageLoading:!1,selectSelfImgLoading:!1,isGenerating:!1,showPornTip:!1}},computed:{productDotMap:function(){return this.$store.state.productDotMap},config:function(){return this.$store.state.config},isH5:function(){return this.$store.state.isH5},initImageUrl:function(){return this.$store.state.initImageUrl},oriImageUrl:function(){return this.$store.state.oriImageUrl},inputImage:function(){return this.$store.state.inputImage},faceImage:function(){return this.$store.state.faceImage},resultImage:function(){return this.$store.state.resultImage},dataBase:function(){return this.$t("pages.faceSwap")},functionIntroData:function(){return{column:this.dataBase.column2,buttonText:this.dataBase.buttonText,step:this.dataBase.step,dashboard:this.dataBase.dashboard}}},created:function(){this.$route.meta.loginStay=!0},mounted:function(){var e,t=this.$route.query;this.$logEvent("visit_swapface",{source:null!==(e=t.utm_source)&&void 0!==e?e:""}),window.oncontextmenu=function(e){e.preventDefault()},this.$store.commit("SAVE_ORI_IMAGE_URL",""),this.$store.commit("SAVE_INPUT_IMAGE_URL",""),this.$store.commit("SAVE_INIT_IMAGE_URL",""),this.$store.commit("SAVE_FACE_IMAGE",""),this.$store.commit("SAVE_RESULT_IMAGE","")},methods:{doUpload:function(e){"ori"===e?document.querySelector("#input-img-upload").click():document.querySelector("#input-img-upload-2").click()},handleFileInputChange:function(e,t){var n;this.$logEvent("click_upload_photos_productpage",{type:this.productDotMap["Face Swap"]}),"ori"===t?this.inputImageLoading=!0:this.selectSelfImgLoading=!0;var r=null==e||null===(n=e.target)||void 0===n?void 0:n.files;this.resizeAndUpload(r,t),e.target.value=""},resizeAndUpload:function(e,t){var n=this;if(!e[0].type.startsWith("image/"))return alert("Only JPG and PNG images are supported."),this.inputImageLoading=!1,void(this.selectSelfImgLoading=!1);var r=new FileReader;r.onload=function(){var e=Object(d.a)(regeneratorRuntime.mark((function e(r){var image,o,d,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.loadImg(r.target.result);case 2:return image=e.sent,o=image.width,d=image.height,l=n.resizeImage(image,o,d),e.next=8,n.upload([l],n.acceptFileType);case 8:return f=e.sent,e.next=11,n.$api.checkImgIsPorn({params:{input_image:f}});case 11:if(!e.sent.obj.porn){e.next=17;break}return n.inputImageLoading=!1,n.selectSelfImgLoading=!1,n.showPornTip=!0,e.abrupt("return");case 17:"ori"===t?(n.inputImageLoading=!1,n.$store.commit("SAVE_ORI_IMAGE_URL",f),n.$store.commit("SAVE_INPUT_IMAGE_URL",f)):(n.selectSelfImgLoading=!1,n.$store.commit("SAVE_FACE_IMAGE",f));case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.readAsDataURL(e[0])},cleaInputImage:function(){this.$store.commit("SAVE_ORI_IMAGE_URL",""),this.$store.commit("SAVE_INPUT_IMAGE_URL",""),this.$store.commit("SAVE_INIT_IMAGE_URL","")},clearFaceImage:function(){this.$store.commit("SAVE_FACE_IMAGE","")},generate:function(){var e=this;return Object(d.a)(regeneratorRuntime.mark((function t(){var n,r,d,data,l,img;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$logEvent("click_productpage_swap_face"),""!==e.inputImage&&""!==e.faceImage){t.next=3;break}return t.abrupt("return");case 3:if(e.isLogin){t.next=6;break}return e.$store.commit("SET_SIGNIN_SIGNUP_DIALOG",!0),t.abrupt("return");case 6:if(!e.isGenerating){t.next=8;break}return t.abrupt("return");case 8:return t.prev=8,e.isGenerating=!0,e.isH5&&e.startLoading("body","image processing, please wait a few seconds."),n=e.config.FACE_SWAPPER,r=n.unit,d=n.credits,data={function:"",credits:r*d,params:{init_image:e.initImageUrl,original_image:e.oriImageUrl,face_image:e.faceImage,input_image:e.inputImage}},t.next=15,e.$api.makeFaceSwap("",data);case 15:l=t.sent,img=l.obj.aiFunctionResultVos[0].info.imgUrl,e.isGenerating=!1,e.stopLoading(),e.$store.commit("SAVE_RESULT_IMAGE",img),e.reGetUserInfo(),t.next=28;break;case 23:t.prev=23,t.t0=t.catch(8),e.isGenerating=!1,e.stopLoading(),51009===parseInt(t.t0.success,10)?(o.a.error(t.t0.msg),1===e.userInfo.subscriptionStatus?e.$store.commit("SET_CREDITS_NOT_ENOUGH_DIALOG",!0):e.$store.commit("SET_PRICE_DIALOG",!0)):o.a.error(t.t0.msg);case 28:case"end":return t.stop()}}),t,null,[[8,23]])})))()},handleDown:function(){"h5"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")?this.$logEvent("click_download_image_h5"):this.$logEvent("click_download_image"),1===this.userInfo.vipStatus?this.downloadImg(this.resultImage):this.$store.commit("SET_PRICE_DIALOG",!0)}},head:function(){var e=null,t=null,data=this.dataBase,n=this.$i18n.locale,r=null;try{e=(r=c.default.processSeoData(m["face-swap"],n,data)).imageURL,t=r.canonicalHref}catch(e){console.error('Error processing "face-swap" data:',e)}return{title:this.dataBase.title,meta:[{hid:"description",name:"description",content:this.dataBase.description},{property:"og:type",content:"website"},{property:"og:title",content:this.dataBase.title},{property:"og:url",content:t},{property:"og:image",content:e},{property:"og:site_name",content:this.dataBase.title},{property:"og:description",content:this.dataBase.description},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@ifoto"},{name:"twitter:creator",content:"@ifoto"},{name:"twitter:title",content:this.dataBase.title},{name:"twitter:description",content:this.dataBase.description},{property:"og:image",content:e}],link:m["face-swap"].link,script:r.script}}},h=w,v=(n(3136),n(1)),component=Object(v.a)(h,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"feature-page"},[t("nav-bar",{attrs:{white:""}}),e._v(" "),t("div",{staticClass:"feature-page-wrap"},[t("div",{staticClass:"main-wrap"},[t("div",{staticClass:"main"},[t("div",{staticClass:"main-text"},[t("div",{staticClass:"main-title-wrap"},[t("h1",{staticClass:"main-title"},[e._v(e._s(e.dataBase.main.title))]),e._v(" "),t("img",{staticClass:"icon",attrs:{src:e.$getFile("icon/icon-l-bingo-2.webp")}})]),e._v(" "),t("p",{staticClass:"main-desc"},[e._v("\n            "+e._s(e.dataBase.main.desc2)+"\n          ")])]),e._v(" "),t("div",{staticClass:"main-pannel row-between"},[t("input",{ref:"uploadInput",staticClass:"upload-input",attrs:{id:"input-img-upload",type:"file",accept:e.acceptFileType},on:{change:function(t){return e.handleFileInputChange(t,"ori")}}}),e._v(" "),t("input",{ref:"uploadInput",staticClass:"upload-input",attrs:{id:"input-img-upload-2",type:"file",accept:e.acceptFileType},on:{change:function(t){return e.handleFileInputChange(t,"face")}}}),e._v(" "),t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"top-wrap"},[t("div",{staticClass:"one-upload"},[t("div",{staticClass:"upload-text"},[e._v(e._s(e.dataBase.main.uploadTitle1))]),e._v(" "),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.inputImageLoading,expression:"inputImageLoading"}],staticClass:"upload-area-1",attrs:{"element-loading-custom-class":"ifoto-loading"}},[e.inputImage?[t("FriendlyImage",{staticClass:"img",attrs:{src:e.inputImage}}),e._v(" "),t("img",{staticClass:"icon-close",attrs:{src:e.$getFile("icon/icon-gray-close-2.webp")},on:{click:e.cleaInputImage}})]:t("div",{staticClass:"upload-btn row-center",on:{click:function(t){return e.doUpload("ori")}}},[e._v("\n                    "+e._s(e.dataBase.main.uploadText1)+"\n                  ")])],2)]),e._v(" "),t("div",{staticClass:"one-upload"},[t("div",{staticClass:"upload-text"},[e._v(e._s(e.dataBase.main.uploadTitle2))]),e._v(" "),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.selectSelfImgLoading,expression:"selectSelfImgLoading"}],staticClass:"upload-area-2",attrs:{"element-loading-custom-class":"ifoto-loading"}},[e.faceImage?[t("FriendlyImage",{staticClass:"img",attrs:{src:e.faceImage}}),e._v(" "),t("img",{staticClass:"icon-close",attrs:{src:e.$getFile("icon/icon-gray-close-2.webp")},on:{click:e.clearFaceImage}})]:t("div",{staticClass:"upload-btn row-center",on:{click:function(t){return e.doUpload("face")}}},[e._v("\n                    "+e._s(e.dataBase.main.uploadText2)+"\n                  ")])],2)])]),e._v(" "),t("div",{class:["btn",{disabled:""===e.inputImage||""===e.faceImage}],on:{click:e.generate}},[e._v("\n              "+e._s(e.dataBase.main.buttonText)+"\n            ")])]),e._v(" "),t("div",{staticClass:"result-wrap"},[t("div",{staticClass:"result-text"},[e._v(e._s(e.dataBase.main.uploadTitle3))]),e._v(" "),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isGenerating,expression:"isGenerating"}],staticClass:"result-img-wrap",attrs:{"element-loading-custom-class":"ifoto-loading"}},[t("FriendlyImage",{class:["result-img",e.resultImage&&1!==e.userInfo.vipStatus?"watermark":""],attrs:{src:e.resultImage||e.$getFile("face-swap-demo.webp")}})],1),e._v(" "),""!==e.resultImage?t("div",{staticClass:"down-btn",on:{click:e.handleDown}},[t("div",{staticClass:"icon-download"}),e._v("\n              "+e._s(1!==e.userInfo.vipStatus?e.dataBase.main.removeWatermark:e.dataBase.main.down)+"\n            ")]):e._e()])])])]),e._v(" "),t("function-intro-2",{attrs:{data:e.functionIntroData,colors:""}}),e._v(" "),t("faq",{attrs:{data:e.dataBase.faqData}})],1),e._v(" "),t("footer-bar"),e._v(" "),t("el-dialog",{attrs:{visible:e.showPornTip},on:{"update:visible":function(t){e.showPornTip=t}}},[t("div",{staticClass:"porn-tip column-center"},[t("div",{staticClass:"title"},[e._v(e._s("iFoto No Porn"))]),e._v(" "),t("div",{staticClass:"centet"},[e._v("\n        "+e._s("Do not upload pornographic photos to iFoto.")+"\n      ")])])]),e._v(" "),t("h5-result-dialog",{attrs:{url:e.resultImage,watermark:1!==e.userInfo.vipStatus,"watermark-type":"blur"},on:{download:function(t){return e.handleDown("h5")}}})],1)}),[],!1,null,"6f5d48fc",null);t.default=component.exports;installComponents(component,{NavBar:n(315).default,FriendlyImage:n(233).default,Faq:n(574).default,FooterBar:n(316).default,H5ResultDialog:n(2926).default})}}]);