let container_height=0;let footer_height=0;let searchCategoryType='';class CookieXray{constructor(dialogue,cookies,language,banner,key){this.dialogue=dialogue;this.title=dialogue.title;this.body=dialogue.body;this.cookies_body=dialogue.cookies_body;this.preference_title=dialogue.preference_title;this.preference_body=dialogue.preference_body;this.statistics_title=dialogue.statistics_title;this.statistics_body=dialogue.statistics_body;this.marketing_title=dialogue.marketing_title;this.marketing_body=dialogue.marketing_body;this.unclassified_title=dialogue.unclassified_title;this.unclassified_body=dialogue.unclassified_body;this.template_name=dialogue.template_name;this.title_color=dialogue.title_color;this.body_text_color=dialogue.body_text_color;this.agree_btn_color=dialogue.agree_btn_color;this.disagree_btn_color=dialogue.disagree_btn_color;this.preferences_btn_color=dialogue.preferences_btn_color;this.agree_text_color=dialogue.agree_text_color;this.disagree_text_color=dialogue.disagree_text_color;this.preferences_text_color=dialogue.preferences_text_color;this.logo_bg_color=dialogue.logo_bg_color;this.banner_bg_color=dialogue.banner_bg_color;this.cookie_policy_url=dialogue.cookie_policy_url;this.cookie_consent=dialogue.cookie_consent;this.is_cookie_banner=dialogue.is_cookie_banner;this.is_cookie_policy=dialogue.is_cookie_policy;this.is_cookie_declaration_table=dialogue.is_cookie_declaration_table;this.btn_disagree_title=dialogue.btn_disagree_title;this.btn_agree_title=dialogue.btn_agree_title;this.btn_read_more_title=dialogue.btn_read_more_title;this.consent_mode=dialogue.consent_mode;this.show_once=dialogue.show_once;this.auto_accept_on_scroll=dialogue.auto_accept_on_scroll;this.consent_type=dialogue.consent_type;this.preferenceChecked=dialogue.preferences_checked;this.statisticsChecked=dialogue.statistics_checked;this.marketingChecked=dialogue.targeting_checked;this.agreement_expire=dialogue.agreement_expire;this.logo=dialogue.logo_link;this.logo_status=dialogue.logo_status;this.do_prior_consent=dialogue.do_prior_consent;this.cookies=cookies;this.language=language;this.banner=banner;this.has_badge=dialogue.has_badge||!1;this.powered_by=dialogue.powered_by;this.allow_reject=dialogue.allow_reject;this.child_privacy=dialogue.child_privacy;this.child_min_age=dialogue.child_min_age;this.save_consent_logs=dialogue.save_consent_logs;this.drill_down=dialogue.drill_down;this.cookies_present={preferences:[],statistics:[],marketing:[],};this.whitelist=[];this.scripts=[];this.scripts_pref=[];this.scripts_stats=[];this.scripts_markt=[];this.scripts_unknown=[];this.key=key;this.consent_done=!1;this.apply_google_consent=dialogue.apply_google_consent;this.apply_facebook_consent=dialogue.apply_facebook_consent;this.wcag=dialogue.wcag;this.name='SeersCMPConsent';this.userCulture="en";this.host=cx_host;this.lambda_url=lambda_url;this.logoPath=`${this.host}/local/images/logo/`;this.categorizedCookies=[];this.created_date=dialogue.domain_last_scan_at?dateFormat(dialogue.domain_last_scan_at):dateFormat(dialogue.created_at)} buildHTML(){let userCulture=document.getElementsByTagName("html")[0];this.userCulture=userCulture.hasAttribute("lang")?userCulture.getAttribute("lang"):"en";let buttonType=this.banner.button_type;if(buttonType.includes("default"))buttonType="seers-cmp-default-style-btn";else if(buttonType.includes("flat"))buttonType="seers-cmp-flat-style-btn";else if(buttonType.includes("rounded"))buttonType="seers-cmp-rounded-style-btn";else buttonType="seers-cmp-stroke-style-btn";let logo=` `;let badge=`
seers cmp badge
`;var html=``;var child_privacy_banner=`

Select Age Group

`;if(this.child_privacy==1){html+=child_privacy_banner} return html} fontSize(extension=0){if(extension>0){return(parseInt(this.banner.font_size)+extension).toString()+'px !important'} return(parseInt(this.banner.font_size)).toString()+'px !important'} cookiesGroupByProvider(){let cookies=[];let categories=Object.keys(this.cookies);categories.forEach(category=>{let groups=Object.values(this.cookies[category]).reduce((previous,item)=>{const group=(previous[item.provider]||[]);group.push(item);previous[item.provider]=group;return previous},{});cookies[category]=groups});console.log(cookies);this.categorizedCookies=cookies} calculateExpiry(expiry_date){var current_date=new Date();expiry_date=new Date(expiry_date.replace('T',' ').replace('Z','').replace(/-/g,"/"));var diff=(expiry_date.getTime()-current_date.getTime())/1000;diff/=(60*60*24);var result=0;if(diff>=365.25){result=Math.abs(Math.round(diff/365.25))}else{result=Math.abs(Math.round(diff))} return result+' days left'} createCookie(name,value,days){var expires="";if(days||days==0){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString()} const item={value:value,expiry:expires} localStorage.setItem(name,JSON.stringify(item))} addConsentTypeInCookies(value,days){var expires="";var name='SeersConsent' if(days||days==0){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString()} const item={value:value,expiry:expires} localStorage.setItem(name,JSON.stringify(item))} readCookie(storageName){const itemStr=localStorage.getItem(storageName) if(!itemStr){return null} const item=JSON.parse(itemStr);const expiryDate=item.expiry.split("=")[1];const myDate=new Date(expiryDate);const now=new Date() if(now.getTime()>myDate.getTime()){localStorage.removeItem(storageName) return null} return item.value} eraseCookie(name){this.createCookie(name,"",-1)} getRootDomain(e){var t=e;if(00){pref=arguments[0].pref;stat=arguments[0].stat;market=arguments[0].market} id('seers-cmp-cookie-policy-preference-switch').checked=pref;id('seers-cmp-cookie-policy-statistic-switch').checked=stat;id('seers-cmp-cookie-policy-marketing-switch').checked=market;if(this.apply_google_consent){this.signalGoogleConsentAPI(pref,stat,market)} if(this.apply_facebook_consent){this.signalFacebookConsentAPI(stat,market)} let value={pref,stat,market};this.addConsentTypeInCookies('agree',self.agreement_expire);this.createCookie(this.name,JSON.stringify(value),self.agreement_expire);var current_url=window.location.href;if(current_url.includes('gundersons.com')||current_url.includes('springersjewelers.com')||current_url.includes('fakier.com')||current_url.includes('sheibanjewelers.com')){var expires="";var date=new Date();date.setTime(date.getTime()+(365*24*60*60*1000));expires="; expires="+date.toGMTString();document.cookie="rlx-consent"+"="+'true'+expires+"; path=/"} this.proceedScripts(pref,stat,market);this.proceedCookies(pref,stat,market);let http_request=new HttpRequest();http_request.makeCorsRequestForConsent(this.key,value,this.save_consent_logs,this.lambda_url);return} getGTMDataLayer(){return null==window.dataLayer&&(window.dataLayer=[]),Array.isArray(window.dataLayer)?window.dataLayer:[]} signalGoogleConsentAPI(pref,stat,marketing){this.pushGoogleConsent("set","developer_id.dMWZhNz",!0),this.pushGoogleConsent("consent","update",{ad_storage:marketing?"granted":"denied",analytics_storage:stat?"granted":"denied"}),this.pushGoogleConsent("set","ads_data_redaction",!marketing)} signalFacebookConsentAPI(stat,marketing){if(stat==!0||marketing==!0){if(typeof(fbq)==="function"){fbq('consent','grant');fbq('init','1981957955446931')}else{console.log("fbq not implmented on this site")}}} pushGoogleConsent(){this.getGTMDataLayer().push(arguments)} doDisAgree(){let self=this;let value={pref:!1,stat:!1,market:!1} id('seers-cmp-cookie-policy-preference-switch').checked=value.pref;id('seers-cmp-cookie-policy-statistic-switch').checked=value.stat;id('seers-cmp-cookie-policy-marketing-switch').checked=value.market;this.addConsentTypeInCookies('disagree',self.agreement_expire);this.createCookie(this.name,JSON.stringify(value),self.agreement_expire);this.proceedScripts(!1,!1,!1);this.proceedCookies(!1,!1,!1);var current_url=window.location.href;if(current_url.includes('gundersons.com')||current_url.includes('springersjewelers.com')||current_url.includes('fakier.com')||current_url.includes('sheibanjewelers.com')){var date=new Date();var expires='';date.setTime(date.getTime()+(365*24*60*60*1000));expires="; expires="+date.toGMTString();document.cookie="rlx-consent"+"="+'false'+expires+"; path=/"} let http_request=new HttpRequest();http_request.makeCorsRequestForConsent(this.key,value,this.save_consent_logs,this.lambda_url);return} getCookie(cname){let name=cname+"=";let ca=document.cookie.split(';');for(let i=0;i{this.removeCookie(cookie.name)});!stat&&this.cookies.statistics.forEach(cookie=>{this.removeCookie(cookie.name)});!market&&this.cookies.marketing.forEach(cookie=>{this.removeCookie(cookie.name)})}} proceedScripts(pref,stat,market){let domScripts=Array.from(document.getElementsByTagName('script'));domScripts.forEach(script=>{if(script.dataset.hasOwnProperty('cookieconsent')&&script.dataset.cookieconsent==='preferences'&&pref){this.injectScript(script)} if(script.dataset.hasOwnProperty('cookieconsent')&&script.dataset.cookieconsent==='statistics'&&stat){this.injectScript(script)} if(script.dataset.hasOwnProperty('cookieconsent')&&script.dataset.cookieconsent==='marketing'&&market){this.injectScript(script)}})} injectScript(script){let newScript=document.createElement('SCRIPT');if(script.src&&script.src!==''){newScript.src=script.src} newScript.dataset.cookieconsent=script.dataset.cookieconsent;newScript.type=script.dataset.original;if(script.innerHTML!==''){newScript.innerHTML=script.innerHTML} let parent=script.parentNode;let nextSibling=script.nextElementSibling;parent.removeChild(script);parent.insertBefore(newScript,nextSibling||null)} holdCookies(){let self=this;var value='';if(this.cookies){this.cookies.preferences.forEach((cookie,key)=>{value=!1;if(value){this.cookies_present.preferences.push({name:cookie.name,value:value});this.removeCookie(cookie.name)}});this.cookies.statistics.forEach((cookie,key)=>{value=!1;if(value){this.cookies_present.statistics.push({name:cookie.name,value:value});this.removeCookie(cookie.name)}});this.cookies.marketing.forEach((cookie,key)=>{value=!1;if(value){this.cookies_present.marketing.push({name:cookie.name,value:value});this.removeCookie(cookie.name)}})} return} holdScripts(){let self=this;self.scripts=document.getElementsByTagName("script");for(var i=0;i";html+=""+this.policy+"";html+=""} if(this.cookie_consent=='generalised'||this.is_table){if(this.cookies){html+="
";html+="

Cookie Declaration

";if(this.cookies.necessary){html+="

Necessary Cookies:

";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";this.cookies.necessary.forEach(function(cookie,key){var expiry=calculateExpiry(cookie.expiry);var purpose="";if(cookie.purpose_desc){purpose=cookie.purpose_desc} html+="";html+="";html+="";html+="";html+="";html+="";html+=""});html+="";html+="
NameProviderPurposeLife SpanType
";html+="

"+cookie.slug+"

";html+="
";html+="

"+cookie.provider+"

";html+="
";html+="

"+purpose+"

";html+="
";html+="

"+expiry+"

";html+="
";html+="

"+cookie.type+"

";html+="
"} if(this.cookies.preferences){html+="

Preferences Cookies:

";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";this.cookies.preferences.forEach(function(cookie,key){var expiry=calculateExpiry(cookie.expiry);var purpose="";if(cookie.purpose_desc){purpose=cookie.purpose_desc} html+="";html+="";html+="";html+="";html+="";html+="";html+=""});html+="";html+="
NameProviderPurposeExpiryType
";html+="

"+cookie.slug+"

";html+="
";html+="

"+cookie.provider+"

";html+="
";html+="

"+purpose+"

";html+="
";html+="

"+expiry+"

";html+="
";html+="

"+cookie.type+"

";html+="
"} if(this.cookies.statistics){html+="

Statistics Cookies:

";html+="";html+="" html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";this.cookies.statistics.forEach(function(cookie,key){var expiry=calculateExpiry(cookie.expiry);var purpose="";if(cookie.purpose_desc){purpose=cookie.purpose_desc} html+="";html+="";html+="";html+="";html+="";html+="";html+=""});html+="";html+="
NameProviderPurposeExpiryType
";html+="

"+cookie.slug+"

";html+="
";html+="

"+cookie.provider+"

";html+="
";html+="

"+purpose+"

";html+="
";html+="

"+expiry+"

";html+="
";html+="

"+cookie.type+"

";html+="
"} if(this.cookies.marketing.length>0){html+="

Marketing/Targeting Cookies:

";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";this.cookies.marketing.forEach(function(cookie,key){var expiry=calculateExpiry(cookie.expiry);var purpose="";if(cookie.purpose_desc){purpose=cookie.purpose_desc} html+="";html+="";html+="";html+="";html+="";html+="";html+=""});html+="";html+="
NameProviderPurposeLife SpanType
";html+="

"+cookie.slug+"

";html+="
";html+="

"+cookie.provider+"

";html+="
";html+="

"+purpose+"

";html+="
";html+="

"+expiry+"

";html+="
";html+="

"+cookie.type+"

";html+="
"} if(this.cookies.non_categorize){html+="

Unclassified Cookies:

";html+="";html+="" html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";this.cookies.non_categorize.forEach(function(cookie,key){var expiry=calculateExpiry(cookie.expiry);var purpose="";if(cookie.purpose_desc){purpose=cookie.purpose_desc} html+="";html+="";html+="";html+="";html+="";html+="";html+=""});html+="";html+="
NameProviderPurposeExpiryType
";html+="

"+cookie.slug+"

";html+="
";html+="

"+cookie.provider+"

";html+="
";html+="

"+purpose+"

";html+="
";html+="

"+expiry+"

";html+="
";html+="

"+cookie.type+"

";html+="
"} html+="
"}} return html}} class HttpRequest{createCORSRequest(method,url){var xhr=new XMLHttpRequest();if("withCredentials" in xhr){xhr.open(method,url,!0)}else if(typeof XDomainRequest!="undefined"){xhr=new XDomainRequest();xhr.open(method,url)}else{xhr=null} return xhr} async makeCorsRequest(key){let self=this;var current_url=window.location.href;var json_data=getApiData;if(json_data.hasOwnProperty('reload')&&json_data.reload===!0){window.location.reload();return} if(!json_data.eligible){return} var dialogue=json_data.dialogue;var banner=json_data.banner;var language=banner_lang;if(!language){language=language_obj} if(dialogue.cookie_consent=='generalised'||(dialogue.cookie_consent=='specific'&&(dialogue.is_cookie_banner==!0||dialogue.is_cookie_policy==!0||dialogue.is_cookie_declaration_table==!0))){if(dialogue.cookie_policy_url==current_url&&(dialogue.cookie_consent=='generalised'||(dialogue.cookie_consent=='specific'&&(dialogue.is_cookie_policy==!0||dialogue.is_cookie_declaration_table==!0)))){}else{if(dialogue.cookie_consent=='generalised'||(dialogue.cookie_consent=='specific'&&dialogue.is_cookie_banner==!0)){var cookies=json_data.cookies;let cx=new CookieXray(dialogue,cookies,language,banner,key);cx.cookiesGroupByProvider();cx.holdScripts();if(current_url.includes('gundersons.com')||current_url.includes('springersjewelers.com')||current_url.includes('fakier.com')||current_url.includes('sheibanjewelers.com')){var date=new Date();var expires="";date.setTime(date.getTime()+(365*24*60*60*1000));expires="; expires="+date.toGMTString();let rlx_cookie=cx.getCookie("rlx-consent");if(rlx_cookie===""){document.cookie="rlx-consent"+"="+"false"+expires+"; path=/"}} let cookie_val=cx.readCookie(cx.name);if(cookie_val){cookie_val=JSON.parse(cookie_val);cx.consent_done=!0;cx.preferenceChecked=cookie_val.pref;cx.statisticsChecked=cookie_val.stat;cx.marketingChecked=cookie_val.market;cx.proceedScripts(cookie_val.pref,cookie_val.stat,cookie_val.market);cx.proceedCookies(cookie_val.pref,cookie_val.stat,cookie_val.market);if(cx.apply_google_consent){cx.signalGoogleConsentAPI(cookie_val.pref,cookie_val.stat,cookie_val.market)}}else{cx.holdCookies()} var elem=cx.buildHTML();let body=document.getElementsByTagName("body")[0];if(void 0===body){setTimeout(function(){document.body.insertAdjacentHTML('beforeend',elem);cx.child_privacy==1?checkChildConsent(cx):initEvents(cx)},2000)}else{document.body.insertAdjacentHTML('beforeend',elem);cx.child_privacy==1?checkChildConsent(cx):initEvents(cx)}}}}} makeCorsRequestForPolicy(key,cookie_consent,is_policy,is_table){let self=this;var url=cx_host+'/api/getPolicy';var params="key="+key;var xhr=this.createCORSRequest('POST',url);if(!xhr){alert('CORS not supported');return} xhr.onload=function(){var text=xhr.responseText;var json_data=JSON.parse(text);var policy=json_data.policy;var cookies=json_data.cookies;var design=json_data.policy_design;if(policy==null){is_policy=!1} if(design=='default'){var styles='.cx-policy-container,.cx-table-container{width:1024px;\n'+' margin: 0 auto;\n'+' padding:0 15px;\n'+' border: 1px solid #666;\n'+' margin-bottom: 50px;\n'+'}\n'+'.cx-title{\n'+' font-size:26px;\n'+' font-weight: bold;\n'+' color: #fff !important;\n'+' background: #41a2db;\n'+' padding:32px 36px 32px;\n'+' margin:15px 0 30px;\n'+'}\n'+'.cx-policy-container p{\n'+' color: #666;\n'+'}\n'+'\n'+'.cx-policy-container>.cx-headings{\n'+' font-size: 23px;\n'+' font-weight: bold;\n'+' color: #666;\n'+' margin-bottom: 0;\n'+'}\n'+'.cx-table-container>p.cx-declaration-title{\n'+' color: #666;\n'+'}\n'+'\n'+'.cx-policy-container>ul li{\n'+' color: #666 !important;\n'+' margin-bottom: 0;\n'+'}\n'+'.cx-desc{\n'+' text-align: center;\n'+'}\n'+'.cx-desc .cx-domain,.cx-desc .cx-company{\n'+' font-weight: bold;\n'+'}\n'+'.cx-policy-container ul ul li{\n'+' list-style:square;\n'+'}\n'+'.cx-table-table{\n'+' border: 1px solid rgb(211, 211, 211);\n'+'}\n'+'.cx-table-container>table.cx-table-table>thead.cx-table-head {\n'+' background: none !important;\n'+' line-height: 30px;\n'+' color: #000 !important;\n'+'}\n'+'.cx-table-container>table.cx-table-table {\n'+' border-collapse: collapse !important;\n'+'}\n'+'.cx-table-container>table {\n'+' border-collapse: collapse;\n'+'}\n'+'\n'+'.cx-table-container>table,.cx-table-container>table th {\n'+' border: 1px solid rgb(211, 211, 211);\n'+' padding:0px 0px 0px 10px;\n'+'}\n'+'.cx-table-container>table,.cx-table-container>table td {\n'+' border: 1px solid rgb(211, 211, 211);\n'+' border-collapse: collapse;\n'+' padding:0px 0px 0px 10px;\n'+'}\n'+'.cx-table-table>.cx-table-head>.cx-table-heading{\n'+' line-height: 30px;\n'+'}\n'+'.cx-table-table>.cx-table-head>.cx-table-heading{\n'+' line-height: 30px;\n'+'}\n'+'.cx-table-container>h3.cx-category-heading {\n'+' font-size: 1.4em !important;\n'+' text-decoration: none !important;\n'+' color: #666 !important;\n'+'}\n'+'.cx-table-container>table.cx-table-table>tbody.cx-table-body{\n'+' text-align: left !important;\n'+'}\n'+'.cx-policy-container ul li{\n'+' list-style: none;\n'+'}\n'+'.cx-table-heading p{\n'+' margin-bottom: 0;\n'+'}\n'+'.cx-policy-container .cx-desc{\n'+' font-size: 18px;\n'+'}\n'+'@media all and (max-width:600px){\n'+' .cx-table-container>table.cx-table-table{\n'+' width: 100%;\n'+' display:block;\n'+' border: none;\n'+' overflow-x: auto;\n'+' }\n'+'}\n'+'@media all and (max-width:1199px){\n'+' .cx-policy-container, .cx-table-container{\n'+' width: 100%;\n'+' }\n'+'}';loadStyleForDefaultPolicyPageDesign(styles)} let cx=new CookieXrayPolicy(policy,cookies,cookie_consent,is_policy,is_table);var policy_div=document.getElementById('seers-cookie-consent');if(policy_div!==null){var newEl=document.createElement('div');newEl.innerHTML=cx.buildHTML();policy_div.parentNode.replaceChild(newEl,policy_div);return} var footer=document.getElementsByTagName('footer');if(footer[0]){var elem=cx.buildHTML();footer[0].insertAdjacentHTML('beforebegin',elem)}else{document.body.innerHTML+=cx.buildHTML()}};xhr.onerror=function(){alert('Woops, there was an error making the request.')};xhr.onreadystatechange=(e)=>{} xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhr.send(params)} makeCorsRequestForConsent(key,value,saveConsentLog,lambda_url){var url=lambda_url;var webUrl=window.location.href;var data=JSON.stringify({key:key,permissions:value,saveConsentLogs:saveConsentLog,webUrl:webUrl});var xhr=this.createCORSRequest("POST",url);if(!xhr){alert("CORS not supported");return} xhr.onload=function(){var text=xhr.responseText;var json_data=JSON.parse(text)};xhr.onerror=function(){console.error("Woops, there was an error making the request.")};xhr.onreadystatechange=(e)=>{};xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhr.send(data)}} function id(target){return document.getElementById(target)} function toggleBadgeDisplay(hasBadge,attr){hasBadge&&id("SeersCMPBannerBadgeIcon")&&(id("SeersCMPBannerBadgeIcon").style.display=attr)} function checkBtnSize(){Array.from(document.getElementsByClassName("seers-cmp-cookie-policy-btn-hol")).forEach((elem)=>{let width=elem.clientWidth;if(width>381){elem.classList.add("seers-cmp-cookie-policy-btn-hol-wrap")}})} function checkChildConsent(cx){if(cx.child_privacy==1){id("seers-child-privacy-banner").style.display="block";id("seers-cmp-cookie-data-hol").style.display="none";Array.from(document.getElementsByClassName("seers-child-privacy-box-column")).forEach((selectedAge)=>{selectedAge.addEventListener("click",function(e){let age=e.currentTarget.getAttribute("data-age");if(age<=cx.child_min_age&&age!='18'){id("seers-child-privacy-banner-age-verification").style.display="none";id("seers-child-privacy-banner-parent-consent").style.display="block";id("seers-child-privacy-banner-age-restriction").style.display="none"}else{initEvents(cx)}})});Array.from(document.getElementsByClassName("parent-consent-btn")).forEach((selectedAge)=>{selectedAge.addEventListener("click",function(e){let res=e.currentTarget.getAttribute("data-consent");if(res=="true"){initEvents(cx)}else{id("seers-child-privacy-banner-parent-consent").style.display="none";id("seers-child-privacy-banner-age-restriction").style.display="block";let siteBody=document.getElementsByTagName("html")[0] siteBody.style.pointerEvents="none";siteBody.style.overflow="hidden"}})})}else{initEvents(cx)}} function initEvents(cx){toggleBadgeDisplay(cx.has_badge,"none");id("seers-child-privacy-banner")&&(id("seers-child-privacy-banner").style.display="none");id("seers-cmp-cookie-data-hol").style.display="flex";if(cx.consent_done){toggleBadgeDisplay(cx.has_badge,"block");id("SeersCMPBannerMainBar")&&(id("SeersCMPBannerMainBar").style.display="none")} id("SeersCMPBannerCookieSearchContainer").style.display="none";id("SeersCMPBannerPreferenceButton").addEventListener("click",function(e){id("seers-cmp-cookie-policy-default-banner-content").classList.add("seers-cmp-cookie-banner-active");id("seers-cmp-overlay").classList.add("seers-cmp-overlay-active")});id("SeersCMPBannerSettingCloseButton").addEventListener("click",function(e){id("seers-cmp-cookie-policy-default-banner-content").classList.remove("seers-cmp-cookie-banner-active");id("seers-cmp-overlay").classList.remove("seers-cmp-overlay-active")});Array.from(document.getElementsByClassName("seers-cmp-cookie-policy-detail-btn")).forEach(elem=>{elem.addEventListener("click",(e)=>{id("SeersCMPBannerCookieCategoryContainer").style.display="none";id("SeersCMPBannerCookieSearchContainer").style.display="block";let category=elem.dataset.id;searchCategoryType=elem.dataset.id;if(cx.cookies){console.log('category ------>',category);console.log('cx.categorizedCookies ------>',cx.categorizedCookies[category]);generateHTMLForCookies(category,cx.categorizedCookies[category],cx)}})});checkBtnSize();id("SeersCMPBannerCookieSearchBackButton").addEventListener("click",function(){id("SeersCMPBannerCookieCategoryContainer").style.display="block";id("SeersCMPBannerCookieSearchContainer").style.display="none"});Array.from(document.getElementsByClassName("seers-cmp-agree-button")).forEach(agreeButton=>{agreeButton.addEventListener("click",function(){cx.proceedConsent("seers-cx-agree");id("seers-cmp-cookie-policy-default-banner-content").classList.remove("seers-cmp-cookie-banner-active");id("seers-cmp-overlay").classList.remove("seers-cmp-overlay-active");id("SeersCMPBannerMainBar").style.display="none";toggleBadgeDisplay(cx.has_badge,"block")})});Array.from(document.getElementsByClassName("seers-cmp-disagree-button")).forEach(disagreeButton=>{disagreeButton.addEventListener("click",function(){cx.proceedConsent("seers-cx-disagree");id("seers-cmp-cookie-policy-default-banner-content").classList.remove("seers-cmp-cookie-banner-active");id("seers-cmp-overlay").classList.remove("seers-cmp-overlay-active");id("SeersCMPBannerMainBar").style.display="none";toggleBadgeDisplay(cx.has_badge,"block")})});id("SeersCMPBannerCookieSearchButton").addEventListener("click",(e)=>{var searchKey=id("SeersCMPBannerCookieSearchInput").value;if(searchKey===''){generateHTMLForCookies(searchCategoryType,cx.categorizedCookies[searchCategoryType],cx);return} if(cx.cookies[searchCategoryType]){cookies=cx.cookies[searchCategoryType].filter(cookie=>cookie.name.includes(searchKey)||cookie.provider.includes(searchKey)||cookie.type.includes(searchKey));cx.categorizedCookies=cookies} let search='search';generateHTMLForCookies(searchCategoryType,cookies,cx,search)});id("SeersCMPBannerCookieSearchInput").addEventListener("keyup",(e)=>{e.keyCode===13&&id("SeersCMPBannerCookieSearchButton").click()});id("SeersCMPBannerBadgeIcon")&&id("SeersCMPBannerBadgeIcon").addEventListener("click",(e)=>{toggleBadgeDisplay(cx.has_badge,"none");id("SeersCMPBannerMainBar")&&(id("SeersCMPBannerMainBar").style.display="flex");checkBtnSize()});id("SeersCMPBannerSavePreferences").addEventListener("click",(e)=>{cx.savePreferences();id("seers-cmp-cookie-policy-default-banner-content").classList.remove("seers-cmp-cookie-banner-active");id("seers-cmp-overlay").classList.remove("seers-cmp-overlay-active");id("SeersCMPBannerMainBar").style.display="none";toggleBadgeDisplay(cx.has_badge,"block")})} function generateHTMLForCookiesSearch(category,vendors,cx){let cookieHTML=``;let i=1;for(let vendor in vendors){let cookies=vendors[vendor];cookieHTML+=` `} document.getElementById('SeersCMPBannerCookiesListTab').innerHTML=cookieHTML} function generateHTMLForCookies(category,vendors,cx,search=''){if(vendors.length==0){document.getElementById('SeersCMPBannerCookiesListTab').innerHTML=`
No cookies found
`;return} if(search=='search'){generateHTMLForCookiesSearch(category,vendors,cx);return} let cookieHTML=``;let i=1;for(let vendor in vendors){let cookies=vendors[vendor];cookieHTML+=` `} document.getElementById('SeersCMPBannerCookiesListTab').innerHTML=cookieHTML} function dateFormat(date){date=date.replace('T',' ').replace('Z','');var today=new Date(date.replace(/-/g,"/"));var dd=String(today.getDate()).padStart(2,'0');var mm=today.toLocaleString('default',{month:'short'}) var yyyy=today.getFullYear();return dd+' '+mm+', '+yyyy} function loadStyleForDefaultPolicyPageDesign(styles){var css=document.createElement('style');css.type='text/css';if(css.styleSheet) css.styleSheet.cssText=styles;else css.appendChild(document.createTextNode(styles));document.getElementsByTagName("head")[0].appendChild(css);return}(function(){if(document.body!=null){let divi_theme_found=document.getElementById("et-bfb-app-frame")||document.getElementById("et-core-frame")||document.getElementById("et-fb-app");let url=window.location.href;if(!divi_theme_found&&!url.includes("wp-admin")){let http_request=new HttpRequest();http_request.makeCorsRequest(key)}}else{var body_found=0;let observer=new MutationObserver((mutations)=>{mutations.forEach((mutation)=>{if(!mutation.addedNodes)return for(let i=0;i