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AAA,IAAAO,EAAAN,EAAA,OAAAO,EAAAP,EAAA,OAAAQ,EAAAR,EAAA,MAAAS,EAAAT,EAAAM,CAAA,CAAAE,GAAAE,EAAAV,EAAA,OAAAkB,EAAAlB,EAAA,OAAAG,EAAAM,IAAA,kBAAAgD,QAAAC,GAAA,EAAA1D,EAAAF,CAAA,OAAAE,EAAAF,CAAA,OAAAE,EAAAF,CAAA,SAAA6D,IAAA,CAAA3D,EAAA4D,IAAA,CAAA5D,EAAA,UAAA6D,kBAAA,CAAAC,QAAA,4BAAA/D,CAAAA,EAAAgE,OAAA,CAAAzD,EAAA0D,IAAA,UAAAlE,CAAA,MAAAC,EAAAC,EAAA,MAAAF,GAAA,MAAAC,CAAAA,EAAAD,EAAAmE,QAAA,SAAAlE,EAAAmE,MAAA,CAAA1D,EAAA,GAAAF,EAAA6D,UAAA,EAAAzD,EAAAN,CAAA,CAAAM,EAAAR,CAAA,EAAAO,EAAAD,CAAA,IAAAH,EAAAG,CAAA,aAAAU,EAAAkD,GAAA,SAAAC,SAAA,GAAAnD,EAAAkD,GAAA,EAAA7D,EAAAiD,CAAA,CAAAc,QAAA,EAAAC,MAAA,CAAA9D,EAAAJ,EAAA,CAAAgE,SAAA,GAAAnD,EAAAkD,GAAA,EAAA7D,EAAAiD,CAAA,CAAAgB,QAAA,EAAAH,SAAA,SAAAvE,CAAA,SAAAA,GAAA,GAAAoB,EAAAkD,GAAA,EAAAlD,EAAAuD,QAAA,EAAAJ,SAAA,GAAAnD,EAAAkD,GAAA,EAAAjE,EAAA,CAAA8D,SAAAjE,EAAA0E,QAAA5E,CAAA,8BAAAA,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAF,EAAA6E,OAAA,CAAA3E,EAAA","sources":["webpack://_N_E/./adapters/helpers/AlgoliaHelper.js","webpack://_N_E/./adapters/reducers/reducers.js","webpack://_N_E/./components/BaseContext.js","webpack://_N_E/./components/SearchBlock/SearchComponent.js","webpack://_N_E/./node_modules/next/router.js","webpack://_N_E/"],"sourcesContent":["import { useRouter } from 'next/router';\nimport { observable, configure } from 'mobx'\nimport { SearchBlockConstants } from './Constants';\nimport * as React from 'react';\nimport { customJsonstringify } from './Utils';\n\n// useRouter query is undefined on the first render\nexport function useRouterQueryParam(key) {\n const router = useRouter()\n\n const value = React.useMemo(() => {\n const res = router.asPath.match(new RegExp(`[&?]${key}=(.*)(&|$)`)) || [];\n if(res && res.length > 0){\n return res[1];\n }\n }, [router.asPath, key]);\n\n return value;\n}\nconfigure({\n enforceActions: 'never',\n})\n\nexport let popoverState = observable({\n enabled: true,\n})\n\nexport const toggle = (value) => {\n popoverState.enabled = value\n}\n\nexport const formatDate = (date) => {\n let month = date.getMonth() + 1,\n day = date.getDate(),\n year = date.getFullYear()\n \n if (month.toString().length < 2) month = '0' + month\n if (day.toString().length < 2) day = '0' + day\n \n return [year, month, day].join('-')\n }\n \n export const searchConfig= {\n algoliaIndexName: process.env.ALGOLIA_INDEX,\n algoliaAppID:process.env.ALGOLIA_APP_ID,\n algoliaSearchOnlyAPIToken: process.env.ALGOLIA_APP_SEARCH_KEY\n }\n export const getLSValue = (key) => {\n if (typeof window !== 'undefined') {\n const item = window.localStorage.getItem(key)\n return JSON.parse(item)\n }\n }\n \n export const setLSValue = (key, value) => {\n try {\n window.localStorage.setItem(key, customJsonstringify(value))\n } catch (error) {\n console.error(error) }\n \n }\n const getHashValue=()=> {\n if(typeof window!='undefined'){\n return window?.location?.hash;\n }\n }\n \n export const getHashVariable=(variable)=> {\n let result = '';\n let searchQueryStrings = getHashValue();\n\n if (searchQueryStrings && searchQueryStrings.length > 1) {\n let query = searchQueryStrings.substring(1);\n let vars = query.split('&');\n for (let i = 0; i < vars.length; i++) {\n let pair = vars[i].split(SearchBlockConstants.queryHashEqual);\n if (pair && pair.length !== 0 && decodeURIComponent(pair[0]) === variable) {\n result = decodeURIComponent(pair[1]);\n }\n }\n }\n return result;\n}\n\n","import { getHashVariable } from '../helpers/AlgoliaHelper';\nimport { SearchBlockConstants,algoliaReducerConstants } from '../helpers/Constants';\nexport const initialState = {\n SearchClicked: false,\n queryParm: getHashVariable(SearchBlockConstants.queryHashName),\n hitsResponse: [],\n isSpinning: false,\n searchStaticContent: {},\n showAutocomplete: false,\n searchValue: '',\n filerClicked: '',\n pageNoClicked: null,\n totalPageNumber: null,\n filterItems: [],\n nbHits: null,\n nbPages: null,\n isSearchHitClicked: false\n};\nexport const searchReducer = (state, action) => {\n switch (action.type) {\n case algoliaReducerConstants.SearchClicked:\n return { ...state, SearchClicked: action.payload };\n case algoliaReducerConstants.queryParm:\n return { ...state, queryParm: action.payload };\n case algoliaReducerConstants.searchStaticContent:\n return { ...state, searchStaticContent: action.payload };\n case algoliaReducerConstants.hitsResponse:\n return { ...state, hitsResponse: action.payload };\n case algoliaReducerConstants.filerClicked:\n return { ...state, filerClicked: action.payload };\n case algoliaReducerConstants.pageNoClicked:\n return { ...state, pageNoClicked: action.payload };\n case algoliaReducerConstants.showAutocomplete:\n return { ...state, showAutocomplete: action.payload };\n case algoliaReducerConstants.searchValue:\n return { ...state, searchValue: action.payload };\n case algoliaReducerConstants.isSpinning:\n return { ...state, isSpinning: action.payload };\n case algoliaReducerConstants.totalPageNumber:\n return { ...state, totalPageNumber: action.payload };\n case algoliaReducerConstants.filterItems:\n return { ...state, filterItems: action.payload };\n case algoliaReducerConstants.nbHits:\n return { ...state, nbHits: action.payload };\n case algoliaReducerConstants.nbPages:\n return { ...state, nbPages: action.payload };\n case algoliaReducerConstants.isSearchHitClicked:\n return { ...state, isSearchHitClicked: action.payload };\n default:\n return state;\n }\n};\n","import React from 'react';\nconst BaseContext = React.createContext();\nexport default BaseContext;","import React, { createContext,useContext,useReducer } from 'react'\nimport BaseContext from '../BaseContext';\nimport dynamic from 'next/dynamic';\nconst SearchBlock = dynamic(()=>import('./SearchBlock'))\nimport { searchReducer,initialState } from '../../adapters/reducers/reducers';\n \nconst SearchComponent = (props) => {\n const document = props?.document?.fields;\n \nconst [state, dispatch] = useReducer(searchReducer, initialState) \n return (\n
\n \n \n { context => context &&\n <>\n \n }\n \n \n
\n )\n}\n\n\nexport default React.memo(SearchComponent)\n","module.exports = require('./dist/client/router')\n","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8186],{15681:function(e,t,r){\"use strict\";r.d(t,{E:function(){return s},f:function(){return u}});var n=r(930),a=r.n(n),c=(r(11163),r(22188)),o=r(24036);r(67294),r(8996);(0,c.jQ)({enforceActions:\"never\"});(0,c.LO)({enabled:!0});function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t1)for(var c=a.substring(1).split(\"&\"),i=0;i