{"version":3,"sources":["webpack:///./src/Avensia.Common/Features/Shared/cleanPath.tsx","webpack:///./src/Avensia.Common/Features/SiteLayout/MainMenu/SubItem.tsx","webpack:///./src/Avensia.Common/Features/SiteLayout/MainMenu/submenu.tsx","webpack:///./src/Avensia.Common/Features/SiteLayout/MainMenu/MobileSubMenuItem.tsx","webpack:///./src/Avensia.Common/Features/SiteLayout/MainMenu/MobileSubMenu.tsx","webpack:///./src/Avensia.Common/Features/Content/ArticleLinks.tsx","webpack:///./src/Avensia.Common/Features/Content/ContentPage.tsx"],"names":["cleanPath","url","firstSlash","indexOf","relativeUrl","substr","length","__webpack_require__","d","__webpack_exports__","NotActiveLinkStyled","Object","mjs","Link","display","color","Style","font","weight","size",":hover","textDecoration","padding","top","right","bottom","Label","_a","darkMode","children","react_default","a","createElement","Span","css","ActiveLinkStyled","fontWeight","_super","Item","tslib_es6","prototype","render","LinkStyled","this","props","isActive","to","item","name","PureComponent","SubNavBox","Div","width","backgroundColor","border","xy","style","margin","left","height","ArrowContainer","span","justifyContent","alignItems","cursor","Arrow","maxWidth","maxHeight","marginRight","fontSize","ArrowDown","Arrow_forward","ArrowUp","ArrowUpMargin","DarkArrowDown","DarkArrowUp","Heading","P","textTransform","ItemRow","div","ChildRow","ThirdLevelRow","ItemNameBoxLvl1","ItemNameBoxLvl2","submenu_SubMenu","SubMenu","_this","call","getSecondLevelMenuItem","menuItems","forEach","menu","itemFound","find","i","split","scope","pathname","secondItem","getThirdLevelMenuItem","secondItemFound","menuItem","openSublevel","setState","prevState","openMenuItems","closeSublevel","state","filter","map","Fragment","key","SubItem","includes","onClick","childItem","thirdLevel","Component","submenu","connect","mainMenu","mainMenuPrimaryItems","concat","mainMenuSecondaryItems","MobileSubMenuItem_NotActiveLinkStyled","MobileSubMenuItem_Label","MobileSubMenuItem_ActiveLinkStyled","Container","Wrapper","MobileSubMenu_MobileSubMenu","MobileSubMenu","currentPath","rootPath","firstLevelItem","undefined","firstLevelPath","secondLevelItem","currentItem","marginBottom","MobileSubMenuItem","MainMenu_MobileSubMenu","ArticleLinks_ArticleLinks","ArticleLinks","toggleArticleLinks","isOpen","HEADING","anchorHeading","react","AnchorLinks","AnchorHeader","AnchorTitle","ArticleLinks_ArrowContainer","ArticleLinks_ArrowUp","ArticleLinks_ArrowDown","AnchorUL","titles","title","index","AnchorLI","id","onDoubleClick","setActive","activeTitle","SelectedArticleLink","ArticleLink","h2","core_mjs","minWidth","ArticleLinks_Arrow","x","whiteSpace","background","overflow","ul","wordWrap","listStyle","marginTop","li","borderLeft","Content_ArticleLinks","Content","CenterContent","MainWrapper","PageLayout","Small","Large","SecondaryContent","position","Medium","SecondaryContentWrapper","HeadingWrapper","paddingTop","paddingRight","paddingBottom","paddingLeft","AttachmentBlockWrapper","y","AttachmentBlockTitle","lineHeight","BkgPattern","backgroundImage","backgroundPosition","backgroundRepeat","zIndex","MenuBkg","ContentPage_ContentPage","ContentPage","scroll","windscroll","window","scrollY","matchingTitles","articleTitle","document","getElementById","bodyPosition","body","getBoundingClientRect","setActiveTitle","setIdOnElements","currentTitle","headings","ref","current","querySelectorAll","Array","from","trimmedTitle","textContent","replace","titleObject","push","createRef","componentDidMount","location","hash","addEventListener","marginTopOnAttachments","appearance","BackgroundImage","Center","content","pageTitle","breadcrumbs","Viewport","isCompact","disableAnchorLinks","anchorLinkTitle","currentBreakpoint","innerRef","for","mainContent","attachmentBlocks"],"mappings":"2FAAe,SAASA,EAAUC,GAChC,IAAMC,EAAaD,EAAIE,QAAQ,KACzBC,EAAcH,EAAII,OAAOH,EAAa,GAE5C,MAD2C,MAA3BE,EAAYC,QAAQ,GAAaD,EAAYC,OAAO,EAAGD,EAAYE,OAAS,GAAKF,EAHnGG,EAAAC,EAAAC,EAAA,sBAAAT,6GC6BA,IAAMU,EAAsBC,OAAAC,EAAA,EAAAD,CAAOE,EAAA,GACjCC,QAAS,QACTC,MAAOC,EAAA,EACPC,MACEC,OAAQ,IACRC,KAAM,QAERC,UACEL,MAAOC,EAAA,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AMsM,QAAQW,yBASvD9C,EA7IA,CAA0BjL,EAAAC,EAAMuF,WA+IjB7G,EAAA,QAAAE,OAAA6G,EAAA,EAAA7G,CAA0B,SAAAiG,GAAS,OAChD6I,kBAAmB7I,EAAM6I,oBADZ,CAEX3C","file":"assets/content.chunk.c6fd0976ad0c5b059b20.js","sourcesContent":["export default function cleanPath(url: string): string {\r\n const firstSlash = url.indexOf('/');\r\n const relativeUrl = url.substr(firstSlash + 1);\r\n const cleaned = relativeUrl.substr(-1) === '/' ? relativeUrl.substr(0, relativeUrl.length - 1) : relativeUrl;\r\n return cleaned;\r\n}\r\n","import React from 'react';\r\nimport { styled } from '@glitz/react';\r\nimport Link from 'Shared/Link';\r\nimport MainMenuItemType from '../MainMenu/MainMenuItem.type';\r\nimport * as style from 'Shared/Style';\r\n\r\ntype LinkPropType = {\r\n url: string;\r\n isActive?: boolean;\r\n darkMode?: boolean;\r\n};\r\n\r\ntype ItemPropType = {\r\n item: MainMenuItemType;\r\n isActive?: boolean;\r\n darkMode?: boolean;\r\n};\r\n\r\ntype DarkModePropType = {\r\n children: React.ReactNode;\r\n darkMode?: boolean;\r\n};\r\n\r\ntype PropType = LinkPropType | ItemPropType;\r\n\r\nfunction isLink(props: PropType): props is LinkPropType {\r\n return 'url' in props;\r\n}\r\n\r\nconst NotActiveLinkStyled = styled(Link, {\r\n display: 'block',\r\n color: style.primaryDark,\r\n font: {\r\n weight: 400,\r\n size: '16px',\r\n },\r\n ':hover': {\r\n color: style.primaryDark,\r\n textDecoration: 'none',\r\n },\r\n padding: {\r\n top: '3px',\r\n right: '3px',\r\n bottom: '3px',\r\n },\r\n});\r\n\r\nconst Label = ({ darkMode, children }: DarkModePropType) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nconst ActiveLinkStyled = styled(NotActiveLinkStyled, {\r\n fontWeight: 500,\r\n});\r\n\r\nexport default class Item extends React.PureComponent {\r\n render() {\r\n const LinkStyled = this.props.isActive ? ActiveLinkStyled : NotActiveLinkStyled;\r\n if (isLink(this.props)) {\r\n return (\r\n \r\n \r\n \r\n );\r\n } else {\r\n const { url, name } = this.props.item;\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n }\r\n}\r\n","import React from 'react';\r\nimport connect from 'Shared/connect';\r\nimport MainMenuItemType from 'SiteLayout/MainMenu/MainMenuItem.type';\r\nimport { currentUrl } from '@avensia/scope';\r\nimport * as style from 'Shared/Style';\r\nimport { styled } from '@glitz/react';\r\nimport Item from './SubItem';\r\nimport { Down, Up } from 'Shared/Icon/Arrow_forward';\r\nimport cleanPath from 'Shared/cleanPath';\r\n\r\nexport function isRoot(data: MainMenuItemType[] | MainMenuItemType): data is MainMenuItemType[] {\r\n return Array.isArray(data);\r\n}\r\n\r\ntype StateType = {\r\n openMenuItems: MainMenuItemType[];\r\n};\r\n\r\ntype PropType = {\r\n menuItems: MainMenuItemType[];\r\n darkMode?: boolean;\r\n};\r\n\r\ntype DarkModePropType = {\r\n children: React.ReactNode;\r\n darkMode?: boolean;\r\n};\r\n\r\nconst SubNavBox = ({ darkMode, children }: DarkModePropType) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nconst ArrowContainer = styled.span({\r\n width: '30px',\r\n height: '30px',\r\n display: 'flex',\r\n justifyContent: 'flex-end',\r\n margin: {\r\n right: '5px',\r\n },\r\n alignItems: 'center',\r\n cursor: 'pointer',\r\n});\r\n\r\nconst Arrow = {\r\n maxWidth: '12px',\r\n maxHeight: '12px',\r\n color: style.primary,\r\n marginRight: '10px',\r\n fontSize: '1em',\r\n};\r\n\r\nconst ArrowDown = styled(Down, Arrow);\r\n\r\nconst ArrowUp = styled(Up, Arrow);\r\n\r\nconst ArrowUpMargin = styled(ArrowUp, {\r\n marginRight: '12px',\r\n});\r\n\r\nconst DarkArrowDown = styled(ArrowDown, {\r\n color: style.WHITE,\r\n});\r\n\r\nconst DarkArrowUp = styled(ArrowUpMargin, {\r\n color: style.WHITE,\r\n});\r\n\r\nconst Heading = ({ darkMode, children }: DarkModePropType) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nconst ItemRow = styled.div({\r\n display: 'flex',\r\n alignItems: 'center',\r\n});\r\n\r\nconst ChildRow = styled.div({\r\n margin: {\r\n left: '21px',\r\n },\r\n display: 'flex',\r\n alignItems: 'center',\r\n});\r\n\r\nconst ThirdLevelRow = styled.div({\r\n margin: {\r\n left: '42px',\r\n },\r\n});\r\n\r\nconst ItemNameBoxLvl1 = styled.div({\r\n width: '200px',\r\n});\r\n\r\nconst ItemNameBoxLvl2 = styled.div({\r\n width: '176px',\r\n});\r\n\r\nclass SubMenu extends React.Component {\r\n constructor(props: PropType) {\r\n super(props);\r\n\r\n const item = currentUrl().pathname.split('/').length >= 2 ? this.getSecondLevelMenuItem() : [];\r\n this.state = {\r\n openMenuItems: item,\r\n };\r\n }\r\n\r\n getSecondLevelMenuItem = () => {\r\n let item: MainMenuItemType[] = [];\r\n this.props.menuItems.forEach(menu => {\r\n const itemFound = menu.children.find(i => i.url.split('/')[2] === currentUrl().pathname.split('/')[2]);\r\n if (itemFound) {\r\n item = [itemFound];\r\n if (currentUrl().pathname.split('/').length > 4) {\r\n const secondItem = this.getThirdLevelMenuItem(item);\r\n item = [itemFound, secondItem];\r\n }\r\n }\r\n });\r\n return item;\r\n };\r\n\r\n getThirdLevelMenuItem = (item: MainMenuItemType[]) => {\r\n let secondItemFound;\r\n item.forEach(menuItem => {\r\n secondItemFound = menuItem.children.find(i => i.url.split('/')[3] === currentUrl().pathname.split('/')[3]);\r\n });\r\n return secondItemFound;\r\n };\r\n\r\n openSublevel = (menuItem: MainMenuItemType) => {\r\n this.setState(prevState => ({\r\n openMenuItems: [...prevState.openMenuItems, menuItem],\r\n }));\r\n };\r\n\r\n closeSublevel = (menuItem: MainMenuItemType) => {\r\n this.setState({\r\n openMenuItems: this.state.openMenuItems.filter(item => item !== menuItem),\r\n });\r\n };\r\n\r\n render() {\r\n const pathname = currentUrl().pathname;\r\n const item = this.props.menuItems.find(i => i.url.split('/')[1] === pathname.split('/')[1]);\r\n return item && item.children.length > 0 ? (\r\n
\r\n \r\n {item.name}\r\n {item.children.map((menuItem, i) => (\r\n \r\n \r\n \r\n \r\n \r\n {menuItem.children.length > 0 ? (\r\n this.state.openMenuItems.includes(menuItem) ? (\r\n {\r\n this.closeSublevel(menuItem);\r\n }}\r\n >\r\n {this.props.darkMode ? : }\r\n \r\n ) : (\r\n {\r\n this.openSublevel(menuItem);\r\n }}\r\n >\r\n {this.props.darkMode ? : }\r\n \r\n )\r\n ) : null}\r\n \r\n {this.state.openMenuItems &&\r\n this.state.openMenuItems.includes(menuItem) &&\r\n menuItem.children.map((childItem, i) => (\r\n \r\n \r\n \r\n \r\n \r\n {childItem.children.length > 0 ? (\r\n this.state.openMenuItems.includes(childItem) ? (\r\n {\r\n this.closeSublevel(childItem);\r\n }}\r\n >\r\n {this.props.darkMode ? : }\r\n \r\n ) : (\r\n {\r\n this.openSublevel(childItem);\r\n }}\r\n >\r\n {this.props.darkMode ? : }\r\n \r\n )\r\n ) : null}\r\n \r\n {this.state.openMenuItems &&\r\n this.state.openMenuItems.includes(childItem) &&\r\n childItem.children.map((thirdLevel, i) => (\r\n \r\n \r\n \r\n ))}\r\n \r\n ))}\r\n \r\n ))}\r\n \r\n
\r\n ) : null;\r\n }\r\n}\r\n\r\nexport default connect(state => ({\r\n menuItems: state.mainMenu.mainMenuPrimaryItems.concat(state.mainMenu.mainMenuSecondaryItems),\r\n}))(SubMenu);\r\n","import React from 'react';\r\nimport { styled } from '@glitz/react';\r\nimport Link from 'Shared/Link';\r\nimport MainMenuItemType from './MainMenuItem.type';\r\nimport * as style from 'Shared/Style';\r\n\r\ntype LinkPropType = {\r\n url: string;\r\n isActive?: boolean;\r\n darkMode?: boolean;\r\n};\r\n\r\ntype ItemPropType = {\r\n item: MainMenuItemType;\r\n isActive?: boolean;\r\n darkMode?: boolean;\r\n};\r\n\r\ntype PropType = LinkPropType | ItemPropType;\r\n\r\nfunction isLink(props: PropType): props is LinkPropType {\r\n return 'url' in props;\r\n}\r\n\r\nconst NotActiveLinkStyled = styled(Link, {\r\n display: 'block',\r\n color: style.primaryDark,\r\n font: {\r\n weight: 400,\r\n size: '16px',\r\n },\r\n ':hover': {\r\n color: style.primaryDark,\r\n textDecoration: 'none',\r\n },\r\n padding: {\r\n top: '3px',\r\n right: '3px',\r\n bottom: '3px',\r\n },\r\n});\r\n\r\nconst Label = styled.span({\r\n display: 'block',\r\n color: style.primaryDark,\r\n ':hover': {\r\n color: style.primaryDark,\r\n textDecoration: 'none',\r\n },\r\n});\r\n\r\nconst ActiveLinkStyled = styled(NotActiveLinkStyled, {\r\n fontWeight: 500,\r\n});\r\n\r\nexport default class Item extends React.PureComponent {\r\n render() {\r\n const LinkStyled = this.props.isActive ? ActiveLinkStyled : NotActiveLinkStyled;\r\n if (isLink(this.props)) {\r\n return (\r\n \r\n \r\n \r\n );\r\n } else {\r\n const { url, name } = this.props.item;\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n }\r\n}\r\n","import React from 'react';\r\nimport connect from 'Shared/connect';\r\nimport MainMenuItemType from 'SiteLayout/MainMenu/MainMenuItem.type';\r\nimport { currentUrl, translate } from '@avensia/scope';\r\nimport * as style from 'Shared/Style';\r\nimport { styled } from '@glitz/react';\r\nimport Item from './MobileSubMenuItem';\r\nimport cleanPath from 'Shared/cleanPath';\r\n\r\ntype PropType = {\r\n menuItems: MainMenuItemType[];\r\n};\r\n\r\nconst Container = styled.div({\r\n width: '100%',\r\n color: style.primaryDark,\r\n backgroundColor: style.WHITE,\r\n border: {\r\n xy: {\r\n width: 'thin',\r\n style: 'solid',\r\n color: style.secondaryLightest,\r\n },\r\n },\r\n margin: {\r\n top: '0',\r\n right: '49px',\r\n bottom: '30px',\r\n },\r\n padding: {\r\n top: '14px',\r\n left: '21px',\r\n bottom: '18px',\r\n },\r\n height: 'auto',\r\n});\r\n\r\nconst Wrapper = styled.div({\r\n width: '100%',\r\n color: style.primaryDark,\r\n margin: {\r\n top: '2em',\r\n bottom: '4em',\r\n },\r\n});\r\n\r\nclass MobileSubMenu extends React.Component {\r\n render() {\r\n const currentPath = cleanPath(currentUrl().pathname);\r\n const rootPath = currentPath.split('/')[0];\r\n const firstLevelItem = this.props.menuItems.find(i => cleanPath(i.url) === rootPath);\r\n if (firstLevelItem === undefined) {\r\n console.warn('MobileSubMenu:could not find first level menu item');\r\n return null;\r\n }\r\n const firstLevelPath = rootPath + '/' + currentPath.split('/')[1];\r\n const secondLevelItem = firstLevelItem.children.find(i => cleanPath(i.url) === firstLevelPath);\r\n // Does the current item has children? Then display those in the menu instead:\r\n const currentItem =\r\n secondLevelItem && secondLevelItem.children.length > 0\r\n ? secondLevelItem\r\n : firstLevelItem.children.length > 0\r\n ? firstLevelItem\r\n : undefined;\r\n return !!currentItem ? (\r\n <>\r\n \r\n
{translate('/ContentPage/SubPagesMenuHeader')}
\r\n \r\n {currentItem.children.map((menuItem, i) => (\r\n \r\n ))}\r\n \r\n
\r\n \r\n ) : null;\r\n }\r\n}\r\n\r\nexport default connect(state => ({\r\n menuItems: state.mainMenu.mainMenuPrimaryItems.concat(state.mainMenu.mainMenuSecondaryItems),\r\n}))(MobileSubMenu);\r\n","import * as React from 'react';\r\nimport { styled } from '@glitz/react';\r\nimport * as style from 'Shared/Style';\r\nimport { epiPropertyValue, Link, translate, isIE } from '@avensia/scope';\r\nimport { media } from '@glitz/core';\r\nimport { Down, Up } from 'Shared/Icon/Arrow_forward';\r\n\r\ntype PropType = {\r\n titles: any[];\r\n setActive: Function;\r\n activeTitle: string;\r\n anchorHeading: Scope.Property;\r\n};\r\n\r\ntype StateType = {\r\n isOpen: boolean;\r\n};\r\n\r\nclass ArticleLinks extends React.Component {\r\n constructor(props: PropType) {\r\n super(props);\r\n this.state = {\r\n isOpen: true,\r\n };\r\n }\r\n\r\n toggleArticleLinks = () => {\r\n this.setState({\r\n isOpen: !this.state.isOpen,\r\n });\r\n };\r\n\r\n render() {\r\n const HEADING = epiPropertyValue(this.props.anchorHeading)\r\n ? epiPropertyValue(this.props.anchorHeading)\r\n : translate('/ContentPage/InThisArticle');\r\n return (\r\n \r\n \r\n {HEADING}\r\n {\r\n this.toggleArticleLinks();\r\n }}\r\n >\r\n {this.state.isOpen ? : }\r\n \r\n \r\n {this.state.isOpen && (\r\n \r\n {this.props.titles.map((title, index) => {\r\n return (\r\n \r\n {!isIE() ? (\r\n this.props.setActive(title.id)}>\r\n {this.props.activeTitle === title.id ? (\r\n {title.title}\r\n ) : (\r\n {title.title}\r\n )}\r\n \r\n ) : (\r\n this.props.setActive(title.id)}>\r\n {this.props.activeTitle === title.id ? (\r\n {title.title}\r\n ) : (\r\n {title.title}\r\n )}\r\n \r\n )}\r\n \r\n );\r\n })}\r\n \r\n )}\r\n \r\n );\r\n }\r\n}\r\n\r\nconst AnchorTitle = styled.h2({\r\n margin: {\r\n left: 0,\r\n top: '15px',\r\n },\r\n font: {\r\n size: '16px',\r\n weight: 'bold',\r\n },\r\n color: style.primaryDark,\r\n ...media(\r\n { minWidth: '768px' },\r\n {\r\n margin: {\r\n left: '25px',\r\n top: '12px',\r\n bottom: '7px',\r\n },\r\n fontSize: '18px',\r\n },\r\n ),\r\n});\r\n\r\nconst AnchorHeader = styled.div({\r\n display: 'flex',\r\n justifyContent: 'space-between',\r\n});\r\n\r\nconst ArrowContainer = styled.span({\r\n width: '30px',\r\n height: '30px',\r\n display: 'flex',\r\n margin: {\r\n right: '5px',\r\n top: '7px',\r\n },\r\n alignItems: 'center',\r\n cursor: 'pointer',\r\n});\r\n\r\nconst Arrow = {\r\n maxWidth: '12px',\r\n maxHeight: '12px',\r\n color: style.primary,\r\n margin: {\r\n right: '10px',\r\n },\r\n fontSize: '1em',\r\n};\r\n\r\nconst ArrowDown = styled(Down, Arrow);\r\n\r\nconst ArrowUp = styled(Up, Arrow);\r\n\r\nconst AnchorLinks = styled.div({\r\n border: {\r\n bottom: {\r\n width: '1px',\r\n style: 'solid',\r\n color: style.primaryDark,\r\n },\r\n },\r\n ...media(\r\n { minWidth: '768px' },\r\n {\r\n margin: {\r\n bottom: '29px',\r\n x: 0,\r\n },\r\n whiteSpace: 'nowrap',\r\n background: '#FFF',\r\n width: '250px',\r\n overflow: 'hidden',\r\n border: {\r\n xy: {\r\n width: '1px',\r\n style: 'solid',\r\n color: '#D7D7D7',\r\n },\r\n },\r\n textDecoration: 'none',\r\n },\r\n ),\r\n});\r\n\r\nconst AnchorUL = styled.ul({\r\n padding: {\r\n x: 0,\r\n },\r\n margin: {\r\n top: 0,\r\n bottom: '36px',\r\n left: '1px',\r\n },\r\n textDecoration: 'none',\r\n wordWrap: 'break-word',\r\n listStyle: 'none',\r\n ...media(\r\n { minWidth: '768px' },\r\n {\r\n marginTop: '12px',\r\n },\r\n ),\r\n});\r\n\r\nconst AnchorLI = styled.li({\r\n margin: {\r\n bottom: '7px',\r\n },\r\n ...media(\r\n { minWidth: '768px' },\r\n {\r\n marginBottom: 0,\r\n },\r\n ),\r\n});\r\n\r\nconst ArticleLink = styled.span({\r\n display: 'block',\r\n color: style.primaryDark,\r\n fontSize: 14,\r\n textDecoration: 'none',\r\n whiteSpace: 'pre-wrap',\r\n ...media(\r\n { minWidth: '768px' },\r\n {\r\n padding: {\r\n left: '10px',\r\n },\r\n fontSize: '16px',\r\n border: {\r\n left: {\r\n width: '15px',\r\n style: 'solid',\r\n color: 'transparent',\r\n },\r\n },\r\n margin: {\r\n top: '5px',\r\n },\r\n },\r\n ),\r\n});\r\n\r\nconst SelectedArticleLink = styled(ArticleLink, {\r\n ...media(\r\n { minWidth: '768px' },\r\n {\r\n borderLeft: {\r\n color: style.primaryDark,\r\n },\r\n fontWeight: 500,\r\n },\r\n ),\r\n});\r\n\r\nexport default ArticleLinks;\r\n","/**\r\n * @ComponentFor ContentPageViewModel\r\n */\r\nimport React from 'react';\r\nimport ContentPageViewModelType from './ContentPageViewModel.type';\r\nimport { EpiProperty, epiPropertyValue, Breakpoint, translate } from '@avensia/scope';\r\nimport { styled } from '@glitz/react';\r\nimport SubMenu from 'SiteLayout/MainMenu/submenu';\r\nimport MobileSubMenu from 'SiteLayout/MainMenu/MobileSubMenu';\r\nimport Viewport from 'Shared/Viewport';\r\nimport * as style from 'Shared/Style';\r\nimport { media } from '@glitz/core';\r\nimport { Main, Appearance, Heading } from 'Shared/PageLayout';\r\nimport connect from 'Shared/connect';\r\nimport ArticleLinks from './ArticleLinks';\r\n\r\ntype StateType = {\r\n titles: Array<{ title: string; id: string }>;\r\n activeTitle: string;\r\n};\r\n\r\ntype ConnectStateType = {\r\n currentBreakpoint: number;\r\n};\r\n\r\ntype PropType = ContentPageViewModelType &\r\n ConnectStateType & {\r\n name: string;\r\n };\r\n\r\nconst Content = styled.div({\r\n display: 'flex',\r\n justifyContent: 'space-between',\r\n});\r\n\r\nconst CenterContent = styled.div({\r\n width: '100%',\r\n margin: {\r\n top: '39px',\r\n },\r\n padding: {\r\n x: 0,\r\n },\r\n});\r\n\r\nconst MainWrapper = styled(Main, {\r\n width: '100%',\r\n margin: {\r\n top: '19px',\r\n left: 'auto',\r\n right: 'auto',\r\n },\r\n padding: {\r\n left: '28px',\r\n right: '28px',\r\n },\r\n ...media(style.mediaMinQueries[Breakpoint.Small], {\r\n margin: {\r\n top: '80px',\r\n },\r\n padding: {\r\n left: '4vw',\r\n right: '4vw',\r\n },\r\n }),\r\n ...media(style.mediaMinQueries[Breakpoint.Large], {\r\n maxWidth: 1800,\r\n padding: {\r\n left: '8vw',\r\n right: '8vw',\r\n },\r\n }),\r\n});\r\n\r\nconst SecondaryContent = styled.div({\r\n margin: {\r\n left: '67px',\r\n },\r\n position: 'sticky',\r\n top: '35px',\r\n bottom: '35px',\r\n width: '250px',\r\n ...media(style.mediaMaxQueries[Breakpoint.Medium], {\r\n margin: {\r\n left: '30px',\r\n },\r\n }),\r\n});\r\n\r\nconst SecondaryContentWrapper = styled.div({\r\n margin: {\r\n bottom: '29px',\r\n top: '39px',\r\n },\r\n position: 'relative',\r\n});\r\n\r\nconst HeadingWrapper = styled.div({\r\n ...media(style.mediaMinQueries[Breakpoint.Small], {\r\n paddingTop: '40px',\r\n paddingRight: 0,\r\n paddingBottom: 0,\r\n paddingLeft: 0,\r\n }),\r\n});\r\n\r\nconst AttachmentBlockWrapper = styled.div({\r\n background: '#f1f2f2',\r\n margin: {\r\n x: style.medium,\r\n y: style.medium,\r\n },\r\n padding: {\r\n x: style.medium,\r\n y: style.medium,\r\n },\r\n ...media(style.mediaMinQueries[Breakpoint.Small], {\r\n margin: {\r\n x: 0,\r\n y: 0,\r\n },\r\n }),\r\n});\r\n\r\nconst AttachmentBlockTitle = styled.h2({\r\n marginBottom: '7px',\r\n fontSize: '16px',\r\n lineHeight: '32px',\r\n color: style.primaryDark,\r\n fontWeight: 500,\r\n ...media(style.mediaMinQueries[Breakpoint.Small], {\r\n fontSize: '18px',\r\n }),\r\n});\r\n\r\nconst BkgPattern = styled.div({\r\n ...media(style.mediaMinQueries[Breakpoint.Small], {\r\n backgroundImage:\r\n 'url(' +\r\n require('../Shared/Image/PatternLeft.png') +\r\n '), url(' +\r\n require('../Shared/Image/PatternRight.png') +\r\n ') ',\r\n backgroundPosition: 'top left, top right',\r\n backgroundRepeat: 'repeat-y',\r\n position: 'absolute',\r\n top: 0,\r\n bottom: 0,\r\n width: '100%',\r\n zIndex: -1,\r\n }),\r\n});\r\n\r\nconst MenuBkg = styled.div({\r\n position: 'fixed',\r\n ...media(style.mediaMinQueries[Breakpoint.Small], {\r\n position: 'absolute',\r\n }),\r\n background: style.primaryDark,\r\n zIndex: -1,\r\n top: 0,\r\n width: '100%',\r\n height: '65px',\r\n ...media(style.mediaMinQueries[Breakpoint.Medium], {\r\n height: '80px',\r\n }),\r\n});\r\n\r\nclass ContentPage extends React.Component {\r\n ref: React.RefObject;\r\n constructor(props: PropType) {\r\n super(props);\r\n this.ref = React.createRef();\r\n this.state = {\r\n titles: [],\r\n activeTitle: '',\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const currentTitle = window.location.hash.replace('#', '');\r\n this.setState({ titles: this.setIdOnElements(currentTitle) });\r\n\r\n document.addEventListener('scroll', () => this.scroll());\r\n }\r\n\r\n scroll = () => {\r\n const windscroll = window.scrollY;\r\n let matchingTitles: string = '';\r\n\r\n if (windscroll >= 285) {\r\n this.state.titles.map(title => {\r\n const articleTitle = document.getElementById(title.id);\r\n\r\n if (articleTitle) {\r\n const bodyPosition = document.body.getBoundingClientRect();\r\n const titlePosition = articleTitle.getBoundingClientRect();\r\n const offset = titlePosition.top - bodyPosition.top;\r\n if (offset <= windscroll + 130) {\r\n matchingTitles = title.id;\r\n }\r\n }\r\n });\r\n this.setActiveTitle(matchingTitles);\r\n }\r\n };\r\n\r\n setIdOnElements = (currentTitle: string) => {\r\n const container = this.ref.current;\r\n const headings = container.querySelectorAll('h1, h2, h3');\r\n const titles = [] as Array<{ title: string; id: string }>;\r\n\r\n Array.from(headings).map(title => {\r\n const trimmedTitle = title.textContent.replace(/[^A-Za-z0-9]+/gi, '-');\r\n title.id = trimmedTitle;\r\n const titleObject = { title: title.textContent, id: title.id };\r\n titles.push(titleObject);\r\n });\r\n if (currentTitle) {\r\n this.setState({ activeTitle: currentTitle });\r\n }\r\n return titles;\r\n };\r\n\r\n setActiveTitle = (title: string) => {\r\n this.setState({ activeTitle: title });\r\n };\r\n\r\n render() {\r\n const marginTopOnAttachments = this.state.titles.length > 1 ? '25px' : '0px';\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {(isCompact: boolean) =>\r\n isCompact &&\r\n !epiPropertyValue(this.props.content.disableAnchorLinks) &&\r\n this.state.titles.length > 1 && (\r\n \r\n )\r\n }\r\n \r\n \r\n {this.props.currentBreakpoint >= Breakpoint.Medium && }\r\n \r\n \r\n {this.props.currentBreakpoint < Breakpoint.Medium && }\r\n \r\n \r\n {(isCompact: boolean) =>\r\n !isCompact && (\r\n <>\r\n {((!epiPropertyValue(this.props.content.disableAnchorLinks) && this.state.titles.length > 1) ||\r\n epiPropertyValue(this.props.content.attachmentBlocks)) && (\r\n \r\n \r\n {!epiPropertyValue(this.props.content.disableAnchorLinks) &&\r\n this.state.titles.length > 1 && (\r\n \r\n )}\r\n {epiPropertyValue(this.props.content.attachmentBlocks) && (\r\n \r\n {translate('/ContentPage/DownloadHeading')}\r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n )\r\n }\r\n \r\n \r\n \r\n {(isCompact: boolean) =>\r\n isCompact &&\r\n epiPropertyValue(this.props.content.attachmentBlocks) && (\r\n \r\n {translate('/ContentPage/DownloadHeading')}\r\n \r\n \r\n )\r\n }\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect(state => ({\r\n currentBreakpoint: state.currentBreakpoint,\r\n}))(ContentPage);\r\n"],"sourceRoot":""}