1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e46f944f-f954-4240-b39e-c0d9b8619f6f",e._sentryDebugIdIdentifier="sentry-dbid-e46f944f-f954-4240-b39e-c0d9b8619f6f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1396],{24581:function(e,t,n){n.r(t);var i=n(3827),a=n(95079),o=n(78084),l=n(10243),r=n(75504),s=n(71126),c=n(30982),m=n(64090),u=n(82670),d=n(76122),p=n(30976),k=n(92402);t.default=e=>{let{redirect:t,signUpSuccessCallback:n,label:g,placeholder:f,submitText:v,submitClassName:h,documentId:x}=e,{handleSubmit:b,register:y,formState:{errors:I,isSubmitting:j,isDirty:S,isValid:w},reset:N}=(0,u.cI)(),A=(0,c.useTranslations)("Signup"),[z,W]=(0,m.useState)({msg:"",err:!1}),[C,Q]=(0,m.useState)(!1),[E,P]=(0,m.useState)(!1),L=(0,c.useLocale)(),U=async e=>{let t=o.QP.registerUser,n={...e,locale:L,documentId:x};return await (0,a.jB)(t,n,{})};async function F(e){let{email:t}=e;sessionStorage.setItem("userEmail",t);let i=await U(e),{message:a,user:l}=i.data;if(201===i.status){localStorage.setItem("lastLoginProvider","email");let e=sessionStorage.getItem("documentId")||void 0,i=sessionStorage.getItem("convertFormat")||void 0,a=sessionStorage.getItem("docName")||"document",r=l?.country?.toLowerCase(),c=r&&d.XL.includes(r)?o.vw.planPage:o.vw.paymentPage,m=`${c}?documentId=${encodeURIComponent(e??"")}&format=${encodeURIComponent(i??"")}&documentName=${encodeURIComponent(a??"")}`,u=await (0,s.signIn)("email",{email:t,callbackUrl:(0,k.Mg)(L,m),redirect:!1});P(!0),u?.ok&&n&&n()}else 409===i.status&&(W({msg:a,err:!0}),Q(!0));N()}return(0,m.useEffect)(()=>{C&&setTimeout(()=>{Q(!1)},2e3)},[C]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"alert-msgs",children:(0,i.jsx)(l.Alert,{open:C,onClose:()=>Q(!1),animate:{mount:{y:0},unmount:{y:50}},color:z.err?"red":"green",className:"my-8",children:z.msg})}),(0,i.jsx)(p.M,{open:E,handle:()=>{P(!E)},onAuthSuccess:()=>{P(!0)}}),(0,i.jsxs)("form",{className:"mb-8",onSubmit:b(F),noValidate:!0,children:[(0,i.jsxs)("div",{className:"relative text-center",children:[(0,i.jsx)("label",{htmlFor:"email",className:"text-sm font-semibold",children:g||A("email")}),(0,i.jsx)("input",{id:"email",type:"email",className:(0,r.Z)("h-10 w-full border text-center border-input-border text-gray-900 p-6 my-4 rounded focus:outline-black",I?.email&&"border-red-600 focus:outline-red-600"),placeholder:f||A("placeholder"),autoComplete:"off",...y("email",{required:{value:!0,message:A("emailRequired")},validate:e=>!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)||"Invalid email format"})}),I?.email&&(0,i.jsx)("p",{className:"text-red-600 text-xs font-light",children:I?.email?.message})]}),(0,i.jsx)("button",{type:"submit",disabled:!S||!w||j,className:(0,r.Z)(h,"mx-0 h-[60px] text-lg","my-4 w-full flex justify-center cursor-pointer rounded items-center","px-4 py-2","text-center font-semibold text-white hover:bg-rose-400 focus:outline-0 focus:ring focus:ring-rose-500 focus:ring-opacity-80 focus:ring-offset-2 disabled:opacity-75"),children:j?(0,i.jsx)("div",{role:"status",className:"",children:(0,i.jsx)(l.Spinner,{})}):v||A("createAccount")})]})]})}},31398:function(e,t,n){n.r(t);var i=n(3827),a=n(78084),o=n(10243),l=n(71126),r=n(30982),s=n(64090),c=n(45481);let m="https://accounts.google.com",u=()=>{if(document.querySelector(`link[href="${m}"]`))return;let e=document.createElement("link");e.rel="preconnect",e.href=m,document.head.appendChild(e)};t.default=e=>{let{callbackUrl:t,beforeStartSignIn:n,buttonText:m,signUpSuccessCallback:d,isShowLastUsed:p}=e,k=(0,r.useTranslations)("SignIn"),[g,f]=(0,s.useState)(!1);(0,r.useLocale)();let[v,h]=(0,s.useState)(null),x=async()=>{u(),f(!0),n&&n(),localStorage.setItem("lastLoginProvider","google");let e=await (0,l.signIn)("google",{callbackUrl:`${t||a.vw.home}`,redirect:!1});e?.ok&&d&&d()};return(0,s.useEffect)(()=>{h(localStorage.getItem("lastLoginProvider"))},[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"relative",children:["google"===v&&p&&(0,i.jsx)("span",{className:"absolute right-3 top-0 -translate-y-1/2 text-white text-sm px-2 py-0.5 rounded z-10 bg-orange-600",children:k("lastUsed")||"Last used"}),(0,i.jsx)("button",{type:"button",className:`w-full flex justify-center text-black cursor-pointer rounded px-4 py-2 text-center font-semibold border 2 ${"google"===v&&p?"border-orange-500":"border-input-border"}`,onClick:x,onMouseEnter:u,onFocus:u,onTouchStart:u,children:g?(0,i.jsx)("div",{role:"status",className:"",children:(0,i.jsx)(o.Spinner,{color:"blue"})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"google flex items-center justify-center",children:[(0,i.jsx)("span",{children:(0,i.jsx)(c.JM8,{size:"24"})}),(0,i.jsx)("span",{className:"mx-2",children:m||k("googleBtnText")})]})})})]})})}},30976:function(e,t,n){n.d(t,{M:function(){return p}});
2var i=n(3827),a=n(10243),o=n(70784),l=n(64090),r=n(78084),s=n(95079),c=n(76122),m=n(71126),u=n(30982);let d={en:{title:"Verify your account",emailSent:"We've sent an email to {email} with a verification link.",clickInstruction:"Please click the link in the email to activate your account.",resendWait:"Request again in ",resendQuestion:"Didnât receive the email?",resendAction:"Request a new verification email",openInbox:"Open your inbox"},es:{title:"Verifica tu cuenta",emailSent:"Hemos enviado un correo a {email} con un enlace de verificaci\xf3n.",clickInstruction:"Haz clic en el enlace del correo para activar tu cuenta.",resendWait:"Solicitar nuevamente en ",resendQuestion:"\xbfNo recibiste el correo?",resendAction:"solicitar un nuevo correo de verificaci\xf3n",openInbox:"Abrir tu bandeja de entrada"},ar:{title:"تØÙÙ Ù
Ù ØØ³Ø§Ø¨Ù",emailSent:"ÙÙØ¯ أرسÙÙØ§ Ø±Ø³Ø§ÙØ© Ø¥ÙÙ {email} ØªØØªÙ٠عÙ٠رابط Ø§ÙØªØÙÙ.",clickInstruction:"ÙØ±Ø¬Ù اÙÙÙØ± عÙÙ Ø§ÙØ±Ø§Ø¨Ø· ÙÙ Ø§ÙØ¨Ø±Ùد ÙØªÙعÙÙ ØØ³Ø§Ø¨Ù.",resendWait:"إعادة Ø§ÙØ·Ùب بعد",resendQuestion:"ÙÙ
ÙØµÙÙ Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙØ",resendAction:"إعادة Ø¥Ø±Ø³Ø§Ù Ø¨Ø±ÙØ¯ Ø§ÙØªØÙÙ",openInbox:"Ø§ÙØªØ ØµÙØ¯Ù٠اÙÙØ§Ø±Ø¯"},br:{title:"Verifique sua conta",emailSent:"Enviamos um e-mail para {email} com um link de verifica\xe7\xe3o.",clickInstruction:"Clique no link do e-mail para ativar sua conta.",resendWait:"Solicitar novamente em ",resendQuestion:"N\xe3o recebeu o e-mail?",resendAction:"solicitar um novo e-mail de verifica\xe7\xe3o",openInbox:"Abrir sua caixa de entrada"},cz:{title:"OvÄÅte svůj \xfaÄet",emailSent:"Na adresu {email} jsme odeslali ovÄÅovac\xed e-mail.",clickInstruction:"KliknÄte na odkaz v e-mailu pro aktivaci \xfaÄtu.",resendWait:"Znovu pož\xe1dat za ",resendQuestion:"Nedostali jste e-mail?",resendAction:"znovu odeslat ovÄÅovac\xed e-mail",openInbox:"OtevÅ\xedt doruÄenou poÅ¡tu"},de:{title:"Best\xe4tige dein Konto",emailSent:"Wir haben eine E-Mail an {email} mit einem Best\xe4tigungslink gesendet.",clickInstruction:"Klicke auf den Link in der E-Mail, um dein Konto zu aktivieren.",resendWait:"Erneut anfordern in ",resendQuestion:"Keine E-Mail erhalten?",resendAction:"neue Best\xe4tigungs-E-Mail anfordern",openInbox:"Posteingang \xf6ffnen"},fr:{title:"V\xe9rifiez votre compte",emailSent:"Nous avons envoy\xe9 un e-mail \xe0 {email} avec un lien de v\xe9rification.",clickInstruction:"Cliquez sur le lien dans l'e-mail pour activer votre compte.",resendWait:"Redemander dans ",resendQuestion:"Vous nâavez pas re\xe7u lâe-mail ?",resendAction:"demander un nouvel e-mail de v\xe9rification",openInbox:"Ouvrir votre bo\xeete de r\xe9ception"},hu:{title:"ErÅs\xedtse meg fi\xf3kj\xe1t",emailSent:"EllenÅrzÅ e-mailt k\xfcldt\xfcnk a(z) {email} c\xedmre.",clickInstruction:"Kattintson az e-mailben tal\xe1lhat\xf3 linkre a fi\xf3k aktiv\xe1l\xe1s\xe1hoz.",resendWait:"\xdajrak\xe9r\xe9s ennyi idÅ m\xfalva ",resendQuestion:"Nem kapta meg az e-mailt?",resendAction:"ellenÅrzÅ e-mail \xfajrak\xfcld\xe9se",openInbox:"Be\xe9rkezÅ levelek megnyit\xe1sa"},id:{title:"Verifikasi akun Anda",emailSent:"Kami telah mengirim email ke {email} dengan tautan verifikasi.",clickInstruction:"Klik tautan di email untuk mengaktifkan akun Anda.",resendWait:"Minta ulang dalam ",resendQuestion:"Tidak menerima email?",resendAction:"kirim ulang email verifikasi",openInbox:"Buka kotak masuk Anda"},it:{title:"Verifica il tuo account",emailSent:"Abbiamo inviato un'email a {email} con un link di verifica.",clickInstruction:"Clicca sul link nell'email per attivare il tuo account.",resendWait:"Richiedi di nuovo tra ",resendQuestion:"Non hai ricevuto l'email?",resendAction:"richiedi una nuova email di verifica",openInbox:"Apri la tua casella di posta"},ja:{title:"ã¢ã«ã¦ã³ãã確èªãã¦ãã ãã",emailSent:"{email} å®ã«ç¢ºèªãªã³ã¯ãå«ãã¡ã¼ã«ãéä¿¡ãã¾ããã",clickInstruction:"ã¡ã¼ã«å
ã®ãªã³ã¯ãã¯ãªãã¯ãã¦ã¢ã«ã¦ã³ããæå¹åãã¦ãã ããã",resendWait:"åãªã¯ã¨ã¹ãã¾ã§ ",resendQuestion:"ã¡ã¼ã«ãå±ãã¾ãããï¼",resendAction:"確èªã¡ã¼ã«ãåéä¿¡",openInbox:"åä¿¡ãã¬ã¤ãéã"},lt:{title:"Patvirtinkite savo paskyrÄ
",emailSent:"IÅ¡siuntÄme patvirtinimo el. laiÅ¡kÄ
adresu {email}.",clickInstruction:"SpustelÄkite nuorodÄ
el. laiÅ¡ke, kad aktyvuotumÄte paskyrÄ
.",resendWait:"Pakartoti po ",resendQuestion:"Negavote el. laiÅ¡ko?",resendAction:"iÅ¡ naujo siųsti patvirtinimo el. laiÅ¡kÄ
",openInbox:"Atidaryti gautuosius"},nl:{title:"Verifieer je account",emailSent:"We hebben een e-mail gestuurd naar {email} met een verificatielink.",clickInstruction:"Klik op de link in de e-mail om je account te activeren.",resendWait:"Opnieuw aanvragen over ",resendQuestion:"Geen e-mail ontvangen?",resendAction:"nieuwe verificatie-e-mail aanvragen",openInbox:"Inbox openen"},pl:{title:"Zweryfikuj swoje konto",emailSent:"WysÅaliÅmy wiadomoÅÄ e-mail na adres {email} z linkiem weryfikacyjnym.",clickInstruction:"Kliknij link w e-mailu, aby aktywowaÄ konto.",resendWait:"PoproÅ ponownie za ",resendQuestion:"Nie otrzymaÅeÅ e-maila?",resendAction:"wyÅlij ponownie e-mail weryfikacyjny",openInbox:"Otw\xf3rz skrzynkÄ odbiorczÄ
"},ro:{title:"VerificÄ-Èi contul",emailSent:"Am trimis un e-mail cÄtre {email} cu un link de verificare.",clickInstruction:"FÄ clic pe linkul din e-mail pentru a-Èi activa contul.",resendWait:"SolicitÄ din nou \xeen ",resendQuestion:"Nu ai primit e-mailul?",resendAction:"retrimitere e-mail de verificare",openInbox:"Deschide inbox-ul"},ru:{title:"ÐодÑвеÑдиÑе ваÑÑ ÑÑеÑнÑÑ Ð·Ð°Ð¿Ð¸ÑÑ",emailSent:"ÐÑ Ð¾ÑпÑавили пиÑÑмо на {email} Ñ ÑÑÑлкой Ð´Ð»Ñ Ð¿Ð¾Ð´ÑвеÑждениÑ.",clickInstruction:"ÐеÑейдиÑе по ÑÑÑлке в пиÑÑме, ÑÑÐ¾Ð±Ñ Ð°ÐºÑивиÑоваÑÑ Ð°ÐºÐºÐ°ÑнÑ.",resendWait:"ÐовÑоÑиÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ ÑеÑез ",resendQuestion:"Ðе полÑÑили пиÑÑмо?",resendAction:"оÑпÑавиÑÑ Ð¿Ð¸ÑÑмо повÑоÑно",openInbox:"ÐÑкÑÑÑÑ Ð¿Ð¾ÑÑÑ"},th:{title:"ยืà¸à¸¢à¸±à¸à¸à¸±à¸à¸à¸µà¸à¸à¸à¸à¸¸à¸",emailSent:"à¹à¸£à¸²à¹à¸à¹à¸ªà¹à¸à¸à¸µà¹à¸¡à¸¥à¹à¸à¸à¸µà¹ {email} à¸à¸£à¹à¸à¸¡à¸¥à¸´à¸à¸à¹à¸¢à¸·à¸à¸¢à¸±à¸à¹à¸¥à¹à¸§",clickInstruction:"à¸à¸¥à¸´à¸à¸¥à¸´à¸à¸à¹à¹à¸à¸à¸µà¹à¸¡à¸¥à¹à¸à¸·à¹à¸à¹à¸à¸´à¸à¹à¸à¹à¸à¸²à¸à¸à¸±à¸à¸à¸µà¸à¸à¸à¸à¸¸à¸",resendWait:"à¸à¸à¹à¸«à¸¡à¹à¸à¸µà¸à¸à¸£à¸±à¹à¸à¹à¸ ",resendQuestion:"à¹à¸¡à¹à¹à¸à¹à¸£à¸±à¸à¸à¸µà¹à¸¡à¸¥?",resendAction:"สà¹à¸à¸à¸µà¹à¸¡à¸¥à¸¢à¸·à¸à¸¢à¸±à¸à¸à¸µà¸à¸à¸£à¸±à¹à¸",openInbox:"à¹à¸à¸´à¸à¸à¸¥à¹à¸à¸à¸à¸à¸«à¸¡à¸²à¸¢"},tr:{title:"Hesabınızı doÄrulayın",emailSent:"{email} adresine doÄrulama baÄlantısı i\xe7eren bir e-posta g\xf6nderdik.",clickInstruction:"Hesabınızı etkinleÅtirmek i\xe7in e-postadaki baÄlantıya tıklayın.",resendWait:"Yeniden istemek i\xe7in kalan s\xfcre ",resendQuestion:"E-postayı almadınız mı?",resendAction:"doÄrulama e-postasını yeniden g\xf6nder",openInbox:"Gelen kutusunu a\xe7"},vi:{title:"X\xe1c minh t\xe0i khoản cá»§a bạn",emailSent:"Ch\xfang t\xf4i Ä\xe3 gá»i email Äến {email} k\xe8m theo li\xean kết x\xe1c minh.",clickInstruction:"Nhấp v\xe0o li\xean kết trong email Äá» k\xedch hoạt t\xe0i khoản.",resendWait:"Y\xeau cầu lại sau ",resendQuestion:"Bạn chưa nháºn ÄÆ°á»£c email?",resendAction:"gá»i lại email x\xe1c minh",openInbox:"Má» há»p thư Äến"}},p=e=>{let{open:t,handle:n,onAuthSuccess:p}=e,[k,g]=(0,l.useState)(""),[f,v]=(0,l.useState)(59),[h,x]=(0,l.useState)(!1),[b,y]=(0,l.useState)({msg:"",err:!1}),[I,j]=(0,l.useState)(!1),[S,w]=(0,l.useState)(!1),N=d[(0,u.useLocale)()]??d.en;(0,l.useEffect)(()=>
2{if(!t)return;let e=sessionStorage.getItem("userEmail");e&&g(e)},[t]),(0,l.useEffect)(()=>{I&&setTimeout(()=>{j(!1)},4e3)},[I]),(0,l.useEffect)(()=>{if(!h)return;let e=setInterval(()=>{v(t=>t<=1?(clearInterval(e),x(!1),59):t-1)},1e3);return()=>clearInterval(e)},[h]);let A=e=>{let t="https://mail.google.com/mail/u/0/#inbox";return e?({"gmail.com":t,"yahoo.com":"https://mail.yahoo.com/","yahoo.in":"https://mail.yahoo.com/","yahoo.co.uk":"https://mail.yahoo.com/","outlook.com":"https://outlook.live.com/mail/","hotmail.com":"https://outlook.live.com/mail/","live.com":"https://outlook.live.com/mail/","msn.com":"https://outlook.live.com/mail/","icloud.com":"https://www.icloud.com/mail","zoho.com":"https://mail.zoho.com/","proton.me":"https://mail.proton.me/","protonmail.com":"https://mail.proton.me/"})[e.split("@")[1]?.toLowerCase()]??t:t},z=async e=>{let t=r.QP.getUser;return await (0,s.xe)(t,{params:{email:e}})},W=async()=>{try{w(!0);let e=await z(k),{user:t}=e.data,n=sessionStorage.getItem("documentId")||void 0,i=sessionStorage.getItem("convertFormat")||void 0,a=sessionStorage.getItem("docName")||"document",o=t?.country?.toLowerCase(),l=o&&c.XL.includes(o)?r.vw.planPage:r.vw.paymentPage,s=`/${l}?documentId=${encodeURIComponent(n??"")}&format=${encodeURIComponent(i??"")}&documentName=${encodeURIComponent(a??"")}`;200===e.status&&(await (0,m.signIn)("email",{email:k,callbackUrl:s,redirect:!1}),y({msg:"We've sent a verification link to your email. Please check your inbox to activate your account.",err:!1}),j(!0),v(59),x(!0))}catch(e){y({msg:"Failed to send verification email. Please try again.",err:!0}),j(!0)}finally{w(!1)}};return(0,i.jsxs)(a.Dialog,{size:"sm",open:t,handler:n,className:"text-black py-10 px-3 md:px-8",placeholder:"dialog",children:[(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)("button",{onClick:n,className:"outline-none",children:(0,i.jsx)(o.FU5,{size:20})})}),(0,i.jsx)("div",{className:"alert-msgs",children:(0,i.jsx)(a.Alert,{open:I,onClose:()=>j(!1),animate:{mount:{y:0},unmount:{y:50}},color:b.err?"red":"green",className:"my-4",children:b.msg})}),(0,i.jsxs)("div",{className:"mt-2",children:[(0,i.jsx)("p",{className:"text-2xl font-medium text-center mb-4",children:N.title}),(0,i.jsx)("p",{className:"text-sm text-center mb-4",children:N.emailSent.replace("{email}",k)}),(0,i.jsx)("p",{className:"text-sm text-center mb-4",children:N.clickInstruction}),(0,i.jsx)("p",{className:"text-sm text-center mb-8",children:h?(0,i.jsxs)(i.Fragment,{children:[N.resendWait,(0,i.jsxs)("span",{className:"font-medium",children:["0:",f.toString().padStart(2,"0")]})]}):(0,i.jsxs)(i.Fragment,{children:[N.resendQuestion," ",(0,i.jsx)("button",{onClick:W,className:"text-blue-600 hover:underline",children:S?(0,i.jsx)(a.Spinner,{className:"h-4 w-4"}):N.resendAction})]})}),(0,i.jsx)("button",{onClick:()=>{window.open(A(k),"_blank","noopener,noreferrer"),p()},className:"w-full rounded-md bg-pivot-color py-3 text-white font-medium hover:opacity-90 transition",children:N.openInbox})]})]})}}}]);
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.