Skip to Content

JavaScript File

URL: https://customercareguides.com/wp-content/cache/min/1/wp-content/plugins/cookie-law-info/public/js/cookie-law-info-public-726b02735c11b2602560d995759b7f80.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Thu, 03 Dec 2020 00:00:25 GMT
Download Time: Less than a second
Cookies: None
Size: 26 KB
HTTP Headers:  9 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
  
OK Issues: No issues found

1CLI_ACCEPT_COOKIE_NAME=(typeof CLI_ACCEPT_COOKIE_NAME!=='undefined'?CLI_ACCEPT_COOKIE_NAME:'viewed_cookie_policy');CLI_PREFERNCE_COOKIE=(typeof CLI_PREFERNCE_COOKIE!=='undefined'?CLI_PREFERNCE_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:!1);var CLI_Cookie={set:function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString()}

2else var expires="";document.cookie=name+"="+value+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+expires+"; path=/; domain="+host_name_withoutwww+";"}

3

4host_name=host_name.substring(host_name.lastIndexOf(".",host_name.lastIndexOf(".")-1));document.cookie=name+"="+value+expires+"; path=/; domain="+host_name+";"}

5}

6,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)}

7

8if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length)}

9}

10

11return null}

12,erase:function(name){this.set(name,"",-10)}

13,exists:function(name){return(this.read(name)!==null)}

14,getallcookies:function(){var pairs=document.cookie.split(";");var cookieslist={}

15;for(var i=0;i<pairs.length;i++){var pair=pairs[i].split("=");cookieslist[(pair[0]+'').trim()]=unescape(pair[1])}

16

17return cookieslist}

18}

19

20var CLI={bar_config:{}

21,showagain_config:{}

22,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}

23

24if(typeof args.settings!=='object'){this.settings=JSON.parse(args.settings)}

25else{this.settings=args.settings}

26

27this.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');if(this.settings.cookie_bar_as=='popup'){CLI_COOKIEBAR_AS_POPUP=!0}

28

29this.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)}

30}

31,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}

32

33return!1}

34,attachEvents:function(){jQuery('.cli_action_button').click(function(e){e.preventDefault();var elm=jQuery(this);var button_action=elm.attr('data-cli_action');var open_link=elm[0].hasAttribute("href")&&elm.attr("href")!='#'?!0:!1;var new_window=!1;if(button_action=='accept'){CLI.accept_close();new_window=Boolean(CLI.settings.button_1_new_win)?!0:!1}

35else if(button_action=='reject'){CLI.reject_close();new_window=Boolean(CLI.settings.button_3_new_win)?!0:!1}

36

37if(open_link){if(new_window){window.open(elm.attr("href"),'_blank')}

38else{window.location.href=elm.attr("href")}

39}

40}

41);this.settingsPopUp();this.settingsTabbedAccordion();this.toggleUserPreferenceCheckBox();this.hideCookieBarOnClose();this.cookieLawInfoRunCallBacks()}

42,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)}

43else{CLI_Cookie.set(categoryCookie,'no',CLI_ACCEPT_COOKIE_EXPIRE)}

44}

45else{if(categoryCookieValue=="yes"){jQuery(this).prop("checked",!0)}

46else{jQuery(this).prop("checked",!1)}

47}

48}

49);jQuery('.cli-user-preference-checkbox').click(function(){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)}

50else{CLI_Cookie.set('cookielawinfo-'+dataID,'no',CLI_ACCEPT_COOKIE_EXPIRE);currentToggleElm.prop('checked',!1)}

51

52CLI.checkCategories();CLI.generateConsent()}

53)}

54,settingsPopUp:function(){jQuery(document).on('click','.cli_settings_button',function(e){e.preventDefault();CLI.settingsModal.addClass("cli-show").css({'opacity':0}

55).animate({'opacity':1}

56);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}

57);if(!jQuery('.cli-settings-mobile').is(':visible')){CLI.settingsModal.find('.cli-nav-link:eq(0)').click()}

58}

