1/* ====================================================== 2 # Cookies Policy Notification Bar for Joomla! - v4.0.6 (pro version) 3 # ------------------------------------------------------- 4 # For Joomla! CMS 5 # Author: Web357 (Yiannis Christodoulou) 6 # Copyright (©) 2014-2021 Web357. All rights reserved. 7 # License: GNU/GPLv3, http://www.gnu.org/licenses/gpl-3.0.html 8 # Website: https:/www.web357. 9 # Demo: https://demo.web357.com/joomla/browse/cookies-policy-notification-bar 10 # Support: [email protected] 11 # Last modified: Thursday 15 April 2021, 03:08:07 AM 12 ========================================================= */ 13 14var afterCategoriesSettingsCookie,afterExpirationCookies,categoriesSettingsCookie={},categoriesSettingsCookieOuter={},categoriesSettingsCookieInner={},m_modalManager_confirmationText="",modalManagerSettings=[];function cpnb_m_lockedCheckbox(e,o,t){document.getElementById("modalCheckBox_id_"+e).checked=!0,alert(m_modalManager_confirmationText)}function cpnb_warning_save_settings_button(e,o,t,n,i,c,a){cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(afterCategoriesSettingsCookie),afterExpirationCookies),null==cpnb_readCookie("cpnb_cookiesSettingsTemp")&&cpnb_createCookie("cpnb_cookiesSettingsTemp",cpnb_readCookie("cpnb_cookiesSettings"),o),cpnb_createCookie("cpnb_cookiesSettings",cpnb_readCookie("cpnb_cookiesSettingsTemp"),o);var _=JSON.parse(cpnb_readCookie("cpnb_cookiesSettings")),s=0,l=0,r=0;for(var d in _)s++,cpnb_cookiesCategories[categoriesSettingsCookieInner[d]]&&(2==cpnb_cookiesCategories[categoriesSettingsCookieInner[d]].cookie_category_checked_by_default&&r++,0==_[d]&&l++);s-r==l?null==cpnb_readCookie("cpnbCookiesDeclined")&&(cpnb_createCookie("cpnbCookiesDeclined","1",c),cpnb_eraseCookie(n),cpnb_eraseCookie("cpnbCookiesCancelled"),location.href=t+(t.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesDeclined"+(0<a.w357_joomla_caching?"&dt="+(new Date).getTime():"")):null==cpnb_readCookie(n)&&(cpnb_createCookie(n,"1",i),cpnb_eraseCookie("cpnbCookiesDeclined"),cpnb_eraseCookie("cpnbCookiesCancelled"),location.href=t+(t.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesAccepted"+(0<a.w357_joomla_caching?"&dt="+(new Date).getTime():"")),cpnb_eraseCookie("cpnb_cookiesSettingsTemp"),location.href=e}function cpnb_m_saveCategoryCookiesState(e,o,t,n,i,c){if(cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(afterCategoriesSettingsCookie),afterExpirationCookies),2!=cpnb_cookiesCategories[e].cookie_category_checked_by_default){null==cpnb_readCookie("cpnb_cookiesSettingsTemp")&&cpnb_createCookie("cpnb_cookiesSettingsTemp",cpnb_readCookie("cpnb_cookiesSettings"),o);var a=JSON.parse(cpnb_readCookie("cpnb_cookiesSettingsTemp"));!0===document.getElementById("modalCheckBox_id_"+e).checked?a[categoriesSettingsCookieOuter[e]]=1:a[categoriesSettingsCookieOuter[e]]=0,document.getElementById("cpnb-save-btn-m").style.background=modalManagerSettings.w357_m_saveChangesButtonColorAfterChange,cpnb_createCookie("cpnb_cookiesSettingsTemp",JSON.stringify(a),o)}}function cpnb_m_changeModalCategory(e){var o;cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(afterCategoriesSettingsCookie),afterExpirationCookies),(o=document.getElementsByClassName("cpnb-manager-modal-left-item-selected"))[0].classList.add("cpnb-manager-modal-left-item-unSelected"),o[0].classList.remove("cpnb-manager-modal-left-item-selected"),(o=document.getElementById("mlm_menu_category_id_"+e)).classList.remove("cpnb-manager-modal-left-item-unSelected"),o.classList.add("cpnb-manager-modal-left-item-selected"),(o=document.getElementsByClassName("cpnb-manager-modal-right-selected"))[0].classList.add("cpnb-manager-modal-right-unSelected"),o[0].classList.remove("cpnb-manager-modal-right-selected"),(o=document.getElementById("mmr_box_category_id_"+e)).classList.remove("cpnb-manager-modal-right-unSelected"),o.classList.add("cpnb-manager-modal-right-selected"),cpnb_toggle_responsive_menu_hide_menu()}function cpnb_m_openModal(){var e=document.getElementById("cpnb_manager_wrap");e.classList.remove("cpnb-modal-show-fade-out"),e.classList.add("cpnb-modal-show-fade-in");var o=document.getElementById("cpnb_manager_wrap_close_bg");o.classList.remove("cpnb-modal-show-fade-out"),o.classList.add("cpnb-modal-show-fade-in")}function cpnb_m_closeModal(){var e=document.getElementById("cpnb_manager_wrap");e.classList.remove("cpnb-modal-show-fade-in"),e.classList.add("cpnb-modal-show-fade-out");var o=document.getElementById("cpnb_manager_wrap_close_bg");o.classList.remove("cpnb-modal-show-fade-in"),o.classList.add("cpnb-modal-show-fade-out")}function acceptFunction(e,o,t,n,i,c,a,_,s){cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(afterCategoriesSettingsCookie),afterExpirationCookies),cpnb_createCookie(t,"1",i),cpnb_eraseCookie("cpnbCookiesCancelled"),cpnb_eraseCookie("cpnbCookiesDeclined");var l=JSON.parse(cpnb_readCookie("cpnb_cookiesSettings"));for(var r in l)l[r]=1;if(cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(l),afterExpirationCookies),"notification_bar"==a)if(1==_)location.reload(),location.href=n;else{var d=new XMLHttpRequest;d.onreadystatechange=function(){d.readyState==XMLHttpRequest.DONE&&(200==d.status||d.status)};var b=c+"index.php?option=com_ajax&plugin=cookiespolicynotificationbar&format=raw&method=cpnbCookiesAccepted";d.open("GET",b,!0),d.send(),document.getElementById("w357_cpnb_outer").classList.add("cpnb-warningBox-show-fade-out"),1==s&&(document.getElementById("cpnb_warningBoxBgOverlay").style.display="none")}else location.reload(),location.href=n}function checkCookieCategoriesAfterAccept(e){cpnb_checkboxes=document.getElementsByClassName("cpnb-checkbox");for(var o=0,t=cpnb_checkboxes.length;o<t;o++)cpnb_checkboxes[o].checked=!0;for(var n in cpnb_cookiesCategories)if(1==cpnb_cookiesCategories[n].cookie_category_status){var i=cpnb_cookiesCategories[n].cookie_category_id;
14categoriesSettingsCookie[i]=1}1<Object.keys(categoriesSettingsCookie).map(function(e){return categoriesSettingsCookie[e]}).reduce(function(e,o){return e+o},0)&&cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(categoriesSettingsCookie),e)}function cpnb_warning_accept_button(e,o,t,n,i,c,a,_,s){1==e?confirm(o)&&(checkCookieCategoriesAfterAccept(i),acceptFunction(e,o,t,n,i,c,a,_,s)):(checkCookieCategoriesAfterAccept(i),acceptFunction(e,o,t,n,i,c,a,_,s)),setTimeout(function(){document.getElementById("w357_cpnb_outer").remove()},500)}function cpnb_warning_decline_button(e,o,t,n,i){if(cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(afterCategoriesSettingsCookie),afterExpirationCookies),1==e){if(confirm(o)){cpnb_createCookie("cpnbCookiesDeclined","1",i),cpnb_eraseCookie(t),cpnb_eraseCookie("cpnbCookiesCancelled");var c=JSON.parse(cpnb_readCookie("cpnb_cookiesSettings"));for(var a in c)c[a]=0;cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(c),afterExpirationCookies),location.reload(),location.href=n}}else{cpnb_createCookie("cpnbCookiesDeclined","1",i),cpnb_eraseCookie(t),cpnb_eraseCookie("cpnbCookiesCancelled");c=JSON.parse(cpnb_readCookie("cpnb_cookiesSettings"));for(var a in c)c[a]=0;cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(c),afterExpirationCookies),location.reload(),location.href=n}}function cpnb_warning_delete_button(e,o,t,n){cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(afterCategoriesSettingsCookie),afterExpirationCookies),1==e?confirm(o)&&(cpnb_eraseCookie("cpnb_cookiesSettings"),cpnb_eraseCookie("cpnbCookiesDeclined"),cpnb_eraseCookie(t),cpnb_eraseCookie("cpnbCookiesCancelled"),location.href=n):(cpnb_eraseCookie("cpnb_cookiesSettings"),cpnb_eraseCookie("cpnbCookiesDeclined"),cpnb_eraseCookie(t),cpnb_eraseCookie("cpnbCookiesCancelled"),location.href=n)}function cpnb_warning_cancel_button(e,o,t,n){cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(afterCategoriesSettingsCookie),afterExpirationCookies),cpnb_createCookie("cpnbCookiesCancelled","1",o),cpnb_eraseCookie(e),cpnb_eraseCookie("cpnbCookiesDeclined"),document.getElementById("w357_cpnb_outer").classList.add("cpnb-warningBox-show-fade-out"),1==n&&(document.getElementById("cpnb_warningBoxBgOverlay").style.display="none"),setTimeout(function(){document.getElementById("w357_cpnb_outer").remove()},500),cpnb_closeModalMoreInfo()}function w357_openPopUpWindowMoreInfo(e,o,t,n){wLeft=window.screenLeft?window.screenLeft:window.screenX,wTop=window.screenTop?window.screenTop:window.screenY;var i=wLeft+window.innerWidth/2-t/2,c=wTop+window.innerHeight/2-n/2;window.open(e,o,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+t+", height="+n+", top="+c+", left="+i)}function cpnb_openModalMoreInfo(){var e=document.getElementById("cpnb_modal_wrap");e.classList.remove("cpnb-modal-show-fade-out"),e.classList.add("cpnb-modal-show-fade-in");var o=document.getElementById("modal_close_bg");o.classList.remove("cpnb-modal-show-fade-out"),o.classList.add("cpnb-modal-show-fade-in")}function cpnb_closeModalMoreInfo(){var e=document.getElementById("cpnb_modal_wrap");e.classList.remove("cpnb-modal-show-fade-in"),e.classList.add("cpnb-modal-show-fade-out");var o=document.getElementById("modal_close_bg");o.classList.remove("cpnb-modal-show-fade-in"),o.classList.add("cpnb-modal-show-fade-out")}function cpnb_createCookie(e,o,t){var n;if(t){var i=new Date;i.setTime(i.getTime()+24*t*60*60*1e3),n="; expires="+i.toGMTString()}else n="";document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/"}function cpnb_readCookie(e){for(var o=encodeURIComponent(e)+"=",t=document.cookie.split(";"),n=0;n<t.length;n++){for(var i=t[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return decodeURIComponent(i.substring(o.length,i.length))}return null}function cpnb_eraseCookie(e){cpnb_createCookie(e,"",-1)}function cpnb_toggle_responsive_menu(){"block"==document.getElementsByClassName("cpnb-manager-modal-left")[0].style.display?document.getElementsByClassName("cpnb-manager-modal-left")[0].style.display="none":document.getElementsByClassName("cpnb-manager-modal-left")[0].style.display="block"}function cpnb_toggle_responsive_menu_hide_menu(){window.innerWidth<601&&(document.getElementsByClassName("cpnb-manager-modal-left")[0].style.display="none")}window.addEventListener("load",function(){var c={w357_joomla_caching:0,w357_position:"bottom",w357_hide_after_time:"yes",w357_duration:60,w357_animate_duration:1e3,w357_limit:0,w357_message:null,w357_display_ok_btn:1,w357_buttonText:"Ok, I've understood!",w357_display_decline_btn:1,w357_buttonDeclineText:"Decline",w357_display_cancel_bt
14n:1,w357_buttonCancelText:"Cancel",w357_display_settings_btn:1,w357_buttonSettingsText:"Settings",w357_buttonMoreText:"More Info",w357_buttonMoreLink:"",w357_display_more_info_btn:1,w357_fontColor:"#F1F1F3",w357_linkColor:"#FFF",w357_fontSize:"12px",w357_backgroundColor:"#323A45",w357_borderWidth:1,w357_body_cover:1,w357_overlay_state:0,w357_overlay_color:"rgba(10,10,10, 0.3)",w357_height:"auto",w357_cookie_name:"cookiesDirective",w357_link_target:"_self",w357_popup_width:"800",w357_popup_height:"600",w357_customText:"Your custom text for the cookies policy goes here...",w357_more_info_btn_type:"custom_text",w357_blockCookies:0,w357_autoAcceptAfterScrolling:0,w357_numOfScrolledPixelsBeforeAutoAccept:300,w357_reloadPageAfterAccept:0,w357_enableConfirmationAlerts:0,w357_enableConfirmationAlertsForAcceptBtn:0,w357_enableConfirmationAlertsForDeclineBtn:0,w357_enableConfirmationAlertsForDeleteBtn:0,w357_confirm_allow_msg:"Performing this action will enable all cookies set by this website. Are you sure that you want to enable all cookies on this website?",w357_confirm_delete_msg:"Performing this action will remove all cookies set by this website. Are you sure that you want to disable and delete all cookies from your browser?",w357_show_in_iframes:0,w357_shortcode_is_enabled_on_this_page:1,w357_base_url:"",w357_current_url:"",w357_always_display:0,w357_show_notification_bar:!0,w357_expiration_cookies:365,w357_expiration_cookieSettings:365,w357_expiration_cookieAccept:365,w357_expiration_cookieDecline:180,w357_expiration_cookieCancel:3,w357_accept_button_class_notification_bar:"cpnb-accept-btn",w357_decline_button_class_notification_bar:"cpnb-decline-btn",w357_cancel_button_class_notification_bar:"cpnb-cancel-btn",w357_settings_button_class_notification_bar:"cpnb-settings-btn",w357_moreinfo_button_class_notification_bar:"cpnb-moreinfo-btn",w357_accept_button_class_notification_bar_modal_window:"cpnb-accept-btn-m",w357_decline_button_class_notification_bar_modal_window:"cpnb-decline-btn-m",w357_save_button_class_notification_bar_modal_window:"cpnb-save-btn-m",w357_buttons_ordering:""},e={w357_m_modalState:1,w357_m_floatButtonState:1,w357_m_floatButtonPosition:"bottom_left",w357_m_HashLink:"cookies",w357_m_modal_menuItemSelectedBgColor:"rgba(200, 200, 200, 1)",w357_m_saveChangesButtonColorAfterChange:"rgba(255, 202, 152, 1)",w357_m_floatButtonIconSrc:"media/plg_system_cookiespolicynotificationbar/icons/cpnb-cookies-manager-icon-1-64x64.png",w357_m_floatButtonText:"Cookies Manager",w357_m_modalHeadingText:"Advanced Cookie Settings",w357_m_checkboxText:"Enable",w357_m_lockedText:"(Locked)",w357_m_EnableAllButtonText:"Allow All Cookies",w357_m_DeclineAllButtonText:"Decline All Cookies",w357_m_SaveChangesButtonText:"Save Settings",w357_m_confirmationAlertRequiredCookies:"These cookies are strictly necessary for this website. You can't disable this category of cookies. Thank you for understanding!"},o=["w357_joomla_caching","w357_overlay_state","w357_borderWidth","w357_body_cover","w357_expiration_cookies","w357_expiration_cookieSettings","w357_expiration_cookieAccept","w357_expiration_cookieDecline","w357_expiration_cookieCancel","w357_duration","w357_animate_duration","w357_limit","w357_display_ok_btn","w357_display_decline_btn","w357_display_cancel_btn","w357_display_settings_btn","w357_display_more_info_btn","w357_blockCookies","w357_autoAcceptAfterScrolling","w357_numOfScrolledPixelsBeforeAutoAccept","w357_reloadPageAfterAccept","w357_enableConfirmationAlerts","w357_enableConfirmationAlertsForAcceptBtn","w357_enableConfirmationAlertsForDeclineBtn","w357_enableConfirmationAlertsForDeleteBtn","w357_show_in_iframes","w357_shortcode_is_enabled_on_this_page","w357_always_display"];for(var t in cpnb_config)null!==cpnb_config[t]&""!==cpnb_config[t]&&(0<=o.indexOf(t)?c[t]=parseInt(cpnb_config[t]):c[t]=cpnb_config[t]);0<c.w357_limit&&(null==cpnb_readCookie("cpnb_cookie_limit")?cpnb_createCookie("cpnb_cookie_limit",1,c.w357_expiration_cookies):0==c.w357_blockCookies&&cpnb_createCookie("cpnb_cookie_limit",parseInt(cpnb_readCookie("cpnb_cookie_limit"))+1,c.w357_expiration_cookies));function n(){return 0!=c.w357_show_in_iframes||self==top}var i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,a=i-.2*i;a=parseInt(a.toFixed(0));var _,s,l=.06*i;if(l=parseInt(l.toFixed(0)),n()&&(1==c.w357_always_display||1!==c.w357_always_display&&null==cpnb_readCookie(c.w357_cookie_name)&&null==cpnb_readCookie("cpnbCookiesDeclined")&&null==cpnb_readCookie("cpnbCookiesCancelled"))&&(1===c.w357_always_display||!(0<c.w357_limit)||(null!==cpnb_readCookie("cpnb_cookie_limit")?!(parseInt(cpnb_readCookie("cpnb_cookie_limit"))>c.w357_limit):void 0))&&1==c.w357_show_notification_bar){var r=document.createElement("div"),d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;d-=40;var b="";b+=' <div id="cpnb" class="cpnb" data-cookie-name="'+decodeURI(c.w357_cookie_name)+'">',b+='\t<div class="cpnb-warningBox-show-fade-in cpnb-outer cpnb-div-position-'+c.w357_position+'" id="w357_cpnb_outer" style=" display: flex; justify-content: center; flex-direction: column; position: fixed; height: '+c.w357_height+"; background: "+c.w357_backgroundColor+"; color: "+c.w357_fontColor+"; font-size: "+c.w357_fontSize+';">',null!==c.w357_message&""!==c.w357_message?b+='\t\t<div class="cpnb-inner" style="max-height: '+d+'px;"><div class="cpnb-message">'+decodeURI(c.w357_message)+"</div>":b+='\t\t<div class="cpnb-inner" style="max-height: '+d+'px;"><div class="cpnb-message">We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.</div>',0<=["top-left","top-right","bottom-left","bottom-right","center"].indexOf(c.w357_position)?b+='\t\t\t<div class="cpnb-buttons" style="margin-top:10px;">':b+='\t\t\t<div class="cpnb-buttons">';for(var p=JSON.parse(c.w357_buttons_ordering),m=0;m<p.length;m++){switch(p[m]){case"ok":if(1==c.w357_display_ok_btn){var g=c.w357_enableConfirmationAlertsForAcceptBtn,w=c.w357_confirm_allow_msg,u=c.w357_cookie_name,k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesAccepted"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():""),f=c.w357_expiration_cookieAccept;b+='\t\t\t\t<a id="cpnb-accept-btn" rel="nofollow" onClick="cpnb_warning_accept_button(\''+decodeURI(g)+"', '"+decodeURI(w)+"', '"+u+"', '"+k+"', '"+f+"', '"+c.w357_base_url+"', 'notification_bar', '"+c.w357_reloadPageAfterAccept+"', '"+c.w357_overlay_state+'\')" class="cpnb-button cpnb-button-ok '+decodeURI(c.w357_accept_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonText)+"</a>"}break;case"decline":if(1==c.w357_display_decline_btn){g=c.w357_enableConfirmationAlertsForDeclineBtn,w=c.w357_confirm_delete_msg,u=c.w357_cookie_name,k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesDeclined"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():""),f=c.w357_expiration_cookieDecline;b+='\t\t\t\t<a id="cpnb-decline-btn" rel="nofollow" onClick="cpnb_warning_decline_button(\''+decodeURI(g)+"', '"+decodeURI(w)+"', '"+u+"', '"+k+"', '"+f+'\')" class="cpnb-button cpnb-button-decline '+decodeURI(c.w357_decline_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonDeclineText)+"</a>"}break;
14case"cancel":if(1==c.w357_display_cancel_btn){u=c.w357_cookie_name,k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=CookiesCancelled"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():"");b+='\t\t\t\t<a id="cpnb-cancel-btn" rel="nofollow" onClick="cpnb_warning_cancel_button(\''+u+"', '"+(f=c.w357_expiration_cookieCancel)+"', '"+k+"', '"+c.w357_overlay_state+'\')" class="cpnb-button cpnb-button-cancel '+decodeURI(c.w357_cancel_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonCancelText)+"</a>"}break;case"moreinfo":1==c.w357_display_more_info_btn&&("link"==c.w357_more_info_btn_type||"menu_item"==c.w357_more_info_btn_type?"_self"==c.w357_link_target?b+='\t\t\t\t<a id="cpnb-moreinfo-btn" rel="nofollow" href="'+c.w357_buttonMoreLink+'" target="_self" class="cpnb-button cpnb-button-more-default '+decodeURI(c.w357_moreinfo_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonMoreText)+"</a>":"_blank"==c.w357_link_target?b+='\t\t\t\t<a id="cpnb-moreinfo-btn" rel="nofollow" href="'+c.w357_buttonMoreLink+'" target="_blank" class="cpnb-button cpnb-button-more-default '+decodeURI(c.w357_moreinfo_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonMoreText)+"</a>":"popup"==c.w357_link_target&&(b+='\t\t\t\t<a id="cpnb-moreinfo-btn" rel="nofollow" onClick="w357_openPopUpWindowMoreInfo(\''+c.w357_buttonMoreLink+"','titlos', '"+c.w357_popup_height+"', '"+c.w357_popup_width+'\')" class="cpnb-button cpnb-button-more-default '+decodeURI(c.w357_moreinfo_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonMoreText)+"</a>"):"custom_text"==c.w357_more_info_btn_type&&(b+='\t\t\t\t<a id="cpnb-moreinfo-btn" rel="nofollow" onClick="cpnb_openModalMoreInfo()" class="cpnb-button cpnb-button-more-default '+decodeURI(c.w357_moreinfo_button_class_notification_bar)+'" id="cpnb_button_more_modal">'+decodeURI(c.w357_buttonMoreText)+"</a>"));break;case"settings":1==c.w357_display_settings_btn&&(b+='\t\t\t\t<a id="cpnb-settings-btn" rel="nofollow" onClick="cpnb_m_openModal()" class="cpnb-button cpnb-button-settings '+decodeURI(c.w357_settings_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonSettingsText)+"</a>")}}if(b+='\t\t\t\t<div class="cpnb-clear-both"></div>',b+="\t\t\t</div>",b+="\t\t</div>",b+="\t</div>",b+="</div>",1==c.w357_overlay_state&&(b+='<div id="cpnb_warningBoxBgOverlay" style="background-color:'+c.w357_overlay_color+';">'),r.innerHTML=b,document.body.appendChild(r),"center"==c.w357_position){var C=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=document.getElementById("w357_cpnb_outer").clientHeight;(A=document.createElement("style")).type="text/css",A.innerHTML=".cpnb-div-position-center {top:0; left:0; margin-top: "+(i-h)/2+"px; margin-left: "+(C-500)/2+"px} ",document.getElementsByTagName("head")[0].appendChild(A)}if(c.w357_autoAcceptAfterScrolling){var y=0;window.addEventListener("scroll",function(){if(0==y&&window.pageYOffset>c.w357_numOfScrolledPixelsBeforeAutoAccept){var e=c.w357_enableConfirmationAlertsForAcceptBtn,o=c.w357_confirm_allow_msg,t=c.w357_cookie_name,n=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesAccepted",i=c.w357_expiration_cookieAccept;cpnb_warning_accept_button(decodeURI(e),decodeURI(o),t,n,i,c.w357_base_url,"notification_bar",c.w357_reloadPageAfterAccept,c.w357_overlay_state),y++}})}"display_always"!=c.w357_hide_after_time&&(_=1e3*c.w357_duration,s=c.w357_animate_duration,setTimeout(function(){var e=document.getElementById("w357_cpnb_outer");e.classList.remove("cpnb-warningBox-show-fade-in"),e.classList.add("cpnb-warningBox-show-fade-out"),1==c.w357_overlay_state&&document.getElementById("cpnb_warningBoxBgOverlay").classList.add("cpnb-warningBox-show-fade-out")},_),setTimeout(function(){document.getElementById("w357_cpnb_outer").style.display="none",1==c.w357_overlay_state&&(document.getElementById("cpnb_warningBoxBgOverlay").style.display="none")},_+s));var v=c.w357_animate_duration/1e3;if(0<=["top","bottom"].indexOf(c.w357_position))var x=c.w357_borderWidth;else x=2*c.w357_borderWidth;var S=document.getElementById("w357_cpnb_outer").offsetHeight-x,B=document.getElementById("w357_cpnb_outer").offsetHeight;
14if((A=document.createElement("style")).type="text/css",A.innerHTML=".cpnb-warningBox-show-fade-in {overflow:hidden; animation-name: slidein; animation-duration: "+v+"s;} ",A.innerHTML+=".cpnb-warningBox-show-fade-out { opacity:0; overflow:hidden; padding:0; animation-name: slideout; animation-duration: "+v+"s;} ",A.innerHTML+="@keyframes slidein { from { height:0px; opacity:0; } to { height:"+S+"px; opacity:1;} }",A.innerHTML+="@keyframes slideout { from { opacity:1; } to { opacity:0; } }",document.getElementsByTagName("head")[0].appendChild(A),"custom_text"==c.w357_more_info_btn_type){v=c.w357_animate_duration/5e3;(A=document.createElement("style")).type="text/css",A.innerHTML=".cpnb-modal-show-fade-in { visibility: visible; opacity: 1; -webkit-transition: opacity "+v+"s, visibility "+v+"s; transition: opacity "+v+"s, visibility "+v+"s; } ",A.innerHTML+=".cpnb-modal-show-fade-out { visibility: hidden; opacity: 0; -webkit-transition: opacity "+v+"s, visibility "+v+"s; transition: opacity "+v+"s, visibility "+v+"s; } ",document.getElementsByTagName("head")[0].appendChild(A);r=document.createElement("div"),b='<div id="cpnb_modal_wrap" class="cpnb-modal-wrap cpnb-modal-show-fade-out">';b+='\t\t<div class="cpnb-modal-outer cpnb-modal-bg cpnb-close" id="cpnb_outter-moreinfo" style="top: 0px; left: 0px; align-items: flex-start;">',b+='\t\t\t\t<div class="cpnb-modal-inner cpnb-modal--medium" id="cpnb_inner-moreinfo" style="z-index: 100000000; max-height:'+a+"px; margin-top:"+l+'px;">',b+='\t\t\t\t\t\t<div class="cpnb-modal-inner-text">'+c.w357_customText+"</div>",b+='\t\t\t\t\t\t<span onClick="cpnb_closeModalMoreInfo()" id="cpnb-modal-close-moreinfo" class="cpnb-modal-close cpnb-close cpnb-close-icon-x"></span>',b+='\t\t\t\t\t\t<div id="close_cpnb_modal_footer" class="cpnb-modal-footer">',b+='\t\t\t\t\t\t\t\t<div id="close_cpnb_modal_actions" class="cpnb-modal-actions">';for(p=JSON.parse(c.w357_buttons_ordering),m=0;m<p.length;m++){switch(p[m]){case"ok":if(1==c.w357_display_ok_btn){w=c.w357_confirm_allow_msg,f=c.w357_expiration_cookieAccept,k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesAccepted"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():"");b+='\t\t\t\t<a id="cpnb-accept-btn-m-info" rel="nofollow" onClick="cpnb_warning_accept_button(\''+decodeURI(g)+"', '"+decodeURI(w)+"', '"+u+"', '"+k+"', '"+f+"', '"+c.w357_base_url+"', 'modal', '"+c.w357_reloadPageAfterAccept+"', '"+c.w357_overlay_state+'\')" class="cpnb-button cpnb-button-ok '+decodeURI(c.w357_accept_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonText)+"</a>"}break;case"decline":if(1==c.w357_display_decline_btn){w=c.w357_confirm_delete_msg,f=c.w357_expiration_cookieDecline,k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesDeclined"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():"");b+='\t\t\t\t<a id="cpnb-decline-btn-m-info" rel="nofollow" onClick="cpnb_warning_decline_button(\''+decodeURI(g)+"', '"+decodeURI(w)+"', '"+u+"', '"+k+"', '"+f+'\')" class="cpnb-button cpnb-button-decline '+decodeURI(c.w357_decline_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonDeclineText)+"</a>"}break;case"cancel":if(1==c.w357_display_cancel_btn)b+='\t\t\t\t<a id="cpnb-cancel-btn-m-info" rel="nofollow" onClick="cpnb_warning_cancel_button(\''+u+"', '"+(f=c.w357_expiration_cookieCancel)+"', '"+(k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=CookiesCancelled"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():""))+"', '"+c.w357_overlay_state+'\')" class="cpnb-button cpnb-button-cancel '+decodeURI(c.w357_cancel_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonCancelText)+"</a>";break;case"settings":1==c.w357_display_settings_btn&&(b+='\t\t\t\t<a id="cpnb-settings-btn-m-info" rel="nofollow" onClick="cpnb_m_openModal()" class="cpnb-button cpnb-button-settings '+decodeURI(c.w357_settings_button_class_notification_bar)+'">'+decodeURI(c.w357_buttonSettingsText)+"</a>")}}b+="\t\t\t\t\t\t\t\t</div>",b+="\t\t\t\t\t\t</div>",b+="\t\t\t\t</div>",b+='\t\t\t\t<div class="cpnb-modal-show-fade-out" id="modal_close_bg" onClick="cpnb_closeModalMoreInfo()" style=" z-index: 99999999; top:0; left:0; position:fixed; width:100%; height:100%;"></div>',b+="\t\t</div>",b+="</div>",r.innerHTML=b,document.body.appendChild(r)}}0===c.w357_body_cover&&null!=B&&0<B&&("top"==c.w357_position?document.getElementsByTagName("body")[0].style.paddingTop=B+"px":document.getElementsByTagName("body")[0].style.paddingBottom=B+"px");o=["w357_m_modalState","w357_m_floatButtonState"];for(var t in cpnb_manager)null!==cpnb_manager[t]&""!==cpnb_manager[t]&&(0<=o.indexOf(t)?e[t]=parseInt(cpnb_manager[t]):e[t]=cpnb_manager[t]);if(modalManagerSettings=e,categoriesSettingsCookie=null!=cpnb_readCookie("cpnb_cookiesSettings")?JSON.parse(cpnb_readCookie("cpnb_cookiesSettings")):{},afterCategoriesSettingsCookie=categoriesSettingsCookie,afterExpirationCookies=c.w357_expiration_cookieSettings,n()&&1==c.w357_blockCookies&&1==e.w357_m_modalState){var A;
14m_modalManager_confirmationText=e.w357_m_confirmationAlertRequiredCookies,(A=document.createElement("style")).type="text/css",A.innerHTML=".cpnb-manager-modal-left-item-selected, .cpnb-manager-modal-left-item-unSelected:hover, .cpnb-manager-modal-left-item-unSelected:focus {background: "+e.w357_m_modal_menuItemSelectedBgColor+";} ",document.getElementsByTagName("head")[0].appendChild(A);var I="",E="",T=0;for(var L in E+='<span class="cpnb-left-menu-toggle" onClick="cpnb_toggle_responsive_menu()"><img class="cpnb-left-menu-toggle-button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABxSURBVGhD7dYxDYBAEETRFYECKkRQIgARBA1IQAEi0IInmKPeGu4m/yW/2mq6DQDAX3aDZhW3QYdKD63FkNp6h6wGjQoAABSnQYtKf5fW4vutLa8hk0GDAgAAxWXQptLfpbX4fmvLa0hvUKcAAF+LeABZddsp++ZlVAAAAABJRU5ErkJggg=="></span>',E+='<div class="cpnb-m-header">'+e.w357_m_modalHeadingText+"</div>",cpnb_cookiesCategories)if(1==cpnb_cookiesCategories[L].cookie_category_status){var D=cpnb_cookiesCategories[L].cookie_category_id;1==++T?(I+="<div onClick=\"cpnb_m_changeModalCategory('"+L+'\')" id="mlm_menu_category_id_'+L+'" class="cpnb-manager-modal-left-item-selected cpnb-manager-modal-left-item modal-left-menu-item-id-'+L+'">'+cpnb_cookiesCategories[L].cookie_category_name+"</div>",E+='<div id="mmr_box_category_id_'+L+'" class="cpnb-manager-modal-right-selected cpnb-manager-modal-right cpnb-manager-modal-right-scrollbar">'):(I+="<div onClick=\"cpnb_m_changeModalCategory('"+L+'\')" id="mlm_menu_category_id_'+L+'" class="cpnb-manager-modal-left-item-unSelected cpnb-manager-modal-left-item modal-left-menu-item-id-'+L+'">'+cpnb_cookiesCategories[L].cookie_category_name+"</div>",E+='<div id="mmr_box_category_id_'+L+'" class="cpnb-manager-modal-right-unSelected cpnb-manager-modal-right cpnb-manager-modal-right-scrollbar">'),E+='<h3 class="cpnb-cookies-category-heading-responsive">'+cpnb_cookiesCategories[L].cookie_category_name+"</h3>",E+=cpnb_cookiesCategories[L].cookie_category_description;var M=c.w357_expiration_cookies,R=c.w357_current_url,U=c.w357_cookie_name,O=c.w357_expiration_cookieAccept,N=c.w357_expiration_cookieDecline;null==categoriesSettingsCookie[D]?1==cpnb_cookiesCategories[L].cookie_category_checked_by_default?(E+='<div class="modalCheckBox"><input onClick="cpnb_m_saveCategoryCookiesState(\''+L+"', '"+M+"', '"+R+"', '"+U+"', '"+O+"', '"+N+'\')" class="cpnb-checkbox" type="checkbox" value="1" id="modalCheckBox_id_'+L+'" name="" checked/><label for="modalCheckBox_id_'+L+'">'+e.w357_m_checkboxText+"</label></div>",categoriesSettingsCookie[D]=1):2==cpnb_cookiesCategories[L].cookie_category_checked_by_default?(E+='<div class="modalCheckBox"><input onClick="cpnb_m_lockedCheckbox(\''+L+"', '"+c.w357_expiration_cookies+"', '"+c.w357_enableConfirmationAlerts+'\')" class="cpnb-checkbox" type="checkbox" value="1" id="modalCheckBox_id_'+L+'" name="" checked/><label for="modalCheckBox_id_'+L+'">'+e.w357_m_checkboxText+"</label></div>",categoriesSettingsCookie[D]=1):(E+='<div class="modalCheckBox"><input onClick="cpnb_m_saveCategoryCookiesState(\''+L+"', '"+M+"', '"+R+"', '"+U+"', '"+O+"', '"+N+'\')" class="cpnb-checkbox" type="checkbox" value="1" id="modalCheckBox_id_'+L+'" name=""/><label for="modalCheckBox_id_'+L+'">'+e.w357_m_checkboxText+"</label></div>",categoriesSettingsCookie[D]=0):2!=cpnb_cookiesCategories[L].cookie_category_checked_by_default?1==categoriesSettingsCookie[""+D]?(E+='<div class="modalCheckBox"><input onClick="cpnb_m_saveCategoryCookiesState(\''+L+"', '"+M+"', '"+R+"', '"+U+"', '"+O+"', '"+N+'\')" type="checkbox" value="1" id="modalCheckBox_id_'+L+'" name="" checked/><label for="modalCheckBox_id_'+L+'">'+e.w357_m_checkboxText+"</label></div>",categoriesSettingsCookie[D]=1):(E+='<div class="modalCheckBox"><input onClick="cpnb_m_saveCategoryCookiesState(\''+L+"', '"+M+"', '"+R+"', '"+U+"', '"+O+"', '"+N+'\')" class="cpnb-checkbox" type="checkbox" value="1" id="modalCheckBox_id_'+L+'" name=""/><label for="modalCheckBox_id_'+L+'">'+e.w357_m_checkboxText+"</label></div>",categoriesSettingsCookie[D]=0):(E+='<div class="modalCheckBox"><input onClick="cpnb_m_lockedCheckbox(\''+L+"', '"+c.w357_expiration_cookies+"', '"+c.w357_enableConfirmationAlerts+'\')" class="cpnb-checkbox" type="checkbox" value="1" id="modalCheckBox_id_'+L+'" name="" checked/><label for="modalCheckBox_id_'+L+'">'+e.w357_m_checkboxText+" "+e.w357_m_lockedText+"</label></div>",categoriesSettingsCookie[D]=1),E+='<div style="display:block; width:100%; height:30px;"></div>',E+="</div>",categoriesSettingsCookieInner[D]=L,categoriesSettingsCookieOuter[L]=D}E+='<div class="cpnb-m-bottom-buttons">';g=c.w357_enableConfirmationAlertsForAcceptBtn,u=c.w357_cookie_name,w=c.w357_confirm_allow_msg,f=c.w357_expiration_cookieAccept,k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesAccepted&"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():"");E+='<input id="cpnb-accept-btn-m" class="cpnb-button cpnb-m-enableAllButton '+decodeURI(c.w357_accept_button_class_notification_bar_modal_window)+'" type="button" onClick="cpnb_warning_accept_button(\''+decodeURI(g)+"', '"+decodeURI(w)+"', '"+u+"', '"+k+"', '"+f+"', '"+c.w357_base_url+"', 'modal', '"+c.w357_reloadPageAfterAccept+"', '"+c.w357_overlay_state+'\')" value="'+e.w357_m_EnableAllButtonText+'">';g=c.w357_enableConfirmationAlertsForDeclineBtn,w=c.w357_confirm_delete_msg,f=c.w357_expiration_cookieDecline,k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesDeclined&cpnb_btn_area=cookiesManager"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():"");E+='<input id="cpnb-decline-btn-m" class="cpnb-button cpnb-m-DeclineAllButton '+decodeURI(c.w357_decline_button_class_notification_bar_modal_window)+'" type="button" onClick="cpnb_warning_decline_button(\''+decodeURI(g)+"', '"+decodeURI(w)+"', '"+u+"', '"+k+"', '"+f+'\')" value="'+e.w357_m_DeclineAllButtonText+'">';k=c.w357_current_url+(c.w357_current_url.match(/\?/)?"&":"?")+"cpnb_method=cpnbCookiesManagerSaveSettings"+(0<c.w357_joomla_caching?"&dt="+(new Date).getTime():""),M=c.w357_expiration_cookies,R=c.w357_current_url,U=c.w357_cookie_name,O=c.w357_expiration_cookieAccept,N=c.w357_expiration_cookieDecline;E+='<input id="cpnb-save-btn-m" class="cpnb-button cpnb-m-SaveChangesButton '+decodeURI(c.w357_save_button_class_notification_bar_modal_window)+'" type="button" value="'+e.w357_m_SaveChangesButtonText+'" onClick="cpnb_warning_save_settings_button(\''+k+"', '"+M+"', '"+R+"', '"+U+"', '"+O+"', '"+N+"', '"+c+"')\">",E+="</div>",1<Object.keys(categoriesSettingsCookie).map(function(e){return categoriesSettingsCookie[e]}).reduce(function(e,o){return e+o},0)&&cpnb_createCookie("cpnb_cookiesSettings",JSON.stringify(categoriesSettingsCookie),c.w357_expiration_cookieSettings),afterCategoriesSettingsCookie=categoriesSettingsCookie,afterExpirationCookies=c.w357_expiration_cookies;b='<div id="cpnb_manager_wrap" class="cpnb-modal-wrap cpnb-modal-show-fade-out">';
14if(b+='\t\t<div class="cpnb-modal-outer cpnb-modal-bg cpnb-close" id="cpnb_outter" style="top: 0px; left: 0px; align-items: flex-start;">',b+='\t\t\t\t<div class="cpnb-modal-inner cpnb-modal--medium" id="cpnb_inner" style="z-index: 100000000; height:'+a+"px; margin-top:"+l+'px; overflow:hidden;">',b+='\t\t\t\t\t\t<span onClick="cpnb_m_closeModal()" id="cpnb-modal-close" class="cpnb-modal-close cpnb-close cpnb-close-icon-x"></span>',b+='\t\t\t\t\t\t<div id="cpnb_manager_modal_left" class="cpnb-manager-modal-left">',b+=I,b+="\t\t\t\t\t\t</div>",b+=E,b+="\t\t\t\t</div>",b+='\t\t\t\t<div class="cpnb-modal-show-fade-out" id="cpnb_manager_wrap_close_bg" onClick="cpnb_m_closeModal()" style=" z-index: 99999999; top:0; left:0; position:fixed; width:100%; height:100%;"></div>',b+="\t\t</div>",b+="</div>",(r=document.createElement("div")).innerHTML=b,document.body.appendChild(r),1==e.w357_m_floatButtonState&&(null!=cpnb_readCookie("cpnbCookiesCancelled")||null!=cpnb_readCookie("cpnbCookiesDeclined")||null!=cpnb_readCookie(c.w357_cookie_name))){var H="bottom_right"===e.w357_m_floatButtonPosition?"left":"right",F='<div onClick="cpnb_m_openModal()" class="cpnb-m-cookies-floatButton cpnb-m-cookies-floatButtonPosition_'+e.w357_m_floatButtonPosition+'"><div class="cpnb-m-cookies-floatButton-icon" data-balloon="'+e.w357_m_floatButtonText+'" data-balloon-pos="'+H+'"><img alt="Cookies manager" class="cpnb-m-cookies-floatButton-icon-img" src="'+e.w357_m_floatButtonIconSrc+'"/></div></div>';(r=document.createElement("div")).innerHTML=F,document.body.appendChild(r)}var J=document.getElementById(e.w357_m_HashLink);if(J)var j=J.addEventListener("click",cpnb_m_openModal,!1);else j=null;if(window.location.hash=="#"+e.w357_m_HashLink||j){var P=document.getElementById("cpnb_manager_wrap");P.classList.remove("cpnb-modal-show-fade-out"),P.classList.add("cpnb-modal-show-fade-in");var W=document.getElementById("cpnb_manager_wrap_close_bg");W.classList.remove("cpnb-modal-show-fade-out"),W.classList.add("cpnb-modal-show-fade-in")}}},!1),window.addEventListener("load",function(){var e=document.getElementById("cpnb-accept-btn");e&&e.addEventListener("click",function(){});var o=document.getElementById("cpnb-decline-btn");o&&o.addEventListener("click",function(){});var t=document.getElementById("cpnb-cancel-btn");t&&t.addEventListener("click",function(){});var n=document.getElementById("cpnb-accept-btn-m-info");n&&n.addEventListener("click",function(){});var i=document.getElementById("cpnb-decline-btn-m-info");i&&i.addEventListener("click",function(){});var c=document.getElementById("cpnb-cancel-btn-m-info");c&&c.addEventListener("click",function(){});var a=document.getElementById("cpnb-accept-btn-cit");a&&a.addEventListener("click",function(){});var _=document.getElementById("cpnb-delete-btn-cit");_&&_.addEventListener("click",function(){});var s=document.getElementById("cpnb-reload-btn-cit");s&&s.addEventListener("click",function(){});var l=document.getElementById("cpnb-accept-btn-m");l&&l.addEventListener("click",function(){});var r=document.getElementById("cpnb-decline-btn-m");r&&r.addEventListener("click",function(){});var d=document.getElementById("cpnb-save-btn-m");d&&d.addEventListener("click",function(){})},!1);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.