PageSourceSearch

https://www.citymd.com/themes/custom/citymd_theme/public/js/755.bundle.js?54df87

js citymd.com collected 2026-10-03 21:55:19 UTC 6,192 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[755],{79755(e,t,s){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}s.d(t,{default:()=>r});const r=function(){return e=function e(t){var s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$el=t,this.$hamburger=this.$el.querySelector(".hamburger"),this.$menuLinks=this.$el.querySelector(".global-header__links"),this.$hamburger.addEventListener("click",this.toggleHamburger.bind(this)),this.$searchBar=this.$el.querySelector("#search"),this.$searchButton=this.$el.querySelector("#search-result"),this.$desktopSearchButton=this.$el.querySelector("#search-desktop"),this.$searchForm=this.$el.querySelector("form"),this.$input=this.$el.querySelector("form input"),this.$errorMessage=this.$el.querySelector("p.error"),this.$searchButton.addEventListener("click",this.submitSearch.bind(this)),this.$desktopSearchButton.addEventListener("click",this.showSearchBar.bind(this)),this.$squares=this.$el.querySelectorAll(".square"),this.$navLinks=Array.from(this.$el.querySelector(".global-header__main").children),""!==this.$searchBar.value&&(this.$searchBar.value=""),window.performance&&window.performance.navigation.type===window.performance.navigation.TYPE_BACK_FORWARD&&(this.$searchBar.value=""),this.$input.addEventListener("input",function(){s.$errorMessage.classList.contains("show")&&s.$errorMessage.classList.remove("show")});var i=!1;window.innerWidth<1181&&(this.$squares.forEach(function(e){e.addEventListener("click",s.expandSubmenuMobile.bind(s))}),this.$navLinks.forEach(function(e){e.addEventListener("click",s.expandSubmenuMobile.bind(s))}),i=!0),window.addEventListener("resize",function(){window.innerWidth>1180?s.$menuLinks.style.height="auto":window.innerWidth<1181&&!1===i&&s.$navLinks.forEach(function(e){e.addEventListener("click",s.expandSubmenuMobile.bind(s)),i=!0})}),window.addEventListener("click",function(e){s.$searchBar.classList.contains("show")&&!document.getElementById("search-block-form").contains(e.target)&&e.target!==s.$desktopSearchButton&&s.showSearchBar(e)}),"/"===window.location.pathname&&this.dataDogTracking()},t=[{key:"toggleHamburger",value:function(e){e.target.classList.toggle("is-active"),e.preventDefault(),this.$menuLinks.classList.toggle("show"),this.$menuLinks.classList.contains("show")?(document.querySelector("main").classList.toggle("hide"),document.querySelector("footer").classList.toggle("hide"),this.$menuLinks.style.height="".concat(window.innerHeight-document.querySelector(".global-header").offsetHeight,"px")):(document.querySelector("main").classList.toggle("hide"),document.querySelector("footer").classList.toggle("hide")),e.target.classList.contains("is-active")?e.target.setAttribute("aria-expanded",!0):e.target.setAttribute("aria-expanded",!1)}},{key:"showSearchBar",value:function(e){e.preventDefault(),this.$searchBar.classList.toggle("show"),this.$searchBar.focus(),this.$searchForm.classList.toggle("show"),this.$desktopSearchButton.classList.toggle("is-active"),this.$desktopSearchButton.classList.contains("is-active")?(this.$desktopSearchButton.children[0].setAttribute("src","".concat(this.$desktopSearchButton.getAttribute("data-path-close"))),this.$desktopSearchButton.children[0].setAttribute("alt","close search")):(this.$desktopSearchButton.children[0].setAttribute("src","".concat(this.$searchButton.children[0].src)),this.$desktopSearchButton.children[0].setAttribute("alt","search - Enter a phrase or topic")),this.$searchBar.classList.contains("show")?this.$navLinks.forEach(function(e){e.style.zIndex="-1",e.tabIndex="-1",e.children[0].tabIndex="-1"}):this.$navLinks.forEach(function(e){e.style.zIndex="1",e.tabIndex="0",e.children[0].tabIndex="0"})}},{key:"submitSearch",value:function(e){var t=this;e.preventDefault(),""!==this.$searchBar.value?setTimeout(function(){t.$searchForm.submit()},250):this.$errorMessage.classList.add("show")}},{key:"expandSubmenuMobile",value:function(e){if(e.stopPropagation(),e.target instanceof HTMLAnchorElement==0){var t,s=(t=e.target.classList.contains("square")?e.target:e.target.querySelector(".square")).nextElementSibling;t.classList.toggle("is-active"),s.classList.toggle("show"),s.classList.contains("show")?s.setAttribute("aria-expanded",!0):s.setAttribute("aria-expanded",!1),s.children[0].classList.toggle("show"),this.$squares.forEac
1h(function(e){e.classList.contains("is-active")&&e!==t&&(e.classList.toggle("is-active"),e.nextElementSibling.classList.toggle("show"),e.nextElementSibling.classList.contains("show")?e.nextElementSibling.setAttribute("aria-expanded",!0):e.nextElementSibling.setAttribute("aria-expanded",!1),e.nextElementSibling.children[0].classList.toggle("show"))})}}},{key:"dataDogTracking",value:function(){var e,t,s,i,n;e=window,t=document,s="script",i="https://www.datadoghq-browser-agent.com/us1/v5/datadog-rum.js",e=e[n="DD_RUM"]=e[n]||{q:[],onReady:function(t){e.q.push(t)}},(n=t.createElement(s)).async=1,n.src=i,(i=t.getElementsByTagName(s)[0]).parentNode.insertBefore(n,i),window.DD_RUM.onReady(function(){window.DD_RUM.init({clientToken:"pub606e8d826fc6022a557bd0d427c4a88a",applicationId:"1c4206e1-69dd-4a80-aac9-e550e3a86155",site:"datadoghq.com",service:"citymd-website",env:"production",sessionSampleRate:100,sessionReplaySampleRate:0,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input"})})}}],t&&n(e.prototype,t),s&&n(e,s),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,s}()}}]);

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.