PageSourceSearch

https://www.calgaryzoo.com/wp-content/themes/theme/dist/assets/websales.d8259dd9.js?ver=7.1.2

js calgaryzoo.com collected 2026-09-25 14:07:21 UTC 3,281 bytes, 1 lines download raw bytes

1function g(){import("data:text/javascript,")}const d="animate-in",h="animate-ready",u=a=>a.getAttribute("aria-controls")||a.getAttribute("aria-owns"),f=a=>document.getElementById(a),m=a=>document.documentElement.classList.toggle("no-scroll",a);function l(a,e,t,s){s!==null&&s.preventDefault();const o=t.closest(".header"),r=o?o.querySelector(".header__mobile-top-bar"):null,n=r&&getComputedStyle(r).display==="none";a?(e.setAttribute("aria-expanded","true"),e.setAttribute("aria-busy","true"),t.classList.add(h),t.setAttribute("aria-busy","true"),setTimeout(()=>{e.classList.add(d),e.setAttribute("aria-busy","false"),t.classList.add(d),t.setAttribute("aria-busy","false"),t.id==="header-search-bar"?n&&t.querySelector("#header-search").focus():t.focus()},5)):(e.classList.remove(d),e.setAttribute("aria-busy","true"),t.classList.remove(d),t.setAttribute("aria-busy","true"),setTimeout(()=>{e.setAttribute("aria-expanded","false"),e.setAttribute("aria-busy","false"),t.classList.remove(h),t.setAttribute("aria-busy","false")},300))}function b(){const a=document.querySelector(".header__mobile-top-bar");return!!(a&&a.offsetParent)}window.addEventListener("DOMContentLoaded",()=>{[...document.querySelectorAll(".header [aria-expanded]")].forEach((e,t,s)=>{const o=u(e),r=f(o),n=document.querySelector(`[data-close="${o}"]`);!r||(e.addEventListener("click",i=>{s.forEach(c=>{const p=f(u(c));e.classList.contains("header__dropdown-button")&&c.classList.contains("header__mobile-menu-button")||e!==c&&r===p||(e===c?l(e.ariaExpanded==="false",e,r,i):l(!1,c,p,i))});const w=e.classList.contains("header__mobile-menu-button"),y=e.classList.contains("header__mobile-notification-button");(w||y)&&(m(e.ariaExpanded==="true"),setTimeout(()=>{m(e.ariaExpanded==="true")},300))}),window.addEventListener("keydown",i=>{(i.key==="Escape"||i.keycode==="27")&&(e.classList.contains(d)&&(l(!1,e,r,i),i.preventDefault(),e.focus()),m(!1))}),n&&n.addEventListener("click",i=>{l(!1,e,r,i)}))}),document.addEventListener("click",e=>{if(b())return;const t=document.querySelector(".header .animate-in[aria-expanded]"),s=t?f(u(t)):null;!t||!!e.target.closest(".header [aria-expanded]")||!!e.target.closest(`.header .${d}`)||l(!1,t,s,null)},!0)});window.addEventListener("load",()=>{const a=[...document.querySelectorAll("[data-date-control-type]")],e=[...document.querySelectorAll(".header__dropdown-panel")],t=Math.floor(Date.now()/1e3);a.forEach(s=>{const o=s.getAttribute("data-date-control-type"),n=parseInt(s.getAttribute("data-date-control-time"),10)-t;let i=!1;o==="show_after"?i=n<=0:o==="show_before"&&(i=n>0),i&&s.setAttribute("data-date-control-hidden","0"),o&&s.setAttribute("data-date-control-info",n/3600)}),e.forEach(s=>{const o=[...s.querySelectorAll(".header__dropdown-column")];let r=0;o.forEach(n=>{n.getAttribute("data-date-control-hidden")!=="1"&&(r+=1),r>3&&n.remove()})})});window.addEventListener("DOMContentLoaded",()=>{const a=document.querySelector(".footer__form-button-active");a&&(a.getAttribute("onclick")||a.addEventListener("click",e=>{e.preventDefault(),window.wfGadget!==void 0&&window.wfGadget.openLightbox!==void 0?window.wfGadget.openLightbox():console.error("Newsletter signup clicked, but window.wfGadget does not exist yet.")}))});export{g as __vite_legacy_guard};

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.