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A,EAAM,cAAgBA,EAAM,aAAa,OAAO,EAAG,CAAC,IAAM,QAC7D,MAAM,MAAM,sBAAsB,EAG9B,MAAAE,EAAM,SAAS,cAAc,KAAK,EACxCA,EAAI,UAAYF,EAAM,aACtBE,EAAI,MAAM,aAAe,IACzBA,EAAI,MAAM,SAAW,IACrBA,EAAI,MAAM,SAAW,SAErBC,EAAS,IAAM,CACb,SAAS,KAAK,aAAaD,EAAK,SAAS,KAAK,WAAW,CAAC,CAAC,EAC5D,GAEHF,EAAM,KAAK,CACb,EAEMG,EAAY1C,GAAyB,CACrC,SAAS,aAAe,YAAc,SAAS,aAAe,cACvDA,IAEA,0BAAiB,mBAAoBA,CAAQ,CAE1D,ECxDA2C,EAAO,CAAE,SAAU,IAAIT,CAAW,qBAAqB,CAAE","names":["breakpoints","eventBus","event","callback","data","handleMedia","e","breakpoint","addWindowBreakpoints","mobileMQ","tabletMQ","tabletLandscapeMQ","desktopMQ","wideMQ","globModules","nodes","WithCallback","children","once","useRef","useLayoutEffect","getReactRoot","el","root","ReactDOM","renderElement","node","resolve","reactModule","Component","nodeList","modules","__vitePreload","modules$1","isStorybook","body","create","PUBLIC_PATH","svgXHR","options","url","baseUrl","_ajax","_fullPath","div","domready","svgxhr"],"ignoreList":[],"sources":["../../../../../src/scripts/helpers/variables.ts","../../../../../src/scripts/helpers/resize.ts","../../../../../src/scripts/glob-modules.ts","../../../../../src/scripts/helpers/react-18-shim.tsx","../../../../../src/scripts/modules.tsx","../../../../../src/scripts/index.ts","../../../../../config.ts","../../../../../src/scripts/helpers/svgxhr.ts","../../../../../main.js"],"sourcesContent":["// /**\n// * Key code list object\n// */\n\ntype BreakpointList = {\n [key: string]: number;\n};\n\nexport const breakpoints: BreakpointList = {\n mobile: 360,\n tablet: 768,\n tabletLandscape: 1024,\n desktop: 1440,\n wide: 1600\n};\n","import { breakpoints } from './variables';\ntype CallbackFunction = (data: string) => void;\n\ninterface EventBus {\n events: { [key: string]: CallbackFunction[] };\n subscribe(event: string, callback: CallbackFunction): void;\n publish(event: string, data: string): void;\n}\n\nexport const eventBus: EventBus = {\n events: {},\n subscribe(event: string, callback: CallbackFunction) {\n if (!this.events[event]) {\n this.events[event] = [];\n }\n this.events[event].push(callback);\n },\n publish(event: string, data: string) {\n if (this.events[event]) {\n this.events[event].forEach(callback => {\n callback(data);\n });\n }\n }\n};\n\nconst handleMedia = (e: MediaQueryListEvent, breakpoint: string) => {\n if (e.matches) {\n eventBus.publish('breakpointChange', breakpoint);\n }\n};\n\nexport const addWindowBreakpoints = () => {\n const mobileMQ = window.matchMedia(`(max-width:${breakpoints.mobile}px)`);\n mobileMQ.addEventListener('change', e => handleMedia(e, 'mobile'));\n\n const tabletMQ = window.matchMedia(\n `(max-width:${breakpoints.tablet}px) and (min-width:${breakpoints.mobile}px)`\n );\n\n tabletMQ.addEventListener('change', e => handleMedia(e, 'tablet'));\n const tabletLandscapeMQ = window.matchMedia(\n `(max-width:${breakpoints.tabletLandscape}px) and (min-width:${breakpoints.tablet}px)`\n );\n tabletLandscapeMQ.addEventListener('change', e => handleMedia(e, 'tabletLandscape'));\n const desktopMQ = window.matchMedia(\n `(max-width:${breakpoints.desktop}px) and (min-width:${breakpoints.tabletLandscape}px)`\n );\n desktopMQ.addEventListener('change', e => handleMedia(e, 'desktop'));\n const wideMQ = window.matchMedia(`(min-width:${breakpoints.wide}px)`);\n wideMQ.addEventListener('change', e => handleMedia(e, 'wide'));\n\n if (mobileMQ.matches) eventBus.publish('breakpointChange', 'mobile');\n if (tabletMQ.matches) eventBus.publish('breakpointChange', 'tablet');\n if (tabletLandscapeMQ.matches) eventBus.publish('breakpointChange', 'tabletLandscape');\n if (desktopMQ.matches) eventBus.publish('breakpointChange', 'desktop');\n if (wideMQ.matches) eventBus.publish('breakpointChange', 'wide');\n};\n","import type { Organism } from '@verndale/core';\n\nconst globModules: Organism[] = [];\n\nexport default globModules;\n","import React, { FC, ReactElement, useLayoutEffect, useRef } from 'react';\nimport ReactDOM, { Root as ReactRoot } from 'react-dom/client';\n\nconst nodes = new Map();\n\nconst WithCallback: FC<{ callback: () => void; children: ReactElement }> = ({\n callback,\n children\n}) => {\n const once = useRef<() => void>();\n useLayoutEffect(() => {\n if (once.current === callback) return;\n once.current = callback;\n callback();\n }, [callback]);\n\n return children;\n};\n\nconst getReactRoot = async (el: Element): Promise => {\n let root = nodes.get(el);\n\n if (!root) {\n root = ReactDOM.createRoot(el);\n nodes.set(el, root);\n }\n\n return root;\n};\n\nexport const renderElement = async (node: ReactElement, el: Element) => {\n // Create Root Element conditionally for new React 18 Root Api\n const root = await getReactRoot(el);\n\n return new Promise(resolve => {\n root?.render( resolve(null)}>{node});\n });\n};\n","import React from 'react';\nimport type { Organism } from '@verndale/core';\nimport globModules from './glob-modules';\nimport { renderElement } from './helpers/react-18-shim';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst reactModule = (Component: any, nodeList: NodeListOf) => {\n return nodeList.forEach(node => {\n renderElement(, node);\n });\n};\n\nconst modules: Organism[] = [\n {\n name: 'consentModal',\n loader: () => import('./modules/consentModal')\n },\n {\n name: 'orbsBackground',\n loader: () => import('./modules/orbsBackground')\n },\n {\n name: 'accordion',\n loader: () => import('./modules/accordion')\n },\n {\n name: 'mockApi',\n styles: () => import('../scss/modules/mock-api.scss'),\n loader: () => import('./modules/mockApi'),\n render: reactModule\n },\n {\n name: 'leadershipNavigationCards',\n styles: () => import('../scss/modules/leadership-navigation-cards.scss')\n },\n {\n name: 'veeva',\n styles: () => import('../scss/modules/veeva.scss')\n },\n {\n name: 'interactiveAccordionModule',\n styles: () => import('../scss/modules/interactive-accordion-module.scss'),\n loader: () => import('./modules/interactiveAccordionModule')\n },\n {\n name: 'leadershipListing',\n loader: () => import('./modules/leadershipListing'),\n styles: () => import('../scss/modules/leadership-listing.scss')\n },\n {\n name: 'sharePage',\n loader: () => import('./modules/sharePage'),\n styles: () => import('../scss/modules/share-page.scss')\n },\n {\n name: 'contactCardsContainer',\n styles: () => import('../scss/modules/contact-cards-container.scss')\n },\n {\n name: 'featuredLeadersCarousel',\n loader: () => import('./modules/featuredLeadersCarousel'),\n styles: () => import('../scss/modules/featured-leaders-carousel.scss')\n },\n {\n name: 'therapyAreasListing',\n styles: () => import('../scss/modules/therapy-areas-listing.scss')\n },\n {\n name: 'authorCardsContainerDefault',\n styles: () => import('../scss/modules/author-cards-container-default.scss')\n },\n {\n name: 'relatedArticlesCarousel',\n loader: () => import('./modules/relatedArticlesCarousel'),\n styles: () => import('../scss/modules/related-articles-carousel.scss')\n },\n {\n name: 'tagsContainer',\n styles: () => import('../scss/modules/tags-container.scss')\n },\n {\n name: 'factsheetDetailMasthead',\n styles: () => import('../scss/modules/factsheet-detail-masthead.scss')\n },\n {\n name: 'blockquote',\n styles: () => import('../scss/modules/blockquote.scss')\n },\n {\n name: 'ctaModule',\n styles: () => import('../scss/modules/cta-module.scss')\n },\n {\n name: 'iconCardContainer',\n styles: () => import('../scss/modules/icon-card-container.scss'),\n loader: () => import('./modules/iconCardContainer')\n },\n {\n name: 'introductoryCopyContentRow',\n styles: () => import('../scss/modules/introductory-copy-content-row.scss')\n },\n {\n name: 'imageAndTextContentRow',\n styles: () => import('../scss/modules/image-and-text-content-row.scss')\n },\n {\n name: 'medicineCardsListing',\n styles: () => import('../scss/modules/medicine-cards-listing.scss')\n },\n {\n name: 'footer',\n styles: () => import('../scss/modules/footer.scss')\n },\n {\n name: 'quoteAndImage',\n styles: () => import('../scss/modules/quote-and-image-card.scss')\n },\n {\n name: 'referencesModule',\n styles: () => import('../scss/modules/references-module.scss')\n },\n {\n name: 'locationCardContainer',\n styles: () => import('../scss/modules/location-card-container.scss')\n },\n {\n name: 'header',\n loader: () => import('./modules/header/header')\n },\n {\n name: 'searchMenu',\n loader: () => import('./modules/header/search-menu')\n },\n {\n name: 'locationMenu',\n loader: () => import('./modules/header/location-menu')\n },\n {\n name: 'statsCardContainer',\n styles: () => import('../scss/modules/stats-card-container.scss'),\n loader: () => import('./modules/statCardContainer')\n },\n {\n name: 'relatedTherapiesCarousel',\n loader: () => import('./modules/relatedTherapiesCarousel'),\n styles: () => import('../scss/modules/related-therapies-carousel.scss')\n },\n {\n name: 'fullWidthMediaItem',\n loader: () => import('./modules/fullWidthMediaItem')\n },\n {\n name: 'mediaCarouselCard',\n loader: () => import('./modules/mediaCarouselCard')\n },\n {\n name: 'mediaCarousel',\n loader: () => import('./modules/mediaCarousel'),\n styles: () => import('../scss/modules/media-carousel.scss')\n },\n {\n name: 'textCardContainer',\n styles: () => import('../scss/modules/text-card-container.scss')\n },\n {\n name: 'conditionCardsContainer',\n styles: () => import('../scss/modules/condition-cards-container.scss')\n },\n {\n name: 'factSheetsModule',\n styles: () => import('../scss/modules/fact-sheets-module.scss')\n },\n {\n name: 'relatedPatientStories',\n loader: () => import('./modules/relatedPatientStories'),\n styles: () => import('../scss/modules/related-patient-stories.scss')\n },\n {\n name: 'featuredImageTextRow',\n styles: () => import('../scss/modules/featured-image-text-row.scss')\n },\n {\n name: 'featuredTextRow',\n styles: () => import('../scss/modules/featured-text-row.scss')\n },\n {\n name: 'patientStoriesTabbed',\n loader: () => import('./modules/patientStoriesTabbed'),\n styles: () => import('../scss/modules/patient-stories-tabbed.scss')\n },\n {\n name: 'pagination',\n loader: () => import('./modules/pagination')\n },\n {\n name: 'linkListModule',\n styles: () => import('../scss/modules/link-list-module.scss')\n },\n {\n name: 'featuredArticles',\n styles: () => import('../scss/modules/featured-articles.scss'),\n loader: () => import('./modules/featuredArticles')\n },\n {\n name: 'relatedPatientsCarousel',\n loader: () => import('./modules/relatedPatientsCarousel'),\n styles: () => import('../scss/modules/related-patients-carousel.scss')\n },\n {\n name: 'relatedVideoDetailCarousel',\n loader: () => import('./modules/relatedVideoDetailCarousel'),\n styles: () => import('../scss/modules/related-video-detail-carousel.scss')\n },\n {\n name: 'relatedFactSheetCarousel',\n loader: () => import('./modules/relatedFactSheetCarousel'),\n styles: () => import('../scss/modules/related-fact-sheet-carousel.scss')\n },\n {\n name: 'textCardsCarousel',\n loader: () => import('./modules/textCardsCarousel'),\n styles: () => import('../scss/modules/text-cards-carousel.scss')\n },\n {\n name: 'dualSectionTextCards',\n styles: () => import('../scss/modules/dual-section-text-cards.scss')\n },\n {\n name: 'imageGallery',\n loader: () => import('./modules/imageGallery'),\n styles: () => import('../scss/modules/image-gallery.scss')\n },\n {\n name: 'homepageCarousel',\n loader: () => import('./modules/homepageCarousel')\n },\n {\n name: 'eventListing',\n loader: () => import('./modules/eventListing'),\n styles: () => import('../scss/modules/event-listing.scss')\n },\n {\n name: 'videoAndTextRow',\n loader: () => import('./modules/videoAndTextRow'),\n styles: () => import('../scss/modules/video-and-text-row.scss')\n },\n {\n name: 'innovationListing',\n styles: () => import('../scss/modules/innovation-listing.scss')\n },\n {\n name: 'conditionListingModule',\n styles: () => import('../scss/modules/condition-listing-module.scss')\n },\n {\n name: 'reactPagination',\n styles: () => import('../scss/modules/pagination.scss'),\n loader: () => import('./modules/reactPagination'),\n render: reactModule\n },\n {\n name: 'searchPageResults',\n loader: () => import('./modules/searchPageResults'),\n render: reactModule\n },\n {\n name: 'mediaListingResults',\n loader: () => import('./modules/mediaListingResults'),\n render: reactModule\n },\n {\n name: 'contactUsMasthead',\n loader: () => import('./modules/contactUsMasthead')\n },\n {\n name: 'externalLinksModal',\n loader: () => import('./modules/externalLinksModal'),\n styles: () => import('../scss/modules/external-links-modal.scss')\n }\n];\n\nexport default [...globModules, ...modules];\n","import 'focus-visible';\nimport create from '@verndale/core';\nimport { addWindowBreakpoints } from './helpers/resize';\nimport modules from './modules';\n\nconst isStorybook = !!document.getElementById('storybook-root');\nconst body = document.querySelector('body') as HTMLBodyElement;\n\ndocument.addEventListener(\n 'DOMContentLoaded',\n async () => {\n if (!body.dataset.modulesLoaded || isStorybook) {\n create(modules).then(() => {\n body.dataset.modulesLoaded = 'true';\n addWindowBreakpoints();\n });\n }\n },\n false\n);\n","// Public path\n// if set, make sure it ends with /\n// e.g. 'assets/'\nexport const PUBLIC_PATH = 'Areas/Alexion_Global/Assets/';\n","type SvgXHRProps = {\n filename: string;\n};\n\nconst svgXHR = (options: SvgXHRProps) => {\n let url: string | undefined = undefined;\n let baseUrl: string | undefined = undefined;\n\n options && options.filename ? (url = options.filename) : null;\n\n if (!url) return;\n let _ajax = new XMLHttpRequest();\n\n if (typeof XMLHttpRequest !== 'undefined') {\n _ajax = new XMLHttpRequest();\n }\n\n if (typeof baseUrl === 'undefined') {\n if (typeof baseUrl !== 'undefined') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n baseUrl = (window as any).baseUrl;\n } else {\n baseUrl =\n window.location.protocol +\n '//' +\n window.location.hostname +\n (window.location.port ? ':' + window.location.port : '');\n }\n }\n\n const _fullPath = (baseUrl + '/' + url).replace(/([^:]\\/)\\/+/g, '$1');\n _ajax.open('GET', _fullPath, true);\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n _ajax.onprogress = function () {};\n _ajax.onload = function () {\n if (_ajax.status < 200 || _ajax.status >= 300) {\n return;\n }\n\n if (!_ajax.responseText || _ajax.responseText.substr(0, 5) !== ' {\n document.body.insertBefore(div, document.body.childNodes[0]);\n });\n };\n _ajax.send();\n};\n\nconst domready = (callback: () => void) => {\n if (document.readyState === 'complete' || document.readyState === 'interactive') {\n callback();\n } else {\n document.addEventListener('DOMContentLoaded', callback);\n }\n};\n\nexport default svgXHR;\n","import 'vite/modulepreload-polyfill';\nimport './src/scripts/index';\nimport { PUBLIC_PATH } from './config';\nimport svgxhr from './src/scripts/helpers/svgxhr';\nimport.meta.glob('./src/static/images/**/*');\n\nsvgxhr({ filename: `/${PUBLIC_PATH}images/svgsheet.svg` });\n"],"file":"Areas/Alexion_Global/Assets/scripts/main.bundle.js"}