PageSourceSearch

https://empower.health/4190.3acd03ca21306c59.js

js empower.health collected 2026-10-08 03:52:47 UTC 9,432 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_portal=self.webpackChunkng_portal||[]).push([[4190],{24190(O,d,u){u.d(d,{J:()=>b});var c=u(31635),f=function(){function n(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(n,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.destroy=function(){},n}(),p=function(){function n(e,t){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.root=e,this.initialize.apply(this,(0,c.fX)([],(0,c.zs)(i))),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return n.attachTo=function(e){return new n(e,new f({}))},n.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},n.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},n.prototype.initialSyncWithDOM=function(){},n.prototype.destroy=function(){this.foundation.destroy()},n.prototype.listen=function(e,t,i){this.root.addEventListener(e,t,i)},n.prototype.unlisten=function(e,t,i){this.root.removeEventListener(e,t,i)},n.prototype.emit=function(e,t,i){var o;void 0===i&&(i=!1),"function"==typeof CustomEvent?o=new CustomEvent(e,{bubbles:i,detail:t}):(o=document.createEvent("CustomEvent")).initCustomEvent(e,i,!1,t),this.root.dispatchEvent(o)},n}(),l="mdc-dom-focus-sentinel",a=function(){function n(e,t){void 0===t&&(t={}),this.root=e,this.options=t,this.elFocusedBeforeTrapFocus=null}return n.prototype.trapFocus=function(){var e=this.getFocusableElements(this.root);if(0===e.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(e,this.options.initialFocusEl)},n.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+l)).forEach(function(e){e.parentElement.removeChild(e)}),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},n.prototype.wrapTabFocus=function(e){var t=this,i=this.createSentinel(),o=this.createSentinel();i.addEventListener("focus",function(){var s=t.getFocusableElements(e);s.length>0&&s[s.length-1].focus()}),o.addEventListener("focus",function(){var s=t.getFocusableElements(e);s.length>0&&s[0].focus()}),e.insertBefore(i,e.children[0]),e.appendChild(o)},n.prototype.focusInitialElement=function(e,t){var i=0;t&&(i=Math.max(e.indexOf(t),0)),e[i].focus()},n.prototype.getFocusableElements=function(e){return[].slice.call(e.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(i){var o="true"===i.getAttribute("aria-disabled")||null!=i.getAttribute("disabled")||null!=i.getAttribute("hidden")||"true"===i.getAttribute("aria-hidden"),s=i.tabIndex>=0&&i.getBoundingClientRect().width>0&&!i.classList.contains(l)&&!o,g=!1;if(s){var A=getComputedStyle(i);g="none"===A.display||"hidden"===A.visibility}return s&&!g})},n.prototype.createSentinel=function(){var e=document.createElement("div");return e.setAttribute("tabindex","0"),e.setAttribute("aria-hidden","true"),e.classList.add(l),e},n}();function E(n,e){if(n.closest)return n.closest(e);for(var t=n;t;){if(N(t,e))return t;t=t.parentElement}return null}function N(n,e){return(n.matches||n.webkitMatchesSelector||n.msMatchesSelector).call(n,e)}var r=u(59549),m=r.Y7.OPENING,v=r.Y7.OPEN,y=r.Y7.CLOSING,T=function(n){function e(t){var i=n.call(this,(0,c.Cl)((0,c.Cl)({},e.defaultAdapter),t))||this;return i.isOpened=!1,i.animationFrame=0,i.animationTimer=0,i}return(0,c.C6)(e,n),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},getContentHeight:function(){return 0},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},notifyActionClicked:function(){},releaseFocus:function(){},removeClass:function(){},setStyleProperty:function(){},trapFocus:function(){}}}
1,enumerable:!1,configurable:!0}),e.prototype.destroy=function(){cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0},e.prototype.open=function(){var t=this;this.isOpened=!0,this.adapter.notifyOpening(),this.adapter.removeClass(y),this.adapter.addClass(m);var i=this.adapter.getContentHeight();this.animationFrame=requestAnimationFrame(function(){t.adapter.addClass(v),t.adapter.setStyleProperty("height",i+"px"),t.animationTimer=setTimeout(function(){t.handleAnimationTimerEnd(),t.adapter.trapFocus(),t.adapter.notifyOpened()},r.nL.BANNER_ANIMATION_OPEN_TIME_MS)})},e.prototype.close=function(t){var i=this;this.isOpened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.isOpened=!1,this.adapter.notifyClosing(t),this.adapter.addClass(y),this.adapter.setStyleProperty("height","0"),this.adapter.removeClass(v),this.adapter.removeClass(m),clearTimeout(this.animationTimer),this.animationTimer=setTimeout(function(){i.adapter.releaseFocus(),i.handleAnimationTimerEnd(),i.adapter.notifyClosed(t)},r.nL.BANNER_ANIMATION_CLOSE_TIME_MS))},e.prototype.isOpen=function(){return this.isOpened},e.prototype.handlePrimaryActionClick=function(t){void 0===t&&(t=!1),t?this.adapter.notifyActionClicked(0):this.close(r.fi.PRIMARY)},e.prototype.handleSecondaryActionClick=function(t){void 0===t&&(t=!1),t?this.adapter.notifyActionClicked(1):this.close(r.fi.SECONDARY)},e.prototype.layout=function(){var t=this.adapter.getContentHeight();this.adapter.setStyleProperty("height",t+"px")},e.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(m),this.adapter.removeClass(y)},e}(f),b=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return(0,c.C6)(e,n),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(t){var i=this;void 0===t&&(t=function(o,s){return new a(o,s)}),this.contentEl=this.root.querySelector(r.Tp.CONTENT),this.textEl=this.root.querySelector(r.Tp.TEXT),this.primaryActionEl=this.root.querySelector(r.Tp.PRIMARY_ACTION),this.secondaryActionEl=this.root.querySelector(r.Tp.SECONDARY_ACTION),this.focusTrapFactory=t,this.handleContentClick=function(o){var s=o.target;E(s,r.Tp.PRIMARY_ACTION)?i.foundation.handlePrimaryActionClick():E(s,r.Tp.SECONDARY_ACTION)&&i.foundation.handleSecondaryActionClick()}},e.prototype.initialSyncWithDOM=function(){this.registerContentClickHandler(this.handleContentClick),this.focusTrap=this.focusTrapFactory(this.root,{initialFocusEl:this.primaryActionEl})},e.prototype.destroy=function(){n.prototype.destroy.call(this),this.deregisterContentClickHandler(this.handleContentClick)},e.prototype.layout=function(){this.foundation.layout()},e.prototype.open=function(){this.foundation.open()},e.prototype.close=function(t){this.foundation.close(t)},e.prototype.getDefaultFoundation=function(){var t=this;return new T({addClass:function(o){t.root.classList.add(o)},getContentHeight:function(){return t.contentEl.offsetHeight},notifyClosed:function(o){t.emit(r.AZ.CLOSED,{reason:o})},notifyClosing:function(o){t.emit(r.AZ.CLOSING,{reason:o})},notifyOpened:function(){t.emit(r.AZ.OPENED,{})},notifyOpening:function(){t.emit(r.AZ.OPENING,{})},notifyActionClicked:function(o){t.emit(r.AZ.ACTION_CLICKED,{action:o})},releaseFocus:function(){t.focusTrap.releaseFocus()},removeClass:function(o){t.root.classList.remove(o)},setStyleProperty:function(o,s){t.root.style.setProperty(o,s)},trapFocus:function(){t.focusTrap.trapFocus()}})},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!1,configurable:!0}),e.prototype.getText=function(){return this.textEl.textContent||""},e.prototype.setText=function(t){this.textEl.textContent=t},e.prototype.getPrimaryActionText=function(){return this.primaryActionEl.textContent||""},e.prototype.setPrimaryActionText=function(t){this.primaryActionEl.textContent=t},e.prototype.getSecondaryActionText=function(){return this.secondaryActionEl?this.secondaryActionEl.textContent||"":null},e.prototype.setSecondaryActionText=function(t){this.secondaryActionEl&&(this.secondaryActionEl.textContent=t)},e.prototype.registerContentClickHandler=function(t){this.contentEl.addEventListener("click",t)},e.prototype.deregisterContentClickHandler=function(t){this.contentEl.removeEventListener("click",t)},e}(p)},59549(O,d,u){u.d(d,{AZ:()=>C,Tp:()=>p,Y7:()=>c,fi:()=>h,nL:()=>f});var c={CLOSING:"mdc-banner--closing",OPEN:"mdc-banner--open",OPENING:"mdc-banner--opening"},f={BANNER_ANIMATION_CLOSE_TIME_MS:250,BANNER_ANIMATION_OPEN_TIME_MS:300},C={CLOSED:"MDCBanner:closed",CLOSING:"MDCBanner:closing",OPENED:"MDCBanner:opened",OPENING:"MDCBanner:opening",ACTION_CLICKED:"MDCBanner:
1actionClicked"},p={CONTENT:".mdc-banner__content",PRIMARY_ACTION:".mdc-banner__primary-action",SECONDARY_ACTION:".mdc-banner__secondary-action",TEXT:".mdc-banner__text"},h=function(a){return a[a.PRIMARY=0]="PRIMARY",a[a.SECONDARY=1]="SECONDARY",a[a.UNSPECIFIED=2]="UNSPECIFIED",a}(h||{})}}]);

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.