var e,a,l,t,s,o,i;/* empty css */import{v as n}from"./el-loading-BMCK-0qT.js";import{cD as r,al as u,a0 as c,bi as d,bg as m,aM as g,bs as v,q as f,ax as p,aS as b,aE as y,s as h,bx as w,bz as $,bp as k,u as _,v as C,I as P,aq as U,H as x,b3 as L,aQ as S,bc as M,F as A,ao as F,t as V,g as D,aI as H,aF as T,an as I,aR as j,dt as z,aC as B,du as q}from"./index-H1gHScdk.js";import{_ as N}from"./icon-close-IHa1HKOl.js";import{a as E}from"./index-AYdyW-i7.js";import{c as O}from"./index-v0YnrYDl.js";const W="/assets/icon-prompt-_2rE2L0T.svg",R={key:0,class:"dialog-wrapper"},G={class:"dialog-header"},K=[(te=()=>C("img",{src:N},null,-1),H("data-v-207bb67a"),te=te(),T(),te)],Y={class:"dialog-body"},Q={key:0,class:"dialog-footer"},X={key:0,class:"footer-buttons"},J=["disabled"],Z=r({__name:"dialog",props:u({title:{type:String,default:""},width:{type:String,default:"max-content"},maxWidth:{type:String,default:"unset"},clickOutsideHidden:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!1},confirmText:{type:String,default:null},confirmDisabled:{type:Boolean,default:!1},cancelText:{type:String,default:null},useCache:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:u(["on-cancel","on-confirm"],["update:modelValue"]),setup(e,{expose:a,emit:l}){const{$t:t}=c().proxy,s=e,o=d(),i=l,r=m(e,"modelValue"),u=g(!1);v((()=>r.value),(e=>{e&&s.useCache&&!u.value&&(u.value=!0)}));const H=f((()=>!s.useCache||r.value)),T=g(!1),I=f((()=>s.confirmText||t("OK"))),j=f((()=>s.cancelText||t("Later"))),z=()=>{if(T.value)return!1;i("on-confirm")},B=()=>{r.value=!1};let q=0;const N=()=>{if(s.clickOutsideHidden){const e=Date().now;r.value&&e-q>100&&(r.value=!1),q=e}};return a({startBtnLoading:()=>T.value=!0,stopBtnLoading:()=>T.value=!1}),p((()=>{})),(e,a)=>{const l=n,t=b("click-outside");return y(),h(D,{name:"fade"},{default:w((()=>[r.value||u.value?$((y(),_("div",R,[C("div",{class:"dialog-screen",onClick:N}),P(D,{name:"fade-top"},{default:w((()=>[r.value||u.value?$((y(),_("div",{key:0,class:"dialog-container",style:U({width:s.width,maxWidth:s.maxWidth})},[C("div",G,[x(L(s.title)+" ",1),C("button",{class:"close",onClick:B},K)]),C("div",Y,[S(e.$slots,"default",{},void 0,!0)]),s.showFooter?(y(),_("div",Q,[S(e.$slots,"footer",{},void 0,!0),M(o).footer?V("",!0):(y(),_(A,{key:0},[S(e.$slots,"footerLeft",{},void 0,!0),s.showFooter?(y(),_("div",X,[C("button",{class:"cancel",onClick:a[0]||(a[0]=e=>i("on-cancel"))},L(j.value),1),$((y(),_("button",{class:F(["confirm",{loading:T.value,disabled:s.confirmDisabled}]),disabled:s.confirmDisabled,onClick:z},[x(L(I.value),1)],10,J)),[[l,T.value]])])):V("",!0)],64))])):V("",!0)],4)),[[k,H.value],[t,N]]):V("",!0)])),_:3})],512)),[[k,H.value]]):V("",!0)])),_:3})}}},[["__scopeId","data-v-207bb67a"]]),ee={class:"youtube-video"},ae=r({__name:"video-youtube",props:{modelValue:{default:!1},modelModifiers:{}},emits:["update:modelValue"],setup(e){const a=g(null),l=m(e,"modelValue");return v((()=>l.value),(e=>{I((()=>{a.value&&(e?a.value.play():a.value.pause())}))})),(e,t)=>{const s=j("youtube-video");return y(),h(Z,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e),"use-cache":!0},{default:w((()=>[C("div",ee,[P(s,{ref_key:"refYouTube",ref:a,class:"video",src:"https://www.youtube.com/watch?v=L0mN9fKzSjA",controls:""},null,512)])])),_:1},8,["modelValue"])}}},[["__scopeId","data-v-fc9ee1cb"]]),le={};var te;E.subPid&&(le.subPid=E.subPid),E.channel&&(le.channel=E.channel),E.utmSource&&(le.utm_source=E.utmSource);const se=z.currentRoute.value;(null==(e=se.query)?void 0:e.utm_medium)&&(le.utm_medium=null==(a=se.query)?void 0:a.utm_medium),(null==(l=se.query)?void 0:l.utm_campaign)&&(le.utm_campaign=null==(t=se.query)?void 0:t.utm_campaign);let oe=Object.keys(le).map((e=>`${e}=${le[e]}`)).join("&");oe=oe?`?${oe}`:"";const ie=E.isCN?null==(s=O.localeLangs["zh-CN"])?void 0:s.websiteHome:(null==(o=O.localeLangs[E.language])?void 0:o.websiteHome)||(null==(i=O.localeLangs["en-US"])?void 0:i.websiteHome),ne={websiteUrl:{webHome:`${ie}${oe}`,privacyPolicy:`${ie}privacy-policy/${oe}`,licenseAgreement:`${ie}license-agreement/${oe}`,softwareSubscriptionAgreement:`${ie}software-subscription-agreement/${oe}`,cookies:`${ie}cookies/${oe}`,refundPolicy:`${ie}refund-policy/${oe}`,policyLzsm:`${ie}policy-lzsm/${oe}`}},re=e=>(H("data-v-50e658d7"),e=e(),T(),e),ue={class:"login-container"},ce=re((()=>C("img",{src:"/assets/updf-logo-yV99pFeD.png",alt:""},null,-1))),de={class:"btn-group"},me=["innerHTML"],ge={class:"desc"},ve=re((()=>C("div",{class:"border-gradient"},null,-1))),fe={src:"/assets/icon-play-FXPzBIFM.svg"},pe=re((()=>C("div",{class:"border-gradient"},null,-1))),be={src:W,alt:""},ye=["src"],he=["src"],we={class:"right"},$e=["src"],ke=["src"],_e=["src"],Ce={key:0},Pe=re((()=>C("span",{class:"none-font-family"},"©",-1))),Ue={href:"https://beian.miit.gov.cn/",target:"_blank"},xe=["href"],Le=["href"],Se=["href"],Me=["href"],Ae=["href"],Fe=["href"],Ve={key:1},De=["href"],He=["href"],Te=["href"],Ie=["href"],je=["href"],ze=r({__name:"login",setup(e){const a=g(0),l=g(!1),t=()=>{q()},s=E.language,o=()=>{window.open(ne.websiteUrl.webHome)},i=e=>{a.value=window.scrollY/100},n=g(!1);return p((()=>{window.addEventListener("scroll",i)})),B((()=>{window.removeEventListener("scroll",i)})),(e,i)=>{const r=b("svg-inline");return y(),_(A,null,[C("div",ue,[C("header",null,[C("div",{class:"header-bg",style:U({opacity:a.value})},null,4),C("div",{class:"logo",onClick:o},[ce,x(" UPDF ")]),C("div",de,[C("button",{class:"login hover-translate",onClick:t},L(e.$t("Log in")),1)])]),C("div",{class:F(`container ${M(E).language} ${M(E).isCN?"cn":""}`)},[C("h1",{class:"title",innerHTML:e.$t("UPDF AI : The Most Powerful AI Assistant for Handling PDFs")},null,8,me),C("p",ge,L(e.$t("Summarize, translate, explain, rewrite, ideate... Get your PDF work done faster with UPDF AI - your new launchpad for productivity and creativity. Powered by GPT-4.")),1),M(E).isCN?V("",!0):(y(),_("button",{key:0,class:"watch-video",onClick:i[0]||(i[0]=e=>n.value=!0)},[ve,$(C("img",fe,null,512),[[r]]),C("span",null,L(e.$t("Watch the video")),1)])),C("div",{class:"input-message",onClick:t},[pe,$(C("img",be,null,512),[[r]]),C("p",null,L(e.$t("Ask something")),1)]),C("div",{class:"images-mobile",onClick:t},[C("img",{src:`/images/login/login-img-${M(s)}-m.png`,alt:""},null,8,ye)]),C("div",{class:F(["images",{hover:l.value}]),onClick:t},[C("img",{class:"left",style:{"--scale":"1.2","--scale-hover":"1.13"},onMouseenter:i[1]||(i[1]=e=>l.value=!0),onMouseleave:i[2]||(i[2]=e=>l.value=!1),src:`/images/login/login-img-${M(s)}-01.png`,alt:""},null,40,he),C("div",we,[C("img",{class:"top",style:{"transform-origin":"bottom center"},onMouseenter:i[3]||(i[3]=e=>l.value=!0),onMouseleave:i[4]||(i[4]=e=>l.value=!1),src:`/images/login/login-img-${M(s)}-02.png`,alt:""},null,40,$e),C("img",{class:"bottom",style:{"transform-origin":"top center"},onMouseenter:i[5]||(i[5]=e=>l.value=!0),onMouseleave:i[6]||(i[6]=e=>l.value=!1),src:`/images/login/login-img-${M(s)}-03.png`,alt:""},null,40,ke),C("img",{class:"bottom",style:{"transform-origin":"top center"},onMouseenter:i[7]||(i[7]=e=>l.value=!0),onMouseleave:i[8]||(i[8]=e=>l.value=!1),src:`/images/login/login-img-${M(s)}-04.png`,alt:""},null,40,_e)])],2)],2),M(E).isCN?(y(),_("footer",Ce,[Pe,x(L(e.$t(" 2024 èµ›åšçˆ±æ€ï¼ˆä¸Šæµ·ï¼‰è½¯ä»¶æœ‰é™å…¬å¸ 版æƒæ‰€æœ‰"))+" ",1),C("a",Ue,L(e.$t("沪ICP备2021027753å·-2")),1),x(" | "),C("a",{href:M(ne).websiteUrl.privacyPolicy,target:"_blank"},L(e.$t("éšç§åè®®")),9,xe),x(" | "),C("a",{href:M(ne).websiteUrl.licenseAgreement,target:"_blank"},L(e.$t("许å¯åè®®")),9,Le),x(" | "),C("a",{href:M(ne).websiteUrl.softwareSubscriptionAgreement,target:"_blank"},L(e.$t("订阅åè®®")),9,Se),x(" | "),C("a",{href:M(ne).websiteUrl.cookies,target:"_blank"},L(e.$t("Cookies")),9,Me),x(" | "),C("a",{href:M(ne).websiteUrl.refundPolicy,target:"_blank"},L(e.$t("退款政ç–")),9,Ae),x(" | "),C("a",{href:M(ne).websiteUrl.policyLzsm,target:"_blank"},L(e.$t("代ç†è®¸å¯")),9,Fe)])):(y(),_("footer",Ve,[x(L(e.$t("Copyright © 2024 Superace. All rights reserved."))+" ",1),C("a",{href:M(ne).websiteUrl.privacyPolicy,target:"_blank"},L(e.$t("Privacy Policy")),9,De),x(" | "),C("a",{href:M(ne).websiteUrl.licenseAgreement,target:"_blank"},L(e.$t("Terms and Conditions")),9,He),x(" | "),C("a",{href:M(ne).websiteUrl.softwareSubscriptionAgreement,target:"_blank"},L(e.$t("Subscription Agreement")),9,Te),x(" | "),C("a",{href:M(ne).websiteUrl.cookies,target:"_blank"},L(e.$t("Cookies")),9,Ie),x(" | "),C("a",{href:M(ne).websiteUrl.refundPolicy,target:"_blank"},L(e.$t("Refund Policy")),9,je)]))]),P(ae,{modelValue:n.value,"onUpdate:modelValue":i[9]||(i[9]=e=>n.value=e)},null,8,["modelValue"])],64)}}},[["__scopeId","data-v-50e658d7"]]);export{Z as D,ze as L,W as _};