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AU,8BAA6BhB,SAAE0L,MAE5C,C,0FC9BT,MAwDA,EAxDoBzO,IAClB,IAAKA,EAAM4O,YAAa,OAAO,KAE/B,MAAMC,EAAmB7K,IAAW,CAClC,gBAAgB,KACbhE,EAAM8O,YAGX,OACErK,EAAAA,EAAAA,MAAA,OACE,aAAYzE,EAAMqJ,KAClB,mBAAiB,mBACjBtF,UAAW8K,EACXE,MAAMC,EAAAA,EAAAA,IAAWhP,EAAMiP,UAAUlM,SAAA,EAEjCF,EAAAA,EAAAA,KAAA,QAAMnB,GAAG,mBAAmBqC,UAAU,sBAAqBhB,SACxD/C,EAAM0E,SAET7B,EAAAA,EAAAA,KAAA,MAAAE,SACG/C,EAAM4O,YAAYjN,KAAI,CAACuN,EAAY3K,KAEhC1B,EAAAA,EAAAA,KAAA,MAA+BkB,UAAU,qBAAoBhB,SACzDmM,EAAWC,aAGXtM,EAAAA,EAAAA,KAAA,KAAG,eAAa,OAAOyD,KAAM4I,EAAW9F,IAAIrG,SACzCmM,EAAWP,QAHd9L,EAAAA,EAAAA,KAAA,KAAGyD,KAAM4I,EAAW9F,IAAIrG,SAAEmM,EAAWP,QAFhC,aAAapK,WAYxB,C","sources":["platformui/PrintIframe/index.js","platformui/ArticleFooter/index.js","platformui/Person/index.js","platformui/Share/index.js","platformui/ArticleFooter/regionarticlefooter.js","platformui/Localnav/index.js","platformui/PrintSidebar/index.js","platformui/Localnav/item.js","platformui/Breadcrumb/index.js"],"sourcesContent":["import React, { useRef, useEffect } from 'react';\r\n\r\nconst PrintIframe = (props) => {\r\n const { SelectedRadio, PrintableItems, CheckedItems, SetPrintClicked } =\r\n props;\r\n const iframeRef = useRef(null);\r\n\r\n const prepareContent = () => {\r\n if (iframeRef.current) {\r\n const doc =\r\n iframeRef.current.contentDocument ||\r\n iframeRef.current.contentWindow.document;\r\n\r\n var printItems = PrintableItems;\r\n\r\n if (SelectedRadio !== 1) {\r\n const filteredItems = PrintableItems?.filter((item) => {\r\n return CheckedItems?.includes(item);\r\n });\r\n printItems = filteredItems;\r\n }\r\n\r\n const styleElements = Array.from(\r\n document.querySelectorAll('style')\r\n ).filter((style) => style.id !== 'onetrust-style');\r\n var styleContent = styleElements.map((style) => style.outerHTML).join('');\r\n\r\n const headerMainDiv = document.querySelector('.c-header__main');\r\n const headerMainHTML = headerMainDiv ? headerMainDiv.outerHTML : '';\r\n const regionLabel = document.querySelector('.regionlabel');\r\n const regionLabelHTML = regionLabel ? regionLabel.outerHTML : '';\r\n\r\n const outerHTML =\r\n printItems?.map((item) => item.outerHTML).join('') ?? '';\r\n\r\n const updatedOuterHTML = outerHTML.replace(\r\n /\\/\\/play\\.media/g,\r\n 'https://play.media'\r\n );\r\n\r\n doc.open();\r\n doc.write(`\r\n \r\n \r\n ${styleContent}\r\n \r\n \r\n \r\n ${headerMainHTML}\r\n ${regionLabelHTML}\r\n ${updatedOuterHTML}\r\n \r\n \r\n `);\r\n\r\n const elements = doc?.querySelectorAll('.regional-container');\r\n elements?.forEach((element) => element.remove());\r\n doc.close();\r\n }\r\n };\r\n\r\n const handleLoad = () => {\r\n if (iframeRef.current) {\r\n iframeRef.current.contentWindow.focus();\r\n iframeRef.current.contentWindow.print();\r\n SetPrintClicked(false);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n const initializeIframe = async () => {\r\n prepareContent();\r\n };\r\n\r\n initializeIframe();\r\n }, [SelectedRadio, PrintableItems, CheckedItems]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n );\r\n};\r\n\r\nexport default PrintIframe;\r\n","import React from 'react';\r\nimport { shape, node, bool, arrayOf, string } from 'prop-types';\r\nimport Person, { propTypes as personPropTypes } from '../Person';\r\nimport classNames from 'classnames';\r\nimport RegionalArticleFooter from './regionarticlefooter';\r\nimport CollapsiblePanel from '../CollapsiblePanel';\r\n\r\nconst FirstColumn = (props) => {\r\n return (\r\n \r\n {props.children}\r\n \r\n );\r\n};\r\n\r\nconst SecondColumn = (props) => {\r\n return (\r\n \r\n {props.children}\r\n \r\n );\r\n};\r\n\r\nconst ArticleFooter = (props) => {\r\n const {\r\n ArticleFooter,\r\n Translations,\r\n FooterHasCollapsibleRoleGroups,\r\n isRegional,\r\n RegionalName,\r\n } = props;\r\n\r\n if (!ArticleFooter) return null;\r\n\r\n const cssClasses = classNames({\r\n 'c-articlefooter': true,\r\n 'c-articlefooter--regional-below': isRegional,\r\n });\r\n\r\n const dataPrintSidebarTitle = Translations?.articlefooter || '';\r\n\r\n return (\r\n
\r\n \r\n {ArticleFooter.Region && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n\r\n {ArticleFooter.RoleGroups && (\r\n \r\n )}\r\n \r\n {ArticleFooter.InformationText && (\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nconst ArticleFooterContent = (props) => {\r\n return (\r\n props.ArticleFooter.RoleGroups &&\r\n props.ArticleFooter.RoleGroups.map((item, index) => {\r\n return (\r\n
\r\n
\r\n \r\n {item.Label}: \r\n \r\n\r\n {props.FooterHasCollapsibleRoleGroups ? (\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\n })\r\n );\r\n};\r\n\r\nconst RoleItem = (props) => {\r\n const items =\r\n props.Persons &&\r\n props.Persons.map((person, index) => {\r\n return ;\r\n });\r\n return items;\r\n};\r\n\r\nconst ArticleFooterReviewDate = ({ Label, LastReview, contentDirection }) => {\r\n if (!LastReview) return null;\r\n\r\n return (\r\n
\r\n \r\n {Label}:\r\n \r\n \r\n {LastReview}\r\n \r\n
\r\n );\r\n};\r\n\r\nconst ArticleFooterPublishDate = ({ Label, PublishDate, contentDirection }) => {\r\n if (!PublishDate) return null;\r\n\r\n return (\r\n
\r\n \r\n {Label}:\r\n \r\n \r\n {PublishDate}\r\n \r\n
\r\n );\r\n};\r\n\r\nconst ArticleFooterApprovedDate = ({ Label, ApprovedDate }) => {\r\n if (!ApprovedDate) return null;\r\n\r\n return (\r\n
\r\n \r\n {Label}:\r\n \r\n \r\n {ApprovedDate}\r\n \r\n
\r\n );\r\n};\r\n\r\nconst ArticleFooterApprovedBy = ({ Label, ApprovedBy, isRegional }) => {\r\n if (!ApprovedBy) return null;\r\n return (\r\n
\r\n \r\n {Label}:\r\n \r\n \r\n {isRegional ? (\r\n {ApprovedBy}\r\n ) : (\r\n ApprovedBy.map(\r\n (item, i) =>\r\n item.name && (\r\n \r\n {item.url ? {item.name} : item.name}\r\n \r\n )\r\n )\r\n )}\r\n \r\n
\r\n );\r\n};\r\n\r\nArticleFooter.propTypes = {\r\n ArticleFooter: shape({\r\n Region: node,\r\n PublishDate: node,\r\n LastReview: node,\r\n ApprovedDate: node,\r\n ApprovedBy: node,\r\n Rolegroups: arrayOf(\r\n shape({\r\n Label: node,\r\n Persons: arrayOf(\r\n shape({\r\n ...personPropTypes,\r\n })\r\n ),\r\n })\r\n ),\r\n }),\r\n Translations: shape({\r\n revisiondate: string,\r\n publishdate: string,\r\n approveddate: string,\r\n approvedby: string,\r\n }),\r\n isRegional: bool,\r\n RegionalName: string,\r\n HasFooterHeading: bool,\r\n NationalHeading: string,\r\n FooterHasCollapsibleRoleGroups: bool,\r\n contentDirection: string,\r\n};\r\n\r\nexport default ArticleFooter;\r\n","import React from 'react';\r\nimport { node } from 'prop-types';\r\n\r\nconst Person = (props) => {\r\n return (\r\n \r\n {props.FirstName} {props.LastName} {props.Title} {props.Workplace}{' '}\r\n {props.City}\r\n \r\n );\r\n};\r\n\r\nexport const propTypes = {\r\n FirstName: node,\r\n LastName: node,\r\n Title: node,\r\n Workplace: node,\r\n City: node,\r\n};\r\n\r\nPerson.propTypes = propTypes;\r\n\r\nexport default Person;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport PrintSidebar from '../PrintSidebar';\r\nimport useWindowLocationHref from '../Hooks/useWindowLocation';\r\n\r\nconst Share = ({ ShareChannels, Translations, PrintsideBarEnabled }) => {\r\n if (!ShareChannels) return null;\r\n const href = useWindowLocationHref();\r\n\r\n return (\r\n
\r\n

{Translations && Translations.share}

\r\n
    \r\n {ShareChannels.map((item, key) => {\r\n const shareChannelClass = classNames({\r\n 'c-share__icon': true,\r\n [`c-share__icon--${item.Channel}`]: true,\r\n });\r\n\r\n return (\r\n
  • \r\n {item.Channel !== 'mailto' ? (\r\n {\r\n navigator.clipboard.writeText(item.ShareURL);\r\n }}\r\n >\r\n \r\n \r\n {Translations && Translations.copylink}\r\n \r\n \r\n ) : (\r\n {\r\n if (typeof window !== 'undefined') {\r\n window.location.href = item.ShareURL;\r\n }\r\n }}\r\n >\r\n \r\n \r\n {Translations && Translations.tipafriend}\r\n \r\n \r\n )}\r\n
  • \r\n );\r\n })}\r\n
  • \r\n {PrintsideBarEnabled ? (\r\n \r\n ) : (\r\n {\r\n window.print();\r\n }}\r\n title={Translations && Translations.print}\r\n >\r\n \r\n \r\n {Translations && Translations.print}\r\n \r\n \r\n )}\r\n
  • \r\n
\r\n
\r\n );\r\n};\r\n\r\nShare.propTypes = {\r\n ShareChannels: PropTypes.array,\r\n Translations: PropTypes.object,\r\n PrintsideBarEnabled: PropTypes.bool,\r\n};\r\n\r\nexport default Share;\r\n","import React from 'react';\r\n\r\nconst RegionArticleFooter = (props) => {\r\n return (\r\n
\r\n

{props.Heading}

\r\n
\r\n );\r\n};\r\n\r\nexport default RegionArticleFooter;\r\n","import React from 'react';\r\nimport Item from './item';\r\n\r\nconst Localnav = (props) => {\r\n if (!props.Menu) return null;\r\n\r\n const firstLevel = props.Menu.map((menuItem, index) => {\r\n return ;\r\n });\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default Localnav;\r\n","import React, { useState, useEffect, useRef } from 'react';\r\nimport classNames from 'classnames';\r\nimport { stripHtml } from '../Helpers';\r\nimport useWindowLocationHref from '../Hooks/useWindowLocation';\r\nimport PrintIframe from '../PrintIframe';\r\n\r\nconst PrintSidebar = (props) => {\r\n const { Translations } = props;\r\n const href = useWindowLocationHref();\r\n\r\n const [isSidebarOpen, setSidebarOpen] = useState(false);\r\n const [checkedItems, setCheckedItems] = useState([]);\r\n const [selectedRadio, setSelectedRadio] = useState(0);\r\n const [printableItems, setPrintableItems] = useState([]);\r\n const [printableChildren, setPrintableChildren] = useState([]);\r\n const [printClicked, setPrintClicked] = useState(false);\r\n\r\n const sidebarRef = useRef(null);\r\n const sidebarToggleButtonRef = useRef(null);\r\n const elementsRef = useRef([]);\r\n\r\n const handleClickOutside = (event) => {\r\n if (\r\n sidebarRef.current &&\r\n !sidebarRef.current.contains(event.target) &&\r\n sidebarToggleButtonRef.current &&\r\n !sidebarToggleButtonRef.current.contains(event.target)\r\n ) {\r\n setSidebarOpen(false);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n const mainElement = document.querySelector('main');\r\n const elements = mainElement\r\n ? mainElement.querySelectorAll('[data-print-sidebar-title]')\r\n : [];\r\n const heading = mainElement ? mainElement.querySelector('h1') : '';\r\n elementsRef.current = elements ?? [];\r\n\r\n const imgblockMediaSliderChildren = Array.from(elements)\r\n .filter((item) => item.nodeName === 'FIGURE')\r\n .filter((figures) =>\r\n figures.className.includes('c-imageblock--is-gallery')\r\n );\r\n\r\n const chapterContainerChildren = Array.from(elements).filter(\r\n (item) =>\r\n item.getAttribute('data-is-member-of-chapter-container') === 'true'\r\n );\r\n\r\n const chapterChildren = Array.from(elements).filter(\r\n (item) => item.getAttribute('data-is-member-of-chapter') === 'true'\r\n );\r\n\r\n const links = Array.from(elements).filter(\r\n (item) =>\r\n item.dataset.linklist === 'link-list-container' &&\r\n item.offsetParent &&\r\n item.offsetParent.hasAttribute('data-list-container')\r\n );\r\n\r\n setPrintableChildren([\r\n ...imgblockMediaSliderChildren,\r\n ...links,\r\n ...chapterContainerChildren,\r\n ...chapterChildren,\r\n ]);\r\n\r\n const removedContainerChildren = Array.from(elements).filter(\r\n (item) =>\r\n item.offsetParent &&\r\n !item.offsetParent.hasAttribute('data-list-container') &&\r\n !item.className.includes('c-imageblock--is-gallery') &&\r\n item.getAttribute('data-is-member-of-chapter-container') !== 'true' &&\r\n item.getAttribute('data-is-member-of-chapter') !== 'true'\r\n );\r\n\r\n setPrintableItems(removedContainerChildren);\r\n\r\n if (elements?.item(0) === heading) {\r\n handlePrintSelection(heading);\r\n }\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (isSidebarOpen) {\r\n document.addEventListener('mousedown', handleClickOutside);\r\n } else {\r\n document.removeEventListener('mousedown', handleClickOutside);\r\n }\r\n\r\n return () => {\r\n document.removeEventListener('mousedown', handleClickOutside);\r\n };\r\n }, [isSidebarOpen]);\r\n\r\n const handleRadioChange = (index) => {\r\n setSelectedRadio(index);\r\n };\r\n\r\n const handlePrintSelection = (item) => {\r\n const mediaType = item.getAttribute('data-type-media-slider');\r\n const linkListContainer = item.getAttribute('data-list-container');\r\n const chapterContainer = item.getAttribute('data-chapter-container');\r\n const chapter = item.getAttribute('data-is-chapter');\r\n\r\n let listOfImgElement = [];\r\n const isMediaSlider = mediaType === 'MediaSlider';\r\n const isLinkListContainer = linkListContainer === 'data-list-container';\r\n const isChapterContainer = chapterContainer === 'data-chapter-container';\r\n const isChapter = chapter === 'isChapter';\r\n\r\n if (isMediaSlider) {\r\n listOfImgElement = printableChildren\r\n ?.filter((item) => item.nodeName === 'FIGURE')\r\n .filter((figures) =>\r\n figures.className.includes('c-imageblock--is-gallery')\r\n );\r\n }\r\n if (isChapter) {\r\n const listOfElementblockchapter = printableChildren?.filter(\r\n (name) => name.getAttribute('data-is-member-of-chapter') === 'true'\r\n );\r\n listOfImgElement = [...listOfImgElement, ...listOfElementblockchapter];\r\n }\r\n if (isChapterContainer) {\r\n const listOfElementblock = printableChildren?.filter(\r\n (name) =>\r\n name.getAttribute('data-is-member-of-chapter-container') === 'true'\r\n );\r\n listOfImgElement = [...listOfImgElement, ...listOfElementblock];\r\n }\r\n if (isLinkListContainer) {\r\n const listOfElement = printableChildren?.filter((item) =>\r\n item.offsetParent.hasAttribute('data-list-container')\r\n );\r\n listOfImgElement = [...listOfImgElement, ...listOfElement];\r\n }\r\n\r\n setCheckedItems((prevItems) => {\r\n if (!prevItems.includes(item)) {\r\n const newItemsList = [...prevItems, item, ...listOfImgElement];\r\n return [...new Set(newItemsList)];\r\n }\r\n\r\n const filteredItems = prevItems.filter((i) => i !== item);\r\n\r\n if (isMediaSlider) {\r\n return filteredItems.filter(\r\n (figures) => !figures.className.includes('c-imageblock--is-gallery')\r\n );\r\n }\r\n\r\n if (isLinkListContainer) {\r\n return filteredItems.filter(\r\n (item) => !item.offsetParent?.hasAttribute('data-list-container')\r\n );\r\n }\r\n if (isChapterContainer) {\r\n return filteredItems.filter(\r\n (item) =>\r\n item.getAttribute('data-is-member-of-chapter-container') !== 'true'\r\n );\r\n }\r\n if (isChapter) {\r\n return filteredItems.filter(\r\n (item) => item.getAttribute('data-is-member-of-chapter') !== 'true'\r\n );\r\n }\r\n return filteredItems;\r\n });\r\n };\r\n\r\n const togglePrintSidebar = () => {\r\n setSidebarOpen(!isSidebarOpen);\r\n };\r\n\r\n const getPrintSelectionTitle = (item) => {\r\n let dataPrintSidebarTitle = item.getAttribute('data-print-sidebar-title');\r\n let dataPrintSidebarTitleRegion = item.getAttribute(\r\n 'data-print-sidebar-title-region'\r\n );\r\n\r\n if (dataPrintSidebarTitle) {\r\n const words = dataPrintSidebarTitle.split(/\\s+/);\r\n return words.length > 5\r\n ? words.slice(0, 5).join(' ') +\r\n '...' +\r\n (dataPrintSidebarTitleRegion ? ` (Regionalt)` : '')\r\n : dataPrintSidebarTitle +\r\n (dataPrintSidebarTitleRegion ? ` (Regionalt)` : '');\r\n } else {\r\n const words = item.innerText.split(/\\s+/);\r\n return words.length > 5\r\n ? words.slice(0, 5).join(' ') + '...'\r\n : item.innerText;\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n {\r\n e.preventDefault();\r\n togglePrintSidebar();\r\n }}\r\n title={Translations && Translations.print}\r\n className=\"c-printsidebar-toggle-button\"\r\n data-event-category={href || 'novalue'}\r\n data-event-action={Translations.print}\r\n data-event-value={href || 'novalue'}\r\n data-event-name={Translations.print}\r\n >\r\n \r\n \r\n {Translations && Translations.print}\r\n \r\n \r\n \r\n
\r\n

\r\n {Translations.printsidebartitle}\r\n

\r\n \r\n {Translations.printsidebarclose}\r\n \r\n \r\n
\r\n
\r\n

\r\n {Translations.printsidebarselectiontitle}\r\n

\r\n
\r\n {Translations.printsidebarselectionparts && (\r\n handleRadioChange(0)}\r\n >\r\n \r\n {Translations.printsidebarselectionparts}\r\n
\r\n )}\r\n {Translations.printsidebarselectionwholepage && (\r\n handleRadioChange(1)}\r\n >\r\n \r\n {Translations.printsidebarselectionwholepage}\r\n
\r\n )}\r\n \r\n \r\n {selectedRadio !== 1 && (\r\n
\r\n

{Translations.printsidebarselectionwhatparts}

\r\n
\r\n {printableItems &&\r\n printableItems.map((item, index) => {\r\n if (!item?.innerText) return;\r\n let content = (\r\n \r\n );\r\n return (\r\n handlePrintSelection(item)}\r\n >\r\n \r\n {content}\r\n
\r\n );\r\n })}\r\n
\r\n \r\n )}\r\n
\r\n {selectedRadio === 1 ? (\r\n setPrintClicked(true)}\r\n >\r\n \r\n {Translations.printbuttonwholepage}\r\n \r\n ) : (\r\n setPrintClicked(true)}\r\n >\r\n \r\n {Translations.printbuttonparts}\r\n \r\n )}\r\n
\r\n \r\n {printClicked && (\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default PrintSidebar;\r\n","import React from 'react';\r\nimport classNames from 'classnames';\r\n\r\nconst Item = (item) => {\r\n const classes = classNames({\r\n 'c-localnav__list__item': true,\r\n 'c-localnav__list__item--has-children': !!item.Children,\r\n 'c-localnav__list__item--is-selected': item.IsCurrentPage,\r\n 'c-localnav__list__item--is-open': item.ActivePath,\r\n });\r\n\r\n const secondLevel =\r\n item.Children &&\r\n item.Children.map((child, index) => (\r\n \r\n \r\n {child.Text}\r\n \r\n \r\n ));\r\n\r\n return (\r\n
  • \r\n \r\n {item.Text}\r\n \r\n {item.Children && (\r\n
      {secondLevel}
    \r\n )}\r\n
  • \r\n );\r\n};\r\n\r\nexport default Item;\r\n","import React from 'react';\r\nimport { object, shape, arrayOf, string, node, bool } from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport { useSweLang } from '../Helpers';\r\n\r\nconst BreadCrumb = (props) => {\r\n if (!props.Breadcrumbs) return null;\r\n\r\n const componentClasses = classNames({\r\n 'c-breadcrumb': true,\r\n ...props.Modifiers,\r\n });\r\n\r\n return (\r\n \r\n \r\n {props.Label}\r\n \r\n
      \r\n {props.Breadcrumbs.map((breadcrumb, index) => {\r\n return (\r\n
    1. \r\n {!breadcrumb.CurrentPage ? (\r\n {breadcrumb.Text}\r\n ) : (\r\n \r\n {breadcrumb.Text}\r\n \r\n )}\r\n
    2. \r\n );\r\n })}\r\n
    \r\n \r\n );\r\n};\r\n\r\nBreadCrumb.propTypes = {\r\n Breadcrumbs: arrayOf(\r\n shape({\r\n /** Breadcrumb text */\r\n Text: node.isRequired,\r\n /** Should item be rendered as a link */\r\n HasLink: bool,\r\n /** Link - required if HasLink is true */\r\n Url: string,\r\n })\r\n ),\r\n /** First item in the list */\r\n Label: string,\r\n /** Classnames compatible object */\r\n Modifiers: object,\r\n /**Language for screen reader purpose */\r\n Language: string,\r\n};\r\n\r\nexport default BreadCrumb;\r\n"],"names":["props","SelectedRadio","PrintableItems","CheckedItems","SetPrintClicked","iframeRef","useRef","useEffect","async","prepareContent","current","_printItems$map$join","_printItems","doc","contentDocument","contentWindow","document","printItems","filter","item","includes","styleContent","Array","from","querySelectorAll","style","id","map","outerHTML","join","headerMainDiv","querySelector","headerMainHTML","regionLabel","regionLabelHTML","updatedOuterHTML","replace","open","write","elements","forEach","element","remove","close","initializeIframe","_jsx","_Fragment","children","ref","display","backgroundColor","width","height","position","top","left","zIndex","title","onLoad","handleLoad","focus","print","FirstColumn","className","classNames","contentDirection","columns","SecondColumn","ArticleFooterContent","ArticleFooter","RoleGroups","index","_props$Translations","_jsxs","Label","FooterHasCollapsibleRoleGroups","CollapsiblePanel","Id","DefaultCollapsed","Heading","Translations","showworkgroup","RoleItem","Persons","person","Person","ArticleFooterReviewDate","_ref","LastReview","ArticleFooterPublishDate","_ref2","PublishDate","ArticleFooterApprovedDate","_ref3","ApprovedDate","ArticleFooterApprovedBy","_ref4","ApprovedBy","isRegional","i","name","url","href","RegionalName","cssClasses","dataPrintSidebarTitle","articlefooter","Region","RegionalArticleFooter","revisiondate","publishdate","approved","approvedDate","approvedby","approvedBy","Organizations","InformationText","dangerouslySetInnerHTML","__html","node","FirstName","LastName","Title","Workplace","City","ShareChannels","PrintsideBarEnabled","useWindowLocationHref","share","key","shareChannelClass","Channel","copylink","type","onClick","navigator","clipboard","writeText","ShareURL","tipafriend","window","location","PrintSidebar","Menu","firstLevel","menuItem","Item","Ancestor","Url","Name","isSidebarOpen","setSidebarOpen","useState","checkedItems","setCheckedItems","selectedRadio","setSelectedRadio","printableItems","setPrintableItems","printableChildren","setPrintableChildren","printClicked","setPrintClicked","sidebarRef","sidebarToggleButtonRef","elementsRef","handleClickOutside","event","contains","target","mainElement","heading","imgblockMediaSliderChildren","nodeName","figures","chapterContainerChildren","getAttribute","chapterChildren","links","dataset","linklist","offsetParent","hasAttribute","removedContainerChildren","handlePrintSelection","addEventListener","removeEventListener","handleRadioChange","mediaType","linkListContainer","chapterContainer","chapter","listOfImgElement","isMediaSlider","isLinkListContainer","isChapterContainer","isChapter","listOfElementblockchapter","listOfElementblock","listOfElement","prevItems","newItemsList","Set","filteredItems","_item$offsetParent","togglePrintSidebar","getPrintSelectionTitle","dataPrintSidebarTitleRegion","words","split","length","slice","innerText","role","e","preventDefault","printsidebartitle","printsidebarclose","printsidebarselectiontitle","printsidebarselectionparts","selected","printsidebarselectionwholepage","printsidebarselectionwhatparts","content","stripHtml","checked","printbuttonwholepage","printbuttonparts","PrintIframe","classes","Children","IsCurrentPage","ActivePath","secondLevel","child","Text","Breadcrumbs","componentClasses","Modifiers","lang","useSweLang","Language","breadcrumb","CurrentPage"],"sourceRoot":""}