yourbrand-18274.kxcdn.com
Open in
urlscan Pro
2a0b:4d07:102::1
Public Scan
URL:
https://yourbrand-18274.kxcdn.com/files/staticContent/3.58/websitesResources/websitesResources/postInitModule-933caf45611da59deb9b...
Submission: On October 25 via api from BE — Scanned from DE
Submission: On October 25 via api from BE — Scanned from DE
Form analysis
0 forms found in the DOMText Content
//# sourceMappingURL=postInitModule.js.map var $jscomp={scope:{},getGlobal:function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global?global:b}};$jscomp.global=$jscomp.getGlobal(this);$jscomp.patches={};$jscomp.patch=function(b,d){($jscomp.patches[b]=$jscomp.patches[b]||[]).push(d);var a=$jscomp.global;b=b.split(".");for(var f=0;f<b.length-1&&a;f++)a=a[b[f]];b=b[b.length-1];a&&a[b]instanceof Function&&(a[b]=d(a[b]))};$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global.Symbol){$jscomp.global.Symbol=$jscomp.Symbol;var b=[],d=function(a){return function(f){b=[];f=a(f);for(var g=[],d=0,l=f.length;d<l;d++){var e;a:if(e=f[d],e.length<$jscomp.SYMBOL_PREFIX.length)e=!1;else{for(var p=0;p<$jscomp.SYMBOL_PREFIX.length;p++)if(e[p]!=$jscomp.SYMBOL_PREFIX[p]){e=!1;break a}e=!0}e?b.push(f[d]):g.push(f[d])}return g}};$jscomp.patch("Object.keys",d);$jscomp.patch("Object.getOwnPropertyNames",d);$jscomp.patch("Object.getOwnPropertySymbols", function(a){return function(f){d.unused=Object.getOwnPropertyNames(f);b.push.apply(a(f));return b}})}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(b){return $jscomp.SYMBOL_PREFIX+b+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();$jscomp.global.Symbol.iterator||($jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));$jscomp.initSymbolIterator=function(){}}; !function(b){function d(f){if(a[f])return a[f].exports;var g=a[f]={i:f,l:!1,exports:{}};return b[f].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var a={};d.m=b;d.c=a;d.d=function(a,b,k){d.o(a,b)||Object.defineProperty(a,b,{configurable:!1,enumerable:!0,get:k})};d.n=function(a){var b=a&&a.__esModule?function(){return a.default}:function(){return a};return d.d(b,"a",b),b};d.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};d.p="";d(d.s=7881)}({1072:function(b,d,a){function f(a){var b= g();return function(){var c;c=m()(a);if(b){var h=m()(this).constructor;c=Reflect.construct(c,arguments,h)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b= a(7183);var p=a.n(b);b=a(7181);var m=a.n(b),n=function(a){function b(){return k()(this,b),c.apply(this,arguments)}e()(b,a);var c=f(b);return l()(b,[{key:"addPopupWrapperToDOM",value:function(h){var a=$('<div id="ww_cmslogin_popup_wrapper" class="colors concepts entities light-theme"></div>');a.appendTo("body");$('<div id="ww_popup_area"></div>').appendTo("body");!0!==h&&(a.on("click",function(h){hideAllPopups()}),$("#ww_cmslogin_popup_wrapper").on("click",".ww_popup",function(h){h.stopPropagation()}))}}, {key:"showPopup",value:function(h){cmsLoginService.lockPage();h.show();this.setPopupAsActive(h)}},{key:"hidePopup",value:function(h){h.hide();this.setPopupAsUnActive(h);cmsLoginService.unlockPage()}},{key:"addPopupToDom",value:function(h){h.appendTo($("#ww_cmslogin_popup_wrapper"))}},{key:"addLockToPopup",value:function(h){h.append($('<div class="lock"><div class="lockBackground"></div><div class="lockSpinner"></div></div>'))}},{key:"addWaitingIndicator",value:function(h){h.addClass("waiting")}}, {key:"removeWaitingIndicator",value:function(h){h.removeClass("waiting")}},{key:"addWaitingIndicatorToActivePopup",value:function(){this.addWaitingIndicator(this.getActivePopup())}},{key:"removeWaitingIndicatorFromActivePopup",value:function(){this.removeWaitingIndicator(this.getActivePopup())}},{key:"setPopupAsUnActive",value:function(h){h.removeClass("active")}},{key:"createNewPopup",value:function(h,a,b,c){if(!1===webwave.isFunction(h))throw Error("PopupClass must be specified");var r=(Array.prototype.slice.call(arguments, 1),new (Function.prototype.bind.apply(h,arguments)));return this.popupManager.registerPopup(r),r}},{key:"setPopupManager",value:function(h){this.popupManager=h}},{key:"setPopupAsActive",value:function(h){h.addClass("active")}},{key:"getActivePopup",value:function(){return $("#ww_cmslogin_popup_wrapper").children(".ww_popup.active")}}]),b}(a(7876).a)},1076:function(b,d,a){b=a(7179);var f=a.n(b);b=a(7180);var g=a.n(b);a=function(){function a(b,e,d){f()(this,a);this._$input=b;this._$label=e;this._validFunction= d}return g()(a,[{key:"setInput",value:function(a){this._$input=a}},{key:"setLabel",value:function(a){this._$label=a}},{key:"getInput",value:function(){return this._$input}},{key:"getLabel",value:function(){return this._$label}},{key:"isValid",value:function(){return this._validFunction(this._$input,this._$label)}},{key:"getValue",value:function(){return this._$input.val().trim()}},{key:"setValidationFunction",value:function(a){this._validFunction=a}}]),a}();webwave.provide("com.webwave.login.WebwaveFormField"); com.webwave.login.WebwaveFormField=a},1077:function(b,d,a){b=a(7179);var f=a.n(b);b=a(7180);var g=a.n(b);a=function(){function a(b){f()(this,a);this._emailField;this._passwordField;this._codeField;this._successCallback;this._failCallback;this._$popup=b}return g()(a,[{key:"_defaultValid",value:function(){$(".notValidate").removeClass("notValidate");var a=!0;return webwave.isDef(this._emailField)&&(a=this._emailField.isValid()&&a),webwave.isDef(this._passwordField)&&(a=this._passwordField.isValid()&& a),a}},{key:"isValid",value:function(){return this._defaultValid()}},{key:"setSuccessCallback",value:function(a){this._successCallback=a}},{key:"setFailCallback",value:function(a){this._failCallback=a}},{key:"getSuccessCallback",value:function(){return this._successCallback}},{key:"getPopup",value:function(){return this._$popup}},{key:"getFailCallback",value:function(){return this._failCallback}},{key:"setEmailField",value:function(a){this._emailField=a}},{key:"getEmailField",value:function(){return this._emailField}}, {key:"setPasswordField",value:function(a){this._passwordField=a}},{key:"getPasswordField",value:function(){return this._passwordField}},{key:"setCodeField",value:function(a){this._codeField=a}},{key:"getCodeField",value:function(){return this._codeField}},{key:"getPassword",value:function(){if(webwave.isDef(this._passwordField))return this._passwordField.getValue()}},{key:"getEmail",value:function(){if(webwave.isDef(this._emailField))return this._emailField.getValue()}},{key:"getCode",value:function(){if(webwave.isDef(this._codeField))return this._codeField.getValue()}}]), a}();webwave.provide("com.webwave.login.WebwaveForm");com.webwave.login.WebwaveForm=a},1078:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var h=m()(this).constructor;c=Reflect.construct(c,arguments,h)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})), !0}catch(a){return!1}}a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b);b=a(7876);var n=(a(1077),a(1076),function(a){function b(){var h;k()(this,b);for(var a=arguments.length,q=Array(a),e=0;e<a;e++)q[e]=arguments[e];return h=c.call.apply(c,[this].concat(q)),h.objectService=void 0,h.popupService=void 0,h.userService=void 0,h}e()(b,a);var c=f(b);return l()(b,[{key:"init",value:function(){webwave.isFunction(window.externalCmsInit)? window.externalCmsInit(this):!0===this.isDynamicPopupsShouldByAdded()&&this.initCmsLogin($("#websiteId").val(),location.protocol+"//"+location.host+pageService.getPathForAjax()+"/admin")}},{key:"initCmsLogin",value:function(h,a){var b=this;this.initPopups();this.addLoginPanelDynamically(h);this.initLoginPanel(a);this.initResetPasswordPanel();this.initRegistrationPanel();this.initChangePassword();this.handleGetParam();$(window).resize(function(){b.centerPopup()})}},{key:"sendLoginParams",value:function(h, a,b){var c=this;h.isValid()&&(h.getPopup().addClass("waiting"),$.ajax({url:a,type:"post",data:{j_username:h.getEmail(),j_password:h.getPassword(),websiteIdAuthKey:$("#ww_login_form").children("#websiteIdAuthKey").val(),websiteLanguage:utilService.getLanguageCode()},success:function(a){1==a.success?(webwave.isDef($.cookie)&&""!==$.cookie("requestedUrl")&&(b=$.cookie("requestedUrl"),$.cookie("requestedUrl",null,{path:"/"})),c.loginSuccessCallback(),a=pageService.getPathForAjax(),1==c.getLoginToolParam()|| "normal"==c.getGETparam("mode")?a+="/"+utilService.getLanguageCode():1==c.are_cookies_enabled()?a=b:a+="?cookieDisabled=true",document.location.href=a):h.getFailCallback()()}}))}},{key:"initLoginPanel",value:function(a){var b=this;$("#ww_login_popup_close_button").click(function(){b.hideLoginPanel()});$("#login_submit_button").click(function(q){q.preventDefault();q=$("#ww_login_form").attr("action");var c=new com.webwave.login.WebwaveForm($("#ww_cms_login_popup"));c.setEmailField(new com.webwave.login.WebwaveFormField($("#j_username"), $("#login_email_validate"),b.validateEmail.bind(b)));c.setPasswordField(new com.webwave.login.WebwaveFormField($("#j_password"),$("#login_password_validate"),b.validatePassword.bind(b)));c.setFailCallback(function(){$("#ww_cms_login_popup").removeClass("waiting");$("#ww_cms_login_popup").find(".not_valid_form").show().text(i18n.t("popups.login.wrongData"))});b.sendLoginParams(c,q,a)})}},{key:"initRegistrationPanel",value:function(){var a=this,b=this;$("#ww_login_popup_registration").click(function(b){b.preventDefault(); a.showRegistrationPanel()});$("#ww_registration_popup_close_button").click(function(){a.hideRegistrationPanel()});$("#ww_registration_popup_login").click(function(b){b.preventDefault();a.showLoginPanel(a.getLoginToolParam(),a.getRegistrationParam())});$("#ww_registration_submit_button").click(function(a){a.preventDefault();var h=$("#ww_registration_username"),c=$("#ww_registration_password");if(b.validateWebwaveForm(h,h.next(),c,c.next())){a=h.val().trim();var c=c.val(),e=$("#ww_cms_registration_popup"); e.addClass("waiting");$.ajax({url:pageService.getPathForAjax()+"/publishedWebsite/registerUserInWebsite",type:"post",data:{email:a,password:c,websiteId:$("#ww_registration_websiteId").val()},success:function(a){e.removeClass("waiting");"200"==a?document.location.href=pageService.getPathForAjax()+"/"+utilService.getLanguageCode():"201"==a?(h.addClass("notValidate"),h.next().text(i18n.t("popups.createAccount.userExists")).show()):"202"==a?(h.addClass("notValidate"),h.next().text(i18n.t("popups.createAccount.webmasterUser")).show()): alert("B\u0142\u0105d rejestracji")}})}})}},{key:"sendAjaxToResetPassword",value:function(a){a.isValid()&&(a.getPopup().addClass("waiting"),$.ajax({url:pageService.getPathForAjax()+"/main/sendResetPasswordLink",type:"post",data:{email:a.getEmail(),resetRequest:$("#resetRequest").val(),languageCode:utilService.getLanguageCode()},success:function(b){a.getSuccessCallback()(b)}}))}},{key:"initResetPasswordPanel",value:function(){var a=this;$("#remember_password").click(function(b){b.preventDefault(); a.showResetPasswordPanel()});$("#reset_password_popup_close_button").click(function(){a.hideResetPasswordPanel()});$("#reset_password_success_popup_close_button,#ww_reset_password_success_submit_button").click(function(){a.hideResetPasswordPanel()});$("#reset_password_submit_button").click(function(c){c.preventDefault();c=new com.webwave.login.WebwaveForm($("#reset_password_popup"));c.setEmailField(new com.webwave.login.WebwaveFormField($("#reset_password_email"),$("#reset_password_email_validate"), a.validateEmail.bind(a)));c.setSuccessCallback(b);a.sendAjaxToResetPassword(c)});var b=function(b){$("#reset_password_popup").removeClass("waiting");"200"==b?a.showResetPasswordSuccesPanel():"201"==b?($("#reset_password_email").addClass("notValidate"),$("#reset_password_email").attr("disabled",!1),$("#reset_password_email_validate").text(i18n.t("popups.remindPassword.forbidden")).show()):alert("B\u0142\u0105d rejestracji")}}},{key:"sendAjaxToChangePassword",value:function(a,b){a.isValid()&&(a.getPopup().addClass("waiting"), b={password:a.getPassword(),resetRequest:$("#changePasswordRequest").val(),languageCode:utilService.getLanguageCode(),hash:this.getGETparam("hash"),id:this.getGETparam("user"),withAutoAutenticate:b||!1},utilService.makeAjaxCall({url:"/main/changePassword",dataParams:b},a.getSuccessCallback(),a.getFailCallback()))}},{key:"initChangePassword",value:function(){var a=this,b=function(b){$("#change_password_popup").removeClass("waiting");a.hideAllPopups();a.lockPage();$("#change_password_popup_popup").show(); a.centerPopup()},c=function(a){$("#change_password_popup").removeClass("waiting");$("#change_password_link_validate").addClass("notValidate");$("#change_password").attr("disabled",!1);$("#change_password_link_validate").text(a.msg).show()};$("#change_password").click(function(b){b.preventDefault();a.showChangePassword()});$("#change_password_submit_button").click(function(e){e.preventDefault();e=new com.webwave.login.WebwaveForm($("#change_password_popup"));e.setPasswordField(new com.webwave.login.WebwaveFormField($("#change_password_input"), $("#change_password_link_validate"),a.validatePassword.bind(a)));e.setSuccessCallback(b);e.setFailCallback(c);a.sendAjaxToChangePassword(e,!1)});$("#change_password_popup_close_button,#ww_change_password_success_submit_button").click(function(){a.showLoginPanel()})}},{key:"_focusUsernameInput",value:function(){$("#j_username").focus()}},{key:"showLoginPanel",value:function(a,b){var c=$("#ww_login_popup_registration");void 0===b||"false"==b?(c.next().hide(),c.hide(),b=!1):(b=!0,c.next().show(),c.show()); void 0!==a&&1==a||(a=!1);this.setLoginToolParam(a);this.setRegistrationParam(b);this.hideAllPopups();this.lockPage();$("#ww_cms_login_popup").show();this.clearValues();this.centerPopup();this._focusUsernameInput();void 0!==this.getGETparam("regularUser")&&$("#ww_login_popup_info").text(i18n.t("popups.regularUserToCMSInfo")).show()}},{key:"hideLoginPanel",value:function(){$("#ww_cms_login_popup").hide();this.unlockPage()}},{key:"showResetPasswordPanel",value:function(){this.hideAllPopups();this.lockPage(); $("#reset_password_popup").show();this.clearValues();this.centerPopup()}},{key:"showChangePassword",value:function(){this.hideAllPopups();this.lockPage();$("#change_password_popup").show();this.clearValues();this.centerPopup()}},{key:"hideResetPasswordPanel",value:function(){$("#reset_password_popup").hide();this.unlockPage()}},{key:"_focusRegisterUsernameInput",value:function(){$("#ww_registration_username").focus()}},{key:"showRegistrationPanel",value:function(){this.hideAllPopups();this.popupService.showPopup($("#ww_cms_registration_popup")); this.clearValues();this.centerPopup();this._focusRegisterUsernameInput()}},{key:"hideRegistrationPanel",value:function(){$("#ww_cms_registration_popup").hide();this.unlockPage()}},{key:"showResetPasswordSuccesPanel",value:function(){this.hideAllPopups();this.lockPage();$("#reset_password_success_popup").show();this.centerPopup()}},{key:"hideResetPasswordSuccesPanel",value:function(){$("#reset_password_success_popup").hide();this.unlockPage()}},{key:"lockPage",value:function(){$("#ww_popup_area").show(); $("#ww_cmslogin_popup_wrapper").show()}},{key:"unlockPage",value:function(){$("#ww_popup_area").hide();$("#ww_cmslogin_popup_wrapper").hide()}},{key:"hideAllPopups",value:function(){$(".ww_popup").hide();this.unlockPage()}},{key:"clearValues",value:function(){$("input[type=text][disabled=false]").val("");$("input[type=password]").val("");$(".notValidate").removeClass("notValidate");$(".ww_validation").text("").hide()}},{key:"validatePassword",value:function(a,b){var c=!0;return""==a.val().trim()&& (a.addClass("notValidate"),c=!1,b.show().text(i18n.t("popups.emptyField"))),c}},{key:"validateWebwaveForm",value:function(a,b,c,e){a.removeClass("notValidate");c.removeClass("notValidate");return this.validateEmail(a,b)*this.validatePassword(c,e)}},{key:"validateEmail",value:function(a,b){var c=!0,e=a.val().trim();return $(".ww_validation").text("").hide(),""==e?(a.addClass("notValidate"),c=!1,b.text(i18n.t("popups.emptyField")).show()):0==this.isMailValid(e)&&(a.addClass("notValidate"),c=!1,b.text(i18n.t("popups.incorrectMail")).show()), c}},{key:"isMailValid",value:function(a){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)}},{key:"centerPopup",value:function(){var a=($(".ww_popup:visible").height(),$(window).height(),($(window).height()-$(".ww_popup:visible").outerHeight())/2);$(".ww_popup:visible").css("margin-top",.4*a+"px");$(".ww_popup:visible").css("top","0px")}},{key:"getGETparam",value:function(a){for(var b= window.location.search.substr(1).split("&"),c={},e=0;e<b.length;e++){var r=b[e].split("=");c[r[0]]=r[1]}return c[a]}},{key:"isGETParamDef",value:function(a){return-1<window.location.search.indexOf(a)}},{key:"addLoginPanelDynamically",value:function(a){void 0===a&&(a="ww");var b=pageService.getPathForAjax(),c="";"/webwaver_front"==b&&(c='<div class="ww_linkBox" id="autologinToSo"><a href="/webwaver_front/serviceOwnerPanel/loginToSOPanel?websiteId='+a+'">Zaloguj si\u0119 automatycznie do SO</a></div><div class="ww_linkBox" id="autologinAsWebmaster"><a href="/webwaver_front/webmasterPanel/logInAndShowWebmasterWebsites">Zaloguj si\u0119 jako WebMaster</a></div>'); c=$('<div id="ww_cms_login_popup" class="ww_popup"><div id="ww_login_popup_close_button" class="ww_close_button"></div><div class="ww_popup_content"><div class="ww_popup_logo"></div><span id="ww_login_popup_info" class="ww_validation"></span><div class="ww_form_label ww_form_label_login">'+i18n.t("popups.login.title")+'</div><form action="'+b+'/j_spring_security_check" method="POST" id="ww_login_form"><input id="j_username" name="j_username" type="text" name class="field" placeholder="'+i18n.t("popups.emailPlaceholder")+ '..." /><span id="login_email_validate" class="ww_validation"></span><input id="j_password" name="j_password" type="password" class="field" placeholder="'+i18n.t("popups.passwordPlaceholder")+'..." /><span id="login_password_validate" class="ww_validation not_valid_form"></span><input id="login_submit_button" type="submit" class="submit green_button" value="'+i18n.t("popups.login.buttonLabel")+'" /><input type="hidden" name="websiteIdAuthKey" value="'+a+'" id="websiteIdAuthKey" /> </form><div id="remember_password" class="ww_linkBox"><a href="">'+ i18n.t("popups.forgotPassword")+'</a></div><div id="ww_login_popup_registration" class="ww_linkBox"><a href="">'+i18n.t("popups.login.noAccount_register")+"</a></div>"+c+"</div></div>");c.append($('<div class="lock"><div class="lockBackground"></div><div class="lockSpinner"></div></div>'));b=$('<div id="ww_cms_registration_popup" class="ww_popup"><div id="ww_registration_popup_close_button" class="ww_close_button"></div><div class="ww_popup_content"><div class="ww_popup_logo"></div><div class="ww_form_label ww_form_label_login">'+ i18n.t("popups.createAccount.title")+'</div><form action="'+b+'/registration" method="POST" id="ww_registration_form"><input id="ww_registration_username" name="ww_registration_username" type="text" name class="field" placeholder="'+i18n.t("popups.emailPlaceholder")+'..." /><span id="ww_registration_email_validate" class="ww_validation"></span><input id="ww_registration_password" name="ww_registration_password" type="password" class="field" placeholder="'+i18n.t("popups.passwordPlaceholder")+'..." /><span id="ww_registration_passwrod_validate" class="ww_validation"></span><input type="hidden" name="ww_registration_websiteId" value="'+ a+'" id="ww_registration_websiteId" /> <input id="ww_registration_submit_button" type="submit" class="submit green_button" value="'+i18n.t("popups.createAccount.buttonTitle")+'" /></br><span id="ww_registration_popup_login" class="ww_linkBox"><a href="">'+i18n.t("popups.createAccount.haveAnAccount")+'</a></span><br><input type="hidden" name="websiteId value="'+a+'" id="ww_registration_websiteId" /></form></div></div>');b.append($('<div class="lock"><div class="lockBackground"></div><div class="lockSpinner"></div></div>')); var e=$('<div id="reset_password_popup" class="ww_popup"><div id="reset_password_popup_close_button" class="ww_close_button"></div><div class="ww_popup_content"><div class="ww_popup_logo"></div><div class="ww_form_label ww_form_label_login">'+i18n.t("popups.forgotPassword")+'</div><form id="ww_reset_password_form"><input id="reset_password_email" type="text" name="email" class="field" placeholder="'+i18n.t("popups.emailPlaceholder")+'..." /><input type="hidden" id="resetRequest" value="'+a+'" name="resetRequest"><span id="reset_password_email_validate" class="ww_validation"></span><input id="reset_password_submit_button" type="submit" class="submit green_button_dark" value="'+ i18n.t("popups.remindPassword.remindMeMyPassword")+'" /></form></div></div>');e.append($('<div class="lock"><div class="lockBackground"></div><div class="lockSpinner"></div></div>'));var r=$('<div id="reset_password_success_popup" class="ww_popup"><div id="reset_password_success_popup_close_button" class="ww_close_button"></div><div class="ww_popup_content"><div class="ww_popup_logo"></div><div>'+i18n.t("popups.remindPassword.passwordSendLinkInfo")+'</div><input id="ww_reset_password_success_submit_button" type="submit" class="submit green_button_dark" value="OK" /></div></div>'); a=$('<div id="change_password_popup" class="ww_popup"><div id="change_password_popup_close_button" class="ww_close_button"></div><div class="ww_popup_content"><div class="ww_popup_logo"></div><div class="ww_form_label ww_form_label_login">'+i18n.t("popups.changePassword.title")+'</div><form id="ww_change_password_form"><input id="change_password_input" type="password" name="newPassword" class="field" placeholder="'+i18n.t("popups.changePassword.inputPlaceholder")+'..." /><input type="hidden" id="changePasswordRequest" value="'+ a+'" name="resetRequest"><span id="change_password_link_validate" class="ww_validation"></span><input id="change_password_submit_button" type="submit" class="submit green_button_dark" value="'+i18n.t("popups.changePassword.buttonTitle")+'" /></form></div></div>');a.append($('<div class="lock"><div class="lockBackground"></div><div class="lockSpinner"></div></div>'));var d=$('<div id="change_password_popup_popup" class="ww_popup"><div id="change_password_popup_close_button" class="ww_close_button"></div><div class="ww_popup_content"><div class="ww_popup_logo"></div><div>'+ i18n.t("popups.changePassword.changeSuccessPasswordInfo")+'</div><input id="ww_change_password_success_submit_button" type="submit" class="submit green_button_dark" value="'+i18n.t("popups.changePassword.loginButtonTitle")+'" /></div></div>');c.appendTo($("#ww_cmslogin_popup_wrapper"));b.appendTo($("#ww_cmslogin_popup_wrapper"));e.appendTo($("#ww_cmslogin_popup_wrapper"));r.appendTo($("#ww_cmslogin_popup_wrapper"));a.appendTo($("#ww_cmslogin_popup_wrapper"));d.appendTo($("#ww_cmslogin_popup_wrapper")); this.addInfoPopupDynamically()}},{key:"setLoginToolParam",value:function(a){$("#ww_cms_login_popup").data("loginToolParam",a)}},{key:"getLoginToolParam",value:function(){return $("#ww_cms_login_popup").data("loginToolParam")}},{key:"setRegistrationParam",value:function(a){$("#ww_cms_login_popup").data("registrationParam",a)}},{key:"getRegistrationParam",value:function(){return $("#ww_cms_login_popup").data("registrationParam")}},{key:"addInfoPopupDynamically",value:function(){$('<div id="infoPopup" class="ww_popup"><div id="reset_password_success_popup_close_button" class="ww_close_button"></div><div class="ww_popup_content"><div class="ww_popup_logo"></div><div id="popupText"></div><input id="ww_reset_password_success_submit_button" type="submit" class="submit green_button_dark" value="OK" /></div></div>').appendTo($("#ww_cmslogin_popup_wrapper"))}}, {key:"handleGetParam",value:function(){var a=this.getGETparam("login");webwave.isDef(a)&&"true"===a?this.showLoginPanel():this.isGETParamDef("editedBy")?($("#popupText").html(i18n.t("popups.infoPopup.editedByInfo",{userName:this._getEditedByOrDefault()})),this.showInfoPopup()):this.isGETParamDef("redirectedFromCMS")?($("#popupText").html(i18n.t("popups.infoPopup.notActive")),this.showInfoPopup()):this.isGETParamDef("cookieDisabled")?($("#popupText").html(i18n.t("popups.infoPopup.cookieDisabled")), this.showInfoPopup()):this.isGETParamDef("changePassword")?this.showChangePassword():this.isGETParamDef("register")&&this.showRegistrationPanel()}},{key:"_getEditedByOrDefault",value:function(){var a=this.getGETparam("editedBy");return"null"!==a?a:i18n.t("popups.infoPopup.anonymousUser")}},{key:"showInfoPopup",value:function(){this.hideAllPopups();this.lockPage();$("#infoPopup").show();this.centerPopup()}},{key:"are_cookies_enabled",value:function(){var a=!!navigator.cookieEnabled;return void 0!== navigator.cookieEnabled||a||(document.cookie="testcookie",a=-1!=document.cookie.indexOf("testcookie")),a}},{key:"initPopups",value:function(a){var b=this;this.popupService.addPopupWrapperToDOM(a);$("#ww_cmslogin_popup_wrapper").on("click",".ww_popup .ww_close_button",function(){$(this).parents(".ww_popup").hide();b.unlockPage()})}},{key:"isDynamicPopupsShouldByAdded",value:function(){var a,b=!1;return(this.isSupportedGetParam()||0<(null===(a=this.objectService)||void 0===a?void 0:a.countWObjectsByClass(com.webwave.publication.object.WLoginTool)))&& (b=!0),b}},{key:"isSupportedGetParam",value:function(){return webwave.isDef(this.getGETparam("login"))||this.isGETParamDef("editedBy")||this.isGETParamDef("cmsDisabled")||this.isGETParamDef("redirectedFromCMS")||this.isGETParamDef("changePassword")||this.isGETParamDef("register")}},{key:"loginSuccessCallback",value:function(){}},{key:"userLogged",value:function(){return this.userService.userLogged()}},{key:"setPopupService",value:function(a){this.popupService=a}},{key:"setObjectService",value:function(a){this.objectService= a}},{key:"setUserService",value:function(a){this.userService=a}}]),b}(b.a))},1079:function(b,d,a){a.d(d,"a",function(){return k});b=a(7179);var f=a.n(b);b=a(7180);var g=a.n(b),k=function(){function a(){f()(this,a)}return g()(a,[{key:"enteredViewportHandler",value:function(){throw Error("Not supported for abstract class");}},{key:"getDomObject",value:function(){throw Error("Not supported for abstract class");}}]),a}()},1095:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var h= m()(this).constructor;c=Reflect.construct(c,arguments,h)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b),n=function(a){function b(){var a; return k()(this,b),a=c.call(this),a._initializedSnipcart=!1,a._snipcartApiKey="ODQ3ZTRhODEtOTQ1ZS00NDMxLWExMWItNWU3YmQ4NWM4Y2FhNjM2NjYyMjc1Mjk2MTcwNTU5",a._entry="",a._language="en",a.utilService=void 0,a}e()(b,a);var c=f(b);return l()(b,[{key:"init",value:function(a){this._entry=a;this._initLanguage();this._entry===b.PUBLICATION_ENTRY?this._detectIfSnipcartElementsOnPage()&&(this._updateSnipcartApiKey(),this._addWebpageUrlToProductButtons(),this._prepareSnipcartParts()):this._prepareSnipcartParts()}}, {key:"_initLanguage",value:function(){this._entry===b.PUBLICATION_ENTRY?(this._language=$("#ww_language_code").val(),$("html").attr("lang",this._language)):(this._language=config.registrationLangauge,$("html").attr("lang",this._language))}},{key:"_prepareSnipcartParts",value:function(){(this._entry===b.PUBLICATION_ENTRY||com.webwave.utils.Environment.isNotTest())&&(this._addSnipcartReadyListener(),this._loadDynamicSnipcartJS(),this._loadDynamicSynipcartCSS())}},{key:"_addSnipcartReadyListener",value:function(){var a= this;document.addEventListener("snipcart.ready",function(){a._initializedSnipcart=!0;Snipcart.setApplicationId(b.WEBWAVE_ID);var c=a._prepareSnipcartTranslationFunction();a._translateSnipcart(c)})}},{key:"_prepareSnipcartTranslationFunction",value:function(){var a=this;return function(b){Snipcart.execute("registerLocale",a._language,b)}}},{key:"_translateSnipcart",value:function(a){var c=void 0;this._entry===b.PUBLICATION_ENTRY?this.utilService.makeAjaxCall({url:"/publishedWebsite/getTranslations", dataParams:{type:b.TRANSLATION_SNIPCART,language:this._language}},function(b){a(b)}):webwave.isDef(i18n.store.data[this._language])&&(c=i18n.store.data[this._language].translation.snipcart,a(c))}},{key:"_loadDynamicSnipcartJS",value:function(){if(!1===this._initializedSnipcart){var a=this._snipcartApiKey,b=document.createElement("script");b.type="text/javascript";b.async=!0;b.src="https://cdn.snipcart.com/scripts/2.0/snipcart.js";b.setAttribute("data-api-key",a);b.id="snipcart";a=document.getElementsByTagName("script"); $(b).insertAfter(a[a.length-1])}}},{key:"_loadDynamicSynipcartCSS",value:function(){var a=document.createElement("link");a.href="https://cdn.snipcart.com/themes/2.0/base/snipcart.min.css";a.rel="stylesheet";a.type="text/css";var b=$("head > link[rel^='stylesheet']");$(a).insertAfter(b[b.length-1]);!0}},{key:"_updateSnipcartApiKey",value:function(){var a=$("#pageData");1===a.length&&(a=JSON.parse(a.text()),webwave.isDef(a.snipcartApiKey)&&this.setSnipcartApiKey(a.snipcartApiKey))}},{key:"_addWebpageUrlToProductButtons", value:function(){$(".snipcart-add-item").each(function(){this.setAttribute("data-item-url",location.href)})}},{key:"setSnipcartApiKey",value:function(a){this._snipcartApiKey=a}},{key:"getSnipcartApiKey",value:function(){return this._snipcartApiKey}},{key:"checkIfSnipcartReady",value:function(){return this._initializedSnipcart}},{key:"_detectIfSnipcartElementsOnPage",value:function(){return 0<$(".snipcart-add-item").length+$(".snipcart-checkout").length}},{key:"setUtilService",value:function(a){this.utilService= a}}]),b}(a(7876).a);n.GUI_ENTRY="gui";n.PUBLICATION_ENTRY="publication";n.TRANSLATION_SNIPCART="snipcart";n.WEBWAVE_ID="webwave.me"},2281:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var h=m()(this).constructor;c=Reflect.construct(c,arguments,h)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b),n=function(a){function b(a){var e;return k()(this,b),e=c.call(this),e._domObject=a,e.browserWebPSupportUtils=null,e}e()(b,a);var c=f(b);return l()(b,[{key:"getDomObject",value:function(){return this._domObject}},{key:"setBrowserWebPSupportUtils",value:function(a){this.browserWebPSupportUtils=a}}]),b}(a(1079).a)}, 2788:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var h=m()(this).constructor;c=Reflect.construct(c,arguments,h)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180); var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b),n=function(a){function b(){return k()(this,b),c.apply(this,arguments)}e()(b,a);var c=f(b);return l()(b,[{key:"init",value:function(){var a=this.getServerTime(),b=this.getWebsiteId();this.updateStatistics(b,a);this.updateCookies(b,a);this.updateStatisticsVisitors(b)}},{key:"updateCookies",value:function(a,b){var c="",e="_wavera_"+a,d="_waverb_"+a,f="_wavert_"+a;if(null==$.cookie(e))c=a+"."+this.getUniqueUserId()+"."+ b+"."+b,$.cookie(e,c,{expires:730,path:"/"});else{var g=$.cookie(e).split(".");this.isTheSameDay(g[3],b)||(c=a+"."+g[1]+"."+g[2]+"."+b,$.cookie(e,c,{expires:730,path:"/"}))}null==$.cookie(d)?$.cookie(d,a+"."+b,{expires:1/48,path:"/"}):null!=$.cookie(d)&&(g=$.cookie(d).split("."),a=g[0]+"."+g[1],$.cookie(d,a,{expires:1/48,path:"/"}));$.cookie(f,b,{path:"/"})}},{key:"updateStatistics",value:function(a,b){var c=0,e=0,d=0,f=0,g="_wavera_"+a,m="_waverb_"+a,n="_wavert_"+a;if(null!=$.cookie(m)){var r=$.cookie(m).split("."); this.isTheSameDay(r[1],b)||c++}else c++;null!=$.cookie(m)&&null!=$.cookie(n)&&(e=b-$.cookie(n));null!=$.cookie(g)?(r=$.cookie(g).split("."),this.isTheSameDay(r[3],b)||c++):(d++,f++,0==c&&(c=1));this.updateDataInDB(a,1,c,e,d,f)}},{key:"updateStatisticsVisitors",value:function(a){var b,c;b="_wavera_"+a;null!=$.cookie(b)&&(c=$.cookie(b).split("."),b=c[1],c=this.unixTimeToDate(c[2]),this.updateVisitorsDataInDB(a,b,c))}},{key:"getServerTime",value:function(){return Math.round((new Date).getTime()/1E3)}}, {key:"unixTimeToDate",value:function(a){var b=new Date(1E3*a);a=b.getDate();var c=b.getMonth()+1,e=b.getFullYear(),d=b.getHours(),f=b.getMinutes(),b=b.getSeconds();(new Date).getMonth();return a+"-"+c+"-"+e+" "+d+":"+f+":"+b}},{key:"isTheSameDay",value:function(a,b){a=new Date(1E3*a);b=new Date(1E3*b);return a.getDate()==b.getDate()&&a.getMonth()==b.getMonth()&&a.getYear()==b.getYear()}},{key:"getTimeSinceLastView",value:function(a){return this.getServerTime()-a}},{key:"getUniqueUserId",value:function(){var a= Math.floor(500*Math.random());return this.getServerTime()+1E7*a}},{key:"updateDataInDB",value:function(a,b,c,e,d,f){a="websiteId="+a+"&pageViewsNumber="+b+"&visitsNumber="+c+"&visitsTime="+e+"&uniqueNumber="+d+"&newUsersNumber="+f;$.ajax({url:pageService.getPathForAjax()+"/statistics/saveWebsiteDailyStatistics",type:"get",dataType:"html",data:a,success:function(a){}})}},{key:"updateVisitorsDataInDB",value:function(a,b,c){a="websiteId="+a+"&uniqueVisitorId="+b+"&creationDate="+c;$.ajax({url:pageService.getPathForAjax()+ "/statistics/saveVisitorDailyStatistics",type:"get",dataType:"html",data:a,success:function(a){}})}},{key:"getWebsiteId",value:function(){return $("#websiteId").attr("value")}}]),b}(a(7876).a)},2794:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var h=m()(this).constructor;c=Reflect.construct(c,arguments,h)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"== typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b),n=function(a){function b(){var a;k()(this,b);for(var e=arguments.length,d=Array(e),f=0;f<e;f++)d[f]=arguments[f];return a=c.call.apply(c,[this].concat(d)),a._initAndLoadResourcesForDatePickers=function(){utilService.getDynamicallyCSSFile(wwConfig.additionalResoucresUrl.css.jqueryUi); utilService.getDynamicallyJSFile(wwConfig.additionalResoucresUrl.js.jqueryUiLibrary,this._loadDataPickerLibraryCallback.bind(this))},a._loadDataPickerLibraryCallback=function(){webwave.isDef(wwConfig.additionalResoucresUrl.js.jqueryUiDatePickerLang)?utilService.getDynamicallyJSFile(wwConfig.additionalResoucresUrl.js.jqueryUiDatePickerLang,this._initDataPickers.bind(this)):this._initDataPickers()},a}e()(b,a);var c=f(b);return l()(b,[{key:"init",value:function(){this._initAndLoadResourcesForDatePickers()}}, {key:"_initDataPickers",value:function(){$('#container .ww_form_frame [datepicker="datepicker"]').datepicker({beforeShow:function(a,b){b.dpDiv.parent().hasClass("userUITheme")||b.dpDiv.wrap('<div class="userUITheme"></div>')}});0<$('#container .ww_form_frame [datepicker="datetimepicker"]').length&&this._initAndLoadResourcesForTimePickers()}},{key:"_initAndLoadResourcesForTimePickers",value:function(){utilService.getDynamicallyJSFile(wwConfig.additionalResoucresUrl.js.timePickerPlugin,this._loadTimePickerLibraryCallback.bind(this))}}, {key:"_loadTimePickerLibraryCallback",value:function(){webwave.isDef(wwConfig.additionalResoucresUrl.js.jqueryUiTimePickerLang)?utilService.getDynamicallyJSFile(wwConfig.additionalResoucresUrl.js.jqueryUiTimePickerLang,this._initDateTimePickers.bind(this)):this._initDateTimePickers()}},{key:"_initDateTimePickers",value:function(){$('#container .ww_form_frame [datepicker="datetimepicker"]').datetimepicker({beforeShow:function(a,b){b.dpDiv.parent().hasClass("userUITheme")||b.dpDiv.wrap('<div class="userUITheme"></div>')}, controlType:{create:function(a,b,c,e,d,f,g){return $('<input class="ui-timepicker-input" value="'+e+'" style="width:50%">').appendTo(b).spinner({min:d,max:f,step:g,change:function(b,c){void 0!==b.originalEvent&&a._onTimeChange();a._onSelectHandler()},spin:function(e,d){a.control.value(a,b,c,d.value);a._onTimeChange();a._onSelectHandler()}}),b},options:function(a,b,c,e,d){return"string"==typeof e&&void 0!==d?b.find(".ui-timepicker-input").spinner(e,d):b.find(".ui-timepicker-input").spinner(e)},value:function(a, b,c,e){return void 0!==e?b.find(".ui-timepicker-input").spinner("value",e):b.find(".ui-timepicker-input").spinner("value")}},showButtonPanel:!1})}}]),b}(a(7876).a)},2803:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var e=m()(this).constructor;c=Reflect.construct(c,arguments,e)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b),n=function(a){function b(a){return k()(this,b),c.call(this,a)}e()(b,a);var c=f(b);return l()(b,[{key:"enteredViewportHandler",value:function(){var a=$(this.getDomObject()),c=a.attr(b.LAZY_LOAD_ATTR_NAME);a.attr("src",this.browserWebPSupportUtils.changeSrcIfWebPSupportedWithAttrCheck(c,this.getDomObject()))}}]),b}(a(2281).a); n.LAZY_LOAD_ATTR_NAME="data-lazy-load-src";webwave.provide("com.webwave.publication.intersectionObserver.object.WIntersectionObservedImg");com.webwave.publication.intersectionObserver.object.WIntersectionObservedImg=n},3575:function(b,d,a){a.d(d,"a",function(){return f});$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol(); $jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();var f={BackgroundParallaxService:Symbol.for("BackgroundParallaxService"),DynamicConfigService:Symbol.for("DynamicConfigService"),ElementAttributeService:Symbol.for("ElementAttributeService"),ElementRotationService:Symbol.for("ElementRotationService"),ElementService:Symbol.for("ElementService"),FacebookService:Symbol.for("FacebookService"), GroupService:Symbol.for("GroupService"),LocalStorageService:Symbol.for("LocalStorageService"),LockService:Symbol.for("LockService"),MediaPlayerService:Symbol.for("MediaPlayerService"),MenutoolService:Symbol.for("MenutoolService"),NewsfeedService:Symbol.for("NewsfeedService"),ObjectService:Symbol.for("ObjectService"),PageService:Symbol.for("PageService"),PublicatedScrollService:Symbol.for("PublicatedScrollService"),PublishedPageAreaService:Symbol.for("PublishedPageAreaService"),RwdService:Symbol.for("RwdService"), SimplyPopupManager:Symbol.for("SimplyPopupManager"),UserService:Symbol.for("UserService"),UtilService:Symbol.for("UtilService")}},3718:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var e=m()(this).constructor;c=Reflect.construct(c,arguments,e)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b),n=function(a){function b(){var a;return k()(this,b),a=c.call(this),a.shopAppLink=wwConfig.additionalResoucresUrl.js.shopApp,a.shopAppLinkCss=wwConfig.additionalResoucresUrl.css.shopApp,a._stripeApiUtl="https://js.stripe.com/v3/",a}e()(b,a);var c=f(b);return l()(b,[{key:"loadShopScripts",value:function(){this.loadShopJavaScript(this.shopAppLink); this.loadShopStylesheet(this.shopAppLinkCss)}},{key:"loadShopStylesheet",value:function(a){var b=document.getElementsByTagName("head")[0],c=document.createElement("link");c.id="storeAppCss";c.rel="stylesheet";c.type="text/css";c.href=a;c.media="all";b.appendChild(c);!0}},{key:"loadShopJavaScript",value:function(a){this.loadJavascript(a,"storeAppJS")}},{key:"loadAdditionalLibraryScripts",value:function(){this.loadJavascript(this._stripeApiUtl,"stripe")}},{key:"loadJavascript",value:function(a,b){var c= document.createElement("script");c.type="text/javascript";c.async=!0;c.src=a;c.id=b;a=document.getElementsByTagName("script");$(c).insertAfter(a[a.length-1]);!0}}]),b}(a(7876).a)},4423:function(b,d,a){d.a={DOT_PAY:"dotPay",PRZELEWY24:"przelewy24",PAYU_ROMANIA:"payuRomania",STRIPE:"stripe"}},4486:function(b,d,a){a.d(d,"a",function(){return l});b=a(7179);var f=a.n(b);b=a(7180);var g=a.n(b),k=a(4487),l=function(){function a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};f()(this,a); this._snowStorm=new k.a(b.data);this._isEnabled=!!webwave.isDef(b.isEnabled)&&b.isEnabled}return g()(a,[{key:"getSnowStorm",value:function(){return this._snowStorm}},{key:"isEnabled",value:function(){return this._isEnabled}},{key:"setEnabled",value:function(a){this._isEnabled=a}},{key:"serialize",value:function(){return{data:this.getSnowStorm().serialize(),isEnabled:this.isEnabled()}}}]),a}()},4487:function(b,d,a){a.d(d,"a",function(){return k});b=a(7179);var f=a.n(b);b=a(7180);var g=a.n(b),k=function(){function a(){var b= 0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};f()(this,a);this._isEnabled=!1;this._fps=30;this._addNewFlakesEveryNFrames=10;this._newFlakesToAdd=3;this._speedControl=.7;this._flakes=[];this._additionCounter=0;this._sinTable=[];this._mouseY=this._mouseX=-200;this._isForceOutFromMouseEnabled=!!webwave.isDef(b.isForceOutFromMouseEnabled)&&b.isForceOutFromMouseEnabled;this._intervalRef=null;this._flakeColor=webwave.isDef(b.flakeColor)?b.flakeColor:"rgba(250,250,250,0.9)";this._isOpacityEnabled= !!webwave.isDef(b.isOpacityEnabled)&&b.isOpacityEnabled;this._isUnicodeFlakeEnabled=!!webwave.isDef(b.isUnicodeFlakeEnabled)&&b.isUnicodeFlakeEnabled;this._flakeMinSize=webwave.isNumber(b.flakeMinSize)?b.flakeMinSize:5;this._flakeMaxSize=webwave.isNumber(b.flakeMaxSize)?b.flakeMaxSize:10;this._trackMouseListenerHandler=this._trackMouseListener.bind(this);this.init()}return g()(a,[{key:"init",value:function(){this._fillSinTable();this.isForceOutFromMouseEnabled()&&this._trackMouse()}},{key:"_fillSinTable", value:function(){for(var a=0;100>a;a++)this._sinTable.push(Math.sin(a/100*Math.PI*2))}},{key:"_trackMouse",value:function(){document.addEventListener("mousemove",this._trackMouseListenerHandler)}},{key:"_trackMouseListener",value:function(a){var b=$(window);this._mouseX=a.pageX-b.scrollLeft();this._mouseY=a.pageY-b.scrollTop()}},{key:"createFlake",value:function(a,b){var d=document.getElementById("pagearea")||document.body,f=this.getFlakeMinSize(),g=this.getFlakeMaxSize(),k=Math.random(),f=Math.floor(k* (g-f)+f),g=this.isOpacityEnabled()?.3+.7*Math.random():"",c=this._flakeColor,h=Math.floor(2*Math.random()),l=10+10*Math.random()+30*k,q=document.createElement("div");q.style.position="fixed";q.style.left=a+"px";q.style.top=b+"px";q.style.zIndex=(1E6).toString();q.style.width=f+"px";q.style.height=f+"px";q.style.opacity=g.toString();q.style.borderRadius=f/2+"px";this.isUnicodeFlakeEnabled()?(q.textContent=String.fromCharCode(10052),q.style.fontSize=f+"px",q.style.color=c):q.style.backgroundColor=c; d.appendChild(q);a={size:f,sizePercent:k,homeX:a,curX:a,curY:b,flake:q,uniqueSpeedOffset:h,wiggle:l,wiggleCounter:Math.floor(100*Math.random())};return this._flakes.push(a),a}},{key:"onEnterFrame",value:function(){for(var a=$(window).height(),b=this._flakes.length-1;-1<b;b--){var d=this._flakes[b],f=d.flake,g=2+5*(1-d.sizePercent)+d.uniqueSpeedOffset,g=g*this._speedControl,g=d.curY+g,k=d.wiggleCounter=++d.wiggleCounter%100,k=d.homeX+d.wiggle*this._sinTable[k];if(this.isForceOutFromMouseEnabled()){var c= Math.abs(this._mouseX-k),h=Math.abs(this._mouseY-g);150>c&&150>h&&(c=Math.sqrt(c*c+h*h),150>c&&(c=10*(1-c/150),this._mouseY>g?(g-=c,this._mouseX<k?d.homeX+=c:d.homeX-=c):g+=c))}d.curY=g;d.curX=k;f.style.top=g+"px";f.style.left=k+"px";g>a+100&&(f.remove(),d.flake=null,this._flakes.splice(b,1))}if(0==++this._additionCounter%this._addNewFlakesEveryNFrames)for(this._additionCounter=0,a=$(window).width()+100,b=0;b<this._newFlakesToAdd;b++)this.createFlake(-100+Math.floor(Math.random()*(a- -100)),-100+ Math.floor(100*Math.random()))}},{key:"isEnabled",value:function(){return this._isEnabled}},{key:"setEnabled",value:function(a){this._isEnabled=a}},{key:"isForceOutFromMouseEnabled",value:function(){return this._isForceOutFromMouseEnabled}},{key:"setForceOutFromMouseEnabled",value:function(a){this._isForceOutFromMouseEnabled=a;this.isForceOutFromMouseEnabled()?(document.removeEventListener("mousemove",this._trackMouseListenerHandler),this._trackMouse()):document.removeEventListener("mousemove",this._trackMouseListenerHandler)}}, {key:"getFlakeColor",value:function(){return this._flakeColor}},{key:"setFlakeColor",value:function(a){this._flakeColor=a}},{key:"isOpacityEnabled",value:function(){return this._isOpacityEnabled}},{key:"setOpacityEnabled",value:function(a){this._isOpacityEnabled=a}},{key:"isUnicodeFlakeEnabled",value:function(){return this._isUnicodeFlakeEnabled}},{key:"setUnicodeFlakeEnabled",value:function(a){this._isUnicodeFlakeEnabled=a}},{key:"getFlakeMinSize",value:function(){return this._flakeMinSize}},{key:"setFlakeMinSize", value:function(a){this._flakeMinSize=a}},{key:"getFlakeMaxSize",value:function(){return this._flakeMaxSize}},{key:"setFlakeMaxSize",value:function(a){this._flakeMaxSize=a}},{key:"toggle",value:function(){this.isEnabled()?this.stop():this.play()}},{key:"play",value:function(){this.setEnabled(!0);this.isForceOutFromMouseEnabled()&&(document.removeEventListener("mousemove",this._trackMouseListenerHandler),this._trackMouse());this._intervalRef=setInterval(this.onEnterFrame.bind(this),1E3/this._fps)}}, {key:"stop",value:function(){this.setEnabled(!1);this.clearFlakes();document.removeEventListener("mousemove",this._trackMouseListenerHandler);clearInterval(this._intervalRef)}},{key:"clearFlakes",value:function(){for(var a=0;a<this._flakes.length;a++)this._flakes[a].flake.remove()}},{key:"serialize",value:function(){return{isForceOutFromMouseEnabled:this.isForceOutFromMouseEnabled(),isOpacityEnabled:this.isOpacityEnabled(),isUnicodeFlakeEnabled:this.isUnicodeFlakeEnabled(),flakeMinSize:this.getFlakeMinSize(), flakeMaxSize:this.getFlakeMaxSize(),flakeColor:this.getFlakeColor()}}}]),a}()},4669:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var d=m()(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}} a.d(d,"a",function(){return n});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b),n=function(a){function b(){var a;return k()(this,b),a=c.call(this),a.dynamicConfigService=void 0,a.localStorageService=void 0,a.commentLinkJs=wwConfig.additionalResoucresUrl.js.commentApp,a.commentLinkCss=wwConfig.additionalResoucresUrl.css.commentApp,a}e()(b,a);var c=f(b);return l()(b,[{key:"loadCommentScripts",value:function(){var a=this.localStorageService.isDefined(this.HIDE_TOP_HEADER_LS_OBJECT_KEY)? this.localStorageService.getLocalStorageKey(this.getPathname(),this.HIDE_TOP_HEADER_LS_OBJECT_KEY):void 0;!0===this.dynamicConfigService.get("loadCommentsTopHeader")&&webwave.isNotDef(a)&&this.checkIfAdditionalResourcesForCommentsAvailable()&&(this.loadCommentJavaScript(this.commentLinkJs),this.loadCommentStylesheet(this.commentLinkCss))}},{key:"loadCommentJavaScript",value:function(a){this.loadJavascript(a,"commentAppJS")}},{key:"loadJavascript",value:function(a,b){var c=document.createElement("script"); c.type="text/javascript";c.async=!0;c.src=a;c.id=b;a=document.getElementsByTagName("script");$(c).insertAfter(a[a.length-1]);!0}},{key:"loadCommentStylesheet",value:function(a){var b=document.getElementsByTagName("head")[0],c=document.createElement("link");c.id="storeAppCss";c.rel="stylesheet";c.type="text/css";c.href=a;c.media="all";b.appendChild(c);!0}},{key:"checkIfAdditionalResourcesForCommentsAvailable",value:function(){return webwave.isDef(wwConfig)&&webwave.isDef(wwConfig.additionalResoucresUrl)&& webwave.isDef(wwConfig.additionalResoucresUrl.css)&&webwave.isDef(wwConfig.additionalResoucresUrl.js)&&webwave.isDef(wwConfig.additionalResoucresUrl.css.commentApp)&&webwave.isDef(wwConfig.additionalResoucresUrl.js.commentApp)}},{key:"saveHeaderHidingInLocalStorage",value:function(){var a=this.localStorageService.getObjectFromLocalStorage(this.HIDE_TOP_HEADER_LS_OBJECT_KEY);webwave.isNotDef(a)&&(a={});a[this.getPathname()]=!0;this.localStorageService.setLocalStorageObject(a,this.HIDE_TOP_HEADER_LS_OBJECT_KEY)}}, {key:"getPathname",value:function(){return window.location.pathname}},{key:"setLocalStorageService",value:function(a){this.localStorageService=a}},{key:"setDynamicConfigService",value:function(a){this.dynamicConfigService=a}}]),b}(a(7876).a);n.prototype.HIDE_TOP_HEADER_LS_OBJECT_KEY="publication_app_hide_comments_header"},5042:function(b,d,a){function f(){}a.d(d,"a",function(){return e});b=a(7180);var g=a.n(b);b=a(7179);var k=a.n(b);!function(){var a=[];window.addEventListener("message",function(b){b.source== window&&"zero-timeout-message"==b.data&&(b.stopPropagation(),0<a.length)&&a.shift()()},!0);window.setZeroTimeout=function(b){a.push(b);window.postMessage("zero-timeout-message","*")}}();var l=function m(a,b){k()(this,m);this.func=a;this.args=b},e=function(){function a(b){k()(this,a);void 0===b&&(b={});this.queue=[];this._errorHandler=b.onError||f}return g()(a,[{key:"addToQueue",value:function(a,b){this.queue.push(new l(a,Array.prototype.slice.call(arguments,1)))}},{key:"dequeue",value:function(){var a= this;0<a.queue.length&&setZeroTimeout(function(){var b=a.queue.shift();try{var d=b.func.apply(this,b.args);webwave.isObject(d)&&webwave.isFunction(d.then)?d.then(function(){a.dequeue()}):a.dequeue()}catch(c){"function"==typeof a._errorHandler?a._errorHandler.call(a,c):webwave.error(c)}},0)}},{key:"dequeueSync",value:function(){for(var a;a=this.queue.shift();)try{a.func.apply(this,a.args)}catch(b){webwave.log("error occured during Worker.dequeueSync",this,b),this._errorHandler.call(this,b)}}}]),a}(); webwave.provide("com.webwave.worker.Worker");com.webwave.worker.Worker=e},7179:function(b,d){b.exports=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");};b.exports.__esModule=!0;b.exports.default=b.exports},7180:function(b,d){function a(a,b){for(var d=0;d<b.length;d++){var l=b[d];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(a,l.key,l)}}b.exports=function(b,d,k){return d&&a(b.prototype,d),k&&a(b,k),Object.defineProperty(b, "prototype",{writable:!1}),b};b.exports.__esModule=!0;b.exports.default=b.exports},7181:function(b,d){function a(d){return b.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},b.exports.__esModule=!0,b.exports.default=b.exports,a(d)}b.exports=a;b.exports.__esModule=!0;b.exports.default=b.exports},7182:function(b,d,a){var f=a(7192);b.exports=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function"); a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}});Object.defineProperty(a,"prototype",{writable:!1});b&&f(a,b)};b.exports.__esModule=!0;b.exports.default=b.exports},7183:function(b,d,a){var f=a(7189).default,g=a(7187);b.exports=function(a,b){if(b&&("object"===f(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return g(a)};b.exports.__esModule=!0;b.exports.default=b.exports}, 7187:function(b,d){b.exports=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a};b.exports.__esModule=!0;b.exports.default=b.exports},7189:function(b,d){function a(d){"@babel/helpers - typeof";$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();return b.exports=a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol(); return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b.exports.__esModule=!0,b.exports.default=b.exports,a(d)}b.exports=a;b.exports.__esModule=!0;b.exports.default=b.exports},7192:function(b,d){function a(d,g){return b.exports=a=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},b.exports.__esModule=!0,b.exports.default=b.exports,a(d,g)}b.exports=a;b.exports.__esModule=!0;b.exports.default=b.exports},7462:function(b,d,a){function f(a){var b= g();return function(){var d;d=m()(a);if(b){var e=m()(this).constructor;d=Reflect.construct(d,arguments,e)}else d=d.apply(this,arguments);return p()(this,d)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return u});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b= a(7183);var p=a.n(b);b=a(7181);var m=a.n(b);b=a(7876);var n=a(2803),u=function(a){function b(){var a;return k()(this,b),a=d.call(this),a._cookieLibraryLoaded=!1,a}e()(b,a);var d=f(b);return l()(b,[{key:"addInfoAboutCookie",value:function(){var a=document.getElementById("cookie-bar-settings");webwave.isDefAndNotNull(a)&&(this._initCookieBarLibrary(),a=JSON.parse(a.text),jQuery.fn.cookiesEU({text:a.textHtml,close:a.buttonText,animation:"fade",box_class:"ww_cookie_info ww_cookie_info p_default_block ".concat(a.position), use_default_css:"false",auto_accept:!1,parent:$("#body"),position:"bottom"}),this.updateCookieDesktopClass(),this.lazyLoadCookieImages())}},{key:"onRwdModeChange",value:function(){this.updateCookieDesktopClass()}},{key:"lazyLoadCookieImages",value:function(){var a=this;$("#cookiesEU-box img[".concat(n.a.LAZY_LOAD_ATTR_NAME,"]")).each(function(b,c){b=new n.a(c);b.setBrowserWebPSupportUtils(a.browserWebPSupportUtils);b.enteredViewportHandler()})}},{key:"updateCookieDesktopClass",value:function(){var a; $("#cookiesEU-box").toggleClass("desktop",null===(a=this.rwdService)||void 0===a?void 0:a.isFirstRwdMode())}},{key:"setRwdService",value:function(a){this.rwdService=a}},{key:"_initCookieBarLibrary",value:function(){!1===this._cookieLibraryLoaded&&(eval(function(a,b,c,d,e,f){if(e=function(a){return(62>a?"":e(parseInt(a/62)))+(35<(a%=62)?String.fromCharCode(a+29):a.toString(36))},!"".replace(/^/,String)){for(;c--;)f[e(c)]=d[c]||e(c);d=[function(a){return f[a]}];e=function(){return"\\w+"};c=1}for(;c--;)d[c]&& (a=a.replace(new RegExp("\\b".concat(e(c),"\\b"),"g"),d[c]));return a}("(g(6){6.1V.V({5:g(10){4 U={f:'<p>1L 1I 1O u\u017c1T 1S\u00f3w R (1P. Q) w 1N 25, 1K 1y 1v. 1w\u011916 1A K\u017c1l 1n 1s\u0107 1D\u0119 29 1Y 1W. 1X\u017c1U K\u017ce 1M\u0107 1J R 1R 1Q K\u017c23\u015b\u0107 X\u0142\u010526 27 w 28\u010522, 21\u011916 1Z 1H b\u0119d\u0105 1p \u017c1o 1r. <a M=\"1t://Q.1j/#Y-1k-Q\" 1m=\"\" 1q=\"1G.1C(1u.M); E Z;\">1E 1F\u0119 1B\u01191x Y 1z X\u0142\u010520\u0107.</a></p>',k:'x',A:6('2J'),1a:h,7:'J',l:'R-2I',G:h,11:'',18:h,q:'',s:'',t:'',y:'',F:'1c',P:2K,O:Z};4 o=6.V(U,10);2(o.18==h){o.q='7: 13; z-2L: 2M; 2H: 2G; 15-r: #17; r: #2C; 2B-2O: 2E; 2F-2N: 2Q%;'+o.q;o.s='7: 13; D: 2U 12;'+o.s;o.t='D-19: 2S;'+o.t;o.y='7: 2T; J: 0; 19: 0; D: 2a 12; 2R: 2P; 15-r: #2D; r: #17; f-2z: 2i; f-2j: 2k;'+o.y}6('#5-3').2A();4 3=6('<8 2l=\"5-3\" n=\"'+o.11+'\" v=\"'+o.q+'\"><8 n=\"5-W\" v=\"'+o.s+'\">'+'<8 n=\"5-f\" v=\"'+o.t+'\">'+o.f+'</8>'+'</8></8>');2(o.1a==h)3.1h('.5-W').H('<a M=\"#\" n=\"5-k\" v=\"'+o.y+'\">'+o.k+'</a>');2(1i(o.l)==14){2(o.7=='J')o.A.2h(3);9 2(o.7=='2g')o.A.H(3);9 o.A.H(3);2(!o.O&&o.G)N(o.l,1,1d)};3.1h('a.5-k').2c(g(e){e.2b();2(!o.O&&!o.G)N(o.l,1,1d);2(o.F=='1c')3.2d(o.P);9 2(o.F=='2e')3.2f(o.P);9 3.2m()});g N(C,1e,S){2(S){4 m=2n 2v();m.2w(m.2x()+(S*24*1f*1f*2y));4 j=\"; j=\"+m.2u()}9 4 j=\"\";1b.1g=C+\"=\"+1e+j+\"; 2t=/\"};g 1i(C){4 I=C+\"=\";4 L=1b.1g.2p(';');2o(4 i=0;i<L.B;i++){4 c=L[i];2q(c.2r(0)==' ')c=c.T(1,c.B);2(c.2s(I)==0)E c.T(I.B,c.B)}E 14}}})})(6);", 0,181," if box var cookiesEU jQuery position div else text function true expires close cookie_name date class box_css color inner_css text_css style close_css parent length name padding return animation auto_accept append nameEQ top mo ca href createCookie test time ciasteczka cookies days substring defaults extend inner wy jak false options box_class 10px relative null background ki fff use_default_css right show_close document slide 365 value 60 cookie find readCookie eu wylaczyc emy title indywidualnie adne zbierane onclick informacje dostosowa http this funkcjonalnych Dzi cej oraz je nim wi open stron Dowiedz si window nie strona pliki reklamowych Nasza zaakceptowa celach internetowa tzw ma albo plik ywa dy fn potrzeb Ka twoich czemu czy dzi darce liwo statystycznych czenia ich przegl do 5px preventDefault click slideUp fade fadeOut bottom prepend uppercase decoration none id hide new for split while charAt indexOf path toGMTString Date setTime getTime 1000 transform remove font 777 888 12px line hidden overflow accepted body 500 index 999 height size block 120 display 100px absolute 2px".split(" "), 0,{})),this._cookieLibraryLoaded=!0)}}]),b}(b.a)},7854:function(b,d,a){d.a="afterInitializationServiceInitEvent"},7855:function(b,d,a){a.d(d,"b",function(){return f});a.d(d,"a",function(){return g});var f={UNINITIALIZED:"uninitialized",INITIALIZING:"initializing",INITIALIZED:"initialized"},g="webwaveAppInitialized"},7876:function(b,d,a){a.d(d,"a",function(){return g});b=a(7179);var f=a.n(b),g=function l(){f()(this,l)}},7880:function(b,d,a){a.d(d,"a",function(){return e});b=a(7179);var f=a.n(b);b= a(7180);var g=a.n(b),k=a(7854),l=a(7855),e=function(){function a(){f()(this,a);this.app=void 0}return g()(a,[{key:"init",value:function(){var a=this,b=new CustomEvent(k.a);b.service=this;document.dispatchEvent(b);document.addEventListener(l.a,function(b){a.inject(b.context)})}},{key:"getApp",value:function(){return this.app}},{key:"globalWebsiteData",value:function(){return this.getApp().getGlobalWebsiteData()}},{key:"getServiceFromApp",value:function(a){return this.getApp().getServiceFromContainer(a)}}, {key:"inject",value:function(a){this.app=a;this.run()}},{key:"run",value:function(){}},{key:"injectDependencies",value:function(){}}]),a}()},7881:function(b,d,a){Object.defineProperty(d,"__esModule",{value:!0});(new (a(7882).a)).init()},7882:function(b,d,a){function f(a){var b=g();return function(){var c;c=m()(a);if(b){var d=m()(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);return p()(this,c)}}function g(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1; if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}a.d(d,"a",function(){return A});b=a(7179);var k=a.n(b);b=a(7180);var l=a.n(b);b=a(7182);var e=a.n(b);b=a(7183);var p=a.n(b);b=a(7181);var m=a.n(b);b=a(7880);var n=a(1078),u=a(7462),r=a(2794),c=a(4669),h=a(3718),v=a(1072),q=a(1095),w=a(4486),x=a(2788),y=a(4423),z=a(5042),t=a(3575),A=function(a){function b(){var a;k()(this,b);for(var c=arguments.length,e=Array(c), f=0;f<c;f++)e[f]=arguments[f];return a=d.call.apply(d,[this].concat(e)),a.cookieBarService=void 0,a.datePickerService=void 0,a.loadCommentService=void 0,a.loadStoreService=void 0,a.snipcartService=void 0,a.statisticsService=void 0,a}e()(b,a);var d=f(b);return l()(b,[{key:"run",value:function(){this.injectDependencies();this._initServices()}},{key:"injectDependencies",value:function(){this.cmsLoginService=new n.a;window.cmsLoginService=this.cmsLoginService;var a=new v.a;this.cmsLoginService.setPopupService(a); this.cmsLoginService.setObjectService(this.getServiceFromApp(t.a.ObjectService));this.cmsLoginService.setUserService(this.getServiceFromApp(t.a.UserService));this.datePickerService=new r.a;this.cookieBarService=new u.a;a=this.getServiceFromApp(t.a.RwdService);a.addRwdModeChangeListener(this.cookieBarService);this.cookieBarService.setRwdService(a);this.loadCommentService=new c.a;this.loadStoreService=new h.a;this.snipcartService=new q.a;this.statisticsService=new x.a}},{key:"_initServices",value:function(){var a= this,b=new z.a;b.addToQueue(function(){a._initCmsService()});b.addToQueue(function(){a._initFormWithDatePickers()});b.addToQueue(function(){a._initCookieBar()});b.addToQueue(function(){a._initWWShop()});b.addToQueue(function(){a._initSnipcardShop()});b.addToQueue(function(){a._initEastersEggs()});b.addToQueue(function(){a._initStatistics()});b.addToQueue(function(){a._initComments()});b.dequeue()}},{key:"_initCmsService",value:function(){this.cmsLoginService.init();this._initLoginTools();window.cmsLoginService= this.cmsLoginService}},{key:"_initLoginTools",value:function(){var a=this;$(".ww_login_content:not(.ww_login_tool_logged) > a").click(function(b){b.preventDefault();b=$(b.target).attr("registrationenabled");a.cmsLoginService.showLoginPanel(!0,b)})}},{key:"_initWWShop",value:function(){var a=$("#pageData");1===a.length&&this._storeShouldBeLoaded()&&(this.loadStoreService.loadShopScripts(),this.loadAdditionalLibrary(a,this.loadStoreService))}},{key:"_initSnipcardShop",value:function(){this.snipcartService.setUtilService(this.getServiceFromApp(t.a.UtilService)); this.snipcartService.init(q.a.PUBLICATION_ENTRY)}},{key:"_initEastersEggs",value:function(){var a=this.globalWebsiteData().snowStormEasterEgg;webwave.isDef(a)&&(new w.a(a)).getSnowStorm().play()}},{key:"_initStatistics",value:function(){this.statisticsService.init()}},{key:"_initCookieBar",value:function(){this.cookieBarService.addInfoAboutCookie()}},{key:"_initComments",value:function(){this.loadCommentService.setLocalStorageService(this.getServiceFromApp(t.a.LocalStorageService));this.loadCommentService.setDynamicConfigService(this.getServiceFromApp(t.a.DynamicConfigService)); this.loadCommentService.loadCommentScripts()}},{key:"_initFormWithDatePickers",value:function(){0<$('#container .ww_form_frame [datepicker^="date"]').length&&this.datePickerService.init()}},{key:"_storeShouldBeLoaded",value:function(){return!!$('[data-element-type="product"],[data-element-type="shopCart"]').length||!!webwave.isStringAndNotEmpty(utilService.extractGETParameter("customUrl"))}},{key:"loadAdditionalLibrary",value:function(a,b){try{var c=JSON.parse(a.text());this.requireAdditionalLibrary(JSON.parse(c.webwaveStoreSettings))&& b.loadAdditionalLibraryScripts()}catch(d){console.error("Error while parsing store data")}}},{key:"requireAdditionalLibrary",value:function(a){return!!(a&&a.paymentProviderOptions&&a.paymentProviderOptions.enable&&a.paymentProviderOptions.value&&a.paymentProviderOptions.value.paymentProvider===y.a.STRIPE)}}]),b}(b.a)}});