PageSourceSearch

https://casinosanalyzer.ca/build/midori/assets/js/auth/popups/authGamificationPopup.min.js?v=5801963

js casinosanalyzer.ca collected 2026-09-25 23:52:35 UTC 37,634 bytes, 1 lines download raw bytes

1import{checkEmailExists,sendResetPasswordLink,signIn,signUp,sendConfirmEmailLink}from"authApi";import{utmParams,getLocaleCountry as __agp_localeCountry}from"globals";import{__translate as __agp_translate}from"translate";class AuthGamificationPopup{translate(t,e=!1){return __agp_translate(t,__agp_localeCountry()||"en",e)||t}translateErrorMessage(t){return t?this.translate(t):""}getTermsUrl(){return document.body?.dataset?.termsPath||"/terms"}getPolicyUrl(){return document.body?.dataset?.privacyPath||"/privacy"}getCheckEmailText(){return`${this.translate("Click on the link we sent to %%email%% to finish your account setup. Wrong email?").replace("%%email%%",this.credentials.email)} <a class="update" id="authEmailUpdateEmail">${this.translate("Click here to update it")}</a>`}constructor(){this.clickEmailLoginAmplitude=()=>{},this.clickEmailSignupAmplitude=()=>{},this.clickGoogleLoginAmplitude=()=>{},this.clickGoogleSignupAmplitude=()=>{},this.clickGoUpSignUpPopupAmplitude=()=>{},this.clickResetPasswordAmplitude=()=>{},this.clickSendEmailConfirmPopupAmplitude=()=>{},this.loginExistingUserAmplitude=()=>{},this.registrationNewUserAmplitude=()=>{},this.showBlockEmailConfirmPopupAmplitude=()=>{},this.showBlockLoginPopupPasswordAmplitude=()=>{},this.showBlockSignUpPopupAmplitude=()=>{},this.showBlockSignUpPopupMailAmplitude=()=>{},this.showBlockSignUpPopupPasswordAmplitude=()=>{},this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.noAmplitudeParam||(async()=>{const{clickEmailSignupAmplitude:t,clickGoogleLoginAmplitude:e,clickGoogleSignupAmplitude:i,clickGoUpSignUpPopupAmplitude:n,clickResetPasswordAmplitude:s,clickSendEmailConfirmPopupAmplitude:a,loginExistingUserAmplitude:o,registrationNewUserAmplitude:l,showBlockEmailConfirmPopupAmplitude:r,showBlockLoginPopupPasswordAmplitude:c,showBlockSignUpPopupPasswordAmplitude:d}=await import("authAmplitude");this.clickEmailLoginAmplitude=()=>{setTimeout(()=>{"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push(Object.assign({event:"addEvents_click",event_cat:"w_website_gamification_email",event_name:"signup",page_current_path:JSON.stringify(document.location.pathname),page_url_full:JSON.stringify(document.location.href),page_group:JSON.stringify("w_website_google"),page_route_id:JSON.stringify(document.body.dataset.routeId),website_domain:JSON.stringify(document.location.hostname)},utmParams()))},0)},this.clickEmailSignupAmplitude=()=>{setTimeout(()=>{"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push(Object.assign({event:"addEvents_click",event_cat:"w_website_gamification_email",event_name:"signup",page_current_path:JSON.stringify(document.location.pathname),page_url_full:JSON.stringify(document.location.href),page_group:JSON.stringify("w_website_google"),page_route_id:JSON.stringify(document.body.dataset.routeId),website_domain:JSON.stringify(document.location.hostname)},utmParams()))},0)},this.clickGoogleLoginAmplitude=()=>{setTimeout(()=>{"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push(Object.assign({event:"addEvents_click",event_cat:"w_website_gamification_google",event_name:"signup",page_current_path:JSON.stringify(document.location.pathname),page_url_full:JSON.stringify(document.location.href),page_group:JSON.stringify("w_website_google"),page_route_id:JSON.stringify(document.body.dataset.routeId),website_domain:JSON.stringify(document.location.hostname)},utmParams()))},0)},this.clickGoogleSignupAmplitude=()=>{setTimeout(()=>{"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push(Object.assign({event:"addEvents_click",event_cat:"w_website_gamification_google",event_name:"signup",page_current_path:JSON.stringify(document.location.pathname),page_url_full:JSON.stringify(document.location.href),page_group:JSON.stringify("w_website_google"),page_route_id:JSON.stringify(document.body.dataset.routeId),website_domain:JSON.stringify(document.location.hostname)},utmParams()))},0)},this.clickGoUpSignUpPopupAmplitude=n,this.clickResetPasswordAmplitude=s,this.clickSendEmailConfirmPopupAmplitude=a,this.loginExistingUserAmplitude=o,this.registrationNewUserAmplitude=(t,e)=>{"undefined"!=typeof dataLayer&&dataLayer&&("undefined"!=typeof amplitude&&amplitude.setUserId?amplitude.setUserId(null==t?t:String(t)):"undefined"!=typeof zaraz&&"function"==typeof zaraz.track&&zaraz.set("user_id",t),setTimeout(()=>{dataLayer.push(Object.assign({event_id:`${JSON.stringify(t)}_${(new Date).getDate()}_registration`,event:"addEvents_registration",event_cat:"w_website",event_name:"new_user",page_current_path:JSON.stringify(document.location.pathname),page_url:JSON.stringify(document.location.href),page_url_full:JSON.stringify(document.location.href),page_group:JSON.stringify("w_website_regtypes"),page_route_id:JSON.stringify(document.body.dataset.routeId),registration_via:JSON.stringify(e),reg_placement:JSON.stringify(storage.getRegPlacement("reg_placement")),user_id:JSON.stringify(t),gamification:JSON.stringify(!0),website_domain:JSON.stringify(document.location.hostname)}
1,utmParams()))},0))},this.showBlockEmailConfirmPopupAmplitude=r,this.showBlockLoginPopupPasswordAmplitude=c,this.showBlockSignUpPopupPasswordAmplitude=d})()}credentials={email:"",password:""};userLoginOneTime=storage.getLoginOneTime();showAuthBannerOneTime=storage.getShowAuthBanner();checkRegistrationVia=storage.getCheckRegistrationVia();async generateMainHTML(t="main"){let e=`\n            <div class="auth_popup questPopup__authPopup" id="authPopup">\n              <div id="authPopupBox" class="auth_popup-box">\n                <div class="auth_popup-side">\n                \t\t<div class="questPopup__authPopup__coinWrapper">\n                \t\t\t<img src="/build/midori/assets/icons/icons_264.svg#coin" alt="" aria-hidden="true">\n                \t\t\t<img src="/build/midori/assets/icons/icons_264.svg#coin" alt="" aria-hidden="true">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="questPopup__authPopup__btns">\n\t\t\t\t\t\t\t\t\t\t\t<button class="questPopup__authPopup__btnReturn" id="questsPopupReturn">\n\t\t\t\t\t\t\t\t\t\t\t\t<svg>\n\t\t\t\t                    <use href="/build/midori/assets/icons/gamification.svg#arrow"></use>\n\t\t\t\t                </svg>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t<button class="questPopup__authPopup__btnClose" id="authClose">\n\t\t\t\t\t\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\n                    <h3 class="title">${this.translate("Earn coins daily and exchange them for rewards!")}</h3>\n                                     \n                    <div class="condition_options-box">\n                    \t<div class="option">\n\t                      <span class="questPopup__authPopup__check">\n\t                      \t<svg><use href="/build/midori/assets/icons/gamification.svg#check_green"></use></svg>\n\t\t\t\t                </span>\n\t\t\t\t                <p class="text">${this.translate("Exclusive bonuses")}</p>\n\t\t\t                </div>\n                    \t<div class="option">\n\t                      <span class="questPopup__authPopup__check">\n\t\t                        <svg><use href="/build/midori/assets/icons/gamification.svg#check_green"></use></svg>\n\t\t\t\t\t                </span>\n\t                      <p class="text">${this.translate("Limited no-deposit deals")}</p>\n                      </div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t<div class="questPopup__authPopup__bottom">\n\t                    <a id="authGoogle" class="social_btn" href="/connect/google">\n\t                        <svg class="auth_popup_social-icon" width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t                            <rect x="0.5" y="0.5" width="35" height="35" rx="17.5" fill="white"/>\n\t                            <path d="M29.2517 18.275C29.2517 17.5 29.1767 16.7 29.0517 15.95H18.2266V20.375H24.4266C24.1766 21.8 23.3516 23.05 22.1266 23.85L25.8266 26.7251C28.0017 24.7 29.2517 21.75 29.2517 18.275Z" fill="#4280EF"/>\n\t                            <path d="M18.2267 29.4752C21.3267 29.4752 23.9267 28.4502 25.8268 26.7002L22.1267 23.8501C21.1017 24.5501 19.7767 24.9501 18.2267 24.9501C15.2266 24.9501 12.7016 22.9251 11.7766 20.2251L7.97656 23.1501C9.92658 27.0252 13.8766 29.4752 18.2267 29.4752Z" fill="#34A353"/>\n\t                            <path d="M11.7766 20.1999C11.3016 18.7749 11.3016 17.2249 11.7766 15.7999L7.97658 12.8499C6.35156 16.0999 6.35156 19.9249 7.97658 23.15L11.7766 20.1999Z" fill="#F6B704"/>\n\t                            <path d="M18.2267 11.0749C19.8517 11.0499 21.4517 11.6749 22.6267 12.7999L25.9018 9.49988C23.8267 7.54986 21.0767 6.49985 18.2267 6.52485C13.8766 6.52485 9.92658 8.97488 7.97656 12.8499L11.7766 15.8C12.7016 13.0749 15.2266 11.0749 18.2267 11.0749Z" fill="#E54335"/>\n\t                            <rect x="0.5" y="0.5" width="35" height="35" rx="17.5" stroke="#DCDCDC"/>\n\t                        </svg>\n\t                        <span class="text_button">
1${this.translate("Continue with Google")}</span>\n\t                    </a>\n\t                    <button id="authEmailButton" class="email_btn">\n\t                        <svg class="auth_popup_social-icon" width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t                            <rect width="36" height="36" rx="18" fill="white" fill-opacity="0.08"/>\n\t                            <g clip-path="url(#clip0_7547_131655)">\n\t                            <path d="M9.7526 9.75H26.2526C26.4957 9.75 26.7289 9.84658 26.9008 10.0185C27.0727 10.1904 27.1693 10.4236 27.1693 10.6667V25.3333C27.1693 25.5764 27.0727 25.8096 26.9008 25.9815C26.7289 26.1534 26.4957 26.25 26.2526 26.25H9.7526C9.50949 26.25 9.27633 26.1534 9.10442 25.9815C8.93251 25.8096 8.83594 25.5764 8.83594 25.3333V10.6667C8.83594 10.4236 8.93251 10.1904 9.10442 10.0185C9.27633 9.84658 9.50949 9.75 9.7526 9.75ZM25.3359 13.6348L18.0686 20.1432L10.6693 13.6147V24.4167H25.3359V13.6348ZM11.1377 11.5833L18.0585 17.6902L24.8794 11.5833H11.1377Z" fill="white"/>\n\t                            </g>\n\t                            <defs>\n\t                            <clipPath id="clip0_7547_131655">\n\t                            <rect width="22" height="22" fill="white" transform="translate(7 7)"/>\n\t                            </clipPath>\n\t                            </defs>\n\t                        </svg>\n\t                        <span class="text_button">${this.translate("Continue with E-mail")}</span>\n\t                    </button> \n\t                    <p class="accepts">\n\t                    ${this.translate('By subscribing, you consent to receiving marketing letters and having your opens and clicks tracked, and confirm you\'ve read and accepted our <a class="link" target="_blank" href="%%termsUrl%%">Terms</a> and <a class="link" target="_blank" href="%%policyUrl%%">Policy</a>').replace("%%termsUrl%%",this.getTermsUrl()).replace("%%policyUrl%%",this.getPolicyUrl())}\n\t                    </p>\n                    </div>\n                </div>\n               </div> \n            </div>\n        `;document.body.insertAdjacentHTML("beforeend",e),this.emailStepClick(),this.closeClick(),this.questsPopupReturnClick(),this.scrollUpClick(),this.showBlockSignUpPopupAmplitude(),this.googleSignupTrackClick(document.getElementById("authGoogle")),this.emailSignupTrackClick(document.getElementById("authEmailButton")),this.loadRecaptchaScript()}generateEmailStepHTML(){let t=`\n            <div class="auth_popup" id="authPopup">\n              <div class="auth_popup-box-full">\n                   <button class="auth_popup-return" id="authReturnTo">\n                        <svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n                            <g clip-path="url(#clip0_7597_135674)">\n                            <path d="M20.1301 23.8334H34.3307V26.1668H20.1301L26.3881 32.4248L24.7384 34.0744L15.6641 25.0001L24.7384 15.9258L26.3881 17.5754L20.1301 23.8334Z" fill="white"/>\n                            </g>\n                            <rect x="0.5" y="0.5" width="49" height="49" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n                            <defs>\n                            <clipPath id="clip0_7597_135674">\n                            <rect width="28" height="28" fill="white" transform="translate(11 11)"/>\n                            </clipPath>\n                            </defs>\n                        </svg>\n                   </button>\n                   <button class="auth_popup-close" id="authClose">\n                        <svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n                            <g clip-path="url(#clip0_7547_133184)">\n                            <path d="M25.0028 23.3504L30.7778 17.5754L32.4275 19.2251L26.6525 25.0001L32.4275 30.7751L30.7778 32.4248L25.0028 26.6498L19.2278 32.4248L17.5781 30.7751L23.3531 25.0001L17.5781 19.2251L19.2278 17.5754L25.0028 23.3504Z" fill="white"/>\n                            </g>\n                            <rect x="0.5" y="0.5" width="49" height="49" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n                            <defs>\n                            <clipPath id="clip0_7547_133184">\n                            <rect width="28" height="28" fill="white" transform="translate(11 11)"/>\n                            </clipPath>\n                            </defs>\n                        </svg>\n                   </button>\n                    \n                   <div class="form">\n                        <h2 class="title">${this.translate("What’s your e-mail?")}</h2>\n\n                        <input id="authEmailInput" class="input" type="email" placeholder="${this.translate("E-mail")}" />
1\n                        <span id="authEmailError" class="error"></span>\n                        \n                        ${this.userLoginOneTime?"":'<div id="authRecaptcha" class="recaptcha"></div>'}\n                       \n                        <button id="authEmailContinueButton" class="continue_button">${this.translate("Continue")}</button>\n                        \n                        <div class="separate">\n                            <svg class="left_line" width="175" height="1" viewBox="0 0 175 1" fill="none" xmlns="http://www.w3.org/2000/svg">\n                                <line y1="0.5" x2="174.161" y2="0.5" stroke="white" stroke-opacity="0.2"/>\n                            </svg>\n                            ${this.translate("or")}\n                            <svg class="right_line" width="175" height="1" viewBox="0 0 175 1" fill="none" xmlns="http://www.w3.org/2000/svg">\n                                <line x1="0.835938" y1="0.5" x2="174.997" y2="0.5" stroke="white" stroke-opacity="0.2"/>\n                            </svg>\n                        </div>       \n                   <div class="socials"> \n                       <a id="authGoogle" class="social_button" href="/connect/google">\n                           <svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg">\n                               <rect width="52" height="52" rx="26" fill="white" fill-opacity="0.06"/>\n                               <rect x="6" y="6" width="40" height="40" rx="20" fill="white"/>\n                               <path d="M38.5001 26.3058C38.5001 25.4447 38.4168 24.5558 38.2779 23.7224H26.25V28.6391H33.139C32.8612 30.2225 31.9445 31.6114 30.5834 32.5003L34.6945 35.6948C37.1112 33.4447 38.5001 30.1669 38.5001 26.3058Z" fill="#4280EF"/>\n                               <path d="M26.2484 38.7503C29.6929 38.7503 32.5818 37.6114 34.6929 35.6669L30.5818 32.5002C29.4429 33.278 27.9706 33.7225 26.2484 33.7225C22.915 33.7225 20.1094 31.4724 19.0816 28.4724L14.8594 31.7224C17.0261 36.028 21.415 38.7503 26.2484 38.7503Z" fill="#34A353"/>\n                               <path d="M19.0843 28.4446C18.5565 26.8612 18.5565 25.139 19.0843 23.5556L14.862 20.2778C13.0564 23.889 13.0564 28.139 14.862 31.7224L19.0843 28.4446Z" fill="#F6B704"/>\n                               <path d="M26.2484 18.3056C28.054 18.2778 29.8318 18.9723 31.1373 20.2223L34.7763 16.5556C32.4707 14.3889 29.4151 13.2222 26.2484 13.25C21.415 13.25 17.0261 15.9722 14.8594 20.2779L19.0816 23.5557C20.1094 20.5279 22.915 18.3056 26.2484 18.3056Z" fill="#E54335"/>\n                               <rect x="0.5" y="0.5" width="51" height="51" rx="25.5" stroke="white" stroke-opacity="0.12"/>\n                           </svg>\n                       </a>\n                   </div>         \n                </div>\n              </div> \n            </div>\n        `;document.body.insertAdjacentHTML("beforeend",t),!this.userLoginOneTime&&this.callRecaptcha(),this.emailContinueClick(),this.closeClick(),this.returnToClick(document.getElementById("authReturnTo"),"mainHTML"),this.showBlockSignUpPopupMailAmplitude(),this.googleSignupTrackClick(document.getElementById("authGoogle"))}generateCreatePasswordStepHTML(){let t=`\n            <div class="auth_popup" id="authPopup">\n              <div class="auth_popup-box-full">\n                   <button class="auth_popup-return" id="authReturnTo">\n                        <svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n                            <g clip-path="url(#clip0_7597_135674)">\n                            <path d="M20.1301 23.8334H34.3307V26.1668H20.1301L26.3881 32.4248L24.7384 34.0744L15.6641 25.0001L24.7384 15.9258L26.3881 17.5754L20.1301 23.8334Z" fill="white"/>\n                            </g>\n                            <rect x="0.5" y="0.5" width="49" height="49" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n                            <defs>\n                            <clipPath id="clip0_7597_135674">\n                            <rect width="28" height="28" fill="white" transform="translate(11 11)"/>\n                            </clipPath>\n                            </defs>\n                        </svg>\n                   </button>\n                   <button class="auth_popup-close" id="authClose">
1\n                        <svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n                            <g clip-path="url(#clip0_7547_133184)">\n                            <path d="M25.0028 23.3504L30.7778 17.5754L32.4275 19.2251L26.6525 25.0001L32.4275 30.7751L30.7778 32.4248L25.0028 26.6498L19.2278 32.4248L17.5781 30.7751L23.3531 25.0001L17.5781 19.2251L19.2278 17.5754L25.0028 23.3504Z" fill="white"/>\n                            </g>\n                            <rect x="0.5" y="0.5" width="49" height="49" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n                            <defs>\n                            <clipPath id="clip0_7547_133184">\n                            <rect width="28" height="28" fill="white" transform="translate(11 11)"/>\n                            </clipPath>\n                            </defs>\n                        </svg>\n                   </button>\n                    \n                   <div class="form">\n                        <h2 class="title">${this.translate("Create password")}</h2>\n                        <p class="text">${this.translate("Make sure it contains 8+ characters")}</p>\n                        <div class="input_box">\n                            <input id="authPasswordCreateInput" class="input" type="password" placeholder="${this.translate("Password")}" />\n                            <svg id="authPasswordShow" class="icon_eye" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n                                <g clip-path="url(#clip0_7675_1859)">\n                                <path d="M4.51869 5.93407L1.39169 2.80807L2.80669 1.39307L22.6057 21.1931L21.1907 22.6071L17.8807 19.2971C16.1219 20.4126 14.0814 21.0034 11.9987 21.0001C6.60669 21.0001 2.12069 17.1201 1.17969 12.0001C1.60972 9.67078 2.78132 7.54296 4.51969 5.93407H4.51869ZM14.7557 16.1721L13.2917 14.7081C12.7317 14.976 12.1025 15.0636 11.4906 14.9589C10.8788 14.8541 10.3145 14.5621 9.87556 14.1232C9.43662 13.6843 9.14466 13.12 9.0399 12.5081C8.93515 11.8963 9.02277 11.267 9.29069 10.7071L7.82669 9.24307C7.1904 10.2046 6.90596 11.3564 7.02152 12.5036C7.13708 13.6507 7.64554 14.7227 8.46081 15.5379C9.27607 16.3532 10.348 16.8617 11.4952 16.9772C12.6424 17.0928 13.7942 16.8084 14.7557 16.1721ZM7.97269 3.76007C9.21969 3.27007 10.5787 3.00007 11.9987 3.00007C17.3907 3.00007 21.8767 6.88007 22.8177 12.0001C22.5113 13.6658 21.8225 15.2376 20.8057 16.5921L16.9457 12.7321C17.0603 11.9597 16.9925 11.1712 16.7476 10.4297C16.5027 9.68827 16.0876 9.01448 15.5354 8.46233C14.9833 7.91019 14.3095 7.49504 13.568 7.25014C12.8266 7.00524 12.0381 6.93741 11.2657 7.05207L7.97269 3.76107V3.76007Z" fill="#B5B5B5"/>\n                                </g>\n                                <defs>\n                                <clipPath id="clip0_7675_1859">\n                                <rect width="24" height="24" fill="white"/>\n                                </clipPath>\n                                </defs>\n                            </svg>\n                        </div>\n                        <span id="authPasswordCreateError" class="error"></span>\n                        <button id="authPasswordCreateContinueButton" class="continue_button">${this.translate("Continue")}</button>\n                </div>\n              </div> \n            </div>\n        `;document.body.insertAdjacentHTML("beforeend",t),this.closeClick(),this.passwordCreateContinueClick(),this.passwordShowClick(document.getElementById("authPasswordCreateInput")),this.returnToClick(document.getElementById("authReturnTo"),"emailStepHTML"),this.showBlockSignUpPopupPasswordAmplitude()}generateEnterPasswordStepHTML(){let t=`\n            <div class="auth_popup" id="authPopup">\n              <div class="auth_popup-box-full">\n                   <button class="auth_popup-return" id="authReturnTo">\n                        <svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n                            <g clip-path="url(#clip0_7597_135674)">\n                            <path d="M20.1301 23.8334H34.3307V26.1668H20.1301L26.3881 32.4248L24.7384 34.0744L15.6641 25.0001L24.7384 15.9258L26.3881 17.5754L20.1301 23.8334Z" fill="white"/>\n                            </g>\n                            <rect x="0.5" y="0.5" width="49" height="49" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n                            <defs>\n                            <clipPath id="clip0_7597_135674">\n                            <rect width="28" height="28" fill="white" transform="translate(11 11)"/>\n                            </clipPath>\n                            </defs>\n                        </svg>\n                   </button>\n                   <button class="auth_popup-close" id="authClose">
1\n                        <svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n                            <g clip-path="url(#clip0_7547_133184)">\n                            <path d="M25.0028 23.3504L30.7778 17.5754L32.4275 19.2251L26.6525 25.0001L32.4275 30.7751L30.7778 32.4248L25.0028 26.6498L19.2278 32.4248L17.5781 30.7751L23.3531 25.0001L17.5781 19.2251L19.2278 17.5754L25.0028 23.3504Z" fill="white"/>\n                            </g>\n                            <rect x="0.5" y="0.5" width="49" height="49" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n                            <defs>\n                            <clipPath id="clip0_7547_133184">\n                            <rect width="28" height="28" fill="white" transform="translate(11 11)"/>\n                            </clipPath>\n                            </defs>\n                        </svg>\n                   </button>\n                    \n                   <div class="form">\n                        <h2 class="title">${this.translate("Enter your password")}</h2>\n                        <div class="input_box">\n                            <input id="authPasswordEnterInput" class="input" type="password" placeholder="${this.translate("Password")}" />\n                            <svg id="authPasswordShow" class="icon_eye" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n                                <g clip-path="url(#clip0_7675_1859)">\n                                <path d="M4.51869 5.93407L1.39169 2.80807L2.80669 1.39307L22.6057 21.1931L21.1907 22.6071L17.8807 19.2971C16.1219 20.4126 14.0814 21.0034 11.9987 21.0001C6.60669 21.0001 2.12069 17.1201 1.17969 12.0001C1.60972 9.67078 2.78132 7.54296 4.51969 5.93407H4.51869ZM14.7557 16.1721L13.2917 14.7081C12.7317 14.976 12.1025 15.0636 11.4906 14.9589C10.8788 14.8541 10.3145 14.5621 9.87556 14.1232C9.43662 13.6843 9.14466 13.12 9.0399 12.5081C8.93515 11.8963 9.02277 11.267 9.29069 10.7071L7.82669 9.24307C7.1904 10.2046 6.90596 11.3564 7.02152 12.5036C7.13708 13.6507 7.64554 14.7227 8.46081 15.5379C9.27607 16.3532 10.348 16.8617 11.4952 16.9772C12.6424 17.0928 13.7942 16.8084 14.7557 16.1721ZM7.97269 3.76007C9.21969 3.27007 10.5787 3.00007 11.9987 3.00007C17.3907 3.00007 21.8767 6.88007 22.8177 12.0001C22.5113 13.6658 21.8225 15.2376 20.8057 16.5921L16.9457 12.7321C17.0603 11.9597 16.9925 11.1712 16.7476 10.4297C16.5027 9.68827 16.0876 9.01448 15.5354 8.46233C14.9833 7.91019 14.3095 7.49504 13.568 7.25014C12.8266 7.00524 12.0381 6.93741 11.2657 7.05207L7.97269 3.76107V3.76007Z" fill="#B5B5B5"/>\n                                </g>\n                                <defs>\n                                <clipPath id="clip0_7675_1859">\n                                <rect width="24" height="24" fill="white"/>\n                                </clipPath>\n                                </defs>\n                            </svg>\n                        </div>\n                        <span id="authPasswordEnterError" class="error"></span>\n                        <button id="authPasswordEnterContinueButton" class="continue_button">${this.translate("Continue")}</button>\n\n                        <p class="text_bottom">\n                            ${this.translate("Forgot your password?")} <a class="resend" id="authPasswordResetLink">${this.translate("Send a reset link")}</a>\n                        </p>\n                </div>\n              </div> \n            </div>\n        `;document.body.insertAdjacentHTML("beforeend",t),this.closeClick(),this.passwordEnterContinueClick(),this.passwordShowClick(document.getElementById("authPasswordEnterInput")),this.returnToClick(document.getElementById("authReturnTo"),"emailStepHTML"),this.sendResetPasswordClick(document.getElementById("authPasswordResetLink")),this.showBlockLoginPopupPasswordAmplitude()}generateCheckYourEmailStepHTML(){let t=`\n            <div class="auth_popup" id="authPopup">\n              <div class="auth_popup-box-full">\n                   <button class="auth_popup-close" id="authClose">
1\n                        <svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n                            <g clip-path="url(#clip0_7547_133184)">\n                            <path d="M25.0028 23.3504L30.7778 17.5754L32.4275 19.2251L26.6525 25.0001L32.4275 30.7751L30.7778 32.4248L25.0028 26.6498L19.2278 32.4248L17.5781 30.7751L23.3531 25.0001L17.5781 19.2251L19.2278 17.5754L25.0028 23.3504Z" fill="white"/>\n                            </g>\n                            <rect x="0.5" y="0.5" width="49" height="49" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n                            <defs>\n                            <clipPath id="clip0_7547_133184">\n                            <rect width="28" height="28" fill="white" transform="translate(11 11)"/>\n                            </clipPath>\n                            </defs>\n                        </svg>\n                   </button>\n                    \n                   <div class="form">\n                     <img class="image" alt="Email Send" src="/build/midori/img/auth/auth-email.png" />\n                     <h2 class="title title_email">${this.translate("Check your email")}</h2>\n                     <p class="text text_email">\n                         ${this.getCheckEmailText()}\n                     </p>\n                     <p class="text_bottom">\n                         ${this.translate("No e-mail in your inbox or spam folder?")} <a class="resend" id="authEmailConfirmLink">${this.translate("Let’s resend it")}</a>\n                     </p>\n                </div>\n              </div> \n            </div>\n        `;document.body.insertAdjacentHTML("beforeend",t),this.closeClick(),this.sendConfirmEmailClick(document.getElementById("authEmailConfirmLink")),this.returnToClick(document.getElementById("authEmailUpdateEmail"),"emailStepHTML"),this.showBlockEmailConfirmPopupAmplitude()}remove(){const t=document.getElementById("authPopup");t&&t.remove()}emailStepClick(){const t=document.getElementById("authEmailButton");t&&t.addEventListener("click",()=>{this.remove(),this.generateEmailStepHTML()})}emailContinueClick(){const t=document.getElementById("authEmailContinueButton"),e=document.getElementById("authEmailInput");t&&t.addEventListener("click",()=>{if(this.emailValidation(e.value).success&&this.verifiedRecaptcha().success)this.credentials.email=e.value,this.selectGeneratedHTMLWindowByEmailExists(e.value).then(t=>t);else{document.getElementById("authEmailError").textContent=this.emailValidation(e.value).success?this.verifiedRecaptcha().error:this.emailValidation(e).error}})}passwordCreateContinueClick(){const t=document.getElementById("authPasswordCreateContinueButton"),e=document.getElementById("authPasswordCreateInput"),i=document.getElementById("authPasswordCreateError");t&&t.addEventListener("click",()=>{this.passwordCreateValidation(e.value).length?i.textContent=this.passwordCreateValidation(e.value):(this.credentials.password=e.value,this.remove(),this.signUpRedirectQuery(i).then(t=>t))})}passwordEnterContinueClick(){const t=document.getElementById("authPasswordEnterContinueButton"),e=document.getElementById("authPasswordEnterInput"),i=document.getElementById("authPasswordEnterError");t&&t.addEventListener("click",()=>{e.value?(this.credentials.password=e.value,this.signInRedirectQuery(i).then(t=>t)):i.textContent=this.passwordCreateValidation(e.value)})}closeClick(){const t=document.getElementById("authClose"),e=document.getElementById("authPopup");t&&t.addEventListener("click",()=>{e.remove()})}questsPopupReturnClick(){const t=document.getElementById("questsPopupReturn"),e=document.querySelector(".questPopup__authPopup");t&&t.addEventListener("click",()=>{setTimeout(()=>{e.remove(),document.dispatchEvent(new CustomEvent("questsPopupReturnElement"))},200)})}scrollUpClick(){const t=document.getElementById("authPopupBox"),e=document.getElementById("authScrollTopButton");e&&e.addEventListener("click",()=>{t.scrollTo({top:0,behavior:"smooth"}),this.clickGoUpSignUpPopupAmplitude()})}callPopupByBonusBannerClick(){let t=document.getElementsByClassName("authSignupBonusListButton");Array.from(t).forEach(t=>{t.addEventListener("click",()=>{this.generateMainHTML().then()})})}successMessageGenerateHTML(){let t=`\n            <div class="success" id="successMessage">\n                <div class="success_box">\n                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n                        <path d="M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C14.1217 20 16.1566 19.1571 17.6569 
117.6569C19.1571 16.1566 20 14.1217 20 12C20 9.87827 19.1571 7.84344 17.6569 6.34315C16.1566 4.84286 14.1217 4 12 4C9.87827 4 7.84344 4.84286 6.34315 6.34315C4.84285 7.84344 4 9.87827 4 12C4 14.1217 4.84285 16.1566 6.34314 17.6569C7.84344 19.1571 9.87827 20 12 20ZM11.003 16L6.76 11.757L8.174 10.343L11.003 13.172L16.659 7.515L18.074 8.929L11.003 16Z" fill="white"/>\n                    </svg>\n                    <p class="text">${this.translate("Email has been sent")}</p>\n                </div>\n            </div>\n        `;document.body.insertAdjacentHTML("beforeend",t);const e=document.getElementById("successMessage");e.style.animation="show 0.5s forwards ease-in-out",this.hideSuccessMessage(e)}callRecaptcha(){window.grecaptcha?grecaptcha.ready(function(){grecaptcha.render("authRecaptcha",{sitekey:"6LcLHaYnAAAAAFuDmqE4Tx_LHJNCaFZj3jteQ3de"})}):setTimeout(this.callRecaptcha,100)}googleSignupTrackClick(t){t.addEventListener("click",()=>{this.userLoginOneTime?this.clickGoogleLoginAmplitude():this.clickGoogleSignupAmplitude(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),this.removeTrackEntryTypeStorage()})}removeTrackEntryTypeStorage(){storage.getTrackEntryType()&&storage.removeTrackEntryType()}emailSignupTrackClick(t){t.addEventListener("click",()=>{this.userLoginOneTime?this.clickEmailLoginAmplitude():this.clickEmailSignupAmplitude()})}verifiedRecaptcha(){if(this.userLoginOneTime)return{success:!0};return 0===grecaptcha.getResponse().length?{error:this.translate("Recaptcha not checked"),success:!1}:{success:!0}}hideSuccessMessage(t){setTimeout(()=>{t.remove()},2e3)}timerToSendAgain(t,e){let i=10;const n=setInterval(function(){const s=Math.floor(i/60),a=i%60;t.textContent=`${String(s).padStart(2,"0")}:${String(a).padStart(2,"0")}`,t.style.pointerEvents="none",i<0&&(clearInterval(n),t.textContent=e,t.style.pointerEvents="all"),i--},1e3)}sendResetPasswordClick(t){t.addEventListener("click",async()=>{(await sendResetPasswordLink(this.credentials.email)).sendReset&&(this.timerToSendAgain(t,this.translate("Send a reset link")),this.successMessageGenerateHTML(),this.clickResetPasswordAmplitude())})}sendConfirmEmailClick(t){t.addEventListener("click",async()=>{(await sendConfirmEmailLink(this.credentials.email)).sendConfirmEmail&&(this.timerToSendAgain(t,this.translate("Let’s resend it")),this.successMessageGenerateHTML(),this.clickSendEmailConfirmPopupAmplitude())})}returnToClick(t,e){t&&t.addEventListener("click",()=>{this.remove(),this.generateHTMLAdapter(e)})}async signInRedirectQuery(t){storage.getGoogleOneTap()&&storage.removeGoogleOneTap(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset);let e=await signIn(this.credentials.email,this.credentials.password);if(e.signIn){let t=new URL(window.location.href),i=new URLSearchParams(t.search);return i.set("logged_in","true"),t.search=i.toString(),this.loginExistingUserAmplitude(e.userId),window.location.href=t.toString()}return e&&e.errors&&"false_confirm"===e.errors.email&&(this.remove(),this.generateCheckYourEmailStepHTML()),t.textContent=this.translateErrorMessage(e.error?e.error:e?.errors?.password),!1}async signUpRedirectQuery(t){storage.getGoogleOneTap()&&storage.removeGoogleOneTap(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset);let e=await signUp(this.credentials.email,this.credentials.password,"gamificationPopup");return e.signUp?(this.registrationNewUserAmplitude(e.userId,"email"),this.showBlockSignUpPopupAmplitude(),this.generateCheckYourEmailStepHTML(),!0):(t.textContent=this.translateErrorMessage(e?.errors?.password),!1)}passwordShowClick(t){const e=document.getElementById("authPasswordShow");e&&e.addEventListener("click",()=>{t.type="password"===t.type?"input":"password"})}emailValidation(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?{success:!0}:{error:this.translate("Invalid email format. Please try again"),success:!1}}passwordCreateValidation(t){return 0===t.length?this.translate("Password cannot be empty. Please try again"):!!/^.{8,}$/.test(t)||this.translate("Password must be 8 characters or longer. Please try again")}async selectGeneratedHTMLWindowByEmailExists(t){(await checkEmailExists(t)).email?(this.remove(),this.generateEnterPasswordStepHTML()):(this.remove(),this.generateCreatePasswordStepHTML())}generateHTMLAdapter(t){return{mainHTML:this.generateMainHTML,emailStepHTML:this.generateEmailStepHTML,createPasswordStep:this.generateCreatePasswordStepHTML}[t].call(this)}loadRecaptchaScript(){if(!document.querySelector('script[src="https://www.google.com/recaptcha/api.js"]')){const t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js",t.async=!0,t.defer=!0,document.head.appendChild(t)}}showBannerBySpecialTime(t){const e=(new Date).toISOString();setTimeout(()=>{const t=document.getElementById("authPopup"),i=document.querySelector(".bonusesPopup[data-type=wheelsExitPopup].show");i&&storage.setShowAuthWheels(!0),this.showAuthBannerOneTime||this.checkReg
1istrationVia||null!==t||i||(storage.setRegistrationViaAmplitude("reg_popup"),this.generateMainHTML().then(t=>t),storage.setShowAuthBanner(e))},t),window.addEventListener("beforeunload",()=>{if(this.showAuthBannerOneTime){const t=new Date(this.showAuthBannerOneTime),e=new Date;t.getDate()!==e.getDate()&&storage.removeShowAuthBanner()}})}}let authGamificationPopup=new AuthGamificationPopup;export{authGamificationPopup,AuthGamificationPopup};

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.