PageSourceSearch

https://www.aafp.org/embed-assets/176d5dbfd90cbc7a76d5063a725b8d73…/chunks/top-navigation-hamburger-menu.js

js aafp.org collected 2026-10-01 07:56:32 UTC 2,681 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaafp_embeds=self.webpackChunkaafp_embeds||[]).push([[795],{456(e,t,n){n.d(t,{initHamburgerMenu:()=>a});var o,r=n(690),l=n(272),i=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n,o,r,i,u=e.call(this,t)||this;return Object.defineProperty(u,"$button",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(u,"$icon",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(u,"openLabel",{enumerable:!0,configurable:!0,writable:!0,value:"Open Menu"}),Object.defineProperty(u,"closeLabel",{enumerable:!0,configurable:!0,writable:!0,value:"Close Menu"}),Object.defineProperty(u,"unsubscribe",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"handleClick",{enumerable:!0,configurable:!0,writable:!0,value:function(){return u.toggleMenu()}}),u.$el?(u.$button=u.$el.querySelector("button"),u.$icon=null===(n=u.$button)||void 0===n?void 0:n.querySelector(".hamburger-icon"),u.openLabel=(null===(o=u.$button)||void 0===o?void 0:o.getAttribute("data-open-label"))||u.openLabel,u.closeLabel=(null===(r=u.$button)||void 0===r?void 0:r.getAttribute("data-close-label"))||u.closeLabel,null===(i=u.$button)||void 0===i||i.addEventListener("click",u.handleClick),u.unsubscribe=l.X.subscribe(function(e){var t=e.show;"boolean"==typeof t&&u.updateUI(t)}),u):u}return i(t,e),Object.defineProperty(t.prototype,"toggleMenu",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=l.X.getState().show;l.X.setShow(!e)}}),Object.defineProperty(t.prototype,"updateUI",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;if(this.$button){var n=null!=e?e:l.X.getState().show;this.$button.setAttribute("aria-expanded",String(n)),this.$button.setAttribute("aria-label",n?this.closeLabel:this.openLabel),null===(t=this.$icon)||void 0===t||t.classList.toggle("hamburger-icon--close",n)}}}),Object.defineProperty(t.prototype,"destroy",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t,n;null===(t=this.$button)||void 0===t||t.removeEventListener("click",this.handleClick),null===(n=this.unsubscribe)||void 0===n||n.call(this),e.prototype.destroy.call(this)}}),t}(r.$);function a(e){if(e)try{new u(e)}catch(e){console.error(e)}}}}]);

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.