PageSourceSearch

https://www.visitmesquitetx.com/wp-content/themes/propel/dist/acf-blocks/primary-navigation.js?ver=1789998431

js visitmesquitetx.com collected 2026-09-28 23:23:49 UTC 26,041 bytes, 2 lines download raw bytes

vendor: 8,648 bytes, line 1
1(()=>{var t={6337:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=r(e);n;)n=r(e=n.ownerDocument);return e}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?d(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,i=null,s=null;this.POLL_INTERVAL?i=n.setInterval(o,this.POLL_INTERVAL):(c(n,"resize",o,!0),c(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(i&&t.clearInterval(i),u(t,"resize",o,!0)),u(e,"scroll",o,!0),s&&s.disconnect()}));var a=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=a){var l=r(e);l&&this._monitorIntersections(l.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||t,i=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var i=r(n);if((n=i&&i.ownerDocument)==e)return!0}return!1}));if(!i){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),e!=o){var c=r(e);c&&this._unmonitorIntersections(c.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var r=o.element,s=a(r),c=this._rootContainsTarget(r),u=o.entry,l=t&&c&&this._computeTargetAndRootIntersection(r,s,e),d=null;this._rootContainsTarget(r)?n&&!this.root||(d=e):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var m=o.entry=new i({time:window.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:d,intersectionRect:l});u?t&&c?this._hasCrossedThreshold(u,m)&&this._queuedEntries.push(m):u&&u.isIntersecting&&this._queuedEntries.push(m):this._queuedEntries.push(m)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,r,i){if("none"!=window.getComputedStyle(e).display){for(var s,c,u,l,m,h,f,v,y=r,g=p(e),b=!1;!b&&g;){var w=null,E=1==g.nodeType?window.getComputedStyle(g):{};if("none"==E.display)return null;if(g==this.root||9==g.nodeType)if(b=!0,g==this.root||g==t)n&&!this.root?!o||0==o.width&&0==o.height?(g=null,w=null,y=null):w=o:w=i;else{var _=p(g),L=_&&a(_),T=_&&this._computeTargetAndRootIntersection(_,L,i);L&&T?(g=_,w=d(L,T)):(g=null,y=null)}else{var k=g.ownerDocument;g!=k.body&&g!=k.documentElement&&"visible"!=E.overflow&&(w=a(g))}if(w&&(s=w,c=y,void 0,void 0,void 0,void 0,void 0,void 0,u=Math.max(s.top,c.top),l=Math.min(s.bottom,c.bottom),m=Math.max(s.left,c.left),v=l-u,y=(f=(h=Math.min(s.right,c.right))-m)>=0&&v>=0&&{top:u,bottom:l,left:m,right:h,width:f,height:v}||null),!y)break;g=g&&p(g)}return y}},s.prototype._getRootRect=function(){var e;if(this.root&&!h(this.root))e=a(this.root);else{var n=h(this.root)?this.root:t,o=n.documentElement,r=n.body;e={top:0,left:0,right:o.clientWidth||r.clientWidth,width:o.clientWidth||r.clientWidth,bottom:o.clientHeight||r.clientHeight,height:o.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var r=0;r<this.thresholds.length;r++){var i=this.thresholds[r];if(i==n||i==o||i<n!=i<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||m(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return m(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=i}function r(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function i(t){this.time=t.time,this.target=t.target,this.rootBounds=l(t.rootBounds),this.boundingClientRect=l(t.boundingClientRect),this.intersectionRect=l(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n,o,r,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType&&9!=i.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,r=null,function(){r||(r=setTimeout((function(){n(),r=null}),o))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function c(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function u(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,n)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function d(t,e){var n=e.top-t.top,o=e.left-t.left;
1return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function m(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?r(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function h(t){return t&&9===t.nodeType}}()},2705:(t,e,n)=>{var o=n(5639).Symbol;t.exports=o},4239:(t,e,n)=>{var o=n(2705),r=n(9607),i=n(2333),s=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?r(t):i(t)}},7561:(t,e,n)=>{var o=n(7990),r=/^\s+/;t.exports=function(t){return t?t.slice(0,o(t)+1).replace(r,""):t}},1957:(t,e,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=o},9607:(t,e,n)=>{var o=n(2705),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,c=o?o.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var o=!0}catch(t){}var r=s.call(t);return o&&(e?t[c]=n:delete t[c]),r}},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:(t,e,n)=>{var o=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},3279:(t,e,n)=>{var o=n(3218),r=n(7771),i=n(4841),s=Math.max,c=Math.min;t.exports=function(t,e,n){var u,a,l,d,m,p,h=0,f=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=u,o=a;return u=a=void 0,h=e,d=t.apply(o,n)}function b(t){var n=t-p;return void 0===p||n>=e||n<0||v&&t-h>=l}function w(){var t=r();if(b(t))return E(t);m=setTimeout(w,function(t){var n=e-(t-p);return v?c(n,l-(t-h)):n}(t))}function E(t){return m=void 0,y&&u?g(t):(u=a=void 0,d)}function _(){var t=r(),n=b(t);if(u=arguments,a=this,p=t,n){if(void 0===m)return function(t){return h=t,m=setTimeout(w,e),f?g(t):d}(p);if(v)return clearTimeout(m),m=setTimeout(w,e),g(p)}return void 0===m&&(m=setTimeout(w,e)),d}return e=i(e)||0,o(n)&&(f=!!n.leading,l=(v="maxWait"in n)?s(i(n.maxWait)||0,e):l,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==m&&clearTimeout(m),h=0,u=p=a=m=void 0},_.flush=function(){return void 0===m?d:E(r())},_}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3448:(t,e,n)=>{var o=n(4239),r=n(7005);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==o(t)}},7771:(t,e,n)=>{var o=n(5639);t.exports=function(){return o.Date.now()}},3493:(t,e,n)=>{var o=n(3279),r=n(3218);t.exports=function(t,e,n){var i=!0,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),o(t,e,{leading:i,maxWait:e,trailing:s})}},4841:(t,e,n)=>{var o=n(7561),r=n(3218),i=n(3448),s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,a=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var n=c.test(t);return n||u.test(t)?a(t.slice(2),n?2:8):s.test(t)?NaN:+t}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=!1;if("undefined"!=typeof window){var e={get passive(){t=!0}};window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),r=[],i=!1,s=-1,c=void 0,u=void 0,a=void 0,l=function(t){return r.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},d=function(t){var e=t||window.event;return!!l(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)},m=function(){o&&(r.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),i&&(document.removeEventListener("touchmove",d,t?{passive:!1}:void 0),i=!1),s=-1),o?function(){if(void 0!==u){var t=-parseInt(document.body.style.top,10),e=-parseInt(document.body.style.left,10);document.body.style.position=u.position,document.body.style.top=u.top,document.body.style.left=u.left,window.scrollTo(e,t),u=void 0}}():(void 0!==a&&(document.body.style.paddingRight=a,a=void 0),void 0!==c&&(document.body.style.overflow=c,c=void 0)),r=[]};function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}n(6337);var h=function(t,e,n){var o,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("string"==typeof t)o=document.querySelectorAll(t);else{if("object"!==p(t))return;o=t.length?t:[t]}var i=Object.assign({},{root:null,rootMargin:"0px 0px 0px 0px",threshold:[0]},r),s=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting?e(t.target):n(t.target)}))}),i);return o.forEach((function(t){s.observe(t)})),s},f=document.querySelector(".block-primary-nav__hamburger"),v=document.querySelector(".block-primary-nav__menu"),y=document.querySelector(".block-primary-nav__menu-content"),g=document.querySelectorAll(".block-primary-nav-item"),b=document.querySelectorAll(".block-primary-nav-item > .wp-block-button:not(:only-child) .wp-block-button__link"),w=document.querySelectorAll(".block-primary-nav-item > .wp-block-button.is-style-text .wp-block-button__link"),E=document.querySelectorAll(".block-primary-nav-mega-menu__inner"),_=document.querySelectorAll(".block-primary-nav-mega-menu__back-button"),L=document.querySelector(".block-primary-nav__search"),T=document.querySelector(".block-primary-nav__language"),k=document.querySelectorAll(".block-primary-nav__menu-content, .block-primary-nav-mega-menu__inner, .block-primary-nav-mega-menu__content"),x=document.querySelector(".block-primary-nav__language-mobile"),I=document.querySelector(".wp-block-button__popup.block-primary-nav__language-mobile-button"),S=window.innerWidth,O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&t.preventDefault(),f.classList.toggle("active"),f.classList.contains("active")?(A(),document.body.classList.remove("search-open"),document.body.classList.add("primary-menu-open"),document.addEventListener("keydown",D),document.addEventListener("click",D),j()):(document.body.classList.remove("primary-menu-open"),A(!0),document.removeEventListener("keydown",D),document.removeEventListener("click",D),m())},R=function(t){t.preventDefault(),t.currentTarget.parentElement.classList.toggle("active"),A(!1,t.currentTarget),t.currentTarget.parentElement.classList.contains("active")?(document.body.classList.add("primary-submenu-open"),document.addEventListener("keydown",D),document.addEventListener("click",D),C(t.currentTarget),j(),t.currentTarget.classList.contains("block-primary-nav__search-button")&&(document.body.classList.add("search-open"),f.classList.remove("active"),document.body.classList.remove("primary-menu-open")),t.currentTarget.classList.contains("block-primary-nav__language-button")&&(document.body.classList.add("language-open"),f.classList.remove("active"),document.body.classList.remove("primary-menu-open")),setTimeout((function(){document.body.classList.add("primary-submenu-visible")}),400)):(document.body.classList.remove("primary-submenu-open"),document.body.classList.remove("primary-submenu-visible"),document.removeEventListener("keydown",D),document.removeEventListener("click",D),C(),m(
1),t.currentTarget.classList.contains("block-primary-nav__search-button")&&document.body.classList.remove("search-open"),t.currentTarget.classList.contains("block-primary-nav__language-button")&&document.body.classList.remove("language-open"))},M=function(t){t.classList.add("hidden")},P=function(t){t.classList.remove("hidden")},A=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;b.forEach((function(t){e&&e.parentElement.classList.contains("active")&&e.parentElement===t.parentElement||t.parentElement.classList.remove("active")})),null!==e&&e.parentElement.classList.contains("active")||(!0===t?setTimeout((function(){document.body.classList.remove("primary-submenu-open")}),400):document.body.classList.remove("primary-submenu-open"))},W=function(t){t.preventDefault(),x.classList.toggle("active"),t.currentTarget.closest(".block-primary-nav-item-popup").classList.contains("active")?(document.addEventListener("keydown",q),document.addEventListener("click",q)):(document.removeEventListener("keydown",q),document.removeEventListener("click",q)),t.stopPropagation()},q=function t(){x.classList.remove("active"),document.removeEventListener("keydown",t),document.removeEventListener("click",t)},D=function t(e){(void 0===e.key&&(!y.contains(e.target)&&!L.contains(e.target)&&!T.contains(e.target)&&!f.contains(e.target)||window.innerWidth>=992&&e.target.classList.contains("block-primary-nav-mega-menu"))||"Escape"===e.key||window.innerWidth>=992&&e.target.classList.contains("block-primary-nav-mega-menu__inner"))&&(window.innerWidth>=992?(document.body.classList.remove("primary-submenu-visible"),A(),document.removeEventListener("keydown",t),document.removeEventListener("click",t),C(),m()):(f.classList.add("active"),O()))},C=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(window.innerWidth<992)){var n,o=!1;if(e&&e.type&&"button"!==e.type){o=!0;var r=e.type;e=e.target,"mouseover"===r?(e.removeEventListener("mouseover",t),e.addEventListener("mouseout",t)):"mouseout"===r&&(e.removeEventListener("mouseout",t),e.addEventListener("mouseover",t),e=null)}if(!e||e.classList.contains("block-primary-nav__search-button")||e.parentElement.classList.contains("is-style-primary")||e.parentElement.classList.contains("is-style-secondary")?document.documentElement.style.removeProperty("--menuUnderlineWidth"):(document.documentElement.style.getPropertyValue("--menuUnderlinePosition")||(document.body.classList.add("menu-underline-init"),document.documentElement.style.removeProperty("--menuUnderlineWidth")),document.documentElement.style.setProperty("--menuUnderlinePosition","".concat(e.parentElement.offsetLeft/16,"rem")),setTimeout((function(){document.body.classList.remove("menu-underline-init"),document.documentElement.style.setProperty("--menuUnderlineWidth","".concat(e.offsetWidth-parseInt(window.getComputedStyle(e).getPropertyValue("padding-right"))))}),1)),!0!==o)if(e&&(n=e.parentElement.parentElement.querySelector(".block-primary-nav-mega-menu__content")),n){document.documentElement.style.getPropertyValue("--openMenuLeft")||(document.body.classList.add("mega-menu-init"),document.documentElement.style.removeProperty("--openMenuWidth")),n.style.removeProperty("--menuOffset");var i,s=e.parentElement,c=n.getBoundingClientRect(),u=s.getBoundingClientRect(),a=n.parentElement.getBoundingClientRect();c.left>u.left?(i=u.left-c.left+s.offsetWidth/2-n.offsetWidth/2,i=u.right-u.width-32-c.left,c.left+i<a.left&&(i=a.left-c.left)):c.right<u.left?(i=u.right-c.right-s.offsetWidth/2+n.offsetWidth/2,i=u.right-u.width-32-c.left,c.right+i>a.right&&(i=a.right-c.right)):n.querySelector(".block-primary-nav-images")||(i=u.right-u.width-32-c.left),i&&(n.style.setProperty("--menuOffset","".concat(i/16,"rem")),c=n.getBoundingClientRect()),setTimeout((function(){document.documentElement.style.setProperty("--openMenuLeft","".concat(c.left/16,"rem"))}),100),document.documentElement.style.setProperty("--openMenuWidth","".concat(n.offsetWidth)),document.documentElement.style.setProperty("--openMenuBottom","".concat((n.offsetTop+n.offsetHeight+64)/16,"rem")),document.body.classList.remove("mega-menu-init")}else document.documentElement.style.removeProperty("--openMenuBottom"),setTimeout((function(){document.body.classList.contains("primary-submenu-open")||(document.documentElement.style.removeProperty("--openMenuLeft"),document.documentElement.style.removeProperty("--openMenuWidth"))}),400)}}
1,j=function(){k.length&&k.forEach((function(e){var n=window.requestAnimationFrame;window.requestAnimationFrame=function(){return 42},function(e,n){if(e){if(!r.some((function(t){return t.targetElement===e}))){var m={targetElement:e,options:n||{}};r=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(r),[m]),o?window.requestAnimationFrame((function(){if(void 0===u){u={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,e=t.scrollY,n=t.scrollX,o=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-e,document.body.style.left=-n,setTimeout((function(){return window.requestAnimationFrame((function(){var t=o-window.innerHeight;t&&e>=o&&(document.body.style.top=-(e+t))}))}),300)}})):function(t){if(void 0===a){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(e&&n>0){var o=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);a=document.body.style.paddingRight,document.body.style.paddingRight=o+n+"px"}}void 0===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden")}(n),o&&(e.ontouchstart=function(t){1===t.targetTouches.length&&(s=t.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(t,e){var n=t.targetTouches[0].clientY-s;!l(t.target)&&(e&&0===e.scrollTop&&n>0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&n<0?d(t):t.stopPropagation())}(t,e)},i||(document.addEventListener("touchmove",d,t?{passive:!1}:void 0),i=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}(e,{reserveScrollBarGap:!0}),window.requestAnimationFrame=n}))},U=function(){if(window.innerWidth>=992){var t=document.querySelector(".block-primary-nav-item > .wp-block-button:not(:only-child).active .wp-block-button__link");t&&C(t)}else document.documentElement.style.removeProperty("--menuUnderlineWidth"),document.documentElement.style.removeProperty("--menuUnderlinePosition"),document.documentElement.style.removeProperty("--openMenuBottom"),document.documentElement.style.removeProperty("--openMenuLeft"),document.documentElement.style.removeProperty("--openMenuWidth")};const N=function(){f&&v&&g.length&&b.length&&(f.addEventListener("click",O),b.forEach((function(t){t.parentNode&&t.parentNode.classList.contains("is-style-text")&&t.addEventListener("click",R)})),w.forEach((function(t){t.addEventListener("mouseover",C)})),I&&I.addEventListener("click",W),h(v,P,M,{root:null,rootMargin:"0px 0px 0px 0px",threshold:[0]}),E.length&&(h(E,P,M,{root:null,rootMargin:"0px 0px 0px 0px",threshold:[0]}),E.forEach((function(t){var e=t.querySelector(".block-primary-nav-mega-menu__content");if(e&&e.children){var n="",o=0,r=!1;Object.values(e.children).forEach((function(t){t.classList.contains("block-primary-nav-column")?(n+=" minmax(MINVALUE, 1fr)",o++):t.classList.contains("block-primary-nav-featured-post")&&(n+=" auto"),t.classList.contains("block-primary-nav-featured-post")&&(r=!0)}));var i="19rem",s="";o>2?(i="12rem",s="block-primary-nav-mega-menu--wide"):o>1?i="15rem":1===o&&!1===r&&(i="12rem"),n=n.replaceAll("MINVALUE",i),t.style.setProperty("--gridTemplateColumns","".concat(n)),t.style.setProperty("--columnCount","".concat(o)),s&&t.classList.add(s)}if(t.parentElement.previousElementSibling&&t.parentElement.previousElementSibling.textContent){var c=document.createElement("div"),u=document.createTextNode(t.parentElement.previousElementSibling.textContent);c.classList.add("block-primary-nav-mega-menu__heading"),c.appendChild(u),t.prepend(c)}}))),_.length&&_.forEach((function(t){t.addEventListener("click",A)})))},B=function(){U()},V=function(){document.body.classList.contains("primary-menu-open")&&S<992&&window.innerWidth>=992?(A(),O()):document.body.classList.contains("primary-submenu-open")&&S>=992&&window.innerWidth<992&&A(),document.body.classList.add("resizing"),S=window.innerWidth,setTimeout((function(){document.body.classList.remove("resizing")}),400),U()},F=function(){},H=function(){},z=function(){};var $=n(3493),Y=n.n($),G=!1;N(),window.addEventListener("load",B),window.addEventListener("scroll",Y()(F,100),{passive:!0}),window.addEventListener("resize",Y()(V,100)),window.addEventListener("keydown",(function(t){H(t)}));var X=function(t){"touchend"===t.type?(G=!0,z(t)):"mouseup"!==t.type||G?G=!1:z(t)}
1;document.addEventListener("mouseup",X),document.addEventListener("touchend",X)})()})();
2//# sourceMappingURL=primary-navigation.js.map

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.