59);jQuery('#cliModalClose').click(function(){CLI.settingsPopUpClose()}

60);CLI.settingsModal.click(function(e){if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))){CLI.settingsPopUpClose()}

61}

62);jQuery('.cli_enable_all_btn').click(function(){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)}

63else{CLI.enableAllCookies();cli_toggle_btn.html(disable_text)}

64

65jQuery(this).toggleClass('cli-enabled')}

66);this.privacyReadmore()}

67,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)}

68else{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)}

69}

70}

71)}

72,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}

73)}

74,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()}

75else{jQuery('.cli-privacy-readmore').hide()}

76}

77,truncateText:function(textBlock){var strippedText=jQuery('<div />').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('...')}

78}

79,replaceText:function(textBlock,original){return textBlock.html(original)}

80}

81;Trunc.addReadmore(el);Trunc.truncateText(el);jQuery('a.cli-privacy-readmore').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%')}

82else{jQuery('.cli-privacy-overview').addClass('cli-collapsed');Trunc.replaceText(el,originalHtml)}

83}

84)}

85}

86,attachDelete:function(){this.delete_link.click(function(){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])}

87

88CLI.generateConsent();return!1}

89)}

90,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.hover(function(){jQuery(this).css('background-color',CLI.settings.button_1_button_hover)}

91,function(){jQuery(this).css('background-color',CLI.settings.button_1_button_colour)}

92)}

93

94this.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.hover(function(){jQuery(this).css('background-color',CLI.settings.button_2_button_hover)}

95,function(){jQuery(this).css('background-color',CLI.settings.button_2_button_colour)}

96)}

97

98this.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.hover(function(){jQuery(this).css('background-color',CLI.settings.button_3_button_hover)}

99,function(){jQuery(this).css('background-color',CLI.settings.button_3_button_colour)}

100)}

101

102this.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.hover(function(){jQuery(this).css('background-color',CLI.settings.button_4_button_hover)}

103,function(){jQuery(this).css('background-color',CLI.settings.button_4_button_colour)}

104)}

105}

106,toggleBar:function(){if(CLI_COOKIEBAR_AS_POPUP){this.barAsPopUp(1)}

107

108if(CLI.settings.cookie_bar_as=='widget'){this.barAsWidget(1)}

109

110if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){this.displayHeader()}

111else{this.hideHeader()}

112

113if(Boolean(this.settings.show_once_yn)){setTimeout(function(){CLI.close_header()}

114,CLI.settings.show_once)}

115

116if(CLI.js_blocking_enabled===!1){if(Boolean(Cli_Data.ccpaEnabled)===!0){if(Cli_Data.ccpaType==='ccpa'&&Boolean(Cli_Data.ccpaBarEnabled)===!1){cliBlocker.cookieBar(!1)}

117}

118else{jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove()}

119}

120

121this.showagain_elm.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()}

122}

123)}

124)}

125,configShowAgain:function(){this.showagain_config={'background-color':this.settings.background,'color':this.l1hs(this.settings.text),'position':'fixed','font-family':this.settings.font_family}

126;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'}

127

128var 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}

129else{this.showagain_config.width='auto'}

130

131var 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}

132else if(sa_pos_arr[1]=='right'){this.showagain_config.right=showagain_x_pos}

133

134if(sa_pos_arr[0]=='top'){this.showagain_config.top=0}

135else if(sa_pos_arr[0]=='bottom'){this.showagain_config.bottom=0}

136

137this.bar_config.position='fixed'}

138else 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}

139else if(this.settings.widget_position=='right'){this.showagain_config.right=showagain_x_pos}

140}

141else{if(this.settings.notify_position_vertical=="top"){this.showagain_config.top='0'}

142else if(this.settings.notify_position_vertical=="bottom"){this.bar_config.position='fixed';this.bar_config.bottom='0';this.showagain_config.bottom='0'}

143

144if(this.settings.notify_position_horizontal=="left"){this.showagain_config.left=showagain_x_pos}

145else if(this.settings.notify_position_horizontal=="right"){this.showagain_config.right=showagain_x_pos}

146}

