1 2"function"==typeof jQuery&&jQuery(document).ready(function(a){a("body").on("post-load",function(){window.a2a&&a2a.init_all()})}); 3 4 5 6!function(a){a(document).ready(function(){var b;a("#your-profile").attr("enctype","multipart/form-data"),function(){function b(){c.prop("disabled",""===d.map(function(){return a(this).val()}).get().join(""))}var c,d,e=a("#avatar-manager");e.length&&(c=e.find('input[type="submit"]'),d=e.find('input[type="file"]'),b(),d.on("change",b))}(),a("#avatar-manager-choose-from-library-link").click(function(c){var d=a(this);return c.preventDefault(),b?void b.open():(b=wp.media.frames.customAvatar=wp.media({title:d.data("choose"),library:{type:"image"},button:{text:d.data("update"),close:!1}}),b.on("select",function(){var a=b.state().get("selection").first(),c=d.data("updateLink");window.location=c+"&avatar_manager_attachment_id="+a.id}),void b.open())})})}(jQuery); 7 8 9 10var CLI_ACCEPT_COOKIE_NAME=(typeof CLI_ACCEPT_COOKIE_NAME!=='undefined'?CLI_ACCEPT_COOKIE_NAME:'viewed_cookie_policy');var CLI_PREFERENCE_COOKIE=(typeof CLI_PREFERENCE_COOKIE!=='undefined'?CLI_PREFERENCE_COOKIE:'CookieLawInfoConsent');var CLI_ACCEPT_COOKIE_EXPIRE=(typeof CLI_ACCEPT_COOKIE_EXPIRE!=='undefined'?CLI_ACCEPT_COOKIE_EXPIRE:365);var CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP!=='undefined'?CLI_COOKIEBAR_AS_POPUP:!1);var CLI_Cookie={set:function(name,value,days){var secure="";if(!0===Boolean(Cli_Data.secure_cookies)){secure=";secure"} 11if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString()}else{var expires=""} 12document.cookie=name+"="+value+secure+expires+"; path=/";if(days<1){let 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+";"} 13host_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;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1,c.length)} 14if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length)}} 15return null},erase:function(name){this.set(name,"",-10)},exists:function(name){return(this.read(name)!==null)},getallcookies:function(){var pairs=document.cookie.split(";");var cookieslist={};for(var i=0;i<pairs.length;i++){var pair=pairs[i].split("=");cookieslist[(pair[0]+'').trim()]=unescape(pair[1])} 16return cookieslist}} 17var CLI={bar_config:{},showagain_config:{},allowedCategories:[],js_blocking_enabled:!1,set:function(args){if(typeof JSON.parse!=="function"){console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");return} 18if(typeof args.settings!=='object'){this.settings=JSON.parse(args.settings)}else{this.settings=args.settings} 19this.js_blocking_enabled=Boolean(Cli_Data.js_blocking);this.settings=args.settings;this.bar_elm=jQuery(this.settings.notify_div_id);this.showagain_elm=jQuery(this.settings.showagain_div_id);this.settingsModal=jQuery('#cliSettingsPopup');this.main_button=jQuery('.cli-plugin-main-button');this.main_link=jQuery('.cli-plugin-main-link');this.reject_link=jQuery('.cookie_action_close_header_reject');this.delete_link=jQuery(".cookielawinfo-cookie-delete");this.settings_button=jQuery('.cli_settings_button');this.accept_all_button=jQuery('.wt-cli-accept-all-btn');if(this.settings.cookie_bar_as=='popup'){CLI_COOKIEBAR_AS_POPUP=!0} 20this.mayBeSetPreferenceCookie();this.addStyleAttribute();this.configBar();this.toggleBar();this.attachDelete();this.attachEvents();this.configButtons();this.reviewConsent();var cli_hidebar_on_readmore=this.hideBarInReadMoreLink();if(Boolean(this.settings.scroll_close)===!0&&cli_hidebar_on_readmore===!1){window.addEventListener("scroll",CLI.closeOnScroll,!1)}},hideBarInReadMoreLink:function(){if(Boolean(CLI.settings.button_2_hidebar)===!0&&this.main_link.length>0&&this.main_link.hasClass('cli-minimize-bar')){this.hideHeader();cliBlocker.cookieBar(!1);this.showagain_elm.slideDown(this.settings.animate_speed_show);return!0} 21return!1},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')}
21);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")!='#'?!0:!1;var new_window=!1;if(action=='accept'){this.enableAllCookies();this.accept_close();new_window=CLI.settings.button_7_new_win?!0:!1}else if(action=='reject'){this.disableAllCookies();this.reject_close();new_window=Boolean(this.settings.button_3_new_win)?!0:!1}else{this.accept_close();new_window=Boolean(this.settings.button_1_new_win)?!0:!1} 22if(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(){const categoryCookie='cookielawinfo-'+jQuery(this).attr('data-id');const 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",!0)}else{jQuery(this).prop("checked",!1)}}});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',!0)}else{CLI_Cookie.set('cookielawinfo-'+dataID,'no',CLI_ACCEPT_COOKIE_EXPIRE);currentToggleElm.prop('checked',!1)} 23CLI.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)} 24jQuery(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('<div />').html(textBlock.html());strippedText.find('table').remove();textBlock.html(strippedText.html());const 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])} 25CLI.generateConsent();return!1})},configButtons:function(){this.main_button.css('color',this.settings.button_1_link_colour);
25if(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)})} 26this.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)})} 27this.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)})} 28this.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)})} 29this.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)} 30if(CLI.settings.cookie_bar_as=='widget'){this.barAsWidget(1)} 31if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){this.displayHeader()}else{this.hideHeader()} 32if(Boolean(this.settings.show_once_yn)){setTimeout(function(){CLI.close_header()},CLI.settings.show_once)} 33if(CLI.js_blocking_enabled===!1){if(Boolean(Cli_Data.ccpaEnabled)===!0){if(Cli_Data.ccpaType==='ccpa'&&Boolean(Cli_Data.ccpaBarEnabled)===!1){cliBlocker.cookieBar(!1)}}else{jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove()}} 34this.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'} 35var 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'} 36var 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} 37if(sa_pos_arr[0]=='top'){this.showagain_config.top=0}else if(sa_pos_arr[0]=='bottom'){this.showagain_config.bottom=0} 38this.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'} 39if(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}} 40this.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)===!0){this.bar_config.position='fixed'}}else{this.bar_config.bottom='0'} 41this.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} 42return 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===!0){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===!0){this.bar_elm.hide(0,cliBlocker.runScripts)}else{this.bar_elm.hide()}} 43if(Boolean(this.settings.showagain_tab)){this.showagain_elm.slideDown(this.settings.animate_speed_show)} 44if(Boolean(this.settings.accept_close_reload)===!0){this.reload_current_page()} 45return!1},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])} 46CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE);if(Boolean(this.settings.notify_animate_hide)){if(CLI.js_blocking_enabled===!0){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===!0){this.bar_elm.hide(cliBlocker.runScripts)}else{this.bar_elm.hide()}} 47if(Boolean(this.settings.showagain_tab)){this.showagain_elm.slideDown(this.settings.animate_speed_show)} 48if(Boolean(this.settings.reject_close_reload)===!0){this.reload_current_page()} 49return!1},reload_current_page:function(){window.location.reload(!0)},closeOnScroll:function(){if(window.pageYOffset>100&&!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)){CLI.accept_close();if(Boolean(CLI.settings.scroll_close_reload)===!0){window.location.reload()} 50window.removeEventListener("scroll",CLI.closeOnScroll,!1)}},displayHeader:function(){if(Boolean(this.settings.notify_animate_show)){this.bar_elm.slideDown(this.settings.animate_speed_show)}else{this.bar_elm.show()} 51this.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()} 52this.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()===!1){cli_elm.css({'padding':'25px 15px'})} 53if(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'})} 54if(a){this.setResize()}}
54,barAsPopUp:function(a){if(typeof cookie_law_info_bar_as_popup==='function'){return!1} 55var 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()===!1){cli_elm.css({'padding':'25px 15px'})} 56const cli_h=cli_elm.height();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()} 57if(CLI.settings.cookie_bar_as=='widget'){CLI.barAsWidget()} 58CLI.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',!0);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');const cliCategorySlug=cli_chkbox_data_id.replace('checkbox-','');if(Cli_Data.strictlyEnabled.indexOf(cliCategorySlug)===-1){cli_chkbox_elm.prop('checked',!1);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()} 59CLI.accept_close()})},checkCategories:function(){var cliAllowedCategories=[];var cli_categories={};jQuery('.cli-user-preference-checkbox').each(function(){var status=!1;const cli_chkbox_elm=jQuery(this);let cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-','');const cli_chkbox_data_id_trimmed=cli_chkbox_data_id.replace('-','_') 60if(jQuery(cli_chkbox_elm).is(':checked')){status=!0;cliAllowedCategories.push(cli_chkbox_data_id)} 61cli_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);let cliConsent={};if(preferenceCookie!==null){cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent)} 62cliConsent.ver=Cli_Data.consentVersion;jQuery('.cli-user-preference-checkbox').each(function(){let categoryVal='';let 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=!0}else{categoryVal=!1} 63cliConsent[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} 64name=name.replace(/[\[\]]/g,'\\$&');var regex=new RegExp('[?&]'+name+'(=([^&#]*)|&|#|$)'),results=regex.exec(url);if(!results){return null} 65if(!results[2]){return''} 66return decodeURIComponent(results[2].replace(/\+/g,' '))},CookieLawInfo_Callback:function(enableBar,enableBlocking){enableBar=typeof enableBar!=='undefined'?enableBar:!0;enableBlocking=typeof enableBlocking!=='undefined'?enableBlocking:!0;if(CLI.js_blocking_enabled===!0&&Boolean(Cli_Data.custom_integration)===!0){cliBlocker.cookieBar(enableBar);cliBlocker.runScripts(enableBlocking)}},checkifStyleAttributeExist:function(){var exist=!1;var attr=this.bar_elm.attr('data-cli-style');if(typeof attr!==typeof undefined&&attr!==!1){exist=!0} 67return 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()}}} 68var cliBlocker={blockingStatus:!0,scriptsLoaded:!1,ccpaEnabled:!1,ccpaRegionBased:!1,ccpaApplicable:!1,ccpaBarEnabled:!1,cliShowBar:!0,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)===!0){callbackA(!1)}else{if(this.ccpaEnabled===!0){this.ccpaApplicable=!0;if(Cli_Data.ccpaType==='ccpa'){if(this.ccpaBarEnabled!==!0){this.cliShowBar=!1;this.blockingStatus=!1}}}else{jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove()} 69if(cliBlocker.isBypassEnabled==="1"){cliBlocker.blockingStatus=!1} 70callbackA(this.cliShowBar);callbackB(this.blockingStatus)}},cookieBar:function(showbar){showbar=typeof showbar!=='undefined'?showbar:!0;cliBlocker.cliShowBar=showbar;if(cliBlocker.cliShowBar===!1){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===!0){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){const currentCategory=key;if(CLI.allowedCategories.indexOf(currentCategory)===-1){var nonNecessaryCookie
70s=non_necessary_cookies[currentCategory];for(var i=0;i<nonNecessaryCookies.length;i++){if(CLI_Cookie.read(nonNecessaryCookies[i])!==null){CLI_Cookie.erase(nonNecessaryCookies[i])}}}}}}},runScripts:function(blocking){blocking=typeof blocking!=='undefined'?blocking:!0;cliBlocker.blockingStatus=blocking;var genericFuncs={renderByElement:function(callback){cliScriptFuncs.renderScripts();callback();cliBlocker.scriptsLoaded=!0},};var cliScriptFuncs={scriptsDone:function(){if(typeof Cli_Data.triggerDomRefresh!=='undefined'){if(Boolean(Cli_Data.triggerDomRefresh)===!0){var DOMContentLoadedEvent=document.createEvent('Event') 71DOMContentLoadedEvent.initEvent('DOMContentLoaded',!0,!0) 72window.document.dispatchEvent(DOMContentLoadedEvent)}}},seq:function(arr,callback,index){if(typeof index==='undefined'){index=0} 73arr[index](function(){index++ 74if(index===arr.length){callback()}else{cliScriptFuncs.seq(arr,callback,index)}})},insertScript:function($script,callback){var s='';var scriptType=$script.getAttribute('data-cli-script-type');var elementPosition=$script.getAttribute('data-cli-element-position');var isBlock=$script.getAttribute('data-cli-block');var s=document.createElement('script');var ccpaOptedOut=cliBlocker.ccpaOptedOut();s.type='text/plain';if($script.async){s.async=$script.async} 75if($script.defer){s.defer=$script.defer} 76if($script.src){s.onload=callback 77s.onerror=callback 78s.src=$script.src}else{s.textContent=$script.innerText} 79var attrs=jQuery($script).prop("attributes");for(var ii=0;ii<attrs.length;++ii){if(attrs[ii].nodeName!=='id'){s.setAttribute(attrs[ii].nodeName,attrs[ii].value)}} 80if(cliBlocker.blockingStatus===!0){if((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'&&CLI.allowedCategories.indexOf(scriptType)!==-1)){s.setAttribute('data-cli-consent','accepted');s.type='text/javascript'} 81if(cliBlocker.ccpaApplicable===!0){if(ccpaOptedOut===!0||CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)==null){s.type='text/plain'}}}else{s.type='text/javascript'} 82if($script.type!=s.type){if(elementPosition==='head'){document.head.appendChild(s)}else{document.body.appendChild(s)} 83if(!$script.src){callback()} 84$script.parentNode.removeChild($script)}else{callback()}},renderScripts:function(){var $scripts=document.querySelectorAll('script[data-cli-class="cli-blocker-script"]');if($scripts.length>0){var runList=[] 85var typeAttr 86Array.prototype.forEach.call($scripts,function($script){typeAttr=$script.getAttribute('type') 87runList.push(function(callback){cliScriptFuncs.insertScript($script,callback)})}) 88cliScriptFuncs.seq(runList,cliScriptFuncs.scriptsDone)}}};genericFuncs.renderByElement(cliBlocker.removeCookieByCategory)},ccpaOptedOut:function(){var ccpaOptedOut=!1;var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);if(preferenceCookie!==null){let cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent);if(typeof cliConsent.ccpaOptout!=='undefined'){ccpaOptedOut=cliConsent.ccpaOptout}} 89return ccpaOptedOut}} 90jQuery(document).ready(function(){if(typeof cli_cookiebar_settings!='undefined'){CLI.set({settings:cli_cookiebar_settings});if(CLI.js_blocking_enabled===!0){cliBlocker.checkPluginStatus(cliBlocker.cookieBar,cliBlocker.runScripts)}}}); 91 92 93 94(function($){'use strict';var CCPA={ccpaOptedOut:!1,ccpaOptOutConfirmationOpen:!1,set:function(){this.setCheckboxState();jQuery(document).on('click','.wt-cli-ccpa-opt-out-checkbox',function(){CCPA.ccpaOptedOut=!1;if(this.checked===!0){CCPA.ccpaOptedOut=!0} 95CCPA.optOutCcpa()});jQuery(document).on('click','.wt-cli-ccpa-opt-out:not(.wt-cli-ccpa-opt-out-checkbox)',function(){CCPA.showCcpaOptOutConfirmBox()})},setCheckboxState:function(){var cliConsent={};var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);if(preferenceCookie!==null){cliConsent=CCPA.parseCookie(preferenceCookie);if(typeof(cliConsent.ccpaOptout)!=='undefined'){if(cliConsent.ccpaOptout===!0){jQuery('.wt-cli-ccpa-opt-out-checkbox').prop('checked',!0)}else{jQuery('.wt-cli-ccpa-opt-out-checkbox').prop('checked',!1)}}}},optOutCcpa:function(){var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);var cliConsent={};if(preferenceCookie!==null){cliConsent=CCPA.parseCookie(preferenceCookie)} 96cliConsent.ccpaOptout=this.ccpaOptedOut;
96cliConsent=JSON.stringify(cliConsent);cliConsent=window.btoa(cliConsent);CLI_Cookie.set(CLI_PREFERENCE_COOKIE,cliConsent,CLI_ACCEPT_COOKIE_EXPIRE);this.setCheckboxState()},parseCookie:function(preferenceCookie){var cliConsent={};cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent);return cliConsent},toggleCCPA:function(){},checkAuthentication:function(){},showCcpaOptOutConfirmBox:function(){var css='.cli-alert-dialog-buttons button {\ 97 -webkit-box-flex: 1!important;\ 98 -ms-flex: 1!important;\ 99 flex: 1!important;\ 100 -webkit-appearance: none!important;\ 101 -moz-appearance: none!important;\ 102 appearance: none!important;\ 103 margin: 4px!important;\ 104 padding: 8px 16px!important;\ 105 border-radius: 64px!important;\ 106 cursor: pointer!important;\ 107 font-weight: 700!important;\ 108 font-size: 12px !important;\ 109 color: #fff;\ 110 text-align: center!important;\ 111 text-transform: capitalize;\ 112 border: 2px solid #61a229;\ 113 } #cLiCcpaOptoutPrompt .cli-modal-dialog{\ 114 max-width: 320px;\ 115 }\ 116 #cLiCcpaOptoutPrompt .cli-modal-content {\ 117 box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\ 118 -webkit-box-shadow:0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\ 119 -moz-box-shadow0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\ 120 }\ 121 .cli-alert-dialog-content {\ 122 font-size: 14px;\ 123 }\ 124 .cli-alert-dialog-buttons {\ 125 padding-top:5px;\ 126 }\ 127 button.cli-ccpa-button-cancel {\ 128 background: transparent !important;\ 129 color: #61a229;\ 130 }\ 131 button.cli-ccpa-button-confirm {\ 132 background-color:#61a229;\ 133 color:#ffffff;\ 134 }';var head=document.head||document.getElementsByTagName('head')[0];var style=document.createElement('style');var primaryColor=CLI.settings.button_1_button_colour;var primaryLinkColor=CLI.settings.button_1_link_colour;var backgroundColor=CLI.settings.background;var textColor=CLI.settings.text;CCPA.ccpaOptOutConfirmationOpen=!1;var ccpaPrompt,$this=this;(ccpaPrompt=document.createElement("div")).classList.add("cli-modal","cli-show","cli-blowup");ccpaPrompt.id="cLiCcpaOptoutPrompt";var t=document.createElement("div");t.className="cli-modal-dialog";var n=document.createElement("div");n.classList.add("cli-modal-content","cli-bar-popup");var o=document.createElement("div");o.className="cli-modal-body";var p=document.createElement("div");p.classList.add("wt-cli-element","cli-container-fluid","cli-tab-container");var q=document.createElement("div");q.className="cli-row";var r=document.createElement("div");r.classList.add("cli-col-12");var x=document.createElement("div");x.classList.add("cli-modal-backdrop","cli-fade","cli-settings-overlay","cli-show");var a=document.createElement("button");var b=document.createElement("button");var c=document.createElement("div");var d=document.createElement("div");d.className="cli-alert-dialog-content",d.innerText=ccpa_data.opt_out_prompt,c.className="cli-alert-dialog-buttons";a.className="cli-ccpa-button-confirm",a.innerText=ccpa_data.opt_out_confirm,a.addEventListener("click",function(){CCPA.ccpaOptedOut=!0,CCPA.optOutCcpa(),document.body.removeChild(ccpaPrompt),document.body.removeChild(x),document.body.classList.remove("cli-modal-open");head.removeChild(style);if(Cli_Data.ccpaType==='ccpa'){CLI.enableAllCookies();CLI.accept_close()}}),b.className="cli-ccpa-button-cancel",b.innerText=ccpa_data.opt_out_cancel,b.addEventListener("click",function(){CCPA.ccpaOptedOut=!1,CCPA.optOutCcpa(),document.body.removeChild(ccpaPrompt),document.body.removeChild(x),document.body.classList.remove("cli-modal-open");head.removeChild(style);if(Cli_Data.ccpaType==='ccpa'){CLI.enableAllCookies();CLI.accept_close()}}),ccpaPrompt.addEventListener("click",function(event){event.stopPropagation();if(ccpaPrompt!==event.target){return} 135document.body.removeChild(ccpaPrompt),document.body.removeChild(x),document.body.classList.remove("cli-modal-open");head.removeChild(style)}),ccpaPrompt.appendChild(t),t.appendChild(n),n.appendChild(o),o.appendChild(p),p.appendChild(q),q.appendChild(r),r.appendChild(d),r.appendChild(c),c.appendChild(b),c.appendChild(a),head.appendChild(style);style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))} 136document.body.appendChild(ccpaPrompt);document.body.appendChild(x);document.body.classList.add("cli-modal-open")},} 137jQuery(document).ready(function(){CCPA.set()})})(jQuery); 138 139 140 141+function($){'use strict';var Tooltip=function(element,options){this.type=null 142this.options=null 143this.enabled=null 144this.timeout=null 145this.hoverState=null 146this.$element=null 147this.inState=null 148this.init('tooltip',element,options)} 149Tooltip.VERSION='3.3.7' 150Tooltip.TRANSITION_DURATION=150 151Tooltip.DEFAULTS={animation:!0,placement:'top',selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:!1,container:!1,viewport:{selector:'body',padding:0}} 152Tooltip.prototype.init=function(type,element,options){this.enabled=!0 153this.type=type 154this.$element=$(element) 155this.options=this.getOptions(options) 156this.$viewport=this.options.viewport&&$($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport)) 157this.inState={click:!1,hover:!1,focus:!1} 158if(this.$element[0]instanceof document.constructor&&!this.options.selector){throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!')} 159var triggers=this.options.trigger.split(' ') 160for(var i=triggers.length;i--;){var trigger=triggers[i] 161if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin' 162var eventOut=trigger=='hover'?'mouseleave':'focusout' 163this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this)) 164this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}} 165this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()} 166Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS} 167Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options) 168if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}} 169return options} 170Tooltip.prototype.getDelegateOptions=function(){var options={} 171var defaults=this.getDefaults() 172this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value}) 173return options} 174Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type) 175if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions()) 176$(obj.currentTarget).data('bs.'+this.type,self)} 177if(obj instanceof $.Event){self.inState[obj.type=='focusin'?'focu
vendor: 5,539 bytes, lines 177-273
177s':'hover']=!0} 178if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in' 179return} 180clearTimeout(self.timeout) 181self.hoverState='in' 182if(!self.options.delay||!self.options.delay.show)return self.show() 183self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)} 184Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key])return!0} 185return!1} 186Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type) 187if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions()) 188$(obj.currentTarget).data('bs.'+this.type,self)} 189if(obj instanceof $.Event){self.inState[obj.type=='focusout'?'focus':'hover']=!1} 190if(self.isInStateTrue())return 191clearTimeout(self.timeout) 192self.hoverState='out' 193if(!self.options.delay||!self.options.delay.hide)return self.hide() 194self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)} 195Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type) 196if(this.hasContent()&&this.enabled){this.$element.trigger(e) 197var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]) 198if(e.isDefaultPrevented()||!inDom)return 199var that=this 200var $tip=this.tip() 201var tipId=this.getUID(this.type) 202this.setContent() 203$tip.attr('id',tipId) 204this.$element.attr('aria-describedby',tipId) 205if(this.options.animation)$tip.addClass('fade') 206var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement 207var autoToken=/\s?auto?\s?/i 208var autoPlace=autoToken.test(placement) 209if(autoPlace)placement=placement.replace(autoToken,'')||'top' 210$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this) 211this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element) 212this.$element.trigger('inserted.bs.'+this.type) 213var pos=this.getPosition() 214var actualWidth=$tip[0].offsetWidth 215var actualHeight=$tip[0].offsetHeight 216if(autoPlace){var orgPlacement=placement 217var viewportDim=this.getPosition(this.$viewport) 218placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement 219$tip.removeClass(orgPlacement).addClass(placement)} 220var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight) 221this.applyPlacement(calculatedOffset,placement) 222var complete=function(){var prevHoverState=that.hoverState 223that.$element.trigger('shown.bs.'+that.type) 224that.hoverState=null 225if(prevHoverState=='out')that.leave(that)} 226$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()}} 227Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip() 228var width=$tip[0].offsetWidth 229var height=$tip[0].offsetHeight 230var marginTop=parseInt($tip.css('margin-top'),10) 231var marginLeft=parseInt($tip.css('margin-left'),10) 232if(isNaN(marginTop))marginTop=0 233if(isNaN(marginLeft))marginLeft=0 234offset.top+=marginTop 235offset.left+=marginLeft 236$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)})}},offset),0) 237$tip.addClass('in') 238var actualWidth=$tip[0].offsetWidth 239var actualHeight=$tip[0].offsetHeight 240if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight} 241var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight) 242if(delta.left)offset.left+=delta.left 243else offset.top+=delta.top 244var isVertical=/top|bottom/.test(placement) 245var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight 246var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight' 247$tip.offset(offset) 248this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical)} 249Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','')} 250Tooltip.prototype.setContent=function(){var $tip=this.tip() 251var title=this.getTitle() 252$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title) 253$tip.removeClass('fade in top bottom left right')} 254Tooltip.prototype.hide=function(callback){var that=this 255var $tip=$(this.$tip) 256var e=$.Event('hide.bs.'+this.type) 257function complete(){if(that.hoverState!='in')$tip.detach() 258if(that.$element){that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type)} 259callback&&callback()} 260this.$element.trigger(e) 261if(e.isDefaultPrevented())return 262$tip.removeClass('in') 263$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete() 264this.hoverState=null 265return this} 266Tooltip.prototype.fixTitle=function(){var $e=this.$element 267if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}} 268Tooltip.prototype.hasContent=function(){return this.getTitle()} 269Tooltip.prototype.getPosition=function($element){$element=$element||this.$element 270var el=$element[0] 271var isBody=el.tagName=='BODY' 272var elRect=el.getBoundingClientRect() 273if(elRect.width==null){elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top})}
vendor: 3,790 bytes, lines 274-332
274var isSvg=window.SVGElement&&el instanceof window.SVGElement 275var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset()) 276var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()} 277var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null 278return $.extend({},elRect,scroll,outerDims,elOffset)} 279Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width}} 280Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0} 281if(!this.$viewport)return delta 282var viewportPadding=this.options.viewport&&this.options.viewport.padding||0 283var viewportDimensions=this.getPosition(this.$viewport) 284if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll 285var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight 286if(topEdgeOffset<viewportDimensions.top){delta.top=viewportDimensions.top-topEdgeOffset}else if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding 287var rightEdgeOffset=pos.left+viewportPadding+actualWidth 288if(leftEdgeOffset<viewportDimensions.left){delta.left=viewportDimensions.left-leftEdgeOffset}else if(rightEdgeOffset>viewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}} 289return delta} 290Tooltip.prototype.getTitle=function(){var title 291var $e=this.$element 292var o=this.options 293title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title) 294return title} 295Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000) 296while(document.getElementById(prefix)) 297return prefix} 298Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template) 299if(this.$tip.length!=1){throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!')}} 300return this.$tip} 301Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))} 302Tooltip.prototype.enable=function(){this.enabled=!0} 303Tooltip.prototype.disable=function(){this.enabled=!1} 304Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled} 305Tooltip.prototype.toggle=function(e){var self=this 306if(e){self=$(e.currentTarget).data('bs.'+this.type) 307if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions()) 308$(e.currentTarget).data('bs.'+this.type,self)}} 309if(e){self.inState.click=!self.inState.click 310if(self.isInStateTrue())self.enter(self) 311else self.leave(self)}else{self.tip().hasClass('in')?self.leave(self):self.enter(self)}} 312Tooltip.prototype.destroy=function(){var that=this 313clearTimeout(this.timeout) 314this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type) 315if(that.$tip){that.$tip.detach()} 316that.$tip=null 317that.$arrow=null 318that.$viewport=null 319that.$element=null})} 320function Plugin(option){return this.each(function(){var $this=$(this) 321var data=$this.data('bs.tooltip') 322var options=typeof option=='object'&&option 323if(!data&&/destroy|hide/.test(option))return 324if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options))) 325if(typeof option=='string')data[option]()})} 326var old=$.fn.tooltip 327$.fn.tooltip=Plugin 328$.fn.tooltip.Constructor=Tooltip 329$.fn.tooltip.noConflict=function(){$.fn.tooltip=old 330return this}}(jQuery); 331 332
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.