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Q,WACC,C","sources":["platformui/Section/index.js","platformui/FormatDateTime/index.js","platformui/Containers/withSearch.js","platformui/ArticleList/index.js","blocks/manuel-page-list-block.js","platformui/Teaser/list-view-toggler.js","platformui/Hooks/useWindowLocation.js","platformui/Pagination/index.js","platformui/Teaser/index.js"],"sourcesContent":["import React from 'react';\r\nimport classNames from 'classnames';\r\n\r\nconst Section = (props) => {\r\n const classes = classNames('c-section', props.customClass, {\r\n ...props.Modifiers,\r\n });\r\n\r\n const sectionClasses = classNames({\r\n 'c-section__inner': true,\r\n 'c-section__inner--double-column':\r\n props.Modifiers && props.Modifiers['c-section__double-column'],\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n {props.children}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Section;\r\n","import React from 'react';\r\n\r\nconst formatDate = (date, year, month, day) => {\r\n if (!date) return null;\r\n\r\n let options = {\r\n year: year,\r\n month: month,\r\n day: day,\r\n };\r\n let fmDate = new Date(date.toString()).toLocaleDateString('sv-SE', options);\r\n\r\n return fmDate.toUpperCase();\r\n};\r\n\r\nconst FormatDateTime = ({ date, year, month, day }) => {\r\n return (\r\n \r\n {formatDate(date, year, month, day)}\r\n \r\n );\r\n};\r\nFormatDateTime.defaultProps = {\r\n year: 'numeric',\r\n month: 'long',\r\n day: 'numeric',\r\n};\r\n\r\nexport default FormatDateTime;\r\n","import queryString from 'qs';\r\nimport React, { Component } from 'react';\r\nimport { withRouter } from 'react-router';\r\nimport { fetchByQuery, filterPages, loadMorePages } from '../Actions/search';\r\nimport { search } from '../Reducers/search';\r\n\r\nexport default (\r\n WrappedComponent,\r\n componentName,\r\n endPoint = '/api/search/search',\r\n callbacks = {\r\n afterFetchByQuery: () => {},\r\n afterLoadMorePages: () => {},\r\n }\r\n) => {\r\n class Container extends Component {\r\n query = queryString.parse(this.props.location.search, {\r\n ignoreQueryPrefix: true,\r\n indices: false,\r\n });\r\n key = this.query.p || 0;\r\n\r\n endPoint = this.props.SearchApiUrl || endPoint;\r\n\r\n //Set initial state\r\n state = search({\r\n isLoading: false,\r\n ...this.props.SearchResult,\r\n });\r\n\r\n getComponentName() {\r\n return componentName;\r\n }\r\n\r\n //TODO: Change to redux\r\n dispatch(action) {\r\n this.setState(search(this.getState(), action));\r\n }\r\n\r\n getState() {\r\n return this.state;\r\n }\r\n\r\n fetch(query) {\r\n fetchByQuery(`${this.endPoint}?${query}`)(\r\n this.dispatch.bind(this),\r\n this.getState.bind(this),\r\n callbacks.afterFetchByQuery\r\n );\r\n }\r\n\r\n updateSearchFromUrl(locationSearch) {\r\n const qs = queryString.parse(locationSearch, {\r\n ignoreQueryPrefix: true,\r\n indices: false,\r\n });\r\n\r\n qs.componentname = this.getComponentName();\r\n\r\n if (this.props.Theme) qs.theme = this.props.Theme;\r\n if (this.props.InformationType)\r\n qs.informationtype = this.props.InformationType;\r\n if (this.props.SearchOriginId) qs.so = this.props.SearchOriginId;\r\n if (this.state.BatchSize && !qs.batchsize)\r\n qs.batchsize = this.state.BatchSize;\r\n if (this.state.SortOrder) qs.sortorder = this.state.SortOrder;\r\n if (this.state.HistoryDays) qs.days = this.state.HistoryDays;\r\n if (this.state.RootLink) qs.rootLink = this.state.RootLink;\r\n if (this.state.Categories && this.state.Categories.length > 0) {\r\n qs.category = this.state.Categories;\r\n }\r\n if (this.state.IsArticleSearch) {\r\n qs.isArticleSearch = this.state.IsArticleSearch;\r\n }\r\n\r\n const query = this.props.Categories\r\n ? `${queryString.stringify(qs, {\r\n indices: false,\r\n })}&${queryString.stringify({\r\n category: this.props.Categories,\r\n indices: false,\r\n })}`\r\n : queryString.stringify(qs, { indices: false });\r\n\r\n const isExternalSearch = !!qs.site;\r\n\r\n const endpoint = isExternalSearch\r\n ? this.getExternalEndpoint({\r\n searchApiUrl: this.props.SearchApiUrl,\r\n searchApiIndex: qs.site,\r\n location: this.props.location,\r\n })\r\n : this.endPoint;\r\n\r\n if (qs.p) {\r\n loadMorePages(`${endpoint}?${query}`)(\r\n this.dispatch.bind(this),\r\n this.getState.bind(this),\r\n callbacks.afterLoadMorePages\r\n );\r\n } else {\r\n filterPages(`${endpoint}?${query}`)(\r\n this.dispatch.bind(this),\r\n this.getState.bind(this)\r\n );\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n if (this.props.searchOnMount) {\r\n this.updateSearchFromUrl(this.props.location.search);\r\n }\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n if (prevProps.location.search !== this.props.location.search) {\r\n this.updateSearchFromUrl(this.props.location.search);\r\n }\r\n }\r\n\r\n getExternalEndpoint({ searchApiUrl, searchApiIndex, location }) {\r\n const apiEndpoint = searchApiUrl?.endsWith('/')\r\n ? searchApiUrl\r\n : `${searchApiUrl || ''}/`;\r\n\r\n const endpointWithSiteIndex = searchApiIndex\r\n ? `${apiEndpoint}${searchApiIndex}/`\r\n : apiEndpoint;\r\n\r\n const pathnameSegments =\r\n location?.pathname?.split('/').filter(Boolean) || [];\r\n const regionalizedSearch =\r\n pathnameSegments.length > 1 ? pathnameSegments[0] : '';\r\n\r\n return regionalizedSearch\r\n ? `${endpointWithSiteIndex}${regionalizedSearch}/`\r\n : endpointWithSiteIndex;\r\n }\r\n\r\n parseForm(form) {\r\n var obj = {};\r\n var elements = form.querySelectorAll('input, select, textarea');\r\n for (var i = 0; i < elements.length; ++i) {\r\n var element = elements[i];\r\n var name = element.name;\r\n var value = element.value;\r\n\r\n if (name) {\r\n obj[name] = value;\r\n }\r\n }\r\n }\r\n\r\n onSubmit(e, query) {\r\n e.preventDefault();\r\n const pathname = this.props.location.pathname;\r\n const qs = queryString.stringify(query, { indices: false });\r\n location.href = `${pathname}?${qs}`;\r\n }\r\n\r\n render() {\r\n return (\r\n this.fetch(query)}\r\n onSubmit={(e, query) => this.onSubmit(e, query)}\r\n />\r\n );\r\n }\r\n }\r\n\r\n return withRouter(Container);\r\n};\r\n","import classNames from 'classnames';\r\nimport { any, node, number, string } from 'prop-types';\r\nimport React from 'react';\r\nimport * as Render from '../Base/Render';\r\nimport FormatDateTime from '../FormatDateTime';\r\nimport { LazyLoadImage } from '../Image';\r\n\r\nconst SplitColumns = ({ children, split, className }) => {\r\n if (!split) return children;\r\n\r\n return {children};\r\n};\r\n\r\nconst ArticleList = (props) => {\r\n const getColumnClasses = (numOfItems, blockName) => {\r\n if (blockName === 'DoubleColumnBlock') {\r\n return 'column';\r\n }\r\n\r\n return classNames({\r\n columns: true,\r\n 'medium-8': numOfItems === 1,\r\n 'medium-4': numOfItems === 3 || numOfItems === 2,\r\n 'medium-6 large-3': numOfItems > 3,\r\n });\r\n };\r\n\r\n const columnClasses = getColumnClasses(\r\n props.numOfItems,\r\n props.blockName ? props.blockName : props.pageName\r\n );\r\n\r\n const teaserTheme = classNames({\r\n 'c-article-list__theme--default': !props.Theme,\r\n [`c-article-list__theme--${props.Theme}`]: props.Theme,\r\n });\r\n\r\n const headerClasses = classNames({\r\n 'c-article-list__heading': true,\r\n [teaserTheme]: props.Theme,\r\n });\r\n\r\n const infoType = `c-article-list__type--${props.InformationType}`;\r\n const teaserClasses = classNames({\r\n 'c-article-list': true,\r\n 'c-article-list--related': true,\r\n 'c-article-list--no-text': !props.Preamble,\r\n 'c-article-list--full-layout': props.numOfItems === 1,\r\n 'c-article-list--nth1': props.numOfItems === 1,\r\n 'c-article-list--nth2': props.numOfItems === 2,\r\n 'c-article-list--nth3': props.numOfItems === 3,\r\n 'c-article-list--gt1': props.numOfItems > 1,\r\n 'c-article-list--gt2': props.numOfItems > 2,\r\n 'c-article-list--gt3': props.numOfItems > 3,\r\n 'c-article-list--double-column': props.blockName === 'DoubleColumnBlock',\r\n [`c-article-list--${props.Theme}`]: props.Theme,\r\n [teaserTheme]: props.Theme,\r\n [infoType]: props.InformationType,\r\n });\r\n\r\n const setPreset = () => {\r\n switch (props.numOfItems) {\r\n case 1:\r\n case 2:\r\n return '1200px';\r\n default:\r\n return '407px';\r\n }\r\n };\r\n\r\n //If only one then split into two columnClasses\r\n const rowSplit = classNames({\r\n row: props.numOfItems === 1,\r\n 'u-flexwrap': props.numOfItems === 1,\r\n 'c-article-list--center': props.numOfItems <= 2,\r\n });\r\n\r\n const splitColumns = classNames({\r\n 'medium-6 columns': props.Media && props.numOfItems === 1,\r\n 'medium-12 columns': !props.Media && props.numOfItems === 1,\r\n });\r\n\r\n const teaserContainsImage =\r\n props.Media &&\r\n props.Media[0] &&\r\n props.Media[0].ImageUrl &&\r\n props.Media[0].ImageUrl.length > 0;\r\n\r\n return (\r\n \r\n {props.Title && (\r\n \r\n \r\n {props.Media && (\r\n \r\n \r\n {props.ShowVideoPlayIcon && teaserContainsImage && (\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 {props.Vignette && (\r\n \r\n {props.Vignette}\r\n \r\n )}\r\n {props.Date && }\r\n {props.use1177ProfessionDesign ? (\r\n \r\n \r\n \r\n {props.Title}\r\n \r\n \r\n ) : (\r\n \r\n \r\n {props.Title}\r\n \r\n \r\n )}\r\n {typeof props.Preamble === 'string' && (\r\n \r\n {props.Preamble}\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\nArticleList.propTypes = {\r\n Preamble: node,\r\n numOfItems: number,\r\n Vignette: node,\r\n Theme: string,\r\n Title: string,\r\n Url: string,\r\n Media: any,\r\n};\r\n\r\nexport default ArticleList;\r\n","import React from 'react';\r\nimport * as Render from '../platformui/Base/Render';\r\nimport { Teaser } from '../platformui/Teaser';\r\n\r\nexport default (props) => (\r\n \r\n);\r\n","import React from 'react';\r\nimport classNames from 'classnames';\r\nimport { useSweLang } from '../Helpers/helpers';\r\n\r\nconst ListViewToggler = (props) => {\r\n return (\r\n \r\n \r\n {props.translations.showcontentas}\r\n \r\n props.onClick(true)}\r\n >\r\n \r\n {props.translations.showasbricks}\r\n \r\n \r\n props.onClick(false)}\r\n >\r\n \r\n {props.translations.showaslist}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ListViewToggler;\r\n","import { useEffect, useState } from 'react';\r\nconst useWindowLocationHref = () => {\r\n const [href, setHref] = useState(null);\r\n useEffect(() => {\r\n if (typeof window !== 'undefined') {\r\n setHref(window.location.href);\r\n }\r\n }, []);\r\n return href;\r\n};\r\nexport default useWindowLocationHref;\r\n","import React from 'react';\r\nimport { withRouter } from 'react-router';\r\nimport { useHistory } from 'react-router-dom';\r\nimport queryString from 'qs';\r\nimport classNames from 'classnames';\r\n\r\nconst PaginationButton = ({ className, children, onClick, href }) => {\r\n const history = useHistory();\r\n const clickHandler = (e) => {\r\n onClick(e);\r\n history.push(href);\r\n };\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n/**\r\n * Component for loading more search content in a list.\r\n * Uses withRouter from react-router to read window location.\r\n *\r\n * Send additional query params with the prop `qsModifiers`.\r\n *\r\n * We can override react router functionality with the prop\r\n * `useReactRouterLink=false` (default = true) then we use element\r\n * and not component.\r\n *\r\n *\r\n */\r\nconst Pagination = (props) => {\r\n if (!props.NextPage) return null;\r\n const options = {\r\n ignoreQueryPrefix: true,\r\n };\r\n const qs = {\r\n ...queryString.parse(props.location.search, options),\r\n p: props.NextPage,\r\n ...props.qsModifiers,\r\n };\r\n\r\n const qStringify = queryString.stringify(qs);\r\n\r\n const paginationClass = classNames({\r\n 'c-pagination': true,\r\n 'c-pagination--is-loading': props.isLoading,\r\n ...props.Modifiers,\r\n });\r\n\r\n const href = `${props.location.pathname}?${qStringify}`;\r\n\r\n if (props.useReactRouterLink) {\r\n return (\r\n \r\n {props.children}\r\n {props.Spinner}\r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n );\r\n};\r\n\r\nPagination.defaultProps = {\r\n useReactRouterLink: true,\r\n qsModifiers: {},\r\n};\r\n\r\nconst ShowAll = (props) => {\r\n if (!props.ShowTotalText) {\r\n return null;\r\n }\r\n if (props.NextPage === null) {\r\n return null;\r\n }\r\n\r\n const qs = queryString.parse(props.location.search, {\r\n ignoreQueryPrefix: true,\r\n });\r\n const qStringify = queryString.stringify({\r\n q: qs.q,\r\n p: 1,\r\n batchsize: props.TotalHits,\r\n ...props.qsModifiers,\r\n theme: qs.theme,\r\n });\r\n return (\r\n \r\n {props.ShowTotalText}\r\n \r\n );\r\n};\r\n\r\nShowAll.defaultProps = {\r\n NextPage: null, // no need for \"undefined\" check if not in response.\r\n qsModifiers: {},\r\n};\r\n\r\nexport { ShowAll };\r\n\r\nexport default withRouter(Pagination);\r\n","import React, { useState } from 'react';\r\nimport classNames from 'classnames';\r\nimport ArticleList from '../ArticleList'; //TODO fixa mer generiskt\r\nimport * as Render from '../Base/Render';\r\nimport { useSweLang } from '../Helpers/helpers';\r\nimport { LazyLoadImage } from '../Image';\r\nimport Linklist from '../Linklist';\r\nimport Section from '../Section';\r\nimport ListViewToggler from './list-view-toggler';\r\nimport useWindowLocationHref from '../Hooks/useWindowLocation';\r\n\r\nconst TeaserItemLinkList = (props) => {\r\n const href = useWindowLocationHref();\r\n const contentClassNames = classNames({\r\n 'c-teaser__content': true,\r\n 'c-teaser__content--with-img': props.Media,\r\n });\r\n\r\n const teaserContainsImage =\r\n props.Media &&\r\n props.Media[0] &&\r\n props.Media[0].ImageUrl &&\r\n props.Media[0].ImageUrl.length > 0;\r\n\r\n return (\r\n \r\n \r\n {props.Media && (\r\n \r\n {props.ShowVideoPlayIcon && teaserContainsImage && (\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 {props.Title}\r\n \r\n \r\n {props.TitleTranslation && (\r\n \r\n {props.TitleTranslation}\r\n \r\n )}\r\n \r\n {props.Preamble && {props.Preamble}}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst TeaserItemLink = (props) => {\r\n const href = useWindowLocationHref();\r\n const classes = props.className\r\n ? props.className\r\n : props.horizontalDirection\r\n ? 'columns c-teaser-outer'\r\n : 'medium-6 large-3 columns c-teaser-outer';\r\n\r\n const teaserHeadingLink = classNames({\r\n 'c-teaser__heading--no-text': !props.Preamble,\r\n });\r\n\r\n const teaserClasses = classNames({\r\n 'c-teaser': true,\r\n 'c-teaser--eq-height': true,\r\n 'c-teaser--has-img': props.Media,\r\n });\r\n\r\n const teaserContainsImage =\r\n props.Media &&\r\n props.Media[0] &&\r\n props.Media[0].ImageUrl &&\r\n props.Media[0].ImageUrl.length > 0;\r\n\r\n return (\r\n \r\n \r\n \r\n {props.Media && (\r\n \r\n {props.ShowVideoPlayIcon && teaserContainsImage && (\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 {props.Title}\r\n \r\n \r\n \r\n {props.TitleTranslation && (\r\n \r\n {props.TitleTranslation}\r\n \r\n )}\r\n {props.Preamble && (\r\n \r\n {props.Preamble}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst ListChildren = (props) => {\r\n if (!props.Items) return null;\r\n let masonryLayout = props.IsListOfChildren || props.masonryLayout;\r\n\r\n const listStyle = classNames({\r\n row: props.Items.length > 2,\r\n 'u-flexwrap': !masonryLayout || !props.toggleBrickView,\r\n 'u-columns': masonryLayout,\r\n 'u-columns--gt-3': masonryLayout && props.Items.length > 3,\r\n 'u-columns--gt-4': masonryLayout && props.Items.length > 4,\r\n 'u-columns--is-listview': masonryLayout && !props.toggleBrickView,\r\n 'u-flexwrap--is-listview': !props.toggleBrickView,\r\n 'u-article--center': props.Items.length <= 2,\r\n ...props.WrapperModifiers,\r\n });\r\n\r\n const Items = props.Items.map((item, index) => {\r\n if (\r\n props.BlockTypeName === 'PageListBlock' ||\r\n props.Design === 'page-list'\r\n ) {\r\n return props.IsListOfChildren ? (\r\n \r\n ) : (\r\n \r\n );\r\n } else if (props.CurrentPageProps.BlockTypeName === 'DoubleColumnBlock') {\r\n return (\r\n \r\n );\r\n } else {\r\n return (\r\n \r\n );\r\n }\r\n });\r\n\r\n let cypressValues = classNames({\r\n 'ui-article-list': props.BlockTypeName === 'ManuelPageListBlock',\r\n 'ui-search-article-list': props.BlockTypeName == 'SearchArticleListBlock',\r\n });\r\n if (cypressValues.length < 1) cypressValues = null;\r\n\r\n return props.BlockTypeName === 'PageListBlock' ? (\r\n \r\n {props.BlockTypeName === 'PageListBlock'\r\n ? Render.Property(Items, 'ListRoot')\r\n : Render.Property(Items, 'MainContent')}\r\n \r\n ) : (\r\n \r\n {props.BlockTypeName === 'PageListBlock'\r\n ? Render.Property(Items, 'ListRoot')\r\n : Render.Property(Items, 'MainContent')}\r\n \r\n );\r\n};\r\n\r\nconst Teaser = (props) => {\r\n const modifiers = {\r\n ...props.SectionModifiers,\r\n 'c-section--navigation': props.BlockTypeName === 'PageListBlock',\r\n };\r\n\r\n const [toggleBrickView, setToggleBrickView] = useState(!props.ShowListView);\r\n\r\n const showListViewToggler =\r\n props.BlockTypeName === 'PageListBlock' && props.UseListToggler;\r\n\r\n const sectionHeader = classNames({\r\n 'c-section__header': true,\r\n 'c-section__header--listview-shown': showListViewToggler,\r\n 'c-section__header--heading-shown': props.Heading,\r\n 'c-section__header--double-column':\r\n props.CurrentPageProps.BlockTypeName == 'DoubleColumnBlock',\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n {props.Heading ? (\r\n \r\n {props.Heading}\r\n \r\n ) : (\r\n \r\n {props.Translations?.currentarticles}\r\n \r\n )}\r\n {showListViewToggler && (\r\n {\r\n setToggleBrickView(value);\r\n }}\r\n toggleBrickView={toggleBrickView}\r\n />\r\n )}\r\n \r\n \r\n \r\n {props.Items && (\r\n \r\n )}\r\n {props.children}\r\n \r\n );\r\n};\r\n\r\nexport { Teaser, TeaserItemLink };\r\n"],"names":["props","classes","classNames","customClass","Modifiers","sectionClasses","_jsx","className","children","formatDate","date","year","month","day","options","Date","toString","toLocaleDateString","toUpperCase","FormatDateTime","_ref","dateTime","toISOString","defaultProps","WrappedComponent","componentName","endPoint","arguments","length","undefined","callbacks","afterFetchByQuery","afterLoadMorePages","Container","Component","constructor","query","queryString","this","location","search","ignoreQueryPrefix","indices","key","p","SearchApiUrl","state","isLoading","SearchResult","getComponentName","dispatch","action","setState","getState","fetch","fetchByQuery","bind","updateSearchFromUrl","locationSearch","qs","componentname","Theme","theme","InformationType","informationtype","SearchOriginId","so","BatchSize","batchsize","SortOrder","sortorder","HistoryDays","days","RootLink","rootLink","Categories","category","IsArticleSearch","isArticleSearch","endpoint","site","getExternalEndpoint","searchApiUrl","searchApiIndex","loadMorePages","filterPages","componentDidMount","searchOnMount","componentDidUpdate","prevProps","_location$pathname","apiEndpoint","endsWith","endpointWithSiteIndex","pathnameSegments","pathname","split","filter","Boolean","regionalizedSearch","parseForm","form","obj","elements","querySelectorAll","i","element","name","value","onSubmit","e","preventDefault","href","render","Search","withRouter","SplitColumns","columnClasses","numOfItems","blockName","pageName","columns","getColumnClasses","teaserTheme","headerClasses","infoType","teaserClasses","Preamble","rowSplit","row","splitColumns","Media","teaserContainsImage","ImageUrl","Title","_jsxs","ShowVideoPlayIcon","src","alt","title","tabIndex","Render","blocks","propertyName","currentPageProps","LazyLoadImage","isBackgroundImage","DefaultPreset","Alt","ImageDescription","Sizes","sizes","setPreset","Vignette","use1177ProfessionDesign","Url","Teaser","Heading","lang","useSweLang","Language","translations","showcontentas","toggleBrickView","role","type","onClick","showasbricks","showaslist","useWindowLocationHref","setHref","useState","useEffect","window","PaginationButton","history","useHistory","push","Pagination","NextPage","qsModifiers","qStringify","paginationClass","useReactRouterLink","Spinner","TeaserItemLinkList","contentClassNames","dir","Dir","TitleTranslation","Lang","Linklist","TeaserItemLink","horizontalDirection","teaserHeadingLink","ListChildren","Items","masonryLayout","IsListOfChildren","listStyle","WrapperModifiers","map","item","index","BlockTypeName","Design","CurrentPageProps","ArticleList","PageTypeName","_props$CurrentPagePro","_props$CurrentPagePro2","FeatureToggleSettings","Use1177ProfessionDesign","cypressValues","_props$Translations","modifiers","SectionModifiers","setToggleBrickView","ShowListView","showListViewToggler","UseListToggler","sectionHeader","Section","Translations","currentarticles","ListViewToggler"],"sourceRoot":""}
{props.Preamble}