(function(){var t=!1,n=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(r){var o=this.prototype;t=!0;var s=new this();t=!1;for(var i in r){s[i]=typeof r[i]=='function'&&typeof o[i]=='function'&&n.test(r[i])?(function(t,n){return function(){var r=this._super;this._super=o[t];var i=n.apply(this,arguments);this._super=r;return i}})(i,r[i]):r[i]};function e(){if(!t&&this.init)this.init.apply(this,arguments)};e.prototype=s;e.prototype.constructor=e;e.extend=arguments.callee;return e}})();
;var AuroraNanobar=Class.extend({nanobarPosition:'',$nanobarClose:{},$nanobarRejectButton:{},$firstLogNanobarButton:{},$linkOnNanobarButton:{},$nanobarSettingsButton:{},$nanobarCookiesBox:{},$nanobarMarketingCheckbox:{},$nanobarExitButton:{},$nanobarSaveButton:{},$nanobarSaveButtonText:{},$nanobarSaveButtonTextOriginal:{},$nanobarText:{},$nanobarTextCookies:{},$bodyElement:{},$responsiveMenu:{},backgroundPositionSave:'',paddingTopSave:'',paddingBottomSave:'',rmHeight:'',init:function(o,n){this.nanobarElement=o;this.nanobarPosition=n;this.$nanobarText=$('#nanoText, .nanobar-text');this.$nanobarTextCookies=$('#nanoTextCookies, .nanobar-text-cookies');this.$nanobarClose=$('#auroraNanobarClose, .js-nanobar-close');this.$nanobarRejectButton=$('#nanobar-reject-button');this.$firstLogNanobarButton=$('#first-login-nanobar-button, .js-hidden-nanobar-button');this.$linkOnNanobarButton=$('a[href$="show-cookie-settings"]');this.$nanobarSettingsButton=$('#aurora-nanobar-settings-button, .js-nanobar-settings-button');this.$nanobarCookiesBox=$('.aurora-nanobar-cookies, .js-nanobar-cookies');this.$nanobarSaveButton=$('#auroraNanobarCloseCookies, .js-nanobar-close-cookies');this.$nanobarSaveButtonTextOriginal=this.$nanobarSaveButton.text();this.$nanobarSaveButtonText=this.$nanobarSaveButton.attr('data-button-save-text');this.$nanobarExitButton=$('.aurora-nanobar-exit');this.$nanobarMarketingCheckbox=$('#marketing-cookies, .js-nanobar-marketing-cookies');this.$bodyElement=$('body');this.$responsiveMenu=$('#mobile-nav, #js-mobile-navbar');this.$bodyElement.attr('data-nanobar-position',n);this.rmHeight=this.$responsiveMenu.outerHeight();this.saveBodyStyles();this.initListeners()},initListeners:function(){var o=this,n=function(){o.$nanobarSettingsButton.show();o.showNanobar();o.hideNanobarButton();o.$nanobarSaveButton.text(o.$nanobarSaveButtonTextOriginal)};o.$firstLogNanobarButton.click(function(){n()});o.$linkOnNanobarButton.click(function(o){o.preventDefault();n()})},hideNanobarButton:function(){var o=this;o.$firstLogNanobarButton.hide()},showNanobarButton:function(){var o=this;o.$firstLogNanobarButton.show()},saveBodyStyles:function(){this.backgroundPositionSave=this.$bodyElement.css('background-position');this.paddingTopSave=this.$bodyElement.css('padding-top');this.paddingBottomSave=this.$bodyElement.css('padding-bottom')},restoreBodyStyle:function(o){this.$bodyElement.css('background-position',this.backgroundPositionSave);if(o==='top'){this.$bodyElement.css('padding-'+o,this.paddingTopSave);this.$responsiveMenu.css('top',0);$('#module_cart').css('top',this.rmHeight+'px')}
else{this.$bodyElement.css('padding-'+o,this.paddingBottomSave)};this.$bodyElement.removeClass('aurora-nanobar-active')},changeBodyStyle:function(o,n){if(o==='modal'){this.$bodyElement.addClass('nanobar-modal');return};if(o==='top'){var a=this.$bodyElement.css('background-position'),t=a.split(' ');t.pop();t.push(n+'px');this.$bodyElement.css('background-position',t.join(' ')).addClass('aurora-nanobar-active');this.$responsiveMenu.css('top',n+'px');$('#module_cart').css('top',n+this.rmHeight+'px')};this.$bodyElement.css('padding-'+o,n)},hideNanobar:function(){this.nanobarElement.fadeOut(1000);this.restoreBodyStyle(this.nanobarPosition)},showNanobar:function(){var o=this;o.changeBodyStyle(o.nanobarPosition,o.nanobarElement.outerHeight());if(o.nanobarPosition==='modal'){o.nanobarElement.show().appendTo('body');return};o.nanobarElement.show().css(o.nanobarPosition,0).appendTo('body')},getCookieValue:function(o){var n=new RegExp('^.*;?\s*'+o+'\s*=\s*([^;]*).*$');return document.cookie.replace(n,'$1')},setCookie:function(o,n,a){var t=new Date();t.setTime(t.getTime()+(a*24*60*60*1000));var e='expires='+t.toUTCString();document.cookie=o+'='+n+'; '+e+'; path=/'},marketingCookieEnabled:function(o){var t=this,n;if(Boolean(o)){t.setCookie('auroraMarketingCookieAccepted',1,365);n=new CustomEvent('AuroraMarketingCookie.Changed',{detail:{isAccepted:!0}})}
else{t.setCookie('auroraMarketingCookieAccepted',0,365);this.deleteAllCookies();n=new CustomEvent('AuroraMarketingCookie.Changed',{detail:{isAccepted:!1}})};window.dispatchEvent(n)},deleteAllCookies:function(){var i=location.hostname.split('.');i.shift();var s=i.join('.'),r=['device','JSESSIONID','PHPSESSID','cart_token','cart_method','admin_logged_in','auroraMarketingCookieAccepted','auroraNanobarAccepted','token','__jid','language','currency','customer_group','auroraOverlay','packetery-selected-id'],e=document.cookie.split(';');for(var t=0;t<e.length;t++){var n=e[t],a=n.indexOf('='),o=a>-1?n.substr(0,a):n;if($.inArray($.trim(o),r)===-1){document.cookie=$.trim(o)+'=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/';document.cookie=$.trim(o)+'=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain='+s;document.cookie=$.trim(o)+'=;expires=Thu, 01 Jan 1970 00:00:00 GMT'}}}});
;AuroraNanobar.FirstLogNanobar=AuroraNanobar.extend({init:function(e,a){this._super(e,a);var o=this;if(o.getCookieValue('auroraNanobarAccepted')!=='1'){o.showNanobar()}},initListeners:function(){this._super();var e=this;this.$nanobarClose.click(function(a){let marketingCookieStatus=a.currentTarget.dataset.marketingCookieStatus;if(marketingCookieStatus!==undefined){e.marketingCookieEnabled((marketingCookieStatus==='true'))};e.handleBaseCookieAction(a,e)});this.$nanobarRejectButton.click(function(a){e.marketingCookieEnabled(!1);e.handleBaseCookieAction(a,e)})},handleBaseCookieAction:function(e,a){e.preventDefault();a.setCookie('auroraNanobarAccepted',1,365);a.hideNanobar();a.showNanobarButton()},});
;AuroraNanobar.FirstLogNanobarCheckbox=AuroraNanobar.extend({init:function(o,a){var e=this;this._super(o,a);if(e.getCookieValue('auroraNanobarAccepted')!=='1'){e.showNanobar()}},initListeners:function(){this._super();var o=this;this.$nanobarSaveButton.click(function(e){e.preventDefault();o.setCookie('auroraNanobarAccepted',1,365);o.hideNanobar();o.showNanobarButton();o.hideNanobarCookiesBox();o.marketingCookieEnabled(o.$nanobarMarketingCheckbox.is(':checked'))});o.$nanobarSettingsButton.click(function(e){e.preventDefault();o.marketingCheckboxState();o.$nanobarSaveButton.text(o.$nanobarSaveButtonText);o.$nanobarCookiesBox.toggle('fast',function(){o.$nanobarSettingsButton.hide()})});this.$nanobarExitButton.click(function(e){e.preventDefault();o.hideNanobar();o.hideNanobarCookiesBox();o.marketingCookieDisabled();o.showNanobarButton()})},marketingCheckboxState:function(){var o=this;if(o.getCookieValue('auroraMarketingCookieAccepted')==='0'){o.$nanobarMarketingCheckbox.attr('checked',!1)}},hideNanobarCookiesBox:function(){var o=this;o.$nanobarCookiesBox.hide()},hideNanobar:function(){var o=this;o._super()},marketingCookieDisabled:function(){var e=this;e.setCookie('auroraMarketingCookieAccepted',0,365);this.deleteAllCookies();var o=new CustomEvent('AuroraMarketingCookie.Changed',{detail:{isAccepted:!1}});window.dispatchEvent(o)},});
;AuroraNanobar.FreeShippingNanobar=AuroraNanobar.extend({time:'',onCartPage:'',init:function(r,e,n,a,i){var t=this;if(e==='modal'){e='bottom'};this._super(r,e);this.time=n;this.onCartPage=a;this.firstLoginStatus=i;if(t.time==0||t.onCartPage){t.refreshNanobar()}},initListeners:function(){var e=this;e.$nanobarClose.click(function(){e.hideNanobar()});document.addEventListener('cartChanged',function(){e.refreshNanobar()});e.$bodyElement.on('deleteCart',function(){e.refreshNanobar()})},showNanobar:function(){var e=this;e._super();if(e.time!=0){setTimeout(function(){e.hideNanobar()},e.time*1000)}},refreshNanobar:function(){var e=this;if(e.isVisible()&&e.changeDeliveryText()){e.showNanobar()}
else{e.hideNanobar()}},changeDeliveryText:function(){var e=this,t=e.getDeliveryText();if(t!=''){e.nanobarElement.find(e.$nanobarText).text(t);return!0}
else{return!1}},getDeliveryText:function(){var e='';$.ajax({url:'index.php?route=checkout/cartchildren/expecteddelivery/refreshDeliveryPrice',type:'POST',cache:!1,data:'isAjaxQuery=true',contentType:'application/x-www-form-urlencoded;charset=utf-8',dataType:'text',global:!1,async:!1,success:function(t){e=t}});return e},isVisible:function(){var e=this;if((e.firstLoginStatus!=='0')&&(e.getCookieValue('auroraNanobarAccepted')!=='1')){return!1};return!0}});