147

148this.showagain_elm.css(this.showagain_config)}

149,configBar:function(){this.bar_config={'background-color':this.settings.background,'color':this.settings.text,'font-family':this.settings.font_family}

150;if(this.settings.notify_position_vertical=="top"){this.bar_config.top='0';if(Boolean(this.settings.header_fix)===!0){this.bar_config.position='fixed'}

151}

152else{this.bar_config.bottom='0'}

153

154this.configShowAgain();this.bar_elm.css(this.bar_config).hide()}

155,l1hs:function(str){if(str.charAt(0)=="#"){str=str.substring(1,str.length)}

156else{return"#"+str}

157

158return this.l1hs(str)}

159,close_header:function(){CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);this.hideHeader()}

160,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)}

161else{this.bar_elm.slideUp(this.settings.animate_speed_hide)}

162}

163else{if(CLI.js_blocking_enabled===!0){this.bar_elm.hide(cliBlocker.runScripts)}

164else{this.bar_elm.hide()}

165}

166

167if(Boolean(this.settings.showagain_tab)){this.showagain_elm.slideDown(this.settings.animate_speed_show)}

168

169if(Boolean(this.settings.accept_close_reload)===!0){this.reload_current_page()}

170

171return!1}

172,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])}

173

174CLI_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)}

175else{this.bar_elm.slideUp(this.settings.animate_speed_hide)}

176}

177else{if(CLI.js_blocking_enabled===!0){this.bar_elm.hide(cliBlocker.runScripts)}

178else{this.bar_elm.hide()}

179}

180

181if(Boolean(this.settings.showagain_tab)){this.showagain_elm.slideDown(this.settings.animate_speed_show)}

182

183if(Boolean(this.settings.reject_close_reload)===!0){this.reload_current_page()}

184

185return!1}

186,reload_current_page:function(){if(typeof cli_flush_cache!=='undefined'&&cli_flush_cache===!0){window.location.href=this.add_clear_cache_url_query()}

187else{window.location.reload(!0)}

188}

189,add_clear_cache_url_query:function(){var cli_rand=new Date().getTime()/1000;var cli_url=window.location.href;var cli_hash_arr=cli_url.split('#');var cli_urlparts=cli_hash_arr[0].split('?');if(cli_urlparts.length>=2){var cli_url_arr=cli_urlparts[1].split('&');cli_url_temp_arr=new Array();for(var cli_i=0;cli_i<cli_url_arr.length;cli_i++){var cli_temp_url_arr=cli_url_arr[cli_i].split('=');if(cli_temp_url_arr[0]=='cli_action'){}

190else{cli_url_temp_arr.push(cli_url_arr[cli_i])}

191}

192

193cli_urlparts[1]=cli_url_temp_arr.join('&');cli_url=cli_urlparts.join('?')+(cli_url_temp_arr.length>0?'&':'')+'cli_action='}

194else{cli_url=cli_hash_arr[0]+'?cli_action='}

195

196cli_url+=cli_rand;if(cli_hash_arr.length>1){cli_url+='#'+cli_hash_arr[1]}

197

198return cli_url}

199,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()}

200

201window.removeEventListener("scroll",CLI.closeOnScroll,!1)}

202}

203,displayHeader:function(){if(Boolean(this.settings.notify_animate_show)){this.bar_elm.slideDown(this.settings.animate_speed_show)}

204else{this.bar_elm.show()}

205

206this.showagain_elm.hide();if(CLI_COOKIEBAR_AS_POPUP){this.showPopupOverlay()}

207}

208,hideHeader:function(){if(Boolean(this.settings.showagain_tab)){if(Boolean(this.settings.notify_animate_show)){this.showagain_elm.slideDown(this.settings.animate_speed_show)}

209else{this.showagain_elm.show()}

210}

211else{this.showagain_elm.hide()}

212

213this.bar_elm.slideUp(this.settings.animate_speed_show);this.hidePopupOverlay()}

