1"use strict"; 2/* This file has been modified from the BSA WP Theme to allow menu modifications extended menu and chevron issues with mobile */ 3!(function s(r, c, a) { 4 function l(n, e) { 5 if (!c[n]) { 6 if (!r[n]) { 7 var o = "function" == typeof require && require; 8 if (!e && o) return o(n, !0); 9 if (u) return u(n, !0); 10 var t = new Error("Cannot find module '" + n + "'"); 11 throw ((t.code = "MODULE_NOT_FOUND"), t); 12 } 13 var i = (c[n] = { exports: {} }); 14 r[n][0].call( 15 i.exports, 16 function (e) { 17 return l(r[n][1][e] || e); 18 }, 19 i, 20 i.exports, 21 s, 22 r, 23 c, 24 a 25 ); 26 } 27 return c[n].exports; 28 } 29 for (var u = "function" == typeof require && require, e = 0; e < a.length; e++) l(a[e]); 30 return l; 31})( 32 { 33 1: [ 34 function (e, n, o) { 35 if ( 36 (jQuery(function (t) { 37 t(".footer-top") 38 .find(".widget") 39 .each(function () { 40 var n = t(this); 41 n.children("h5").click(function (e) { 42 n.children("div").stop(!0).slideToggle("fast"), 43 t(this).children("i").toggleClass("fa-chevron-down"), 44 t(this).children("i").toggleClass("fa-chevron-up"); 45 }); 46 }), 47 t("#desktop-scouting-menu").on("show.bs.collapse", function (e) { 48 t(".scouting-desktop-toggler").children(".btn").addClass("hide"); 49 }), 50 t("#desktop-scouting-menu").on("hide.bs.collapse", function (e) { 51 t(".scouting-desktop-toggler").children(".btn").removeClass("hide"); 52 }), 53 t("#mobile-menu").on("show.bs.collapse", function (e) { 54 e.target === e.currentTarget && 55 (t(".mobile-menu-toggler").children("i").html("close"), 56 t("#top-nav").find(".buttons").children(".register").hide(), 57 t("#mobile-menu").children(".buttons").children(".register").show()); 58 }), 59 t("#mobile-menu").on("hide.bs.collapse", function (e) { 60 e.target === e.currentTarget && 61 (t(".mobile-menu-toggler").children("i").html("menu"), 62 t("#top-nav").find(".buttons").children(".register").show(), 63 t("#mobile-menu").children(".buttons").children(".register").hide()); 64 }), 65 t("#mobile-scouting-menu").on("show.bs.collapse", function () { 66 t(".scouting-menu-toggler").children("i").removeClass("fa-chevron-down"), 67 t(".scouting-menu-toggler").children("i").addClass("fa-chevron-up"); 68 }), 69 t("#mobile-scouting-menu").on("hide.bs.collapse", function () { 70 t(".scouting-menu-toggler").children("i").addClass("fa-chevron-down"), 71 t(".scouting-menu-toggler").children("i").removeClass("fa-chevron-up"); 72 }), 73 t("a").click(function () { 74 var e = t(this).attr("href"); 75 if (-1 < e.indexOf("#")) { 76 var n = e.split("#"), 77 o = decodeURI(n[n.length - 1]); 78 "" !== o && 79 t("html, body").animate({ 80 scrollTop: 81 t("a[name='" + o + "']").offset().top - 82 t("#top-nav").outerHeight() - 83 t("#wpadminbar").outerHeight() - 84 20, 85 }); 86 } 87 }), 88 t(".dropdown-menu [data-toggle='dropdown']").on("click", function (e) { 89 e.stopPropagation(); 90 }), 91 (function () { 92 var e = t("#mobile-main-menu, #mobile-top-menu"); 93 94 if (!e.length || window.gmcNestedMobileMenuInitialized) return; 95 window.gmcNestedMobileMenuInitialized = !0; 96 97 t("<style id='gmc-nested-mobile-menu-style'>" + 98 "#mobile-main-menu .menu-item-has-children,#mobile-top-menu .menu-item-has-children{position:relative;}" + 99 ".gmc-mobile-submenu-toggle{position:absolute;top:0;right:0;width:68px;height:56px;z-index:1000;margin:0;padding:0;border:0;background:transparent;box-shadow:none;-webkit-appearance:none;appearance:none;cursor:pointer;}" + 100 ".gmc-mobile-submenu-toggle:focus{outline:2px solid currentColor;outline-offset:-4px;}" + 101 "</style>").appendTo("head"); 102 103 function n(e, n) { 104 var o = e.children(".collapse").first(); 105 106 if (!o.length) return; 107 108 if (!n) 109 o.find(".menu-item-has-children.show-submenu").each(function () { 110 var e = t(this), 111 n = e.children(".collapse").first(); 112 113 e.removeClass("show-submenu"), 114 e.children(".gmc-mobile-submenu-toggle").attr("aria-expanded", "false"), 115 n.removeClass("show collapsing") 116 .attr("aria-expanded", "false") 117 .css({ display: "none", height: "" }); 118 }); 119 120 e.toggleClass("show-submenu", n), 121 e.children(".gmc-mobile-submenu-toggle").attr("aria-expanded", n ? "true" : "false"), 122 o.removeClass("collapsing") 123 .toggleClass("show", n) 124 .attr("aria-expanded", n ? "true" : "false") 125 .css({ display: n ? "block" : "none", height: "" }); 126 } 127 128 e.find(".menu-item-has-children").each(function (e) { 129 var o = t(this), 130 i = o.children(".collapse").first(), 131 s = o.children(".gmc-mobile-submenu-toggle"); 132 133 if (!i.length) return; 134
135 o.off("click"), 136 i.off("show.bs.collapse hide.bs.collapse") 137 .removeAttr("data-parent") 138 .removeData("parent"); 139 140 if (!i.attr("id")) i.attr("id", "gmc-mobile-submenu-" + e); 141 142 if (!s.length) { 143 s = t("<button type='button' class='gmc-mobile-submenu-toggle'></button>") 144 .attr("aria-label", "Toggle submenu") 145 .attr("aria-controls", i.attr("id")); 146 o.children("a").first().after(s); 147 } 148 149 n(o, i.hasClass("show")); 150 }); 151 152 e.each(function () { 153 this.addEventListener( 154 "click", 155 function (e) { 156 var o = e.target, 157 i = t(o).closest(".menu-item-has-children"); 158 159 if (!i.length || !this.contains(i.get(0))) return; 160 161 var s = i.children(".collapse").first(); 162 if (!s.length || s.get(0).contains(o)) return; 163 164 var r = i.children(".gmc-mobile-submenu-toggle").first(), 165 c = i.children("a").first(), 166 a = r.length && (o === r.get(0) || r.get(0).contains(o)), 167 l = c.length && (o === c.get(0) || c.get(0).contains(o)); 168 169 if (l && !a) { 170 var u = c.attr("href") || ""; 171 if (u && "#" !== u && 0 !== u.indexOf("javascript:")) return; 172 } 173 174 e.preventDefault(), 175 e.stopPropagation(), 176 e.stopImmediatePropagation(), 177 n(i, !s.hasClass("show")); 178 }, 179 !0 180 ); 181 }); 182 })(), 183 t(".search-nav").on("click", function (e) { 184 e.preventDefault(); 185 var n = this.id; 186 t(".nav-search-input").show(), 187 t(".search-nav").addClass("btn-search-clicked"), 188 "" != t("#formtoseach-" + n + " .nav-search-input").val() && 189 ("submit-search-a" == n && t("#formtoseach-submit-search-a").trigger("submit"), 190 "submit-search-b" == n && t("#formtoseach-submit-search-b").trigger("submit"), 191 "submit-search-c" == n && t("#formtoseach-submit-search-c").trigger("submit"), 192 t("#formtoseach-" + n + " .nav-search-input").val("")); 193 }), 194 t(".search-nav").on("click", function (e) { 195 t(".search-nav").addClass("btn-secondary-radio-border"), 196 t(".nav-search-input").css("visibility", "visible"); 197 }), 198 t(".search-nav").on("mouseenter", function (e) { 199 t(".search-nav").addClass("btn-search-hover"); 200 }), 201 t(".search-nav").on("mouseleave", function (e) { 202 t(".search-nav").removeClass("btn-search-hover"); 203 }),
204 t("ul#desktop-menu-main-menu > li > a").on("click", function (e) { 205 t("ul#desktop-menu-main-menu > li > a") 206 .addClass("bg-radius-effect") 207 .addClass("bg-radius-effect-after"); 208 }); 209 /* 210 * GMC DESKTOP MEGA MENU HOVER INTENT - V2 211 * 212 * Desktop-only behavior: 213 * - Opens only after intentional hover over a TOP-LEVEL link. 214 * - Keeps the active mega menu open while the pointer is visually 215 * inside its full-width panel, even if overlapping theme elements 216 * cause a misleading mouseenter/mouseleave event. 217 * - Prevents sibling top-level menus from taking over while the 218 * pointer coordinates are still inside the active panel. 219 * - Adds/removes .mega-menu-open; CSS controls visibility. 220 */ 221 (function () { 222 var e = t("#desktop-menu-main-menu"), 223 n = e.children("li.menu-item-has-children"), 224 o = n.children("a"), 225 i = null, 226 s = null, 227 a = null, 228 r = 75, /* Open Delay */ 229 l = 125; /* Close Delay */ 230 231 function c() { 232 return window.matchMedia 233 ? window.matchMedia("(min-width: 1330px)").matches 234 : document.documentElement.clientWidth >= 1330; 235 } 236 237 function d(e) { 238 return e ? t(e).children("ul").first()[0] : null; 239 } 240 241 function u(e, n) { 242 if (!e || null == n.clientX || null == n.clientY) return !1; 243 var o = e.getBoundingClientRect(), 244 i = 3; 245 return ( 246 n.clientX >= o.left - i && 247 n.clientX <= o.right + i && 248 n.clientY >= o.top - i && 249 n.clientY <= o.bottom + i 250 ); 251 } 252 253 function h(e) { 254 return !!a && u(d(a), e); 255 } 256 257 function m(e) { 258 if (!c()) return; 259 i && (window.clearTimeout(i), (i = null)), 260 s && (window.clearTimeout(s), (s = null)), 261 a && a !== e && t(a).removeClass("mega-menu-open"), 262 t(e).addClass("mega-menu-open"), 263 (a = e); 264 } 265 266 function f(e) { 267 s && window.clearTimeout(s), 268 (s = window.setTimeout(function () { 269 t(e).removeClass("mega-menu-open"), 270 a === e && (a = null), 271 (s = null); 272 }, l)); 273 } 274 275 /* 276 * Only the top-level anchor can request a switch. 277 * If the pointer is still geometrically inside the currently 278 * open panel, ignore a sibling anchor mouseenter. This protects 279 * against positioned/overlapping descendants from exposing an 280 * underlying top-level link to hit-testing. 281 */ 282 o.on("mouseenter.gmcMegaMenu", function (e) { 283 if (!c()) return; 284 285 var n = t(this).parent("li.menu-item-has-children")[0]; 286 287 if (a && a !== n && h(e)) { 288 i && (window.clearTimeout(i), (i = null)); 289 s && (window.clearTimeout(s), (s = null)); 290 return; 291 } 292 293 i && window.clearTimeout(i), 294 s && (window.clearTimeout(s), (s = null)), 295 a === n 296 ? m(n) 297 : (i = window.setTimeout(function () { 298 m(n), (i = null); 299 }, r)); 300 }); 301 302 o.on("mouseleave.gmcMegaMenu", function () { 303 var e = t(this).parent("li.menu-item-has-children")[0]; 304 a !== e && i && (window.clearTimeout(i), (i = null)); 305 }); 306 307 /* 308 * Keep the open item alive while normal DOM ancestry says the 309 * pointer is inside it. 310 */ 311 n.on("mouseenter.gmcMegaMenu", function () { 312 a === this && s && (window.clearTimeout(s), (s = null)); 313 }); 314 315 n.on("mouseleave.gmcMegaMenu", function (e) { 316 i && (window.clearTimeout(i), (i = null)); 317 318 if (a !== this) return; 319 320 /* 321 * Absolutely positioned mega-menu descendants can sometimes 322 * produce a mouseleave even though the cursor is still visibly 323 * inside the panel. Use panel geometry as the final authority. 324 */ 325 if (u(d(this), e)) { 326 s && (window.clearTimeout(s), (s = null)); 327 return; 328 } 329 330 f(this); 331 }); 332 333 /* 334 * Document-level pointer tracking is the safety net for deep 335 * descendants. If the cursor is inside the active mega-menu's 336 * rectangle, cancel both a pending close and any pending sibling 337 * open request. 338 */ 339 t(document).on("mousemove.gmcMegaMenu", function (e) { 340 if (!c() || !a) return; 341 342 if (h(e)) { 343 s && (window.clearTimeout(s), (s = null)); 344 i && (window.clearTimeout(i), (i = null)); 345 } 346 }); 347 348 /* 349 * Close after the pointer truly leaves both the top navigation 350 * and the active panel. 351 */ 352 e.on("mouseleave.gmcMegaMenu", function (e) { 353 if (!a || h(e)) return; 354 f(a); 355 }); 356 357 o.on("focus.gmcMegaMenu", function () { 358 m(t(this).parent("li.menu-item-has-children")[0]); 359 }); 360 361 n.on("focusout.gmcMegaMenu", function () { 362 var e = this; 363 window.setTimeout(function () { 364 e.contains(document.activeElement) || 365 (t(e).removeClass("mega-menu-open"), 366 a === e && (a = null)); 367 }, 0); 368 }); 369
370 e.on("keydown.gmcMegaMenu", function (e) { 371 "Escape" === e.key && 372 (i && window.clearTimeout(i), 373 s && window.clearTimeout(s), 374 n.removeClass("mega-menu-open"), 375 (i = null), 376 (s = null), 377 (a = null)); 378 }); 379 380 t(window).on("resize.gmcMegaMenu", function () { 381 c() || 382 (i && window.clearTimeout(i), 383 s && window.clearTimeout(s), 384 n.removeClass("mega-menu-open"), 385 (i = null), 386 (s = null), 387 (a = null)); 388 }); 389 })(); 390 }), 391 document.documentElement.clientWidth <= 1329) 392 ) { 393 var t = document.querySelector("#mobile-top-menu .btn-donate"), 394 i = document.querySelector("#mobile-top-menu .btn-join-us"); 395 if (i || t) { 396 var s = document.querySelector("#mobile-top-menu"); 397 s && (i && (i.remove(), s.prepend(i)), t && (t.remove(), s.prepend(t))); 398 } 399 } 400 document.addEventListener("DOMContentLoaded", function () { 401 var e = document.querySelector("#wpadminbar"), 402 n = document.querySelector(".logged-in"); 403 n && !e && n.classList.remove("logged-in"); 404 }); 405 }, 406 {}, 407 ], 408 }, 409 {}, 410 [1] 411); 412//# sourceMappingURL=main.min.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.