{"version":3,"sources":["constants.js","i18n.js","components/ErrorHandling/ErrorBoundary/ErrorBoundary.js","img/readmore-arrow.svg","utils.js","api/baseApi.js","components/Hooks/useFetch.js","components/UI/LinkMore/LinkMore.js","components/UI/Alerts/Alerts.js","components/UI/Loader/Loader.js","components/Layout/Entry/Content/Content.js","img/search.svg","components/UI/ContactFooter/ContactFooter.js","components/UI/LinksBoxWithName/LinksBoxWithName.js","components/UI/LinksBoxesWithName/LinksBoxesWithName.js","img/feedback-up.svg","components/Hooks/useSearch.js","components/Hooks/useOutsideClick.js","components/UI/Autocomplete/Autocomplete.js","components/UI/Search/Search.js","components/Layout/HelpAndSupport/HelpAndSupport.js","components/UI/Breadcrumb/Breadcrumb.js","components/UI/Teasers/Teasers.js","components/Layout/Error/Error.js","components/Layout/Error/PageUnavailable/PageUnavailable.js","components/Layout/Error/PageNotFound/PageNotFound.js","components/UI/LinksBoxWithEntries/LinksBoxWithEntries.js","components/UI/Aside/Aside.js","components/Layout/Category/Category.js","types/DecisionTree/Choice.js","types/DecisionTree/Node.js","types/DecisionTree/Step.js","types/DecisionTree/Path.js","components/Layout/Entry/DecisionTree/DecisionTree.js","img/feedback-down.svg","img/close.svg","img/angle-down.svg","components/UI/FeedbackBox/FeedbackBox.js","components/UI/ListLinks/ListLinks.js","components/UI/ListLinksSection/ListLinksSection.js","components/Layout/Entry/Entry.js","components/UI/BoxWithUmbracoSearch/BoxWithumbracoSearch.js","components/Layout/SearchResult/SearchResult.js","components/UI/ScrollToTop/ScrollToTop.js","App.js","reportWebVitals.js","index.js"],"names":["API","process","ID","PATH","homePageTitle","META","homePageDescription","unavailablePageTitle","notFoundPageTitle","CATEGORY","ENTITY","STATISTICS","STATIC","RESOURCES","ERRORS","base","window","REACT_APP_BASE_API","i18n","use","Backend","initReactI18next","init","lng","fallbackLng","backend","loadPath","concat","debug","_desc","_defs","_g","ErrorBoundary","_PureComponent","_this2","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","state","errorMessage","_inherits","_createClass","key","value","error","info","errorString","toString","console","_newrelic","_newrelic$noticeError","newrelic","noticeError","call","e","this","_jsx","style","children","props","PureComponent","pushToHistoryAndScrollIntoView","anchor","element","_window$location","location","href","includes","history","pushState","scrollIntoView","behavior","scrollElementIntoView","test","navigator","userAgent","document","getElementById","preventDefault","getDataFromResponse","response","data","setErrorStatus","setError","_error$response$statu","_error$response","status","UrlBuilder","_defineProperty","_ref","category","_slicedToArray","_ref3","_ref5","_ref7","_ref8","entry","_ref9","_ref10","StatisticsEnricher","home","enricher","type","search","_ref11","_ref12","searchPhrase","searchConfidence","predictiveSearch","_ref13","_ref14","entryName","_ref15","categoryId","_ref17","entryUid","feedback","_ref19","_ref20","vote","decision","_ref21","stepUid","externalContent","_ref23","url","buildRequest","entity","urlBuilderArgs","params","urlBuilder","createSearchParams","buildStatisticsUrl","_ref25","enricherArgs","getStatisticsImg","statisticsUrl","hidden","alt","src","height","width","sortByOrderAsc","items","sortBy","sortByConfidenceDesc","orderBy","getCategoryPageTitle","getCategoryPageDescription","getEntryPageTitle","axios","create","baseURL","useFetch","request","refetchTrigger","undefined","alreadyFetchedData","_useState","useState","_useState2","setData","_useState3","_useState4","isFetching","setIsFetching","_useState5","_useState6","_useState7","_useState8","isMounted","setIsMounted","_useState9","_useState10","setKey","useEffect","baseApi","get","then","catch","finally","_excluded","_extends","Object","assign","bind","target","i","source","prototype","hasOwnProperty","apply","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgReadmoreArrow","svgRef","title","titleId","viewBox","xmlns","xmlnsXlink","ref","id","stroke","strokeWidth","transform","points","ForwardRef","LinkMore","contentId","_ref$anchor","_ref$name","name","_ref$labelledBy","labelledBy","_ref$additionalClassN","additionalClassNames","t","useTranslation","linkClasses","classNames","defaultTitle","defaultText","_jsxs","Link","className","to","Icon","Alerts","alerts","isFetchingAlerts","alertInfoClasses","alert","priority","map","description","Loader","wrapperClasses","inline","large","additionalClass","loaderClasses","spinner","dotted","String","replaceHrefPrefix","replace","replaceResourcePrefix","_path","Content","content","statisticsImg","setStatisticsImg","handleClick","_e$target","open","sanitisedContent","_Fragment","dangerouslySetInnerHTML","__html","onClick","onAuxClick","button","ContactFooter","_description$split","decisionTree","setDecisionTree","setDescription","getContentByTarget","_decisionTree$steps","_decisionTree$steps$t","steps","getSortedChoices","choices","_decisionTree$steps2","_decisionTree$steps2$","root","getChoices","descriptionLines","split","line","Fragment","Element","Tabs","TabList","role","_getSortedChoices","item","Tab","selectedClassName","getTabButtons","_getSortedChoices2","TabPanel","getTabContent","LinksBoxWithName","links","_ref$isFetching","_ref$category","boxName","resolvedLinks","entries","link","categoryName","LinksBoxesWithName","_link$entries","_link$entries$slice","_link$entries2","entriesLinks","slice","SvgSearch","x","y","enableBackground","xmlSpace","d","useSearch","isFetchingFromSearchResult","setSearchConfidence","phrase","onSearch","debouncedPhrase","setDebouncedPhrase","results","setResults","isTyping","setIsTyping","_useState11","_useState12","isFetchingData","setIsFetchingData","_useState13","_useState14","timeoutId","setTimeout","clearTimeout","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","post","searchText","metadata","stop","useOutsideClick","parentRef","clickedOutside","setClickedOutside","onBodyClick","_parentRef$current","clickedOutsideParentRef","current","contains","body","addEventListener","removeEventListener","Autocomplete","isVisible","triggerAutocompleteHiding","submitHandler","shouldRenderContent","setShouldRenderContent","areResultsPresent","Search","_searchParams$get","setSearchPhraseForParent","hasThePhraseBeenUpdated","navigate","useNavigate","_useSearchParams","useSearchParams","searchParams","setSearchPhrase","_useSearch","formEl","useRef","_searchParams$get2","pathname","shouldDisplayAutocomplete","submitButton","onSubmit","htmlFor","placeholder","onChange","HelpAndSupport","_useFetch","_useFetch2","alertsError","_useFetch3","expandEditorDefinedCategories","_useFetch4","categories","isFetchingCategories","categoriesError","setStatisticsUrl","loader","helmet","Helmet","categoriesWithoutAlerts","filter","Breadcrumb","_useParams","useParams","ListItem","getPath","segment","getLink","text","_objectSpread","getSeparator","uid","createBreadcrumb","path","separator","breadcrumbs","createBreadcrumbs","Teasers","teasers","_entry$categoryId","Error","headingClasses","pageNotFound","PageUnavailable","PageNotFound","LinksBoxWithEntries","_ref$boxName","_entries$slice","renderListOfLinks","Aside","isAlertCategory","isFetchingContent","contentError","contentHeader","renderContent","Category","_location$state","useLocation","_useFetch5","_useFetch6","categoryDetails","isFetchingDetails","detailsError","_useFetch7","_useFetch8","isFetchingEntries","entriesError","handleStatistics","categoriesWithoutCurrentAndAlerts","categoryDetailsName","isAlert","teasersBody","Choice","stepId","_ref$title","Node","_ref$choiceId","choiceId","Step","_ref$content","_ref$choices","Path","nodes","getStepFromDecisionTree","_this","toStep","node","toSteps","isChosen","_this$nodes","_this$nodes$find","find","setSelectedChoice","choice","truncateUnselectedSteps","chosenStepIndex","findIndex","addTargetStep","ButtonStyle","ActiveButtonStyle","backgroundColor","color","DecisionTree","setLastStep","setPath","setSteps","choiceTarget","setChoiceTarget","getLastStepAndCallBack","useCallback","lastStep","getLastStep","matchMedia","matches","scrollElementIntoViewOnMobile","getTitle","step","getContent","sortedChoicesButtonElements","updatedPath","updatedSteps","updatePathAndSteps","SvgFeedbackUp","fill","fillRule","clipRule","SvgFeedbackDown","SvgClose","FeedbackBox","entryRef","entryId","openFeedback","setOpenFeedback","isSent","setIsSent","isClosed","setIsClosed","textForm","setTextForm","invalidStateOfTextArea","setInvalidStateOfTextArea","getStatisticsUrlForFeedback","handleYesClick","handleNoClick","handleOnChangeTextarea","sendResponse","_textForm$trim","trim","header","focusable","disabled","IconFeedbackUp","IconFeedbackDown","ListLinks","listLinkClasses","linkElements","ListLinksSection","heading","defaultEntryState","itemId","fetchTimestamp","defaultLastStepState","Entry","_location$state2","_location$state3","_location$state$entry","_location$state4","_location$state5","predictiveSearchStatisticsUrl","setPredictiveSearchStatisticsUrl","setState","setCategoryId","setCategoryName","_useState15","_useState16","relatedContent","isFetchingRelatedContent","relatedContentError","Date","now","statisticsImgUrl","getStatisticsUrlForPredictiveSearch","replaceState","decisionTreeComponent","contentComponent","isNotCurrent","entriesWithoutCurrent","alertsWithoutCurrent","_lastStep$choices","votingUid","feedbackEntryRef","collateralContent","SvgAngleDown","BoxWithUmbracoSearch","hostURL","origin","URLSearchParams","IconSearch","IconAngleDown","SearchResult","resultsToDisplay","setResultsToDisplay","isLoading","setIsLoading","initialPhrase","setHasTheTermBeenUpdated","_useState17","_useState18","setIsFetchingFromSearchResult","_useState19","_useState20","setTriggerAutocompleteHiding","isSearchPhraseEqualToInitialTerm","currentSearchPhrase","getStatisticsUrlForSearch","limit","rel","resultsCount","headerParagraph","getHeader","ScrollToTop","scrollTo","App","createMemoryHistory","getElementsByTagName","smoothscroll","polyfill","Suspense","fallback","HelmetProvider","Router","Routes","Route","exact","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","React","StrictMode"],"mappings":"mQAAMA,EACGC,8EAGHC,EACkBD,iBADlBC,EAEaD,kBAFbC,EAGoBD,wBAHpBC,EAIeD,oBAGfE,EACcF,uBADdE,EAEIF,MAFJE,EAGQF,kBAIRG,EAAgB,8BAChBC,EAAO,CACTD,cAAeA,EACfE,oBAAqB,oEACrBC,qBAAsB,sBAAwBH,EAC9CI,kBAAmB,oBAAsBJ,GAGvCK,EACMR,SAGNS,EACM,SADNA,EAEU,aAFVA,EAGe,kBAHfA,EAImB,sBAJnBA,EAKK,QALLA,EAMc,iBAGdC,EACGV,wDADHU,EAEOV,IAFPU,EAGMV,IAGNW,EACQX,YADRW,EAEaX,iBAGbY,EACGZ,uDAGHa,EACQ,IADRA,EAES,ICpDTC,EAAOC,OAAOC,mBACpBC,IACKC,IAAIC,KACJD,IAAIE,KACJC,KAAK,CACFC,IAAK,KACLC,YAAa,KACbC,QAAS,CACLC,SAAS,GAADC,OAAS,OAAJZ,QAAI,IAAJA,IAAQf,EAAO,qBAEhC4B,OAAO,IAGAV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,IAAK,CACFvM,KAAI,GAAAjZ,OAAKxB,EAAmB,qBAC5BiE,QAASP,cAACgf,GAAK,MAEnBhf,cAACsjB,IAAK,CACFvM,KAAI,GAAAjZ,OAAKxB,EAAmB,cAC5BiE,QAASP,cAACqY,GAAQ,MAEtBrY,cAACsjB,IAAK,CAACvM,KAAK,IAAIxW,QAASP,cAAC0X,GAAY,sBAU9E,EC7Ce8L,GAdS,SAACC,GACjBA,GAAeA,aAAuBC,UACtC,8BAAqBhc,MACjB,SAAAzF,GAAkD,IAA/C0hB,EAAM1hB,EAAN0hB,OAAQC,EAAM3hB,EAAN2hB,OAAQC,EAAM5hB,EAAN4hB,OAAQC,EAAM7hB,EAAN6hB,OAAQC,EAAO9hB,EAAP8hB,QAC/BJ,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,EACZ,GAGZ,ECLAO,IAASC,OACLjkB,cAACkkB,IAAMC,WAAU,CAAAjkB,SACbF,cAAC4iB,GAAG,MAERxhB,SAASC,eAAe,qBAM5BmiB,I","file":"App_Plugins/Equiniti.HelpAndSupport/scripts/main.fd973aaf.chunk.js","sourcesContent":["const API = {\r\n url: process.env.REACT_APP_BASE_API\r\n};\r\n\r\nconst ID = {\r\n searchResultPageId: process.env.REACT_APP_SEARCH_RESULTS_ID,\r\n searchInputId: process.env.REACT_APP_SEARCH_INPUT_ID,\r\n homePageCategoriesId: process.env.REACT_APP_HOME_PAGE_CATEGORIES_ID,\r\n contactFooterId: process.env.REACT_APP_CONTACT_FOOTER_ID\r\n};\r\n\r\nconst PATH = {\r\n helpAndSupport: process.env.REACT_APP_HELP_AND_SUPPORT_PATH,\r\n home: process.env.REACT_APP_HOME_PATH,\r\n eqSearch: process.env.REACT_APP_EQUINITI_SEARCH_PATH,\r\n alerts: process.env.REACT_APP_ALERTS_PATH\r\n};\r\n\r\nconst homePageTitle = 'Help and Support - Equiniti';\r\nconst META = {\r\n homePageTitle: homePageTitle,\r\n homePageDescription: 'Find answers to questions we are asked here every day at Equiniti',\r\n unavailablePageTitle: 'Page Unavailable - ' + homePageTitle,\r\n notFoundPageTitle: 'Page Not Found - ' + homePageTitle\r\n};\r\n\r\nconst CATEGORY = {\r\n alerts: process.env.REACT_APP_ALERTS_CATEGORY\r\n};\r\n\r\nconst ENTITY = {\r\n alerts: 'alerts',\r\n categories: 'categories',\r\n categoryDetails: 'categoryDetails',\r\n entriesByCategoryId: 'entriesByCategoryId',\r\n entry: 'entry',\r\n relatedContent: 'relatedContent'\r\n};\r\n\r\nconst STATISTICS = {\r\n url: process.env.REACT_APP_EQUINITI_STATISTICS_URL,\r\n voteYes: process.env.REACT_APP_EQUINITI_STATISTICS_VOTE_YES,\r\n voteNo: process.env.REACT_APP_EQUINITI_STATISTICS_VOTE_NO\r\n};\r\n\r\nconst STATIC = {\r\n category: process.env.REACT_APP_EQUINITI_STATIC_CATEGORY,\r\n contactFooter: process.env.REACT_APP_EQUINITI_STATIC_CONTACT_FOOTER\r\n};\r\n\r\nconst RESOURCES = {\r\n url: process.env.REACT_APP_RESOURCES_URL\r\n};\r\n\r\nconst ERRORS = {\r\n notFound: 404,\r\n unhandled: 500\r\n};\r\n\r\nexport {\r\n API,\r\n ID,\r\n PATH,\r\n META,\r\n CATEGORY,\r\n ENTITY,\r\n STATISTICS,\r\n STATIC,\r\n RESOURCES,\r\n ERRORS\r\n};\r\n","import i18n from 'i18next';\r\nimport { initReactI18next } from 'react-i18next';\r\nimport Backend from 'i18next-xhr-backend';\r\nimport { API } from './constants';\r\nconst base = window.REACT_APP_BASE_API;\r\ni18n\r\n .use(Backend)\r\n .use(initReactI18next)\r\n .init({\r\n lng: 'en',\r\n fallbackLng: 'en',\r\n backend: {\r\n loadPath: `${base ?? API.url}/locales/{{lng}}`\r\n },\r\n debug: true\r\n });\r\n\r\nexport default i18n;\r\n","import { PureComponent } from 'react';\r\n\r\nclass ErrorBoundary extends PureComponent {\r\n state = {\r\n errorMessage: ''\r\n };\r\n\r\n static getDerivedStateFromError(error) {\r\n return { errorMessage: error.toString() };\r\n }\r\n\r\n componentDidCatch(error, info) {\r\n const errorString = error.toString();\r\n console.error(errorString, info);\r\n try {\r\n // eslint-disable-next-line no-undef\r\n newrelic?.noticeError?.(errorString);\r\n } catch (e) {\r\n console.error(e);\r\n }\r\n }\r\n\r\n render() {\r\n if (this.state.errorMessage) {\r\n return (\r\n

\r\n The Help & Support is currently unavailable\r\n

\r\n );\r\n }\r\n\r\n return this.props.children;\r\n }\r\n}\r\n\r\nexport default ErrorBoundary;\r\n","var _desc, _defs, _g;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgReadmoreArrow(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: \"9px\",\n height: \"13px\",\n viewBox: \"0 0 9 13\",\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title === undefined ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, \"readmore-arrow\") : title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _desc || (_desc = /*#__PURE__*/React.createElement(\"desc\", null, \"Created with Sketch.\")), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null)), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Page-1\",\n stroke: \"none\",\n strokeWidth: 1\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"content-components\",\n transform: \"translate(-543.000000, -14896.000000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group-22\",\n transform: \"translate(340.000000, 516.000000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group-10\",\n transform: \"translate(40.000000, 13855.000000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group-9\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group-5\",\n transform: \"translate(30.000000, 336.000000)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group-7\",\n transform: \"translate(0.000000, 184.000000)\"\n }, /*#__PURE__*/React.createElement(\"polygon\", {\n id: \"readmore-arrow\",\n points: \"141.071068 11.6568542 134.707107 5.29289322 133.292893 6.70710678 138.259867 11.6396278 133.292893 16.6066017 134.707107 18.0208153\"\n }))))))))));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgReadmoreArrow);\nexport default __webpack_public_path__ + \"static/media/readmore-arrow.b4e3bf35.svg\";\nexport { ForwardRef as ReactComponent };","import { sortBy, orderBy } from 'lodash';\r\nimport { createSearchParams } from 'react-router-dom';\r\nimport { STATISTICS, ENTITY, META } from './constants';\r\n\r\nconst isIos = () => /(iPad|iPhone|iPod)/g.test(navigator.userAgent);\r\n\r\nconst pushToHistoryAndScrollIntoView = (anchor, element) => {\r\n // TODO: Use the React idiomatic version of replacing history state\r\n if (window.location?.href && !window.location.href.includes(`#${anchor}`)) {\r\n window.history.pushState(null, '', `#${anchor}`);\r\n }\r\n element?.scrollIntoView({ behavior: 'smooth' });\r\n};\r\n\r\nconst scrollElementIntoView = (e, anchor) => {\r\n try {\r\n if (!isIos()) {\r\n return;\r\n }\r\n\r\n if (!anchor) {\r\n return;\r\n }\r\n\r\n const element = document.getElementById(anchor);\r\n if (!element) {\r\n console.error('There is no target element');\r\n return;\r\n }\r\n\r\n e.preventDefault();\r\n pushToHistoryAndScrollIntoView(anchor, element);\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n};\r\n\r\nconst scrollElementIntoViewOnMobile = (anchor) => {\r\n try {\r\n const mediaQueryM = window.matchMedia('(min-width: 720px)');\r\n if (mediaQueryM.matches) {\r\n return;\r\n }\r\n\r\n if (!anchor) {\r\n return;\r\n }\r\n\r\n const element = document.getElementById(anchor);\r\n if (!element) {\r\n console.error('There is no target element');\r\n return;\r\n }\r\n\r\n pushToHistoryAndScrollIntoView(anchor, element);\r\n } catch (error) {\r\n console.error(error);\r\n }\r\n};\r\n\r\nconst getDataFromResponse = (response) => response.data.data;\r\nconst setErrorStatus = (setError, error) => setError(error?.response?.status ?? true);\r\n\r\nconst UrlBuilder = {\r\n [ENTITY.alerts]: ([category]) => `/${category}`,\r\n [ENTITY.categories]: () => '/categories',\r\n [ENTITY.categoryDetails]: ([category]) => `/categories/${category}`,\r\n [ENTITY.entriesByCategoryId]: ([category]) => `/categories/${category}/entries`,\r\n [ENTITY.entry]: ([category, entry]) => `/categories/${category}/entries/${entry}`,\r\n [ENTITY.relatedContent]: ([category, entry]) => `/categories/${category}/items/${entry}/related`\r\n};\r\n\r\nconst StatisticsEnricher = {\r\n home: {\r\n enricher: () => 'group=content-eq',\r\n type: 'location-view'\r\n },\r\n search: {\r\n enricher: ([searchPhrase, searchConfidence]) =>\r\n `searchtext=${searchPhrase};searchconf=${searchConfidence};group=content-eq`,\r\n type: 'location-search'\r\n },\r\n predictiveSearch: {\r\n enricher: ([searchPhrase, searchConfidence, entryName]) =>\r\n `searchtext=${searchPhrase};searchconf=${searchConfidence};name=${entryName};group=content-eq`,\r\n type: 'location-search-ahead'\r\n },\r\n category: {\r\n enricher: ([categoryId]) => `category=${categoryId}`,\r\n type: 'location-view'\r\n },\r\n entry: {\r\n enricher: ([entryUid]) => `entry-uid=${entryUid}`,\r\n type: 'entry-view'\r\n },\r\n feedback: {\r\n enricher: ([entryUid, vote]) => `entry-uid=${entryUid};vote=${vote}`,\r\n type: 'entry-vote'\r\n },\r\n decision: {\r\n enricher: ([stepUid]) => `entry-uid=${stepUid};vote=1`,\r\n type: 'make-decision'\r\n },\r\n externalContent: {\r\n enricher: ([url]) => `linkData=${url}`,\r\n type: 'link-click'\r\n }\r\n};\r\n\r\nconst buildRequest = (entity, urlBuilderArgs, params) => {\r\n const urlBuilder = UrlBuilder[entity];\r\n\r\n return {\r\n url: urlBuilder(urlBuilderArgs),\r\n params: params && createSearchParams(params)\r\n };\r\n};\r\n\r\nconst buildStatisticsUrl = ({ type, enricher }, ...enricherArgs) => {\r\n const getStatisticsType = () => `statistic=${type}`;\r\n\r\n return (\r\n STATISTICS.url +\r\n '?client=equiniti;usergroup=content-eq;' +\r\n getStatisticsType() +\r\n ';' +\r\n enricher(enricherArgs)\r\n );\r\n};\r\n\r\nconst getStatisticsUrlForHome = () =>\r\n buildStatisticsUrl(StatisticsEnricher.home);\r\n\r\nconst getStatisticsUrlForSearch = (searchPhrase, searchConfidence) =>\r\n buildStatisticsUrl(StatisticsEnricher.search, searchPhrase, searchConfidence);\r\n\r\nconst getStatisticsUrlForPredictiveSearch = (searchPhrase, searchConfidence, entryName) =>\r\n buildStatisticsUrl(StatisticsEnricher.predictiveSearch, searchPhrase, searchConfidence, entryName);\r\n\r\nconst getStatisticsUrlForCategory = (categoryId) =>\r\n buildStatisticsUrl(StatisticsEnricher.category, categoryId);\r\n\r\nconst getStatisticsUrlForEntry = (entryUid) =>\r\n buildStatisticsUrl(StatisticsEnricher.entry, entryUid);\r\n\r\nconst getStatisticsUrlForFeedback = (entryUid, vote) =>\r\n buildStatisticsUrl(StatisticsEnricher.feedback, entryUid, vote);\r\n\r\nconst getStatisticsUrlForDecisionTreeDecision = (stepUid) =>\r\n buildStatisticsUrl(StatisticsEnricher.decision, stepUid);\r\n\r\nconst getStatisticsUrlForExternalContent = (url) =>\r\n buildStatisticsUrl(StatisticsEnricher.externalContent, url);\r\n\r\nconst getStatisticsImg = (statisticsUrl) =>\r\n ;\r\n\r\nconst sortByOrderAsc = items => sortBy(items, ['order']);\r\nconst sortByConfidenceDesc = items => orderBy(items, ['confidence'], ['desc']);\r\n\r\nconst getCategoryPageTitle = category => category + ' - ' + META.homePageTitle;\r\nconst getCategoryPageDescription = category => `Find answers to questions about '${category}'`;\r\nconst getEntryPageTitle = (entry, category) => entry + ' - ' + category + ' - ' + META.homePageTitle;\r\nconst getSearchPageTitle = phrase => `Search results for: '${phrase}' - ${META.homePageTitle}`;\r\n\r\nexport {\r\n scrollElementIntoView,\r\n scrollElementIntoViewOnMobile,\r\n getDataFromResponse,\r\n setErrorStatus,\r\n buildRequest,\r\n getStatisticsUrlForHome,\r\n getStatisticsUrlForSearch,\r\n getStatisticsUrlForPredictiveSearch,\r\n getStatisticsUrlForCategory,\r\n getStatisticsUrlForEntry,\r\n getStatisticsUrlForFeedback,\r\n getStatisticsUrlForDecisionTreeDecision,\r\n getStatisticsUrlForExternalContent,\r\n getStatisticsImg,\r\n sortByOrderAsc,\r\n sortByConfidenceDesc,\r\n getCategoryPageTitle,\r\n getCategoryPageDescription,\r\n getEntryPageTitle,\r\n getSearchPageTitle\r\n};\r\n","import axios from 'axios';\r\nimport { API } from '../constants';\r\nconst base = window.REACT_APP_BASE_API;\r\nexport default axios.create({\r\n baseURL: base ?? API.url\r\n});\r\n","import { useEffect, useState } from 'react';\r\n\r\nimport baseApi from '../../api/baseApi';\r\n\r\nimport { getDataFromResponse, setErrorStatus } from '../../utils';\r\n\r\nconst useFetch = (request, refetchTrigger = null, alreadyFetchedData = null) => {\r\n const [data, setData] = useState([]);\r\n const [isFetching, setIsFetching] = useState(true);\r\n const [error, setError] = useState(null);\r\n const [isMounted, setIsMounted] = useState(false);\r\n const [key, setKey] = useState(refetchTrigger);\r\n\r\n useEffect(() => {\r\n if (alreadyFetchedData || isMounted || !request) {\r\n return;\r\n }\r\n \r\n const fetch = () => baseApi.get(request.url, request.params && { params: request.params })\r\n .then(getDataFromResponse)\r\n .then(setData)\r\n .catch(error => setErrorStatus(setError, error))\r\n .finally(() => setIsFetching(false));\r\n\r\n if (refetchTrigger) {\r\n setIsFetching(true);\r\n setData([]);\r\n }\r\n\r\n setError(null);\r\n setIsMounted(true);\r\n fetch();\r\n }, [alreadyFetchedData, request, isMounted, refetchTrigger]);\r\n\r\n useEffect(() => {\r\n if (alreadyFetchedData || !refetchTrigger || !key || key === refetchTrigger) {\r\n return;\r\n }\r\n\r\n setKey(refetchTrigger);\r\n setIsMounted(false);\r\n }, [alreadyFetchedData, refetchTrigger, key]);\r\n\r\n if (alreadyFetchedData) {\r\n return [alreadyFetchedData, false, null];\r\n }\r\n\r\n return [\r\n data,\r\n isFetching,\r\n error\r\n ];\r\n};\r\n\r\nexport default useFetch;\r\n","import { React } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { useTranslation } from 'react-i18next';\r\nimport classNames from 'classnames';\r\nimport { PATH } from '../../../constants';\r\nimport { ReactComponent as Icon } from '../../../img/readmore-arrow.svg';\r\n\r\nconst LinkMore = ({\r\n contentId,\r\n anchor = null,\r\n name = null,\r\n labelledBy = null,\r\n additionalClassNames = null\r\n}) => {\r\n const { t } = useTranslation();\r\n\r\n const linkClasses = classNames('link', 'link--more', additionalClassNames);\r\n\r\n const defaultTitle = `${t('ui.linkMore.title')}`;\r\n const defaultText = `${t('ui.linkMore.text')}`;\r\n\r\n return (\r\n \r\n {anchor || defaultText} {name && {name}}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default LinkMore;\r\n","import classNames from 'classnames';\r\nimport React from 'react';\r\nimport { CATEGORY } from '../../../constants';\r\nimport LinkMore from '../LinkMore/LinkMore';\r\n\r\nconst Alerts = ({ alerts, isFetchingAlerts }) => {\r\n\r\n const alertInfoClasses = classNames('alert-info', {\r\n 'alert-info--urgent': alert.priority === 'high',\r\n 'alert-info--single': alerts.length === 1\r\n });\r\n if (isFetchingAlerts || !alerts?.length > 0) {\r\n return null;\r\n }\r\n\r\n return alerts.map(alert => (\r\n
\r\n

{alert.name}

\r\n

{alert.description}

\r\n \r\n
\r\n ));\r\n};\r\n\r\nexport default Alerts;\r\n","import React from 'react';\r\nimport classNames from 'classnames';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nconst Loader = props => {\r\n const { t } = useTranslation();\r\n\r\n const wrapperClasses = classNames({\r\n 'loader-wrapper': true,\r\n 'loader-wrapper--inline': props.inline,\r\n 'loader-wrapper--large': props.large\r\n }, props.additionalClass);\r\n\r\n const loaderClasses = classNames('loader', {\r\n 'loader--spinner': props.spinner,\r\n 'loader--dotted': props.dotted\r\n });\r\n\r\n return (\r\n
\r\n
\r\n {t('ui.loader.text')}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default Loader;\r\n","import { useEffect, useState } from 'react';\r\n\r\nimport { getStatisticsImg, getStatisticsUrlForExternalContent } from '../../../../utils';\r\n\r\nimport { PATH, RESOURCES } from '../../../../constants';\r\n\r\nString.prototype.replaceHrefPrefix = function () {\r\n return this.replace(/mfxanswer:/g, `${PATH.helpAndSupport}/`);\r\n};\r\nString.prototype.replaceResourcePrefix = function () {\r\n return this.replace(/mfxresource:/g, `${RESOURCES.url}/`);\r\n};\r\n\r\nconst Content = ({ content }) => {\r\n const [statisticsImg, setStatisticsImg] = useState(null);\r\n\r\n useEffect(() => {\r\n const enableStatisticsLoggingManyTimesForTheSameUrl = () => {\r\n if (statisticsImg) {\r\n setStatisticsImg(null);\r\n }\r\n };\r\n\r\n enableStatisticsLoggingManyTimesForTheSameUrl();\r\n }, [statisticsImg]);\r\n\r\n if (!content) {\r\n return null;\r\n }\r\n\r\n const handleScrollWheelClick = (e) => {\r\n if (e.button !== 1) {\r\n return;\r\n }\r\n\r\n handleClick(e);\r\n };\r\n\r\n const handleClick = (e) => {\r\n if (!e?.target === 'a') {\r\n return;\r\n }\r\n\r\n const href = e?.target?.href;\r\n if (!href) {\r\n return;\r\n }\r\n\r\n e.preventDefault();\r\n const statisticsUrl = getStatisticsUrlForExternalContent(href);\r\n setStatisticsImg(getStatisticsImg(statisticsUrl));\r\n window.open(href, '_blank', 'noreferrer');\r\n };\r\n\r\n const sanitisedContent = content\r\n .replaceHrefPrefix()\r\n .replaceResourcePrefix();\r\n\r\n return (\r\n <>\r\n {statisticsImg}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default Content;\r\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgSearch(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n id: \"Layer_1\",\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\",\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 400 400\",\n style: {\n enableBackground: \"new 0 0 400 400\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n className: \"st0\",\n d: \"M383.49,398.8c-3.61,0-7.22-1.38-9.97-4.13l-118.48-118.3c-26.89,22.39-61.45,35.88-99.12,35.88 c-85.46,0-154.99-69.44-154.99-154.8C0.93,72.12,70.46,2.69,155.92,2.69s154.99,69.42,154.99,154.76c0,37.6-13.49,72.11-35.9,98.96 l118.45,118.28c5.52,5.51,5.52,14.45,0.01,19.96C390.72,397.42,387.11,398.8,383.49,398.8z M155.92,30.93 c-69.89,0-126.75,56.76-126.75,126.52c0,69.79,56.86,126.56,126.75,126.56c69.89,0,126.75-56.78,126.75-126.56 C282.67,87.69,225.81,30.93,155.92,30.93z\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgSearch);\nexport default __webpack_public_path__ + \"static/media/search.49f8f0d3.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState, useEffect, Fragment } from 'react';\r\nimport { Element } from 'react-scroll';\r\nimport { Tab, Tabs, TabList, TabPanel } from 'react-tabs';\r\n\r\nimport { ID, STATIC } from '../../../constants';\r\nimport { getDataFromResponse, sortByOrderAsc, setErrorStatus } from '../../../utils';\r\nimport baseApi from '../../../api/baseApi';\r\nimport { ReactComponent as Icon } from '../../../img/readmore-arrow.svg';\r\n\r\nimport Loader from '../../UI/Loader/Loader';\r\nimport Content from '../../Layout/Entry/Content/Content';\r\n\r\nconst ContactFooter = () => {\r\n const [isMounted, setIsMounted] = useState(false);\r\n const [decisionTree, setDecisionTree] = useState(null);\r\n const [description, setDescription] = useState(null);\r\n const [error, setError] = useState(false);\r\n\r\n const getContentByTarget = (target) => decisionTree?.steps?.[target]?.content;\r\n const getChoices = () => decisionTree?.steps?.[decisionTree?.root]?.choices;\r\n const getSortedChoices = () => {\r\n const choices = getChoices();\r\n if (!choices) {\r\n return null;\r\n }\r\n\r\n return sortByOrderAsc(choices);\r\n };\r\n\r\n useEffect(() => {\r\n setIsMounted(true);\r\n return () => setIsMounted(false);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!isMounted) {\r\n return;\r\n }\r\n\r\n baseApi.get(`/categories/${STATIC.category}/entries/${STATIC.contactFooter}`)\r\n .then(getDataFromResponse)\r\n .then(data => {\r\n if (!isMounted) {\r\n return;\r\n }\r\n\r\n setDecisionTree(data.decisionTree);\r\n setDescription(data.description);\r\n })\r\n .catch(error => setErrorStatus(setError, error));\r\n }, [isMounted]);\r\n\r\n if (error || !isMounted) {\r\n return null;\r\n }\r\n\r\n const getTabButtons = () => getSortedChoices()?.map(item => (\r\n \r\n {item?.title}\r\n \r\n \r\n \r\n \r\n ));\r\n\r\n const getTabContent = () => getSortedChoices()?.map(item => (\r\n \r\n \r\n \r\n ));\r\n\r\n const descriptionLines = description\r\n ?.split(/\\r\\n|\\n|\\r/gm)\r\n ?.map(line => {line}
);\r\n\r\n return (\r\n \r\n {!decisionTree\r\n ?
\r\n :
\r\n
\r\n

\r\n {descriptionLines}\r\n

\r\n
\r\n
\r\n\r\n \r\n \r\n {getTabButtons()}\r\n \r\n {getTabContent()}\r\n \r\n
\r\n
}\r\n
\r\n );\r\n};\r\n\r\nexport default ContactFooter;\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { PATH } from '../../../constants';\r\n\r\nconst LinksBoxWithName = ({ links, isFetching = false, category = null, boxName }) => {\r\n if (isFetching || !links) {\r\n return null;\r\n }\r\n\r\n const resolvedLinks = links.map((item) => {\r\n if (item?.entries) {\r\n return null;\r\n }\r\n\r\n const link = category\r\n ? `${PATH.helpAndSupport}/${category}/${item.id}`\r\n : `${PATH.helpAndSupport}/${item.id}`;\r\n\r\n return (\r\n
  • \r\n \r\n {item.name}\r\n \r\n
  • \r\n );\r\n });\r\n\r\n return (\r\n
    \r\n {resolvedLinks &&

    {boxName}

    }\r\n
      \r\n {resolvedLinks}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default LinksBoxWithName;\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { PATH } from '../../../constants';\r\n\r\nimport LinkMore from '../LinkMore/LinkMore';\r\nimport Loader from '../Loader/Loader';\r\n\r\nconst LinksBoxesWithName = ({ links, isFetching = false }) => {\r\n const { t } = useTranslation();\r\n\r\n if (isFetching || !links) {\r\n return null;\r\n }\r\n\r\n return links.map((link) => {\r\n if (!link?.entries) {\r\n return null;\r\n }\r\n\r\n const entriesLinks = link?.entries?.slice(0, 3)?.map((entry) => (\r\n
  • \r\n \r\n {entry.name}\r\n \r\n
  • \r\n ));\r\n\r\n return (\r\n
    \r\n

    {link.name}

    \r\n {isFetching && }\r\n {!link?.entries?.length > 0 ? (\r\n

    {t('ui.linksBoxesWithName.empty')}

    \r\n ) : (\r\n <>\r\n
      {entriesLinks}
    \r\n \r\n \r\n )}\r\n
    \r\n );\r\n });\r\n};\r\n\r\nexport default LinksBoxesWithName;\r\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgFeedbackUp(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 16,\n viewBox: \"0 0 14 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12 14.5C12 14.318 11.963 14.146 11.903 13.984C12.797 13.905 13.5 13.164 13.5 12.25C13.5 11.789 13.318 11.373 13.027 11.061C13.602 10.773 14 10.186 14 9.50001C14 8.81301 13.602 8.22701 13.027 7.93901C13.426 7.51201 13.619 6.88901 13.422 6.22401C13.201 5.48001 12.472 5.00001 11.696 5.00001H9H8L8.789 3.42201C8.928 3.14501 9 2.83801 9 2.52701V2.50001C9 1.12301 7.888 0.00701335 6.513 1.33482e-05C6.233 -0.00198665 6 0.221013 6 0.500013V1.62401C6 1.86601 5.912 2.10101 5.752 2.28201L2.799 5.65801C2.609 5.87501 2.334 6.00001 2.046 6.00001H0V14H2.049C2.348 14 2.646 14.045 2.931 14.133L5.654 15.136C7.206 15.707 8.846 16 10.5 16C11.329 16 12 15.328 12 14.5Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgFeedbackUp);\nexport default __webpack_public_path__ + \"static/media/feedback-up.3e300001.svg\";\nexport { ForwardRef as ReactComponent };","import { useEffect, useState } from 'react';\r\n\r\nimport baseApi from '../../api/baseApi';\r\n\r\nimport { setErrorStatus } from '../../utils';\r\nimport { ERRORS } from '../../constants';\r\n\r\nconst useSearch = ({ searchPhrase, isFetchingFromSearchResult }) => {\r\n const [searchConfidence, setSearchConfidence] = useState('');\r\n const [phrase, onSearch] = useState(searchPhrase ?? '');\r\n const [debouncedPhrase, setDebouncedPhrase] = useState(phrase);\r\n const [results, setResults] = useState([]);\r\n const [isTyping, setIsTyping] = useState(false);\r\n const [isFetchingData, setIsFetchingData] = useState(false);\r\n const [error, setError] = useState(null);\r\n\r\n useEffect(() => {\r\n if (!phrase) {\r\n return;\r\n }\r\n const timeoutId = setTimeout(() => {\r\n if (!phrase) {\r\n return;\r\n }\r\n\r\n setDebouncedPhrase(phrase);\r\n setIsTyping(true);\r\n }, 300);\r\n\r\n return () => {\r\n setIsTyping(false);\r\n clearTimeout(timeoutId);\r\n };\r\n }, [phrase]);\r\n\r\n useEffect(() => {\r\n if (!debouncedPhrase || isFetchingFromSearchResult) {\r\n return;\r\n }\r\n const search = async () => {\r\n setIsFetchingData(true);\r\n setError(null);\r\n setResults([]);\r\n await baseApi\r\n .post('/search', { searchText: debouncedPhrase })\r\n .then((response) => {\r\n setSearchConfidence(response.data.metadata.searchConfidence);\r\n return response.data.data;\r\n })\r\n .then(setResults)\r\n .catch(error => {\r\n if (!error?.response) {\r\n setError(ERRORS.unhandled);\r\n } else {\r\n setErrorStatus(setError, error);\r\n }\r\n setResults([]);\r\n });\r\n setIsFetchingData(false);\r\n };\r\n search();\r\n\r\n return () => setIsFetchingData(false);\r\n }, [debouncedPhrase, isFetchingFromSearchResult]);\r\n\r\n return { searchConfidence, results, isTyping, isFetchingData, onSearch, error };\r\n};\r\n\r\nexport default useSearch;\r\n","import { useEffect, useState } from 'react';\r\n\r\nconst useOutsideClick = (parentRef) => {\r\n const [clickedOutside, setClickedOutside] = useState(false);\r\n\r\n useEffect(() => {\r\n const onBodyClick = (e) => {\r\n const clickedOutsideParentRef = !parentRef?.current?.contains(\r\n e.target\r\n );\r\n setClickedOutside(clickedOutsideParentRef);\r\n };\r\n\r\n document.body.addEventListener('click', onBodyClick);\r\n\r\n return () => {\r\n setClickedOutside(false);\r\n document.body.removeEventListener('click', onBodyClick);\r\n };\r\n }, [parentRef]);\r\n\r\n return { clickedOutside };\r\n};\r\n\r\nexport default useOutsideClick;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { ERRORS, PATH } from '../../../constants';\r\nimport { sortByConfidenceDesc } from '../../../utils';\r\nimport { ReactComponent as Icon } from '../../../img/readmore-arrow.svg';\r\n\r\nimport Loader from '../Loader/Loader';\r\nimport useOutsideClick from '../../Hooks/useOutsideClick';\r\n\r\nconst Autocomplete = ({\r\n parentRef,\r\n results,\r\n isFetchingData,\r\n isVisible,\r\n searchConfidence,\r\n searchPhrase,\r\n triggerAutocompleteHiding,\r\n submitHandler,\r\n error\r\n}) => {\r\n const { t } = useTranslation();\r\n const { clickedOutside } = useOutsideClick(parentRef);\r\n const [shouldRenderContent, setShouldRenderContent] = useState(false);\r\n\r\n useEffect(() => {\r\n setShouldRenderContent(false);\r\n }, [triggerAutocompleteHiding]);\r\n\r\n useEffect(() => {\r\n if (isVisible && !clickedOutside) {\r\n setShouldRenderContent(true);\r\n }\r\n\r\n return () => {\r\n setShouldRenderContent(false);\r\n };\r\n }, [isVisible, clickedOutside]);\r\n\r\n const areResultsPresent = () => results && results.length !== 0;\r\n\r\n const loader = (\r\n
    \r\n \r\n
    \r\n );\r\n\r\n const getList = () => {\r\n if (error === ERRORS.unhandled) {\r\n return (\r\n
  • \r\n {t('ui.autocomplete.error')}\r\n
  • \r\n );\r\n }\r\n\r\n if (!areResultsPresent()) {\r\n return (\r\n \r\n {t('ui.autocomplete.empty')} "{searchPhrase}"\r\n \r\n );\r\n }\r\n\r\n const sortedResults = sortByConfidenceDesc(results);\r\n return sortedResults.map((item) => (\r\n
  • \r\n \r\n {item.name}\r\n \r\n \r\n
  • \r\n ));\r\n };\r\n\r\n const content = isFetchingData ? (\r\n loader\r\n ) : (\r\n <>\r\n
      \r\n {getList()}\r\n
    \r\n {areResultsPresent() && (\r\n \r\n {t('ui.autocomplete.viewAll')}\r\n \r\n \r\n )}\r\n \r\n );\r\n\r\n return shouldRenderContent &&
    {content}
    ;\r\n};\r\n\r\nexport default Autocomplete;\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport {\r\n useNavigate,\r\n createSearchParams,\r\n useSearchParams\r\n} from 'react-router-dom';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { ID, PATH } from '../../../constants';\r\nimport { ReactComponent as Icon } from '../../../img/search.svg';\r\nimport useSearch from '../../Hooks/useSearch';\r\nimport Autocomplete from '../Autocomplete/Autocomplete';\r\n\r\nconst Search = ({\r\n setSearchPhraseForParent,\r\n hasThePhraseBeenUpdated,\r\n triggerAutocompleteHiding,\r\n isFetchingFromSearchResult\r\n}) => {\r\n const { t } = useTranslation();\r\n const navigate = useNavigate();\r\n const [searchParams] = useSearchParams();\r\n const [searchPhrase, setSearchPhrase] = useState(\r\n searchParams.get('phrase') ?? ''\r\n );\r\n const { isTyping, searchConfidence, results, isFetchingData, onSearch, error } = useSearch({\r\n searchPhrase: searchPhrase,\r\n isFetchingFromSearchResult: isFetchingFromSearchResult\r\n });\r\n const formEl = useRef();\r\n\r\n useEffect(() => {\r\n if (setSearchPhraseForParent) {\r\n setSearchPhraseForParent(searchPhrase);\r\n }\r\n\r\n onSearch(searchPhrase);\r\n }, [searchPhrase, onSearch, setSearchPhraseForParent]);\r\n\r\n useEffect(() => {\r\n setSearchPhrase(searchParams.get('phrase') ?? '');\r\n }, [searchParams]);\r\n\r\n const submitHandler = (e) => {\r\n if (!e) {\r\n return;\r\n }\r\n e.preventDefault();\r\n\r\n if (!searchPhrase) {\r\n return;\r\n }\r\n\r\n navigate({\r\n pathname: `${PATH.helpAndSupport}/search`,\r\n search: `?${createSearchParams({ phrase: searchPhrase })}`\r\n });\r\n };\r\n\r\n const shouldDisplayAutocomplete = hasThePhraseBeenUpdated\r\n ? hasThePhraseBeenUpdated() && isTyping\r\n : isTyping;\r\n\r\n const submitButton = (\r\n \r\n \r\n {t('ui.search.button')}\r\n \r\n );\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n setSearchPhrase(e.target.value)}\r\n data-cy=\"search-bar\"\r\n data-nr=\"search-bar\"\r\n aria-label={t('ui.search.label')}\r\n />\r\n \r\n
    \r\n {submitButton}\r\n
    \r\n );\r\n};\r\n\r\nexport default Search;\r\n","import { React, useState, useEffect } from 'react';\r\nimport { Helmet } from 'react-helmet-async';\r\nimport { Element } from 'react-scroll';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { ID, CATEGORY, ENTITY, META } from '../../../constants';\r\nimport { buildRequest, getStatisticsUrlForHome, getStatisticsImg } from '../../../utils';\r\nimport useFetch from '../../Hooks/useFetch';\r\n\r\nimport Alerts from '../../UI/Alerts/Alerts';\r\nimport ContactFooter from '../../UI/ContactFooter/ContactFooter';\r\nimport LinksBoxWithName from '../../UI/LinksBoxWithName/LinksBoxWithName';\r\nimport LinksBoxesWithName from '../../UI/LinksBoxesWithName/LinksBoxesWithName';\r\nimport Loader from '../../UI/Loader/Loader';\r\nimport Search from '../../UI/Search/Search';\r\n\r\nconst HelpAndSupport = () => {\r\n const { t } = useTranslation();\r\n const [isMounted, setIsMounted] = useState(false);\r\n const [alerts, isFetchingAlerts, alertsError] = useFetch(buildRequest(ENTITY.alerts, [CATEGORY.alerts]));\r\n const [categories, isFetchingCategories, categoriesError] = useFetch(buildRequest(ENTITY.categories, [], { expandEditorDefinedCategories: true }));\r\n const [statisticsUrl, setStatisticsUrl] = useState('');\r\n\r\n useEffect(() => {\r\n setIsMounted(true);\r\n const handleStatistics = () => setStatisticsUrl(getStatisticsUrlForHome());\r\n handleStatistics();\r\n return () => setIsMounted(false);\r\n }, []);\r\n\r\n if (!isMounted) {\r\n return null;\r\n }\r\n\r\n const loader = (\r\n
    \r\n \r\n
    \r\n );\r\n\r\n const helmet = (\r\n \r\n {META.homePageTitle}\r\n \r\n \r\n );\r\n\r\n const isNotAlert = x => x.id !== CATEGORY.alerts;\r\n const categoriesWithoutAlerts = categories.filter(isNotAlert);\r\n\r\n return (\r\n <>\r\n {helmet}\r\n {statisticsUrl && getStatisticsImg(statisticsUrl)}\r\n
    \r\n
    \r\n
    \r\n

    {t('layout.hs.header')}

    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n {categoriesError ?\r\n

    \r\n {t('layout.hs.categories.error')}\r\n

    \r\n : <>\r\n {isFetchingAlerts || isFetchingCategories\r\n ? loader\r\n : <>\r\n {!alertsError && alerts?.length > 0 && (\r\n
    \r\n \r\n
    \r\n )}\r\n\r\n \r\n
    \r\n

    \r\n {t('layout.hs.categories.header')}\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\n \r\n \r\n );\r\n};\r\n\r\nexport default HelpAndSupport;\r\n","import { useParams, Link } from 'react-router-dom';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { uid } from 'uid';\r\nimport { PATH } from '../../../constants';\r\n\r\nimport { ReactComponent as Icon } from '../../../img/readmore-arrow.svg';\r\n\r\nconst Breadcrumb = ({ categoryName, entryName }) => {\r\n const { t } = useTranslation();\r\n const { category, entry } = useParams();\r\n\r\n const ListItem = ({ children }) => (\r\n
  • \r\n {children}\r\n
  • \r\n );\r\n\r\n const getPath = (segment) => `${PATH.helpAndSupport}/${segment}`;\r\n const getLink = (href, text, current) => (\r\n \r\n \r\n {text}\r\n \r\n {!current && getSeparator()}\r\n \r\n );\r\n const getSeparator = () => ;\r\n\r\n const getHomeAnchor = (href, text) => (\r\n \r\n \r\n {text}\r\n \r\n {getSeparator()}\r\n \r\n );\r\n\r\n const createBreadcrumb = (path, text, separator) =>\r\n path && text ? getLink(path, text, separator) : [];\r\n\r\n const createBreadcrumbs = ({ category, entry }) => [\r\n getHomeAnchor(PATH.home, `${t('ui.breadcrumb.home')}`),\r\n getLink(PATH.helpAndSupport, `${t('ui.breadcrumb.helpAndSupport')}`, false),\r\n createBreadcrumb(getPath(category), categoryName, !entry),\r\n createBreadcrumb(getPath(`${category}/${entry}`), entryName, true)\r\n ];\r\n\r\n const breadcrumbs = createBreadcrumbs({ category, entry });\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default Breadcrumb;\r\n","import { React } from 'react';\r\nimport Loader from '../Loader/Loader';\r\nimport LinkMore from '../LinkMore/LinkMore';\r\n\r\nconst Teasers = ({ isFetching, teasers, categoryId }) => {\r\n if (isFetching) {\r\n return ;\r\n }\r\n\r\n const content = teasers.map((entry) => {\r\n const category = entry.categoryId ?? categoryId;\r\n if (!category) {\r\n return null;\r\n }\r\n\r\n return (\r\n
  • \r\n

    {entry.name}

    \r\n

    {entry.description}

    \r\n \r\n
  • \r\n );\r\n });\r\n\r\n return
      {content}
    ;\r\n};\r\n\r\nexport default Teasers;\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { useTranslation } from 'react-i18next';\r\nimport classNames from 'classnames';\r\n\r\nimport { PATH } from '../../../constants';\r\n\r\nconst Error = props => {\r\n const { t } = useTranslation();\r\n\r\n const headingClasses = classNames('help-page__error-heading', {\r\n 'help-page__error-heading--404': props.pageNotFound\r\n });\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n

    {props.pageNotFound ? `${t('layout.error.header.notFound')}` : `${t('layout.error.header.unavailable')}`}

    \r\n
    \r\n
    \r\n

    {t('layout.error.line1')}

    \r\n

    {t('layout.error.line2')} {t('layout.error.hsLink.text')}\r\n {t('layout.error.line2Separator')} {t('layout.error.contactLink.text')}.

    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default Error;\r\n","import React from 'react';\r\nimport { Helmet } from 'react-helmet-async';\r\nimport { META } from '../../../../constants';\r\nimport Error from '../Error';\r\n\r\nconst PageUnavailable = () => (\r\n <>\r\n \r\n {META.unavailablePageTitle}\r\n \r\n \r\n \r\n);\r\n\r\nexport default PageUnavailable;\r\n","import React from 'react';\r\nimport { Helmet } from 'react-helmet-async';\r\nimport { META } from '../../../../constants';\r\nimport Error from '../Error';\r\n\r\nconst PageNotFound = () => (\r\n <>\r\n \r\n {META.notFoundPageTitle}\r\n \r\n \r\n \r\n);\r\n\r\nexport default PageNotFound;\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { PATH } from '../../../constants';\r\n\r\nimport LinkMore from '../LinkMore/LinkMore';\r\nimport Loader from '../Loader/Loader';\r\n\r\n\r\nconst LinksBoxWithEntries = ({\r\n entries,\r\n isFetching = true,\r\n category = null,\r\n boxName = null\r\n}) => {\r\n const { t } = useTranslation();\r\n\r\n if (isFetching) {\r\n return ;\r\n }\r\n\r\n const renderListOfLinks = () =>\r\n entries?.slice(0, 3)?.map((item) => (\r\n
  • \r\n \r\n {item.name}\r\n \r\n
  • \r\n ));\r\n\r\n return (\r\n
    \r\n

    {boxName}

    \r\n
      {renderListOfLinks()}
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default LinksBoxWithEntries;\r\n","import React from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { CATEGORY } from '../../../constants';\r\nimport LinksBoxWithName from '../LinksBoxWithName/LinksBoxWithName';\r\nimport LinksBoxWithEntries from '../LinksBoxWithEntries/LinksBoxWithEntries';\r\nimport Loader from '../Loader/Loader';\r\n\r\nconst Aside = props => {\r\n const { t } = useTranslation();\r\n const { isFetchingAlerts, isAlertCategory, alertsError, alerts, isFetchingContent, contentError, contentHeader, content, entries, categoryId } = props;\r\n\r\n const renderContent = () => {\r\n if (!isFetchingContent && !contentError && content?.length > 0) {\r\n if (!entries) {\r\n return (\r\n \r\n );\r\n }\r\n return (\r\n \r\n );\r\n }\r\n return;\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default Aside;\r\n","import React, { useState, useEffect } from 'react';\r\nimport { useParams, useLocation } from 'react-router-dom';\r\nimport { Helmet } from 'react-helmet-async';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { CATEGORY, ENTITY, ERRORS } from '../../../constants';\r\nimport { buildRequest, getStatisticsUrlForCategory, getStatisticsImg, getCategoryPageTitle, getCategoryPageDescription } from '../../../utils';\r\n\r\nimport useFetch from '../../Hooks/useFetch';\r\n\r\nimport Breadcrumb from '../../UI/Breadcrumb/Breadcrumb';\r\nimport ContactFooter from '../../UI/ContactFooter/ContactFooter';\r\nimport Loader from '../../UI/Loader/Loader';\r\nimport Teasers from '../../UI/Teasers/Teasers';\r\nimport PageUnavailable from '../Error/PageUnavailable/PageUnavailable';\r\nimport PageNotFound from '../Error/PageNotFound/PageNotFound';\r\nimport Aside from '../../UI/Aside/Aside';\r\n\r\nconst Category = () => {\r\n const { t } = useTranslation();\r\n const [isMounted, setIsMounted] = useState(false);\r\n const { category } = useParams();\r\n const location = useLocation();\r\n const categoryName = location?.state?.categoryName;\r\n const isAlertCategory = () => category === CATEGORY.alerts;\r\n const [statisticsUrl, setStatisticsUrl] = useState('');\r\n const [alerts, isFetchingAlerts, alertsError] = useFetch(\r\n buildRequest(ENTITY.alerts, [CATEGORY.alerts]));\r\n const [categories, isFetchingCategories, categoriesError] = useFetch(\r\n buildRequest(ENTITY.categories));\r\n const [categoryDetails, isFetchingDetails, detailsError] = useFetch(\r\n categoryName || buildRequest(ENTITY.categoryDetails, [category]),\r\n categoryName || category,\r\n categoryName);\r\n const [entries, isFetchingEntries, entriesError] = useFetch(\r\n !isAlertCategory() && buildRequest(ENTITY.entriesByCategoryId, [category]),\r\n !isAlertCategory() && category);\r\n\r\n useEffect(() => {\r\n setIsMounted(true);\r\n return () => setIsMounted(false);\r\n }, []);\r\n\r\n useEffect(() => {\r\n const handleStatistics = category => setStatisticsUrl(getStatisticsUrlForCategory(category));\r\n handleStatistics(category);\r\n }, [category]);\r\n\r\n if (!isMounted) {\r\n return null;\r\n }\r\n\r\n if (!isAlertCategory() && detailsError === ERRORS.notFound) {\r\n return ;\r\n }\r\n\r\n if (isAlertCategory() ? alertsError : (entriesError || detailsError)) {\r\n return ;\r\n }\r\n\r\n const teasersBody = (teasers, isFetching, categoryId) => (\r\n \r\n );\r\n\r\n const renderContent = () => {\r\n const isAlert = isAlertCategory();\r\n const isFetching = isAlert ? isFetchingAlerts : isFetchingEntries;\r\n if (isFetching) {\r\n return ;\r\n }\r\n\r\n const teasers = isAlert ? alerts : entries;\r\n if (!teasers?.length > 0) {\r\n return

    {t('layout.category.teasers.empty')}

    ;\r\n }\r\n\r\n const categoryId = isAlert ? CATEGORY.alerts : category;\r\n return teasersBody(teasers, isFetching, categoryId);\r\n };\r\n\r\n const isNotCurrent = x => x.id !== category;\r\n const categoriesWithoutCurrent = categories.filter(isNotCurrent);\r\n const isNotAlert = x => x.id !== CATEGORY.alerts;\r\n const categoriesWithoutCurrentAndAlerts = categoriesWithoutCurrent.filter(isNotAlert);\r\n\r\n const categoryDetailsName = categoryDetails?.name || categoryDetails;\r\n\r\n const helmet = categoryDetailsName && (\r\n \r\n {getCategoryPageTitle(categoryDetailsName)}\r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n {helmet}\r\n {getStatisticsImg(statisticsUrl)}\r\n
    \r\n
    \r\n
    \r\n

    \r\n {isFetchingDetails\r\n ? \r\n : categoryDetailsName}\r\n

    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n {renderContent()}\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Category;\r\n","class Choice {\r\n constructor({ id, stepId, target, title = null }) {\r\n this.id = id;\r\n this.stepId = stepId;\r\n this.target = target;\r\n this.title = title;\r\n }\r\n}\r\n\r\nexport default Choice;\r\n","class Node {\r\n constructor({ stepId, choiceId = null }) {\r\n this.stepId = stepId;\r\n this.choiceId = choiceId;\r\n }\r\n}\r\n\r\nexport default Node;\r\n","class Step {\r\n constructor({ id, uid, ref, title = null, content = null, choices = null }) {\r\n this.id = id;\r\n this.uid = uid;\r\n this.ref = ref;\r\n this.title = title;\r\n this.content = content;\r\n this.choices = choices;\r\n }\r\n}\r\n\r\nexport default Step;\r\n","import Node from './Node';\r\nimport Step from './Step';\r\n\r\nclass Path {\r\n constructor(nodes, getStepFromDecisionTree) {\r\n this.nodes = nodes;\r\n this.getStepFromDecisionTree = getStepFromDecisionTree;\r\n }\r\n\r\n toStep = (node) =>\r\n new Step({\r\n id: node.stepId,\r\n ...this.getStepFromDecisionTree(node.stepId)\r\n });\r\n toSteps = () => this.nodes.map(this.toStep);\r\n isChosen = (stepId, choiceId) =>\r\n this.nodes?.find((x) => x.stepId === stepId)?.choiceId === choiceId;\r\n\r\n setSelectedChoice = (choice) => {\r\n this.nodes = this.nodes.map((x) =>\r\n x.stepId === choice.stepId\r\n ? new Node({\r\n ...x,\r\n choiceId: choice.id\r\n })\r\n : x\r\n );\r\n return this;\r\n };\r\n\r\n truncateUnselectedSteps = (choice) => {\r\n let chosenStepIndex = this.nodes.findIndex(\r\n (x) => x.stepId === choice.stepId\r\n );\r\n if (chosenStepIndex === -1) {\r\n throw new Error(`Couldn't find node: '${choice.id}' in the path`);\r\n }\r\n this.nodes = this.nodes.slice(0, chosenStepIndex + 1);\r\n return this;\r\n };\r\n\r\n addTargetStep = (choice) => {\r\n this.nodes = this.nodes.concat(new Node({ stepId: choice.target }));\r\n return this;\r\n };\r\n}\r\n\r\nexport default Path;\r\n","import { useEffect, useState, useCallback } from 'react';\r\n\r\nimport Choice from '../../../../types/DecisionTree/Choice';\r\nimport Node from '../../../../types/DecisionTree/Node';\r\nimport Path from '../../../../types/DecisionTree/Path';\r\n\r\nimport Content from '../Content/Content';\r\nimport {\r\n sortByOrderAsc,\r\n scrollElementIntoViewOnMobile,\r\n getStatisticsUrlForDecisionTreeDecision,\r\n getStatisticsImg\r\n} from '../../../../utils';\r\n\r\nconst ButtonStyle = {};\r\n\r\nconst ActiveButtonStyle = {\r\n backgroundColor: '#352E87',\r\n color: 'white'\r\n};\r\n\r\nconst DecisionTree = ({ decisionTree, setLastStep }) => {\r\n const [path, setPath] = useState(\r\n new Path(\r\n [new Node({ stepId: decisionTree.root })],\r\n (stepId) => decisionTree.steps[stepId]\r\n )\r\n );\r\n const [steps, setSteps] = useState(path.toSteps());\r\n const [statisticsUrl, setStatisticsUrl] = useState('');\r\n const [choiceTarget, setChoiceTarget] = useState(null);\r\n\r\n const handleStatistics = (uid) => setStatisticsUrl(getStatisticsUrlForDecisionTreeDecision(uid));\r\n const getLastStep = steps => steps?.slice(-1)[0];\r\n const getLastStepAndCallBack = useCallback((steps) => {\r\n const lastStep = getLastStep(steps);\r\n if (!lastStep) {\r\n return;\r\n }\r\n setLastStep(lastStep);\r\n }, [setLastStep]);\r\n\r\n useEffect(() => {\r\n getLastStepAndCallBack(steps);\r\n\r\n if (choiceTarget) {\r\n scrollElementIntoViewOnMobile(choiceTarget);\r\n }\r\n }, [steps, getLastStepAndCallBack, choiceTarget]);\r\n\r\n const updatePathAndSteps = (choice) => {\r\n const updatedPath = path\r\n .setSelectedChoice(choice)\r\n .truncateUnselectedSteps(choice)\r\n .addTargetStep(choice);\r\n setPath(updatedPath);\r\n const updatedSteps = updatedPath.toSteps();\r\n getLastStepAndCallBack(updatedSteps);\r\n setSteps(updatedSteps);\r\n };\r\n\r\n const getTitle = (step) =>\r\n step.title &&

    {step.title}

    ;\r\n\r\n const getContent = (step) =>\r\n step.content && ;\r\n\r\n const getChoices = (step) => {\r\n if (!step?.choices) {\r\n return null;\r\n }\r\n\r\n const sortedChoices = sortByOrderAsc(step.choices);\r\n const sortedChoicesButtonElements = sortedChoices.map((choice) => (\r\n {\r\n e.preventDefault();\r\n updatePathAndSteps(new Choice({ stepId: step.id, ...choice }));\r\n setChoiceTarget(choice.target); // TODO: Add UI tests\r\n handleStatistics(choice.uid);\r\n }}\r\n >\r\n {choice.title}\r\n \r\n ));\r\n\r\n return (\r\n \r\n {sortedChoicesButtonElements}\r\n \r\n );\r\n };\r\n\r\n return (\r\n <>\r\n {getStatisticsImg(statisticsUrl)}\r\n {steps.map((step) => (\r\n \r\n {getTitle(step)}\r\n {getContent(step)}\r\n {getChoices(step)}\r\n \r\n ))}\r\n \r\n );\r\n};\r\n\r\nexport default DecisionTree;\r\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgFeedbackDown(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 16,\n viewBox: \"0 0 14 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12 1.49999C12 1.68199 11.963 1.85399 11.903 2.01599C12.797 2.09499 13.5 2.83599 13.5 3.74999C13.5 4.21099 13.318 4.62699 13.027 4.93899C13.602 5.22699 14 5.81399 14 6.49999C14 7.18699 13.602 7.77299 13.027 8.06099C13.426 8.48799 13.619 9.11099 13.422 9.77599C13.201 10.52 12.472 11 11.696 11H9H8L8.789 12.578C8.928 12.855 9 13.162 9 13.473V13.5C9 14.877 7.888 15.993 6.513 16C6.233 16.002 6 15.779 6 15.5V14.376C6 14.134 5.912 13.899 5.752 13.718L2.799 10.342C2.609 10.125 2.334 9.99999 2.046 9.99999H0V1.99999H2.049C2.348 1.99999 2.646 1.95499 2.931 1.86699L5.654 0.863987C7.206 0.292987 8.846 -1.33514e-05 10.5 -1.33514e-05C11.329 -1.33514e-05 12 0.671987 12 1.49999Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgFeedbackDown);\nexport default __webpack_public_path__ + \"static/media/feedback-down.6971fece.svg\";\nexport { ForwardRef as ReactComponent };","var _desc, _defs, _g;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgClose(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: \"9px\",\n height: \"9px\",\n viewBox: \"0 0 9 9\",\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title === undefined ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, \"close\") : title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _desc || (_desc = /*#__PURE__*/React.createElement(\"desc\", null, \"Created with Sketch.\")), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null)), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Page-1\",\n stroke: \"none\",\n strokeWidth: 1\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.36948353,6.96015212 L7.45365861,7.87597703 C7.32795652,8.00167912 7.17532056,8.06452922 6.99574615,8.06452922 C6.81617174,8.06452922 6.66353578,8.00167912 6.53783369,7.87597703 L4.55803571,5.89617905 L2.57823773,7.87597703 C2.45253565,8.00167912 2.29989969,8.06452922 2.12032528,8.06452922 C1.94075087,8.06452922 1.78811491,8.00167912 1.66241282,7.87597703 L0.746587903,6.96015212 C0.620885815,6.83445003 0.558035714,6.68181407 0.558035714,6.50223966 C0.558035714,6.32266525 0.620885815,6.17002929 0.746587903,6.0443272 L2.72638588,4.06452922 L0.746587903,2.08473124 C0.620885815,1.95902915 0.558035714,1.80639319 0.558035714,1.62681878 C0.558035714,1.44724437 0.620885815,1.29460841 0.746587903,1.16890633 L1.66241282,0.253081409 C1.78811491,0.127379322 1.94075087,0.0645292208 2.12032528,0.0645292208 C2.29989969,0.0645292208 2.45253565,0.127379322 2.57823773,0.253081409 L4.55803571,2.23287939 L6.53783369,0.253081409 C6.66353578,0.127379322 6.81617174,0.0645292208 6.99574615,0.0645292208 C7.17532056,0.0645292208 7.32795652,0.127379322 7.45365861,0.253081409 L8.36948353,1.16890633 C8.49518561,1.29460841 8.55803571,1.44724437 8.55803571,1.62681878 C8.55803571,1.80639319 8.49518561,1.95902915 8.36948353,2.08473124 L6.38968555,4.06452922 L8.36948353,6.0443272 C8.49518561,6.17002929 8.55803571,6.32266525 8.55803571,6.50223966 C8.55803571,6.68181407 8.49518561,6.83445003 8.36948353,6.96015212 Z\",\n id: \"close\"\n }))));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgClose);\nexport default __webpack_public_path__ + \"static/media/close.c044b785.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgAngleDown(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 18,\n height: 28,\n viewBox: \"0 0 18 28\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title === undefined ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, \"angle-down\") : title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.797 11.5c0 0.125-0.063 0.266-0.156 0.359l-7.281 7.281c-0.094 0.094-0.234 0.156-0.359 0.156s-0.266-0.063-0.359-0.156l-7.281-7.281c-0.094-0.094-0.156-0.234-0.156-0.359s0.063-0.266 0.156-0.359l0.781-0.781c0.094-0.094 0.219-0.156 0.359-0.156 0.125 0 0.266 0.063 0.359 0.156l6.141 6.141 6.141-6.141c0.094-0.094 0.234-0.156 0.359-0.156s0.266 0.063 0.359 0.156l0.781 0.781c0.094 0.094 0.156 0.234 0.156 0.359z\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgAngleDown);\nexport default __webpack_public_path__ + \"static/media/angle-down.68de5b03.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport classNames from 'classnames';\r\n\r\nimport { ReactComponent as IconFeedbackUp } from '../../../img/feedback-up.svg';\r\nimport { ReactComponent as IconFeedbackDown } from '../../../img/feedback-down.svg';\r\nimport baseApi from '../../../api/baseApi';\r\nimport { getStatisticsUrlForFeedback, getStatisticsImg } from '../../../utils';\r\nimport { STATISTICS } from '../../../constants';\r\nimport { ReactComponent as Icon } from '../../../img/close.svg';\r\n\r\nconst FeedbackBox = ({ entryRef, entryId, entryUid }) => {\r\n const { t } = useTranslation();\r\n const [openFeedback, setOpenFeedback] = useState(false);\r\n const [isSent, setIsSent] = useState(false);\r\n const [isClosed, setIsClosed] = useState(false);\r\n const [textForm, setTextForm] = useState('');\r\n const [statisticsUrl, setStatisticsUrl] = useState('');\r\n const [invalidStateOfTextArea, setInvalidStateOfTextArea] = useState(false);\r\n\r\n const handleStatistics = (vote) => setStatisticsUrl(getStatisticsUrlForFeedback(entryUid, vote));\r\n\r\n const handleYesClick = (e) => {\r\n e.preventDefault();\r\n handleStatistics(STATISTICS.voteYes);\r\n setIsSent(true);\r\n };\r\n\r\n const handleNoClick = (e) => {\r\n e.preventDefault();\r\n setOpenFeedback(true);\r\n };\r\n\r\n const handleOnChangeTextarea = (e) => setTextForm(e.target.value);\r\n\r\n const sendResponse = (e) => {\r\n e.preventDefault();\r\n if (!textForm || !textForm?.trim()?.length) {\r\n setInvalidStateOfTextArea(true);\r\n return;\r\n }\r\n\r\n setInvalidStateOfTextArea(false);\r\n if (!entryRef) {\r\n console.error(`${entryRef} is not valid`);\r\n return;\r\n }\r\n\r\n handleStatistics(STATISTICS.voteNo);\r\n baseApi\r\n .post('/feedback', {\r\n text: textForm,\r\n entryRef: entryRef\r\n })\r\n .catch(console.error);\r\n setIsSent(true);\r\n };\r\n\r\n const renderForm = () => (\r\n
    \r\n \r\n \r\n {t('ui.feedbackBox.button.yes')}\r\n \r\n \r\n \r\n {t('ui.feedbackBox.button.no')}\r\n \r\n \r\n \r\n {t('ui.feedbackBox.textareaLabel')}\r\n \r\n \r\n {invalidStateOfTextArea && (\r\n \r\n {t('ui.feedbackBox.required')}\r\n \r\n )}\r\n \r\n {t('ui.feedbackBox.button.send')}\r\n \r\n \r\n \r\n );\r\n\r\n const header = !isSent && (\r\n

    \r\n {t('ui.feedbackBox.header')}\r\n

    \r\n );\r\n\r\n const content = isSent\r\n ? <>\r\n {getStatisticsImg(statisticsUrl)}\r\n
    \r\n \r\n
    \r\n

    \r\n {t('ui.feedbackBox.text')}\r\n

    \r\n \r\n : renderForm();\r\n\r\n return !isClosed && (\r\n
    \r\n {header}\r\n {content}\r\n
    \r\n );\r\n};\r\n\r\nexport default FeedbackBox;\r\n","import { React } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport classNames from 'classnames';\r\n\r\nimport { PATH } from '../../../constants';\r\n\r\nimport { sortByConfidenceDesc } from '../../../utils';\r\n\r\nconst ListLinks = ({ links, type }) => {\r\n const listLinkClasses = classNames('list-links', {\r\n 'list-links--large': type === 'large'\r\n });\r\n const sortedLinks = sortByConfidenceDesc(links);\r\n const linkElements = sortedLinks.map((link) => (\r\n
  • \r\n \r\n {link.name}\r\n \r\n
  • \r\n ));\r\n\r\n return (\r\n \r\n {linkElements}\r\n \r\n );\r\n};\r\n\r\nexport default ListLinks;\r\n","import { React } from 'react';\r\nimport ListLinks from '../ListLinks/ListLinks';\r\nimport Loader from '../Loader/Loader';\r\n\r\nconst ListLinksSection = ({ isFetching, heading, links, type }) => {\r\n\r\n if (isFetching) {\r\n return ;\r\n }\r\n\r\n return (\r\n
    \r\n

    {heading}

    \r\n {links && }\r\n
    \r\n );\r\n};\r\n\r\nexport default ListLinksSection;\r\n","import React, { useEffect, useState, useCallback } from 'react';\r\nimport { useParams, useLocation } from 'react-router-dom';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { Helmet } from 'react-helmet-async';\r\n\r\nimport baseApi from '../../../api/baseApi';\r\nimport { CATEGORY, ENTITY, ERRORS } from '../../../constants';\r\nimport { buildRequest, getDataFromResponse, setErrorStatus, getStatisticsUrlForEntry, getStatisticsImg, getEntryPageTitle, getStatisticsUrlForPredictiveSearch } from '../../../utils';\r\n\r\nimport useFetch from '../../Hooks/useFetch';\r\n\r\nimport Content from './Content/Content';\r\nimport DecisionTree from './DecisionTree/DecisionTree';\r\nimport Breadcrumb from '../../UI/Breadcrumb/Breadcrumb';\r\nimport FeedbackBox from '../../UI/FeedbackBox/FeedbackBox';\r\nimport ListLinksSection from '../../UI/ListLinksSection/ListLinksSection';\r\nimport Loader from '../../UI/Loader/Loader';\r\nimport PageNotFound from '../Error/PageNotFound/PageNotFound';\r\nimport PageUnavailable from '../Error/PageUnavailable/PageUnavailable';\r\nimport Aside from '../../UI/Aside/Aside';\r\n\r\nconst defaultEntryState = {\r\n name: '',\r\n ref: '',\r\n uid: '',\r\n itemId: '',\r\n description: '',\r\n content: null,\r\n decisionTree: null,\r\n fetchTimestamp: null\r\n};\r\n\r\nconst defaultLastStepState = {\r\n choices: null,\r\n uid: null,\r\n ref: null\r\n};\r\n\r\nconst Entry = () => {\r\n const { t } = useTranslation();\r\n const [isMounted, setIsMounted] = useState(false);\r\n const { category, entry } = useParams();\r\n const isAlertCategory = useCallback(() => category === CATEGORY.alerts, [category]);\r\n const location = useLocation();\r\n const [statisticsUrl, setStatisticsUrl] = useState('');\r\n const [predictiveSearchStatisticsUrl, setPredictiveSearchStatisticsUrl] = useState('');\r\n const [state, setState] = useState(defaultEntryState);\r\n const [categoryId, setCategoryId] = useState(category);\r\n const [categoryName, setCategoryName] = useState('');\r\n const [error, setError] = useState(null);\r\n const [lastStep, setLastStep] = useState(defaultLastStepState);\r\n\r\n const [alerts, isFetchingAlerts, alertsError] = useFetch(\r\n buildRequest(ENTITY.alerts, [CATEGORY.alerts]),\r\n category);\r\n const [categoryDetails] = useFetch(\r\n buildRequest(ENTITY.categoryDetails, [category]),\r\n category);\r\n const [entries, isFetchingEntries, entriesError] = useFetch(\r\n !isAlertCategory() && buildRequest(ENTITY.entriesByCategoryId, [categoryId]),\r\n !isAlertCategory() && category);\r\n const [relatedContent, isFetchingRelatedContent, relatedContentError] = useFetch(\r\n !isAlertCategory() && state.itemId && buildRequest(ENTITY.relatedContent, [category, state.itemId]),\r\n !isAlertCategory() && entry);\r\n\r\n useEffect(() => {\r\n setIsMounted(true);\r\n return () => setIsMounted(false);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!isMounted) {\r\n return;\r\n }\r\n\r\n const url = isAlertCategory()\r\n ? `${category}/${entry}`\r\n : `/categories/${category}/entries/${entry}`;\r\n\r\n setState(defaultEntryState);\r\n baseApi\r\n .get(url)\r\n .then(getDataFromResponse)\r\n .then(data => {\r\n if (!isMounted) {\r\n return;\r\n }\r\n\r\n setState({\r\n ...data,\r\n fetchTimestamp: Date.now()\r\n });\r\n })\r\n .catch(error => setErrorStatus(setError, error));\r\n\r\n setCategoryId(category);\r\n }, [category, entry, isAlertCategory, isMounted]);\r\n\r\n useEffect(() => {\r\n if (!categoryDetails.name) {\r\n return;\r\n }\r\n setCategoryName(categoryDetails.name);\r\n\r\n const handleStatistics = (uid) => {\r\n if (!uid) {\r\n return;\r\n }\r\n setStatisticsUrl(getStatisticsUrlForEntry(uid));\r\n };\r\n handleStatistics(state.uid);\r\n }, [categoryDetails, setCategoryName, state.uid]);\r\n\r\n useEffect(() => {\r\n if (!location?.state?.searchPhrase) {\r\n return;\r\n }\r\n\r\n const statisticsImgUrl = getStatisticsUrlForPredictiveSearch(location.state.searchPhrase, location.state.searchConfidence, entry);\r\n if (!statisticsImgUrl) {\r\n return;\r\n }\r\n\r\n const removeLocationState = () => window.history.replaceState({}, document.title);\r\n removeLocationState();\r\n setPredictiveSearchStatisticsUrl(statisticsImgUrl);\r\n }, [entry, location?.state?.searchPhrase, location?.state?.searchConfidence, setPredictiveSearchStatisticsUrl]);\r\n\r\n if (!isMounted) {\r\n return null;\r\n }\r\n\r\n if (error === ERRORS.notFound) {\r\n return ;\r\n }\r\n\r\n if (error) {\r\n return ;\r\n }\r\n\r\n const decisionTreeComponent = state.decisionTree && (\r\n \r\n );\r\n\r\n const contentComponent = state.content && (\r\n \r\n );\r\n\r\n const body = decisionTreeComponent\r\n ? decisionTreeComponent\r\n : contentComponent;\r\n\r\n const collateralContent = () => {\r\n if (isAlertCategory() || !body) {\r\n return null;\r\n }\r\n\r\n const shouldDisplayCollateralContent = contentComponent || (lastStep.uid && !lastStep?.choices?.length);\r\n if (!shouldDisplayCollateralContent) {\r\n return null;\r\n }\r\n\r\n const votingUid = decisionTreeComponent ? lastStep.uid : state.uid;\r\n const feedbackEntryRef = decisionTreeComponent ? lastStep.ref : state.ref;\r\n\r\n return (\r\n <>\r\n \r\n {isFetchingRelatedContent\r\n ?
    \r\n : !relatedContentError && relatedContent?.length > 0 && (\r\n
    \r\n \r\n
    \r\n )}\r\n \r\n );\r\n };\r\n\r\n const isNotCurrent = x => x.id !== entry;\r\n const entriesWithoutCurrent = entries.filter(isNotCurrent);\r\n const alertsWithoutCurrent = isAlertCategory()\r\n ? alerts.filter(isNotCurrent)\r\n : alerts;\r\n\r\n const entryName = location?.state?.entryName ?? state.name;\r\n\r\n const helmet = entryName && categoryName && (\r\n \r\n {getEntryPageTitle(entryName, categoryName)}\r\n {state.description && }\r\n \r\n );\r\n\r\n return (\r\n <>\r\n {helmet}\r\n {predictiveSearchStatisticsUrl && getStatisticsImg(predictiveSearchStatisticsUrl)}\r\n {statisticsUrl && getStatisticsImg(statisticsUrl)}\r\n
    \r\n
    \r\n
    \r\n

    \r\n {!state.fetchTimestamp && !location?.state?.entryName\r\n ? \r\n : entryName}\r\n

    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n \r\n {!state.fetchTimestamp || !body ? : body}\r\n {collateralContent()}\r\n
    \r\n \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default Entry;\r\n","import React from 'react';\r\nimport { useLocation } from 'react-router-dom';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { PATH } from '../../../constants';\r\nimport { scrollElementIntoView } from '../../../utils';\r\nimport { Link } from 'react-scroll';\r\n\r\nimport { ReactComponent as IconSearch } from '../../../img/search.svg';\r\nimport { ReactComponent as IconAngleDown } from '../../../img/angle-down.svg';\r\n\r\nconst BoxWithUmbracoSearch = ({ anchor, searchPhrase }) => {\r\n const { t } = useTranslation();\r\n const location = window.location.origin;\r\n const { pathname } = useLocation();\r\n const siteLanguage = pathname.slice(0, 3);\r\n const searchURL = PATH.eqSearch;\r\n const hostURL = location + siteLanguage + searchURL;\r\n const params = 'q=' + searchPhrase + '&search=GO';\r\n const searchParams = new URLSearchParams(params);\r\n\r\n return (\r\n
    \r\n

    \r\n {t('ui.boxWithUmbracoSearch.header')}\r\n

    \r\n

    {t('ui.boxWithUmbracoSearch.text')}

    \r\n
    \r\n \r\n \r\n {t('ui.boxWithUmbracoSearch.button')}\r\n \r\n scrollElementIntoView(e, anchor)}\r\n className=\"link link--more highlited-box__link\"\r\n to={anchor}\r\n title={t('ui.boxWithUmbracoSearch.link.title')}\r\n href={`#${anchor}`}\r\n data-cy=\"umbraco-search-again\"\r\n >\r\n {t('ui.boxWithUmbracoSearch.link.text')}\r\n \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default BoxWithUmbracoSearch;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useSearchParams } from 'react-router-dom';\r\nimport { Helmet } from 'react-helmet-async';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport baseApi from '../../../api/baseApi';\r\nimport { ID, PATH, ERRORS, META } from '../../../constants';\r\nimport { setErrorStatus, getStatisticsUrlForSearch, getStatisticsImg, getSearchPageTitle } from '../../../utils';\r\n\r\nimport BoxWithUmbracoSearch from '../../UI/BoxWithUmbracoSearch/BoxWithumbracoSearch';\r\nimport ContactFooter from '../../UI/ContactFooter/ContactFooter';\r\nimport ListLinks from '../../UI/ListLinks/ListLinks';\r\nimport Loader from '../../UI/Loader/Loader';\r\nimport Search from '../../UI/Search/Search';\r\nimport PageUnavailable from '../Error/PageUnavailable/PageUnavailable';\r\n\r\nconst SearchResult = (props) => {\r\n const { t } = useTranslation();\r\n const [isMounted, setIsMounted] = useState(false);\r\n const [statisticsUrl, setStatisticsUrl] = useState('');\r\n const [searchParams] = useSearchParams();\r\n const [resultsToDisplay, setResultsToDisplay] = useState([]);\r\n const [searchPhrase, setSearchPhrase] = useState(searchParams.get('phrase') ?? '');\r\n const [isLoading, setIsLoading] = useState(true);\r\n const [error, setError] = useState(null);\r\n const [initialPhrase] = useState(searchPhrase);\r\n const [hasThePhraseBeenUpdated, setHasTheTermBeenUpdated] = useState(false);\r\n const [isFetchingFromSearchResult, setIsFetchingFromSearchResult] = useState(true);\r\n const [triggerAutocompleteHiding, setTriggerAutocompleteHiding] = useState(Date.now());\r\n\r\n useEffect(() => {\r\n setIsMounted(true);\r\n return () => setIsMounted(false);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (hasThePhraseBeenUpdated) {\r\n return;\r\n }\r\n\r\n const isSearchPhraseEqualToInitialTerm = searchPhrase === initialPhrase;\r\n setIsFetchingFromSearchResult(isSearchPhraseEqualToInitialTerm);\r\n setHasTheTermBeenUpdated(!isSearchPhraseEqualToInitialTerm);\r\n }, [\r\n initialPhrase,\r\n searchPhrase,\r\n hasThePhraseBeenUpdated,\r\n setHasTheTermBeenUpdated\r\n ]);\r\n\r\n useEffect(() => {\r\n if (!isMounted) {\r\n return;\r\n }\r\n\r\n var currentSearchPhrase = searchParams.get('phrase');\r\n if (!currentSearchPhrase) {\r\n setIsLoading(false);\r\n return;\r\n }\r\n\r\n const handleStatistics = (searchPhrase, searchConfidenceFromSearch = 0 /* zero when nothing was found */) => {\r\n if (!searchPhrase) {\r\n return;\r\n }\r\n\r\n setStatisticsUrl(getStatisticsUrlForSearch(searchPhrase, searchConfidenceFromSearch));\r\n };\r\n\r\n const search = async () => {\r\n setIsLoading(true);\r\n await baseApi\r\n .post(\r\n '/search',\r\n { searchText: currentSearchPhrase },\r\n {\r\n params: {\r\n limit: 10\r\n }\r\n }\r\n )\r\n .then((response) => {\r\n if (!isMounted) {\r\n return;\r\n }\r\n handleStatistics(currentSearchPhrase, response.data.metadata.searchConfidence);\r\n return response.data.data;\r\n })\r\n .then(setResultsToDisplay)\r\n .then(() => setTriggerAutocompleteHiding(Date.now()))\r\n .catch(error => {\r\n if (!error?.response) {\r\n setError(ERRORS.unhandled);\r\n } else {\r\n setErrorStatus(setError, error);\r\n }\r\n setResultsToDisplay([]);\r\n handleStatistics(currentSearchPhrase);\r\n })\r\n .finally(() => setIsLoading(false));\r\n };\r\n search();\r\n }, [searchParams, props.history, setTriggerAutocompleteHiding, isMounted]);\r\n\r\n if (!isMounted) {\r\n return null;\r\n }\r\n\r\n if (error === ERRORS.unhandled) {\r\n return ;\r\n }\r\n\r\n const getHeader = () => {\r\n if (isLoading) {\r\n return ;\r\n }\r\n\r\n const phrase = searchParams.get('phrase');\r\n if (!phrase) {\r\n return (\r\n <>\r\n \r\n {t('layout.searchPage.invalidInput')}\r\n \r\n

    {META.homePageDescription}

    \r\n \r\n );\r\n }\r\n\r\n const resultsCount = resultsToDisplay?.length;\r\n const header = `${resultsCount ? resultsCount + ' ' + `${t('layout.searchPage.header.results')}` : `${t('layout.searchPage.header.empty')}`}\r\n ${t('layout.searchPage.header.line')} \"${phrase}\"`;\r\n const headerParagraph = resultsCount\r\n ? `${t('layout.searchPage.results')}`\r\n : `${t('layout.searchPage.empty')}`;\r\n\r\n return (\r\n <>\r\n \r\n {header}\r\n \r\n

    {headerParagraph}

    \r\n \r\n );\r\n };\r\n\r\n const getContent = () => {\r\n if (isLoading) {\r\n return null;\r\n }\r\n\r\n const statisticsImg = getStatisticsImg(statisticsUrl);\r\n\r\n if (resultsToDisplay?.length === 0) {\r\n return statisticsImg;\r\n }\r\n\r\n return (\r\n
    \r\n {statisticsImg}\r\n \r\n
    \r\n );\r\n };\r\n\r\n const helmet = searchPhrase && (\r\n \r\n {getSearchPageTitle(searchPhrase)}\r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n {helmet}\r\n
    \r\n
    \r\n
    \r\n

    Help & Support

    \r\n hasThePhraseBeenUpdated}\r\n setSearchPhraseForParent={setSearchPhrase}\r\n setResultsToDisplay={setResultsToDisplay}\r\n />\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n {getHeader()}\r\n
    \r\n {getContent()}\r\n
    \r\n {!isLoading && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default SearchResult;\r\n","import { useEffect } from 'react';\r\nimport { useLocation } from 'react-router';\r\n\r\nconst ScrollToTop = (props) => {\r\n const location = useLocation();\r\n useEffect(() => {\r\n window.scrollTo(0, 0);\r\n }, [location]);\r\n\r\n return <>{props.children};\r\n};\r\n\r\nexport default ScrollToTop;\r\n","import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';\r\nimport { React, Suspense } from 'react';\r\nimport { createMemoryHistory } from 'history';\r\nimport { HelmetProvider } from 'react-helmet-async';\r\nimport smoothscroll from 'smoothscroll-polyfill';\r\nimport './i18n';\r\n\r\nimport { PATH } from './constants';\r\n\r\nimport ErrorBoundary from './components/ErrorHandling/ErrorBoundary/ErrorBoundary';\r\nimport HelpAndSupport from './components/Layout/HelpAndSupport/HelpAndSupport';\r\nimport Category from './components/Layout/Category/Category';\r\nimport Entry from './components/Layout/Entry/Entry';\r\nimport SearchResult from './components/Layout/SearchResult/SearchResult';\r\nimport PageNotFound from './components/Layout/Error/PageNotFound/PageNotFound';\r\nimport ScrollToTop from './components/UI/ScrollToTop/ScrollToTop';\r\n\r\nconst App = () => {\r\n const history = createMemoryHistory();\r\n const bodyElement = document.getElementsByTagName('body')[0];\r\n bodyElement.className = 'hs-body';\r\n smoothscroll.polyfill();\r\n\r\n return (\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\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default App;\r\n","const reportWebVitals = (onPerfEntry) => {\r\n if (onPerfEntry && onPerfEntry instanceof Function) {\r\n import('web-vitals').then(\r\n ({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\r\n getCLS(onPerfEntry);\r\n getFID(onPerfEntry);\r\n getFCP(onPerfEntry);\r\n getLCP(onPerfEntry);\r\n getTTFB(onPerfEntry);\r\n }\r\n );\r\n }\r\n};\r\n\r\nexport default reportWebVitals;\r\n","import 'react-app-polyfill/ie11';\r\nimport 'react-app-polyfill/stable';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport App from './App';\r\nimport reportWebVitals from './reportWebVitals';\r\n\r\nReactDOM.render(\r\n \r\n \r\n ,\r\n document.getElementById('help-and-support')\r\n);\r\n\r\n// If you want to start measuring performance in your app, pass a function\r\n// to log results (for example: reportWebVitals(console.log))\r\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\r\nreportWebVitals();\r\n"],"sourceRoot":""}