1"use strict";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})(e)}function promocodeActivate(){var e=$("#"+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"promocode")).val();return AjaxRequest.action("/action/hosting/order/promocode/activate/",{promocode:e})}function promocodeDelete(){return AjaxRequest.action("/action/hosting/order/promocode/remove/")}$(document).ready(function(){detectDarkMode(),initSuggestionLink();function e(e){!1===t.contains(e.target)&&!1===o.contains(e.target)&&(t.classList.remove("show-menu"),o.classList.remove("show-menu"))}var t=document.querySelector(".l-sidebar"),o=document.querySelector(".custom-icon-menu");document.querySelector(".custom-icon-menu")&&(document.querySelector("body").addEventListener("click",e),document.querySelector("body").addEventListener("touchstart",e),document.querySelector(".custom-icon-menu").addEventListener("click",function(){t.classList.toggle("show-menu"),o.classList.toggle("show-menu")})),changeSizeLabel()});var DiscountPopup={_block:null,_timerBlock:null,init:function(e){this._block=document.getElementById("stop_lead"),this._timerBlock=document.querySelector("#sl_timer"),!this.wasInCart()&&this.inCart()&&(localStorage.wasInCart=1),0<e&&!this.hasTimer||(this.isOpened||this.hasTimer?this.hasTimer&&(document.querySelector("#sl_popup").remove(),this.runTimer()):(this._block.style.display="block",this._block.addEventListener("mouseover",this.handlePageOut)))},handlePageOut:function(e){var t=DiscountPopup;if(!t.isOpened)return t.openPopup()},openPopup:function(){this.isOpened=!0,AjaxRequest.action("/action/marketing/discount_timer/")},initPromo:function(e){if(1!=+e)return DiscountPopup.cancel();DW.close(),DiscountPopup.hasTimer=!0,DiscountPopup.runTimer()},runTimer:function(){var e=this;clearInterval(this._interval),this.updateTimer(),this._interval=setInterval(function(){return e.updateTimer()},1e3)},updateTimer:function(){if(!DiscountPopup.timerVal||DiscountPopup.timerVal<0)return DiscountPopup.cancel(),DiscountPopup.inCart()&&location.reload(),!1;var e=parseInt(DiscountPopup.timerVal/60),t=parseInt(DiscountPopup.timerVal%60),o=(e=""+(e=e<10?"0".concat(e):e),t=""+(t=t<10?"0".concat(t):t),DiscountPopup._timerBlock.querySelector(".slp-minutes")),n=DiscountPopup._timerBlock.querySelector(".slp-seconds");o.innerHTML="<div>".concat(e[0],"</div><div>").concat(e[1],"</div>"),n.innerHTML="<div>".concat(t[0],"</div><div>").concat(t[1],"</div>"),DiscountPopup._timerBlock.style.display="flex"},getDiscount:function(){return AjaxRequest.action("/action/hosting/order/promocode/get/",null,DiscountPopup.initPromo)},cancel:function(){return DW.close(),clearInterval(DiscountPopup._interval),DiscountPopup.hasTimer=!1,DiscountPopup._timerBlock.style.display="none",DiscountPopup._block.style.display="none",!0},set isOpened(e){localStorage.discountPopupIsOpened=e?1:""},get isOpened(){return!(this.wasInCart()&&!localStorage.discountPopupIsOpened)},inCart:function(){var e=location.href;return 0===(e=new URL(e)).pathname.indexOf("/hostingcart")},wasInCart:function(){return localStorage.wasInCart||0},get timerVal(){var e;return void 0===localStorage.discountTimerValue&&(e=(e=new Date).getTime()+9e5,localStorage.discountTimerValue=e),parseInt((localStorage.discountTimerValue-new Date)/1e3)},set timerVal(e){localStorage.discountTimerValue=""},get hasTimer(){return 0<localStorage.discountTimerIsset||!1},set hasTimer(e){localStorage.discountTimerIsset=e?1:0},stopAndRemoveTimer:function(){this.hasTimer=0,$("#sl_timer").remove()}};function initSuggestionLink(){if(-1!==location.hash.indexOf("#suggestion/"))return AjaxRequest.action("/action/suggestion/form/")}function changeSizeLabel(){var e=document.querySelectorAll(".c-plans__labels .c-plans__label"),t=document.querySelectorAll(".c-plans__plan");if("object"===_typeof(e)||"object"===_typeof(t))for(var o in t){o=t[o];if("object"===_typeof(o)){var n=o.querySelectorAll(".c-plans__plan-data");if("object"===_typeof(n))for(var i in n){var r=e[i],i=n[i];"object"===_typeof(r)&&0!==r.offsetHeight&&(r.offsetHeight>i.offsetHeight&&(i.style.height=r.offsetHeight+"px"),r.offsetHeight<i.offsetHeight)&&(r.style.height=i.offsetHeight+"px")}}}return!1}function detectDarkMode(){var e=0<$(".switch_dark_theme, .switch-light").length,t=$("body").hasClass("_dark"),o=$("body").hasClass("_light"),n=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;e&&!o&&!t&&n&&switchTheme()}$(window).on("resize",function(){changeSizeLabel()});
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.