/*! jQuery Migrate v3.4.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+n[a]>+o[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.0";var t=Object.create(null),o=(s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi),_=(s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},d(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(O,"<$1>"))!==t&&C(t)!==C(r)&&i("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(O,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags"),s.fn.offset);return d(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(i("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(H=s.param,d(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(i("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),H.call(this,e,t)},"param-ajax-traditional")),u(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(E=s.Deferred,M=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],d(s,"Deferred",function(e){var a=E(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(M,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return u(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),u(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=E.exceptionHook),s}); CLI_ACCEPT_COOKIE_NAME=(typeof CLI_ACCEPT_COOKIE_NAME!=='undefined'?CLI_ACCEPT_COOKIE_NAME:'viewed_cookie_policy');CLI_PREFERENCE_COOKIE=(typeof CLI_PREFERENCE_COOKIE!=='undefined'?CLI_PREFERENCE_COOKIE:'CookieLawInfoConsent');CLI_ACCEPT_COOKIE_EXPIRE=(typeof CLI_ACCEPT_COOKIE_EXPIRE!=='undefined'?CLI_ACCEPT_COOKIE_EXPIRE:365);CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP!=='undefined'?CLI_COOKIEBAR_AS_POPUP:false);var CLI_Cookie={set:function(name,value,days){var secure="";if(true===Boolean(Cli_Data.secure_cookies)){secure=";secure";} if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}else{var expires="";} document.cookie=name+"="+value+secure+expires+"; path=/";if(days<1){host_name=window.location.hostname;document.cookie=name+"="+value+expires+"; path=/; domain=."+host_name+";";if(host_name.indexOf("www")!=1){var host_name_withoutwww=host_name.replace('www','');document.cookie=name+"="+value+secure+expires+"; path=/; domain="+host_name_withoutwww+";";} host_name=host_name.substring(host_name.lastIndexOf(".",host_name.lastIndexOf(".")-1));document.cookie=name+"="+value+secure+expires+"; path=/; domain="+host_name+";";}},read:function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i0&&this.main_link.hasClass('cli-minimize-bar')){this.hideHeader();cliBlocker.cookieBar(false);this.showagain_elm.slideDown(this.settings.animate_speed_show);return true;} return false;},attachEvents:function(){jQuery(document).on('click','.wt-cli-privacy-btn',function(e){e.preventDefault();CLI.accept_close();CLI.settingsPopUpClose();});jQuery('.wt-cli-accept-btn').on("click",function(e){e.preventDefault();CLI.acceptRejectCookies(jQuery(this));});jQuery('.wt-cli-accept-all-btn').on("click",function(e){e.preventDefault();CLI.acceptRejectCookies(jQuery(this),'accept');});jQuery('.wt-cli-reject-btn').on("click",function(e){e.preventDefault();CLI.acceptRejectCookies(jQuery(this),'reject');});this.settingsPopUp();this.settingsTabbedAccordion();this.toggleUserPreferenceCheckBox();this.hideCookieBarOnClose();this.cookieLawInfoRunCallBacks();},acceptRejectCookies(element,action='custom'){var open_link=element[0].hasAttribute("href")&&element.attr("href")!='#'?true:false;var new_window=false;if(action=='accept'){this.enableAllCookies();this.accept_close();new_window=CLI.settings.button_7_new_win?true:false;}else if(action=='reject'){this.disableAllCookies();this.reject_close();new_window=Boolean(this.settings.button_3_new_win)?true:false;}else{this.accept_close();new_window=Boolean(this.settings.button_1_new_win)?true:false;} if(open_link){if(new_window){window.open(element.attr("href"),'_blank');}else{window.location.href=element.attr("href");}}},toggleUserPreferenceCheckBox:function(){jQuery('.cli-user-preference-checkbox').each(function(){categoryCookie='cookielawinfo-'+jQuery(this).attr('data-id');categoryCookieValue=CLI_Cookie.read(categoryCookie);if(categoryCookieValue==null){if(jQuery(this).is(':checked')){CLI_Cookie.set(categoryCookie,'yes',CLI_ACCEPT_COOKIE_EXPIRE);}else{CLI_Cookie.set(categoryCookie,'no',CLI_ACCEPT_COOKIE_EXPIRE);}}else{if(categoryCookieValue=="yes"){jQuery(this).prop("checked",true);}else{jQuery(this).prop("checked",false);}}});jQuery('.cli-user-preference-checkbox').on("click",function(e){var dataID=jQuery(this).attr('data-id');var currentToggleElm=jQuery('.cli-user-preference-checkbox[data-id='+dataID+']');if(jQuery(this).is(':checked')){CLI_Cookie.set('cookielawinfo-'+dataID,'yes',CLI_ACCEPT_COOKIE_EXPIRE);currentToggleElm.prop('checked',true);}else{CLI_Cookie.set('cookielawinfo-'+dataID,'no',CLI_ACCEPT_COOKIE_EXPIRE);currentToggleElm.prop('checked',false);} CLI.checkCategories();CLI.generateConsent();});},settingsPopUp:function(){jQuery(document).on('click','.cli_settings_button',function(e){e.preventDefault();CLI.settingsModal.addClass("cli-show").css({'opacity':0}).animate({'opacity':1});CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup");jQuery('body').addClass("cli-modal-open");jQuery(".cli-settings-overlay").addClass("cli-show");jQuery("#cookie-law-info-bar").css({'opacity':.1});if(!jQuery('.cli-settings-mobile').is(':visible')){CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click");}});jQuery('#cliModalClose').on("click",function(e){CLI.settingsPopUpClose();});CLI.settingsModal.on("click",function(e){if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))){CLI.settingsPopUpClose();}});jQuery('.cli_enable_all_btn').on("click",function(e){var cli_toggle_btn=jQuery(this);var enable_text=cli_toggle_btn.attr('data-enable-text');var disable_text=cli_toggle_btn.attr('data-disable-text');if(cli_toggle_btn.hasClass('cli-enabled')){CLI.disableAllCookies();cli_toggle_btn.html(enable_text);}else{CLI.enableAllCookies();cli_toggle_btn.html(disable_text);} jQuery(this).toggleClass('cli-enabled');});this.privacyReadmore();},settingsTabbedAccordion:function(){jQuery(".cli-tab-header").on("click",function(e){if(!(jQuery(e.target).hasClass('cli-slider')||jQuery(e.target).hasClass('cli-user-preference-checkbox'))){if(jQuery(this).hasClass("cli-tab-active")){jQuery(this).removeClass("cli-tab-active");jQuery(this).siblings(".cli-tab-content").slideUp(200);}else{jQuery(".cli-tab-header").removeClass("cli-tab-active");jQuery(this).addClass("cli-tab-active");jQuery(".cli-tab-content").slideUp(200);jQuery(this).siblings(".cli-tab-content").slideDown(200);}}});},settingsPopUpClose:function(){this.settingsModal.removeClass('cli-show');this.settingsModal.addClass('cli-out');jQuery('body').removeClass("cli-modal-open");jQuery(".cli-settings-overlay").removeClass("cli-show");jQuery("#cookie-law-info-bar").css({'opacity':1});},privacyReadmore:function(){var el=jQuery('.cli-privacy-content .cli-privacy-content-text');if(el.length>0){var clone=el.clone(),originalHtml=clone.html(),originalHeight=el.outerHeight(),Trunc={addReadmore:function(textBlock){if(textBlock.html().length>250){jQuery('.cli-privacy-readmore').show();}else{jQuery('.cli-privacy-readmore').hide();}},truncateText:function(textBlock){var strippedText=jQuery('
').html(textBlock.html());strippedText.find('table').remove();textBlock.html(strippedText.html());currentText=textBlock.text();if(currentText.trim().length>250){var newStr=currentText.substring(0,250);textBlock.empty().html(newStr).append('...');}},replaceText:function(textBlock,original){return textBlock.html(original);}};Trunc.addReadmore(el);Trunc.truncateText(el);jQuery('a.cli-privacy-readmore').on("click",function(e){e.preventDefault();if(jQuery('.cli-privacy-overview').hasClass('cli-collapsed')){Trunc.truncateText(el);jQuery('.cli-privacy-overview').removeClass('cli-collapsed');el.css('height','100%');}else{jQuery('.cli-privacy-overview').addClass('cli-collapsed');Trunc.replaceText(el,originalHtml);}});}},attachDelete:function(){this.delete_link.on("click",function(e){CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);for(var k in Cli_Data.nn_cookie_ids){CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);} CLI.generateConsent();return false;});},configButtons:function(){this.main_button.css('color',this.settings.button_1_link_colour);if(Boolean(this.settings.button_1_as_button)){this.main_button.css('background-color',this.settings.button_1_button_colour);this.main_button.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_1_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_1_button_colour);});} this.main_link.css('color',this.settings.button_2_link_colour);if(Boolean(this.settings.button_2_as_button)){this.main_link.css('background-color',this.settings.button_2_button_colour);this.main_link.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_2_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_2_button_colour);});} this.reject_link.css('color',this.settings.button_3_link_colour);if(Boolean(this.settings.button_3_as_button)){this.reject_link.css('background-color',this.settings.button_3_button_colour);this.reject_link.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_3_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_3_button_colour);});} this.settings_button.css('color',this.settings.button_4_link_colour);if(Boolean(this.settings.button_4_as_button)){this.settings_button.css('background-color',this.settings.button_4_button_colour);this.settings_button.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_4_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_4_button_colour);});} this.accept_all_button.css('color',this.settings.button_7_link_colour);if(this.settings.button_7_as_button){this.accept_all_button.css('background-color',this.settings.button_7_button_colour);this.accept_all_button.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_7_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_7_button_colour);});}},toggleBar:function(){if(CLI_COOKIEBAR_AS_POPUP){this.barAsPopUp(1);} if(CLI.settings.cookie_bar_as=='widget'){this.barAsWidget(1);} if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){this.displayHeader();}else{this.hideHeader();} if(Boolean(this.settings.show_once_yn)){setTimeout(function(){CLI.close_header();},CLI.settings.show_once);} if(CLI.js_blocking_enabled===false){if(Boolean(Cli_Data.ccpaEnabled)===true){if(Cli_Data.ccpaType==='ccpa'&&Boolean(Cli_Data.ccpaBarEnabled)===false){cliBlocker.cookieBar(false);}}else{jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();}} this.showagain_elm.on("click",function(e){e.preventDefault();CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,function(){CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);if(CLI_COOKIEBAR_AS_POPUP){CLI.showPopupOverlay();}});});},configShowAgain:function(){this.showagain_config={'background-color':this.settings.background,'color':this.l1hs(this.settings.text),'position':'fixed','font-family':this.settings.font_family};if(Boolean(this.settings.border_on)){var border_to_hide='border-'+this.settings.notify_position_vertical;this.showagain_config['border']='1px solid '+this.l1hs(this.settings.border);this.showagain_config[border_to_hide]='none';} var cli_win=jQuery(window);var cli_winw=cli_win.width();var showagain_x_pos=this.settings.showagain_x_position;if(cli_winw<300){showagain_x_pos=10;this.showagain_config.width=cli_winw-20;}else{this.showagain_config.width='auto';} var cli_defw=cli_winw>400?500:cli_winw-20;if(CLI_COOKIEBAR_AS_POPUP){var sa_pos=this.settings.popup_showagain_position;var sa_pos_arr=sa_pos.split('-');if(sa_pos_arr[1]=='left'){this.showagain_config.left=showagain_x_pos;}else if(sa_pos_arr[1]=='right'){this.showagain_config.right=showagain_x_pos;} if(sa_pos_arr[0]=='top'){this.showagain_config.top=0;}else if(sa_pos_arr[0]=='bottom'){this.showagain_config.bottom=0;} this.bar_config['position']='fixed';}else if(this.settings.cookie_bar_as=='widget'){this.showagain_config.bottom=0;if(this.settings.widget_position=='left'){this.showagain_config.left=showagain_x_pos;}else if(this.settings.widget_position=='right'){this.showagain_config.right=showagain_x_pos;}}else{if(this.settings.notify_position_vertical=="top"){this.showagain_config.top='0';}else if(this.settings.notify_position_vertical=="bottom"){this.bar_config['position']='fixed';this.bar_config['bottom']='0';this.showagain_config.bottom='0';} if(this.settings.notify_position_horizontal=="left"){this.showagain_config.left=showagain_x_pos;}else if(this.settings.notify_position_horizontal=="right"){this.showagain_config.right=showagain_x_pos;}} this.showagain_elm.css(this.showagain_config);},configBar:function(){this.bar_config={'background-color':this.settings.background,'color':this.settings.text,'font-family':this.settings.font_family};if(this.settings.notify_position_vertical=="top"){this.bar_config['top']='0';if(Boolean(this.settings.header_fix)===true){this.bar_config['position']='fixed';}}else{this.bar_config['bottom']='0';} this.configShowAgain();this.bar_elm.css(this.bar_config).hide();},l1hs:function(str){if(str.charAt(0)=="#"){str=str.substring(1,str.length);}else{return"#"+str;} return this.l1hs(str);},close_header:function(){CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);this.hideHeader();},accept_close:function(){this.hidePopupOverlay();this.generateConsent();this.cookieLawInfoRunCallBacks();CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);if(Boolean(this.settings.notify_animate_hide)){if(CLI.js_blocking_enabled===true){this.bar_elm.slideUp(this.settings.animate_speed_hide,cliBlocker.runScripts);}else{this.bar_elm.slideUp(this.settings.animate_speed_hide);}}else{if(CLI.js_blocking_enabled===true){this.bar_elm.hide(0,cliBlocker.runScripts);}else{this.bar_elm.hide();}} if(Boolean(this.settings.showagain_tab)){this.showagain_elm.slideDown(this.settings.animate_speed_show);} if(Boolean(this.settings.accept_close_reload)===true){this.reload_current_page();} return false;},reject_close:function(){this.hidePopupOverlay();this.generateConsent();this.cookieLawInfoRunCallBacks();for(var k in Cli_Data.nn_cookie_ids){CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);} CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE);if(Boolean(this.settings.notify_animate_hide)){if(CLI.js_blocking_enabled===true){this.bar_elm.slideUp(this.settings.animate_speed_hide,cliBlocker.runScripts);}else{this.bar_elm.slideUp(this.settings.animate_speed_hide);}}else{if(CLI.js_blocking_enabled===true){this.bar_elm.hide(cliBlocker.runScripts);}else{this.bar_elm.hide();}} if(Boolean(this.settings.showagain_tab)){this.showagain_elm.slideDown(this.settings.animate_speed_show);} if(Boolean(this.settings.reject_close_reload)===true){this.reload_current_page();} return false;},reload_current_page:function(){window.location.reload(true);},closeOnScroll:function(){if(window.pageYOffset>100&&!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)){CLI.accept_close();if(Boolean(CLI.settings.scroll_close_reload)===true){window.location.reload();} window.removeEventListener("scroll",CLI.closeOnScroll,false);}},displayHeader:function(){if(Boolean(this.settings.notify_animate_show)){this.bar_elm.slideDown(this.settings.animate_speed_show);}else{this.bar_elm.show();} this.showagain_elm.hide();if(CLI_COOKIEBAR_AS_POPUP){this.showPopupOverlay();}},hideHeader:function(){if(Boolean(this.settings.showagain_tab)){if(Boolean(this.settings.notify_animate_show)){this.showagain_elm.slideDown(this.settings.animate_speed_show);}else{this.showagain_elm.show();}}else{this.showagain_elm.hide();} this.bar_elm.slideUp(this.settings.animate_speed_show);this.hidePopupOverlay();},hidePopupOverlay:function(){jQuery('body').removeClass("cli-barmodal-open");jQuery(".cli-popupbar-overlay").removeClass("cli-show");},showPopupOverlay:function(){if(this.bar_elm.length){if(Boolean(this.settings.popup_overlay)){jQuery('body').addClass("cli-barmodal-open");jQuery(".cli-popupbar-overlay").addClass("cli-show");}}},barAsWidget:function(a){var cli_elm=this.bar_elm;cli_elm.attr('data-cli-type','widget');var cli_win=jQuery(window);var cli_winh=cli_win.height()-40;var cli_winw=cli_win.width();var cli_defw=cli_winw>400?300:cli_winw-30;cli_elm.css({'width':cli_defw,'height':'auto','max-height':cli_winh,'overflow':'auto','position':'fixed','box-sizing':'border-box'});if(this.checkifStyleAttributeExist()===false){cli_elm.css({'padding':'25px 15px'});} if(this.settings.widget_position=='left'){cli_elm.css({'left':'15px','right':'auto','bottom':'15px','top':'auto'});}else{cli_elm.css({'left':'auto','right':'15px','bottom':'15px','top':'auto'});} if(a){this.setResize();}},barAsPopUp:function(a){if(typeof cookie_law_info_bar_as_popup==='function'){return false;} var cli_elm=this.bar_elm;cli_elm.attr('data-cli-type','popup');var cli_win=jQuery(window);var cli_winh=cli_win.height()-40;var cli_winw=cli_win.width();var cli_defw=cli_winw>700?500:cli_winw-20;cli_elm.css({'width':cli_defw,'height':'auto','max-height':cli_winh,'bottom':'','top':'50%','left':'50%','margin-left':(cli_defw/2)*-1,'margin-top':'-100px','overflow':'auto'}).addClass('cli-bar-popup cli-modal-content');if(this.checkifStyleAttributeExist()===false){cli_elm.css({'padding':'25px 15px'});} cli_h=cli_elm.height();li_h=cli_h<200?200:cli_h;cli_elm.css({'top':'50%','margin-top':((cli_h/2)+30)*-1});setTimeout(function(){cli_elm.css({'bottom':''});},100);if(a){this.setResize();}},setResize:function(){var resizeTmr=null;jQuery(window).resize(function(){clearTimeout(resizeTmr);resizeTmr=setTimeout(function(){if(CLI_COOKIEBAR_AS_POPUP){CLI.barAsPopUp();} if(CLI.settings.cookie_bar_as=='widget'){CLI.barAsWidget();} CLI.configShowAgain();},500);});},enableAllCookies:function(){jQuery('.cli-user-preference-checkbox').each(function(){var cli_chkbox_elm=jQuery(this);var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');if(cli_chkbox_data_id!='checkbox-necessary'){cli_chkbox_elm.prop('checked',true);CLI_Cookie.set('cookielawinfo-'+cli_chkbox_data_id,'yes',CLI_ACCEPT_COOKIE_EXPIRE);}});},disableAllCookies:function(){jQuery('.cli-user-preference-checkbox').each(function(){var cli_chkbox_elm=jQuery(this);var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');cliCategorySlug=cli_chkbox_data_id.replace('checkbox-','');if(Cli_Data.strictlyEnabled.indexOf(cliCategorySlug)===-1){cli_chkbox_elm.prop('checked',false);CLI_Cookie.set('cookielawinfo-'+cli_chkbox_data_id,'no',CLI_ACCEPT_COOKIE_EXPIRE);}});},hideCookieBarOnClose:function(){jQuery(document).on('click','.cli_cookie_close_button',function(e){e.preventDefault();var elm=jQuery(this);if(Cli_Data.ccpaType==='ccpa'){CLI.enableAllCookies();} CLI.accept_close();});},checkCategories:function(){var cliAllowedCategories=[];var cli_categories={};jQuery('.cli-user-preference-checkbox').each(function(){var status=false;cli_chkbox_elm=jQuery(this);cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-','');cli_chkbox_data_id_trimmed=cli_chkbox_data_id.replace('-','_') if(jQuery(cli_chkbox_elm).is(':checked')){status=true;cliAllowedCategories.push(cli_chkbox_data_id);} cli_categories[cli_chkbox_data_id_trimmed]=status;});CLI.allowedCategories=cliAllowedCategories;},cookieLawInfoRunCallBacks:function(){this.checkCategories();if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'){if("function"==typeof CookieLawInfo_Accept_Callback){CookieLawInfo_Accept_Callback();}}},generateConsent:function(){var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);cliConsent={};if(preferenceCookie!==null){cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent);} cliConsent.ver=Cli_Data.consentVersion;categories=[];jQuery('.cli-user-preference-checkbox').each(function(){categoryVal='';cli_chkbox_data_id=jQuery(this).attr('data-id');cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-','');if(jQuery(this).is(':checked')){categoryVal=true;}else{categoryVal=false;} cliConsent[cli_chkbox_data_id]=categoryVal;});cliConsent=JSON.stringify(cliConsent);cliConsent=window.btoa(cliConsent);CLI_Cookie.set(CLI_PREFERENCE_COOKIE,cliConsent,CLI_ACCEPT_COOKIE_EXPIRE);},addStyleAttribute:function(){var bar=this.bar_elm;var styleClass='';if(jQuery(bar).find('.cli-bar-container').length>0){styleClass=jQuery('.cli-bar-container').attr('class');styleClass=styleClass.replace('cli-bar-container','');styleClass=styleClass.trim();jQuery(bar).attr('data-cli-style',styleClass);}},getParameterByName:function(name,url){if(!url){url=window.location.href;} name=name.replace(/[\[\]]/g,'\\$&');var regex=new RegExp('[?&]'+name+'(=([^&#]*)|&|#|$)'),results=regex.exec(url);if(!results){return null;} if(!results[2]){return'';} return decodeURIComponent(results[2].replace(/\+/g,' '));},CookieLawInfo_Callback:function(enableBar,enableBlocking){enableBar=typeof enableBar!=='undefined'?enableBar:true;enableBlocking=typeof enableBlocking!=='undefined'?enableBlocking:true;if(CLI.js_blocking_enabled===true&&Boolean(Cli_Data.custom_integration)===true){cliBlocker.cookieBar(enableBar);cliBlocker.runScripts(enableBlocking);}},checkifStyleAttributeExist:function(){var exist=false;var attr=this.bar_elm.attr('data-cli-style');if(typeof attr!==typeof undefined&&attr!==false){exist=true;} return exist;},reviewConsent:function(){jQuery(document).on('click','.cli_manage_current_consent,.wt-cli-manage-consent-link',function(){CLI.displayHeader();});},mayBeSetPreferenceCookie:function(){if(CLI.getParameterByName('cli_bypass')==="1"){CLI.generateConsent();}}} var cliBlocker={blockingStatus:true,scriptsLoaded:false,ccpaEnabled:false,ccpaRegionBased:false,ccpaApplicable:false,ccpaBarEnabled:false,cliShowBar:true,isBypassEnabled:CLI.getParameterByName('cli_bypass'),checkPluginStatus:function(callbackA,callbackB){this.ccpaEnabled=Boolean(Cli_Data.ccpaEnabled);this.ccpaRegionBased=Boolean(Cli_Data.ccpaRegionBased);this.ccpaBarEnabled=Boolean(Cli_Data.ccpaBarEnabled);if(Boolean(Cli_Data.custom_integration)===true){callbackA(false);}else{if(this.ccpaEnabled===true){this.ccpaApplicable=true;if(Cli_Data.ccpaType==='ccpa'){if(this.ccpaBarEnabled!==true){this.cliShowBar=false;this.blockingStatus=false;}}}else{jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();} if(cliBlocker.isBypassEnabled==="1"){cliBlocker.blockingStatus=false;} callbackA(this.cliShowBar);callbackB(this.blockingStatus);}},cookieBar:function(showbar){showbar=typeof showbar!=='undefined'?showbar:true;cliBlocker.cliShowBar=showbar;if(cliBlocker.cliShowBar===false){CLI.bar_elm.hide();CLI.showagain_elm.hide();CLI.settingsModal.removeClass('cli-blowup cli-out');CLI.hidePopupOverlay();jQuery(".cli-settings-overlay").removeClass("cli-show");}else{if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){CLI.displayHeader();}else{CLI.hideHeader();}}},removeCookieByCategory:function(){if(cliBlocker.blockingStatus===true){if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)!==null){var non_necessary_cookies=Cli_Data.non_necessary_cookies;for(var key in non_necessary_cookies){currentCategory=key;if(CLI.allowedCategories.indexOf(currentCategory)===-1){var nonNecessaryCookies=non_necessary_cookies[currentCategory];for(var i=0;i0){var runList=[] var typeAttr Array.prototype.forEach.call($scripts,function($script){typeAttr=$script.getAttribute('type') runList.push(function(callback){cliScriptFuncs.insertScript($script,callback)})}) cliScriptFuncs.seq(runList,cliScriptFuncs.scriptsDone);}}};genericFuncs.renderByElement(cliBlocker.removeCookieByCategory);},ccpaOptedOut:function(){var ccpaOptedOut=false;var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);if(preferenceCookie!==null){cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent);if(typeof cliConsent.ccpaOptout!=='undefined'){ccpaOptedOut=cliConsent.ccpaOptout;}} return ccpaOptedOut;}} jQuery(document).ready(function(){if(typeof cli_cookiebar_settings!='undefined'){CLI.set({settings:cli_cookiebar_settings});if(CLI.js_blocking_enabled===true){cliBlocker.checkPluginStatus(cliBlocker.cookieBar,cliBlocker.runScripts);}}}); /*! For license information please see script.js.LICENSE.txt */ !function(){"use strict";const e=document,t=window,i=navigator,o=encodeURIComponent,n=t.location,a="koko_analytics";function r(r){let{use_cookie:s,cookie_path:c}=t[a];if("prerender"==e.visibilityState||/bot|crawl|spider|seo|lighthouse|preview/i.test(i.userAgent))return;const d=function(){let t=e.cookie.match(/_koko_analytics_pages_viewed=([^;]+)/);return t?t.pop().split("a"):[]}();r+="";let l=d.length?0:1,p=-1==d.indexOf(r)?1:0,u=e.referrer;var _;0==u.indexOf(n.origin)&&(l=0,u==n.href&&(p=0),u=""),_=`p=${r}&nv=${l}&up=${p}&r=${o(u)}`,i.sendBeacon(t[a].url+(t[a].url.indexOf("?")>-1?"&":"?")+_),p&&d.push(r),s&&(e.cookie=`_${a}_pages_viewed=${d.join("a")};SameSite=lax;path=${c};max-age=21600`)}t[a].trackPageview=r,t.addEventListener("load",(()=>r(t[a].post_id)))}(); let WP_Statistics_CheckTime=6e4,WP_Statistics_Dnd_Active=parseInt(navigator.msDoNotTrack||window.doNotTrack||navigator.doNotTrack,10),wpStatisticsUserOnline={init:function(){"undefined"==typeof WP_Statistics_Tracker_Object?console.log("Variable WP_Statistics_Tracker_Object not found on the page source. Please ensure that you have excluded the /wp-content/plugins/wp-statistics/assets/js/tracker.js file from your cache and then clear your cache."):(this.checkHitRequestConditions(),this.keepUserOnline())},checkHitRequestConditions:function(){!WP_Statistics_Tracker_Object.option.cacheCompatibility||WP_Statistics_Tracker_Object.option.dntEnabled&&1===WP_Statistics_Dnd_Active||this.sendHitRequest()},sendHitRequest:async function(){try{var e=encodeURIComponent(document.referrer),t=Date.now(),n=WP_Statistics_Tracker_Object.hitRequestUrl+`&referred=${e}&_=`+t;(await fetch(n,{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"}})).ok||console.error("Hit request failed!")}catch(e){console.error("An error occurred on sending hit request:",e)}},sendOnlineUserRequest:function(){var e=new XMLHttpRequest;e.open("GET",WP_Statistics_Tracker_Object.keepOnlineRequestUrl),e.setRequestHeader("Content-Type","application/json;charset=UTF-8"),e.send(null)},keepUserOnline:function(){setInterval(function(){document.hidden||WP_Statistics_Tracker_Object.option.dntEnabled&&1===WP_Statistics_Dnd_Active||this.sendOnlineUserRequest()}.bind(this),WP_Statistics_CheckTime)}};document.addEventListener("DOMContentLoaded",function(){wpStatisticsUserOnline.init()}); (function(modules){var parentJsonpFunction=window["webpackJsonp"];window["webpackJsonp"]=function webpackJsonpCallback(chunkIds,moreModules,executeModules){var moduleId,chunkId,i=0,resolves=[],result;for(;i=wait)||(timeSinceLastCall<0)||(maxing&&timeSinceLastInvoke>=maxWait));} function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);} timerId=setTimeout(timerExpired,remainingWait(time));} function trailingEdge(time){timerId=undefined;if(trailing&&lastArgs){return invokeFunc(time);} lastArgs=lastThis=undefined;return result;} function cancel(){if(timerId!==undefined){clearTimeout(timerId);} lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined;} function flush(){return timerId===undefined?result:trailingEdge(now());} function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined){return leadingEdge(lastCallTime);} if(maxing){timerId=setTimeout(timerExpired,wait);return invokeFunc(lastCallTime);}} if(timerId===undefined){timerId=setTimeout(timerExpired,wait);} return result;} debounced.cancel=cancel;debounced.flush=flush;return debounced;} module.exports=debounce;}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]=getCookie;function getCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i li:first-child')){this.category_id=this.element.querySelector('ul > li:first-child').getAttribute('data-category');} this.target=this.element.querySelector('.dropdown-menu');return;}else if(!this.element.classList.contains('item-depth-1')&&!this.element.classList.contains('menu-item-has-children')){this.element.insertAdjacentHTML('beforeend','');this.target=this.element.querySelector('.dropdown-menu');}else if(this.element.classList.contains('item-depth-1')){this.target=this.element.parentElement.parentElement.parentElement.querySelector('.dropdown-menu');this.element.addEventListener('mouseover',this.show.bind(this));this.element.addEventListener('mouseout',this.hide.bind(this));this.show();}else{this.target=this.element.querySelector('.dropdown-menu');} this.call();} call(){this.target.classList.remove('loaded');let _this=this;const data=new FormData();data.append('action','load_posts_in_menu');data.append('category',this.category_id.toString());data.append('object',this.object);fetch('/wp-admin/admin-ajax.php',{method:'POST',body:data,}).then(response=>response.json()).then(data=>{_this.addHTML(data);}).catch((error)=>{console.error('Error:',error);});} addHTML(response){let template='';response.forEach(function(value,key){let img='';if(value.image!=''){img=``;} template=template+`
${img} ${value.date}

${value.title}

`;if(key==2){template='
'+template+'
';}});if(response.length<=2){template='
'+template;} template=template+'
';this.insert(template);this.status='loaded';} insert(html){this.element.classList.add('loaded');if(!this.target.querySelector('.has-megamenu.item-'+this.category_id)){let style='';if(this.status=='mouseout'){style='style="display:none;"';}else{this.target.classList.add('loaded');} this.target.insertAdjacentHTML('beforeend','
'+html+'
');} this.status='append';} show(){this.status='mouseover';var hasMegamenu=this.target.querySelectorAll('.has-megamenu');hasMegamenu.forEach(function(menu){menu.style.display='none';});if(this.target.querySelector('.has-megamenu.item-'+this.category_id)){this.target.querySelector('.has-megamenu.item-'+this.category_id).style.display='block';}} hide(){this.status='mouseout';}} __webpack_exports__["a"]=MegaMenu;}),(function(module,exports,__webpack_require__){var root=__webpack_require__(2);var now=function(){return root.Date.now();};module.exports=now;}),(function(module,exports,__webpack_require__){(function(global){var freeGlobal=typeof global=='object'&&global&&global.Object===Object&&global;module.exports=freeGlobal;}.call(exports,__webpack_require__(13)))}),(function(module,exports){var g;g=(function(){return this;})();try{g=g||Function("return this")()||(1,eval)("this");}catch(e){if(typeof window==="object") g=window;} module.exports=g;}),(function(module,exports,__webpack_require__){var isObject=__webpack_require__(1),isSymbol=__webpack_require__(15);var NAN=0/0;var reTrim=/^\s+|\s+$/g;var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;var reIsBinary=/^0b[01]+$/i;var reIsOctal=/^0o[0-7]+$/i;var freeParseInt=parseInt;function toNumber(value){if(typeof value=='number'){return value;} if(isSymbol(value)){return NAN;} if(isObject(value)){var other=typeof value.valueOf=='function'?value.valueOf():value;value=isObject(other)?(other+''):other;} if(typeof value!='string'){return value===0?value:+value;} value=value.replace(reTrim,'');var isBinary=reIsBinary.test(value);return(isBinary||reIsOctal.test(value))?freeParseInt(value.slice(2),isBinary?2:8):(reIsBadHex.test(value)?NAN:+value);} module.exports=toNumber;}),(function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(16),isObjectLike=__webpack_require__(19);var symbolTag='[object Symbol]';function isSymbol(value){return typeof value=='symbol'||(isObjectLike(value)&&baseGetTag(value)==symbolTag);} module.exports=isSymbol;}),(function(module,exports,__webpack_require__){var Symbol=__webpack_require__(3),getRawTag=__webpack_require__(17),objectToString=__webpack_require__(18);var nullTag='[object Null]',undefinedTag='[object Undefined]';var symToStringTag=Symbol?Symbol.toStringTag:undefined;function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag;} return(symToStringTag&&symToStringTag in Object(value))?getRawTag(value):objectToString(value);} module.exports=baseGetTag;}),(function(module,exports,__webpack_require__){var Symbol=__webpack_require__(3);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var nativeObjectToString=objectProto.toString;var symToStringTag=Symbol?Symbol.toStringTag:undefined;function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true;}catch(e){} var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag;}else{delete value[symToStringTag];}} return result;} module.exports=getRawTag;}),(function(module,exports){var objectProto=Object.prototype;var nativeObjectToString=objectProto.toString;function objectToString(value){return nativeObjectToString.call(value);} module.exports=objectToString;}),(function(module,exports){function isObjectLike(value){return value!=null&&typeof value=='object';} module.exports=isObjectLike;}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]=(function(tag){var s=document.createElement('script');if(tag.getAttribute('src')){s.setAttribute('src',tag.getAttribute('src'));}else{s.innerHTML=tag.innerHTML;} if(tag.getAttribute('async')){s.setAttribute('async',tag.getAttribute('async'));} if(tag.getAttribute('id')){s.setAttribute('id',tag.getAttribute('id'));s.onload=function(){document.body.dispatchEvent(new CustomEvent('mf_lazyloaded_'+tag.getAttribute('id')));};} document.body.appendChild(s);});}),(function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_lodash_debounce__=__webpack_require__(4);var __WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_debounce__);var __WEBPACK_IMPORTED_MODULE_1_lodash_isArray__=__webpack_require__(22);var __WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isArray__);var __WEBPACK_IMPORTED_MODULE_2_lodash_isObject__=__webpack_require__(1);var __WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isObject__);if(window.AdOcean_Emission==undefined){window.AdOcean_Emission=function(){};} if(window.AdOcean_Not_Emission==undefined){window.AdOcean_Not_Emission=function(){};} class Adocean{constructor(){this.window_sizes=[{min:1601,max:5000,name:'desktop',},{min:1200,max:1600.8,name:'largeDesktop',},{min:992,max:1199,name:'smallDesktop',},{min:768.2,max:992,name:'tablet',},{min:0,max:768,name:'phone',},];this.banners=[];this.placement=[];if(adobanners.length<=0){return;} this.detectDevices(true);window.addEventListener('resize',__WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default()(this.detectDevices.bind(this,true),30));document.body.addEventListener('mf_banners_refresh_position',this.detectDevices.bind(this,false));this.banners=adobanners[mfadomaster.name];this.showBanners();let div=document.createElement('div');div.style.display='none';this.styks=div;this.__inAfter(document.body,this.styks);} addPlacement(_banner,target){let banner=JSON.parse(JSON.stringify(_banner));if(__WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default()(banner.target)&&!__WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default()(banner.target)){let _target=banner.target;for(let prop in _target){if(__WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default()(_target[prop])){_target[prop][0]=(target+' '+_target[prop][0]).trim();}else{_target[prop]=(target+' '+_target[prop]).trim();}} banner.target=_target;}else{if(__WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default()(banner.target)){banner.target[0]=(target+' '+banner.target[0]).trim();}else{banner.target=(target+' '+banner.target).trim();}} banner.container=this.display(banner,false);this.banners.push(banner);} detectDevices(event){let device=null;for(let i=0;i-1){banner.container.remove();_this.banners.splice(index,1);} if(banner.callbackNoEmmit!=undefined){banner.callbackNoEmmit(_this);} setTimeout(function(){document.body.dispatchEvent(new CustomEvent('mf_banners_no_showed'));},100);}});}else{ado.placement({id:banner.id,server:'gpl.adocean.pl',vars:mfadoparams,onServerEmission:function(){_this.__addAdInfo(container);container.className+=' active';if(banner.callbackEmmit!=undefined){banner.callbackEmmit(_this);} setTimeout(function(){document.body.dispatchEvent(new CustomEvent('mf_banners_showed'));},100);},onServerEmissionEmpty:function(){_this.__addAdInfo(container);container.className+=' active';if(banner.callbackEmmit!=undefined){banner.callbackEmmit(this);} setTimeout(function(){document.body.dispatchEvent(new CustomEvent('mf_banners_showed'));},100);}});} return container;} insert(banner,container){let selector=banner.target;if(__WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default()(selector)&&!__WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default()(selector)){selector=selector[this.device]!=undefined?selector[this.device]:selector.desktop;} let target=this.__getTarget(__WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default()(selector)?selector[0]:selector);if(target==null){return false;} let method=Array.isArray(selector)?selector[1]:'appendAfter';if(banner.method!=undefined&&target!=undefined&&this.device=='desktop'){method=banner.method;} switch(method){case'appendAfter':this.__appendAfter(target,container);break;case'appendBefore':this.__appendBefore(target,container);break;case'inAfter':this.__inAfter(target,container);break;case'inBefore':this.__inBefore(target,container);break;}} __appendAfter(referenceNode,newNode){if(referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling);}} __appendBefore(referenceNode,newNode){if(referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode);}} __inBefore(referenceNode,newNode){if(referenceNode){referenceNode.insertBefore(newNode,referenceNode.childNodes[0]);}} __inAfter(referenceNode,newNode){if(referenceNode){referenceNode.appendChild(newNode);}} __addAdInfo(container){let txt=document.createElement('span');txt.innerText=Lang.advertisement;txt.style.left="50%";txt.style.transform="translateX(-50%)";txt.style.color="#868686";txt.style.top="-12px";txt.style.fontSize="10px";txt.style.textTransform="uppercase";txt.style.lineHeight="10px";txt.style.margin="auto auto";txt.style.position="absolute";container.insertBefore(txt,container.childNodes[0]);} moveBanners(event=true){if(!this.banners){return;} for(let i=0;i=scrollY&&menu.hasClass('sticky')){scrollPosition=scrollY;menu.removeClass('sticky');menu.css({top:'-50px'});return;} scrollTimeout=setTimeout(function(){parentMenuPosition=menu.parent().offset();if(parentMenuPosition.top+menu.height()>=scrollY&&menu.hasClass('sticky')){scrollPosition=scrollY;menu.removeClass('sticky');menu.css({top:'-50px'});return;} if(parentMenuPosition.top+menu.height()>=scrollY){scrollPosition=scrollY;return;} if(scrollPosition>=scrollY){if(!menu.hasClass('sticky')){menu.addClass('sticky');menu.stop().animate({top:'0px'},100);}}else{if(menu.hasClass('sticky')){menu.stop().animate({top:'-50px'},100,'linear',function(){menu.removeClass('sticky');});}} scrollPosition=scrollY;},100);});function getTheMagnificPopup(clicked){jQuery.magnificPopup.open({type:'image',items:{src:clicked.attr('href'),title:function(){if(clicked.attr('title')!==undefined){jQuery.magnificPopup.instance.container.addClass('single-caption');return'
'+clicked.attr('title')+'
';}else if(clicked.parent().hasClass('wp-caption')){jQuery.magnificPopup.instance.container.addClass('single-caption');var parent=clicked.parent();return'
'+parent.find('figcaption').text()+'
';}else{jQuery.magnificPopup.instance.container.addClass('no-title');return null;}}}});return false;} jQuery(document).ready(function(){jQuery('#flashmessages').modal('show');jQuery.extend(true,jQuery.magnificPopup.defaults,{tClose:Lang.close,tLoading:Lang.loading,gallery:{tPrev:Lang.previous,tNext:Lang.next,tCounter:'%curr%/%total%'},image:{tError:''+Lang.image+' '+Lang.was_not_found+'.'},ajax:{tError:''+Lang.contents+' '+Lang.could_not_be+'.'}});jQuery('body').on('click','.article a',function(i,n){var clicked=jQuery(this);if(clicked.hasClass('image-link')){var gallery=clicked.parent().parent();var images=[];gallery.find('.item').each(function(){var el=jQuery(this);images.push({type:'image',src:el.find('.image-link').attr('href'),title:el.find('.caption').html()});});setTimeout(function(){jQuery.magnificPopup.open({mainClass:'mfp-gallery',items:images,gallery:{enabled:true}});},300);return false;} if(clicked.attr('href').match(/\.(jpg|png|gif|jpeg)$/)){getTheMagnificPopup(clicked);return false;}});jQuery('body').on('click','.lightbox-img',function(i,n){getTheMagnificPopup(jQuery(this));return false;});jQuery('.carousel').carousel({interval:false}).on('slid.bs.carousel',function(){var gallery=jQuery(this);var items=gallery.find('.carousel-inner .item');items.each(function(i){if(jQuery(this).hasClass('active')){gallery.find('.images-counter .now-see').text(i+1);}});});});jQuery('[name="sort_by"]').on('change',function(e){var input=jQuery(e.currentTarget);input.closest('form').submit();});if(document.body.classList.contains('search-results')){__webpack_require__.e(0).then(__webpack_require__.bind(null,36)).then(function(comp){var markInstance=new comp.default(document.querySelector('.searchresults'));markInstance.mark(document.getElementById('query-field').value,{});})}}.call(__webpack_exports__,__webpack_require__(0)))}),(function(module,exports){}),(function(module,__webpack_exports__,__webpack_require__){"use strict";(function(jQuery){var __WEBPACK_IMPORTED_MODULE_0_lodash_debounce__=__webpack_require__(4);var __WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_debounce__);mf.comments=function($el){var app={initialize:function($el) {this.$el=$el;this.input=this.$el.find('[name="comment"],[name="author"],[name="regulamin"]');this.form=this.$el.find('form');this.captcha=this.$el.find('.recaptcha');this.submit=this.$el.find('[type="submit"]');this.cancel=this.$el.find('.cancel a');this.cancel.hide();window.onloadCallback=this.captchaCallback.bind(this);this.attach();$el.find('.help-block').each(function(k,i){jQuery(i).hide();});},attach:function() {var deb=__WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default()(this.onChange.bind(this),200);this.input.each(function(i,e){jQuery(e).on('change keyup',deb);});this.cancel.on('click',this.onCancel.bind(this));this.$el.on('click','.comment-reply',this.onReply.bind(this));this.$el.on('click','.comment-vote',this.onVote.bind(this));this.form.on('submit',this.onSubmit.bind(this));this.form.find('[name="comment"]').on('focus',this.open.bind(this));},open:function() {if(this.form.hasClass('is-open')) return;this.form.addClass('is-open');if(parseInt(this.form.attr('data-recaptcha'))===1) {this.submit.attr('disabled','disabled');if(!this.form.hasClass('has-recaptcha')) {grecaptcha.render(this.captcha.attr('id'),{sitekey:this.captcha.attr('data-key'),callback:this.verifyCaptchaSuccesfull.bind(this),theme:'light'});this.form.addClass('has-recaptcha');}}},clear:function() {this.input.each(function(i,v){if(v.getAttribute('type')!=='checkbox') jQuery(v).val('');else jQuery(v).removeAttr('checked');});this.$el.find('.help-block').each(function(k,i){jQuery(i).hide();});this.$el.find('.has-error').each(function(k,i){jQuery(i).removeClass('has-error');});this.$el.find('[name="regulamin"]').removeProp('checked');this.$el.find('.is-hidden').each(function(i,v){jQuery(v).show().removeClass('is-hidden');});if(parseInt(this.form.attr('data-recaptcha'))===1) this.submit.attr('disabled','disabled');this.cancel.hide().closest('.form-group').removeClass('has-cancel');this.form.find('[name="comment_parent"]').val('');},captchaCallback:function() {},verifyCaptchaSuccesfull:function() {this.submit.removeAttr('disabled');},onChange:function(e) {var input=jQuery(e.target);this.validate(input);},validate:function(input) {var container=input.closest('.form-group');var name=input.attr('name').charAt(0).toUpperCase()+input.attr('name').slice(1);if(!this['validate'+name](input,container)) {this.showMessage(container);return false;} this.hideMessage(container);return true;},validateAll:function() {var status=true;var validate=this.validate.bind(this);this.input.each(function(i,e){if(!validate(jQuery(e))) status=false;});return status;},validateComment:function(input) {return input.val().length>5},validateAuthor:function(input) {return input.val()==0||input.val().length>3},validateRegulamin:function(input) {return input.prop('checked');},showMessage:function(container) {container.addClass('has-error');container.find('.help-block').show();},hideMessage:function(container) {container.removeClass('has-error');container.find('.help-block').hide();},onReply:function(e) {this.clear();var button=jQuery(e.target);button.hide().addClass('is-hidden');var container=button.closest('.comment');this.cancel.show().closest('.form-group').addClass('has-cancel');container.append(this.form);this.form.find('[name="comment_parent"]').val(button.attr('data-id'));this.form.find('[name="comment"]').focus();this.open();return false;},onCancel:function() {this.clear();this.$el.find('.container-form').append(this.form);return false;},onSubmit:function(e) {if(!this.validateAll()) e.preventDefault();return;},onVote:function(e) {var button=jQuery(e.target);jQuery.ajax({type:'POST',url:'/wp-admin/admin-ajax.php',data:{action:'commentsvote_ajaxhandler',commentid:button.attr('data-id'),vote:Boolean(parseInt(button.attr('data-increment')))?'plus':'minus',nonce:button.attr('data-nonce')},success:this.voteCallback.bind(button)});},voteCallback:function(response) {var container=this.closest('.vote-panel');var label=this.parent();setTimeout(function(){container.find('p').remove();},1500);if(response.code!==200&&response.message){container.append('

'+response.message+'

');return;} label.find('.counter').html(response.vote);container.append('

'+response.message+'

');}};app.initialize($el);return app;};function MFBanners(el) {return new mf.comments(el);}}.call(__webpack_exports__,__webpack_require__(0)))}),(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__; /*! Magnific Popup - v1.1.0 - 2016-02-20 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2016 Dmitry Semenov; */ ;(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(0)],__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__));}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(window.jQuery||window.Zepto);}}(function($){var CLOSE_EVENT='Close',BEFORE_CLOSE_EVENT='BeforeClose',AFTER_CLOSE_EVENT='AfterClose',BEFORE_APPEND_EVENT='BeforeAppend',MARKUP_PARSE_EVENT='MarkupParse',OPEN_EVENT='Open',CHANGE_EVENT='Change',NS='mfp',EVENT_NS='.'+NS,READY_CLASS='mfp-ready',REMOVING_CLASS='mfp-removing',PREVENT_CLOSE_CLASS='mfp-prevent-close';var mfp,MagnificPopup=function(){},_isJQ=!!(window.jQuery),_prevStatus,_window=$(window),_document,_prevContentType,_wrapClasses,_currPopupType;var _mfpOn=function(name,f){mfp.ev.on(NS+name+EVENT_NS,f);},_getEl=function(className,appendTo,html,raw){var el=document.createElement('div');el.className='mfp-'+className;if(html){el.innerHTML=html;} if(!raw){el=$(el);if(appendTo){el.appendTo(appendTo);}}else if(appendTo){appendTo.appendChild(el);} return el;},_mfpTrigger=function(e,data){mfp.ev.triggerHandler(NS+e,data);if(mfp.st.callbacks){e=e.charAt(0).toLowerCase()+e.slice(1);if(mfp.st.callbacks[e]){mfp.st.callbacks[e].apply(mfp,$.isArray(data)?data:[data]);}}},_getCloseBtn=function(type){if(type!==_currPopupType||!mfp.currTemplate.closeBtn){mfp.currTemplate.closeBtn=$(mfp.st.closeMarkup.replace('%title%',mfp.st.tClose));_currPopupType=type;} return mfp.currTemplate.closeBtn;},_checkInstance=function(){if(!$.magnificPopup.instance){mfp=new MagnificPopup();mfp.init();$.magnificPopup.instance=mfp;}},supportsTransitions=function(){var s=document.createElement('p').style,v=['ms','O','Moz','Webkit'];if(s['transition']!==undefined){return true;} while(v.length){if(v.pop()+'Transition'in s){return true;}} return false;};MagnificPopup.prototype={constructor:MagnificPopup,init:function(){var appVersion=navigator.appVersion;mfp.isLowIE=mfp.isIE8=document.all&&!document.addEventListener;mfp.isAndroid=(/android/gi).test(appVersion);mfp.isIOS=(/iphone|ipad|ipod/gi).test(appVersion);mfp.supportsTransition=supportsTransitions();mfp.probablyMobile=(mfp.isAndroid||mfp.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent));_document=$(document);mfp.popupsCache={};},open:function(data){var i;if(data.isObj===false){mfp.items=data.items.toArray();mfp.index=0;var items=data.items,item;for(i=0;i(winHeight||_window.height()));},_setFocus:function(){(mfp.st.focus?mfp.content.find(mfp.st.focus).eq(0):mfp.wrap).focus();},_onFocusIn:function(e){if(e.target!==mfp.wrap[0]&&!$.contains(mfp.wrap[0],e.target)){mfp._setFocus();return false;}},_parseMarkup:function(template,values,item){var arr;if(item.data){values=$.extend(item.data,values);} _mfpTrigger(MARKUP_PARSE_EVENT,[template,values,item]);$.each(values,function(key,value){if(value===undefined||value===false){return true;} arr=key.split('_');if(arr.length>1){var el=template.find(EVENT_NS+'-'+arr[0]);if(el.length>0){var attr=arr[1];if(attr==='replaceWith'){if(el[0]!==value[0]){el.replaceWith(value);}}else if(attr==='img'){if(el.is('img')){el.attr('src',value);}else{el.replaceWith($('').attr('src',value).attr('class',el.attr('class')));}}else{el.attr(arr[1],value);}}}else{template.find(EVENT_NS+'-'+key).html(value);}});},_getScrollbarSize:function(){if(mfp.scrollbarSize===undefined){var scrollDiv=document.createElement("div");scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';document.body.appendChild(scrollDiv);mfp.scrollbarSize=scrollDiv.offsetWidth-scrollDiv.clientWidth;document.body.removeChild(scrollDiv);} return mfp.scrollbarSize;}};$.magnificPopup={instance:null,proto:MagnificPopup.prototype,modules:[],open:function(options,index){_checkInstance();if(!options){options={};}else{options=$.extend(true,{},options);} options.isObj=true;options.index=index||0;return this.instance.open(options);},close:function(){return $.magnificPopup.instance&&$.magnificPopup.instance.close();},registerModule:function(name,module){if(module.options){$.magnificPopup.defaults[name]=module.options;} $.extend(this.proto,module.proto);this.modules.push(name);},defaults:{disableOn:0,key:null,midClick:false,mainClass:'',preloader:true,focus:'',closeOnContentClick:false,closeOnBgClick:true,closeBtnInside:true,showCloseBtn:true,enableEscapeKey:true,modal:false,alignTop:false,removalDelay:0,prependTo:null,fixedContentPos:'auto',fixedBgPos:'auto',overflowY:'auto',closeMarkup:'',tClose:'Close (Esc)',tLoading:'Loading...',autoFocusLast:true}};$.fn.magnificPopup=function(options){_checkInstance();var jqEl=$(this);if(typeof options==="string"){if(options==='open'){var items,itemOpts=_isJQ?jqEl.data('magnificPopup'):jqEl[0].magnificPopup,index=parseInt(arguments[1],10)||0;if(itemOpts.items){items=itemOpts.items[index];}else{items=jqEl;if(itemOpts.delegate){items=items.find(itemOpts.delegate);} items=items.eq(index);} mfp._openClick({mfpEl:items},jqEl,itemOpts);}else{if(mfp.isOpen) mfp[options].apply(mfp,Array.prototype.slice.call(arguments,1));}}else{options=$.extend(true,{},options);if(_isJQ){jqEl.data('magnificPopup',options);}else{jqEl[0].magnificPopup=options;} mfp.addGroup(jqEl,options);} return jqEl;};var INLINE_NS='inline',_hiddenClass,_inlinePlaceholder,_lastInlineElement,_putInlineElementsBack=function(){if(_lastInlineElement){_inlinePlaceholder.after(_lastInlineElement.addClass(_hiddenClass)).detach();_lastInlineElement=null;}};$.magnificPopup.registerModule(INLINE_NS,{options:{hiddenClass:'hide',markup:'',tNotFound:'Content not found'},proto:{initInline:function(){mfp.types.push(INLINE_NS);_mfpOn(CLOSE_EVENT+'.'+INLINE_NS,function(){_putInlineElementsBack();});},getInline:function(item,template){_putInlineElementsBack();if(item.src){var inlineSt=mfp.st.inline,el=$(item.src);if(el.length){var parent=el[0].parentNode;if(parent&&parent.tagName){if(!_inlinePlaceholder){_hiddenClass=inlineSt.hiddenClass;_inlinePlaceholder=_getEl(_hiddenClass);_hiddenClass='mfp-'+_hiddenClass;} _lastInlineElement=el.after(_inlinePlaceholder).detach().removeClass(_hiddenClass);} mfp.updateStatus('ready');}else{mfp.updateStatus('error',inlineSt.tNotFound);el=$('
');} item.inlineElement=el;return el;} mfp.updateStatus('ready');mfp._parseMarkup(template,{},item);return template;}}});var AJAX_NS='ajax',_ajaxCur,_removeAjaxCursor=function(){if(_ajaxCur){$(document.body).removeClass(_ajaxCur);}},_destroyAjaxRequest=function(){_removeAjaxCursor();if(mfp.req){mfp.req.abort();}};$.magnificPopup.registerModule(AJAX_NS,{options:{settings:null,cursor:'mfp-ajax-cur',tError:'The content could not be loaded.'},proto:{initAjax:function(){mfp.types.push(AJAX_NS);_ajaxCur=mfp.st.ajax.cursor;_mfpOn(CLOSE_EVENT+'.'+AJAX_NS,_destroyAjaxRequest);_mfpOn('BeforeChange.'+AJAX_NS,_destroyAjaxRequest);},getAjax:function(item){if(_ajaxCur){$(document.body).addClass(_ajaxCur);} mfp.updateStatus('loading');var opts=$.extend({url:item.src,success:function(data,textStatus,jqXHR){var temp={data:data,xhr:jqXHR};_mfpTrigger('ParseAjax',temp);mfp.appendContent($(temp.data),AJAX_NS);item.finished=true;_removeAjaxCursor();mfp._setFocus();setTimeout(function(){mfp.wrap.addClass(READY_CLASS);},16);mfp.updateStatus('ready');_mfpTrigger('AjaxContentAdded');},error:function(){_removeAjaxCursor();item.finished=item.loadError=true;mfp.updateStatus('error',mfp.st.ajax.tError.replace('%url%',item.src));}},mfp.st.ajax.settings);mfp.req=$.ajax(opts);return'';}}});var _imgInterval,_getTitle=function(item){if(item.data&&item.data.title!==undefined) return item.data.title;var src=mfp.st.image.titleSrc;if(src){if($.isFunction(src)){return src.call(mfp,item);}else if(item.el){return item.el.attr(src)||'';}} return'';};$.magnificPopup.registerModule('image',{options:{markup:'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
'+'
',cursor:'mfp-zoom-out-cur',titleSrc:'title',verticalFit:true,tError:'The image could not be loaded.'},proto:{initImage:function(){var imgSt=mfp.st.image,ns='.image';mfp.types.push('image');_mfpOn(OPEN_EVENT+ns,function(){if(mfp.currItem.type==='image'&&imgSt.cursor){$(document.body).addClass(imgSt.cursor);}});_mfpOn(CLOSE_EVENT+ns,function(){if(imgSt.cursor){$(document.body).removeClass(imgSt.cursor);} _window.off('resize'+EVENT_NS);});_mfpOn('Resize'+ns,mfp.resizeImage);if(mfp.isLowIE){_mfpOn('AfterChange',mfp.resizeImage);}},resizeImage:function(){var item=mfp.currItem;if(!item||!item.img)return;if(mfp.st.image.verticalFit){var decr=0;if(mfp.isLowIE){decr=parseInt(item.img.css('padding-top'),10)+parseInt(item.img.css('padding-bottom'),10);} item.img.css('max-height',mfp.wH-decr);}},_onImageHasSize:function(item){if(item.img){item.hasSize=true;if(_imgInterval){clearInterval(_imgInterval);} item.isCheckingImgSize=false;_mfpTrigger('ImageHasSize',item);if(item.imgHidden){if(mfp.content) mfp.content.removeClass('mfp-loading');item.imgHidden=false;}}},findImageSize:function(item){var counter=0,img=item.img[0],mfpSetInterval=function(delay){if(_imgInterval){clearInterval(_imgInterval);} _imgInterval=setInterval(function(){if(img.naturalWidth>0){mfp._onImageHasSize(item);return;} if(counter>200){clearInterval(_imgInterval);} counter++;if(counter===3){mfpSetInterval(10);}else if(counter===40){mfpSetInterval(50);}else if(counter===100){mfpSetInterval(500);}},delay);};mfpSetInterval(1);},getImage:function(item,template){var guard=0,onLoadComplete=function(){if(item){if(item.img[0].complete){item.img.off('.mfploader');if(item===mfp.currItem){mfp._onImageHasSize(item);mfp.updateStatus('ready');} item.hasSize=true;item.loaded=true;_mfpTrigger('ImageLoadComplete');} else{guard++;if(guard<200){setTimeout(onLoadComplete,100);}else{onLoadError();}}}},onLoadError=function(){if(item){item.img.off('.mfploader');if(item===mfp.currItem){mfp._onImageHasSize(item);mfp.updateStatus('error',imgSt.tError.replace('%url%',item.src));} item.hasSize=true;item.loaded=true;item.loadError=true;}},imgSt=mfp.st.image;var el=template.find('.mfp-img');if(el.length){var img=document.createElement('img');img.className='mfp-img';if(item.el&&item.el.find('img').length){img.alt=item.el.find('img').attr('alt');} item.img=$(img).on('load.mfploader',onLoadComplete).on('error.mfploader',onLoadError);img.src=item.src;if(el.is('img')){item.img=item.img.clone();} img=item.img[0];if(img.naturalWidth>0){item.hasSize=true;}else if(!img.width){item.hasSize=false;}} mfp._parseMarkup(template,{title:_getTitle(item),img_replaceWith:item.img},item);mfp.resizeImage();if(item.hasSize){if(_imgInterval)clearInterval(_imgInterval);if(item.loadError){template.addClass('mfp-loading');mfp.updateStatus('error',imgSt.tError.replace('%url%',item.src));}else{template.removeClass('mfp-loading');mfp.updateStatus('ready');} return template;} mfp.updateStatus('loading');item.loading=true;if(!item.hasSize){item.imgHidden=true;template.addClass('mfp-loading');mfp.findImageSize(item);} return template;}}});var hasMozTransform,getHasMozTransform=function(){if(hasMozTransform===undefined){hasMozTransform=document.createElement('p').style.MozTransform!==undefined;} return hasMozTransform;};$.magnificPopup.registerModule('zoom',{options:{enabled:false,easing:'ease-in-out',duration:300,opener:function(element){return element.is('img')?element:element.find('img');}},proto:{initZoom:function(){var zoomSt=mfp.st.zoom,ns='.zoom',image;if(!zoomSt.enabled||!mfp.supportsTransition){return;} var duration=zoomSt.duration,getElToAnimate=function(image){var newImg=image.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'),transition='all '+(zoomSt.duration/1000)+'s '+zoomSt.easing,cssObj={position:'fixed',zIndex:9999,left:0,top:0,'-webkit-backface-visibility':'hidden'},t='transition';cssObj['-webkit-'+t]=cssObj['-moz-'+t]=cssObj['-o-'+t]=cssObj[t]=transition;newImg.css(cssObj);return newImg;},showMainContent=function(){mfp.content.css('visibility','visible');},openTimeout,animatedImg;_mfpOn('BuildControls'+ns,function(){if(mfp._allowZoom()){clearTimeout(openTimeout);mfp.content.css('visibility','hidden');image=mfp._getItemToZoom();if(!image){showMainContent();return;} animatedImg=getElToAnimate(image);animatedImg.css(mfp._getOffset());mfp.wrap.append(animatedImg);openTimeout=setTimeout(function(){animatedImg.css(mfp._getOffset(true));openTimeout=setTimeout(function(){showMainContent();setTimeout(function(){animatedImg.remove();image=animatedImg=null;_mfpTrigger('ZoomAnimationEnded');},16);},duration);},16);}});_mfpOn(BEFORE_CLOSE_EVENT+ns,function(){if(mfp._allowZoom()){clearTimeout(openTimeout);mfp.st.removalDelay=duration;if(!image){image=mfp._getItemToZoom();if(!image){return;} animatedImg=getElToAnimate(image);} animatedImg.css(mfp._getOffset(true));mfp.wrap.append(animatedImg);mfp.content.css('visibility','hidden');setTimeout(function(){animatedImg.css(mfp._getOffset());},16);}});_mfpOn(CLOSE_EVENT+ns,function(){if(mfp._allowZoom()){showMainContent();if(animatedImg){animatedImg.remove();} image=null;}});},_allowZoom:function(){return mfp.currItem.type==='image';},_getItemToZoom:function(){if(mfp.currItem.hasSize){return mfp.currItem.img;}else{return false;}},_getOffset:function(isLarge){var el;if(isLarge){el=mfp.currItem.img;}else{el=mfp.st.zoom.opener(mfp.currItem.el||mfp.currItem);} var offset=el.offset();var paddingTop=parseInt(el.css('padding-top'),10);var paddingBottom=parseInt(el.css('padding-bottom'),10);offset.top-=($(window).scrollTop()-paddingTop);var obj={width:el.width(),height:(_isJQ?el.innerHeight():el[0].offsetHeight)-paddingBottom-paddingTop};if(getHasMozTransform()){obj['-moz-transform']=obj['transform']='translate('+offset.left+'px,'+offset.top+'px)';}else{obj.left=offset.left;obj.top=offset.top;} return obj;}}});var IFRAME_NS='iframe',_emptyPage='//about:blank',_fixIframeBugs=function(isShowing){if(mfp.currTemplate[IFRAME_NS]){var el=mfp.currTemplate[IFRAME_NS].find('iframe');if(el.length){if(!isShowing){el[0].src=_emptyPage;} if(mfp.isIE8){el.css('display',isShowing?'block':'none');}}}};$.magnificPopup.registerModule(IFRAME_NS,{options:{markup:'
'+'
'+''+'
',srcAction:'iframe_src',patterns:{youtube:{index:'youtube.com',id:'v=',src:'//www.youtube.com/embed/%id%?autoplay=1'},vimeo:{index:'vimeo.com/',id:'/',src:'//player.vimeo.com/video/%id%?autoplay=1'},gmaps:{index:'//maps.google.',src:'%id%&output=embed'}}},proto:{initIframe:function(){mfp.types.push(IFRAME_NS);_mfpOn('BeforeChange',function(e,prevType,newType){if(prevType!==newType){if(prevType===IFRAME_NS){_fixIframeBugs();}else if(newType===IFRAME_NS){_fixIframeBugs(true);}}});_mfpOn(CLOSE_EVENT+'.'+IFRAME_NS,function(){_fixIframeBugs();});},getIframe:function(item,template){var embedSrc=item.src;var iframeSt=mfp.st.iframe;$.each(iframeSt.patterns,function(){if(embedSrc.indexOf(this.index)>-1){if(this.id){if(typeof this.id==='string'){embedSrc=embedSrc.substr(embedSrc.lastIndexOf(this.id)+this.id.length,embedSrc.length);}else{embedSrc=this.id.call(this,embedSrc);}} embedSrc=this.src.replace('%id%',embedSrc);return false;}});var dataObj={};if(iframeSt.srcAction){dataObj[iframeSt.srcAction]=embedSrc;} mfp._parseMarkup(template,dataObj,item);mfp.updateStatus('ready');return template;}}});var _getLoopedId=function(index){var numSlides=mfp.items.length;if(index>numSlides-1){return index-numSlides;}else if(index<0){return numSlides+index;} return index;},_replaceCurrTotal=function(text,curr,total){return text.replace(/%curr%/gi,curr+1).replace(/%total%/gi,total);};$.magnificPopup.registerModule('gallery',{options:{enabled:false,arrowMarkup:'',preload:[0,2],navigateByImgClick:true,arrows:true,tPrev:'Previous (Left arrow key)',tNext:'Next (Right arrow key)',tCounter:'%curr% of %total%'},proto:{initGallery:function(){var gSt=mfp.st.gallery,ns='.mfp-gallery';mfp.direction=true;if(!gSt||!gSt.enabled)return false;_wrapClasses+=' mfp-gallery';_mfpOn(OPEN_EVENT+ns,function(){if(gSt.navigateByImgClick){mfp.wrap.on('click'+ns,'.mfp-img',function(){if(mfp.items.length>1){mfp.next();return false;}});} _document.on('keydown'+ns,function(e){if(e.keyCode===37){mfp.prev();}else if(e.keyCode===39){mfp.next();}});});_mfpOn('UpdateStatus'+ns,function(e,data){if(data.text){data.text=_replaceCurrTotal(data.text,mfp.currItem.index,mfp.items.length);}});_mfpOn(MARKUP_PARSE_EVENT+ns,function(e,element,values,item){var l=mfp.items.length;values.counter=l>1?_replaceCurrTotal(gSt.tCounter,item.index,l):'';});_mfpOn('BuildControls'+ns,function(){if(mfp.items.length>1&&gSt.arrows&&!mfp.arrowLeft){var markup=gSt.arrowMarkup,arrowLeft=mfp.arrowLeft=$(markup.replace(/%title%/gi,gSt.tPrev).replace(/%dir%/gi,'left')).addClass(PREVENT_CLOSE_CLASS),arrowRight=mfp.arrowRight=$(markup.replace(/%title%/gi,gSt.tNext).replace(/%dir%/gi,'right')).addClass(PREVENT_CLOSE_CLASS);arrowLeft.click(function(){mfp.prev();});arrowRight.click(function(){mfp.next();});mfp.container.append(arrowLeft.add(arrowRight));}});_mfpOn(CHANGE_EVENT+ns,function(){if(mfp._preloadTimeout)clearTimeout(mfp._preloadTimeout);mfp._preloadTimeout=setTimeout(function(){mfp.preloadNearbyImages();mfp._preloadTimeout=null;},16);});_mfpOn(CLOSE_EVENT+ns,function(){_document.off(ns);mfp.wrap.off('click'+ns);mfp.arrowRight=mfp.arrowLeft=null;});},next:function(){mfp.direction=true;mfp.index=_getLoopedId(mfp.index+1);mfp.updateItemHTML();},prev:function(){mfp.direction=false;mfp.index=_getLoopedId(mfp.index-1);mfp.updateItemHTML();},goTo:function(newIndex){mfp.direction=(newIndex>=mfp.index);mfp.index=newIndex;mfp.updateItemHTML();},preloadNearbyImages:function(){var p=mfp.st.gallery.preload,preloadBefore=Math.min(p[0],mfp.items.length),preloadAfter=Math.min(p[1],mfp.items.length),i;for(i=1;i<=(mfp.direction?preloadAfter:preloadBefore);i++){mfp._preloadItem(mfp.index+i);} for(i=1;i<=(mfp.direction?preloadBefore:preloadAfter);i++){mfp._preloadItem(mfp.index-i);}},_preloadItem:function(index){index=_getLoopedId(index);if(mfp.items[index].preloaded){return;} var item=mfp.items[index];if(!item.parsed){item=mfp.parseEl(index);} _mfpTrigger('LazyLoad',item);if(item.type==='image'){item.img=$('').on('load.mfploader',function(){item.hasSize=true;}).on('error.mfploader',function(){item.hasSize=true;item.loadError=true;_mfpTrigger('LazyLoadError',item);}).attr('src',item.src);} item.preloaded=true;}}});var RETINA_NS='retina';$.magnificPopup.registerModule(RETINA_NS,{options:{replaceSrc:function(item){return item.src.replace(/\.\w+$/,function(m){return'@2x'+m;});},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var st=mfp.st.retina,ratio=st.ratio;ratio=!isNaN(ratio)?ratio:ratio();if(ratio>1){_mfpOn('ImageHasSize'+'.'+RETINA_NS,function(e,item){item.img.css({'max-width':item.img[0].naturalWidth/ratio,'width':'100%'});});_mfpOn('ElementParse'+'.'+RETINA_NS,function(e,item){item.src=st.replaceSrc(item,ratio);});}}}}});_checkInstance();}));}),(function(module,exports,__webpack_require__){(function(jQuery){+function($){'use strict';var Modal=function(element,options){this.options=options this.$body=$(document.body) this.$element=$(element) this.$dialog=this.$element.find('.modal-dialog') this.$backdrop=null this.isShown=null this.originalBodyPad=null this.scrollbarWidth=0 this.ignoreBackdropClick=false if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}} Modal.VERSION='3.3.7' Modal.TRANSITION_DURATION=300 Modal.BACKDROP_TRANSITION_DURATION=150 Modal.DEFAULTS={backdrop:true,keyboard:true,show:true} Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)} Modal.prototype.show=function(_relatedTarget){var that=this var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget}) this.$element.trigger(e) if(this.isShown||e.isDefaultPrevented())return this.isShown=true this.checkScrollbar() this.setScrollbar() this.$body.addClass('modal-open') this.escape() this.resize() this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this)) this.$dialog.on('mousedown.dismiss.bs.modal',function(){that.$element.one('mouseup.dismiss.bs.modal',function(e){if($(e.target).is(that.$element))that.ignoreBackdropClick=true})}) this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade') if(!that.$element.parent().length){that.$element.appendTo(that.$body)} that.$element.show().scrollTop(0) that.adjustDialog() if(transition){that.$element[0].offsetWidth} that.$element.addClass('in') that.enforceFocus() var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget}) transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e)})} Modal.prototype.hide=function(e){if(e)e.preventDefault() e=$.Event('hide.bs.modal') this.$element.trigger(e) if(!this.isShown||e.isDefaultPrevented())return this.isShown=false this.escape() this.resize() $(document).off('focusin.bs.modal') this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal') this.$dialog.off('mousedown.dismiss.bs.modal') $.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal()} Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(document!==e.target&&this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus')}},this))} Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal')}} Modal.prototype.resize=function(){if(this.isShown){$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this))}else{$(window).off('resize.bs.modal')}} Modal.prototype.hideModal=function(){var that=this this.$element.hide() this.backdrop(function(){that.$body.removeClass('modal-open') that.resetAdjustments() that.resetScrollbar() that.$element.trigger('hidden.bs.modal')})} Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove() this.$backdrop=null} Modal.prototype.backdrop=function(callback){var that=this var animate=this.$element.hasClass('fade')?'fade':'' if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body) this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false return} if(e.target!==e.currentTarget)return this.options.backdrop=='static'?this.$element[0].focus():this.hide()},this)) if(doAnimate)this.$backdrop[0].offsetWidth this.$backdrop.addClass('in') if(!callback)return doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in') var callbackRemove=function(){that.removeBackdrop() callback&&callback()} $.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove()}else if(callback){callback()}} Modal.prototype.handleUpdate=function(){this.adjustDialog()} Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''})} Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})} Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect() fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left)} this.bodyIsOverflowing=document.body.clientWidth(this.$items.length-1)||pos<0)return if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos)}) if(activeIndex==pos)return this.pause().cycle() return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos))} Carousel.prototype.pause=function(e){e||(this.paused=true) if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end) this.cycle(true)} this.interval=clearInterval(this.interval) return this} Carousel.prototype.next=function(){if(this.sliding)return return this.slide('next')} Carousel.prototype.prev=function(){if(this.sliding)return return this.slide('prev')} Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active') var $next=next||this.getItemForDirection(type,$active) var isCycling=this.interval var direction=type=='next'?'left':'right' var that=this if($next.hasClass('active'))return(this.sliding=false) var relatedTarget=$next[0] var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction}) this.$element.trigger(slideEvent) if(slideEvent.isDefaultPrevented())return this.sliding=true isCycling&&this.pause() if(this.$indicators.length){this.$indicators.find('.active').removeClass('active') var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)]) $nextIndicator&&$nextIndicator.addClass('active')} var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction}) if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type) $next[0].offsetWidth $active.addClass(direction) $next.addClass(direction) $active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active') $active.removeClass(['active',direction].join(' ')) that.sliding=false setTimeout(function(){that.$element.trigger(slidEvent)},0)}).emulateTransitionEnd(Carousel.TRANSITION_DURATION)}else{$active.removeClass('active') $next.addClass('active') this.sliding=false this.$element.trigger(slidEvent)} isCycling&&this.cycle() return this} function Plugin(option){return this.each(function(){var $this=$(this) var data=$this.data('bs.carousel') var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option) var action=typeof option=='string'?option:options.slide if(!data)$this.data('bs.carousel',(data=new Carousel(this,options))) if(typeof option=='number')data.to(option) else if(action)data[action]() else if(options.interval)data.pause().cycle()})} var old=$.fn.carousel $.fn.carousel=Plugin $.fn.carousel.Constructor=Carousel $.fn.carousel.noConflict=function(){$.fn.carousel=old return this} var clickHandler=function(e){var href var $this=$(this) var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')) if(!$target.hasClass('carousel'))return var options=$.extend({},$target.data(),$this.data()) var slideIndex=$this.attr('data-slide-to') if(slideIndex)options.interval=false Plugin.call($target,options) if(slideIndex){$target.data('bs.carousel').to(slideIndex)} e.preventDefault()} $(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler) $(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this) Plugin.call($carousel,$carousel.data())})})}(jQuery);}.call(exports,__webpack_require__(0)))}),(function(module,__webpack_exports__,__webpack_require__){"use strict";(function(jQuery){class JobsSearch{constructor(){this.position=null;this.number=null;this.preloader=null;this.default_results=null;this.results_container=null;this.offset=0;this.load_more_status=false;let _this=this;let jobsForms=jQuery('#jobs-form');this.preloader=document.getElementById('jobs-preloader');this.default_results=document.getElementById('default-results-jobs');this.results_container=document.getElementById('search-results-jobs');jobsForms.on('keydown','input[name="position"], input[name="area"]',function(event){let input=this;if(event.which==13){event.preventDefault();_this.enterClicked(input);return false;} if(event.which==40||event.which==38){event.preventDefault();return false;}});let timeOut=null;jobsForms.on('keyup','input[name="position"], input[name="area"]',function(event){clearTimeout(timeOut);let input=this;if(event.which==40||event.which==38){event.preventDefault();_this.moveSelectArrow(event.which,input);return false;} if(event.which==13){return false;} input.removeAttribute('data-id');timeOut=setTimeout(function(){_this.getDropdown(input,_this.getData);},500);});jobsForms.on('focusout','input[name="position"], input[name="area"]',function(){let list=jQuery(this).parent().find('ul');setTimeout(function(){list.removeClass('active');},100);});jobsForms.on('click','ul.dropdown-select li:not(.empty)',function(){let input=jQuery('input[name="'+jQuery(this).parent().attr('data-target')+'"]');let li=jQuery(this);input.val(li.text());input.attr('data-id',li.attr('data-id'));jQuery(this).parent().removeClass('active');});jobsForms.submit(function(event){event.preventDefault();if(event.which==13){return false;} let inputPosition=jobsForms.find('input[name="position"]');let inputArea=jobsForms.find('input[name="area"]');_this.position=(inputPosition.attr('data-id')!=undefined)?parseInt(inputPosition.attr('data-id')):null,_this.area=(inputArea.attr('data-id')!=undefined)?parseInt(inputArea.attr('data-id')):null;_this.results_container.innerHTML='';_this.offset=0;_this.getJobs();return true;});jQuery(window).scroll(function(event){if(_this.position==null&&_this.area==null){return;} _this.loadMore(jQuery(window).scrollTop(),jQuery(window).height());});} getDropdown(element,dataCallback){let parent=jQuery(element).parent();if(!parent.find('ul').length){let name=jQuery(element).attr('name');parent.append(``);} parent.find('ul').addClass('active load');dataCallback(element);} getData(element){if(element.value==''){jQuery('#jobs-form').find('ul.dropdown-select.active').removeClass('load').removeClass('active').html('');} let data={'action':'get_select_prompt','word':element.value,'type':element.getAttribute('name')};jQuery.post('/wp-admin/admin-ajax.php',data).done(function(response){if(response.search.length==0){jQuery('#jobs-form').find('ul.dropdown-select.active').removeClass('load').html('
  • '+element.getAttribute('data-empty')+'
  • ');return;} let dropdown_elements=response.search;let html='';for(let i=0;i'+dropdown_elements[i].name+'';} jQuery('#jobs-form').find('ul.dropdown-select.active').removeClass('load').html(html);}).fail(function(){console.log('Somethins is wrong!');});} getJobs(offset=0){let _this=this;let data={position:this.position,area:this.area,action:'get_json_jobs',offset:offset};this.preloader.style.display='block';jQuery.post('/wp-admin/admin-ajax.php',data).done(function(response){_this.addElements(response.jobs);_this.preloader.style.display='none';}).fail(function(response){console.log(response);});} addElements(jobs){let template=``;for(let i=0;i`;if(job.photo!=null){template+=``;} template+=`

    ${job.post_title}

    `;if(job.class=='sponsored'){template+=``;} template+=`

    ${job.date} ${job.area}

    `;template+=`
    `;} jQuery('#search-results-jobs').append(template);this.default_results.style.display='none';this.load_more_status=false;if(jobs.length<10){this.load_more_status=true;let info=document.createElement('div');info.className='info-jobs no-load-more';info.innerText=Lang.nothing_to_load_more;this.results_container.appendChild(info);} this.cancelSearch();} moveSelectArrow(key,input){let list=jQuery(input).parent().find('ul li');let _key=0;for(let i=0;i=this.results_container.offsetHeight&&!this.load_more_status){this.load_more_status=true;this.offset+=10;this.getJobs(this.offset);}} cancelSearch(){if(document.getElementById('cancel-searching-jobs')==undefined){let form=document.getElementById('jobs-form');let cancel=document.createElement('p');cancel.id='cancel-searching-jobs';cancel.onclick=this.cancel.bind(this);cancel.innerText=Lang.cancel_search;cancel.className='cancel-searching';form.appendChild(cancel);}} cancel(){this.results_container.innerHTML='';this.default_results.style.display='block';this.position=null;this.area=null;document.getElementById('cancel-searching-jobs').remove();}} __webpack_exports__["a"]=JobsSearch;}.call(__webpack_exports__,__webpack_require__(0)))}),(function(module,__webpack_exports__,__webpack_require__){"use strict";(function(jQuery){var __WEBPACK_IMPORTED_MODULE_0__function_js__=__webpack_require__(31);class InfiniteScroll{constructor(postLoadedCallback=function(){}){this.container=null;this.windowRepresent=null;this.scroll_position=0;this.window_height=0;this.window_distance=1200;this.loading=false;this.preloader=null;this._posts=[];this.index=0;this.is_reading=0;this.prev_reading=0;this.postLoadedCallback=null;this.container=document.querySelectorAll('[data-infinite-scroll="true"]')[0];if(this.container==undefined){return null;} this.windowRepresent=jQuery(window);this.windowRepresent.scroll(this.onScroll.bind(this));this.postLoadedCallback=postLoadedCallback.bind(this);} onScroll(){this.scroll_position=this.windowRepresent.scrollTop();this.window_height=this.windowRepresent.height();this.scrollStatusBar();if(this._posts.length!=0&&this._posts.length==this.index){this.preloader.remove();return;} if(this.scroll_position+this.window_distancethis._posts.length){return;} this._loadPost(this._posts[this.index]);} _loadPost(post){if(typeof post!=='undefined'){jQuery.get(post.url,this._callbackLoadPost.bind(this));}} _callbackLoadPost(data){let html=jQuery(data).find('[data-infinite-scroll="true"]').html();let div=document.createElement('div');div.innerHTML=html;div.id='post-'+this._posts[this.index].ID;div.className="infinite-scroll-loaded-content";div.dataset.hitRequestUrl=jQuery(data).find('[data-infinite-scroll="true"]').attr('data-hit-request-url');this.container.appendChild(div);this._posts[this.index].element=div;this.preloader.remove();this.preloader=null;this.loading=false;let _this=this;_this.postLoadedCallback(_this._posts[_this.index],'post-'+this._posts[this.index].ID);Object(__WEBPACK_IMPORTED_MODULE_0__function_js__["b"])(div.id);Object(__WEBPACK_IMPORTED_MODULE_0__function_js__["a"])(div.id);} __addClassActive(post){let active=document.querySelector('.infinite-scroll-loaded-content.active, #content.active');if(active){active.classList.remove('active');} post.element.classList.add('active');} scrollStatusBar(){if(this._posts.length==0){return;} let reading_post=this._posts[this.is_reading];if(this.prev_reading!=this.is_reading){this.prev_reading=this.is_reading;this.__addClassActive(reading_post);history.pushState({},reading_post.title,reading_post.url);history.replaceState({},reading_post.title,reading_post.url);document.title=reading_post.title;if(!reading_post.analyticsAdded){reading_post.analyticsAdded=true;this.pushAnalyticsView(reading_post,this.is_reading);}} this._setBarWidth(reading_post);} _setBarWidth(reading_post){let precent=((this.scroll_position-reading_post.element.offsetTop)/(reading_post.element.offsetHeight))*100;if(this.scroll_positionreading_post.element.offsetTop+reading_post.element.offsetHeight){if(this._posts[this.is_reading+1]!=undefined&&this._posts[this.is_reading+1].element!=undefined){this.is_reading++;}}} pushAnalyticsView(article,index){if(typeof ga==="function"){ga('set','page',article.url.substring(1));ga('send','pageview');ga('send','event','Artykul','Doladowanie','Doladowanie',index);console.log('GA-Event-Doladowanie: '+article.url.substring(1));} if(typeof gtag=="function"){gtag('set','page',article.url.substring(1));gtag('event','page_view',{page_location:article.url.substring(1)});gtag('event','Doladowanie',{index:index,url:article.url.substring(1)});} if(article.element.dataset.hitRequestUrl){console.log('WP Statistics send hit request.') try{const referred=encodeURIComponent(document.referrer);const timestamp=Date.now();const requestUrl=`${article.element.dataset.hitRequestUrl}&referred=${referred}&_=${timestamp}`;fetch(requestUrl,{method:'GET',headers:{'Content-Type':'application/json;charset=UTF-8',},}).then((response)=>{if(response.ok){return response.json();} console.error('Something went wrong');});}catch(error){console.error('An error occurred on sending hit request:',error);}} Object(__WEBPACK_IMPORTED_MODULE_0__function_js__["c"])(article.url);}} __webpack_exports__["a"]=InfiniteScroll;}.call(__webpack_exports__,__webpack_require__(0)))}),(function(module,__webpack_exports__,__webpack_require__){"use strict";(function(jQuery){__webpack_exports__["c"]=showImageMotoFocusAnalytics;__webpack_exports__["b"]=addMFPoll;__webpack_exports__["a"]=addMFComments;function parse_url(href){var l=document.createElement("a");l.href=href;return l;} function showImageMotoFocusAnalytics(url){var portal=window.location.href;if(url==null){url=portal;} var patt=/(motofocus\.pl|truckfocus\.pl)/g;if(patt.test(portal)){var img=document.createElement('img');var a=parse_url(url);var urlresult=a.protocol+'//'+a.hostname+a.pathname;if(a.hostname===undefined){urlresult=portal;} img.src='https://analytics.motofocus.pl/image/AwqCSqfQhvz.gif?url='+urlresult;console.log('Add image mf-analytics: '+img.src);img.className='analytics-mf';var body=document.getElementsByTagName('body')[0];body.appendChild(img);}} function addMFPoll(id) {if(typeof MFPoll==='undefined') return;var container='#'+id;jQuery(container+' .mfpoll').each(function(i,poll){new MFPoll(poll.querySelector('form'));});} function addMFComments(id) {var container='#'+id;new window.mf.comments(jQuery(container+' .comments'));}}.call(__webpack_exports__,__webpack_require__(0)))}),(function(module,__webpack_exports__,__webpack_require__){"use strict";(function(jQuery){var __WEBPACK_IMPORTED_MODULE_0__functions_getCookie__=__webpack_require__(5);var __WEBPACK_IMPORTED_MODULE_1__functions_setCookie__=__webpack_require__(33);var article_in_sidebox=jQuery('#article-in-sidebox');if(article_in_sidebox.length){var template=``;var find_posts=function(posts){for(let i=0;icommentForm.offsetTop-400){jQuery('#ArticleInSideBox').addClass('show');}else{jQuery('#ArticleInSideBox').removeClass('show');}};var articles=JSON.parse(article_in_sidebox.attr('data-posts'));var article=find_posts(articles);if(article){article_in_sidebox.on('click','.ArticleInSideBox__close',function(e){jQuery('#ArticleInSideBox').removeClass('show');Object(__WEBPACK_IMPORTED_MODULE_1__functions_setCookie__["a"])('article-in-sidebox-'+jQuery(e.currentTarget).attr('data-post-id'),1,300);window.removeEventListener('scroll',scroll_callback);});template=template.replace('{{id}}',article.id);template=template.replace('{{title}}',article.title);template=template.replace('{{description}}',article.description);template=template.replace('{{url}}',article.url);template=template.replace('{{image}}',article.image);article_in_sidebox.html(template);window.addEventListener('scroll',scroll_callback);}}}.call(__webpack_exports__,__webpack_require__(0)))}),(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]=setCookie;function setCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/";}})]);