214,hidePopupOverlay:function(){jQuery('body').removeClass("cli-barmodal-open");jQuery(".cli-popupbar-overlay").removeClass("cli-show")}

215,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")}

216}

217}

218,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'}

219);if(this.checkifStyleAttributeExist()===!1){cli_elm.css({'padding':'25px 15px'}

220)}

221

222if(this.settings.widget_position=='left'){cli_elm.css({'left':'15px','right':'auto','bottom':'15px','top':'auto'}

223)}

224else{cli_elm.css({'left':'auto','right':'15px','bottom':'15px','top':'auto'}

225)}

226

227if(a){this.setResize()}

228}

229,barAsPopUp:function(a){if(typeof cookie_law_info_bar_as_popup==='function'){return!1}

230

231var 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'}

232).addClass('cli-bar-popup cli-modal-content');if(this.checkifStyleAttributeExist()===!1){cli_elm.css({'padding':'25px 15px'}

233)}

234

235cli_h=cli_elm.height();li_h=cli_h<200?200:cli_h;cli_elm.css({'top':'50%','margin-top':((cli_h/2)+30)*-1}

236);setTimeout(function(){cli_elm.css({'bottom':''}

237)}

238,100);if(a){this.setResize()}

239}

240,setResize:function(){var resizeTmr=null;jQuery(window).resize(function(){clearTimeout(resizeTmr);resizeTmr=setTimeout(function(){if(CLI_COOKIEBAR_AS_POPUP){CLI.barAsPopUp()}

241

242if(CLI.settings.cookie_bar_as=='widget'){CLI.barAsWidget()}

243

244CLI.configShowAgain()}

245,500)}

246)}

247,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)}

248}

249)}

250,hideCookieBarOnClose:function(){jQuery(document).on('click','.cli_cookie_close_button',function(e){e.preventDefault();var elm=jQuery(this);var button_action=elm.attr('data-cli_action');if(Cli_Data.ccpaType==='ccpa'){CLI.enableAllCookies()}

251

252CLI.accept_close()}

253)}

254,checkCategories:function(){var cliAllowedCategories=[];var cli_categories={}

255;jQuery('.cli-user-preference-checkbox').each(function(){var status=!1;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('-','_')

256if(jQuery(cli_chkbox_elm).is(':checked')){status=!0;cliAllowedCategories.push(cli_chkbox_data_id)}

257

258cli_categories[cli_chkbox_data_id_trimmed]=status}

259);CLI.allowedCategories=cliAllowedCategories}

260,cookieLawInfoRunCallBacks:function(){this.checkCategories();if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'){if("function"==typeof CookieLawInfo_Accept_Callback){CookieLawInfo_Accept_Callback()}

261}

262}

263,generateConsent:function(){var preferenceCookie=CLI_Cookie.read(CLI_PREFERNCE_COOKIE);cliConsent={}

264;if(preferenceCookie!==null){cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent)}

265

266cliConsent.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=!0}

267else{categoryVal=!1}

268

269cliConsent[cli_chkbox_data_id]=categoryVal}

270);cliConsent=JSON.stringify(cliConsent);cliConsent=window.btoa(cliConsent);CLI_Cookie.set(CLI_PREFERNCE_COOKIE,cliConsent,CLI_ACCEPT_COOKIE_EXPIRE)}

271,cookieLawInfoRunCallBacks:function(){this.checkCategories();if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'){if("function"==typeof CookieLawInfo_Accept_Callback){CookieLawInfo_Accept_Callback()}

272}

273}

274,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=jQuery.trim(styleClass.replace('cli-bar-container',''));jQuery(bar).attr('data-cli-style',styleClass)}

275}

276,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)}

277}

278,checkifStyleAttributeExist:function(){var exist=!1;var attr=this.bar_elm.attr('data-cli-style');if(typeof attr!==typeof undefined&&attr!==!1){exist=!0}

279

280return exist}

