{"version":3,"file":"bundle.js","sources":["../../../../../node_modules/a11y-accordion-component/dist/a11y-accordion-component.es.js","../../Private/Javascripts/utils/index.ts","../../Private/Javascripts/components/cookie-notice.ts","../../Private/Javascripts/components/find-care-provider.ts","../../Private/Javascripts/components/footer.ts","../../Private/Javascripts/components/header-search.ts","../../Private/Javascripts/components/mega-menu.ts","../../Private/Javascripts/components/mobile-menu.ts","../../Private/Javascripts/components/header.ts","../../Private/Javascripts/traits/base-slider.ts","../../Private/Javascripts/components/pages-slider.ts","../../Private/Javascripts/components/wizard.ts","../../Private/Javascripts/components/slider.ts","../../Private/Javascripts/components/tooltip.ts","../../Private/Javascripts/components/trigger.ts","../../Private/Javascripts/components/videos.ts","../../Private/Javascripts/components/scroller.ts","../../Private/Javascripts/components/print-page.ts","../../Private/Javascripts/main.ts"],"sourcesContent":["const Accordions=(()=>{const t={enter:13,space:32,pageUp:33,pageDown:34,end:35,home:36,up:38,down:40};class e{constructor(t){this.accordion=t.accordion,this.triggers=this.queryFilter(this.accordion.querySelectorAll(\"[data-controls]\")),[this.firstTrigger]=this.triggers,this.lastTrigger=this.triggers[this.triggers.length-1],this.state=[],this.currentFocusedIndex=null,this.isMultiSelectable=t.isMultiSelectable,this.isCollapsible=t.isCollapsible,this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}queryFilter(t){const e=[];let i;return t.forEach(t=>{for(i=t.parentNode;i!==this.accordion;){if(i.dataset.component===this.accordion.dataset.component)return;i=i.parentNode}e.push(t)}),e}setState(t){this.state.forEach(e=>{t.currentTarget===e.trigger?this.isCollapsible?e.isExpanded=!e.isExpanded:(e.isDisabled=!0,e.isExpanded=!0):(this.isMultiSelectable||(e.isExpanded=!1),this.isCollapsible||(e.isDisabled=!1))}),this.updateAttributes(t)}onFocus(t){this.state.forEach((e,i)=>{t.target===e.trigger&&(this.currentFocusedIndex=i)})}setFocus(e){e.target.hasAttribute(\"data-controls\")?(e.preventDefault(),e.stopPropagation(),e.which!==t.up&&e.which!==t.pageUp||this.state[this.currentFocusedIndex].prevTrigger.focus(),e.which!==t.down&&e.which!==t.pageDown||this.state[this.currentFocusedIndex].nextTrigger.focus(),e.which===t.home&&this.firstTrigger.focus(),e.which===t.end&&this.lastTrigger.focus()):(e.which!==t.pageUp&&e.which!==t.pageDown||(e.preventDefault(),e.stopPropagation()),e.which===t.pageUp&&this.state[this.currentFocusedIndex].trigger.focus(),e.which===t.pageDown&&this.state[this.currentFocusedIndex].nextTrigger.focus())}addAttributes(){this.accordion.setAttribute(\"role\",\"presentation\"),this.state.forEach(t=>{t.trigger.setAttribute(\"role\",\"button\"),t.trigger.setAttribute(\"tabindex\",0),t.trigger.setAttribute(\"aria-controls\",t.trigger.dataset.controls),t.panel.setAttribute(\"role\",\"region\"),t.panel.setAttribute(\"tabindex\",-1),t.panel.setAttribute(\"aria-labelledby\",t.trigger.id)})}updateAttributes(t){t&&t.preventDefault(),this.state.forEach(t=>{t.trigger.setAttribute(\"aria-expanded\",t.isExpanded),t.trigger.setAttribute(\"aria-disabled\",t.isDisabled),t.panel.setAttribute(\"aria-hidden\",!t.isExpanded)})}removeAttributes(){delete this.accordion.dataset.component,this.accordion.removeAttribute(\"role\"),this.state.forEach(t=>{t.trigger.removeAttribute(\"role\"),t.trigger.removeAttribute(\"tabindex\"),t.trigger.removeAttribute(\"aria-controls\"),t.trigger.removeAttribute(\"aria-expanded\"),t.trigger.removeAttribute(\"aria-disabled\"),t.panel.removeAttribute(\"role\"),t.panel.removeAttribute(\"tabindex\"),t.panel.removeAttribute(\"aria-hidden\"),t.panel.removeAttribute(\"aria-labelledby\")})}onClick(t){this.setState(t)}onKeydown(e){e.which===t.enter&&e.target.hasAttribute(\"data-controls\")&&this.setState(e),e.which===t.space&&e.target.hasAttribute(\"data-controls\")&&this.setState(e),e.which===t.up&&this.setFocus(e),e.which===t.down&&this.setFocus(e),e.which===t.home&&this.setFocus(e),e.which===t.end&&this.setFocus(e),e.which===t.pageUp&&this.setFocus(e),e.which===t.pageDown&&this.setFocus(e)}addEventListeners(t,e){t.addEventListener(\"focus\",this.onFocus),t.addEventListener(\"click\",this.onClick),t.addEventListener(\"keydown\",this.onKeydown),e.addEventListener(\"keydown\",this.onKeydown)}removeEventListeners(t,e){t.removeEventListener(\"focus\",this.onFocus),t.removeEventListener(\"click\",this.onClick),t.removeEventListener(\"keydown\",this.onKeydown),e.removeEventListener(\"keydown\",this.onKeydown)}destroy(){this.state.forEach(t=>{this.removeEventListeners(t.trigger,t.panel)}),this.removeAttributes()}render(){let t,e;this.triggers.forEach((i,s)=>{t=document.getElementById(i.dataset.controls),(e=\"true\"===i.dataset.open)&&(this.currentFocusedIndex=s),this.state.push({trigger:i,prevTrigger:this.triggers[s-1]||this.lastTrigger,nextTrigger:this.triggers[s+1]||this.firstTrigger,panel:t,isExpanded:e,isDisabled:!this.isCollapsible&&e}),this.addEventListeners(i,t)}),this.addAttributes(),this.updateAttributes()}}const i=[];return{render:(t,{isMultiSelectable:s=!0,isCollapsible:r=!0}={})=>{const o=document.getElementById(t),a={accordion:o,isMultiSelectable:s,isCollapsible:r};o.dataset.component=\"accordion\";const n=new e(a);n.render(),i.push(n)},destroy:t=>{i.forEach((e,s)=>{t===e.accordion.id&&(e.destroy(),i.splice(s,1))})},init:()=>{const t={};document.querySelectorAll('[data-component=\"accordion\"]').forEach(i=>{t.accordion=i,t.isMultiSelectable=\"false\"!==i.dataset.multiselectable,t.isCollapsible=\"false\"!==i.dataset.collapsible,new e(t).render()})}}})();export default Accordions;","/* eslint-disable @typescript-eslint/ban-ts-comment */\nexport const addClass = (el: HTMLElement, className: string) => {\n el.classList.add(className);\n};\n\nexport const removeClass = (el: HTMLElement, className: string) => {\n el.classList.remove(className);\n};\n\nexport const hasClass = (el: HTMLElement, className: string) => {\n return el.classList.contains(className);\n};\n\nexport const toggleClass = (el: HTMLElement, className: string) => {\n return el.classList.toggle(className);\n};\n\nexport const trapFocus = (element: HTMLElement) => {\n const focusableEls = element.querySelectorAll(\n 'a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type=\"text\"]:not([disabled]), input[type=\"search\"]:not([disabled]), input[type=\"radio\"]:not([disabled]), input[type=\"checkbox\"]:not([disabled]), select:not([disabled])'\n );\n const firstFocusableEl = focusableEls[0];\n const lastFocusableEl = focusableEls[focusableEls.length - 1];\n const KEYCODE_TAB = 9;\n\n element.addEventListener(\"keydown\", function (e) {\n const isTabPressed = e.key === \"Tab\" || e.keyCode === KEYCODE_TAB;\n\n if (!isTabPressed) {\n return;\n }\n\n if (e.shiftKey) {\n /* shift + tab */ if (document.activeElement === firstFocusableEl) {\n // @ts-ignore\n lastFocusableEl.focus();\n e.preventDefault();\n }\n } /* tab */ else {\n if (document.activeElement === lastFocusableEl) {\n // @ts-ignore\n firstFocusableEl.focus();\n e.preventDefault();\n }\n }\n });\n};\n","/**\n * Cookie Notice\n *\n * This module is a simple implementation of a CookieWall\n * It gives the user only a notice about the use of cookies.\n *\n * By clicking on the agreement on the buttons \"Yes\" and \"no\",\n * the notice will be removed and won't be shown within the life\n * span of the cookie.\n *\n * Basic HTML usage:\n *
\n *\n * Future implementation will contain the actual setting of the\n * TrackingCookies by either Google Analytics, GTM or Hotjar.\n */\n\nimport { addClass, removeClass } from \"../utils\";\n\nexport default class CookieNotice {\n protected COOKIE_NAME = \"tracking_allowed\";\n private cookieNotice: HTMLElement;\n private enableTracking: boolean;\n\n /**\n * Constructor\n */\n constructor() {\n this.cookieNotice = document.querySelector(\"[data-cookie-notice]\");\n this.enableTracking = false;\n\n this.init();\n }\n\n private init() {\n if (this.cookieNotice) {\n this.handleUserInteraction();\n\n if (this.checkDoNotTrackOption()) {\n if (this.readCookie(this.COOKIE_NAME) === null) {\n this.showCookieWall();\n } else {\n if (this.readCookie(this.COOKIE_NAME) === \"1\") {\n this.enableTracking = true;\n window.dispatchEvent(new Event(\"site:allow-tracking\"));\n }\n }\n }\n }\n }\n\n createCookie(name: string, value: boolean, days?: number) {\n let expires = \"\";\n\n if (days) {\n const date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n expires = \"; expires=\" + date.toUTCString();\n }\n\n document.cookie = name + \"=\" + Number(value) + expires + \"; path=/\";\n }\n\n private readCookie(name: string) {\n const nameEQ = name + \"=\";\n const ca = document.cookie.split(\";\");\n\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === \" \") {\n c = c.substring(1, c.length);\n }\n if (c.indexOf(nameEQ) === 0) {\n return c.substring(nameEQ.length, c.length);\n }\n }\n return null;\n }\n\n private handleUserInteraction() {\n const buttons = this.cookieNotice.querySelectorAll(\"[data-set-cookie]\");\n\n buttons.forEach((button) => {\n button.addEventListener(\"click\", (ev) => {\n ev.preventDefault();\n\n const choice = (