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,iBAAkB,wBAClBC,sBAAuB,gCACvBC,iBAAkB,wBAClBC,WAAY,wBAGDC,EAAkB,CAC7BC,qBAAsB","sources":["webpack://AlfaLaval/./node_modules/classnames/index.js","webpack://AlfaLaval/./assets/icons/common/Profile.tsx","webpack://AlfaLaval/./assets/icons/common/IconContainer.tsx","webpack://AlfaLaval/./assets/icons/common/Facebook.tsx","webpack://AlfaLaval/./assets/icons/common/Twitter.tsx","webpack://AlfaLaval/./assets/icons/common/ExternalLink.tsx","webpack://AlfaLaval/./assets/icons/common/Arrow.tsx","webpack://AlfaLaval/./assets/icons/common/Cross.tsx","webpack://AlfaLaval/./assets/icons/common/Delete.tsx","webpack://AlfaLaval/./assets/icons/common/Email.tsx","webpack://AlfaLaval/./assets/icons/common/Phone.tsx","webpack://AlfaLaval/./components/Button/Button.tsx","webpack://AlfaLaval/./components/Input/Input.tsx","webpack://AlfaLaval/./components/LoadingSpinner/LoadingSpinner.tsx","webpack://AlfaLaval/./components/Select/components/CategoryList.tsx","webpack://AlfaLaval/./components/Select/components/SubCategoriesList.tsx","webpack://AlfaLaval/./components/Select/Select.tsx","webpack://AlfaLaval/./components/Select/Select.hooks.ts","webpack://AlfaLaval/./components/SimpleSelect/SimpleSelect.tsx","webpack://AlfaLaval/./helpers/stringHelpers.ts","webpack://AlfaLaval/./hooks/useOutsideClick.tsx","webpack://AlfaLaval/./components/news/Heading/Heading.tsx","webpack://AlfaLaval/./pages/NewsAndStories/NewsAndStories.helpers.ts","webpack://AlfaLaval/./hooks/useUpdateEffect.ts","webpack://AlfaLaval/./pages/NewsAndStories/components/NewsAndStoriesFilter/NewsAndStoriesFilter.tsx","webpack://AlfaLaval/./pages/NewsAndStories/NewsAndStories.service.ts","webpack://AlfaLaval/./components/news/NewsBlock/NewsBlock.tsx","webpack://AlfaLaval/./components/news/Topics/Topics.tsx","webpack://AlfaLaval/./pages/NewsAndStories/components/NewsAndStoriesList/NewsAndStoriesList.tsx","webpack://AlfaLaval/./pages/NewsAndStories/NewsAndStories.hooks.tsx","webpack://AlfaLaval/./pages/NewsAndStories/components/ShowMoreBtn/ShowMoreBtn.tsx","webpack://AlfaLaval/./pages/NewsAndStories/components/NewsAndStoriesToolbar/NewsAndStoriesToolbar.tsx","webpack://AlfaLaval/./components/Tag/Tag.tsx","webpack://AlfaLaval/./pages/NewsAndStories/NewsAndStories.tsx","webpack://AlfaLaval/./pages/NewsAndStories/index.ts","webpack://AlfaLaval/./services/endpoints.ts"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React from 'react';\r\n\r\nexport const Profile = () => (\r\n \r\n \r\n \r\n \r\n);\r\n","import React, { ReactNode } from 'react';\r\n\r\ninterface IconContainerProps {\r\n icon: ReactNode;\r\n className?: string;\r\n}\r\n\r\nexport const IconContainer = ({ icon, className }: IconContainerProps) => {\r\n return (\r\n \r\n {icon}\r\n \r\n )\r\n};","import React from 'react';\r\n\r\nexport const Facebook = () => (\r\n \r\n \r\n \r\n \r\n);\r\n\r\n\r\n","import React from 'react';\r\n\r\nexport const Twitter = () => (\r\n \r\n \r\n \r\n);","import React from 'react';\r\n\r\nexport const ExternalLink = () => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","import React from 'react';\r\n\r\nexport const Arrow = ({ stroke = '#10387F', rotate = 0 }) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n","import React from 'react';\r\n\r\nexport const Cross = () => (\r\n \r\n \r\n \r\n \r\n);\r\n","import React from 'react';\r\n\r\nexport const Delete = () => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","import React from 'react';\r\n\r\nexport const EmailSvg = () => (\r\n \r\n \r\n \r\n \r\n);\r\n","import React from 'react';\r\n\r\nexport const PhoneSvg = () => (\r\n \r\n \r\n \r\n);\r\n","import { createElement, ReactNode, MouseEvent } from 'react';\r\nimport classNames from 'classnames';\r\n\r\nexport interface ButtonProps extends React.HTMLAttributes {\r\n text: string;\r\n className?: string;\r\n type?: 'button' | 'submit' | 'reset';\r\n onClick?: (e: MouseEvent) => void;\r\n href?: string;\r\n size?: 'xs' | 'small' | 'medium' | 'large';\r\n disabled?: boolean;\r\n color?: 'grey' | 'default' | 'primary' | 'cta';\r\n border?: boolean;\r\n children?: ReactNode;\r\n}\r\n\r\nexport const Button = ({\r\n text,\r\n className = '',\r\n onClick = () => {},\r\n href,\r\n size = 'medium',\r\n disabled = false,\r\n color = 'default',\r\n border = false,\r\n children,\r\n type,\r\n ...props\r\n}: ButtonProps) => {\r\n const tag = href ? 'a' : 'button';\r\n\r\n return createElement(\r\n tag,\r\n {\r\n onClick,\r\n className:\r\n classNames('c-button', {\r\n 'is-xs': size === 'xs',\r\n 'is-small': size === 'small',\r\n 'is-medium': size === 'medium',\r\n 'is-large': size === 'large',\r\n 'is-disabled': !!disabled,\r\n 'is-grey': color === 'grey',\r\n 'is-default': color === 'default',\r\n 'is-primary': color === 'primary',\r\n 'is-cta': color === 'cta',\r\n 'is-border': !!border,\r\n }) +\r\n ' ' +\r\n className,\r\n href,\r\n ...(tag === 'a' && { target: '_blank' }),\r\n type,\r\n ...props,\r\n },\r\n [text, children]\r\n );\r\n};\r\n","import React, { forwardRef } from 'react';\r\nimport './Input.scss';\r\n\r\ninterface InputProps extends React.HTMLAttributes {\r\n type: 'text' | 'email';\r\n label?: string;\r\n name: string;\r\n placeholder?: string;\r\n required?: boolean;\r\n value?: string;\r\n defaultValue?: string;\r\n}\r\n\r\nexport const Input = forwardRef(\r\n (\r\n {\r\n type = 'text',\r\n label,\r\n name,\r\n placeholder,\r\n required,\r\n className = '',\r\n defaultValue = '',\r\n value,\r\n ...props\r\n },\r\n ref\r\n ) => {\r\n return (\r\n \r\n );\r\n }\r\n);\r\n","import React from \"react\";\r\nimport \"./LoadingSpinner.scss\";\r\n\r\nexport const LoadingSpinner = () => {\r\n return (\r\n
\r\n \"Loading\"\r\n
\r\n );\r\n};\r\n","import React from 'react';\r\nimport { SelectItem } from '../Select.types';\r\n\r\ninterface CategoryListProps {\r\n name: string;\r\n sub: string;\r\n selectableTitle: boolean;\r\n onClickSelectableTitle?: () => void;\r\n onSelect: (item: SelectItem[]) => void;\r\n defaultTitle: string;\r\n list: SelectItem[];\r\n}\r\n\r\nexport const CategoryList = ({\r\n name,\r\n sub,\r\n selectableTitle,\r\n onClickSelectableTitle,\r\n onSelect,\r\n defaultTitle,\r\n list,\r\n}: CategoryListProps) => {\r\n return (\r\n
\r\n
  • \r\n {defaultTitle}\r\n
  • \r\n {...list.map((item, index) => (\r\n
  • onSelect(item[sub])}>\r\n {item[name]}\r\n \r\n
  • \r\n ))}\r\n
    \r\n );\r\n};\r\n","import React from 'react';\r\nimport { SelectItem } from '../Select.types'\r\n\r\ninterface SubCategoriesListProps {\r\n name: string;\r\n backLabel?: string;\r\n onClickBack?: () => void;\r\n list: SelectItem[];\r\n onSelect: (item: SelectItem) => void;\r\n}\r\n\r\nexport const SubCategoriesList = ({\r\n name,\r\n backLabel,\r\n onClickBack,\r\n list,\r\n onSelect,\r\n}: SubCategoriesListProps) => {\r\n return (\r\n
    \r\n
  • \r\n \r\n \r\n {backLabel || 'Back'}\r\n \r\n
  • \r\n {...list.map((item, index) => (\r\n
  • onSelect(item)}>\r\n {item[name]}\r\n
  • \r\n ))}\r\n
    \r\n );\r\n};\r\n","import React, { useState, useRef, useEffect } from 'react';\r\nimport { useOutsideClick } from '@hooks/useOutsideClick';\r\nimport { CategoryList } from './components/CategoryList';\r\nimport { SubCategoriesList } from './components/SubCategoriesList';\r\nimport { useReset } from './Select.hooks';\r\nimport { getComputerName } from '@helpers/stringHelpers';\r\nimport { SelectItem } from './Select.types';\r\nimport './Select.scss';\r\n\r\ninterface List {\r\n [key: string]: Array | string;\r\n Id: string;\r\n Name: string;\r\n}\r\n\r\ninterface SelectProps {\r\n name: string;\r\n sub: string;\r\n resetTime?: number | null;\r\n selectFunction: (item: SelectItem) => void;\r\n defaultTitle: string;\r\n selectableTitle?: boolean;\r\n title: string;\r\n list: List[];\r\n label?: string;\r\n backLabel?: string;\r\n required?: boolean;\r\n}\r\n\r\nexport const Select = ({\r\n name,\r\n sub,\r\n resetTime,\r\n selectFunction,\r\n defaultTitle,\r\n selectableTitle,\r\n required = false,\r\n title,\r\n list,\r\n label = '',\r\n backLabel,\r\n}: SelectProps) => {\r\n const [isShowing, setIsShowing] = useState(false);\r\n const [selectedCategory, setSelectedCategory] = useState(null);\r\n const [selectedCategoryItem, setSelectedCategoryItem] = useState(null);\r\n\r\n const doReset = () => {\r\n setIsShowing(false);\r\n setSelectedCategory(null);\r\n setSelectedCategoryItem(null);\r\n };\r\n\r\n useReset(resetTime, doReset);\r\n\r\n useEffect(() => {\r\n doReset();\r\n }, [list]);\r\n\r\n const selectRef = useRef(null);\r\n const handleClickOutside = () => {\r\n setIsShowing(false);\r\n };\r\n useOutsideClick(selectRef, handleClickOutside);\r\n\r\n const handleClick = () => {\r\n setIsShowing(!isShowing);\r\n };\r\n\r\n const selectCategory = (category: SelectItem[]) => {\r\n setSelectedCategory(category);\r\n };\r\n\r\n const selectCategoryItem = (item: SelectItem) => {\r\n selectFunction(item);\r\n setSelectedCategoryItem(item);\r\n setIsShowing(false);\r\n setSelectedCategory(null);\r\n };\r\n\r\n const onClickSelectableTitle = () => {\r\n if (selectableTitle) {\r\n selectFunction(null);\r\n doReset();\r\n }\r\n };\r\n\r\n const back = () => {\r\n setSelectedCategory(null);\r\n };\r\n\r\n return (\r\n
    \r\n {label && (\r\n \r\n )}\r\n\r\n
    \r\n
    \r\n {selectedCategoryItem ? selectedCategoryItem[name] : title}\r\n \r\n
    \r\n {isShowing && (\r\n
    \r\n
      \r\n {!selectedCategory ? (\r\n \r\n ) : (\r\n \r\n )}\r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n","import { useState, useEffect } from 'react';\r\n\r\nexport const useReset = (resetTime: number | null, doReset: () => void) => {\r\n const [reset, setReset] = useState(resetTime);\r\n\r\n useEffect(() => {\r\n if (resetTime && resetTime !== reset) {\r\n doReset();\r\n setReset(resetTime);\r\n }\r\n }, [resetTime]);\r\n};\r\n","import React, { useRef, useState, useMemo } from 'react';\r\nimport { useOutsideClick } from '@hooks/useOutsideClick';\r\nimport { getComputerName } from '@helpers/stringHelpers';\r\nimport './SimpleSelect.scss';\r\n\r\nexport interface SimpleSelectProps {\r\n disabled?: boolean;\r\n selectFunction: (item: T) => void;\r\n list: T[];\r\n name: string;\r\n label?: string;\r\n required?: boolean;\r\n title: string;\r\n}\r\n\r\nexport const SimpleSelect = ({\r\n disabled = false,\r\n selectFunction,\r\n list,\r\n name,\r\n label,\r\n required = false,\r\n title,\r\n}: SimpleSelectProps) => {\r\n const [isShowing, setIsShowing] = useState(false);\r\n\r\n const selectRef = useRef(null);\r\n const handleClickOutside = () => {\r\n setIsShowing(false);\r\n };\r\n useOutsideClick(selectRef, handleClickOutside);\r\n\r\n const handleClick = () => {\r\n if (!disabled) {\r\n setIsShowing(!isShowing);\r\n }\r\n };\r\n\r\n const onSelect = (item: T) => {\r\n selectFunction(item);\r\n setIsShowing(false);\r\n };\r\n\r\n const listItems = useMemo(() => {\r\n return list\r\n ? list.map((item, key) => (\r\n
  • onSelect(item)}>\r\n {name ? item[name] : item}\r\n
  • \r\n ))\r\n : [];\r\n }, [list, name]);\r\n\r\n return (\r\n
    \r\n {label && (\r\n \r\n )}\r\n
    \r\n
    \r\n {title}\r\n \r\n
    \r\n {isShowing && (\r\n
    \r\n
      {listItems}
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n","// replaces all spaces with -\r\nexport const getComputerName = (str: string): string => {\r\n if (!str) return '';\r\n const computerName = str.replace(/\\s+/g, '-').toLowerCase();\r\n return computerName;\r\n};\r\n\r\nexport const truncateString = (str: string, limit: number): string => {\r\n if (!str) return '';\r\n let truncated = str.substring(0, limit);\r\n truncated += '...';\r\n return truncated;\r\n};\r\n\r\nexport const normalizeInput = (value: string): string => {\r\n return value.toLowerCase().trim();\r\n};\r\n\r\nexport const interpolateString = (str: string, ...args: string[]): string => {\r\n let interpolatedString = str;\r\n args.forEach((arg, index) => {\r\n interpolatedString = interpolatedString.replace(`{${index}}`, arg);\r\n });\r\n return interpolatedString;\r\n};\r\n","import { useEffect } from \"react\";\r\n\r\nexport const useOutsideClick = (\r\n ref: React.RefObject,\r\n handler: Function\r\n) => {\r\n return useEffect(() => {\r\n const handleClick = (e: any) => {\r\n if (ref.current && !ref.current.contains(e.target)) {\r\n handler(e);\r\n }\r\n };\r\n\r\n document.addEventListener(\"mousedown\", handleClick);\r\n document.addEventListener(\"touchstart\", handleClick);\r\n\r\n return () => {\r\n document.removeEventListener(\"mousedown\", handleClick);\r\n document.removeEventListener(\"touchstart\", handleClick);\r\n };\r\n }, [ref, handler]);\r\n};\r\n","import React from 'react';\r\nimport './Heading.scss';\r\nimport { Button } from '@components/Button';\r\nimport classNames from 'classnames';\r\n\r\ninterface HeadingProps {\r\n state?: 'left' | 'center';\r\n headline: string;\r\n intro: string;\r\n showButton?: boolean;\r\n buttonLabel?: string;\r\n buttonLink?: string;\r\n}\r\n\r\nexport const Heading = ({\r\n state = 'left',\r\n headline,\r\n intro,\r\n showButton = false,\r\n buttonLabel,\r\n buttonLink,\r\n}: HeadingProps) => {\r\n return (\r\n \r\n

    {headline}

    \r\n
    \r\n

    {intro}

    \r\n
    \r\n {showButton && \r\n \r\n );\r\n};\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport { LoadingSpinner } from '@components/LoadingSpinner';\r\nimport { Heading } from '@components/news/Heading';\r\nimport { NewsAndStoriesFilter } from './components/NewsAndStoriesFilter';\r\nimport {\r\n useFetchNewsAndStoriesPageDataQuery,\r\n useLazyFetchNewsAndStoriesQuery,\r\n} from './NewsAndStories.service';\r\nimport { NewsAndStoriesList } from './components/NewsAndStoriesList';\r\nimport { NewsAndStoriesFilter as NewsAndStoriesFilterType } from './NewsAndStories.types';\r\nimport { useNewsAndStoriesFilter, useNewsAndStoriesPagination } from './NewsAndStories.hooks';\r\nimport { ShowMoreBtn } from './components/ShowMoreBtn';\r\nimport { NewsAndStoriesToolbar } from './components/NewsAndStoriesToolbar';\r\nimport { Tag } from '@components/Tag';\r\nimport './NewsAndStories.scss';\r\nimport { interpolateString } from '@helpers/stringHelpers';\r\nimport {\r\n getFiltersFromURL,\r\n setURLfromFilters,\r\n shouldDefaultOpenFilter,\r\n} from './NewsAndStories.helpers';\r\nimport { useUpdateEffect } from '@hooks/useUpdateEffect';\r\n\r\nexport const NewsAndStoriesPage = () => {\r\n const defaultFilter = useRef(getFiltersFromURL());\r\n const { data: pageData, isLoading: isLoadingPage } = useFetchNewsAndStoriesPageDataQuery();\r\n\r\n const [isLoadingNewPage, setIsLoadingNewPage] = useState(false);\r\n const [doFetchNewsAndStories, { data: newsAndStories, isFetching: isLoadingNewsAndStories }] =\r\n useLazyFetchNewsAndStoriesQuery();\r\n\r\n const fetchFilteredNews = (filter: NewsAndStoriesFilterType, pageSize: number, page: number) => {\r\n return doFetchNewsAndStories({\r\n keyword: filter.searchString,\r\n country: filter.country?.Id,\r\n year: filter.year,\r\n type: filter.category?.Id === 'All' ? undefined : filter.category?.Id,\r\n industry: filter.industry?.Id,\r\n page,\r\n pageSize,\r\n });\r\n };\r\n\r\n const { page, onNextPage, resetPage } = useNewsAndStoriesPagination();\r\n\r\n const { filter, resetCount, isFilterDirty, selectorTitles, onResetFilter, setFilterValue } =\r\n useNewsAndStoriesFilter(defaultFilter.current);\r\n\r\n useEffect(() => {\r\n // restricting fetch requests if pageSize is not loadded yet\r\n if (!pageData) return;\r\n fetchFilteredNews(filter, pageData.PageSize, 1);\r\n }, [filter, pageData]);\r\n\r\n useUpdateEffect(() => {\r\n setURLfromFilters(filter);\r\n }, [filter]);\r\n\r\n useEffect(() => {\r\n if (!pageData) return;\r\n setIsLoadingNewPage(true);\r\n\r\n fetchFilteredNews(filter, pageData.PageSize, page)\r\n .unwrap()\r\n .then(() => {\r\n setIsLoadingNewPage(false);\r\n });\r\n }, [page]);\r\n\r\n const isInitialLoading = isLoadingPage;\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n {isInitialLoading && }\r\n {pageData && !isInitialLoading && (\r\n <>\r\n \r\n \r\n {newsAndStories && (\r\n <>\r\n \r\n {isFilterDirty && (\r\n {\r\n resetPage();\r\n onResetFilter();\r\n }}\r\n />\r\n )}\r\n \r\n {isLoadingNewsAndStories && !isLoadingNewPage ? (\r\n \r\n ) : (\r\n <>\r\n {newsAndStories.Items.length === 0 ? (\r\n
    \r\n

    {pageData.I18n.NoResultFound}

    \r\n
    \r\n ) : (\r\n <>\r\n \r\n \r\n \r\n )}\r\n \r\n )}\r\n\r\n {isLoadingNewPage && }\r\n \r\n )}\r\n \r\n )}\r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default NewsAndStoriesPage;\r\n","import NewsRoom from './NewsAndStories';\r\nexport default NewsRoom;\r\n","export const Breadcrumb = {\r\n fetchBreadcrumb: '/webapi/Breadcrumb/Get',\r\n};\r\n\r\nexport const Footer = {\r\n fetchFooter: '/api/footer',\r\n};\r\n\r\nexport const CountrySelector = {\r\n fetchCountrySelectList: '/webapi/CountrySelector/Get',\r\n};\r\n\r\nexport const RelatedTabs = {\r\n fetchRelatedTabs: '/webapi/RelatedTabs/Get',\r\n relatedTabs: '/webapi/RelatedTabs/GetTabs', // NOT IN USE\r\n};\r\n\r\nexport const Search = {\r\n doSearch: '/webapi/SearchApi/SearchFor',\r\n doSearchAutocomplete: '/webapi/SearchApi/GetAutocomplete',\r\n};\r\n\r\nexport const NewsAndStories = {\r\n fetchNewsAndStoriesData: '/webapi/NewsListingApi/GetNewsListItems',\r\n fetchNews: '/webapi/NewsListingApi/GetNewsList',\r\n fetchStories: '/webapi/StoriesList/Get',\r\n};\r\n\r\nexport const Webinars = {\r\n fetchWebinarBanner: '/webapi/WebinarLandingPage/Get',\r\n fetchWebinarList: '/webapi/WebinarPage/Get',\r\n};\r\n\r\nexport const Header = {\r\n fetchHeader: '/webapi/Header/Get', //NOT IN USE\r\n fetchSubNavigation: '/webapi/SubNavigation/Get',\r\n fetchMegaMenuNavigation: '/api/mainmenu',\r\n fetchGeolocation: '/api/Geolocation',\r\n fetchTopMenu: '/api/TopNavigation/',\r\n fetchMegaMenuColumn: '/webapi/menuitems/columns',\r\n};\r\n\r\nexport const Stories = {\r\n fetchStories: '/webapi/StoriesList/Get',\r\n};\r\n\r\nexport const News = {\r\n fetchNews: '/webapi/NewsListPage/Get',\r\n};\r\n\r\nexport const Vacancies = {\r\n fetchVacancies: '/webapi/Vacancy/Get', // NOT IN USE\r\n};\r\n\r\nexport const Webshop = {\r\n fetchWebshop: '/webapi/WebShop/Get', // NOT IN USE\r\n};\r\n\r\nexport const ContactUs = {\r\n fetchContactUsForm: '/webapi/ContactUsForm/GetForm',\r\n fetchFindOfficeData: '/webapi/CountriesCategories/Get',\r\n fetchEnquiryForm: '/webapi/contactus/getenquiryform',\r\n fetchEnquirySerialLinkData: '/webapi/contactus/GetModalPopUp',\r\n submitEnquiryForm: '/Quote/ProcessForm',\r\n fetchEnquiryApplicationList: '/webapi/contactus/GetIndustryApplication',\r\n};\r\n\r\nexport const InvestorRelations = {\r\n fetchPressReleaseFilterData: '/api/v1/ir/pressrelease',\r\n fetchInvestorRelationsNews: '/api/v1/ir/news',\r\n fetchInvestorRelationsPage: '/api/v1/ir/page2',\r\n fetchInvestorRelationsMenu: '/api/v1/ir/menu2',\r\n makeSubscription: '//publish.ne.cision.com/Subscription/SubscribeWithCaptcha',\r\n};\r\n\r\nexport const CoolCalc = {\r\n getCoolCalc: '/webapi/CoolCalc/Get', // NOT IN USE\r\n shareCoolCalc: '/webapi/CoolCalc/Save',\r\n};\r\n\r\nexport const Hexpert = {\r\n fetchHexpertPage: '/api/v1/hex/page',\r\n getAntiForgeryToken: '/api/v1/hex/GetAntiForgery',\r\n submitHexpertForm: '/EPiServer.Forms/DataSubmit/Submit',\r\n createHexpertPdf: '/api/v1/hex/CreatePdf',\r\n getIsMatchingProducts: '/api/v1/hex/IsMatchingProduct',\r\n getHexpertResult: '/api/v1/hex/GetResult',\r\n mailResult: '/api/v1/hex/SendMail',\r\n};\r\n\r\nexport const SafetyDatasheet = {\r\n fetchSafetyDatasheet: '/webapi/SafetyDataSheet/GetSafetyDataSheetResult',\r\n};\r\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","includes","key","call","join","module","exports","default","define","window","Profile","xmlns","width","height","viewBox","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","cx","cy","r","d","IconContainer","icon","className","Facebook","Twitter","x","y","ExternalLink","id","Arrow","rotate","style","transformBox","transformOrigin","transform","Cross","Delete","EmailSvg","PhoneSvg","fillRule","clipRule","Button","text","onClick","href","size","disabled","color","border","children","type","props","tag","createElement","target","Input","forwardRef","label","name","placeholder","required","defaultValue","value","ref","LoadingSpinner","src","alt","CategoryList","sub","selectableTitle","onClickSelectableTitle","onSelect","defaultTitle","list","map","item","index","SubCategoriesList","backLabel","onClickBack","Select","resetTime","selectFunction","title","isShowing","setIsShowing","useState","selectedCategory","setSelectedCategory","selectedCategoryItem","setSelectedCategoryItem","doReset","reset","setReset","useEffect","useReset","selectRef","useRef","useOutsideClick","htmlFor","category","SimpleSelect","listItems","useMemo","getComputerName","str","replace","toLowerCase","truncateString","limit","truncated","substring","interpolateString","args","interpolatedString","forEach","handler","handleClick","e","current","contains","document","addEventListener","removeEventListener","Heading","state","headline","intro","showButton","buttonLabel","buttonLink","getItemFromList","subListItem","Id","getItemFromSubList","subListName","filter","at","shouldDefaultOpenFilter","searchString","advancedFilters","values","some","Boolean","useUpdateEffect","effect","deps","isFirstMount","NewsAndStoriesFilter","i18n","resetCount","categories","countries","years","industries","onChange","isDefaultOpen","selectorTitles","setSearchString","isAdvancedFilterOpen","setIsAdvancedFilterOpen","isKeywordsDirty","setIsKeywordsDirty","yearsListFormatted","Name","AllYears","year","categoriesTitle","industriesTitle","industry","countriesTitle","country","yearsTitle","I","Keywords","onKeyDown","HideAdvancedFilters","AdvancedFilters","Type","undefined","AllIndustries","Industry","Back","AllCountries","Location","Year","newsApi","apiSlice","addTagTypes","injectEndpoints","endpoints","build","fetchNewsAndStoriesPageData","query","url","params","lang","pageId","transformResponse","response","Description","Decsription","I18n","entries","All","AllType","TypeList","YearsList","YearList","fetchNewsAndStories","pageSize","page","Topics","HasNextPage","NewsListingItems","TotalResults","Items","ItemsCount","Industries","Countries","serializeQueryArgs","endpointName","merge","incoming","meta","incomingItems","isTopics","isNewsAndStoriesTopicsBlock","itemsCount","overrideExisting","useFetchNewsAndStoriesPageDataQuery","useLazyFetchNewsAndStoriesQuery","NewsBlock","Key","Image","ImageUrl","Topic","TopicUrl","Title","PublishDate","imagePosition","loading","Date","toLocaleDateString","month","day","data","noBackground","Url","NewsAndStoriesList","items","topics","moreItemsThanTopicPosition","position","ContentLink","TopicName","Introduction","DEFAULT_FILTER","ShowMoreBtn","showBtn","showingCountText","NewsAndStoriesToolbar","itemsText","Tag","onCloseClick","variant","defaultFilter","URL","location","searchParams","get","getFiltersFromURL","pageData","isLoading","isLoadingPage","isLoadingNewPage","setIsLoadingNewPage","doFetchNewsAndStories","newsAndStories","isFetching","isLoadingNewsAndStories","fetchFilteredNews","keyword","onNextPage","resetPage","setPage","prev","useNewsAndStoriesPagination","isFilterDirty","onResetFilter","setFilterValue","setFilter","setResetCount","JSON","stringify","useNewsAndStoriesFilter","PageSize","f","history","pushState","setURLfromFilters","unwrap","then","isInitialLoading","Results","ResetFilters","NoResultFound","PositionofTopics","TitleofTopics","ShowMore","NewsListPageShowMore","Breadcrumb","fetchBreadcrumb","Footer","fetchFooter","CountrySelector","fetchCountrySelectList","RelatedTabs","fetchRelatedTabs","relatedTabs","Search","doSearch","doSearchAutocomplete","NewsAndStories","fetchNewsAndStoriesData","fetchNews","fetchStories","Webinars","fetchWebinarBanner","fetchWebinarList","Header","fetchHeader","fetchSubNavigation","fetchMegaMenuNavigation","fetchGeolocation","fetchTopMenu","fetchMegaMenuColumn","Stories","News","ContactUs","fetchContactUsForm","fetchFindOfficeData","fetchEnquiryForm","fetchEnquirySerialLinkData","submitEnquiryForm","fetchEnquiryApplicationList","InvestorRelations","fetchPressReleaseFilterData","fetchInvestorRelationsNews","fetchInvestorRelationsPage","fetchInvestorRelationsMenu","makeSubscription","CoolCalc","getCoolCalc","shareCoolCalc","Hexpert","fetchHexpertPage","getAntiForgeryToken","submitHexpertForm","createHexpertPdf","getIsMatchingProducts","getHexpertResult","mailResult","SafetyDatasheet","fetchSafetyDatasheet"],"sourceRoot":""}