281,reviewConsent:function(){jQuery(document).on('click','.cli_manage_current_consent,.wt-cli-manage-consent-link',function(){CLI.displayHeader()}

282)}

283}

284

285var cliBlocker={blockingStatus:!0,scriptsLoaded:!1,ccpaEnabled:!1,ccpaRegionBased:!1,ccpaApplicable:!1,ccpaBarEnabled:!1,cliShowBar:!0,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)}

286else{if(this.ccpaEnabled===!0){this.ccpaApplicable=!0;if(Cli_Data.ccpaType==='ccpa'){if(this.ccpaBarEnabled!==!0){this.cliShowBar=!1;this.blockingStatus=!1}

287}

288}

289else{jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove()}

290

291callbackA(this.cliShowBar);callbackB(this.blockingStatus)}

292}

293,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")}

294else{if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){CLI.displayHeader()}

295else{CLI.hideHeader()}

296

297CLI.settingsModal.show();jQuery('.cli-modal-backdrop').show()}

298}

299,runScripts:function(blocking){blocking=typeof blocking!=='undefined'?blocking:!0;cliBlocker.blockingStatus=blocking;srcReplaceableElms=['iframe','IFRAME','EMBED','embed','OBJECT','object','IMG','img'];var genericFuncs={renderByElement:function(){cliScriptFuncs.renderScripts();cliBlocker.scriptsLoaded=!0}

300,}

301;var cliScriptFuncs={scriptsDone:function(){if(typeof Cli_Data.triggerDomRefresh!=='undefined'){if(Boolean(Cli_Data.triggerDomRefresh)===!0){var DOMContentLoadedEvent=document.createEvent('Event')

302DOMContentLoadedEvent.initEvent('DOMContentLoaded',!0,!0)

303window.document.dispatchEvent(DOMContentLoadedEvent)}

304}

305}

306,seq:function(arr,callback,index){if(typeof index==='undefined'){index=0}

307

308arr[index](function(){index++

309if(index===arr.length){callback()}

310else{cliScriptFuncs.seq(arr,callback,index)}

311}

312)}

313,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}

314

315if($script.defer){s.defer=$script.defer}

316

317if($script.src){s.onload=callback

318s.onerror=callback

319s.src=$script.src}

320else{s.textContent=$script.innerText}

321

322var 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)}

323}

324

325if(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'}

326

327if(cliBlocker.ccpaApplicable===!0){if(ccpaOptedOut===!0||CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)==null){s.type='text/plain'}

328}

329}

330else{s.type='text/javascript'}

331

332if($script.type!=s.type){if(elementPosition==='head'){document.head.appendChild(s)}

333else{document.body.appendChild(s)}

334

335if(!$script.src){callback()}

336

337$script.parentNode.removeChild($script)}

338else{callback()}

339}

340,renderScripts:function(){var $scripts=document.querySelectorAll('script[data-cli-class="cli-blocker-script"]');if($scripts.length>0){var runList=[]

341var typeAttr

342Array.prototype.forEach.call($scripts,function($script){typeAttr=$script.getAttribute('type')

343runList.push(function(callback){cliScriptFuncs.insertScript($script,callback)}

344)}

345)

346cliScriptFuncs.seq(runList,cliScriptFuncs.scriptsDone)}

347}

348}

349;genericFuncs.renderByElement()}

350,ccpaOptedOut:function(){var ccpaOptedOut=!1;var preferenceCookie=CLI_Cookie.read(CLI_PREFERNCE_COOKIE);if(preferenceCookie!==null){cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent);if(typeof cliConsent.ccpaOptout!=='undefined'){ccpaOptedOut=cliConsent.ccpaOptout}

351}

352

353return ccpaOptedOut}

354}

355

356jQuery(document).ready(function(){if(typeof cli_cookiebar_settings!='undefined'){CLI.set({settings:cli_cookiebar_settings}

357);if(CLI.js_blocking_enabled===!0){cliBlocker.checkPluginStatus(cliBlocker.cookieBar,cliBlocker.runScripts)}

358}

359}

360)