1function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,n,o,a,i,r){try{var s=e[i](r),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(o,a)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function r(e){asyncGeneratorStep(i,o,a,r,s,"next",e)}function s(e){asyncGeneratorStep(i,o,a,r,s,"throw",e)}r(void 0)})}}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _classPrivateFieldGet2(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldInitSpec(e,t,n){_checkPrivateRedeclaration(e,t),t.set(e,n)}function _classPrivateFieldSet2(e,t,n){return e.set(_assertClassBrand(e,t),n),n}function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,i=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw i}}}}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=_superPropBase(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},_get.apply(null,arguments)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,i,r,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}
vendor: 4,212 bytes, line 1
1finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw a}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var n,o,a=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}function _possibleConstructorReturn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _regenerator(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,o,a,i){var c=o&&o.prototype instanceof s?o:s,l=Object.create(c.prototype);return _regeneratorDefine(l,"_invoke",function(n,o,a){var i,s,c,l=0,u=a||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,r}};function h(n,o){for(s=n,c=o,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],h=p.p,f=i[2];n>3?(a=f===o)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((a=n<2&&h<i[1])?(s=0,p.v=o,p.n=i[1]):h<f&&(a=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,p.n=f,s=0))}if(a||n>1)return r;throw d=!0,o}return function(a,u,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,c=f;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(p.n=-1),h(s,c)):p.n=c:p.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==r)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var r={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(_regeneratorDefine(t={},o,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,_regeneratorDefine(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,_regeneratorDefine(d,"constructor",l),_regeneratorDefine(l,"constructor",c),c.displayName="GeneratorFunction",_regeneratorDefine(l,a,"GeneratorFunction"),_regeneratorDefine(d),_regeneratorDefine(d,a,"Generator"),_regeneratorDefine(d,o,function(){return this}),_regeneratorDefine(d,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:p}})()}function _regeneratorDefine(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}_regeneratorDefine=function(e,t,n,o){function i(t,n){_regeneratorDefine(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_regeneratorDefine(e,t,n,o)}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _superPropGet(e,t,n,o){var a=_get(_getPrototypeOf(e.prototype),t,n);return"function"==typeof a?function(e){return a.apply(n,e)}:a}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var baseHttp="https://".concat(window.location.host,"/api"),STORAGE_KEYS={TRACK_ENTRY_TYPE:"track_entry_type",REFERRING_PAGE_AFTER_LOGOUT:"referring_page_after_logout",AUTH_TOKEN:"auth_token",AUTH_ID:"auth_id",TOKEN:"token",REGISTRATION_VIA_AMPLITUDE:"registration_via_amplitude",REG_PLACEMENT:"reg_placement",USER_REVIEW_POPUP_INTENT:"user_review_popup_intent",LOGIN_ONE_TIME:"login_one_time",SHOW_AUTH_BANNER:"show_auth_banner",SHOW_AUTH_WHEELS:"show_auth_wheels",CHECK_REGISTRATION_VIA:"check_registration_via",GOOGLE_ONE_TAP:"google_one_tap",WIDGET_QUICK_LINKS:"widget_quick_links",PAGE_AFF_LINK_CLICK_INDEX:"page_aff_link_click_index",SEARCH_FORM_POPULAR:"search_form_popular",SEARCH_FORM_SLOTS:"search_form_slots",ADD_USER_PROPERTIES_EXIST:"add_user_properties_exist",AM_SESSION_ID:"am_session_id",AM_DEVICE_ID:"am_device_id",UTM_PARAMS:"utm_params",HAS_UTM_VISITED:"has_utm_visited",UTM_INIT_PARAMS:"utm_init_params",UTM_DATA_LAYER_PUSHED:"utm_data_layer_pushed",UTM_LOGGED_USER_DATA_LAYER_PUSHED:"utm_logged_user_data_layer_pushed",FIRST_PAGE_VISIT:"first_page_visit",STORAGE_SPONSORED_DATE:"storage_sponsored_date",KEITARO:"keitaro",KEITARO_CAMPAIGN:"keitaro_campaign",MIDORI_COOKIES:"midori_cookies",EXIT_POPUP:"exit_popup",WHEELS_EXIT_POPUP:"wheels_exit_popup",ADMIN_PANEL_HIDDEN:"admin_panel_hidden",PARTNER_CASINO_ID:"partner_casino_id",GEO:"geo",GEO_FACT:"geo_fact",CHANGED_GEO:"changed_geo",EMAIL_POPUP_STORAGE:"email_popup_storage",ADD_EVENTS_VISIT_PAGE_REDIRECT_VIEW:"add_events_visit_page_redirect_view",INTENT_FIT_LOG:"intent_fit_log",SCROLL_POSITION:"scroll_position",AUTH_WHEELS_POPUP_CONGRATULATIONS:"auth_wheels_popup_congratulations",VISITED_PATHS:"visited_paths",VISITED_PATHS_EXPIRING:"visited_paths_expiring",REGISTER_COINS_EVENT:"register_coins_event",ALTERNATIVE_SPONSORED_OFFERS:"alternative_sponsored_offers",SHOP_BANNER_HIDDEN:"shop_banner_hidden",TAB_LABEL_HIDDEN:"tab_label_hidden",TG_REG_POPUP:"tg_reg_popup",BONUSES_REACTIONS:"bonuses_reactions",REACTIONS_FEEDBACK_POPUP:"reactions_feedback_popup",REACTIONS_FEEDBACK_POPUP_COUNT:"reactions_feedback_popup_count",FORUM_SSO_READY:"forum_sso_ready",HB_CLAIM:"hb_claim",HB_SUPER:"hb_super",HB_REGISTRATION:"hb_registration"};
1function extendStorage(e){Object.keys(STORAGE_KEYS).forEach(function(t){var n=STORAGE_KEYS[t].replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}).replace(/^([a-z])/,function(e,t){return t.toUpperCase()});e["get".concat(n)]=function(){return e.getItem(STORAGE_KEYS[t])},e["set".concat(n)]=function(n){return e.setItem(STORAGE_KEYS[t],n)},e["remove".concat(n)]=function(){return e.removeItem(STORAGE_KEYS[t])}})}var storage$1={getItem:function(e){try{var t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}},setItem:function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(e){}},clear:function(){try{localStorage.clear()}catch(e){}}};extendStorage(storage$1),window.storage=storage$1;var __bridge_storage=Object.freeze({__proto__:null,default:storage$1});document.location.host.replace("loc.","").replace("dev.","").replace("green.","").replace("blue.","");var getDomainName=function(){var e=document.location.hostname,t=(e=e.replace(/^(loc\d*\.|dev\d*\.|preprod\d*\.|qa\d*\.|sandbox\d*\.|presandbox\d*\.|stage\d*\.)/i,"")).match(/^(?:https?:\/\/)?([^\/:]+\.[^\/:]+)(?::\d+)?$/);return t?t[1]:e},eventPush=function(e){window.dataLayer=window.dataLayer||[],setTimeout(function(){dataLayer.push(e)},0)},AMPLITUDE_API_KEY="519e6213bd7243eed35df240d6822359",AMPLITUDE_COOKIE_NAME="AMP_".concat(AMPLITUDE_API_KEY.substring(0,10)),AMPLITUDE_LEGACY_COOKIE_NAME="amp_".concat(AMPLITUDE_API_KEY.substring(0,6)),AMPLITUDE_STORAGE_SYNC_DELAY=500,AMPLITUDE_STORAGE_SYNC_MAX_RETRIES=50,readRawCookie=function(e){var t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));if(!t)return null;try{return decodeURIComponent(t[2])}catch(e){return t[2]}},readAmplitudeCookiePayload=function(){var e=readRawCookie(AMPLITUDE_COOKIE_NAME);if(!e)return null;try{return JSON.parse(decodeURIComponent(atob(e)))}catch(e){return null}},getAmplitudeDeviceId=function(){var e,t=(null!==(e=readAmplitudeCookiePayload())&&void 0!==e?e:{}).deviceId;if(t)return t;var n=readRawCookie(AMPLITUDE_LEGACY_COOKIE_NAME);return n?n.split(".")[0]:null},getAmplitudeSessionId=function(){var e,t=readRawCookie("am_session_id");if(t&&"null"!==t)return t;var n=(null!==(e=readAmplitudeCookiePayload())&&void 0!==e?e:{}).sessionId;return null!=n?n:null},amplitudeStorageSyncScheduled=!1,amplitudeStorageSyncAttempts=0,scheduleAmplitudeStorageSync=function(){amplitudeStorageSyncScheduled||amplitudeStorageSyncAttempts>=AMPLITUDE_STORAGE_SYNC_MAX_RETRIES||(amplitudeStorageSyncScheduled=!0,amplitudeStorageSyncAttempts+=1,setTimeout(function(){amplitudeStorageSyncScheduled=!1,checkIfAmplitudeAndAnalyticsLoaded()},AMPLITUDE_STORAGE_SYNC_DELAY))},checkIfAmplitudeAndAnalyticsLoaded=function(){var e,t,n,o,a,i=storage$1.getAmSessionId(),r=storage$1.getAmDeviceId();if(Boolean(i)&&Boolean(r))return{am_session_id:i,am_device_id:r};var s=null===(e=window.amplitude)||void 0===e||null===(t=e.getSessionId)||void 0===t?void 0:t.call(e),c=null!==(n=null===(o=window.amplitude)||void 0===o||null===(a=o.getDeviceId)||void 0===a?void 0:a.call(o))&&void 0!==n?n:getAmplitudeDeviceId();if(s&&c)return storage$1.setAmSessionId(s),storage$1.setAmDeviceId(c),{am_session_id:s,am_device_id:c};scheduleAmplitudeStorageSync()},externalIdCache=new Map,externalIdUtcDate=function(){return(new Date).toISOString().slice(0,10)},externalIdCacheKey=function(e,t,n){return"".concat(e,"|").concat(t,"|").concat(n,"|").concat(externalIdUtcDate())},resolveAmplitudeIds=function(){var e,t,n=checkIfAmplitudeAndAnalyticsLoaded();return{sessionId:null!==(e=null==n?void 0:n.am_session_id)&&void 0!==e?e:getAmplitudeSessionId(),deviceId:null!==(t=null==n?void 0:n.am_device_id)&&void 0!==t?t:getAmplitudeDeviceId()}},buildExternalId=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r,s,c;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o=resolveAmplitudeIds(),a=o.sessionId,i=o.deviceId,a&&i&&t){e.n=1;break}return e.a(2,null);case 1:if(r=externalIdCacheKey(a,i,t),!externalIdCache.has(r)){e.n=2;break}return e.a(2,externalIdCache.get(r));case 2:if(null!==(n=window.crypto)&&void 0!==n&&n.subtle){e.n=3;break}return e.a(2,null);case 3:return e.p=3,e.n=4,window.crypto.subtle.digest("SHA-256",(new TextEncoder).encode(r));case 4:return s=e.v,c=Array.from(new Uint8Array(s)).map(function(e){return e.toString(16).padStart(2,"0")}).join("").slice(0,16),externalIdCache.set(r,c),e.a(2,c);case 5:return e.p=5,e.v,e.a(2,null)}},e,null,[[3,5]])}));return function(t){return e.apply(this,arguments)}}(),navAff=function(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=document.body.dataset.geo.toLowerCase(),c=o?o.split(",").map(function(e){return e.toLowerCase()}):[],l=!1;s&&c.length&&(l=c.find(function(e){return e===s})),n&&eventPush(n);var u=e.includes("?bonus="),d=e.includes("?referer=");
1if(u||d){if(!l&&a){var p=_objectSpread2(_objectSpread2({},checkIfAmplitudeAndAnalyticsLoaded()),r);navKeitaroApi(e,!!t,p,i)}}else normalizeBlankUrlAndRedirect(e,t)},normalizeBlankUrlAndRedirect=function(e,t){var n=e.toString();if(t){var o=window.open("about:blank","_blank");o?o.location.href=n:window.location.href=n}else window.location.href=n},navForm=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.includes("?bonus="),a=e.includes("?referer=");if(o||a){var i,r=e.split("?")[1],s=e.split("?")[0],c={};r&&r.split("&").forEach(function(e){var t=_slicedToArray(e.split("="),2),n=t[0],o=t[1];n&&o&&(c[n]=decodeURIComponent(o))}),c.bonus&&(n.bonus=c.bonus),c.bonus_position&&(n.position=c.bonus_position),c.referer&&(n.referer=c.referer),n.domain=s,n.path=window.location.pathname,n.site=document.body.dataset.siteId;var l=document.createElement("form");for(var u in l.id="postForm",l.action="/redirect",l.method="post",l.enctype="multipart/form-data",t&&(l.target="_blank"),n){var d=document.createElement("input");d.type="hidden",d.name=u,d.value=n[u],l.append(d)}document.body.append(l),l.submit(),null===(i=document.querySelector("#postForm"))||void 0===i||i.remove()}else t?window.open(e,"_blank"):document.location.href=e},navKeitaroApi=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r,s,c,l=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=l.length>1&&void 0!==l[1]&&l[1],o=l.length>2&&void 0!==l[2]?l[2]:{},a=l.length>3&&void 0!==l[3]?l[3]:null,e.n=1,buildExternalId(extractBonusId(t));case 1:if((i=e.v)&&(o.external_id=i),r=prepareKeitaroUrlWithParams(t,o)){e.n=2;break}return e.a(2);case 2:return e.p=2,a&&a.classList.add("loading"),e.n=3,fetch(r,{method:"GET",mode:"cors",credentials:"same-origin",headers:{Accept:"text/plain"}});case 3:return s=e.v,e.n=4,s.text();case 4:if((c=e.v.trim())&&c.startsWith("http")){e.n=5;break}return normalizeBlankUrlAndRedirect(r,n),e.a(2);case 5:normalizeBlankUrlAndRedirect(c,n),e.n=7;break;case 6:e.p=6,e.v,normalizeBlankUrlAndRedirect(r,n);case 7:return e.p=7,a&&a.classList.remove("loading"),e.f(7);case 8:return e.a(2)}},e,null,[[2,6,7,8]])}));return function(t){return e.apply(this,arguments)}}(),extractBonusId=function(e){try{return new URL(e.startsWith("http")?e:"https://"+e).searchParams.get("bonus")}catch(e){return null}},prepareKeitaroUrlWithParams=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=document.body.dataset.keitaroUrl;if(a){var i;try{i=atob(a)}catch(e){return}var r,s=new URL(e.startsWith("http")?e:"https://"+e),c=s.hostname,l=s.searchParams,u=new URL(i);if(u.searchParams.set("casino",c),l.forEach(function(e,t){u.searchParams.set(t,e)}),l.get("bonus")&&(o.bonus=l.get("bonus")),l.get("offer_type")&&(o.offer_type=l.get("offer_type")),l.get("bonus_position")&&(o.position=l.get("bonus_position")),l.get("country_code"))o.country_code=l.get("country_code");else{var d=document.body.dataset.geoFact;d&&d.length&&(o.country_code=d.toLowerCase())}if(l.get("user_id"))o.user_id=l.get("user_id");else{var p=document.body.dataset.userId;p&&""!==p&&(o.user_id=p)}if(l.get("email"))o.email=l.get("email");else{var h=document.body.dataset.userEmail;h&&""!==h&&(o.email=h)}if(o.path=window.location.pathname,o.site=document.body.dataset.siteId,!l.has("referer"))r=o.path?"".concat(window.location.origin).concat(o.path):document.referrer&&new URL(document.referrer).host===window.location.host?document.referrer:window.location.href,o.referrer=r,o.se_referrer=r;var f,g;if(l.get("am_session_id"))o.am_session_id=l.get("am_session_id");else{var m=(f="am_session_id",(g=document.cookie.match(new RegExp("(^| )"+f+"=([^;]+)")))?decodeURIComponent(g[2]):null);m&&(o.am_session_id=m)}if(l.get("am_device_id"))o.am_device_id=l.get("am_device_id");else{var _=getAmplitudeDeviceId();_&&(o.am_device_id=_)}var v=(null===(t=storage$1.getUtmParams)||void 0===t?void 0:t.call(storage$1))||{};Object.entries(v).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],a=t[1];null!=a&&""!==a&&(o[n]=String(a))}
1),Object.entries(o).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],o=t[1];null!=o&&""!==o&&u.searchParams.set(n,o)});var y=String(null!==(n=storage$1.getKeitaroCampaign())&&void 0!==n?n:"").trim().replace(/^\/+|\/+$/g,"");return y&&(u.pathname="/".concat(y)),u.toString()}},setBonusPositions=function(){Array.from(document.querySelectorAll("[data-bonus]")).filter(function(e){return!isNaN(e.dataset.bonus)}).forEach(function(e,t){e.dataset.bonusPosition=t+1})},elementInViewport=function(e){if(!e)return!1;for(var t=e.offsetTop,n=e.offsetLeft,o=e.offsetWidth,a=e.offsetHeight;e.offsetParent;)t+=(e=e.offsetParent).offsetTop,n+=e.offsetLeft;return t<window.pageYOffset+window.innerHeight&&n<window.pageXOffset+window.innerWidth&&t+a>window.pageYOffset&&n+o>window.pageXOffset},getAmplitudeCookie=function(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return t.pop().split(";").shift()},hexToHSL=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=_slicedToArray((e=e.replace("#","")).match(/.{2}/g).map(function(e){return parseInt(e,16)/255}),3),i=a[0],r=a[1],s=a[2],c=Math.max(i,r,s),l=Math.min(i,r,s),u=c-l;0===u?t=0:(t=_defineProperty(_defineProperty(_defineProperty({},i,(r-s)/u),r,(s-i)/u+2),s,(i-r)/u+4)[c]%6,t*=60);var d=(c+l)/2;return n=0===u?0:u/(1-Math.abs(2*d-1)),"hsl(".concat(Math.round(t),", ").concat(Math.round(100*n),"%, ").concat(Math.round(o||100*d),"%)")},fadeOut=function(e){e.style.opacity=1,function t(){(e.style.opacity-=.1)<0?e.style.display="none":requestAnimationFrame(t)}()},fadeIn=function(e,t){e.style.opacity=0,e.style.display=t||"block",function t(){var n=parseFloat(e.style.opacity);(n+=.1)>1||(e.style.opacity=n,requestAnimationFrame(t))}()},fadeToggle=function(e){!e.style.opacity||e.style.opacity<0?fadeIn(e):fadeOut(e)},externalLinkClick=function(e){e.length>0&&e.forEach(function(e){e.addEventListener("click",function(t){if(t.preventDefault(),"false"!==e.dataset.aff){var n=e.dataset.href;"no"===e.dataset.blank?document.location.href=n:window.open(n,"_blank")}})})},internalLinkClick=function(e){e.length>0&&e.forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var n=e.dataset.href;n&&(document.location.href=n)})})},setCookie=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),document.cookie="".concat(e,"=").concat(t||"","; expires=").concat(a.toUTCString(),"; path=").concat(o)},getCookie=function(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return t.pop().split(";").shift()},deleteCookie=function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"},getLocaleCountry=function(){var e;return(null===(e=document.querySelector("body").dataset.localeCountry)||void 0===e?void 0:e.toLowerCase())||null},removeBannersAfterFirst=function(e){var t=Array.from(e);if(t.length>1)for(var n=1;n<t.length;n++)t[n].parentNode.removeChild(t[n])},clearGetParameters=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).removeOnly,t=void 0===e?[]:e,n=new URL(window.location.href),o=n.pathname,a=new URLSearchParams(n.search);if(t.length>0){t.forEach(function(e){return a.delete(e)});var i=a.toString(),r="".concat(o).concat(i?"?".concat(i):"").concat(n.hash);history.replaceState(null,"",r)}else{var s=a.has("casino"),c=a.has("bonus");"/redirect"===o&&("/redirect"!==o||s&&c)||history.replaceState(null,"",o)}},prepareUtmParams=function(){var e=new URLSearchParams(window.location.search),t={},n=!1,o=e.get("token"),a=JSON.parse(getReferrer().last_page_source_name),i=JSON.parse(getReferrer().last_page_source_type),r="internal"===a&&"internal"===i;["utm_source","utm_medium","utm_campaign","utm_content","utm_term"].forEach(function(o){var r=e.get(o);if(r)t[o]=JSON.stringify(r),n=!0;else switch(o){case"utm_source":t.utm_source=JSON.stringify(a);break;case"utm_medium":t.utm_medium=JSON.stringify(i);break;default:t[o]=JSON.stringify("none")}}),n||!r?(storage$1.setUtmParams(t),(n||o)&&(localStorage.removeItem("utm_attribution_used"),clearGetParameters())):o&&clearGetParameters()}
1,utmParams=function(){var e=storage$1.getUtmParams()||{};return Object.keys(e).length>0?e:{}},utmInitParams=function(){var e=new URLSearchParams(window.location.search),t={},n=!storage$1.getHasUtmVisited();n&&(["utm_source","utm_medium","utm_campaign","utm_content","utm_term"].forEach(function(n){var o=e.get(n);if(o)t["".concat(n,"_init")]=JSON.stringify(o);else switch(n){case"utm_source":t.utm_source_init=getReferrer().last_page_source_name;break;case"utm_medium":t.utm_medium_init=getReferrer().last_page_source_type;break;default:t["".concat(n,"_init")]=JSON.stringify("none")}}),storage$1.setUtmInitParams(t),storage$1.setFirstPageVisit(window.location.pathname)),n&&storage$1.setHasUtmVisited("true")},brevoUtmData=function(){var e,t,n,o,a,i={},r=null!==(e=storage$1.getUtmParams())&&void 0!==e?e:null;r&&(i=_objectSpread2({am_device_id:null!==(t=storage$1.getAmDeviceId())&&void 0!==t?t:null,am_session_id:null!==(n=storage$1.getAmSessionId())&&void 0!==n?n:null,first_page_visit:null!==(o=storage$1.getFirstPageVisit())&&void 0!==o?o:null,region:null!==(a=document.body.dataset.localeState)&&void 0!==a?a:null},Object.fromEntries(Object.entries(r).map(function(e){var t=_slicedToArray(e,2),n=t[0],o=t[1];try{return[n,"string"==typeof o?JSON.parse(o):o]}catch(e){return[n,o]}}))));return i},getReferrer=function(){var e,t,n=document.referrer,o=["r.mail.casinosanalyzer.com"].some(function(e){return n.includes(e)}),a=["casinosanalyzer.com","ausscasinosanalyzer.com","casinosanalyzer.ca","casinosanalyzer.co.nz","casinosanalyzer.co.uk","kasynoanalyzer.com"].some(function(e){return n.includes(e)}),i=n.includes("www.google."),r=new URLSearchParams(window.location.search),s=r.get("utm_medium"),c=r.get("utm_campaign"),l="utm_attribution_used";null!=c&&localStorage.removeItem(l);var u="1"===localStorage.getItem(l);if(null==c){var d=(storage$1.getUtmParams()||{}).utm_campaign;if(d&&!u&&!(a&&u))try{c="string"==typeof d?JSON.parse(d):d}catch(e){c=d}}if(a&&u&&(c=null),null==s){var p=(storage$1.getUtmParams()||{}).utm_medium;if(p)try{s="string"==typeof p?JSON.parse(p):p}catch(e){s=p}}var h="confirmation_email"===c||o;return h&&null==r.get("utm_campaign")&&localStorage.setItem(l,"1"),h?(e="email",t="email"):n?a?(e="internal",t="internal"):i?(e="search",t="google"):(e="other",t="other"):(e="direct",t="direct"),!s||h||a||i||(e=s,t=s),{last_page:JSON.stringify(n||"null"),last_page_source_type:JSON.stringify(e),last_page_source_name:JSON.stringify(t)}},setCampaignParameter=function(){var e=new URLSearchParams(window.location.search).get("campaign");e&&(storage$1.setKeitaroCampaign(e),clearGetParameters({removeOnly:["campaign"]}))},loadScripts=function(e){e.forEach(function(e){var t=document.createElement("script");e.async&&(t.async=!0),t.src=e.path,e.type&&(t.type=e.type),document.head.appendChild(t)})},eventID=["p_bonus_spin_n","p_bonus_amount","p_bonus_casino","p_bonus_category","p_bonus_country","p_bonus_percent","p_casino_category","p_casino_city","p_casino_country","p_casino_state_usa","p_casino_currency","p_casino_deposit_low","p_casino_payment","p_casino","p_casino_slot_soft","p_game_category","p_slot_category","p_slot","p_slot_payline","p_blog_category","p_blog_article","p_website_category","p_similar_casinos","p_software_bonuses","p_website_page","p_profile_rewards","p_profile_shop","p_home","p_promo_codes_category","p_other"],addSecondsToDate=function(e,t){var n=new Date(e);return n.setTime(n.getTime()+1e3*t),n},addMinutesToDate=function(e,t){var n=new Date(e);return n.setTime(n.getTime()+6e4*t),n},addHoursToDate=function(e,t){var n=new Date(e);return n.setTime(n.getTime()+36e5*t),n},compareDates=function(e){e=new Date(e);var t=new Date,n=e.getFullYear(),o=e.getMonth(),a=e.getDate(),i=t.getFullYear(),r=t.getMonth(),s=t.getDate();switch(!0){case n===i&&o===r&&a===s:return e;case n<i||n===i&&o<r||n===i&&o===r&&a<s:return s;default:return e}},daysDifference=function(e){var t=new Date(e),n=new Date,o=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),a=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate()),i=Math.abs(a-o);return Math.ceil(i/864e5)},sponsoredTimerAnimation=function(e){e.forEach(function(e){var t=storage$1.getStorageSponsoredDate(
1);t=t?compareDates(t):new Date,storage$1.setStorageSponsoredDate(t);var n=t,o=+e.dataset.hours,a=+e.dataset.minutes,i=+e.dataset.seconds,r=addHoursToDate(n,o);r=addMinutesToDate(r,a),r=addSecondsToDate(r,i);var s=setInterval(function(){var t=(new Date).getTime(),n=r-t;if(n<0)return clearInterval(s),void(e.innerHTML="<span>00</span><span>:</span><span>00</span><span>:</span><span>00</span>");var o=Math.floor(n/864e5),a=Math.floor(n%864e5/36e5+24*o),i=Math.floor(n%36e5/6e4),c=Math.floor(n%6e4/1e3);a=a<10?"0".concat(a):a,i=i<10?"0".concat(i):i,c=c<10?"0".concat(c):c,e.innerHTML="<span>".concat(a,"</span><span>:</span><span>").concat(i,"</span><span>:</span><span>").concat(c,"</span>")},1e3)})},actualStorageDateAndGeo=function(e){var t=localStorage.getItem("geo"),n=localStorage.getItem("".concat(e,"Geo")),o=n&&t===n;o||localStorage.setItem("".concat(e,"Geo"),t);var a=localStorage.getItem(e);if(!a)return localStorage.setItem(e,JSON.stringify(new Date)),!1;var i=daysDifference(JSON.parse(a));return i>0&&localStorage.setItem(e,JSON.stringify(new Date)),0===i&&o},getDeviceInfo=function(){var e,t,n,o,a=null!==(e=null===(t=window.screen)||void 0===t?void 0:t.width)&&void 0!==e?e:1,i=null!==(n=null===(o=window.screen)||void 0===o?void 0:o.height)&&void 0!==n?n:1;return{device_width:a,device_height:i,device_ratio:parseFloat((a/i).toFixed(4))}},setGrowthbookDataParams=function(){document.body.dataset.deviceRatio=getDeviceInfo().device_ratio},widgetAffLinkClickCount=new Map,getWidgetAffLinkClickIndex=function(e){var t;if(!e)return 0;var n=(null!==(t=widgetAffLinkClickCount.get(e))&&void 0!==t?t:0)+1;return widgetAffLinkClickCount.set(e,n),n},isCurrentPage404ByDOM=function(){return document.querySelector("#page404")},isDesktop=function(){return!/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)},setGeoFactGlobal=function(){var e,t=null!==(e=document.body.dataset.geoFact)&&void 0!==e?e:document.body.dataset.geo;storage$1.setGeoFact(t)},hexToHsl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e||(e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"000000"),e=e.replace(/^#/,"");var n=parseInt(e.slice(0,2),16)/255,o=parseInt(e.slice(2,4),16)/255,a=parseInt(e.slice(4,6),16)/255,i=Math.max(n,o,a),r=Math.min(n,o,a),s=i-r,c=0,l=0,u=(i+r)/2;if(0!==s){switch(l=s/(1-Math.abs(2*u-1)),i){case n:c=(o-a)/s+(o<a?6:0);break;case o:c=(a-n)/s+2;break;case a:c=(n-o)/s+4}c/=6}return c=Math.round(360*c),l=Math.round(100*l),u=t||Math.round(100*u),"hsl(".concat(c,", ").concat(l,"%, ").concat(u,"%)")},__bridge_globals=Object.freeze({__proto__:null,actualStorageDateAndGeo:actualStorageDateAndGeo,brevoUtmData:brevoUtmData,buildExternalId:buildExternalId,checkIfAmplitudeAndAnalyticsLoaded:checkIfAmplitudeAndAnalyticsLoaded,daysDifference:daysDifference,deleteCookie:deleteCookie,elementInViewport:elementInViewport,eventID:eventID,eventPush:eventPush,externalLinkClick:externalLinkClick,fadeIn:fadeIn,fadeOut:fadeOut,fadeToggle:fadeToggle,getAmplitudeCookie:getAmplitudeCookie,getAmplitudeDeviceId:getAmplitudeDeviceId,getCookie:getCookie,getDeviceInfo:getDeviceInfo,getDomainName:getDomainName,getLocaleCountry:getLocaleCountry,getReferrer:getReferrer,getWidgetAffLinkClickIndex:getWidgetAffLinkClickIndex,hexToHSL:hexToHSL,hexToHsl:hexToHsl,internalLinkClick:internalLinkClick,isCurrentPage404ByDOM:isCurrentPage404ByDOM,isDesktop:isDesktop,loadScripts:loadScripts,navAff:navAff,navForm:navForm,prepareUtmParams:prepareUtmParams,removeBannersAfterFirst:removeBannersAfterFirst,setBonusPositions:setBonusPositions,setCampaignParameter:setCampaignParameter,setCookie:setCookie,setGeoFactGlobal:setGeoFactGlobal,setGrowthbookDataParams:setGrowthbookDataParams,sponsoredTimerAnimation:sponsoredTimerAnimation,utmInitParams:utmInitParams,utmParams:utmParams}),SecureApiClient=function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"base64ToBytes",value:function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})}},{key:"sha256Raw",value:(i=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)if(0===e.n)return n=(new TextEncoder).encode(t),e.a(2,window.crypto.subtle.digest("SHA-256",
1n))},e)})),function(e){return i.apply(this,arguments)})},{key:"getCookie",value:function(e){var t,n=_createForOfIteratorHelper(document.cookie?document.cookie.split("; "):[]);try{for(n.s();!(t=n.n()).done;){var o=_toArray(t.value.split("=")),a=o[0],i=o.slice(1);if(a===e)return decodeURIComponent(i.join("=")||"")}}catch(e){n.e(e)}finally{n.f()}return""}},{key:"canDecryptSecurePayload",value:function(e){var t;return Boolean(e&&(null===(t=window.crypto)||void 0===t?void 0:t.subtle))}},{key:"getClientKey",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).clientKey||window.PUBLIC_API_KEY||this.getCookie(this.PUBLIC_API_KEY_COOKIE)||""}},{key:"parseJsonSafe",value:(a=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!1!==(t.headers.get("content-type")||"").toLowerCase().includes("application/json")){e.n=1;break}return e.a(2,null);case 1:return e.p=1,e.n=2,t.json();case 2:return e.a(2,e.v);case 3:return e.p=3,e.v,e.a(2,null)}},e,null,[[1,3]])})),function(e){return a.apply(this,arguments)})},{key:"decryptPayload",value:(o=_asyncToGenerator(_regenerator().m(function e(t,n){var o,a,i,r,s,c,l;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.sha256Raw(n);case 1:return o=e.v,e.n=2,window.crypto.subtle.importKey("raw",o,"AES-GCM",!1,["decrypt"]);case 2:return a=e.v,i=this.base64ToBytes(t.iv),r=this.base64ToBytes(t.tag),s=this.base64ToBytes(t.data),(c=new Uint8Array(s.length+r.length)).set(s,0),c.set(r,s.length),e.n=3,window.crypto.subtle.decrypt({name:"AES-GCM",iv:i,tagLength:128},a,c);case 3:return l=e.v,e.a(2,JSON.parse((new TextDecoder).decode(l)))}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"refreshClientKey",value:(n=_asyncToGenerator(_regenerator().m(function e(){var t,n,o,a=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:"same-origin",e.n=1,fetch(this.PUBLIC_API_REFRESH_URL,{method:"POST",credentials:t});case 1:if((n=e.v).ok){e.n=2;break}return e.a(2,"");case 2:if(""===(o=(n.headers.get(this.PUBLIC_API_KEY_HEADER)||"").trim())){e.n=3;break}return e.a(2,o);case 3:return e.a(2,this.getCookie(this.PUBLIC_API_KEY_COOKIE))}},e,this)})),function(){return n.apply(this,arguments)})},{key:"executeSecureRequest",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r,s,c,l;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=t.url,o=t.method,a=t.headers,i=t.body,r=t.credentials,s=t.shouldSecure,c=t.clientKey,l=_objectSpread2({},a),!s){e.n=2;break}if(""!==c){e.n=1;break}throw new Error("Public API key is missing for secure request");case 1:l[this.PUBLIC_API_KEY_HEADER]=c;case 2:return e.a(2,fetch(n,{method:o,headers:l,body:i,credentials:r}))}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"fetch",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r,s,c,l,u,d,p,h,f,g,m,_,v;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=t.url,o=t.method,a=void 0===o?"GET":o,i=t.headers,r=void 0===i?{}:i,s=t.body,c=void 0===s?void 0:s,l=t.credentials,u=void 0===l?"same-origin":l,d=t.security,p=(void 0===d?null:d)||{},h=Boolean(p.requireSecure),f=Boolean(p.scope),g=h||f,m=this.getClientKey(p),!g||""!==m){e.n=2;break}return e.n=1,this.refreshClientKey(u);case 1:m=e.v;case 2:return e.n=3,this.executeSecureRequest({url:n,method:a,headers:r,body:c,credentials:u,shouldSecure:g,clientKey:m});case 3:if(_=e.v,!g||401!==_.status){e.n=6;break}return e.n=4,this.refreshClientKey(u);case 4:if(""===(m=e.v)){e.n=6;break}return e.n=5,this.executeSecureRequest({url:n,method:a,headers:r,body:c,credentials:u,shouldSecure:g,clientKey:m});case 5:_=e.v;case 6:return e.n=7,this.parseJsonSafe(_);case 7:if(null!==(v=e.v)){e.n=8;break}throw new Error("Secure API response must be JSON");case 8:if(null!=v&&v.encrypted&&null!=v&&v.payload){e.n=9;break}return e.a(2,v);case 9:if(this.canDecryptSecurePayload(m)){e.n=10;break}throw new Error("Public API key is missing for encrypted response");case 10:return e.a(2,this.decryptPayload(v.payload,m))}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,o,a,i}();_defineProperty(SecureApiClient,"PUBLIC_API_KEY_HEADER","X-Public-Api-Key"),_defineProperty(SecureApiClient,"PUBLIC_API_KEY_COOKIE","public_api_key"),_defineProperty(SecureApiClient,"PUBLIC_API_REFRESH_URL","/api/public-api-key/refresh");var secureApiFetch=function(e){return SecureApiClient.fetch(e)},__bridge_secureApiClient=Object.freeze({__proto__:null,SecureApiClient:SecureApiClient,secureApiFetch:secureApiFetch}),isAuth=function(){var e=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,secureApiFetch({url:"".concat(baseHttp,"/is-auth"),method:"GET",headers:{"Content-Type":"application/json"},security:{requireSecure:!0,scope:"is_auth"}});case 1:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),autoSignIn=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/auto-sign-in"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),checkEmailExists=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/email-exists"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t.toLowerCase()})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}
1(),signIn=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n){var o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/sign-in?domain=").concat(window.location.host),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:n,utmData:brevoUtmData()})});case 1:return o=e.v,e.n=2,o.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),signUp=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n){var o,a,i=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return o=i.length>2&&void 0!==i[2]?i[2]:"registrationPopup",e.n=1,fetch("".concat(baseHttp,"/sign-up"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:n,redirect:"".concat(window.location.pathname).concat(window.location.search),utmData:brevoUtmData(),source:o})});case 1:return a=e.v,e.n=2,a.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),logout=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/logout"),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return t=e.v,e.n=2,t.json();case 2:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),updateDetails=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/update-details"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),updateAvatar=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/update-avatar"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({avatar:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),changePassword=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/change-password"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),changeCountry=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/change-country"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({countryId:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),getSelectedCountryList=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/selected-country-list"),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return t=e.v,e.n=2,t.json();case 2:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),sendResetPasswordLink=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/reset-password"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,utmData:brevoUtmData()})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),sendConfirmEmailLink=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/confirm-email"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,redirect:"".concat(window.location.pathname).concat(window.location.search),utmData:brevoUtmData()})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),setNotifications=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/set-notifications"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({promoSubscribe:t.promoSubscribe,releasesSubscribe:t.releasesSubscribe})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),__bridge_authApi=Object.freeze({__proto__:null,autoSignIn:autoSignIn,changeCountry:changeCountry,changePassword:changePassword,checkEmailExists:checkEmailExists,getSelectedCountryList:getSelectedCountryList,isAuth:isAuth,logout:logout,sendConfirmEmailLink:sendConfirmEmailLink,sendResetPasswordLink:sendResetPasswordLink,setNotifications:setNotifications,signIn:signIn,signUp:signUp,updateAvatar:updateAvatar,updateDetails:updateDetails}),__translate=function(e){var t,n,o,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(String((arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ww")||"ww").split(/[-_]/)[0].toUpperCase()){case"PL":return a?interpolationReplace(e,TRANSLATION_PL_INTERPOLATION):null!==(t=TRANSLATION_PL[e])&&void 0!==t?t:e;case"DE":return a?e:null!==(n=TRANSLATION_DE[e])&&void 0!==n?n:e;case"ES":return a?interpolationReplace(e,TRANSLATION_ES_INTERPOLATION):null!==(o=TRANSLATION_ES[e])&&void 0!==o?o:e}return e},interpolationReplace=function(e,t){var n=e;for(var o in t){var a=new RegExp("\\b".concat(o,"\\b"),"g");n=n.replace(a,t[o])}return n};window.__translate=__translate;var __bridge_translate=Object.freeze({__proto__:null,__translate:__translate}),AuthPopup=function(){return _createClass(function e(){var t=this;_classCallCheck(this,e),_defineProperty(this,"credentials",{email:"",password:""}),_defineProperty(this,"userLoginOneTime",storage.getLoginOneTime()),_defineProperty(this,"showAuthBannerOneTime",storage.getShowAuthBanner()),_defineProperty(this,"checkReg
1istrationVia",storage.getCheckRegistrationVia()),this.clickEmailLoginAmplitude=function(){},this.clickEmailSignupAmplitude=function(){},this.clickGoogleLoginAmplitude=function(){},this.clickGoogleSignupAmplitude=function(){},this.clickGoUpSignUpPopupAmplitude=function(){},this.clickResetPasswordAmplitude=function(){},this.clickSendEmailConfirmPopupAmplitude=function(){},this.loginExistingUserAmplitude=function(){},this.registrationNewUserAmplitude=function(){},this.showBlockEmailConfirmPopupAmplitude=function(){},this.showBlockLoginPopupPasswordAmplitude=function(){},this.showBlockSignUpPopupAmplitude=function(){},this.showBlockSignUpPopupMailAmplitude=function(){},this.showBlockSignUpPopupPasswordAmplitude=function(){},this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.noAmplitudeParam||_asyncToGenerator(_regenerator().m(function e(){var n,o,a,i,r,s,c,l,u,d,p,h,f,g,m;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,import("./chunks/scripts.bundle/authAmplitude-DHKx_6Lj.js");case 1:n=e.v,o=n.clickEmailLoginAmplitude,a=n.clickEmailSignupAmplitude,i=n.clickGoogleLoginAmplitude,r=n.clickGoogleSignupAmplitude,s=n.clickGoUpSignUpPopupAmplitude,c=n.clickResetPasswordAmplitude,l=n.clickSendEmailConfirmPopupAmplitude,u=n.loginExistingUserAmplitude,d=n.registrationNewUserAmplitude,p=n.showBlockEmailConfirmPopupAmplitude,h=n.showBlockLoginPopupPasswordAmplitude,f=n.showBlockSignUpPopupAmplitude,g=n.showBlockSignUpPopupMailAmplitude,m=n.showBlockSignUpPopupPasswordAmplitude,t.clickEmailLoginAmplitude=o,t.clickEmailSignupAmplitude=a,t.clickGoogleLoginAmplitude=i,t.clickGoogleSignupAmplitude=r,t.clickGoUpSignUpPopupAmplitude=s,t.clickResetPasswordAmplitude=c,t.clickSendEmailConfirmPopupAmplitude=l,t.loginExistingUserAmplitude=u,t.registrationNewUserAmplitude=d,t.showBlockEmailConfirmPopupAmplitude=p,t.showBlockLoginPopupPasswordAmplitude=h,t.showBlockSignUpPopupAmplitude=f,t.showBlockSignUpPopupMailAmplitude=g,t.showBlockSignUpPopupPasswordAmplitude=m;case 2:return e.a(2)}},e)}))()},[{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return __translate(e,getLocaleCountry()||"en",t)||e}},{key:"translateErrorMessage",value:function(e){return e?this.translate(e):""}},{key:"getTermsUrl",value:function(){var e;return(null===(e=document.body)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.termsPath)||"/terms"}},{key:"getPolicyUrl",value:function(){var e;return(null===(e=document.body)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.privacyPath)||"/privacy"}},{key:"getCheckEmailText",value:function(){var e=this.translate("Click on the link we sent to %%email%% to finish your account setup. Wrong email?");return"".concat(e.replace("%%email%%",this.credentials.email),' <a class="update" id="authEmailUpdateEmail">').concat(this.translate("Click here to update it"),"</a>")}},{key:"generateMainHTML",value:(o=_asyncToGenerator(_regenerator().m(function e(){var t,n,o=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:n='\n <div class="auth_popup" id="authPopup">\n <div id="authPopupBox" class="auth_popup-box">\n <div class="auth_popup-side">\n\t\t\t\t\t<button class="auth_popup-close" id="authClose">\n\t\t\t\t\t\t<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t<g clip-path="url(#clip0_7547_133184)">\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t<rect x="0.5" y="0.5" width="49" height="49" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t<clipPath id="clip0_7547_133184">\n\t\t\t\t\t\t\t<rect width="28" height="28" fill="white" transform="translate(11 11)"/>\n\t\t\t\t\t\t\t</clipPath>\n\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</button>\n <h3 class="title">\n \t'.concat("review"===(t=o.length>0&&void 0!==o[0]?o[0]:"main")?this.translate("Join Our Community of Reviewers!"):this.translate("Get No-Deposit Bonus for Sign-Up!"),'\n </h3>\n \n <div class="condition_options-box">\n \t<div class="option">\n \t\t<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t\t<rect width="24" height="24" rx="12" fill="white" fill-opacity="0.08"/>\n\t\t\t\t\t\t\t\t<g clip-path="url(#clip0_16099_65765)">\n\t\t\t\t\t\t\t\t<path d="M10.3334 14.6433L17.9934 6.98242L19.1725 8.16076L10.3334 16.9999L5.03003 11.6966L6.20836 10.5183L10.3334 14.6433Z" fill="#05E98F"/>\n\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t\t<clipPath id="clip0_16099_65765">\n\t\t\t\t\t\t\t\t<rect width="20" height="20" fill="white" transform="translate(2 2)"/>\n\t\t\t\t\t\t\t\t</clipPath>\n\t\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t<p class="text">').concat("review"===t?this.translate("Leave your honest feedback"):this.translate("Up to 100 FS weekly"),'</p> \t\n\t\t\t\t\t\t</div>\n \t<div class="option">\n \t\t<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t\t<rect width="24" height="24" rx="12" fill="white" fill-opacity="0.08"/>\n\t\t\t\t\t\t\t\t<g clip-path="url(#clip0_16099_65765)">\n\t\t\t\t\t\t\t\t<path d="M10.3334 14.6433L17.9934 6.98242L19.1725 8.16076L10.3334 16.9999L5.03003 11.6966L6.20836 10.5183L10.3334 14.6433Z" fill="#05E98F"/>\n\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t\t<clipPath id="clip0_16099_65765">\n\t\t\t\t\t\t\t\t<rect width="20" height="20" fill="white" transform="translate(2 2)"/>\n\t\t\t\t\t\t\t\t</clipPath>\n\t\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t\t</svg> \n\t\t\t\t\t\t\t<p class="text">').concat("review"===t?this.translate("Receive casino responses"):this.translate("No wager, no deposit"),'</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n <a id="authGoogle" class="social_btn" href="/connect/google">\n <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 <rect x="0.5" y="0.5" width="35" height="35" rx="17.5" fill="white"/>\n <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 <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 <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 <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 <rect x="0.5" y="0.5" width="35" height="35" rx="17.5" stroke="#DCDCDC"/>\n </svg>
1\n <span class="text_button">').concat(this.translate("Continue with Google"),'</span>\n </a>\n <button id="authEmailButton" class="email_btn">\n <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 <rect width="36" height="36" rx="18" fill="white" fill-opacity="0.08"/>\n <g clip-path="url(#clip0_7547_131655)">\n <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 </g>\n <defs>\n <clipPath id="clip0_7547_131655">\n <rect width="22" height="22" fill="white" transform="translate(7 7)"/>\n </clipPath>\n </defs>\n </svg>\n <span class="text_button">').concat(this.translate("Continue with E-mail"),'</span>\n </button> \n <button class="auth_popup-close-text" id="authCloseText">').concat("review"===t?this.translate("No, thanks. I'm not interested."):this.translate("No, thanks. I'm not interested in any offers right now"),'</button>\n <p class="accepts">\n ').concat(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 </p>\n <div class="absolute_image-box">\n \t<img class="image" alt="CasinosAnalyzer" src="/build/midori/img/auth/personal_account_bonuses.webp" />\n \t<img class="image" alt="CasinosAnalyzer" src="/build/midori/img/auth/personal_account_prize.webp" />\n\t\t\t\t\t</div>\n </div>\n </div> \n </div>\n '),document.body.insertAdjacentHTML("beforeend",n),this.emailStepClick(),this.closeClick(),this.scrollUpClick(),this.showBlockSignUpPopupAmplitude(),this.googleSignupTrackClick(document.getElementById("authGoogle")),this.emailSignupTrackClick(document.getElementById("authEmailButton")),this.loadRecaptchaScript();case 1:return e.a(2)}},e,this)})),function(){return o.apply(this,arguments)})},{key:"generateEmailStepHTML",value:function(){var e='\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">'.concat(this.translate("Whatâs your e-mail?"),'</h2> \n \n <input id="authEmailInput" class="input" type="email" placeholder="').concat(this.translate("E-mail"),'" />\n <span id="authEmailError" class="error"></span>\n \n ').concat(this.userLoginOneTime?"":'<div id="authRecaptcha" class="recaptcha"></div>','\n \n <button id="authEmailContinueButton" class="continue_button">').concat(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 ').concat(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",e),!this.userLoginOneTime&&this.callRecaptcha(),this.emailContinueClick(),this.closeClick(),this.returnToClick(document.getElementById("authReturnTo"),"mainHTML"),this.showBlockSignUpPopupMailAmplitude(),this.googleSignupTrackClick(document.getElementById("authGoogle"))}},{key:"generateCreatePasswordStepHTML",value:function(){var e='\n <div class="auth_popup" id="authPopup">\n <div class="auth_popup-box-full">\n <button class="auth_popup-return" id="authReturnTo">
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_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">'.concat(this.translate("Create password"),'</h2> \n <p class="text">').concat(this.translate("Make sure it contains 8+ characters"),'</p>\n <div class="input_box">\n <input id="authPasswordCreateInput" class="input" type="password" placeholder="').concat(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>
1\n <span id="authPasswordCreateError" class="error"></span>\n <button id="authPasswordCreateContinueButton" class="continue_button">').concat(this.translate("Continue"),"</button>\n </div>\n </div> \n </div>\n ");document.body.insertAdjacentHTML("beforeend",e),this.closeClick(),this.passwordCreateContinueClick(),this.passwordShowClick(document.getElementById("authPasswordCreateInput")),this.returnToClick(document.getElementById("authReturnTo"),"emailStepHTML"),this.showBlockSignUpPopupPasswordAmplitude()}},{key:"generateEnterPasswordStepHTML",value:function(){var e='\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">'.concat(this.translate("Enter your password"),'</h2> \n <div class="input_box">\n <input id="authPasswordEnterInput" class="input" type="password" placeholder="').concat(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>
1\n <span id="authPasswordEnterError" class="error"></span>\n <button id="authPasswordEnterContinueButton" class="continue_button">').concat(this.translate("Continue"),'</button>\n \n <p class="text_bottom">\n ').concat(this.translate("Forgot your password?"),' <a class="resend" id="authPasswordResetLink">').concat(this.translate("Send a reset link"),"</a>\n </p>\n </div>\n </div> \n </div>\n ");document.body.insertAdjacentHTML("beforeend",e),this.closeClick(),this.passwordEnterContinueClick(),this.passwordShowClick(document.getElementById("authPasswordEnterInput")),this.returnToClick(document.getElementById("authReturnTo"),"emailStepHTML"),this.sendResetPasswordClick(document.getElementById("authPasswordResetLink")),this.showBlockLoginPopupPasswordAmplitude()}},{key:"generateCheckYourEmailStepHTML",value:function(){var e='\n <div class="auth_popup" id="authPopup">\n <div class="auth_popup-box-full">\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 <img class="image" alt="Email Send" src="/build/midori/img/auth/auth-email.png" />\n <h2 class="title title_email">'.concat(this.translate("Check your email"),'</h2> \n <p class="text text_email">\n ').concat(this.getCheckEmailText(),'\n </p>\n <p class="text_bottom">\n ').concat(this.translate("No e-mail in your inbox or spam folder?"),' <a class="resend" id="authEmailConfirmLink">').concat(this.translate("Letâs resend it"),"</a>\n </p>\n </div>\n </div> \n </div>\n ");document.body.insertAdjacentHTML("beforeend",e),this.closeClick(),this.sendConfirmEmailClick(document.getElementById("authEmailConfirmLink")),this.returnToClick(document.getElementById("authEmailUpdateEmail"),"emailStepHTML"),this.showBlockEmailConfirmPopupAmplitude()}},{key:"remove",value:function(){var e=document.getElementById("authPopup");e&&e.remove()}},{key:"emailStepClick",value:function(){var e=this,t=document.getElementById("authEmailButton");t&&t.addEventListener("click",function(){e.remove(),e.generateEmailStepHTML()})}},{key:"emailContinueClick",value:function(){var e=this,t=document.getElementById("authEmailContinueButton"),n=document.getElementById("authEmailInput");t&&t.addEventListener("click",function(){e.emailValidation(n.value).success&&e.verifiedRecaptcha().success?(e.credentials.email=n.value,e.selectGeneratedHTMLWindowByEmailExists(n.value).then(function(e){return e})):document.getElementById("authEmailError").textContent=e.emailValidation(n.value).success?e.verifiedRecaptcha().error:e.emailValidation(n).error})}},{key:"passwordCreateContinueClick",value:function(){var e=this,t=document.getElementById("authPasswordCreateContinueButton"),n=document.getElementById("authPasswordCreateInput"),o=document.getElementById("authPasswordCreateError");t&&t.addEventListener("click",function(){e.passwordCreateValidation(n.value).length?o.textContent=e.passwordCreateValidation(n.value):(e.credentials.password=n.value,e.remove(),e.signUpRedirectQuery(o).then(function(e){return e}))})}},{key:"passwordEnterContinueClick",value:function(){var e=this,t=document.getElementById("authPasswordEnterContinueButton"),n=document.getElementById("authPasswordEnterInput"),o=document.getElementById("authPasswordEnterError");t&&t.addEventListener("click",function(){n.value?(e.credentials.password=n.value,e.signInRedirectQuery(o).then(function(e){return e})):o.textContent=e.passwordCreateValidation(n.value)})}},{key:"closeClick",value:function(){var e=document.getElementById("authPopup"),t=document.querySelectorAll("#authClose, #authCloseText");t.length&&t.forEach(function(t){t.addEventListener("click",function(){e.remove()})}),e&&e.addEventListener("click",function(t){t.target.closest(".auth_popup-box")||t.target.closest(".auth_popup-box-full")||e.remove()})}},{key:"scrollUpClick",value:function(){var e=this,t=document.getElementById("authPopupBox"),n=document.getElementById("authScrollTopButton");n&&n.addEventListener("click",function(){t.scrollTo({top:0,behavior:"smooth"}),e.clickGoUpSignUpPopupAmplitude()})}},{key:"callPopupByBonusBannerClick",value:function(){var e=this,t=document.getElementsByClassName("authSignupBonusListButton");Array.from(t).forEach(function(t){t.addEventListener("click",function(){e.generateMainHTML().then()})})}},{key:"successMessageGenerateHTML",value:function(){var e='\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">'.concat(this.translate("Email has been sent"),"</p>\n </div>\n </div>\n ");document.body.insertAdjacentHTML("beforeend",e);var t=document.getElementById("successMessage");t.style.animation="show 0.5s forwards ease-in-out",this.hideSuccessMessage(t)}},{key:"callRecaptcha",value:function(){window.grecaptcha?grecaptcha.ready(function(){grecaptcha.render("authRecaptcha",{sitekey:"6LcLHaYnAAAAAFuDmqE4Tx_LHJNCaFZj3jteQ3de"})}):setTimeout(this.callRecaptcha,100)}},{key:"googleSignupTrackClick",value:function(e){var t=this;e.addEventListener("click",function(){t.userLoginOneTime?t.clickGoogleLoginAmplitude():t.clickGoogleSignupAmplitude(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),t.removeTrackEntryTypeStorage()})}},{key:"removeTrackEntryTypeStorage",value:function(){storage.getTrackEntryType()&&storage.removeTrackEntryType()}},{key:"emailSignupTrackClick",value:function(e){var t=this;e.addEventListener("click",function(){t.userLoginOneTime?t.clickEmailLoginAmplitude():t.clickEmailSignupAmplitude()})}},{key:"verifiedRecaptcha",value:function(){return this.userLoginOneTime?{success:!0}:0===grecaptcha.getResponse().length?{error:this.translate("Recaptcha not checked"),success:!1}:{success:!0}}},{key:"hideSuccessMessage",value:function(e){setTimeout(function(){e.remove()},2e3)}},{key:"timerToSendAgain",value:function(e,t){var n=10,o=setInterval(function(){var a=Math.floor(n/60),i=n%60;e.textContent="".concat(String(a).padStart(2,"0"),":").concat(String(i).padStart(2,"0")),e.style.pointerEvents="none",n<0&&(clearInterval(o),e.textContent=t,e.style.pointerEvents="all"),n--},1e3)}},{key:"sendResetPasswordClick",value:function(e){var t=this;e.addEventListener("click",_asyncToGenerator(_regenerator().m(function n(){return _regenerator().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,sendResetPasswordLink(t.credentials.email);case 1:n.v.sendReset&&(t.timerToSendAgain(e,t.translate("Letâs resend it")),t.successMessageGenerateHTML(),t.clickResetPasswordAmplitude());case 2:return n.a(2)}},n)})))}},{key:"sendConfirmEmailClick",value:function(e){var t=this;e.addEventListener("click",_asyncToGenerator(_regenerator().m(function n(){return _regenerator().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,sendConfirmEmailLink(t.credentials.email);case 1:n.v.sendConfirmEmail&&(t.timerToSendAgain(e,t.translate("Letâs resend it")),t.successMessageGenerateHTML(),t.clickSendEmailConfirmPopupAmplitude());case 2:return n.a(2)}},n)})))}},{key:"returnToClick",value:function(e,t){var n=this;e&&e.addEventListener("click",function(){n.remove(),n.generateHTMLAdapter(t)})}},{key:"signInRedirectQuery",value:(n=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return storage.getGoogleOneTap()&&storage.removeGoogleOneTap(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),e.n=1,signIn(this.credentials.email,this.credentials.password);case 1:if(!(o=e.v).signIn){e.n=2;break}return a=new URL(window.location.href),(i=new URLSearchParams(a.search)).set("logged_in","true"),a.search=i.toString(),this.loginExistingUserAmplitude(o.userId),window.dispatchEvent(new CustomEvent("caAuthSuccess")),e.a(2,window.location.href=a.toString());case 2:return o&&o.errors&&"false_confirm"===o.errors.email&&(this.remove(),this.generateCheckYourEmailStepHTML()),t.textContent=this.translateErrorMessage(o.error?o.error:null==o||null===(n=o.errors)||void 0===n?void 0:n.password),e.a(2,!1)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"signUpRedirectQuery",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var n,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return storage.getGoogleOneTap()&&storage.removeGoogleOneTap(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),e.n=1,signUp(this.credentials.email,this.credentials.password);case 1:if(!(o=e.v).signUp){e.n=2;break}return this.registrationNewUserAmplitude(o.userId,"email"),this.showBlockSignUpPopupAmplitude(),this.generateCheckYourEmailStepHTML(),e.a(2,!0);case 2:return t.textContent=this.translateErrorMessage(null==o||null===(n=o.errors)||void 0===n?void 0:n.password),e.a(2,!1)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"passwordShowClick",value:function(e){var t=document.getElementById("authPasswordShow");t&&t.addEventListener("click",function(){e.type="password"===e.type?"input":"password"})}},{key:"emailValidation",value:function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{success:!0}:{error:this.translate("Invalid email format. Please try again"),success:!1}}},{key:"passwordCreateValidation",value:function(e){return 0===e.length?this.translate("Password cannot be empty. Please try again"):!!/^.{8,}$/.test(e)||this.translate("Password must be 8 characters or longer. Please try again")}},{key:"selectGeneratedHTMLWindowByEmailExists",value:(e=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,checkEmailExists(t);case 1:e.v.email?(this.remove(),this.generateEnterPasswordStepHTML()):(this.remove(),this.generateCreatePasswordStepHTML());case 2:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"generateHTMLAdapter",value:function(e){return{mainHTML:this.generateMainHTML,emailStepHTML:this.generateEmailStepHTML,createPasswordStep:this.generateCreatePasswordStepHTML}[e].call(this)}},{key:"loadRecaptchaScript",value:function(){if(!document.querySelector('script[src="https://www.google.com/recaptcha/api.js"]')){var e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js",e.async=!0,e.defer=!0,document.head.appendChild(e)}}},{key:"showBannerBySpecialTime",value:function(e){var t=this,n=(new Date).toISOString();setTimeout(function(){var e=document.getElementById("authPopup"),o=document.querySelector(".bonusesPopup[data-type=wheelsExitPopup].show");o&&storage.setShowAuthWheels(!0),t.showAuthBannerOneTime||t.checkReg
1istrationVia||null!==e||o||(storage.setRegistrationViaAmplitude("reg_popup"),t.generateMainHTML().then(function(e){return e}),storage.setShowAuthBanner(n))},e),window.addEventListener("beforeunload",function(){if(t.showAuthBannerOneTime){var e=new Date(t.showAuthBannerOneTime),n=new Date;e.getDate()!==n.getDate()&&storage.removeShowAuthBanner()}})}}]);var e,t,n,o}(),authPopup=new AuthPopup,AuthWheelPopup=function(){return _createClass(function e(){var t=this;_classCallCheck(this,e),_defineProperty(this,"BASE_MOBILE_SIZE",992),_defineProperty(this,"credentials",{email:"",password:""}),this.showBlockWheelBannerFeedOpenAmplitude=function(){},this.registrationNewUserAmplitude=function(){},this.loginExistingUserAmplitude=function(){},this.clickWheelBannerSpinAmplitude=function(){},this.clickWheelBannerGoogleSignUpAmplitude=function(){},this.clickWheelBannerEmailSignUpAmplitude=function(){},this.clickAffLinkWheelBannerCasinoVisitAmplitude=function(){},this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.noAmplitudeParam||_asyncToGenerator(_regenerator().m(function e(){var n,o,a,i,r,s,c,l;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,import("./chunks/scripts.bundle/authAmplitude-DHKx_6Lj.js");case 1:n=e.v,o=n.showBlockWheelBannerFeedOpenAmplitude,a=n.registrationNewUserAmplitude,i=n.loginExistingUserAmplitude,r=n.clickWheelBannerSpinAmplitude,s=n.clickWheelBannerGoogleSignUpAmplitude,c=n.clickWheelBannerEmailSignUpAmplitude,l=n.clickAffLinkWheelBannerCasinoVisitAmplitude,t.showBlockWheelBannerFeedOpenAmplitude=o,t.registrationNewUserAmplitude=a,t.loginExistingUserAmplitude=i,t.clickWheelBannerSpinAmplitude=r,t.clickWheelBannerGoogleSignUpAmplitude=s,t.clickWheelBannerEmailSignUpAmplitude=c,t.clickAffLinkWheelBannerCasinoVisitAmplitude=l;case 2:return e.a(2)}},e)}))()},[{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return __translate(e,getLocaleCountry()||"en",t)||e}},{key:"translateErrorMessage",value:function(e){return e?this.translate(e):""}},{key:"generateMainHTML",value:function(){var e=this;document.body.insertAdjacentHTML("beforeend",'\n <div id="authWheelPopup" class="authWheelPopup">\n <div class="wheelsExitPopup__wrapper">\n <div class="wheels__card"></div>\n <div class="wheels__card">\n <button id="authWheelPopupClose" class="wheels__close"></button>\n <div class="wheels__form--wrapper">\n <div class="wheels__form--text"><p class="wheels__form--title">Thrilling?</p>\n <p class="wheels__form--description">Your reward is just a spin away</p>\n <div class="wheels__wrapper">\n <div class="wheels__circle">\n <div class="wheels__circle--inner">\n <div class="wheels__content">\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n <div class="wheels__sector"></div>\n </div>\n <div class="wheels__labels"><p><span>Get $50 Free Chip on Buffalo Ways</span></p>\n <p><span>No Luck</span></p>\n <p><span>Get $125 Welcome Free Chip</span></p>\n <p><span>Get $20 Free Chips To Play All Games</span></p>\n <p><span>Next Time</span></p>\n <p><span>350% up to $2,500</span></p>\n <p><span>Get $50 Free Chip on Buffalo Ways</span></p>\n <p><span>No Luck</span></p>\n <p><span>Get $125 Welcome Free Chip</span></p>\n <p><span>Get $20 Free Chips To Play All Games</span></p>\n <p><span>Next Time</span></p>\n <p><span>350% up to $2,500</span></p></div>\n <div class="wheels__center"></div>\n <div class="wheels__center--pin"></div>\n </div>\n </div>\n <div class="wheels__label--down"></div>\n <div class="wheels__label--up"></div>\n </div>\n </div>\n <div class="wheels__form sib-form">\n <div id="sib-form-container" class="sib-form-container">\n <div id="error-message" class="sib-form-message-panel">\n <div class="sib-form-message-panel__text sib-form-message-panel__text--center">
1\n <span class="sib-form-message-panel__inner-text"></span>\n </div>\n </div>\n <div></div>\n <div id="success-message" class="sib-form-message-panel">\n <div class="sib-form-message-panel__text sib-form-message-panel__text--center">\n <span class="sib-form-message-panel__inner-text"></span>\n </div>\n </div>\n <div id="sib-container"> \n <div class="sib-form-block">\n <button class="sib-form-block__button sib-form-block__button-with-loader"\n id="authWheelPopupSpinButton"\n type="button">\n Spin to win!\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n '),this.closeClick(),this.resizePopup(),this.spinTheWheelClick(),setTimeout(function(){e.showBlockWheelBannerFeedOpenAmplitude()},1500)}},{key:"generateCongratulationsHTML",value:function(){var e=storage.getKeitaro(),t=storage.getAlternativeSponsoredOffers(),n=t?t.filter(function(e){return!!e.sponsored}):[],o=n&&n.length>0?n[Math.floor(Math.random()*n.length)]:e[Math.floor(Math.random()*e.length)],a='\n <div id="authWheelPopup" class="authWheelPopup">\n <div class="wheelsExitPopup__wrapper congratulations_step">\n <div class="wheels__card"></div>\n <div class="wheels__card formFulfilled">\n <button id="authWheelPopupClose" class="wheels__close"></button>\n <div class="wheels__form--wrapper">\n <div class="wheels__form--text"><p class="wheels__form--title">Time to celebrate!</p>\n <p class="wheels__form--description congratulations_text">Instant signup, instant bonus!</p>\n <div class="wheels__win show"></div>\n </div>\n <div class="wheels__bonus">\n <div class="wheels__bonus--info">\n <div class="logo" style="background-color: #'.concat(o.casino.background,'">\n <img src="').concat(o.casino.logo,'" alt="').concat(o.casino.name,'">\n </div>\n <div class="text">\n <p class="label">You did it!</p>\n <p id="authWheelPopupShowBonusText" class="title">').concat(o.titleShort,'</p>\n </div>\n </div>\n <div id="authWheelPopupSignUpGoogle">\n <a id="authWheelPopupGoogleSignUp" href="/connect/google" class="google-sign-up--btn">\n <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.5 18C0.5 8.33502 8.33502 0.5 18 0.5C27.665 0.5 35.5 8.33502 35.5 18C35.5 27.665 27.665 35.5 18 35.5C8.33502 35.5 0.5 27.665 0.5 18Z" fill="white" fill-opacity="0.08"/>\n <path d="M0.5 18C0.5 8.33502 8.33502 0.5 18 0.5C27.665 0.5 35.5 8.33502 35.5 18C35.5 27.665 27.665 35.5 18 35.5C8.33502 35.5 0.5 27.665 0.5 18Z" stroke="#DCDCDC"/>\n <path d="M29.2502 18.2752C29.2502 17.5002 29.1752 16.7002 29.0502 15.9502H18.2251V20.3752H24.4252C24.1752 21.8003 23.3502 23.0503 22.1251 23.8503L25.8252 26.7253C28.0002 24.7003 29.2502 21.7503 29.2502 18.2752Z" fill="#4280EF"/>\n <path d="M18.225 29.4747C21.3251 29.4747 23.9251 28.4497 25.8251 26.6997L22.1251 23.8496C21.1001 24.5497 19.775 24.9497 18.225 24.9497C15.225 24.9497 12.7 22.9246 11.775 20.2246L7.97491 23.1496C9.92494 27.0247 13.875 29.4747 18.225 29.4747Z" fill="#34A353"/>\n <path d="M11.775 20.1997C11.3 18.7747 11.3 17.2247 11.775 15.7996L7.97493 12.8496C6.34991 16.0996 6.34991 19.9247 7.97493 23.1497L11.775 20.1997Z" fill="#F6B704"/>\n <path d="M18.225 11.0749C19.85 11.0499 21.4501 11.6749 22.6251 12.7999L25.9001 9.49988C23.8251 7.54986 21.0751 6.49985 18.225 6.52485C13.875 6.52485 9.92494 8.97488 7.97491 12.8499L11.775 15.8C12.7 13.0749 15.225 11.0749 18.225 11.0749Z" fill="#E54335"/>\n </svg>
1\n <span class="text">Sign up and Reveal Bonus</span>\n </a>\n <p class="continue_text">Continue with E-mail</p>\n <button class="wheels__bonus--btn">Claim my bonus</button>\n </div>\n <div id="authWheelPopupSignUpEmail">\n <div class="email_sign_up-input-box">\n <input id="authWheelEmailInput" class="input" placeholder="[email protected]" type="email"/>\n <span class="error" id="authWheelEmailError"></span>\n <button id="authWheelPopupContinueButton" class="button">Continue</button>\n </div>\n <p class="continue_text">Continue with Google</p>\n </div> \n <div id="authWheelPopupSignUpPassword" style="display: none">\n <div class="email_sign_up-input-box">\n <input id="authWheelSignUpPasswordInput" class="input" placeholder="Create Password" type="password"/>\n <span id="authWheelSignUpPasswordError" class="error"></span>\n <button id="authWheelSignUpButton" class="button">Sign up</button>\n </div>\n <p class="continue_text">Continue with Google</p>\n </div> \n <div id="authWheelPopupSignInPassword" style="display: none">\n <div class="email_sign_up-input-box">\n <input id="authWheelSignInPasswordInput" class="input" placeholder="Enter Password" type="password"/>\n <span id="authWheelSignInPasswordError" class="error"></span>\n <button id="authWheelSignInButton" class="button">Sign in</button>\n </div>\n <p class="continue_text">Continue with Google</p>\n </div> \n <div id="authWheelPopupClaimBonus" class="wheels__form" style="display: none">\n <a id="authWheelPopupClaimBonusButton"\n class="sib-form-block__button sib-form-block__button-with-loader"\n data-bonus="').concat(o.id,'"\n href="/redirect?domain=').concat(encodeURIComponent(o.casino.domain),"&bonus=").concat(encodeURIComponent(o.id),'"\n target="_blank"\n rel="nofollow noopener">\n Claim my bonus\n </a>\n </div> \n </div>\n </div>\n </div>\n </div>\n </div>\n ');document.body.insertAdjacentHTML("beforeend",a),this.checkGoogleSignUp(),this.closeClick(),this.resizePopup(),this.congratulationsLayoutSwitcher(),this.emailContinueClick(),this.passwordSignUpContinueClick(),this.passwordSignInContinueClick(),this.claimBonusClick()}},{key:"resizePopup",value:function(){var e=this,t=document.querySelector(".wheels__wrapper"),n=document.querySelector(".wheels__form--text"),o=document.querySelector(".wheels__form--text .wheels__wrapper"),a=document.querySelector(".wheels__card:nth-child(2)"),i=document.querySelector(".wheels__card:first-of-type"),r=document.querySelector(".wheels__win"),s=document.querySelector(".wheels__form--text .wheels__win");window.addEventListener("resize",function(){e.checkScreenSizeForReplaceBlocks({win:r,prize:s,circle:t,formText:n,wheelsCard:a,insertedCircle:o,wheelsCardFirst:i})}),this.checkScreenSizeForReplaceBlocks({win:r,prize:s,circle:t,formText:n,wheelsCard:a,insertedCircle:o,wheelsCardFirst:i})}},{key:"checkScreenSizeForReplaceBlocks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
1,t={mobile:{remove:["circle","win"],append:["circle","win"],target:"formText"},desktop:{remove:["insertedCircle","prize"],append:["circle","win"],target:"wheelsCardFirst"}}[window.innerWidth<this.BASE_MOBILE_SIZE?"mobile":"desktop"],n=t.remove,o=t.append,a=t.target;n.forEach(function(t){e[t]&&e[t].remove()}),o.forEach(function(t){e[t]&&e[a]&&e[a].append(e[t])})}},{key:"emailContinueClick",value:function(){var e=this,t=document.getElementById("authWheelPopupSignUpEmail"),n=document.getElementById("authWheelPopupSignUpPassword"),o=document.getElementById("authWheelPopupSignInPassword"),a=document.getElementById("authWheelPopupContinueButton"),i=document.getElementById("authWheelEmailInput"),r=document.getElementById("authWheelEmailError");a.addEventListener("click",_asyncToGenerator(_regenerator().m(function a(){var s;return _regenerator().w(function(a){for(;;)switch(a.n){case 0:return e.credentials.email=i.value,a.n=1,e.checkEmailExists(e.credentials.email);case 1:s=a.v,e.emailValidation(i.value).success?(t.style.display="none",s?o.style.display="block":n.style.display="block",e.clickWheelBannerEmailSignUpAmplitude()):r.textContent=e.emailValidation(i.value).success?null:e.emailValidation(i).error;case 2:return a.a(2)}},a)})))}},{key:"checkEmailExists",value:(n=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,checkEmailExists(t);case 1:return n=e.v,e.a(2,n.email)}},e)})),function(e){return n.apply(this,arguments)})},{key:"passwordSignUpContinueClick",value:function(){var e=this,t=document.getElementById("authWheelSignUpButton"),n=document.getElementById("authWheelSignUpPasswordInput"),o=document.getElementById("authWheelSignUpPasswordError");t.addEventListener("click",function(){e.passwordCreateValidation(n.value).length?o.textContent=e.passwordCreateValidation(n.value):(e.credentials.password=n.value,e.signUpQuery(o).then(function(t){t&&e.congratulationsClaimBonusLayoutSwitcher()}))})}},{key:"passwordSignInContinueClick",value:function(){var e=this,t=document.getElementById("authWheelSignInButton"),n=document.getElementById("authWheelSignInPasswordInput"),o=document.getElementById("authWheelSignInPasswordError");t.addEventListener("click",_asyncToGenerator(_regenerator().m(function t(){return _regenerator().w(function(t){for(;;)switch(t.n){case 0:e.passwordCreateValidation(n.value).length?o.textContent=e.passwordCreateValidation(n.value):(e.credentials.password=n.value,e.signInQuery(o).then(function(t){t&&e.congratulationsClaimBonusLayoutSwitcher()}));case 1:return t.a(2)}},t)})))}},{key:"congratulationsLayoutSwitcher",value:function(){var e=document.querySelectorAll(".continue_text"),t={google:document.getElementById("authWheelPopupSignUpGoogle"),email:document.getElementById("authWheelPopupSignUpEmail"),passwordSignUp:document.getElementById("authWheelPopupSignUpPassword"),passwordSignIn:document.getElementById("authWheelPopupSignInPassword")};t.email.style.display="none",t.passwordSignUp.style.display="none",t.google.style.display="block",Array.from(e).forEach(function(e){e.addEventListener("click",function(){"none"===t.email.style.display&&"none"===t.passwordSignUp.style.display&&"none"===t.passwordSignIn.style.display?(t.email.style.display="block",t.passwordSignUp.style.display="none",t.passwordSignIn.style.display="none",t.google.style.display="none"):(t.email.style.display="none",t.passwordSignUp.style.display="none",t.passwordSignIn.style.display="none",t.google.style.display="block")})})}},{key:"congratulationsClaimBonusLayoutSwitcher",value:function(){var e=document.getElementById("authWheelPopupShowBonusText"),t=document.getElementById("authWheelPopupClaimBonus"),n={google:document.getElementById("authWheelPopupSignUpGoogle"),email:document.getElementById("authWheelPopupSignUpEmail"),passwordSignUp:document.getElementById("authWheelPopupSignUpPassword"),passwordSignIn:document.getElementById("authWheelPopupSignInPassword")};if(Object.values(n).forEach(function(e){e&&(e.style.display="none")}),t){t.style.display="block",e.style.filter="blur(0)";var o=document.querySelector(".wheels__bonus--info");o&&o.classList.add("is-claimable")}}},{key:"checkGoogleSignUp",value:function(){var e=this;document.getElementById("authWheelPopupGoogleSignUp").addEventListener("click",function(){e.clickWheelBannerGoogleSignUpAmplitude(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),storage.setAuthWheelsPopupCongratulations(!0)})}},{key:"signUpQuery",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var n,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),e.n=1,signUp(this.credentials.email,this.credentials.password);case 1:if(!(n=e.v).signUp){e.n=2;break}return this.registrationNewUserAmplitude(n.userId,"email"),e.a(2,!0);case 2:if(!n.errors){e.n=3;break}return t.textContent=this.translateErrorMessage(null==n||null===(o=n.errors)||void 0===o?void 0:o.password),e.a(2,!1);case 3:return e.a(2,!0)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"signInQuery",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),e.n=1,signIn(this.credentials.email,this.credentials.password);case 1:if((n=e.v).signIn&&(o=new URL(window.location.href),(a=new URLSearchParams(o.search)).set("logged_in","true"),o.search=a.toString(),this.loginExistingUserAmplitude(n.userId)),n&&n.errors&&"false_confirm"===n.errors.email&&this.remove(),!n.error){e.n=2;break}return t.textContent=this.translateErrorMessage(n.error?n.error:null==n||null===(i=n.errors)||void 0===i?void 0:i.password),e.a(2,!1);case 2:return e.a(2,!0)}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"claimBonusClick",value:function(){var e=this,t=document.getElementById("authWheelPopupClaimBonusButton"),n=document.querySelector(".wheels__bonus--info");t.addEventListener("click",function(){e.clickAffLinkWheelBannerCasinoVisitAmplitude(t.dataset.bonus),e.closePopup(),setTimeout(function(){window.location.reload()},1500)}),n&&n.addEventListener("click",function(e){e.target.closest("#authWheelPopupClaimBonusButton")||n.classList.contains("is-claimable")&&t.click()})}},{key:"closePopup",value:function(){var e=document.getElementById("authWheelPopup");document.getElementById("authWheelPopupClaimBonus"),e.remove()}},{key:"closeClick",value:function(){var e=document.getElementById("authWheelPopupClose"),t=document.getElementById("authWheelPopup"),n=document.getElementById("authWheelPopupClaimBonus");e&&e.addEventListener("click",function(){t.remove(),n&&"block"===n.style.display&&window.location.reload()})}},{key:"spinTheWheelClick",value:function(){var e=this;document.getElementById("authWheelPopupSpinButton").addEventListener("click",function(){var t=document.querySelector(".wheels__form--text .
1wheels__form--title"),n=document.querySelector(".wheels__form--text .wheels__form--description");t.innerHTML="Exciting!",n.innerHTML="Loading your reward...";var o=document.querySelector(".wheels__content");o.classList.add("rotation"),o.classList.add("spinFirst");var a=document.querySelector(".wheels__labels");a.classList.add("rotation"),a.classList.add("spinFirst"),setTimeout(function(){e.remove(),e.generateCongratulationsHTML()},4600),e.clickWheelBannerSpinAmplitude()})}},{key:"remove",value:function(){var e=document.getElementById("authWheelPopup");e&&e.remove()}},{key:"emailValidation",value:function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{success:!0}:{error:"Invalid email format. Please try again",success:!1}}},{key:"passwordCreateValidation",value:function(e){return 0===e.length?"Password cannot be empty. Please try again":!!/^.{8,}$/.test(e)||"Password must be 8 characters or longer. Please try again"}}]);var e,t,n}(),authWheelPopup=new AuthWheelPopup,Auth=function(){return _createClass(function e(){var t=this;_classCallCheck(this,e),_defineProperty(this,"checkIfAnalyticsLoaded",function(e){var n=e.registration,o=e.userID;window.ga||window.amplitude||window.zaraz?(t.sendRegistrationViaUserPropertyAmplitude(n),t.sendUserIdPropertyAmplitude(o)):setTimeout(function(){return t.checkIfAnalyticsLoaded({registration:n,userID:o})},500)}),this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.loginExistingUserAmplitude,this.registrationNewUserAmplitude,this.userLoginOneTime=storage.getLoginOneTime(),this.clickGoogleLoginAmplitude=function(){},this.clickGoogleSignupAmplitude=function(){},this.noAmplitudeParam||_asyncToGenerator(_regenerator().m(function e(){var n,o,a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,import("./chunks/scripts.bundle/authAmplitude-DHKx_6Lj.js");case 1:n=e.v,o=n.clickGoogleLoginAmplitude,a=n.clickGoogleSignupAmplitude,t.clickGoogleLoginAmplitude=o,t.clickGoogleSignupAmplitude=a;case 2:return e.a(2)}},e)}))()},[{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return __translate(e,getLocaleCountry()||"en",t)||e}},{key:"initAuth",value:(n=_asyncToGenerator(_regenerator().m(function e(){var t,n,o,a,i,r,s,c,l,u,d,p,h,f,g,m,_,v,y,w,b,S,k=this;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(o=null!==(t=document.getElementById("profileHeader"))&&void 0!==t?t:null,a=null!==(n=document.getElementById("profileHeaderButton"))&&void 0!==n?n:null,i=document.getElementById("profileHeaderNotAuth"),r=document.getElementById("authSignupButton"),s=document.getElementById("authOptionsProfiler"),c=document.querySelector('[data-id="authSpinWheelImage"]'),l=document.querySelector("#comingSoonOfferRegister"),u=document.getElementsByClassName("authSignupBonusListButton"),removeBannersAfterFirst(u),this.noAmplitudeParam){e.n=2;break}return e.n=1,import("./chunks/scripts.bundle/authAmplitude-DHKx_6Lj.js");case 1:d=e.v,p=d.loginExistingUserAmplitude,h=d.registrationNewUserAmplitude,this.loginExistingUserAmplitude=p,this.registrationNewUserAmplitude=h;case 2:if(!o){e.n=4;break}return e.n=3,isAuth();case 3:y=e.v,s&&(s.style.display="block"),this.removeBannerFromBonuses(u),this.checkIfAnalyticsLoaded({registration:null===(f=y.data)||void 0===f?void 0:f.registrationVia,userID:null===(g=y.data)||void 0===g?void 0:g.id}),this.setTokenStorage(!0),this.setGlobalUserId(null===(m=y.data)||void 0===m?void 0:m.id),"Google"===(null===(_=y.data)||void 0===_?void 0:_.registrationVia)&&this.sendGoogleEntryTypeAmplitude(null===(w=y.data)||void 0===w?void 0:w.created,null===(b=y.data)||void 0===b?void 0:b.registrationVia,null===(S=y.data)||void 0===S?void 0:S.id),this.setToken(null===(v=y.data)||void 0===v?void 0:v.token),this.checkUserLastPageBeforeProfilePage(o,a),this.initForumSSO(),e.n=6;break;case 4:return s&&(s.style.display="block"),this.generateProfileHeaderButtonNotAuth(i),this.authSignup(r),this.authBannerSpinWheelAnimation(c),this.setTokenStorage(!1),this.checkIfAnalyticsLoaded({registration:null,userID:null}
1),storage.removeCheckRegistrationVia(),e.n=5,this.autoLogin(o);case 5:this.callPopupByBonusBannerClick();case 6:window.location.search.includes("logged_in=true")&&(this.successMessageGenerateHTML(),this.scrollToEntryPosition(),storage.getAuthWheelsPopupCongratulations()&&setTimeout(function(){authWheelPopup.generateCongratulationsHTML(),authWheelPopup.congratulationsClaimBonusLayoutSwitcher(),storage.removeAuthWheelsPopupCongratulations()},1e3)),this.removeQueryParam("logged_in"),l&&l.addEventListener("click",function(){var e,t=document.querySelector("#comingSoonOffer"),n=null==t||null===(e=t.dataset)||void 0===e?void 0:e.casinoId,o=document.body.dataset.siteId;k.userLoginOneTime?k.clickGoogleLoginAmplitude():k.clickGoogleSignupAmplitude(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),storage.getTrackEntryType()&&storage.removeTrackEntryType(),storage.setRegPlacement("comingSoonOffer");var a=new URLSearchParams({source:"comingSoonOffer"});n&&a.set("casino_id",n),o&&a.set("site_id",o),document.location.href="/connect/google?".concat(a.toString())});case 7:return e.a(2)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"setTokenStorage",value:function(e){return e?storage.setAuthToken((!0).toString()):storage.getAuthToken()?storage.removeAuthToken():null}},{key:"setToken",value:function(e){return e?storage.setToken(e.toString()):storage.getToken()?storage.removeToken():null}},{key:"autoLogin",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var n,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(storage.getToken()||(n=new URLSearchParams(window.location.search),(o=n.get("token"))&&storage.setToken(o)),!storage.getToken()){e.n=2;break}return e.n=1,autoSignIn(storage.getToken());case 1:window.location.reload(),!t&&storage.removeToken();case 2:return e.a(2)}},e)})),function(e){return t.apply(this,arguments)})},{key:"setGlobalUserId",value:function(e){if(e&&!storage.getAuthId())return storage.setAuthId(e)}},{key:"generateProfileHeaderButtonNotAuth",value:function(e){e&&e.addEventListener("click",function(){storage.setRegistrationViaAmplitude("reg"),storage.setRegPlacement("header"),authPopup.generateHTMLAdapter("mainHTML")})}},{key:"removeQueryParam",value:function(e){var t=new URL(window.location.href);t.searchParams.delete(e),""===t.search&&(t.search=""),window.history.replaceState({},document.title,t.href)}},{key:"removeBannerFromBonuses",value:function(e){Array.from(e).forEach(function(e){e.remove()})}},{key:"authSignup",value:function(e){e&&e.addEventListener("click",function(){authPopup.generateHTMLAdapter("mainHTML")})}},{key:"authBannerSpinWheelAnimation",value:function(e){var t=0,n=function(){t+=360,e.style.transition="transform 2s ease-in-out",e.style.transform="rotate(".concat(t,"deg)"),setTimeout(function(){e.style.transition="none",e.style.transform="rotate(".concat(t-360,"deg)"),e.offsetWidth,e.style.transition="transform 2s ease-in-out",n()},4e3)};e&&n()}},{key:"successMessageGenerateHTML",value:function(){var e='\n <div class="success" id="loggedInSuccessMessage">\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 17.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">'.concat(this.translate("You have successfully logged in"),"</p>\n </div>\n </div>\n ");document.body.insertAdjacentHTML("beforeend",e);var t=document.getElementById("loggedInSuccessMessage");t.style.animation="show 0.51s forwards ease-in-out",this.hideSuccessMessage(t)}},{key:"callPopupByBonusBannerClick",value:function(){var e=document.getElementsByClassName("authSignupBonusListButton");Array.from(e).forEach(function(e){e.addEventListener("click",function(){storage.setRegPlacement("fortune_wheel"),authWheelPopup.generateMainHTML()})})}},{key:"hideSuccessMessage",value:function(e){setTimeout(function(){e.remove()},1900)}},{key:"sendRegistrationViaUserPropertyAmplitude",value:function(e){storage.getCheckReg
1istrationVia()||(storage.setCheckRegistrationVia((new Date).toString()),"undefined"!=typeof amplitude&&litude.identify?amplitude.identify((new amplitude.Identify).set("registration_via",e)):window.location.hostname.includes("casinosanalyzer.co.uk")&&"undefined"!=typeof zaraz&&"function"==typeof zaraz.track&&zaraz.set("registration_via",e))}},{key:"sendUserIdPropertyAmplitude",value:(e=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,import("./chunks/scripts.bundle/authAmplitude-DHKx_6Lj.js");case 1:(0,e.v.setAnalyticsUserId)(t);case 2:return e.a(2)}},e)})),function(t){return e.apply(this,arguments)})},{key:"setEntryTypeStorage",value:function(){var e={entryType:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"registration",isSend:arguments.length>1&&void 0!==arguments[1]&&arguments[1]};return storage.setTrackEntryType(e)}},{key:"sendGoogleEntryTypeAmplitude",value:function(e,t,n){var o=storage.getTrackEntryType(),a=(new Date).toISOString().slice(0,10);if(!o||!o.isSend){var i="login";return e===a&&(i="registration"),this.setEntryTypeStorage(i,!0),"login"===i?this.loginExistingUserAmplitude(n):this.registrationNewUserAmplitude(n,t)}}},{key:"checkUserLastPageBeforeProfilePage",value:function(e,t){[e,t].forEach(function(e){e.addEventListener("click",function(){storage.setReferringPageAfterLogout(window.location.pathname)})})}},{key:"scrollToEntryPosition",value:function(){storage.getScrollPosition()&&(window.scrollTo(0,parseInt(storage.getScrollPosition(),10)),storage.removeScrollPosition())}},{key:"initForumSSO",value:function(){storage.setForumSsoReady((!0).toString())}}]);var e,t,n}(),auth=new Auth,_inited=new WeakMap,_AuthGoogleOneTap_brand=new WeakSet,AuthGoogleOneTap=function(){return _createClass(function e(){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,_AuthGoogleOneTap_brand),_defineProperty(this,"CLIENT_ID","970561948081-q6f0dmtmkf9e349s67em57uf12ljtdkv.apps.googleusercontent.com"),_defineProperty(this,"GSI_SRC","https://accounts.google.com/gsi/client"),_classPrivateFieldInitSpec(this,_inited,!1),this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.noAmplitudeParam||_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,import("./chunks/scripts.bundle/authAmplitude-DHKx_6Lj.js");case 1:e.v.loginExistingUserAmplitude;case 2:return e.a(2)}},e)}))()},[{key:"loadGsiScript",value:function(){var e,t=this;if(null!==(e=window.google)&&void 0!==e&&null!==(e=e.accounts)&&void 0!==e&&e.id)return Promise.resolve();var n=document.querySelector('script[src="'.concat(this.GSI_SRC,'"]'));return new Promise(n?function(e,t){n.addEventListener("load",e,{once:!0}),n.addEventListener("error",t,{once:!0})}:function(e,n){var o=document.createElement("script");o.src=t.GSI_SRC,o.async=!0,o.defer=!0,o.onload=e,o.onerror=n,document.head.appendChild(o)})}},{key:"init",value:function(){var e=this;if(!_classPrivateFieldGet2(_inited,this)){_classPrivateFieldSet2(_inited,this,!0);var t=function(){var t=_asyncToGenerator(_regenerator().m(function t(){return _regenerator().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.loadGsiScript();case 1:t.n=3;break;case 2:return t.p=2,t.v,t.a(2);case 3:_assertClassBrand(_AuthGoogleOneTap_brand,e,_onGsiReady).call(e,function(){google.accounts.id.initialize({client_id:e.CLIENT_ID,use_fedcm_for_prompt:!0,cancel_on_tap_outside:!1,callback:function(t){return e.handleCredentialResponse(t)}}),google.accounts.id.prompt(function(){})});case 4:return t.a(2)}},t,null,[[0,2]])}));return function(){return t.apply(this,arguments)}}();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}}},{key:"handleCredentialResponse",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=null==t?void 0:t.credential){e.n=1;break}return e.a(2);case 1:return e.p=1,storage.getScrollPosition()||storage.setScrollPosition(window.scrollY||window.pageYOffset),storage.setRegPlacement("google_one_tap"),e.n=2,fetch("/connect/google/onetap",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},credentials:"same-origin",body:JSON.stringify({credential:n})});case 2:if((o=e.v).ok){e.n=4;break}return i=console,r=o.status,e.n=3,o.text();case 3:return i.error.call(i,"One Tap login failed",r,e.v),e.a(2);case 4:(a=new URL(window.location.href)).searchParams.set("logged_in","true"),window.location.href=a.toString(),e.n=6;break;case 5:e.p=5,e.v;case 6:return e.a(2)}},e,null,[[1,5]])})),function(t){return e.apply(this,arguments)})}]);var e}();function _onGsiReady(e){var t;if(null!==(t=window.google)&&void 0!==t&&null!==(t=t.accounts)&&void 0!==t&&t.id)return e();var n=0,o=setInterval(function(){var t;null!==(t=window.google)&&void 0!==t&&null!==(t=t.accounts)&&void 0!==t&&t.id?(clearInterval(o),e()):++n>200&&clearInterval(o)},50)}var authGoogleOneTap=new AuthGoogleOneTap,getTermsAndConditions=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("/api/terms_and_conditions/".concat(t),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v);case 3:return e.p=3,e.v,e.a(2,"T&C not provided.")}},e,null,[[0,3]])}
1));return function(t){return e.apply(this,arguments)}}(),geoCloudflareLocation=function(){var e=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("https://www.cloudflare.com/cdn-cgi/trace",{mode:"cors"}).then(function(e){return e.text()}).then(function(e){var t=e.replace(/[\r\n]+/g,'","').replace(/=+/g,'":"');return t='{"'+t.slice(0,t.lastIndexOf('","'))+'"}',JSON.parse(t).loc});case 1:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),fetchOffers=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,secureApiFetch({url:t,method:"GET",headers:{"Content-Type":"application/json"},security:{requireSecure:!0,scope:"offers"}});case 1:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),getOffersByClientLocation=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetchOffers("/api/offers?country=".concat(t)).then(function(e){return 0!==e.length&&e||(e=[{offer_id:"947",offer_name:"True-Fortune",offer_bonus:"Exclusive Offer â¬25 Free Chip",offer_domain:"true-fortune.com",offer_games:"38",offer_established:"2016",offer_terms:"https://true-fortune.com/bonus_terms",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Bitcoin Cash, EcoPayz EcoCard, Maestro, MasterCard, Neteller, Skrill Moneybookers, Visa, Wire Transfer",offer_background:"000711"},{offer_id:"843",offer_name:"iWildCasino",offer_bonus:"Welcome Bonus Pack: 260% up to â¬3500 + 270 Free Spins!",offer_domain:"iwildcasino.com",offer_games:"6000",offer_established:"2021",offer_terms:"https://iwildcasino.com/en/page/terms-and-conditions",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Klarna, MasterCard, Visa",offer_background:"210C41"},{offer_id:"855",offer_name:"Shambala Casino",offer_bonus:"Welcome Package â¬500 + 180 Free Spins",offer_domain:"shambalacasino.com",offer_games:"4000",offer_established:"2021",offer_terms:"https://shambalacasino.com/terms-and-conditions",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Neteller, Bitcoin, Neosurf",offer_background:"0E0906"}]),e});case 1:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),__bridge_api=Object.freeze({__proto__:null,fetchOffers:fetchOffers,geoCloudflareLocation:geoCloudflareLocation,getOffersByClientLocation:getOffersByClientLocation,getTermsAndConditions:getTermsAndConditions}),_excluded=["event"],coinsBalanceElement=document.querySelector("[data-element=coins-balance]"),updateCoinsBalance=function(e){var t=e.balanceChange,n=e.questDetails;if(t){var o=(parseInt(coinsBalanceElement.textContent)||0)+t;coinsBalanceElement.textContent=o>999?"999+":o,document.dispatchEvent(new CustomEvent("balanceChanged",{detail:{newBalance:o,balanceChange:t,questDetails:n}}))}},updateQuest=function(e){var t=e.quest,n=e.type;document.dispatchEvent(new CustomEvent("questUpdated",{detail:{quest:t,type:n}}))},redeemReward=function(e){var t=e.event,n=_objectWithoutProperties(e,_excluded);document.dispatchEvent(new CustomEvent(t,{detail:n}))},WEBSOCKET_ENDPOINT="wss://".concat(document.location.host,"/centrifugo/connection/websocket"),CentrifugeManager=function(){return _createClass(function e(){_classCallCheck(this,e),this.client=null,this.token=null,this.userId=document.body.dataset.userId||"",this.channels={balance:"user_balance:#".concat(this.userId),events:"user_events:#".concat(this.userId),quests:"user_quests:#".concat(this.userId),rewards:"user_rewards:#".concat(this.userId)}},[{key:"initialize",value:(o=_asyncToGenerator(_regenerator().m(function e(){var t=this;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.userId&&document.body.dataset.gamificationEnabled){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,this.getToken();case 2:if(this.token=e.v,this.token){e.n=3;break}return e.a(2);case 3:this.client=new Centrifuge(WEBSOCKET_ENDPOINT,{token:this.token,getToken:this.getToken.bind(this),debug:"prod"!==document.body.dataset.websiteEnv}
1),this.subscribeToChannel(this.channels.balance,updateCoinsBalance),this.subscribeToChannel(this.channels.quests,updateQuest),this.subscribeToChannel(this.channels.rewards,redeemReward),this.subscribeToChannel(this.channels.events),this.client.connect(),window.getCentrifugeClient=function(){return t.client},e.n=5;break;case 4:e.p=4,e.v;case 5:return e.a(2)}},e,this,[[1,4]])})),function(){return o.apply(this,arguments)})},{key:"getToken",value:(n=_asyncToGenerator(_regenerator().m(function e(){var t,n,o;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("/api/centrifugo/token");case 1:if((t=e.v).ok){e.n=2;break}throw new Error("Failed to fetch token: ".concat(t.status));case 2:return e.n=3,t.json();case 3:return n=e.v,o=n.token,e.a(2,o);case 4:throw e.p=4,e.v;case 5:return e.a(2)}},e,null,[[0,4]])})),function(){return n.apply(this,arguments)})},{key:"subscribeToChannel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(this.client){var n=this.client.newSubscription(e);n.on("publication",function(e){var n=e.data;return t(n)}),n.subscribe()}}},{key:"publishToChannel",value:(t=_asyncToGenerator(_regenerator().m(function e(t,n){var o;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.client){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,this.client.getSubscription(t);case 2:if(o=e.v){e.n=3;break}return e.a(2);case 3:return e.n=4,o.publish(n);case 4:e.n=6;break;case 5:e.p=5,e.v;case 6:return e.a(2)}},e,this,[[1,5]])})),function(e,n){return t.apply(this,arguments)})},{key:"publishCustomEvent",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n,o=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.n=1,this.publishToChannel(this.channels.events,{type:t,body:n});case 1:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,o}(),centrifugeManager=new CentrifugeManager,__bridge_CentrifugeManager=Object.freeze({__proto__:null,centrifugeManager:centrifugeManager});document.getElementById("alternativePopupWidget");var initOffers=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t,n,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(t=document.body.dataset.geo,n="/api/offers?country=".concat(t,"&sort=true"),(document.location.hostname.includes("kasynoanalyzer")||document.location.hostname.includes("bonosanalyzer"))&&(n="/api/offers?country=".concat(t)),t){e.n=2;break}return e.n=1,geoCloudflareLocation();case 1:t=e.v;case 2:return storage.setGeo(t),storage.setChangedGeo(t),actualStorageDateAndGeo("offersStorageDate")?(o=JSON.parse(localStorage.getItem("keitaro")),offersFunc(o,t)):fetchOffers(n).then(function(e){offersFunc(e,t)}),e.a(2,t)}},e)}));return function(){return e.apply(this,arguments)}}(),offersFunc=function(e,t){Array.isArray(e)&&0!==e.length||(e=[{offer_id:"947",offer_name:"True-Fortune",offer_bonus:"Exclusive Offer â¬25 Free Chip",offer_domain:"true-fortune.com",offer_games:"38",offer_established:"2016",offer_terms:"https://true-fortune.com/bonus_terms",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Bitcoin Cash, EcoPayz EcoCard, Maestro, MasterCard, Neteller, Skrill Moneybookers, Visa, Wire Transfer",offer_background:"000711"},{offer_id:"843",offer_name:"iWildCasino",offer_bonus:"Welcome Bonus Pack: 260% up to â¬3500 + 270 Free Spins!",offer_domain:"iwildcasino.com",offer_games:"6000",offer_established:"2021",offer_terms:"https://iwildcasino.com/en/page/terms-and-conditions",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Klarna, MasterCard, Visa",offer_background:"210C41"},{offer_id:"855",offer_name:"Shambala Casino",offer_bonus:"Welcome Package â¬500 + 180 Free Spins",offer_domain:"shambalacasino.com",offer_games:"4000",offer_established:"2021",offer_terms:"https://shambalacasino.com/terms-and-conditions",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Neteller, Bitcoin, Neosurf",offer_background:"0E0906"}]),storage.setKeitaro(e),document.querySelector('.bonusesPopup[data-type="wheelsExitPopup"]')&&!storage.getWheelsExitPopup()&&(storage.getAlternativeSponsoredOffers()||initSponsoredAlternativePopupOffers(t),_asyncToGenerator(_regenerator().m(function n(){var o,a;return _regenerator().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,import("./chunks/scripts.bundle/wheelsExitPopup-C8warPoQ.js");case 1:o=n.v,a=o.WheelsExitPopup,new a(e,t.toLowerCase(),getLocaleCountry()).exitPopupInit();case 2:return n.a(2)}},n)}))()),document.querySelector('.bonusesPopup[data-type="affLinksPopup"]')&&_asyncToGenerator(_regenerator().m(function n(){var o,a,i;return _regenerator().w(function(n){for(;;)switch(n.n){case 0:if(o=e,storage.getAlternativeSponsoredOffers()){n.n=2;break}return n.n=1,initSponsoredAlternativePopupOffers(t);case 1:(o=n.v)||(o=e);case 2:return n.n=3,Promise.resolve().then(function(){return __bridge_afflinksPopup});case 3:a=n.v,i=a.AffLinksPopup,new i(o.slice(0,3),t.toLowerCase(),getLocaleCountry()).affLinksPopupInit();case 4:return n.a(2)}},n)}))();var n=document.querySelectorAll("[data-issue-type]");
1if(n.length){var o=!1,a=function(e,t){o||(o=!0,n.forEach(function(e){e.removeEventListener("click",a)}),_asyncToGenerator(_regenerator().m(function n(){var o,a,i,r,s;return _regenerator().w(function(n){for(;;)switch(n.n){case 0:return o=e,a=t,n.n=1,import("./chunks/scripts.bundle/issueReportPopup-DJmeyqnn.js");case 1:i=n.v,r=i.IssueReportPopup,(s=new r).init(),s.openPopupButton(o,a);case 2:return n.a(2)}},n)}))())};n.forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation(),a(e,e.currentTarget)})})}var i=document.querySelector("#bonusHeader"),r=document.querySelector("#headerMobBtn");r&&r.addEventListener("click",_asyncToGenerator(_regenerator().m(function n(){var o,a,r,s;return _regenerator().w(function(n){for(;;)switch(n.n){case 0:if(!i){n.n=4;break}if(o=e,!storage.getAlternativeSponsoredOffers()){n.n=1;break}(a=storage.getAlternativeSponsoredOffers()).length&&(o=a),n.n=3;break;case 1:return n.n=2,initSponsoredAlternativePopupOffers(t);case 2:(r=n.v).length&&(o=r);case 3:s=o.length?o[0]:{},""===i.innerHTML&&bonusHeaderRender(i,s),i.classList.add("active"),setTimeout(function(){bonusHeaderAmplitude(s,"addEvents_showBlock","view")},0);case 4:return n.a(2)}},n)})))},bonusHeaderRender=function(e,t){var n,o,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"000000";if("FFFFFF"===e.toUpperCase())return"#".concat(e);e||(e=n),e=e.replace(/^#/,"");var o=parseInt(e.slice(0,2),16)/255,a=parseInt(e.slice(2,4),16)/255,i=parseInt(e.slice(4,6),16)/255,r=Math.max(o,a,i),s=Math.min(o,a,i),c=r-s,l=0,u=0,d=(r+s)/2;if(0!==c){switch(u=c/(1-Math.abs(2*d-1)),r){case o:l=(a-i)/c+(a<i?6:0);break;case a:l=(i-o)/c+2;break;case i:l=(o-a)/c+4}l/=6}return l=Math.round(360*l),u=Math.round(100*u),d=t||Math.round(100*d),"hsl(".concat(l,", ").concat(u,"%, ").concat(d,"%)")},i=a(t.casino.background),r=a(t.casino.background,50),s="best deal";t.sponsored&&(e.classList.add("header__mob-bonus--sponsored"),s="exclusive deal");var c="/redirect?domain=".concat(encodeURIComponent(t.casino.domain),"&bonus=").concat(encodeURIComponent(t.id));e.innerHTML='<div class="header__mob-bonus-label">'.concat(s,'</div>\n <div class="header__mob-bonus-card">\n <a href="').concat(c,'" class="card-row-link" target="_blank" rel="nofollow noopener" aria-label="').concat(t.casino.name,'"></a>\n <div class="header__mob-bonus__main">\n <div class="header__mob-bonus__header">\n <div class="header__mob-bonus__logo" style="background: linear-gradient(220deg, ').concat(i,", ").concat(r,')">\n <img src="').concat(t.casino.logo,'" alt="').concat(t.casino.name,'" title="').concat(t.casino.name,'" class="header__mob-bonus_logo-img" width="124" height="124" loading="lazy">\n </div>\n <p class="header__mob-bonus__title">').concat(t.titleShort,'</p>\n </div>\n <div class="header__mob-bonus__footer">\n <div class="header__mob-bonus__info">\n <img src="/build/midori/assets/icons/modern__coin.svg" alt="Min. dep" class="header__mob-bonus__info-icon">\n \n Min. dep <span class="header__mob-bonus__info-value">').concat(null!==(n=null!==(o=t.depositMinFormatted)&&void 0!==o?o:t.depositMin)&&void 0!==n?n:"No deposit","</span>\n </div>\n ").concat(t.wageringRequirements?'<div class="header__mob-bonus__info"><img src="/build/midori/assets/icons/modern__fire.svg" alt="Wagering" class="header__mob-bonus__info-icon"> Wagering <span class="header__mob-bonus__info-value">'.concat(t.wageringRequirements,"</span>\n </div>"):"","\n </div>\n ").concat(t.sponsored?'<div class="header__mob-bonus__promo">'.concat(getSponsoredTooltip(),"</div>"):"",'\n </div>\n <a class="header__mob-bonus__btn" href="').concat(c,'" target="_blank" rel="nofollow noopener" data-element="bonus_btn">\n <img src="/build/midori/assets/icons/arrow-right.svg" alt="arrow-right">\n </a>\n </div>');var l=e.querySelector(".header__mob-bonus__btn");if(null==l||l.addEventListener("click",function(){centrifugeManager.publishCustomEvent("bonusClicked",{bonusId:t.id,isSponsored:t.sponsored}),setTimeout(function(){bonusHeaderAmplitude(t,"addEvents_clickAffLink","casino_visit")},0)}),t.sponsored){var u=e.querySelector('[data-element="promoTooltip"]');u&&u.addEventListener("click",function(e){e.stopPropagation(),u.classList.toggle("active")})}},getSponsoredTooltip=function(){var e="Featured partner",t="This is a paid promotion. The position you see here is based on our advertising partnership, not the bonus's actual ranking. Learn more about <a href='/affiliate-disclosure' target='_blank'>Transparency and Trust</a>";return document.location.hostname.includes("kasynoanalyzer")?(e="Polecany partner",t="To jest pÅatna promocja. Prezentowana pozycja jest wynikiem wspóÅpracy reklamowej, a nie wynikiem niezależnej oceny bonusów. Dowiedz siÄ wiÄcej o <a href='/ujawnienie-wspolpracy-afiliacyjnej' target='_blank'>zasadach przejrzystoÅci</a>"):document.location.hostname.includes("bonosanalyzer")&&(e="Socio destacado",t="Esta es una promoción de pago. La posición que ves aquà se basa en nuestra relación publicitaria, no en la clasificación real del bono. Obtén más
1información sobre <a href='/divulgacion-de-afiliados' target='_blank'>Transparencia y Confianza</a>"),'<div class="promoCard__tooltip" data-element="promoTooltip"><span class="promoCard__tooltip--title">'.concat(e,' <svg class="icon_info" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 17.5C14.1422 17.5 17.5 14.1423 17.5 10C17.5 5.85775 14.1422 2.5 10 2.5C5.85775 2.5 2.5 5.85775 2.5 10C2.5 14.1422 5.85775 17.5 10 17.5ZM10 16C8.4087 16 6.88257 15.3679 5.75736 14.2426C4.63214 13.1174 4 11.5913 4 10C4 8.4087 4.63214 6.88258 5.75736 5.75736C6.88258 4.63214 8.4087 4 10 4C11.5913 4 13.1174 4.63214 14.2426 5.75736C15.3679 6.88258 16 8.4087 16 10C16 11.5913 15.3679 13.1174 14.2426 14.2426C13.1174 15.3679 11.5913 16 10 16ZM10.75 6.25L9.25 6.25L9.25 7.75L10.75 7.75L10.75 6.25ZM10.75 9.25L9.25 9.25L9.25 13.75L10.75 13.75L10.75 9.25Z" fill="#DBD8D8"></path></svg></span>\n <div class="promoCard__tooltip--text">').concat(t,"</div></div>")},bonusHeaderAmplitude=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,o){var a,i,r,s;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(a=function(){var e=document.body.dataset.routeBonus,t=document.body.dataset.routeId,n=eventID.findIndex(function(t){return t===e}),o=n>-1?eventID[n]:eventID[eventID.length-1],a=document.location.pathname,i=document.location.origin+document.location.pathname,r=document.location.href;return{page_current_path:JSON.stringify(a),page_url:JSON.stringify(i),page_url_full:JSON.stringify(r),page_group:JSON.stringify(o),page_route_id:JSON.stringify(t),website_domain:JSON.stringify(document.location.hostname)}},i=function(e){var t={};return n.includes("clickAffLink")||(t={sponsored:JSON.stringify(e.sponsored),casino_domain_list:JSON.stringify([e.casino.domain]),casino_domain_bonus_id_list:JSON.stringify("".concat(e.casino.domain,"_").concat(e.id)),casino_list_for_geo:JSON.stringify(!1),casino_list_nodeposit_count:JSON.stringify(e.depositMin?0:1),casino_list_nodeposit_position_first:JSON.stringify(e.depositMin?0:1),casino_list_mindeposit_count:JSON.stringify(e.depositMin&&e.depositMin<=10?1:0),casino_list_mindeposit_position_first:JSON.stringify(e.depositMin&&e.depositMin<=10?1:0),casino_list_active_count:JSON.stringify(e.affiliateUrl?1:0),casino_list_active_position_first:JSON.stringify(e.affiliateUrl?1:0),"Ñasino_list_noactive_count":JSON.stringify(e.affiliateUrl?0:1),casino_list_noactive_position_first:JSON.stringify(e.affiliateUrl?0:1),casino_list_bonus_code_count:JSON.stringify(e.affiliateUrl&&e.code?1:0),casino_list_bonus_code_position_first:JSON.stringify(e.affiliateUrl&&e.code?1:0),casino_list_label_count:JSON.stringify(e.label?1:0),casino_list_label_position_first:JSON.stringify(e.label?1:0)}),Object.assign({sponsored:JSON.stringify(e.sponsored),casino_domain:JSON.stringify(e.casino.domain),casino_bonus_title_short:JSON.stringify(e.titleShort?e.titleShort:null),casino_bonus_amount_max:JSON.stringify(e.amountMax&&!isNaN(parseInt(e.amountMax))?parseInt(e.amountMax):0),casino_bonus_percent:JSON.stringify(e.percent?e.percent:0),casino_bonus_expired:JSON.stringify(!!e.expired&&e.expired),casino_bonus_id:JSON.stringify(e.id),casino_domain_bonus_id:JSON.stringify(e.casino.domain+"_"+e.id),casino_afflink_exist:JSON.stringify(!!e.affiliateUrl),casino_bonus_wagering_requirements:JSON.stringify(e.wageringRequirements&&!isNaN(parseInt(e.wageringRequirements))?parseInt(e.wageringRequirements):0),casino_bonus_deposit_min:JSON.stringify(e.depositMin?parseInt(e.depositMin):0),casino_bonus_category:JSON.stringify(Array.isArray(e.bonusCategories)?e.bonusCategories.map(function(e){return e.name}).join(", "):null),casino_bonus_label:JSON.stringify(e.label?e.label:"Not Set"),casino_bonus_type:JSON.stringify(Array.isArray(e.bonusTypes)?e.bonusTypes.map(function(e){return e.name}).join(", "):null),casino_bonus_free_spins:JSON.stringify(e.freeSpins?+e.freeSpins:0),casino_bonus_currency:JSON.stringify(e.currency&&!e.currency.every(function(e){return null===e})?Object.values(e.currency):["Not Set"]),casino_bonus_active:JSON.stringify(!e.affiliateUrl),casino_geo_rating:JSON.stringify(e.score?+e.score.toFixed(1):0),casino_bonus_code:JSON.stringify(e.code?e.code:"Not Set"),casino_bonus_cashable:JSON.stringify(!!e.cashable&&e.cashable)},t)},!n.includes("clickAffLink")){e.n=2;break}return e.n=1,buildExternalId(t.id);case 1:s=e.v,e.n=3;break;case 2:s=null;
1case 3:r=s,dataLayer.push(Object.assign(_objectSpread2(_objectSpread2({event:n},r?{external_id:JSON.stringify(r)}:{}),{},{event_id:"d-v1-e63",event_cat:"w_website_sponsored_bonus_menu",event_name:o}),a(),i(t),utmParams()));case 4:return e.a(2)}},e)}));return function(t,n,o){return e.apply(this,arguments)}}(),initSponsoredAlternativePopupOffers=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r,s,c,l,u;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(o=null,a=document.body.dataset.pageId||null,(i=Array.from(document.querySelectorAll('[data-widget-handler="BonusWidget"]')).find(function(e){return e.querySelector(".table-show-ajax, .table-show-more")}))&&(o=i.dataset.widgetId||null),r=t.toLowerCase(),s=null===(n=storage.getGeo())||void 0===n?void 0:n.toLowerCase(),c="/api/offers?country=".concat(r,"&limit=").concat(3,"&sort=true"),o&&(c+="&sponsored=true&widget_id=".concat(o,"&page_id=").concat(a)),!(l=storage.getAlternativeSponsoredOffers())||s!==r){e.n=1;break}return e.a(2,l);case 1:return storage.setAlternativeSponsoredOffers(null),e.n=2,fetchOffers(c);case 2:return u=e.v,storage.setAlternativeSponsoredOffers(u),storage.setGeo(r),e.a(2,u)}},e)}));return function(t){return e.apply(this,arguments)}}(),AuthGamificationPopup=function(){return _createClass(function e(){var t=this;_classCallCheck(this,e),_defineProperty(this,"credentials",{email:"",password:""}),_defineProperty(this,"userLoginOneTime",storage.getLoginOneTime()),_defineProperty(this,"showAuthBannerOneTime",storage.getShowAuthBanner()),_defineProperty(this,"checkRegistrationVia",storage.getCheckRegistrationVia()),this.clickEmailLoginAmplitude=function(){},this.clickEmailSignupAmplitude=function(){},this.clickGoogleLoginAmplitude=function(){},this.clickGoogleSignupAmplitude=function(){},this.clickGoUpSignUpPopupAmplitude=function(){},this.clickResetPasswordAmplitude=function(){},this.clickSendEmailConfirmPopupAmplitude=function(){},this.loginExistingUserAmplitude=function(){},this.registrationNewUserAmplitude=function(){},this.showBlockEmailConfirmPopupAmplitude=function(){},this.showBlockLoginPopupPasswordAmplitude=function(){},this.showBlockSignUpPopupAmplitude=function(){},this.showBlockSignUpPopupMailAmplitude=function(){},this.showBlockSignUpPopupPasswordAmplitude=function(){},this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.noAmplitudeParam||_asyncToGenerator(_regenerator().m(function e(){var n,o,a,i,r,s,c,l;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,import("./chunks/scripts.bundle/authAmplitude-DHKx_6Lj.js");case 1:(n=e.v).clickEmailSignupAmplitude,n.clickGoogleLoginAmplitude,n.clickGoogleSignupAmplitude,o=n.clickGoUpSignUpPopupAmplitude,a=n.clickResetPasswordAmplitude,i=n.clickSendEmailConfirmPopupAmplitude,r=n.loginExistingUserAmplitude,n.registrationNewUserAmplitude,s=n.showBlockEmailConfirmPopupAmplitude,c=n.showBlockLoginPopupPasswordAmplitude,l=n.showBlockSignUpPopupPasswordAmplitude,t.clickEmailLoginAmplitude=function(){setTimeout(function(){"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)},t.clickEmailSignupAmplitude=function(){setTimeout(function(){"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)},t.clickGoogleLoginAmplitude=function(){setTimeout(function(){"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)}
1,utmParams()))},0)},t.clickGoogleSignupAmplitude=function(){setTimeout(function(){"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)},t.clickGoUpSignUpPopupAmplitude=o,t.clickResetPasswordAmplitude=a,t.clickSendEmailConfirmPopupAmplitude=i,t.loginExistingUserAmplitude=r,t.registrationNewUserAmplitude=function(e,t){"undefined"!=typeof dataLayer&&dataLayer&&("undefined"!=typeof amplitude&&litude.setUserId?amplitude.setUserId(null==e?e:String(e)):"undefined"!=typeof zaraz&&"function"==typeof zaraz.track&&zaraz.set("user_id",e),setTimeout(function(){dataLayer.push(Object.assign({event_id:"".concat(JSON.stringify(e),"_").concat((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(t),reg_placement:JSON.stringify(storage.getRegPlacement("reg_placement")),user_id:JSON.stringify(e),gamification:JSON.stringify(!0),website_domain:JSON.stringify(document.location.hostname)},utmParams()))},0))},t.showBlockEmailConfirmPopupAmplitude=s,t.showBlockLoginPopupPasswordAmplitude=c,t.showBlockSignUpPopupPasswordAmplitude=l;case 2:return e.a(2)}},e)}))()},[{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return __translate(e,getLocaleCountry()||"en",t)||e}},{key:"translateErrorMessage",value:function(e){return e?this.translate(e):""}},{key:"getTermsUrl",value:function(){var e;return(null===(e=document.body)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.termsPath)||"/terms"}},{key:"getPolicyUrl",value:function(){var e;return(null===(e=document.body)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.privacyPath)||"/privacy"}},{key:"getCheckEmailText",value:function(){var e=this.translate("Click on the link we sent to %%email%% to finish your account setup. Wrong email?");return"".concat(e.replace("%%email%%",this.credentials.email),' <a class="update" id="authEmailUpdateEmail">').concat(this.translate("Click here to update it"),"</a>")}},{key:"generateMainHTML",value:(o=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:t='\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">'.concat(this.translate("Earn coins daily and exchange them for rewards!"),'</h3>\n \n <div class="condition_options-box">\n \t<div class="option">
1\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">').concat(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">').concat(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">').concat(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">').concat(this.translate("Continue with E-mail"),'</span>\n\t </button> \n\t <p class="accepts">\n\t ').concat(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",t),this.emailStepClick(),this.closeClick(),this.questsPopupReturnClick(),this.scrollUpClick(),this.showBlockSignUpPopupAmplitude(),this.googleSignupTrackClick(document.getElementById("authGoogle")),this.emailSignupTrackClick(document.getElementById("authEmailButton")),this.loadRecaptchaScript();case 1:return e.a(2)}},e,this)})),function(){return o.apply(this,arguments)})},{key:"generateEmailStepHTML",value:function(){var e='\n <div class="auth_popup" id="authPopup">\n <div class="auth_popup-box-full">\n <button class="auth_popup-return" id="authReturnTo">
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_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">'.concat(this.translate("Whatâs your e-mail?"),'</h2>\n\n <input id="authEmailInput" class="input" type="email" placeholder="').concat(this.translate("E-mail"),'" />\n <span id="authEmailError" class="error"></span>\n \n ').concat(this.userLoginOneTime?"":'<div id="authRecaptcha" class="recaptcha"></div>','\n \n <button id="authEmailContinueButton" class="continue_button">').concat(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 ').concat(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",e),!this.userLoginOneTime&&this.callRecaptcha(),this.emailContinueClick(),this.closeClick(),this.returnToClick(document.getElementById("authReturnTo"),"mainHTML"),this.showBlockSignUpPopupMailAmplitude(),this.googleSignupTrackClick(document.getElementById("authGoogle"))}},{key:"generateCreatePasswordStepHTML",value:function(){var e='\n <div class="auth_popup" id="authPopup">\n <div class="auth_popup-box-full">\n <button class="auth_popup-return" id="authReturnTo">
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_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">'.concat(this.translate("Create password"),'</h2>\n <p class="text">').concat(this.translate("Make sure it contains 8+ characters"),'</p>\n <div class="input_box">\n <input id="authPasswordCreateInput" class="input" type="password" placeholder="').concat(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>
1\n <span id="authPasswordCreateError" class="error"></span>\n <button id="authPasswordCreateContinueButton" class="continue_button">').concat(this.translate("Continue"),"</button>\n </div>\n </div> \n </div>\n ");document.body.insertAdjacentHTML("beforeend",e),this.closeClick(),this.passwordCreateContinueClick(),this.passwordShowClick(document.getElementById("authPasswordCreateInput")),this.returnToClick(document.getElementById("authReturnTo"),"emailStepHTML"),this.showBlockSignUpPopupPasswordAmplitude()}},{key:"generateEnterPasswordStepHTML",value:function(){var e='\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">'.concat(this.translate("Enter your password"),'</h2>\n <div class="input_box">\n <input id="authPasswordEnterInput" class="input" type="password" placeholder="').concat(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>
1\n <span id="authPasswordEnterError" class="error"></span>\n <button id="authPasswordEnterContinueButton" class="continue_button">').concat(this.translate("Continue"),'</button>\n\n <p class="text_bottom">\n ').concat(this.translate("Forgot your password?"),' <a class="resend" id="authPasswordResetLink">').concat(this.translate("Send a reset link"),"</a>\n </p>\n </div>\n </div> \n </div>\n ");document.body.insertAdjacentHTML("beforeend",e),this.closeClick(),this.passwordEnterContinueClick(),this.passwordShowClick(document.getElementById("authPasswordEnterInput")),this.returnToClick(document.getElementById("authReturnTo"),"emailStepHTML"),this.sendResetPasswordClick(document.getElementById("authPasswordResetLink")),this.showBlockLoginPopupPasswordAmplitude()}},{key:"generateCheckYourEmailStepHTML",value:function(){var e='\n <div class="auth_popup" id="authPopup">\n <div class="auth_popup-box-full">\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 <img class="image" alt="Email Send" src="/build/midori/img/auth/auth-email.png" />\n <h2 class="title title_email">'.concat(this.translate("Check your email"),'</h2>\n <p class="text text_email">\n ').concat(this.getCheckEmailText(),'\n </p>\n <p class="text_bottom">\n ').concat(this.translate("No e-mail in your inbox or spam folder?"),' <a class="resend" id="authEmailConfirmLink">').concat(this.translate("Letâs resend it"),"</a>\n </p>\n </div>\n </div> \n </div>\n ");document.body.insertAdjacentHTML("beforeend",e),this.closeClick(),this.sendConfirmEmailClick(document.getElementById("authEmailConfirmLink")),this.returnToClick(document.getElementById("authEmailUpdateEmail"),"emailStepHTML"),this.showBlockEmailConfirmPopupAmplitude()}},{key:"remove",value:function(){var e=document.getElementById("authPopup");e&&e.remove()}},{key:"emailStepClick",value:function(){var e=this,t=document.getElementById("authEmailButton");t&&t.addEventListener("click",function(){e.remove(),e.generateEmailStepHTML()})}},{key:"emailContinueClick",value:function(){var e=this,t=document.getElementById("authEmailContinueButton"),n=document.getElementById("authEmailInput");t&&t.addEventListener("click",function(){e.emailValidation(n.value).success&&e.verifiedRecaptcha().success?(e.credentials.email=n.value,e.selectGeneratedHTMLWindowByEmailExists(n.value).then(function(e){return e})):document.getElementById("authEmailError").textContent=e.emailValidation(n.value).success?e.verifiedRecaptcha().error:e.emailValidation(n).error})}},{key:"passwordCreateContinueClick",value:function(){var e=this,t=document.getElementById("authPasswordCreateContinueButton"),n=document.getElementById("authPasswordCreateInput"),o=document.getElementById("authPasswordCreateError");t&&t.addEventListener("click",function(){e.passwordCreateValidation(n.value).length?o.textContent=e.passwordCreateValidation(n.value):(e.credentials.password=n.value,e.remove(),e.signUpRedirectQuery(o).then(function(e){return e}))})}},{key:"passwordEnterContinueClick",value:function(){var e=this,t=document.getElementById("authPasswordEnterContinueButton"),n=document.getElementById("authPasswordEnterInput"),o=document.getElementById("authPasswordEnterError");t&&t.addEventListener("click",function(){n.value?(e.credentials.password=n.value,e.signInRedirectQuery(o).then(function(e){return e})):o.textContent=e.passwordCreateValidation(n.value)})}},{key:"closeClick",value:function(){var e=document.getElementById("authClose"),t=document.getElementById("authPopup");e&&e.addEventListener("click",function(){t.remove()})}},{key:"questsPopupReturnClick",value:function(){var e=document.getElementById("questsPopupReturn"),t=document.querySelector(".questPopup__authPopup");e&&e.addEventListener("click",function(){setTimeout(function(){t.remove(),document.dispatchEvent(new CustomEvent("questsPopupReturnElement"))},200)})}},{key:"scrollUpClick",value:function(){var e=this,t=document.getElementById("authPopupBox"),n=document.getElementById("authScrollTopButton");n&&n.addEventListener("click",function(){t.scrollTo({top:0,behavior:"smooth"}),e.clickGoUpSignUpPopupAmplitude()})}},{key:"callPopupByBonusBannerClick",value:function(){var e=this,t=document.getElementsByClassName("authSignupBonusListButton");Array.from(t).forEach(function(t){t.addEventListener("click",function(){e.generateMainHTML().then()})})}},{key:"successMessageGenerateHTML",value:function(){var e='\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">'.concat(this.translate("Email has been sent"),"</p>\n </div>\n </div>\n ");document.body.insertAdjacentHTML("beforeend",e);var t=document.getElementById("successMessage");t.style.animation="show 0.5s forwards ease-in-out",this.hideSuccessMessage(t)}},{key:"callRecaptcha",value:function(){window.grecaptcha?grecaptcha.ready(function(){grecaptcha.render("authRecaptcha",{sitekey:"6LcLHaYnAAAAAFuDmqE4Tx_LHJNCaFZj3jteQ3de"})}):setTimeout(this.callRecaptcha,100)}},{key:"googleSignupTrackClick",value:function(e){var t=this;e.addEventListener("click",function(){t.userLoginOneTime?t.clickGoogleLoginAmplitude():t.clickGoogleSignupAmplitude(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),t.removeTrackEntryTypeStorage()})}},{key:"removeTrackEntryTypeStorage",value:function(){storage.getTrackEntryType()&&storage.removeTrackEntryType()}},{key:"emailSignupTrackClick",value:function(e){var t=this;e.addEventListener("click",function(){t.userLoginOneTime?t.clickEmailLoginAmplitude():t.clickEmailSignupAmplitude()})}},{key:"verifiedRecaptcha",value:function(){return this.userLoginOneTime?{success:!0}:0===grecaptcha.getResponse().length?{error:this.translate("Recaptcha not checked"),success:!1}:{success:!0}}},{key:"hideSuccessMessage",value:function(e){setTimeout(function(){e.remove()},2e3)}},{key:"timerToSendAgain",value:function(e,t){var n=10,o=setInterval(function(){var a=Math.floor(n/60),i=n%60;e.textContent="".concat(String(a).padStart(2,"0"),":").concat(String(i).padStart(2,"0")),e.style.pointerEvents="none",n<0&&(clearInterval(o),e.textContent=t,e.style.pointerEvents="all"),n--},1e3)}},{key:"sendResetPasswordClick",value:function(e){var t=this;e.addEventListener("click",_asyncToGenerator(_regenerator().m(function n(){return _regenerator().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,sendResetPasswordLink(t.credentials.email);case 1:n.v.sendReset&&(t.timerToSendAgain(e,t.translate("Send a reset link")),t.successMessageGenerateHTML(),t.clickResetPasswordAmplitude());case 2:return n.a(2)}},n)})))}},{key:"sendConfirmEmailClick",value:function(e){var t=this;e.addEventListener("click",_asyncToGenerator(_regenerator().m(function n(){return _regenerator().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,sendConfirmEmailLink(t.credentials.email);case 1:n.v.sendConfirmEmail&&(t.timerToSendAgain(e,t.translate("Letâs resend it")),t.successMessageGenerateHTML(),t.clickSendEmailConfirmPopupAmplitude());case 2:return n.a(2)}},n)})))}},{key:"returnToClick",value:function(e,t){var n=this;e&&e.addEventListener("click",function(){n.remove(),n.generateHTMLAdapter(t)})}},{key:"signInRedirectQuery",value:(n=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return storage.getGoogleOneTap()&&storage.removeGoogleOneTap(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),e.n=1,signIn(this.credentials.email,this.credentials.password);case 1:if(!(o=e.v).signIn){e.n=2;break}return a=new URL(window.location.href),(i=new URLSearchParams(a.search)).set("logged_in","true"),a.search=i.toString(),this.loginExistingUserAmplitude(o.userId),e.a(2,window.location.href=a.toString());case 2:return o&&o.errors&&"false_confirm"===o.errors.email&&(this.remove(),this.generateCheckYourEmailStepHTML()),t.textContent=this.translateErrorMessage(o.error?o.error:null==o||null===(n=o.errors)||void 0===n?void 0:n.password),e.a(2,!1)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"signUpRedirectQuery",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var n,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return storage.getGoogleOneTap()&&storage.removeGoogleOneTap(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),e.n=1,signUp(this.credentials.email,this.credentials.password,"gamificationPopup");case 1:if(!(o=e.v).signUp){e.n=2;break}return this.registrationNewUserAmplitude(o.userId,"email"),this.showBlockSignUpPopupAmplitude(),this.generateCheckYourEmailStepHTML(),e.a(2,!0);case 2:return t.textContent=this.translateErrorMessage(null==o||null===(n=o.errors)||void 0===n?void 0:n.password),e.a(2,!1)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"passwordShowClick",value:function(e){var t=document.getElementById("authPasswordShow");t&&t.addEventListener("click",function(){e.type="password"===e.type?"input":"password"})}},{key:"emailValidation",value:function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{success:!0}:{error:this.translate("Invalid email format. Please try again"),success:!1}}},{key:"passwordCreateValidation",value:function(e){return 0===e.length?this.translate("Password cannot be empty. Please try again"):!!/^.{8,}$/.test(e)||this.translate("Password must be 8 characters or longer. Please try again")}},{key:"selectGeneratedHTMLWindowByEmailExists",value:(e=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,checkEmailExists(t);case 1:e.v.email?(this.remove(),this.generateEnterPasswordStepHTML()):(this.remove(),this.generateCreatePasswordStepHTML());case 2:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"generateHTMLAdapter",value:function(e){return{mainHTML:this.generateMainHTML,emailStepHTML:this.generateEmailStepHTML,createPasswordStep:this.generateCreatePasswordStepHTML}[e].call(this)}},{key:"loadRecaptchaScript",value:function(){if(!document.querySelector('script[src="https://www.google.com/recaptcha/api.js"]')){var e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js",e.async=!0,e.defer=!0,document.head.appendChild(e)}}},{key:"showBannerBySpecialTime",value:function(e){var t=this,n=(new Date).toISOString();setTimeout(function(){var e=document.getElementById("authPopup"),o=document.querySelector(".bonusesPopup[data-type=wheelsExitPopup].show");o&&storage.setShowAuthWheels(!0),t.showAuthBannerOneTime||t.checkReg
1istrationVia||null!==e||o||(storage.setRegistrationViaAmplitude("reg_popup"),t.generateMainHTML().then(function(e){return e}),storage.setShowAuthBanner(n))},e),window.addEventListener("beforeunload",function(){if(t.showAuthBannerOneTime){var e=new Date(t.showAuthBannerOneTime),n=new Date;e.getDate()!==n.getDate()&&storage.removeShowAuthBanner()}})}}]);var e,t,n,o}(),authGamificationPopup=new AuthGamificationPopup,BonusCoinsPopup=function(){return _createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"tables",document.querySelectorAll('[data-element="bonus_table"], [data-element="bonus_table-eeat"]')),_defineProperty(this,"storageFirstCoinTooltip",localStorage.getItem("storageFirstCoinTooltip")),_defineProperty(this,"storageConvertPopupShown",localStorage.getItem("storageConvertPopupShown")),_defineProperty(this,"user",document.body.dataset.userId)},[{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return __translate(e,getLocaleCountry()||"en",t)||e}},{key:"init",value:function(){var e=this;this.tables.forEach(function(t){var n=t.querySelectorAll('[data-element="card-td-coin"]');n.length&&(e.storageFirstCoinTooltip?e.coinsDefaultStyles():e.showFirstTooltip(n[0]),e.handleCoinsHoverClick(n),e.handleDOM())})}},{key:"showFirstTooltip",value:function(e){var t=e.querySelector('[data-element="bonusCoin__tooltip"]');t.classList.add("bonusCoin__tooltip--first"),this.tooltipShow(t)}},{key:"handleCoinsHoverClick",value:function(e){var t=this;e.forEach(function(e){return t.handleCoinHoverClick(e)})}},{key:"handleCoinHoverClick",value:function(e){var t=this,n=e.querySelector('[data-element="bonusCoin__tooltip"]'),o=e.closest('[data-element="bonus_table_row"], [data-element="bonus-card"]');e.addEventListener("mouseenter",function(e){e.stopPropagation(e),t.isFirstShownTooltip(e,o),isDesktop()&&(t.isFirstShownTooltip(e,o),t.tooltipShow(n))}),e.addEventListener("mouseleave",function(e){e.stopPropagation(e),isDesktop()&&t.tooltipHide(n)}),e.addEventListener("click",function(e){e.stopPropagation(e),t.isFirstShownTooltip(e,o),!isDesktop()&&t.tooltipToggle(n)})}},{key:"isFirstShownTooltip",value:function(e,t){var n=document.querySelector(".bonusCoin__tooltip--first");n&&(n.classList.remove("bonusCoin__tooltip--first"),n.classList.remove("bonusCoin__tooltip--show"),localStorage.setItem("storageFirstCoinTooltip",JSON.stringify(!0))),this.storageConvertPopupShown||"click"!==e.type&&(isDesktop()||"mouseenter"!==e.type)||(this.user?this.showConvertPopup(t):authGamificationPopup.generateHTMLAdapter("mainHTML"))}},{key:"tooltipToggle",value:function(e){e.classList.toggle("bonusCoin__tooltip--show")}},{key:"tooltipShow",value:function(e){e.classList.add("bonusCoin__tooltip--show")}},{key:"tooltipHide",value:function(e){e.classList.remove("bonusCoin__tooltip--show")}},{key:"handleDOM",value:function(){var e=this;document.addEventListener("click",function(){var t=document.querySelector(".bonusCoin__tooltip--show:not(.bonusCoin__tooltip--first)");t&&e.tooltipHide(t)}),window.addEventListener("scroll",function(){var t=document.querySelector(".bonusCoin__tooltip--show:not(.bonusCoin__tooltip--first)");t&&e.tooltipHide(t)})}},{key:"showConvertPopup",value:function(e){this.renderConvertPopup(e),localStorage.setItem("storageConvertPopupShown",JSON.stringify(!0)),this.storageConvertPopupShown=localStorage.getItem("storageConvertPopupShown"),this.coinsDefaultStyles()}},{key:"renderConvertPopup",value:function(e){var t,n,o=this,a=null==e||null===(t=e.dataset)||void 0===t?void 0:t.domain,i=null==e||null===(n=e.dataset)||void 0===n?void 0:n.bonus,r=a&&i?"/redirect?domain=".concat(encodeURIComponent(a),"&bonus=").concat(encodeURIComponent(i)):null,s=document.createElement("div");s.className="bonusCoinPopup__wrapper",s.id="convertPopup",document.body.appendChild(s);var c=document.createElement("div");c.className="bonusCoinPopup__block",s.appendChild(c);var l=document.createElement("div");l.className="bonusCoinPopup__coin",l.innerHTML='<img src="/build/midori/assets/icons/icons_264.svg#coin" alt="" aria-hidden="true" width="90" height="90">',c.appendChild(l);var u=document.createElement("button");u.className="bonusCoinPopup__close",u.innerHTML='<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7266_21124)"><path d="M14 12.3504L19.775 6.57544L21.4247 8.22511L15.6496 14.0001L21.4247 19.7751L19.775 21.4248L14 15.6498L8.22498 21.4248L6.57532 19.7751L12.3503 14.0001L6.57532 8.22511L8.22498 6.57544L14 12.3504Z" fill="#DBD8D8"/></g><defs><clipPath id="clip0_7266_21124"><rect width="28" height="28" fill="white"/></clipPath></defs></svg>',u.addEventListener("click",function(e){e.stopPropagation(),o.removeConvertPopup()}),c.appendChild(u);var d=document.createElement("p");d.className="bonusCoinPopup__title",d.innerHTML=this.translate("Earn extra coins!"),c.appendChild(d);var p=document.createElement("p");p.className="bonusCoinPopup__description",p.innerHTML=this.translate("Activate bonuses on selected Casinos and get rewarded. Verification takes 3â30 minutes â rewards arrive even if you leave Casinos Analyzer."),c.appendChild(p);var h=document.createElement(r?"a":"button");h.className="bonusCoinPopup__btn",h.innerHTML=this.translate("Play now"),r?(h.href=r,h.target="_blank",h.rel="nofollow noopener",h.dataset.element="bonus_btn",h.addEventListener("click",function(){o.trackBonusClick(e),o.removeConvertPopup()})):h.type="button",c.appendChild(h),document.body.classList.add("popupShown")}},{key:"removeConvertPopup",value:function(){var e=document.querySelector("#convertPopup");
1e&&e.remove(),document.body.classList.remove("popupShown");var t=document.querySelector(".bonusCoin__tooltip--show");t&&t.classList.remove("bonusCoin__tooltip--show")}},{key:"trackBonusClick",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=null==t?void 0:t.querySelector('a[data-element="bonus_btn"][href^="/redirect?"], a.card-row-link[href^="/redirect?"], button[data-element="bonus_btn"]')){e.n=1;break}return e.a(2);case 1:if(null==t||!t.matches('[data-element="bonus-card"]')){e.n=3;break}return e.n=2,import("./chunks/scripts.bundle/CasinoBonusEEAT-CBzNKjtp.js");case 2:o=e.v,null==(a=o.casinoBonusEEAT)||a.amplitudeClickAffLink(n),e.n=5;break;case 3:return e.n=4,import("./chunks/scripts.bundle/CasinoBonusTable-DcoEHa3L.js");case 4:new(0,e.v.default)({skipInit:!0}).amplitudeClickAffLink(n);case 5:return e.a(2)}},e)})),function(t){return e.apply(this,arguments)})},{key:"coinsDefaultStyles",value:function(){this.tables.forEach(function(e){var t=e.querySelectorAll('[data-element="card-td-coin"]');t.length&&t.forEach(function(e){e.classList.add("cursor--default")})})}}]);var e}(),bonusCoins=new BonusCoinsPopup,TelegramRegistrationPopup=function(){return _createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"setAmplitudeParams",function(e,t,n){var o=["p_bonus_spin_n","p_bonus_amount","p_bonus_casino","p_bonus_category","p_bonus_country","p_bonus_percent","p_casino_category","p_casino_city","p_casino_country","p_casino_state_usa","p_casino_currency","p_casino_deposit_low","p_casino_payment","p_casino","p_casino_slot_soft","p_game_category","p_slot_category","p_slot","p_slot_payline","p_blog_category","p_blog_article","p_website_category","p_similar_casinos","p_software_bonuses","p_website_page","p_profile_rewards","p_profile_shop","p_home","p_promo_codes_category","p_other"],a=document.body.dataset.routeBonus,i=o.findIndex(function(e){return e===a}),r=i>-1?o[i]:o[o.length-1],s=document.location.href,c={page_url:JSON.stringify(document.location.origin+document.location.pathname),page_url_full:JSON.stringify(s),page_route_id:JSON.stringify(document.body.dataset.routeId),page_current_path:JSON.stringify(document.location.pathname),page_group:JSON.stringify(r),website_domain:JSON.stringify(document.location.hostname),website_country:JSON.stringify(document.body.dataset.geo)};window.dataLayer=window.dataLayer||[],dataLayer.push(Object.assign({event:"addEvents_".concat(e),event_id:"d-v1-e1",event_cat:t,event_name:n}
1,c,"function"==typeof utmParams?utmParams():{}))}),this.LINKS={CA:"https://t.me/+zCPotOu2rdY3Yjli",AU:"https://t.me/+zH63rA1jH104ZGMy",DE:"https://t.me/+PoEMVJzfZ80xMDFi",NZ:"https://t.me/+z7LfqODt3SM0Mjg6",DEFAULT:"https://t.me/+zl4s9di40CMyZDli"}},[{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return __translate(e,getLocaleCountry()||"en",t)||e}},{key:"init",value:function(){this.showPopup()}},{key:"getLinkByGEO",value:function(){var e=storage.getGeoFact()?storage.getGeoFact().toUpperCase():storage.getGeo().toUpperCase();return this.LINKS[e]||this.LINKS.DEFAULT}},{key:"showPopup",value:function(){var e=document.body.dataset.userId,t=storage.getTgRegPopup();e&&!t&&(this.renderPopup(),this.setAmplitudeParams("showBlock","w_website_telegramPopup","view"))}},{key:"renderPopup",value:function(){var e=document.createElement("div");e.id="bonusVault",e.className="bonus-vault active",e.innerHTML='<div class="bonus-vault__inner">\n <a class="bonus-vault__close-btn js-bonus-vault__close">\n <svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect x="0.5" y="0.5" width="43" height="43" rx="11.5" stroke="white" stroke-opacity="0.4"/>\n <g clip-path="url(#clip0_6206_44597)">\n <path d="M22 20.586L26.95 15.636L28.364 17.05L23.414 22L28.364 26.95L26.95 28.364L22 23.414L17.05 28.364L15.636 26.95L20.586 22L15.636 17.05L17.05 15.636L22 20.586Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_6206_44597">\n <rect width="24" height="24" fill="white" transform="translate(10 10)"/>\n </clipPath>\n </defs>\n </svg>\n </a>\n <div class="bonus-vault__inner-bg">\n <img src="https://casinoanalyser.com/cdn/communityElements/tg-background.webp" alt="" aria-hidden="true">\n </div>\n <div class="bonus-vault__content">\n <div class="bonus-vault__header">\n <div class="bonus-vault__title">'.concat(this.translate("VIP Bonus Vault!"),'</div>\n <div class="bonus-vault__subtitle">\n ').concat(this.translate("Daily Exclusive Offers Right In Our Channel!"),'\n </div>\n </div>\n <div class="bonus-vault__days">\n <div class="bonus-vault__day day--yesterday">\n <img class="day__icon" src="https://casinosanalyzer.com/cdn/communityElements/icon-yesterday.webp" alt="" aria-hidden="true">\n <p class="day__title">').concat(this.translate("Yesterday"),'</p>\n <p class="day__bonus">50 ').concat(this.translate("Telegram Free Spins"),'</p>\n </div>\n <div class="bonus-vault__day day--today">\n <img class="day__icon" src="https://casinosanalyzer.com/cdn/communityElements/icon-today.webp" alt="" aria-hidden="true">\n <p class="day__title">').concat(this.translate("Today"),'</p>\n <p class="day__bonus">$100 ').concat(this.translate("Telegram Free Chip"),'</p>\n </div>\n <div class="bonus-vault__day day--tomorrow">\n <img class="day__icon" src="https://casinosanalyzer.com/cdn/communityElements/icon-tomorrow.webp" alt="" aria-hidden="true">\n <p class="day__title">').concat(this.translate("Tomorrow"),'</p>\n <p class="day__bonus">$100K Jackpot</p>\n </div>\n </div>\n <div class="bonus-vault__progress-bar">\n <div class="progress-bar">\n <div class="progress-bar__track">\n <div class="progress-bar__fill"></div>\n </div>\n <div class="progress-bar__dot progress-bar__dot--start"></div>\n <div class="progress-bar__dot progress-bar__dot--active"></div>\n <div class="progress-bar__dot progress-bar__dot--end"></div>\n </div>\n </div>\n <a href="').concat(this.getLinkByGEO(),'" target="_blank" class="bonus-vault__cta">\n <img src="https://casinoanalyser.com/cdn/communityElements/tg-icon.webp" alt="" aria-hidden="true" class="bonus-vault__cta-icon">
1\n <span class="bonus-vault__cta-text">').concat(this.translate("Join Telegram and Claim Bonus"),"</span>\n </a>\n </div>\n </div>"),document.body.append(e),document.body.classList.add("popupShown"),this.popupActions()}},{key:"popupActions",value:function(){var e=this,t=document.getElementById("bonusVault"),n=document.querySelector(".js-bonus-vault__close"),o=document.querySelector(".bonus-vault__cta");t&&n&&o&&(n.addEventListener("click",function(){t.classList.remove("active"),document.body.classList.remove("popupShown"),storage.setTgRegPopup(JSON.stringify(!0));var e=new CustomEvent("localStorageChange",{detail:{setTgRegPopup:!0}});window.dispatchEvent(e)}),o.addEventListener("click",function(){setTimeout(function(){e.setAmplitudeParams("click","w_website_telegram_Popup","join")},0),t.classList.remove("active"),document.body.classList.remove("popupShown"),storage.setTgRegPopup(JSON.stringify(!0));var n=new CustomEvent("localStorageChange",{detail:{setTgRegPopup:!0}});window.dispatchEvent(n)}))}}])}(),tgRegPopup=new TelegramRegistrationPopup,ReactionsFeedbackPopup=function(){return _createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"DOMAIN_NAME",getDomainName()),_defineProperty(this,"REACTIONS",[])},[{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return __translate(e,getLocaleCountry()||"en",t)||e}},{key:"init",value:function(){var e=this;"casinosanalyzer.com"===this.DOMAIN_NAME&&(this.getBonusEventHistory(),window.addEventListener("localStorageChange",function(t){t.detail.setTgRegPopup&&e.getBonusEventHistory()}))}},{key:"shouldShowPopup",value:function(){var e=document.body.dataset.userId,t=this.isAnotherPopupShown(),n=storage.getReactionsFeedbackPopup(),o=(new Date).toDateString();return e&&n!==o&&!t}},{key:"isAnotherPopupShown",value:function(){var e=document.getElementById("bonusVault");if(e&&e.classList.contains("active"))return!0}},{key:"markPopupShown",value:function(){var e=(new Date).toDateString();storage.setReactionsFeedbackPopup(e)}},{key:"getBonusEventHistory",value:(n=_asyncToGenerator(_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!this.shouldShowPopup()){e.n=3;break}return e.n=1,fetch("/api/bonus-event-history");case 1:return t=e.v,e.n=2,t.json();case 2:(n=e.v).bonuses.length&&(this.renderPopup(n),this.markPopupShown());case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.a(2)}},e,this,[[0,4]])})),function(){return n.apply(this,arguments)})},{key:"renderPopup",value:function(e){var t=this,n=document.createElement("div");n.className="reactionsFeedbackPopup__wrapper",n.dataset.element="reactionsFeedbackPopup";var o=document.createElement("div");o.className="reactionsFeedbackPopup__popup",o.addEventListener("click",function(e){return e.stopPropagation()}),n.append(o);var a=document.createElement("button");a.className="reactionsFeedbackPopup__close",a.innerHTML='<img src="/build/midori/assets/icons/close--line.svg" alt="" aria-hidden="true" width="24" height="24">',a.addEventListener("click",function(e){e.stopPropagation(),n.remove(),t.setPendingReactions(o),document.body.classList.remove("popupShown")}),o.append(a);var i=document.createElement("p");i.className="reactionsFeedbackPopup__title",i.innerHTML=this.translate("Did the bonuses work for you?"),o.append(i);var r=document.createElement("p");r.className="reactionsFeedbackPopup__description",r.dataset.element="reactionsFeedbackPopupDescription",r.innerHTML=this.isPopupWithCoins()?"".concat(this.translate("Share your experience to help others"),' <img src="/build/midori/assets/icons/coin.svg" alt="" aria-hidden="true" width="24" height="24"> <span class="reactionsFeedbackPopup__description--coin">+20</span>'):this.translate("Share your experience to help others"),o.append(r);var s=document.createElement("form");s.className="reactionsFeedbackPopup__items",o.append(s),e.bonuses.forEach(function(e,n){s.append(t.renderFeedback(e,n))});var c=document.createElement("div");c.className="reactionsFeedbackPopup__btn",c.dataset.element="reactionsFeedbackPopupBtn",c.innerHTML=this.isPopupWithCoins()?"".concat(this.translate("Submit and get"),' <img src="/build/midori/assets/icons/coin.svg" alt="" aria-hidden="true" width="24" height="24"> <span class="reactionsFeedbackPopup__btn--coin">+20</span>'):this.translate("Submit"),c.addEventListener("click",this.formSubmit.bind(this)),o.append(c),document.body.append(n),document.body.classList.add("popupShown"),document.body.addEventListener("click",function(){var e=document.querySelector('[data-element="reactionsFeedbackPopup"]');e&&(t.setPendingReactions(o),e.remove(),document.body.classList.remove("popupS
1hown"))})}},{key:"renderFeedback",value:function(e,t){var n=this,o=document.createElement("div");o.className="reactionsFeedbackPopupItem",o.dataset.id=e.id,o.dataset.domain=e.domain,o.dataset.titleShort=e.title_short;var a=document.createElement("div");a.className="reactionsFeedbackPopupItem__header",o.append(a);var i=document.createElement("div");i.className="reactionsFeedbackPopupItem__logo";var r=e.logo?e.logo:"/build/".concat(document.body.dataset.templateName,"/img/logo__default.svg"),s=this.getCardLogoStyle(e.background);i.innerHTML='<div class="card__logo" style="'.concat(s,'">\n <img srcset="').concat(e.logo.replace(".webp",".r80.webp")," 320w, ").concat(e.logo.replace(".webp",".r124.webp"),' 768w"\n src="').concat(r,'"\n alt="').concat(e.name,'" title="').concat(e.name,'"\n class="card-logo-image"\n width="124"\n height="124"\n loading="lazy">\n </div>'),a.append(i);var c=document.createElement("div");c.className="reactionsFeedbackPopupItem__content",a.append(c);var l=document.createElement("div");l.className="reactionsFeedbackPopupItem__name",l.innerHTML=e.name,c.append(l);var u=document.createElement("div");u.className="reactionsFeedbackPopupItem__title",u.innerHTML=e.title_short,c.append(u);var d=document.createElement("div");return d.className="reactionsFeedbackPopupItem__body",o.append(d),[{type:"like",value:1,icon:"/build/midori/assets/icons/modern.svg#like",label:"like"},{type:"dislike",value:-1,icon:"/build/midori/assets/icons/modern.svg#dislike",label:"dislike"},{type:"skip",value:0,label:this.translate("Skip")}].forEach(function(t){var o=t.type,a=t.value,i=t.icon,r=t.label,s=document.createElement("div");s.className="reactionsFeedbackPopupItem__action reactionsFeedbackPopupItem__action--".concat(o);var c="".concat(o,"_").concat(e.id),l=i?'<img src="'.concat(i,'" alt="" aria-hidden="true" width="16" height="16">'):r;s.innerHTML='\n\t\t <input id="'.concat(c,'" type="radio" name="reaction_').concat(e.id,'" value="').concat(o,'">\n\t\t <label for="').concat(c,'">').concat(l,"</label>\n\t\t "),s.querySelector("input").addEventListener("change",function(){n.formActivation({bonus_id:e.id,reaction:a})}),d.append(s)}),o}},{key:"formActivation",value:function(e){var t=this.REACTIONS.findIndex(function(t){return t.bonus_id===e.bonus_id});-1!==t?this.REACTIONS[t]=e:this.REACTIONS.push(e);var n=document.querySelector('[data-element="reactionsFeedbackPopupBtn"]');this.REACTIONS.length&&(n.classList.contains("active")||n.classList.add("active"))}},{key:"formSubmit",value:(t=_asyncToGenerator(_regenerator().m(function e(){var t,n,o,a=this;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,t=document.querySelector('[data-element="reactionsFeedbackPopup"]'),(n=document.querySelector('[data-element="reactionsFeedbackPopupBtn"]')).classList.add("loading"),o=this.isPopupWithCoins()?"?source=bonus_reaction_popup":"",t.querySelectorAll(".reactionsFeedbackPopupItem").forEach(function(e,t){e.querySelectorAll(".reactionsFeedbackPopupItem__action input:checked").length||a.REACTIONS.push({bonus_id:+e.dataset.id,reaction:2})}),e.n=1,fetch("/api/bonus-reactions/store".concat(o),{method:"POST",body:JSON.stringify(this.REACTIONS),headers:{"Content-Type":"application/json"}});case 1:this.setAmplitudeEvent(),n.classList.remove("loading"),t&&(t.remove(),document.body.classList.remove("popupShown"),this.setShownPopupCount(),this.getBadge()),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,this,[[0,2]])})),function(){return t.apply(this,arguments)})},{key:"getCardLogoStyle",value:function(e){if("FFFFFF"===e)return"border: 1px solid #DBD8D8;";var t=this.hexToHsl(e),n=this.hexToHsl(e,50);return" background: linear-gradient(220deg, ".concat(t,", ").concat(n,");")}},{key:"hexToHsl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e||(e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"000000"),e=e.replace(/^#/,"");var n=parseInt(e.slice(0,2),16)/255,o=parseInt(e.slice(2,4),16)/255,a=parseInt(e.slice(4,6),16)/255,i=Math.max(n,o,a),r=Math.min(n,o,a),s=i-r,c=0,l=0,u=(i+r)/2;if(0!==s){switch(l=s/(1-Math.abs(2*u-1)),i){case n:c=(o-a)/s+(o<a?6:0);break;case o:c=(a-n)/s+2;break;case a:c=(n-o)/s+4}c/=6}return c=Math.round(360*c),l=Math.round(100*l),u=t||Math.round(100*u),"hsl(".concat(c,", ").concat(l,"%, ").concat(u,"%)")}},{key:"isPopupWithCoins",value:function(){var e=storage.getReactionsFeedbackPopupCount();return!e||+e<3}},{key:"setShownPopupCount",value:function(){var e=storage.getReactionsFeedbackPopupCount();e?(e=JSON.parse(e),e++):e=1,storage.setReactionsFeedbackPopupCount(e)}},{key:"getBadge",value:function(){var e,t=document.createElement("div");t.className="questBadge__wrapper";var n=document.querySelectorAll(".questBadge__wrapper");
1n.length&&(e=n[n.length-1].offsetTop+45,t.style.top="".concat(e,"px"));var o=document.createElement("div");o.className="questBadge__block",o.innerHTML='<img src="/build/midori/assets/icons/check-white.svg" alt="" aria-hidden="true" width="20" height="20"> '.concat(this.translate("Thanks! Weâve got your reaction")),t.append(o),document.body.append(t),setTimeout(function(){o.classList.add("hide"),setTimeout(function(){t.remove()},600)},2e3)}},{key:"setPendingReactions",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(!(n=t.querySelectorAll(".reactionsFeedbackPopupItem"))){e.n=1;break}if(o=[],n.forEach(function(e){e.querySelectorAll(".reactionsFeedbackPopupItem__action input:checked").length||o.push({bonus_id:+e.dataset.id,reaction:2})}),!o.length){e.n=1;break}return e.n=1,fetch("/api/bonus-reactions/store",{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json"}});case 1:return e.a(2)}},e)})),function(t){return e.apply(this,arguments)})},{key:"setAmplitudeEvent",value:function(){var e=document.location.pathname,t=document.location.origin+document.location.pathname,n=document.location.href,o=document.body.dataset.routeBonus,a=document.body.dataset.routeId,i=eventID.findIndex(function(e){return e===o}),r=i>-1?eventID[i]:eventID[eventID.length-1];document.querySelector('[data-element="reactionsFeedbackPopup"]').querySelectorAll(".reactionsFeedbackPopupItem").forEach(function(o,i){var s=o.querySelector(".reactionsFeedbackPopupItem__action input:checked");if(s){var c;switch(s.value){case"like":c="YES";break;case"dislike":c="NO";break;case"skip":c="SKIP"}var l=o.dataset.domain,u=o.dataset.id,d=o.dataset.titleShort,p=++i;setTimeout(function(){"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push(Object.assign({event:"click",event_id:"d-v1-e1",event_cat:"bonusReaction",event_name:"submit",page_current_path:JSON.stringify(e),page_group:JSON.stringify(r),page_url:JSON.stringify(t),page_url_full:JSON.stringify(n),page_route_id:JSON.stringify(a),widget_title:JSON.stringify(null),widget_id:JSON.stringify(null),widget_handler:JSON.stringify(null),widget_section:JSON.stringify(null),widget_position:JSON.stringify(null),casino_domain:JSON.stringify(l),casino_bonus_id:JSON.stringify(u),casino_bonus_title_short:JSON.stringify(d),widget_list_index:JSON.stringify(p),reaction_type:JSON.stringify(c),reaction_placement:JSON.stringify("pop_up"),website_domain:JSON.stringify(document.location.hostname)},utmParams()))},0)}})}}]);var e,t,n}(),reactionsFeedbackPopup=new ReactionsFeedbackPopup,headerMobBtn=document.querySelector("#headerMobBtn"),headerNav=document.querySelector("#headerNav"),headerNavClose=document.querySelector("#headerNavClose"),authSignupButton=document.querySelector("#authSignupButton"),localeSwitcher=document.querySelector("#localeSwitcher"),localeSwitcherBtn=document.querySelector("#localeSwitcherBtn"),headerMenuMobBtn=document.querySelectorAll('[data-element="header__menu--mob"]'),geoSwitcherNode=document.getElementById("geoSwitcher"),geoSwitcherOriginalParent=(null==geoSwitcherNode?void 0:geoSwitcherNode.parentNode)||null,geoSwitcherOriginalNextSibling=(null==geoSwitcherNode?void 0:geoSwitcherNode.nextSibling)||null,moveGeoSwitcherBack=function(){var e=document.getElementById("geoSwitcher");e&&geoSwitcherOriginalParent&&(geoSwitcherOriginalNextSibling&&geoSwitcherOriginalNextSibling.parentNode===geoSwitcherOriginalParent?geoSwitcherOriginalParent.insertBefore(e,geoSwitcherOriginalNextSibling):geoSwitcherOriginalParent.appendChild(e))},localeSwitcherFn=function(){if(localeSwitcher){var e=document.querySelectorAll('[data-element="localeSwitcher_list-item"]');e.length&&e.forEach(function(e){e.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault(),document.location.href=e.dataset.href})}),window.innerWidth<=768&&localeSwitcherBtn&&(localeSwitcherBtn.addEventListener("click",function(e){e.stopPropagation(),localeSwitcher.classList.toggle("active")}),document.addEventListener("click",function(e){!localeSwitcher.classList.contains("active")||localeSwitcher.contains(e.target)||localeSwitcherBtn.contains(e.target)||localeSwitcher.classList.remove("active")}))}},headerEventsFn=function(){storage.getUtmLoggedUserDataLayerPushed()&&authSignupButton&&(authSignupButton.innerHTML="Login"),headerMenuMobBtn.forEac
1h(function(e){e.addEventListener("click",function(){headerMenuMobBtnToggle(e);var t=document.querySelector("#headerMenuMobList");if(t){t.innerHTML="";var n=e.dataset.name;document.querySelectorAll('[data-target="'.concat(n,'"]')).forEach(function(e){var n=e.cloneNode(!0);t.append(n)});var o=t.querySelectorAll('[data-name="internal--link"]');internalLinkClick(o)}})}),null==headerMobBtn||headerMobBtn.addEventListener("click",function(){document.body.classList.add("popupShown"),null==headerNav||headerNav.classList.add("shown");var e=document.getElementById("geoSwitcher"),t=document.querySelector(".header__mob.header__mob-action");e&&t&&t.appendChild(e);var n=document.querySelector('[data-element="header__menu--mob"]');null==n||n.click(),window.addEventListener("resize",_handleResize)}),null==headerNavClose||headerNavClose.addEventListener("click",function(){null==headerNav||headerNav.classList.remove("shown"),document.body.classList.remove("popupShown"),moveGeoSwitcherBack()});var e=document.querySelector(".header");e&&e.addEventListener("mouseenter",function(e){e.target.closest("#headerMenu .header__menu-item")&&document.dispatchEvent(new CustomEvent("header:closeGeoSwitcher"))},!0)},_handleResize=function(){window.innerWidth>=992&&(null==headerNav||headerNav.classList.remove("shown"),document.body.classList.remove("popupShown"),moveGeoSwitcherBack(),window.removeEventListener("resize",_handleResize))},GEO_COUNTRY_REJECTION_EVENT_CAT="geo_country_rejection",getGeoCountryRejectionUtmParams=function(){return _objectSpread2({utm_source:JSON.stringify("search"),utm_medium:JSON.stringify("search"),utm_campaign:JSON.stringify("none"),utm_content:JSON.stringify("none"),utm_term:JSON.stringify("none")},utmParams())},getGeoCountryRejectionAmplitudeContext=function(){var e=document.body.dataset.routeBonus||"p_other",t=eventID.findIndex(function(t){return t===e}),n=t>-1?t+1:eventID.length,o=t>-1?eventID[t]:eventID[eventID.length-1];return{event_id:"d-v1-e".concat(n),page_group:JSON.stringify(o)}},pushGeoCountryRejectionEvent=function(e){try{var t=getDeviceInfo(),n=t.device_width,o=t.device_height,a=t.device_ratio,i="".concat(document.location.origin).concat(document.location.pathname),r={event_cat:GEO_COUNTRY_REJECTION_EVENT_CAT,page_current_path:JSON.stringify(document.location.pathname),page_url:JSON.stringify(i),page_url_full:JSON.stringify(document.location.href),page_route_id:JSON.stringify(document.body.dataset.routeId||""),website_domain:JSON.stringify(document.location.hostname),device_width:n,device_height:o,device_ratio:a};if("popup"===e)return window.dataLayer=window.dataLayer||[],void window.dataLayer.push(Object.assign({event:"addEvents_showBlock",event_name:"popup"},r,getGeoCountryRejectionAmplitudeContext(),getGeoCountryRejectionUtmParams()));window.dataLayer=window.dataLayer||[],window.dataLayer.push(Object.assign({event:"addEvents_click",event_name:e},r,getGeoCountryRejectionAmplitudeContext(),getGeoCountryRejectionUtmParams()))}catch(e){}},trackGeoCountryRejectionPopup=function(){pushGeoCountryRejectionEvent("popup")},trackGeoCountryRejectionSwitch=function(){pushGeoCountryRejectionEvent("switch")},headerMenuMobBtnToggle=function(e){var t=document.querySelector('[data-element="header__menu--mob"].active');t&&t.classList.remove("active"),e.classList.add("active")},adminPanelInitFn=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(!getCookie("ca_admin")){e.n=2;break}return document.cookie=encodeURIComponent("is_test")+"="+encodeURIComponent(1),document.querySelector("link[data-admin-panel-style]")||((t=document.createElement("link")).rel="stylesheet",t.crossOrigin="anonymous",t.dataset.adminPanelStyle="1",t.href="/build/midori/assets/css/adminPanel.css?t="+Date.now(),document.head.appendChild(t)),e.n=1,import("/build/midori/assets/js/adminPanel.js?t="+Date.now());case 1:n=e.v,(0,n.adminPanel)(),e.n=3;break;case 2:document.cookie=encodeURIComponent("is_test")+"="+encodeURIComponent(0);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),geoSwitcherFn=function(){var e=".geo_residency_popup-box",t=".return",n=".close, .close_popup",o="#geoSwitcherPopupSearch",a="#geoSwitcherPopupBox",i="#geoSwitcher",r=".geo_residency_popup, .popup, [data-residency-popup]",s=".country",c=".country_name",l=".header",u='[data-element="hotBonusesHeader"]',d='[data-element="hotBonusesPopup"]',p="#headerQuest",h="#headerNav",f=".header_burger",g=".header_overlay",m=".header-mob, .header_mob, #header-mob",_=document.querySelector(e);
1if(_){var v=_.querySelector(t),y=_.querySelector(n),w=document.querySelector(o),b=document.querySelector(a),S=document.querySelector(i),k=_.closest(r),C=document.querySelector(l),P=document.querySelector(d),L=document.querySelector(h);if(w&&b){var E=Array.from(b.querySelectorAll(s)),T=!1,A=function(){return null==S?void 0:S.classList.contains("active")},O=function(){var e,t,n;null===(e=document.querySelector(f))||void 0===e||e.classList.remove("active"),null===(t=document.querySelector(g))||void 0===t||t.classList.remove("active"),null===(n=document.querySelector(m))||void 0===n||n.classList.remove("active")},I=function(e){return String(e||"").trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")},N=E.map(function(e){var t;return{el:e,geo:(e.dataset.geo||"").trim().toUpperCase(),id:(e.dataset.id||"").trim(),name:I(null===(t=e.querySelector(c))||void 0===t?void 0:t.textContent)}}),x=b.querySelector("[data-geo-empty]");x||((x=document.createElement("div")).dataset.geoEmpty="1",x.className="country country--empty",x.style.display="none",x.innerHTML='<span class="country_name">No countries found</span>',b.appendChild(x));var B,M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),document.cookie="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t),"; Expires=").concat(o.toUTCString(),"; Path=/; SameSite=Lax")},R=function(e){var t=String(e||"").trim().toUpperCase();N.forEach(function(e){var n=e.el,o=e.geo;n.classList.toggle("active",o===t)})},U=function(e){var t,n,o=String(e||"").trim().toUpperCase();return o&&"US"!==o?(null===(t=N.find(function(e){return e.geo===o}))||void 0===t?void 0:t.id)||null:(null===(n=N.find(function(e){return""===e.geo}))||void 0===n?void 0:n.id)||null},D=function(e){var t=new URL(location.href);return t.searchParams.set("geo",e.toUpperCase()),t.toString()},G=function(){var e=I(w.value),t=0;N.forEach(function(n){var o=n.el,a=n.name,i=!e||a.includes(e);o.style.display=i?"":"none",i&&t++}),x.style.display=t?"none":""},J=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null==k||k.classList.remove("is-open"),null==k||k.classList.add("is-hidden"),e&&(null==S||S.classList.remove("active")),T&&(document.removeEventListener("click",j,!0),T=!1),w.value="",G()},H=function(){null==k||k.classList.add("is-open"),null==k||k.removeAttribute("inert"),null==k||k.classList.remove("is-hidden"),null==S||S.classList.add("active"),O(),T||(document.addEventListener("click",j,!0),T=!0),w.value="",G(),setTimeout(function(){return w.focus()},0)},j=function(e){if(A()){var t=e.target;null!=S&&S.contains(t)||null!=k&&k.contains(t)||J()}};w.addEventListener("input",function(){clearTimeout(B),B=setTimeout(G,60)}),w.addEventListener("keydown",function(e){if("Escape"===e.key&&(w.value="",G(),w.blur()),"Enter"===e.key){var t,n=null===(t=N.find(function(e){return"none"!==e.el.style.display}))||void 0===t?void 0:t.el;null==n||n.click()}}),C&&C.addEventListener("click",function(e){A()&&(e.target.closest(u)||e.target.closest(p))&&J()}),document.addEventListener("header:closeGeoSwitcher",function(){A()&&J()}),null==v||v.addEventListener("click",function(e){e.preventDefault(),J()}),null==y||y.addEventListener("click",function(e){e.preventDefault(),J(),O(),null==L||L.classList.remove("shown"),document.body.classList.remove("popupShown"),moveGeoSwitcherBack()}),null==S||S.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),null!=P&&P.classList.contains("show")&&document.dispatchEvent(new CustomEvent("hotBonuses:hide")),null!=k&&k.classList.contains("is-open")?J():H()});var F,q,W=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=r.length>1&&void 0!==r[1]?r[1]:null,o=String(t||"").trim().toUpperCase(),a=o||"US",i=n||U(a),M("user_geo",a),R("US"===a?"":a),!document.body.dataset.userId||!i){e.n=1;break}return e.n=1,changeCountry(i);case 1:location.href=D(a);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),V=function(e){if(!e)return deleteCookie("user_geo"),R(""),void(location.href=D("US"));M("user_geo",e,365),R(e),location.href=D(e)},z=((null==k?void 0:k.dataset.currentGeo)||(F="user_geo",q=document.cookie.match(new RegExp("(?:^|;\\s*)".concat(F,"=([^;]*)"))),q?decodeURIComponent(q[1]):null)||"").trim().toUpperCase();R(z&&"US"!==z?z:""),b.addEventListener("click",function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r,c;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if((o=t.target.closest(s))&&b.contains(o)){e.n=1;break}return e.a(2);case 1:if(a=(o.dataset.geo||"").trim().toUpperCase(),i=(o.dataset.id||"").trim(),r
1=window.frontScreenLockModal,c=window.frontScreenLockWidget,!(a&&null!=c&&null!==(n=c.shouldConfirmGeoSwitch)&&void 0!==n&&n.call(c,a)&&r)){e.n=2;break}return J(),trackGeoCountryRejectionPopup(),r.open({confirmText:"Stay on current region",detailsText:"I understand - switch anyway",onConfirm:function(){r.close()},onDetails:function(){trackGeoCountryRejectionSwitch(),r.close(),setTimeout(function(){V(a)},300)},onClose:null}),e.a(2);case 2:return e.n=3,W(a,i);case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),function(){try{var e=new URL(location.href);if(!e.searchParams.has("geo"))return;e.searchParams.delete("geo"),history.replaceState({},document.title,e.toString())}catch(e){}}(),G()}}};function getProfilePath(){var e;return(null===(e=document.body)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.profilePath)||"/profile"}var __bridge_getProfilePath=Object.freeze({__proto__:null,getProfilePath:getProfilePath}),parseApiResponse=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.json().catch(function(){return null});case 1:return n=e.v,e.a(2,{ok:t.ok,status:t.status,data:n})}},e)}));return function(t){return e.apply(this,arguments)}}(),getUserReview=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n){var o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/index?sort=").concat(t,"&casino_id=").concat(n),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return o=e.v,e.n=2,o.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),getUserReviewPaginated=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,o){var a,i,r,s=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:null,i=new URLSearchParams({sort:t,casino_id:n,page:o,page_size:1===o?20:5}),null!==a&&""!==a&&i.append("dictionary",a),e.n=1,fetch("".concat(baseHttp,"/user-review/index?").concat(i.toString()),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return r=e.v,e.n=2,r.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n,o){return e.apply(this,arguments)}}(),storeUserReview=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,o,a){var i;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/store"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({score:t,promotions_and_bonuses:o.promotions_and_bonuses,deposits_and_withdrawals:o.deposits_and_withdrawals,games_variety:o.games_variety,support:o.support,website_convenience:o.website_convenience,text:n,casino_id:parseInt(a)})});case 1:return i=e.v,e.n=2,parseApiResponse(i);case 2:return e.a(2,e.v)}},e)}));return function(t,n,o,a){return e.apply(this,arguments)}}(),storeUserReviewScreenshots=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n){var o,a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return(o=new FormData).append("review_id",t),n.forEach(function(e){return o.append("files[]",e)}),e.n=1,fetch("".concat(baseHttp,"/user-review/store-screenshots"),{method:"post",body:o});case 1:return a=e.v,e.n=2,parseApiResponse(a);case 2:return e.a(2,e.v)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),storeUserReviewLike=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review-like/store"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_review_id:parseInt(t)})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),deleteUserReviewLike=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review-like/delete"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_review_id:parseInt(t)})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),readReply=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/read-reply"),{method:"post",headers:{"Content-Type":"application/json"}});case 1:return t=e.v,e.n=2,t.json();case 2:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),storeReply=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,o){var a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/store-reply"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_review_id:parseInt(t),casino_id:parseInt(n),text:o})});case 1:return a=e.v,e.n=2,a.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n,o){return e.apply(this,arguments)}}(),updateReply=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,o){var a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/update-reply"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_review_id:parseInt(t),casino_id:parseInt(n),text:o})});case 1:return a=e.v,e.n=2,a.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n,o){return e.apply(this,arguments)}}(),read=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/read?casino_id=").concat(t),{method:"post",headers:{"Content-Type":"application/json"}});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),__bridge_userReviewApi=Object.freeze({__proto__:null,deleteUserReviewLike:
1deleteUserReviewLike,getUserReview:getUserReview,getUserReviewPaginated:getUserReviewPaginated,read:read,readReply:readReply,storeReply:storeReply,storeUserReview:storeUserReview,storeUserReviewLike:storeUserReviewLike,storeUserReviewScreenshots:storeUserReviewScreenshots,updateReply:updateReply}),fetchQuests=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,secureApiFetch({url:"".concat(baseHttp,"/gamification/quests"),method:"GET",headers:{"Content-Type":"application/json"},security:{requireSecure:!0,scope:"quests"}});case 1:return t=e.v,n=t.quests,e.a(2,n)}},e)}));return function(){return e.apply(this,arguments)}}(),fetchCoinHistory=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,r=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:1,o=r.length>2&&void 0!==r[2]?r[2]:50,e.p=1,e.n=2,fetch("".concat(baseHttp,"/gamification/coin-history?type=").concat(t,"&_page=").concat(n,"&_itemsOnPage=").concat(o),{method:"GET",headers:{"Content-Type":"application/json"}});case 2:return a=e.v,e.n=3,a.json();case 3:if(i=e.v,a.ok){e.n=4;break}throw new Error(i.message);case 4:return e.a(2,{items:i.items,total:i.total,showMore:i.total>n*o});case 5:return e.p=5,e.v,e.a(2,{items:[],total:0,showMore:!1})}},e,null,[[1,5]])}));return function(t){return e.apply(this,arguments)}}(),purchaseBonus=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n="".concat(baseHttp,"/bonus/").concat(t,"/purchase"),e.n=1,fetch(n,{method:"POST",headers:{"Content-Type":"application/json"}});case 1:return o=e.v,e.n=2,o.json();case 2:if(a=e.v,o.ok){e.n=3;break}throw new Error(a.message||Object.values(a.errors||{})[0]||"An error occurred while purchasing bonus");case 3:return e.a(2,{success:!0,message:a.message,userBonus:a.userBonus});case 4:return e.p=4,i=e.v,e.a(2,{success:!1,message:i.message})}},e,null,[[0,4]])}));return function(t){return e.apply(this,arguments)}}(),__bridge_gamificationApi=Object.freeze({__proto__:null,fetchCoinHistory:fetchCoinHistory,fetchQuests:fetchQuests,purchaseBonus:purchaseBonus}),BonusesPopup=function(){return _createClass(function e(t,n,o,a){var i,r=this;_classCallCheck(this,e),_defineProperty(this,"amplitudeTC",function(e){var t=e.casino,n=e.widgetTitle;e.eventCat;var o=e.clickAffLinkVersion,a=e.eventAffClickName;t="string"===_typeof(t)?JSON.parse(t):t;var i=document.location.pathname,s=document.location.origin+document.location.pathname;document.location.href;var c=document.body.dataset.routeBonus,l=document.body.dataset.routeId,u=eventID.findIndex(function(e){return e===c});u>-1||eventID.length;var d=u>-1?eventID[u]:eventID[eventID.length-1];document.body.dataset.localeLang,document.body.dataset.websiteEnv,document.body.dataset.localeCountry;var p=document.body.dataset.geo,h=storage.getPageAffLinkClickIndex();h++,storage.setPageAffLinkClickIndex(h);var f=0;if(t.created){var g=new Date(t.created.date),m=new Date,_=Math.abs(m-g);f=Math.floor(_/864e5)}var v=365;if(t.expiredDate){var y=new Date(t.expiredDate.date),w=new Date;if(y<w)v=0;else{var b=Math.abs(y-w);v=Math.floor(b/864e5)+1}}dataLayer&&dataLayer.push(Object.assign({event:"click",event_id:"d-v".concat(document.body.dataset.amplitudeVersion,"-e").concat(o),event_cat:"w_website",event_name:a,page_current_path:JSON.stringify(i),page_url:JSON.stringify(s),page_group:JSON.stringify(d),widget_title:JSON.stringify(n),widget_id:JSON.stringify(null),page_route_id:JSON.stringify(l),widget_handler:JSON.stringify(null),widget_section:JSON.stringify(null),widget_position:JSON.stringify(null),casino_list_user_country:JSON.stringify(p),casino_user_country:JSON.stringify(p),casino_list_for_geo:JSON.stringify(!1),casino_domain:JSON.stringify(t.casino.domain),casino_bonus_title_short:JSON.stringify(t.titleShort?t.titleShort:null),casino_bonus_title_short_strlen:JSON.stringify(t.titleShort?t.titleShort.length:0),c
1asino_id:JSON.stringify(t.casino.casinoId),casino_name:JSON.stringify(t.casino.name),casino_bonus_amount_max:JSON.stringify(t.amountMax&&!isNaN(parseInt(t.amountMax))?parseInt(t.amountMax):0),casino_bonus_percent:JSON.stringify(t.percent?t.percent:0),casino_bonus_expired:JSON.stringify(!!t.expired&&t.expired),casino_bonus_id:JSON.stringify(t.id),casino_domain_bonus_id:JSON.stringify(t.casino.domain+"_"+t.id),casino_score_geo:JSON.stringify(!!t.score&&t.score),casino_afflink_exist:JSON.stringify(!!t.affiliateUrl),casino_bonus_wagering_requirements:JSON.stringify(t.wageringRequirements&&!isNaN(parseInt(t.wageringRequirements))?parseInt(t.wageringRequirements):0),casino_bonus_deposit_min:JSON.stringify(t.depositMin?parseInt(t.depositMin):0),casino_bonus_code_exist:JSON.stringify(!!t.code),casino_bonus_label_exist:JSON.stringify(!!t.label),casino_bonus_category:JSON.stringify(Array.isArray(t.bonusCategories)?t.bonusCategories.map(function(e){return e.name}).join(", "):null),casino_bonus_label:JSON.stringify(t.label?t.label:"Not Set"),widget_list_index:JSON.stringify(1),casino_bonus_type:JSON.stringify(Array.isArray(t.bonusTypes)?t.bonusTypes.map(function(e){return e.name}).join(", "):null),casino_bonus_free_spins:JSON.stringify(t.freeSpins?+t.freeSpins:0),casino_score_geo_text:JSON.stringify(r.casinoScoreGeoText(t.score)),casino_user_country_allowed:JSON.stringify(!0),casino_bonus_currency:JSON.stringify(t.currency&&Array.isArray(t.currency)&&t.currency.length&&!t.currency.every(function(e){return null===e})?t.currency:["Not Set"]),casino_bonus_active:JSON.stringify(!t.affiliateUrl),casino_bonus_slots:JSON.stringify(t.slots.length?Object.values(t.slots):["Not Set"]),casino_bonus_category_display:JSON.stringify("Not Set"),casino_geo_rating:JSON.stringify(t.score&&Number(t.score)?Number(t.score).toFixed(1):0),casino_bonus_active_days_left:JSON.stringify(+v),casino_bonus_days_after_create:JSON.stringify(+f),casino_bonus_exclusive:JSON.stringify(!!t.exclusive&&t.exclusive),casino_bonus_code:JSON.stringify(t.code?t.code:"Not Set"),casino_bonus_cashable:JSON.stringify(!!t.cashable&&t.cashable),sponsored:JSON.stringify(!!t.sponsored)}
1,utmParams()))}),this.selector=t,this.title=n,this.data=o,this.localCountry=a,this.description="",this.widgetAffLinkClickIndex=0,this.eventCat="w_bonus_list_restricted_popup",this.tncCountries=["GB"],this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.alternativePopupWidget=null!==(i=document.getElementById("alternativePopupWidget"))&&void 0!==i?i:null,this.sponsoredDisplay=this.alternativePopupWidget?"true"===this.alternativePopupWidget.dataset.promoDisplay:null},[{key:"generatePopup",value:function(){var e,t,n=this,o=document.createElement("div");o.className="bonusesPopup__wrapper";var a=document.createElement("div");a.className="bonusesPopup__title",a.innerHTML=null!==(e=__translate(this.title,this.localCountry))&&void 0!==e?e:this.title,o.appendChild(a);var i=document.createElement("div");i.id="bonusesPopupClose",i.className="bonusesPopup__close",i.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.0007 10.586L16.9507 5.636L18.3647 7.05L13.4147 12L18.3647 16.95L16.9507 18.364L12.0007 13.414L7.05072 18.364L5.63672 16.95L10.5867 12L5.63672 7.05L7.05072 5.636L12.0007 10.586Z" fill="#6C6C6C"/></svg>';var r=document.createElement("div");r.className="bonusesPopup__items";this.data.slice(0,3).forEach(function(e,t){var o=n.bonusesPopupItemTemplate(e,"",t);r.appendChild(o)}),o.appendChild(r),o.appendChild(i);var s=document.createElement("p");s.className="tc-line",s.textContent="".concat(null!==(t=__translate("T&Cs Apply to All Bonuses. 18+ only. Gamble Responsibly.",this.localCountry))&&void 0!==t?t:"T&Cs Apply to All Bonuses. 18+ only. Gamble Responsibly."),o.appendChild(s),this.selector.appendChild(o),this.bonusesPopupLinks.call(this,this.data),this.onClickPromoCodeLoop()}},{key:"bonusesPopupItemTemplate",value:function(e,t,n){var o=document.createElement("div");o.className="bonusesPopup__card__wrapper";var a=document.createElement("div");return a.className="bonusesPopup__card",e.sponsored&&a.classList.add("promo"),a.dataset.element="bonusesPopup__item",a.dataset.casinoId=e.id,a.dataset.casinoTermsUrl=e.termsUrl,a.dataset.casinoDomain=e.casino.domain,a.dataset.casinoUrl=e.casino.domain+"?bonus="+e.id,a.dataset.casinoRestricted=e.restrictedCountries.filter(function(e){return null!=e}).join(","),a.dataset.casinoAffLink=e.affiliateUrl,a.dataset.casinoBlank=!0,a.dataset.casinoPublished=e.published,a.dataset.promo=JSON.stringify(e.sponsored),a.innerHTML=e.sponsored?this.sponosoredCard(e,n):this.card(e,n),o.append(a),o}},{key:"casinoDep",value:function(e){var t="";if(e.depositMin){var n,o=null!==(n=e.depositMinFormatted)&&void 0!==n?n:e.depositMin;t='<div class="bonusesPopup__card__content--dep">\n\t <span>'.concat(__translate("Minimum deposit",this.localCountry),':\n\t <span class="text">\n\t <b>').concat(o,"</b>\n\t </span>\n\t </span>\n\t </div>")}return t}},{key:"casinoReq",value:function(e){var t="";return e.wageringRequirements&&(t='<div class="bonusesPopup__card__content--req">\n <span>'.concat(__translate("Wagering requirements",this.localCountry),": <b>").concat(e.wageringRequirements,"</b></span>\n </div>")),t}},{key:"casinoPromo",value:function(e){var t="";return t=e.code||e.showPromocode?'<div data-element="bonus_promo"\n\t\t\t\t class="promo_code-block "\n\t\t\t\t data-default-promocode="'.concat(JSON.stringify(!e.code&&e.showPromocode),'"\n\t\t\t\t>\n\t\t\t\t\t<span class="promo_code-bg" data-text-before="').concat(__translate("Reveal",this.localCountry),'"></span>\n\t\t\t\t\t<span data-element="bonus_promo-value" class="promo_code-text">').concat(e.code?e.code:"ANALYZER",'</span>\n\t\t\t\t\t<div class="promo_code-copied" data-text-after="Copied!">\n\t\t\t\t\t\t<svg>\n\t\t\t\t\t\t\t<use href="/build/midori/assets/icons/icons_264.svg#check_circle"></use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t</div>'):'<span class="promo-no-code">'.concat(__translate("No code needed",this.localCountry),"</span>"),'<div class="card-td-promo"><span class="promo_code-title">'.concat(__translate("Promo code",this.localCountry),":</span> ").concat(t,"</div>")}},{key:"casinoSponsoredPromo",value:function(e){var t="";return(e.code||e.showPromocode)&&(e.id&&String(e.id).slice(-2),t='<div class="content-promoted-promo mobile">\n <div data-element="bonus_promo"\n data-default-promocode="'.concat(!e.code&&e.showPromocode,'"\n class="content-promo"\n >\n <div class="content-promo-code">
1\n <span class="promo_code-text" data-element="bonus_promo-value">').concat(e.code?e.code:"ANALYZER",'</span>\n <svg>\n <use href="/build/midori/assets/icons/icons_264.svg#copy"></use>\n </svg>\n </div>\n <div class="content-promo-copied" data-text-before="Copied">\n <svg>\n <use href="/build/midori/assets/icons/icons_264.svg#check_green"></use>\n </svg>\n </div>\n </div>\n </div>')),t}},{key:"btnText",value:function(){var e="/free-spins"===document.location.pathname?"Get free spins":"Play now";if(document.location.pathname.indexOf("/online-casinos")>-1&&(e="Visit casino"),"fr"===this.localCountry)switch(e){case"Get no deposit bonus":e="Obtenez un bonus sans dépôt";break;case"Get bonus":e="Prendre le Bonus";break;case"Visit casino":e="Visiter Casino"}var t=__translate(e,this.localCountry);return e=null!=t?t:e,e}},{key:"card",value:function(e,t){var n,o='<div class="bonusesPopup__card__top">\n <div class="bonusesPopup__card__top__logo">\n <div class="bonusesPopup__card__top__logo-bg"\n style="'.concat("FFFFFF"===e.casino.background?"background:#ffffff; border: 1px solid #DBD8D8":"background: linear-gradient(220deg, ".concat(hexToHSL(e.casino.background),", ").concat(hexToHSL(e.casino.background,40)," )"),'">\n <img src="').concat(e.casino.logo,'"\n alt="').concat(e.casino.name,'"\n title="').concat(e.casino.name,'" loading="lazy" width="80"\n height="80">\n </div>\n </div>\n <div class="bonusesPopup__card__top__info">\n <div class="bonusesPopup__card__top__info--name">').concat(e.casino.name,'</div>\n </div>\n </div>\n <div class="bonusesPopup__card__content">\n <div class="bonusesPopup__card__content--main">').concat(null!==(n=__translate(e.title,this.localCountry,!0))&&void 0!==n?n:e.title,"</div>\n ").concat(this.casinoDep(e),"\n\t\t ").concat(this.casinoReq(e),"\n </div>\n ").concat(this.casinoPromo(e),'\n <div class="bonusesPopup__card__btn-wrapper">\n\t <button class="bonusesPopup__card__btn">').concat(this.btnText(),'</button>\n\t</div>\n <div class="bonusesPopup__card__after">\n <div class="bonusesPopup__card__after--nocode">* ').concat(__translate("Code already applied",this.localCountry),'</div>\n <div class="bonusesPopup__card__after--select">\n <span class="bonusesPopup__card__after--select__txt">').concat(__translate("Show T&C",this.localCountry),'</span>\n <svg><use href="/build/midori/assets/icons/icons_264.svg#drop_down_gray"></use></svg></svg>\n </div>\n </div>');return o}},{key:"sponosoredCard",value:function(e,t){return"".concat(this.sponsoredTimer(t),'\n\t\t\t\t\t\t<div class="card-td-content">\n\t\t\t\t <div class="bonusesPopup__card__top">\n\t\t\t\t <div class="bonusesPopup__card__top__logo">\n\t\t\t\t <div class="bonusesPopup__card__top__logo-bg"\n\t\t\t\t style="').concat("FFFFFF"===e.casino.background?"background:#ffffff; border: 1px solid #DBD8D8":"background: linear-gradient(220deg, ".concat(hexToHSL(e.casino.background),", ").concat(hexToHSL(e.casino.background,40)," )"),'">\n\t\t\t\t <img src="').concat(e.casino.logo,'"\n\t\t\t\t alt="').concat(e.casino.name,'"\n\t\t\t\t title="').concat(e.casino.name,'" loading="lazy" width="80" height="80">\n\t\t\t\t </div>\n\t\t\t\t </div>\n\t\t\t\t <div class="bonusesPopup__card__top__info">\n\t\t\t\t <div class="bonusesPopup__card__top__info--name">').concat(e.titleShort,'</div>\n\t\t\t\t </div>\n\t\t\t\t </div>\n\t\t\t\t <div class="bonusesPopup__card__content">\n\t\t\t\t\t ').concat(this.casinoDep(e),"\n\t\t\t\t\t ").concat(this.casinoReq(e),"\n\t\t\t\t </div>\n\t\t\t\t ").concat(this.casinoSponsoredPromo(e),'\n\t\t\t\t <div class="bonusesPopup__card__btn-wrapper">\n\t\t\t\t \t<button class="bonusesPopup__card__btn">').concat(this.btnText(),"</button>
1\n\t\t\t\t </div>\n\t\t\t\t</div> ")}},{key:"sponsoredTimer",value:function(){return' <div class="card-td-limited">\n <p class="limited-text"><svg>\n <use href="/build/midori/assets/icons/icons_264.svg#stopwatch"></use>\n </svg>Exclusive Deal</p>\n </div>'}},{key:"bonusesPopupLinks",value:function(e){var t=this,n=this.selector.querySelectorAll('[data-element="bonusesPopup__item"]'),o=this.isBonusesPopupsShow();Promise.all(_toConsumableArray(n).map(function(e){var n=e.dataset.casinoDomain,o=document.body.dataset.pathCasinos,a="/".concat(o,"/").concat(n);return t.isPageExist(a)})).then(function(e){e.forEach(function(e,t){if(!e){var o=n[t].querySelector('[data-element="bonusesPopup__review"]');o&&o.classList.add("disabled")}})}),n.forEach(function(n,a){n.addEventListener("click",function(){var i=_asyncToGenerator(_regenerator().m(function i(r){var s,c,l,u,d,p,h,f,g,m,_,v,y,w,b,S,k,C,P,L,E,T,A;return _regenerator().w(function(i){for(;;)switch(i.n){case 0:if(r.preventDefault(),r.stopPropagation(),s=r.target,c=n.dataset.casinoId,l=n.dataset.casinoUrl,u=n.dataset.casinoBlank,d=n.dataset.casinoRestricted,p=n.dataset.casinoAffLink,h=n.dataset.casinoDomain,f=n.dataset.casinoTermsUrl,g=n.dataset.casinoPublished,m=Boolean(t.tncCountries.includes(document.body.dataset.geo.toUpperCase())&&p),_=n.closest(".bonusesPopup").dataset.h2,v={widgetTitle:_,eventCat:t.eventCat,casinos:e,casino:e[a],btnText:"".concat(t.btnText())},!s.closest(".bonusesPopup__card__after--select")){i.n=3;break}if((y=document.createElement("div")).classList.add("bonusesPopup__card__after--content"),w=n.querySelector(".bonusesPopup__card__after--select__txt"),b=n.querySelector(".bonusesPopup__card__after--content"),!n.classList.contains("tac-show")||!b){i.n=1;break}return w.innerHTML=__translate("Show T&C",t.localCountry),b.parentNode.removeChild(b),n.classList.remove("tac-show"),i.a(2);case 1:return w.innerHTML=__translate("Hide T&C",t.localCountry),i.n=2,t.getTerms(c);case 2:S=i.v,n.classList.add("tac-show"),S.length>160?(C=S.slice(0,160),P=S.slice(160),y.innerHTML='<span class="bonusesPopup__card__after--text" '.concat(m?'data-terms_url="'.concat(f,'"'):"",">")+C+'<span class="hidden-text">'.concat(P,'</span><span class="show-more-link">... ').concat(null!==(k=__translate("Show more",t.localCountry))&&void 0!==k?k:"Show more","</span></span>"),L=y.querySelector(".show-more-link"),E=y.querySelector(".hidden-text"),L.addEventListener("click",function(e){var n;(e.stopPropagation(),"none"!==E.style.display||""!==E.style.display)?(E.style.display="inline",L.textContent=""):(E.style.display="none",L.textContent="... ".concat(null!==(n=__translate("Show more",t.localCountry))&&void 0!==n?n:"Show more"))})):y.innerHTML='<span class="bonusesPopup__card__after--text" '.concat(m?'data-terms_url="'.concat(f,'"'):"",">").concat(S,"</span>"),n.append(y),v.widgetPref="showBlock",v.clickAffLinkVersion=81,v.showWidgetVersion=82,v.eventAffClickName="casino_bonus_tc_open",setTimeout(function(){t.showTermsAmplitude(v)},0),i.n=6;break;case 3:if("bonusesPopup__review"!==s.dataset.element){i.n=5;break}if(g){i.n=4;break}return i.a(2);case 4:T=document.body.dataset.pathCasinos,document.location.href="/".concat(T,"/").concat(h),i.n=6;break;case 5:s.classList.contains("bonusesPopup__card__after--content")||s.closest(".bonusesPopup__card__after--content")?m&&(t.noAmplitudeParam||(v.clickAffLinkVersion=81,v.showWidgetVersion=82,v.eventAffClickName="tc_redirect",t.amplitudeTC(v)),window.open(f,"_blank")):(setTimeout(function(){t.selector.dataset.popupShown=!0,t.selector.classList.remove("show"),o||document.body.classList.remove("bonusesPopup__show")},1e3),A={event:"TrackOffersClickMainBonusesTableAffiliateLink",eventCategory:"TrackOffers",eventAction:"ClickMainBonusesTableAffiliateLink",eventLabel:"".concat(h),eventValue:"".concat(a+1)},navAff(l,u,A,d,p,s),centrifugeManager.publishCustomEvent("bonusClicked",{bonusId:c,isSponsored:n.dataset.promo}),v.widgetPref="clickAffLink",v.clickAffLinkVersion=81,v.showWidgetVersion=82,v.eventAffClickName="casino_visit",setTimeout(function(){t.clickAffLinkAmplitude(v,++t.widgetAffLinkClickIndex)},0));case 6:return i.a(2)}},i)}));return function(e){return i.apply(this,arguments)}}())}),this.selector.addEventListener("click",function(){var e=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:n.target.closest(".bonusesPopup__close")&&(t.selector.dataset.popupShown=!0,t.selector.classList.remove("show"),o||document.body.classList.remove("bonusesPopup__show"));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),this.tncCountries.includes(document.body.dataset.geo.toUpperCase())&&n.forEac
1h(function(e){var t=e.querySelector(".bonusesPopup__card__after--select");t&&t.click()})}},{key:"showTermsAmplitude",value:function(e){var t=e.casino,n=e.widgetTitle,o=e.eventCat,a=e.clickAffLinkVersion,i=e.eventAffClickName,r=e.btnText;t="string"===_typeof(t)?JSON.parse(t):t;var s=document.location.pathname,c=document.location.origin+document.location.pathname;document.location.href;var l=document.body.dataset.routeBonus,u=document.body.dataset.routeId,d=eventID.findIndex(function(e){return e===l});d>-1||eventID.length;var p=d>-1?eventID[d]:eventID[eventID.length-1];document.body.dataset.localeLang,document.body.dataset.websiteEnv,document.body.dataset.localeCountry;var h=document.body.dataset.geo,f=0;if(t.created){var g=new Date(t.created.date),m=new Date,_=Math.abs(m-g);f=Math.floor(_/864e5)}var v=365;if(t.expiredDate){var y=new Date(t.expiredDate.date),w=new Date;if(y<w)v=0;else{var b=Math.abs(y-w);v=Math.floor(b/864e5)+1}}dataLayer&&dataLayer.push(Object.assign({event:"addEvents_showBlock",event_id:"d-v".concat(document.body.dataset.amplitudeVersion,"-e").concat(a),event_cat:o,event_name:i,page_current_path:JSON.stringify(s),page_url:JSON.stringify(c),page_group:JSON.stringify(p),widget_title:JSON.stringify(n),widget_id:JSON.stringify(null),page_route_id:JSON.stringify(u),widget_handler:JSON.stringify(null),widget_section:JSON.stringify(null),widget_position:JSON.stringify(null),casino_list_user_country:JSON.stringify(h),casino_user_country:JSON.stringify(h),casino_list_for_geo:JSON.stringify(!1),casino_domain:JSON.stringify(t.casino.domain),casino_bonus_title_short:JSON.stringify(t.titleShort?t.titleShort:null),casino_bonus_title_short_strlen:JSON.stringify(t.titleShort?t.titleShort.length:0),casino_id:JSON.stringify(t.casino.casinoId),casino_name:JSON.stringify(t.casino.name),casino_bonus_amount_max:JSON.stringify(t.amountMax&&!isNaN(parseInt(t.amountMax))?parseInt(t.amountMax):0),casino_bonus_percent:JSON.stringify(t.percent?t.percent:0),casino_bonus_expired:JSON.stringify(!!t.expired&&t.expired),casino_bonus_button_name:JSON.stringify(r),casino_bonus_id:JSON.stringify(t.id),casino_domain_bonus_id:JSON.stringify(t.casino.domain+"_"+t.id),casino_score_geo:JSON.stringify(!!t.score&&t.score),casino_afflink_exist:JSON.stringify(!!t.affiliateUrl),casino_bonus_wagering_requirements:JSON.stringify(t.wageringRequirements&&!isNaN(parseInt(t.wageringRequirements))?parseInt(t.wageringRequirements):0),casino_bonus_deposit_min:JSON.stringify(t.depositMin?parseInt(t.depositMin):0),casino_bonus_code_exist:JSON.stringify(!!t.code),casino_bonus_label_exist:JSON.stringify(!!t.label),casino_bonus_category:JSON.stringify(Array.isArray(t.bonusCategories)?t.bonusCategories.map(function(e){return e.name}).join(", "):null),casino_bonus_label:JSON.stringify(t.label?t.label:"Not Set"),widget_list_index:JSON.stringify(1),casino_bonus_type:JSON.stringify(Array.isArray(t.bonusTypes)?t.bonusTypes.map(function(e){return e.name}).join(", "):null),casino_bonus_free_spins:JSON.stringify(t.freeSpins?+t.freeSpins:0),casino_score_geo_text:JSON.stringify(this.casinoScoreGeoText(t.score)),casino_user_country_allowed:JSON.stringify(!0),casino_bonus_currency:JSON.stringify(t.currency&&!t.currency.every(function(e){return null===e})?Object.values(t.currency):["Not Set"]),casino_bonus_active:JSON.stringify(!t.affiliateUrl),casino_bonus_slots:JSON.stringify(t.slots.length?Object.values(t.slots):["Not Set"]),casino_bonus_category_display:JSON.stringify("Not Set"),casino_geo_rating:JSON.stringify(t.score?+t.score.toFixed(1):0),casino_bonus_active_days_left:JSON.stringify(+v),casino_bonus_days_after_create:JSON.stringify(+f),casino_bonus_exclusive:JSON.stringify(!!t.exclusive&&t.exclusive),casino_bonus_code:JSON.stringify(t.code?t.code:"Not Set"),casino_bonus_cashable:JSON.stringify(!!t.cashable&&t.cashable),sponsored:JSON.stringify(t.sponsored)}
1,utmParams()))}},{key:"clickAffLinkAmplitude",value:(n=_asyncToGenerator(_regenerator().m(function e(t,n){var o,a,i,r,s,c,l,u,d,p,h,f,g,m,_,v,y,w,b,S,k,C,P,L;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return a=t.casino,i=t.widgetTitle,r=t.eventCat,s=t.clickAffLinkVersion,c=t.eventAffClickName,l=t.btnText,a="string"===_typeof(a)?JSON.parse(a):a,u=document.location.pathname,d=document.location.origin+document.location.pathname,document.location.href,p=document.body.dataset.routeBonus,h=document.body.dataset.routeId,(f=eventID.findIndex(function(e){return e===p}))>-1||eventID.length,g=f>-1?eventID[f]:eventID[eventID.length-1],document.body.dataset.localeLang,document.body.dataset.websiteEnv,document.body.dataset.localeCountry,m=document.body.dataset.geo,_=storage.getPageAffLinkClickIndex(),_++,storage.setPageAffLinkClickIndex(_),v=0,a.created&&(y=new Date(a.created.date),w=new Date,b=Math.abs(w-y),v=Math.floor(b/864e5)),S=365,a.expiredDate&&(k=new Date(a.expiredDate.date),C=new Date,k<C?S=0:(P=Math.abs(k-C),S=Math.floor(P/864e5)+1)),e.n=1,buildExternalId(a.id);case 1:L=e.v,dataLayer&&dataLayer.push(Object.assign(_objectSpread2(_objectSpread2({event:"addEvents_clickAffLink"},L?{external_id:JSON.stringify(L)}:{}),{},{event_id:"d-v".concat(document.body.dataset.amplitudeVersion,"-e").concat(s),event_cat:r,event_name:c,page_current_path:JSON.stringify(u),page_url:JSON.stringify(d),page_group:JSON.stringify(g),widget_title:JSON.stringify(i),widget_id:JSON.stringify(null),page_route_id:JSON.stringify(h),widget_handler:JSON.stringify(null),widget_section:JSON.stringify(null),widget_position:JSON.stringify(null),casino_list_user_country:JSON.stringify(m),casino_user_country:JSON.stringify(m),casino_list_for_geo:JSON.stringify(!1),casino_domain:JSON.stringify(a.casino.domain),casino_bonus_title_short:JSON.stringify(a.titleShort?a.titleShort:null!==(o=a.title)&&void 0!==o?o:null),casino_bonus_title_short_strlen:JSON.stringify(a.titleShort?a.titleShort.length:0),casino_id:JSON.stringify(a.casino.casinoId),casino_name:JSON.stringify(a.casino.name),casino_bonus_amount_max:JSON.stringify(a.amountMax&&!isNaN(parseInt(a.amountMax))?parseInt(a.amountMax):0),casino_bonus_percent:JSON.stringify(a.percent?a.percent:0),casino_bonus_expired:JSON.stringify(!!a.expired&&a.expired),casino_bonus_button_name:JSON.stringify(l),casino_bonus_id:JSON.stringify(a.id),casino_domain_bonus_id:JSON.stringify(a.casino.domain+"_"+a.id),casino_score_geo:JSON.stringify(!!a.score&&a.score),casino_afflink_exist:JSON.stringify(!!a.affiliateUrl),casino_bonus_wagering_requirements:JSON.stringify(a.wageringRequirements&&!isNaN(parseInt(a.wageringRequirements))?parseInt(a.wageringRequirements):0),casino_bonus_deposit_min:JSON.stringify(a.depositMin?parseInt(a.depositMin):0),casino_bonus_code_exist:JSON.stringify(!!a.code),casino_bonus_label_exist:JSON.stringify(!!a.label),casino_bonus_category:JSON.stringify(Array.isArray(a.bonusCategories)?a.bonusCategories.map(function(e){return e.name}).join(", "):null),casino_bonus_label:JSON.stringify(a.label?a.label:"Not Set"),widget_list_index:JSON.stringify(1),casino_bonus_type:JSON.stringify(Array.isArray(a.bonusTypes)?a.bonusTypes.map(function(e){return e.name}).join(", "):null),casino_bonus_free_spins:JSON.stringify(a.freeSpins?+a.freeSpins:0),casino_score_geo_text:JSON.stringify(this.casinoScoreGeoText(a.score)),page_afflink_click_index:JSON.stringify(_),widget_afflink_click_index:JSON.stringify(n),casino_user_country_allowed:JSON.stringify(!0),casino_bonus_currency:JSON.stringify(a.currency&&Array.isArray(a.currency)&&a.currency.length&&!a.currency.every(function(e){return null===e})?a.currency:["Not Set"]),casino_bonus_active:JSON.stringify(!a.affiliateUrl),casino_bonus_slots:JSON.stringify(a.slots.length?Object.values(a.slots):["Not Set"]),casino_bonus_category_display:JSON.stringify("Not Set"),casino_geo_rating:JSON.stringify(a.score&&Number(a.score)?Number(a.score).toFixed(1):0),casino_bonus_active_days_left:JSON.stringify(+S),casino_bonus_days_after_create:JSON.stringify(+v),casino_bonus_exclusive:JSON.stringify(!!a.exclusive&&a.exclusive),casino_bonus_code:JSON.stringify(a.code?a.code:"Not Set"),casino_bonus_cashable:JSON.stringify(!!a.cashable&&a.cashable),sponsored:JSON.stringify(!!a.sponsored)}
1),utmParams()));case 2:return e.a(2)}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"casinoScoreGeoText",value:function(e){var t="";return 5===e?t="A":e>4.5&&e<=4.9?t="B":e>4&&e<=4.5?t="C":e<=4&&(t="D"),t}},{key:"isBonusesPopupsShow",value:function(){var e=document.querySelectorAll(".bonusesPopup"),t=!1;return(e=_toConsumableArray(e)).forEach(function(e){e.classList.contains("show")&&!t&&(t=!0)}),t}},{key:"bonusesPopupEqualBonusHeight",value:function(e){var t=Math.max.apply(Math,_toConsumableArray(e.map(function(e){return e.offsetHeight})));e.forEach(function(e){e.style.minHeight=t+"px"})}},{key:"onClickPromoCodeLoop",value:function(){var e=this,t=document.querySelector('.bonusesPopup[data-type="affLinksPopup"]');t&&t.querySelectorAll('[data-element="bonus_promo"]').forEach(function(t){t.addEventListener("click",function(n){if(!JSON.parse(t.dataset.defaultPromocode)){var o;n.stopPropagation();var a=t.closest('[data-element="bonusesPopup__item"]'),i=JSON.parse(a.dataset.promo),r=a.querySelector('[data-element="bonus_promo-value"]'),s=r.innerText||(null===(o=r.dataset)||void 0===o?void 0:o.textBefore);e.copyText(s).then(function(){t.classList.contains("copied")&&t.classList.remove("copied"),t.classList.add("coping"),i||setTimeout(function(){t.classList.remove("coping"),t.classList.add("copied")},1500)})}})})}},{key:"copyText",value:function(e){return navigator.clipboard.writeText(e)}},{key:"getTerms",value:(t=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,getTermsAndConditions(t);case 1:return e.a(2,e.v)}},e)})),function(e){return t.apply(this,arguments)})},{key:"isPageExist",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch(t,{method:"HEAD"});case 1:return n=e.v,e.a(2,n.ok);case 2:return e.p=2,e.v,e.a(2,!1)}},e,null,[[0,2]])})),function(t){return e.apply(this,arguments)})}]);var e,t,n}(),AffLinksPopup=function(){function e(t,n,o){var a;return _classCallCheck(this,e),_defineProperty(a=_callSuper(this,e),"bonusCardsBody",document.querySelectorAll('[data-element="bonus_table_row"]')),a.data=t,a.loc=n,a.localCountry=o,a.selector=document.querySelector('.bonusesPopup[data-type="affLinksPopup"]'),a.title="We don't know about this casino much or this casino is restricted in your area. Please, try these casinos instead:",a}return _inherits(e,BonusesPopup),_createClass(e,[{key:"affLinksPopupInit",value:function(){this.selector&&this.affLinksPopupTrigger()}},{key:"affLinksPopupDescriptionLink",value:function(e,t){var n,o=document.createElement("div");o.classList.add("bonusesPopup__description"),"casinosanalyzer.com"===getDomainName&&checkIfAmplitudeAndAnalyticsLoaded();var a=null!==(n=__translate("Redirect me to %%casino%% anyway",this.localCountry))&&void 0!==n?n:"Redirect me to ".concat(t," anyway");return a=a.replace("%%casino%%",t),o.innerHTML='<a class="bonusesPopup__description--link">'.concat(a," â</a>"),o}},{key:"affLinksAppendDescription",value:function(e,t){var n=this.selector.querySelector(".bonusesPopup__items"),o=this.selector.querySelector(".bonusesPopup__description");o&&o.remove();var a=this.affLinksPopupDescriptionLink(e,t);a&&n.parentNode.insertBefore(a,n)}},{key:"affLinksRedirectClick",value:function(e,t,n){this.selector.querySelector(".bonusesPopup__description--link").addEventListener("click",function(){navAff(e,!0,null,"",n||e)})}},{key:"affLinksRestricted",value:function(e,t,n,o){var a=this,i=e?e.split(",").map(function(e){return e.toLowerCase()}):[],r=!1;if(this.loc&&i.length&&(r=i.find(function(e){return e===a.loc})),r||!o){!this.selector.children.length&&this.generatePopup(),this.affLinksAppendDescription(t,n),this.affLinksRedirectClick(t,e,o),document.body.classList.add("bonusesPopup__show"),this.selector.classList.add("show");var s=Array.from(this.selector.querySelectorAll(".bonusesPopup__item__bonus "));this.bonusesPopupEqualBonusHeight(s)}}},{key:"affLinksPopupTrigger",value:function(){var e=this;this.bonusCardsBody.length&&this.bonusCardsBody.forEach(function(t){t.addEventListener("click",function(){return e.affLinksRestricted(t.dataset.restricted,t.dataset.url,t.dataset.name,t.dataset.affiliate)})}),document.addEventListener("ajaxBonusAffLinksPopup",function(t){if(t.detail&&t.detail.tr){var n=t.detail.tr;e.affLinksRestricted(n.dataset.restricted,n.dataset.url,n.dataset.name,n.dataset.affiliate)}})}},{key:"show",value:function(e){e.dataset.restricted;var t=e.dataset.url;e.dataset.name;var n=e.dataset.affiliate,o=e.querySelector('[data-element="bonus_btn"]');return navAff(t,!0,null,"",n||t,o),!1}}])}(),__bridge_afflinksPopup=Object.freeze({__proto__:null,AffLinksPopup:AffLinksPopup});function onIdle(e){"requestIdleCallback"in window?requestIdleCallback(e,{timeout:arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3}):setTimeout(e,200)}
1function loadIfExists(e,t,n){document.querySelector(e)&&t().then(function(e){n(e)})}window.__cdnSharedModules={globals:__bridge_globals,translate:__bridge_translate,api:__bridge_api,CentrifugeManager:__bridge_CentrifugeManager,getProfilePath:__bridge_getProfilePath,authApi:__bridge_authApi,userReviewApi:__bridge_userReviewApi,gamificationApi:__bridge_gamificationApi,storage:__bridge_storage,secureApiClient:__bridge_secureApiClient,afflinksPopup:__bridge_afflinksPopup};var searchDropdownModulePromise=null;function loadSearchDropdown(){return searchDropdownModulePromise||(searchDropdownModulePromise=import("./chunks/scripts.bundle/SearchDropdown-raReg96r.js")),searchDropdownModulePromise}var googleOneTapDomains=["casinosanalyzer.com","kasynoanalyzer.com","casinosanalyzer.ca","ausscasinosanalyzer.com","casinosanalyzer.co.nz","bonosanalyzer.com","casinoanalyser.com"];function initCritical(){auth.initAuth();var e=document.querySelectorAll("[data-name=external--link]"),t=document.querySelectorAll("[data-name=internal--link]");checkIfAmplitudeAndAnalyticsLoaded(),adminPanelInitFn(),externalLinkClick(e),internalLinkClick(t),localeSwitcherFn(),geoSwitcherFn(),headerEventsFn(),setGrowthbookDataParams(),setGeoFactGlobal();var n=document.querySelector("#cookiesBanner");if(n){var o,a,i,r=function(){localStorage.setItem("cookiesBannerAccepted",!0),n.classList.add("hide")};null===(o=n.querySelector("#cookiesBannerAccept"))||void 0===o||o.addEventListener("click",r),null===(a=n.querySelector("#cookiesBannerDecline"))||void 0===a||a.addEventListener("click",r),null===(i=n.querySelector("#cookiesBannerClose"))||void 0===i||i.addEventListener("click",r)}var s=document.querySelector(".header__search");if(s){var c=document.querySelector("#headerSearchBtn");c&&c.addEventListener("click",function(e){s.classList.contains("show")||loadSearchDropdown().then(function(t){return(0,t.activateSearchBlock)(e)})});var l=document.querySelector("#headerSearchInputMobile");l&&l.addEventListener("click",function(e){loadSearchDropdown().then(function(t){return(0,t.activateSearchBlock)(e)})})}navigator.userAgent.indexOf("iPhone")>-1&&document.querySelector("[name=viewport]").setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1");document.querySelectorAll(".style_1").forEach(function(e){var t=document.createElement("div");t.className="style_1--wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e)})}function initPageModules(){isCurrentPage404ByDOM()||import("./chunks/scripts.bundle/userReviewInit-RXNz_HtO.js").then(function(e){return(0,e.userReviewInitFn)()}),loadIfExists(".primeBgImg",function(){return import("./chunks/scripts.bundle/PrimeBgImg-CUP03zrL.js")},function(e){return e.primeBgImgFn()}),loadIfExists('[data-element="bonus_table"]',function(){return import("./chunks/scripts.bundle/CasinoBonusTable-DcoEHa3L.js")},function(e){return e.newCasinoBonusTable()}),loadIfExists("#contactUsPage",function(){return import("./chunks/scripts.bundle/Contacts-nsQRgsuD.js")},function(e){return e.newContacts()}),loadIfExists("#writeForUsPage",function(){return import("./chunks/scripts.bundle/WriteForUs-DEND47Ds.js")},function(e){return e.writeForUs()}),loadIfExists("#partnershipPageTeam",function(){return import("./chunks/scripts.bundle/Partnership--lLTDez3.js")},function(e){return e.newPartnership()}),loadIfExists(".history__timeline",function(){return import("./chunks/scripts.bundle/HistoryTimeline-BZFTJZg8.js")},function(e){return e.newHistoryTimeline()}),loadIfExists('.editorialGuidelines__hero-tnc[data-element="editorial_intro-block"]',function(){return import("./chunks/scripts.bundle/EditorialGuidelinesHero-BhvJcof1.js")},function(e){return e.newEditorialGuidelinesHero()}),loadIfExists('[data-element="bonusesFilter"]',function(){return import("./chunks/scripts.bundle/BonusesFilter-CTjkMlz0.js")},function(e){return e.bonusesFilter.init()}),loadIfExists("[data-table-modern]",function(){return import("./chunks/scripts.bundle/CasinoBonusTableModern-BBTzCPqq.js")},function(e){return e.casinoBonusTableModern.init()}),loadIfExists('[data-element="bonus_table-eeat"]',function(){return import("./chunks/scripts.bundle/CasinoBonusEEAT-CBzNKjtp.js")},function(e){return e.casinoBonusEEAT.init()}),loadIfExists("#comingSoonOffer",function(){return import("./chunks/scripts.bundle/ComingSoonOffer-Cq0BOi-9.js")},function(e){return e.comingSoonOffer.init()});var e=document.querySelectorAll(".trustpilot-banner");e.length>0&&Promise.resolve().then(function(){return __bridge_globals}).then(function(t){var n=t.removeBannersAfterFirst;e.forEach(n)})}function initScriptLoader(){var e=document.body.dataset.version;window.getAmplitudeDeviceId=getAmplitudeDeviceId;var t=[{path:"/build/js/growthBookSDKExperiments.js?v=".concat(e),condition:!document.body.hasAttribute("data-no-growthbook")}],n=[{path:"/build/js/wisepops.js?v=".concat(e),async:!0,condition:"/"===window.location.pathname&&"casinosanalyzer.com"===getDomainName()&&!document.body.hasAttribute("data-no-wisepops")},{path:"/build/js/tagAmplitudeSDK.js?v=".concat(e),async:!0,condition:!document.body.hasAttribute("data-no-amplitude")},{path:"/build/js/tagWAAmplitudeEvents.js?v=".concat(e),async:!0,condition:!document.body.hasAttribute("data-no-amplitude")}],o=[].concat(t,n).filter(function(e){return e.condition});loadScripts(o),"/"!==window.location.pathname||"casinosanalyzer.com"!==getDomainName()||document.body.hasAttribute("data-no-wisepops")||isWisepopsLoaded()}var isWisepopsLoaded=function(){setTimeout(function(){wisepops("properties",{isLoggedIn:!!document.body.dataset.userId},{temporary:!0})},500)};function initDeferredThirdParty(){window.addEventListener("load",function(){onIdle(function(){initScriptLoader()}),!document.body.dataset.userId&&googleOneTapDomains.includes(getDomainName())&&setTimeout(function(){authGoogleOneTap.init()},0)},{once:!0})}function autoOptimizeWidgets(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=window.innerHeight;document.querySelectorAll("[data-widget-id]").forEach(function(n){if(!n.querySelector(".tableOfContentWidget")&&!n.querySelector(".stickyWidget")&&(!["SimilarCasinosWidget","CrBannerWidget","BonusWidget","RegistrationWidget","CasinoInfoWidget"].includes(n.dataset.widgetHandler)&&n.getBoundingClientRect().top+window.scrollY>t+e)){var o=n.offsetHeight;o>50&&(n.style.containIntrinsicSize="none ".concat(o,"px"),n.style.contentVisibility="auto")}})}function initIdle(){var e;onIdle(function(){initOffers(),centrifugeManager.initialize()}),onIdle(function(){document.body.dataset.gamificationEnabled&&(import("./chunks/scripts.bundle/questPopup-Du_rpA9A.js").then(function(e){return e.questPopup.init()}),import("./chunks/scripts.bundle/dayStreakPopup-BUqmE5Ld.js").then(function(e){return e.dayStreakPopup.init()})),bonusCoins.init(),tgRegPopup.init(),reactionsFeedbackPopup.init(),isCurrentPage404ByDOM()||import("./chunks/scripts.bundle/hotBonusesPopup-DkZOFcG5.js").then(function(e){return e.hotBonuses.init()}),"casinosanalyzer.co.nz"===getDomainName()&&import("./chunks/scripts.bundle/requiredDayPopup-DaNngqRa.js").then(function(e){return e.requiredDayPopup.init()})}),onIdle(function(){requestAnimationFrame(function(){return autoOptimizeWidgets(100)})}),window.addEventListener("resize",function(){clearTimeout(e),e=setTimeout(function(){requestAnimationFrame(function(){return autoOptimizeWidgets(100)})},150)})}document.addEventListener("DOMContentLoaded",function(){initCritical(),initPageModules(),initDeferredThirdParty(),initIdle()});export{AffLinksPopup as A,getTermsAndConditions as B,getWidgetAffLinkClickIndex as C,hexToHsl as D,getL
1ocaleCountry as E,elementInViewport as F,getProfilePath as G,authGamificationPopup as H,updateCoinsBalance as I,fetchQuests as J,brevoUtmData as K,authPopup as L,BonusesPopup as M,storeUserReview as N,storeUserReviewScreenshots as O,__translate as _,_asyncToGenerator as a,_regenerator as b,centrifugeManager as c,_objectSpread2 as d,eventID as e,fetchOffers as f,buildExternalId as g,geoCloudflareLocation as h,_createClass as i,_classCallCheck as j,_defineProperty as k,_regeneratorValues as l,_createForOfIteratorHelper as m,baseHttp as n,_toConsumableArray as o,_slicedToArray as p,changeCountry as q,deleteCookie as r,secureApiFetch as s,_inherits as t,_superPropGet as u,_callSuper as v,navAff as w,utmParams as x,_typeof as y,bonusCoins as z};
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.