PageSourceSearch

https://theicenter.org/wp-content/plugins/notibar/build/frontend.js?ver=55c6988e9845da80f8e0

js theicenter.org collected 2026-10-02 05:37:54 UTC 13,100 bytes, 1 lines download raw bytes

1(()=>{"use strict";function t(t,e,n,o,i){const r=String(n),a=n>0&&e.some(t=>String(t)===r)||o&&e.includes("home_page")||i&&e.includes("wc_single_product");switch(t){case"all":default:return!0;case"none":return!1;case"include":return a;case"exclude":return!a}}function e(t){if("string"!=typeof t||!t)return NaN;const e=16===t.length?t+":00":t;return new Date(e).getTime()}function n(t){return String(t.getHours()).padStart(2,"0")+":"+String(t.getMinutes()).padStart(2,"0")}const o={"&":"&amp;",'"':"&quot;","'":"&#x27;","<":"&lt;",">":"&gt;"};function i(t){return String(t??"").replace(/[&"'<>]/g,t=>o[t])}const r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#x27;":"'"},a={center:"center",left:"flex-start",right:"flex-end","space-around":"space-around"},s={center:"center",left:"left",right:"right","space-around":"center"};function c(t,e,n){if(!t||!t.enabled)return"";const o=(a=t.text||"Learn more",String(a??"").replace(/&(?:amp|lt|gt|quot|#39|#x27);/gi,t=>r[t.toLowerCase()]||t));var a;const s=t.url||"#",c=t.newWindow?' target="_blank" rel="noopener noreferrer"':"",d=o.trim()?i(o):`Learn more about this notification (${n})`,l=i(e.btnBgColor||"#1919cf"),u=[`background:${l}`,`--njt-btn-bg:${l}`,`color:${i(e.btnTextColor||"#ffffff")}`,`font-weight:${i(t.fontWeight||500)}`].join(";");return`<div class="njt-nofi-button"><a href="${i(s)}"${c} class="njt-nofi-button-text" aria-label="${d}" style="${u}">`+function(t){return String(t??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(o)+"</a></div>"}const d=new Set(["fixed","absolute"]);function l(t,e){if(document.body.style.removeProperty("padding-top"),document.body.style.removeProperty("padding-bottom"),t>0){const n="bottom"===e?"padding-bottom":"padding-top";document.body.style.setProperty(n,t+"px","important")}}const u="njt-notibar-";function f(t,e){const n=document.querySelector(t);n&&Object.assign(n.style,e)}function p(){return!!document.querySelector("#wpadminbar")}function b(){const t=document.getElementById("wpadminbar");return t?t.offsetHeight:0}function m(t){const e=t.querySelector(".njt-nofi-notification-bar");return e?e.offsetHeight:0}function h(t){if(function(t){return"none"===t.style.display||!t.offsetParent}(t))return!1;const e=t.querySelector(".njt-nofi-notification-bar");if(!e)return!1;if(0===e.getBoundingClientRect().height)return!1;const n=t.querySelector(".njt-nofi-container");return!(n&&"absolute"===n.getAttribute("data-position")&&n.getBoundingClientRect().bottom<=0)&&"top"===function(t){const e=t.querySelector(".njt-nofi-container");return e&&"bottom"===e.getAttribute("data-placement")?"bottom":"top"}(t)}function y(t,e,n){return function(){let o=document.getElementById(e);if(!o){if(!document.head)return;o=document.createElement("style"),o.id=e,document.head.appendChild(o)}const i=h(t)?m(t):0;o.textContent=i>0?n(i):""}}function g(t){function e(){const e=h(t),n=e?m(t):0,o=b();f("header#main-header",{top:e?n+o+"px":""});const i=o,r=o+(e?n:0);f(".et_pb_section_0_tb_header",{top:i+"px"}),f(".et_pb_section_1_tb_header",{top:i+30+"px"}),f(".et_pb_section_0_tb_header.et_pb_sticky--top",{top:r+"px"}),f(".et_pb_section_1_tb_header.et_pb_sticky--top",{top:r+30+"px"})}return setTimeout(e,100),e}const v={Divi:g,"Divi Child Theme for CDW Studios":g,Essentials:function(t){const e=y(t,"njt-nofi-essentials-compat",t=>`.pix-header.is-scroll,\n.pix-header.pix-mobile-sticky { margin-top: ${t}px !important; }`);return setTimeout(e,100),e},Nayma:function(t){const e=t.querySelector(".njt-nofi-container");e&&"fixed"===getComputedStyle(e).position&&window.addEventListener("wheel",function(e){let n=h(t)?m(t):0;const o=t.querySelector(".njt-nofi-container-content");o&&o.classList.contains("njt-nofi-collapsed")&&(n=0),e.deltaY<0&&f("body header .fixed-header",{top:n+b()+"px"})})},Konte:function(t){const e=t.querySelector(".njt-nofi-container");e&&"fixed"===getComputedStyle(e).position&&window.addEventListener("wheel",function(e){if(!h(t))return void f("body header#masthead.header-sticky--normal",{top:document.querySelector("body header#masthead.header-sticky--normal.sticky")?b()+"px":"0"});const n=m(t);e.deltaY<0?f("body header#masthead.header-sticky--normal.sticky",{top:n+b()+"px"}):p()?f("body header#masthead.header-sticky--normal",{top:(document.querySelector("body header#masthead.header-sticky--normal.sticky")?n+b():n)+"px"}):f("body header#masthead.header-sticky--normal.sticky",{top:n+"px"})})},Enfold:function(t){const e=t.querySelector(".njt-nofi-container");e&&"absolute"===getComputedStyle(e).position&&(setTimeout(()=>{const t=document.querySelector("body header.av_header_border_disabled");t&&!t.classList.contains("av_header_transparency")&&(t.style.top=b()+"px")},500),window.addEventListener("wheel",function(e){if(e.deltaY>0||!h(t))return void f("body header.av_header_border_disabled",{top:b()+"px"});const n=!!document.querySelector("header.av_header_transparency");f("body header.av_header_border_disabled",{top:b()+(n?m(t):0)+"px"})}))},"Uptime Child":function(t){const e=t.querySelector(".njt-nofi-container");e&&"fixed"===getComputedStyle(e).position&&window.addEventListener("wheel",function(e){const n=h(t)?m(t):0;e.deltaY<0||f(".navbar",{top:"0"}
1),f(".navbar.scrolled",{top:n+"px"})})},"Themify Ultra":function(t){window.addEventListener("wheel",function(){const e=p()?b()+24:32;var n;h(t)?(n={top:e+"px"},document.querySelectorAll("#headerwrap.tf_box.tf_w, #headerwrap.tf_box.tf_w.fixed-header").forEach(t=>{Object.assign(t.style,n)})):f("#headerwrap",{top:"0px"})})},Salient:function(t){function e(){f("header#top",{top:h(t)?m(t)+"px":""})}return e(),e},"Radiate Child":function(t){function e(){h(t)?f("body .header-wrap",{top:m(t)+b()+"px"}):f("body .header-wrap",{top:""})}return setTimeout(e,100),window.addEventListener("wheel",e),e},"AccessPress Parallax Pro Child":function(t){function e(){if(!h(t))return f("header#masthead",{top:""}),void f("#main-header.menu-fix",{top:""});f("header#masthead",{top:m(t)+b()+"px"})}setTimeout(e,100);let n=0;return window.addEventListener("scroll",function(){if(!h(t))return;const e=window.scrollY||document.documentElement.scrollTop;e>=n&&f("#main-header.menu-fix",{top:m(t)+"px"}),n=e}),e},Brandy:function(t){const e=y(t,"njt-nofi-brandy-compat",t=>`.is-stickying .sticky-part { top: calc(var(--wp-adminbar-height, 0px) + ${t}px) !important; }`);return e(),e}},w="njt-nofi-collapsed";function x(t){return`njt-notibar-${t}-collapsed`}function S(t){try{return"1"===window.sessionStorage.getItem(x(t))}catch(t){return!1}}function j(t,e){const n=function(t){const e=t.style||{},n=t.content||{},o=t.behavior||{},r=i(e.bgColor||"#9af4cf"),d=i(e.textColor||"#1919cf"),l=i(Number(e.fontSize)||15),u=i(Number(e.contentWidth)||900),f=i(e.positionType||"fixed"),p=a[e.alignment]||"center",b=s[e.alignment]||"center",m=i(t.id||""),h=`<div class="njt-nofi-content njt-nofi-content-desktop" style="max-width:${u}px;justify-content:${i(p)};text-align:${i(b)};font-size:${l}px;"><div class="njt-nofi-text">${n.text||""}</div>`+c(n.button,e,"desktop")+"</div>",y=n.mobileSeparate?`<div class="njt-nofi-content njt-nofi-content-mobile" style="justify-content:${i(p)};text-align:${i(b)};font-size:${l}px;"><div class="njt-nofi-text">${n.textMobile||""}</div>`+c(n.buttonMobile||n.button,e,"mobile")+"</div>":"",g=function(t){const e='<svg class="njt-nofi-close-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 386.667 386.667" width="14" height="14" aria-hidden="true"><path d="m386.667 45.564-45.564-45.564-147.77 147.769-147.769-147.769-45.564 45.564 147.769 147.769-147.769 147.77 45.564 45.564 147.769-147.769 147.769 147.769 45.564-45.564-147.768-147.77z" fill="currentColor"/></svg>';return"close"===t?'<button class="njt-nofi-close" type="button" aria-label="Close">'+e+"</button>":"toggle"===t?'<button class="njt-nofi-toggle" type="button" aria-label="Collapse/expand">'+e+"</button>":""}(o.hideCloseButton||"close");return`<div class="njt-nofi-container-content" role="status" aria-live="polite" data-bar-id="${m}"><div class="njt-nofi-container" data-position="${f}" data-placement="top"><div class="${"njt-nofi-notification-bar"+(n.mobileSeparate?" njt-nofi-has-mobile":"")}" style="--njt-bar-bg:${r};--njt-bar-color:${d};">`+h+y+g+"</div></div></div>"}(t);return S(t.id)?n.replace('class="njt-nofi-container-content"',`class="njt-nofi-container-content ${w}"`):n}document.addEventListener("DOMContentLoaded",function(){const o=window.njtNotibarData;if(!o)return;const{bars:i=[],global:r={},ctx:a={}}=o;if(!i.length)return;let s=document.getElementById("njt-notibar-slot");s||(s=document.createElement("div"),s.id="njt-notibar-slot",s.setAttribute("role","status"),s.setAttribute("aria-live","polite"),document.body.appendChild(s)),a.device=matchMedia("(max-width:480px)").matches?"mobile":"desktop",a.dismissed=i.filter(t=>function(t){const e=u+String(t)+"=";return document.cookie.split("; ").some(t=>t.startsWith(e))}(t.id)).map(t=>String(t.id)),a.isPreview=!1;let c=function(o,i){if(!Array.isArray(o))return[];const{pageId:r=0,postId:a=0,isHome:s=!1,isSingleProduct:c=!1,device:d="desktop",dismissed:l=[],isPreview:u=!1,currentCptType:f="",currentObjectId:p=0}=i;return o.filter(o=>{if(!0!==o.enabled)return!1;const f=o.display||{};if(!u&&!(f.devices||[]).includes(d))return!1;{const e=f.pageLogic||"all";if("none"===e&&0===a)return!1;if((r>0||s||c)&&!t(e,f.pageIds||[],r,s,c))return!1;if(a>0&&!t(f.postLogic||"all",f.postIds||[],a,!1,!1))return!1}if(!u){const t=String(o.id);if(l.some(e=>String(e)===t))return!1}return!(!u&&!function(t,o){const i=t.schedule;if(!i||!i.enabled)return!0;let r,a,s;if(!0===i.useClientTime){const t=new Date;r=t.getTime(),a=t.getDay(),s=n(t)}else{r="number"==typeof o.serverNow?1e3*o.serverNow:Date.now();const t=new Date(r);a="number"==typeof o.serverWeekday?o.serverWeekday:t.getDay(),s="string"==typeof o.serverHHMM?o.serverHHMM:n(t)}if(i.startAt){const t=e(i.startAt);if(!isNaN(t)&&t>r)return!1}if(i.endAt){const t=e(i.endAt);if(!isNaN(t)&&t<=r)return!1}const c=Array.isArray(i.daysOfWeek)?i.daysOfWeek:[];if(c.length>0&&!c.includes(a))return!1;const d=i.dailyWindow||{};return!d.enabled||!d.start&&!d.end||(l=s,u=d.start||"",f=d.end||"",""===u&&""===f||(""===u?l<f:""===f?l>=u:u<=f?l>=u&&l<f:l>=u||l<f));var l,u,f}(o,i))})}(i,a);if(!c.length)return void(s.style.display="none");s.addEventListener("click",function(t){const e=t.target.closest(".
1njt-nofi-close");if(e){const t=e.closest("[data-bar-id]"),n=t?t.dataset.barId:null;return void(n&&function(t){const e=c.find(e=>String(e.id)===String(t));if(e&&function(t,e){const n=Math.max(0,Number(e)||0),o=n>0?"; Max-Age="+86400*n:"",i="https:"===location.protocol?"; Secure":"";document.cookie=`${u}${String(t)}=1; Path=/; SameSite=Lax${o}${i}`}(t,e.behavior?e.behavior.reopenAfterDays:0),c=c.filter(e=>String(e.id)!==String(t)),!c.length)return s.innerHTML="",void(s.style.display="none");s.innerHTML=j(c[0])}(n))}const n=t.target.closest(".njt-nofi-toggle");if(n){const t=n.closest("[data-bar-id]"),e=t?t.dataset.barId:null;return void(e&&function(t){const e=S(t);!function(t,e){try{const n=x(t);e?window.sessionStorage.setItem(n,"1"):window.sessionStorage.removeItem(n)}catch(t){}}(t,!e);const n=s.querySelector(`[data-bar-id="${CSS.escape(t)}"]`);n&&n.classList.toggle(w,!e)}(e))}}),s.innerHTML=j(c[0]);const f=s.querySelector(".njt-nofi-container-content");f&&f.classList.add("njt-nofi-visible"),function(t,e){const n=v[t];if("function"!=typeof n)return;const o=n(e);"function"==typeof o&&"undefined"!=typeof MutationObserver&&(new MutationObserver(o).observe(e,{childList:!0}),window.addEventListener("resize",o,{passive:!0}),window.addEventListener("scroll",function(){const t=e.querySelector(".njt-nofi-container");t&&"absolute"===t.getAttribute("data-position")&&o()},{passive:!0}))}(a.theme,s),function(t){if(!t||"undefined"==typeof ResizeObserver)return function(){};let e=null,n=null;function o(){if(!e)return void l(0);const t="bottom"===e.getAttribute("data-placement")?"bottom":"top";l(e.offsetHeight,t)}function i(t){if(n&&(n.disconnect(),n=null),e=t,!t)return void l(0);const i=t.getAttribute("data-position")||"fixed";d.has(i)?(n=new ResizeObserver(o),n.observe(t),o()):l(0)}function r(){return t.querySelector(".njt-nofi-container")}i(r());new MutationObserver(function(){const t=r();t!==e&&i(t)}).observe(t,{childList:!0,subtree:!0}),window.addEventListener("resize",function(){o()})}(s),function(t){const e=document.getElementById("wpadminbar");if(!t||!e)return;const n=window.matchMedia("(max-width: 600px)");function o(){const o=function(){const e=t.querySelector(".njt-nofi-container[data-position='fixed']");return e&&"bottom"!==e.getAttribute("data-placement")?e:null}();if(!o)return;if(!n.matches)return void o.style.removeProperty("top");const i=Math.max(0,window.scrollY),r=Math.max(0,e.offsetHeight-i);o.style.setProperty("top",r+"px")}window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o,{passive:!0}),new MutationObserver(o).observe(t,{childList:!0}),o()}(s),s.dispatchEvent(new CustomEvent("njt_nofi_bar_rendered",{bubbles:!0}))})})();

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.