let emailDisclaimers="true";function getDisclaimers(e,i){fetch(e).then(e=>e.json()).then(e=>{discJSON=e}).catch(e=>{console.log("There was an error contacting the server. Using default disclaimers."),discJSON=i}).finally(()=>{document.body.addEventListener("click",function(e){e.target&&setDisclaimerEvent(e.target,e)})})}function showDisclaimer(e,i,a){var n,t;if(discJSON)for(let e=0;e<discJSON.length;e++){if(discJSON[e].title.toLowerCase().includes(i.toLowerCase())){n=discJSON[e].message,t=discJSON[e].header||discJSON[e].title;break}discJSON[e].id==i&&(n=discJSON[e].message,t=discJSON[e].header||discJSON[e].title)}else n=banno.site.defaultDisclaimer;makeDisclaimer(n,i,t,e)}function makeDisclaimer(e,i,a,n){var t,l=document.createElement("div"),s=(l.classList.add("banno-disclaimer__container"),`
	<div class="banno-disclaimer modal fade" tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="modal--notice-title">
	 <div class="modal-dialog">
		  <div class="modal-content">`);a&&(s+=`<div class="modal-header h3">${a}</div>`),s+=`<div class="modal-body">${e}</div>
				<div class="modal-footer"><a role="button" data-handler="0" class="btn btn-cancel" data-bs-dismiss="modal" href="javascript:;">Cancel</a><a role="button" data-handler="1" class="btn btn-primary btn-confirm" data-confirm="true" href="javascript:;">Proceed<span class="sr-only" lang="en"> (Opens in a new Window)</span></a></div>
		  </div>
	 </div>
	</div>`,l&&(l.innerHTML=s,document.body.appendChild(l),a=l.querySelector(".banno-disclaimer"),t=new bootstrap.Modal(a),e=a.querySelector(".btn-confirm"),a.addEventListener("hidden.bs.modal",function(e){this.parentNode.removeChild(this);var i=document.querySelector(".modal-backdrop");i&&i.parentNode.removeChild(i),n&&n.focus()}),n&&e.addEventListener("click",function(e){e.preventDefault();var e=n.href,i=n.target;e&&(t.hide(),"_blank"===i?window.open(e):location.href=e)}),t.show())}function setDisclaimerEvent(e,i){if(e&&e.closest("a")){var e=e.closest("a"),a=e.getAttribute("href"),n=e.dataset.disclaimerId,t=n;if(a.includes("mailto:")||a.includes("http")||n)if(e.dataset.disclaimerId&&"null"!==e.dataset.disclaimerId||!a.includes("mailto:")||"email"!==e.dataset.linkTypeId||"false"!==emailDisclaimers){if(a.includes("http")||n){if("null"==n)return;t=a.includes("mailto:")?"Email":n;for(let e=0;e<banno.disclaimers.none.length;e++)if(a.includes(banno.disclaimers.none[e]))return;for(let e=0;e<banno.disclaimers.branded.length;e++)a.includes(banno.disclaimers.branded[e])&&(t="Branded")}else t=a.includes("mailto:")?"Email":n;i.preventDefault(),showDisclaimer(e,t=t||"Extern",a)}else n=null}}window.onload=function(e){var i=banno.site.name;getDisclaimers("/_/api/disclaimer",[{id:"b00114e0-07d9-11ea-9732-024264b899dc",header:"Email Disclaimer",message:"Because there is a risk that information transmitted via Internet email could fall into the wrong hands, "+i+" suggests that confidential information, such as account numbers or social security numbers, not be transmitted via email. If this information must be stated please contact "+i+' by phone or at your nearest office. Thank you. If you "Proceed", the link will open a new email message in your default email program.',title:"Email Disclaimer"},{id:"4099c44a-844d-11ec-bce0-02425bd17027",header:null,message:"You will be linking to another website not owned or operated by "+i+". "+i+" is not responsible for the availability or content of this website and does not represent either the linked website or you, should you enter into a transaction. The inclusion of any hyperlink does not imply any endorsement, investigation, verification or monitoring by "+i+" of any information in any hyperlinked site. We encourage you to review their privacy and security policies which may differ from "+i+'. If you "Proceed", the link will open in a new window. ',title:"External Link Disclaimer"},{id:"b00114e2-07d9-11ea-9732-024264b899dc",header:null,message:"You will be linking to another site managed by "+i+'. If you "Proceed", the link will open in a new window.',title:"External Link Disclaimer (branded to site)"}]),banno.disclaimers.hasOwnProperty("email")&&(emailDisclaimers=banno.disclaimers.email.alwaysShow),inCms||"true"===emailDisclaimers&&document.querySelectorAll('a[href^="mailto:"]').forEach(e=>{e.removeAttribute("data-disclaimer-id")})};