{"version":3,"sources":["webpack://@verndale/toolkit/./node_modules/dayjs/dayjs.min.js","webpack://@verndale/toolkit/./node_modules/dayjs/plugin/timezone.js","webpack://@verndale/toolkit/./node_modules/dayjs/plugin/utc.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/date-filter.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/facet-breadcrumb.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/facet.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/pager.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/query-summary.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/result-list.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/search-box.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/sort.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/url-manager.js","webpack://@verndale/toolkit/./src/js/modules/coveo/controllers/controllers.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/interactive-result.js","webpack://@verndale/toolkit/./src/js/modules/coveo/components/non-interactive-result.js","webpack://@verndale/toolkit/./src/js/modules/coveo/controllers/result-templates-manager.js","webpack://@verndale/toolkit/./src/js/modules/coveo/controllers/sort-criteria.js","webpack://@verndale/toolkit/./src/js/modules/coveo/engine.js"],"names":["t","e","module","n","r","i","s","u","a","o","f","h","c","d","l","$","y","M","m","v","g","D","p","_","S","w","O","T","dataset","labels","formattedDateValue","date","dayjs","DateFilter","props","controller","state","setState","useState","isValidDateRange","setIsValidDateRange","startRef","useRef","endRef","expanded","setExpanded","showAllEvents","setShowAllEvents","useEffect","handleDateChange","endDateValue","startDateValue","endDate","startDate","range","React","isValid","customEvent","BreadcrumbManager","facet","breadcrumb","Facet","createUniqueID","value","id","number","createCleanID","handleCollapseEvent","Pager","page","QuerySummary","ResultList","resultTemplatesManager","result","template","SearchBox","suggestionStyle","focusedElement","firstSuggestion","lastSuggestion","suggestion","Sort","getCriterionFromName","name","_a","getCurrentCriterion","criterion","buildCriterionExpression","criterionName","bindUrlManager","engine","fragment","urlManager","buildUrlManager","onHashChange","unsubscribeManager","hash","maxResultsPerPage","fieldsToInclude","searchBox","buildSearchBox","headlessEngine","resultList","buildResultList","facetBreadcrumb","buildBreadcrumbManager","resultsPerPage","buildResultsPerPage","dateFilter","buildDateFilter","querySummary","buildQuerySummary","pager","buildPager","filterProtocol","uri","isAbsolute","isRelative","InteractiveResult","buildInteractiveResult","NonInteractiveResult","language","remoteLabel","localeSet","newsDateFormat","eventSingleDayFormat","eventSingleMonthFormatStart","eventSingleMonthFormatEnd","eventMultiMonthFormatStart","eventMultiMonthFormatEnd","eventMultiYearFormatStart","eventMultiYearFormatEnd","eventSingleTimeFormat","eventMultiTimeFormatStart","eventMultiTimeFormatEnd","covertUnicode","str","match","setLocale","dayjsPluginUTC","timeZonePlugin","formatNewsDate","checkIfFuture","eventDate","now","formatEventDate","location","start","end","timezone","tz","formattedDate","startDay","startMonth","startYear","endDay","endMonth","endYear","formatEventTime","formattedTime","startTime","endTime","checkEventDate","buildResultTemplatesManager","ResultTemplatesHelpers","criteriaGlobal","buildRelevanceSortCriterion","buildFieldSortCriterion","SortOrder","criteriaEvent","criteriaNews","criteriaResource","wrapper","coveoConfig","config","response","request","clientOrigin","body","buildSearchEngine"],"mappings":"4GAAC,SAASA,EAAEC,EAAE,CAAsDC,EAAO,QAAQD,EAAE,CAAiH,GAAE,KAAM,UAAU,CAAC,aAAa,IAAID,EAAE,IAAIC,EAAE,IAAIE,EAAE,KAAKC,EAAE,cAAcC,EAAE,SAASC,EAAE,SAASC,EAAE,OAAOC,EAAE,MAAMC,EAAE,OAAOC,EAAE,QAAQC,EAAE,UAAUC,EAAE,OAAOC,EAAE,OAAOC,EAAE,eAAeC,EAAE,6FAA6FC,EAAE,sFAAsFC,EAAE,CAAC,KAAK,KAAK,SAAS,2DAA2D,MAAM,GAAG,EAAE,OAAO,wFAAwF,MAAM,GAAG,EAAE,QAAQ,SAASjB,EAAE,CAAC,IAAIC,EAAE,CAAC,KAAK,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AC,EAC3F,CAAC3I,EAAO,e,EAAeyI,MAA4B,CAAC,CACtD,EAEaK,EAAmB,CAC9B,CAAC9I,EAAO,gB,EAAgB0I,MAAwB,aAAcC,eAAoB,CAAC,EACnF,CAAC3I,EAAO,iB,EAAiB0I,MAAwB,aAAcC,cAAmB,CAAC,EACnF,CAAC3I,EAAO,c,EAAc0I,MAAwB,sBAAuBC,cAAmB,CAAC,EACzF,CAAC3I,EAAO,e,EAAe0I,MAAwB,sBAAuBC,eAAoB,CAAC,EAC3F,CAAC3I,EAAO,e,EAAeyI,MAA4B,CAAC,CACtD,C,oFClCA,MAAMM,EAAU,SAAS,uBAAuB,oCAAoC,EAAE,IAAM,SAAS,uBAAuB,yCAAyC,EAAE,GAEjK,CAAC,QAAAhJ,CAAO,EAAIgJ,EAEZC,EAAc,KAAK,MAAMjJ,EAAQ,KAAK,EAEtCkJ,EAAS,CACX,eAAgBD,EAAY,eAC5B,YAAaA,EAAY,OACzB,OAAQ,CACN,mCAAqCE,IACnCA,EAAS,KAAK,QAAQ,QAAStG,GAAWA,CAAM,EACzCsG,GAET,wCAA0CA,GAAaA,EACvD,yCAA2CA,GAAaA,CAC1D,EACA,kBAAmB,CAACC,EAASC,IAAiB,CAC5C,GAAIA,IAAiB,iBAAkB,CACrC,MAAMC,EAAO,KAAK,MAAMF,EAAQ,IAAI,EAGpCA,EAAQ,KAAO,KAAK,UAAUE,CAAI,CACpC,CAKF,CACJ,EAEa7E,G,EAAiB8E,MAAkB,CAC9C,cAAeL,CACjB,CAAC,C","file":"scripts/369.8f209056.js","sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",f=\"month\",h=\"quarter\",c=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)=0&&(r[c]=parseInt(m,10))}var d=r[3],l=24===d?0:d,v=r[0]+\"-\"+r[1]+\"-\"+r[2]+\" \"+l+\":\"+r[4]+\":\"+r[5]+\":000\",h=+e;return(o.utc(v).valueOf()-(h-=h%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString(\"en-US\",{timeZone:t}),u=Math.round((i-new Date(a))/1e3/60),f=o(a).$set(\"millisecond\",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-u,!0);if(e){var s=f.utcOffset();f=f.add(n-s,\"minute\")}return f.$x.$timezone=t,f},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return\"timezonename\"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\"));return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if(\"string\"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return[i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}));","!function(t,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_utc=i()}(this,(function(){\"use strict\";var t=\"minute\",i=/[+-]\\d\\d(?::?\\d\\d)?/g,e=/([+-]|\\d\\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else r.call(this)};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if(\"string\"==typeof s&&(s=function(t){void 0===t&&(t=\"\");var s=t.match(i);if(!s)return null;var f=(\"\"+s[0]).match(e)||[\"-\",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:\"+\"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?\"YYYY-MM-DDTHH:mm:ss[Z]\":\"\");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return\"s\"===t&&this.$offset?n(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)}}}));","/* eslint-disable no-unused-vars */\n/* eslint-disable react/prop-types */\nimport {\n buildDateRange,\n} from '@coveo/headless';\nimport React, {useEffect, useState, Fragment, useRef} from 'react';\nimport dayjs from 'dayjs';\n// import {parseDate} from '../date-facet/date-utils';\n\nconst {dataset} = document.getElementsByClassName('coveo-search-results__main-wrapper')[0];\n\nconst labels = JSON.parse(dataset.localization);\n\nfunction formattedDateValue(date) {\n if (!date) {\n return '';\n }\n return dayjs(date).format('YYYY/MM/DD@HH:mm:ss');\n // return parseDate(date).format('YYYY-MM-DD');\n}\n\nexport const DateFilter = (props) => {\n const {controller} = props;\n const [state, setState] = useState(controller.state);\n const [isValidDateRange, setIsValidDateRange] = useState(true);\n const startRef = useRef(null);\n const endRef = useRef(null);\n const [expanded, setExpanded] = useState(false);\n const [showAllEvents, setShowAllEvents] = useState(false);\n\n useEffect(() => controller.subscribe(() => setState(controller.state)), []);\n\n const handleDateChange = () => {\n const endDateValue = endRef.current.value\n const startDateValue = startRef.current.value\n const endDate = new Date(endRef.current.value)\n const startDate = new Date(startRef.current.value)\n \n if(endDateValue === '' || startDateValue === '') {\n return true;\n } \n \n if(endDate < startDate) {\n return false;\n }\n \n return true;\n }\n\n const {range} = state;\n\n return (\n
\n {\n setExpanded(!expanded);\n }}\n >\n \n {props.title}\n \n \n \n {expanded ?\n \n :\n \n }\n \n \n \n \n
\n \n\n {\n const isValid = handleDateChange();\n setIsValidDateRange(isValid);\n if(isValid) {\n const customEvent = new CustomEvent('coveoFacet.dateRangeChange', { detail: { name: 'startDate', value: formattedDateValue(dayjs(e.target.value).toDate())}});\n window.dispatchEvent(customEvent);\n }\n }}\n ref={startRef}\n defaultValue={formattedDateValue(range?.start)}\n placeholder=\"Start Date\"\n />\n \n
\n
\n \n {\n const isValid = handleDateChange();\n setIsValidDateRange(isValid);\n if(isValid) {\n const customEvent = new CustomEvent('coveoFacet.dateRangeChange', { detail: { name: 'endDate', value: formattedDateValue(dayjs(e.target.value).add('23', 'hour').add('59', 'minute').add('59', 'second').toDate())}});\n window.dispatchEvent(customEvent);\n }\n }}\n ref={endRef}\n defaultValue={formattedDateValue(range?.end)}\n placeholder=\"End Date\"\n />\n \n
\n\n \n { !isValidDateRange ? {props.dateRangeError} : null}\n
\n \n );\n};\n","/* eslint-disable react/prop-types */\nimport React, {useEffect, useState} from 'react';\n\nexport const BreadcrumbManager = (\n props\n) => {\n const {controller} = props;\n const {labels} = props;\n const [state, setState] = useState(controller.state);\n\n useEffect(() => controller.subscribe(() => setState(controller.state)), []);\n\n if (!state?.hasBreadcrumbs) {\n return (\n
\n

\n {labels.narrowResults}\n

\n
\n );\n }\n\n return (\n
\n

\n {labels.narrowResults}\n {state.hasBreadcrumbs && (\n \n {labels.clearAll}\n \n )}\n

\n
\n {state.facetBreadcrumbs.map((facet) => (\n facet.values.map((breadcrumb) => (\n breadcrumb.deselect()}\n >\n {breadcrumb.value.value}\n \n \n \n \n ))\n ))}\n
\n
\n );\n};\n\n// usage\n\n/**\n * ```tsx\n * const controller = buildBreadcrumbManager(engine);\n *\n * ;\n * ```\n */\n","/* eslint-disable react/prop-types */\nimport React, {useEffect, useState} from 'react';\n\nexport const Facet = (props) => {\n const {controller} = props;\n const {labels} = props;\n const [state, setState] = useState(controller.state);\n const [expanded, setExpanded] = useState(false);\n\n function createUniqueID(value) {\n // convert spaces and special characters to dashes\n const id = value.replace(/[^a-zA-Z0-9]/g, '-');\n const number = Math.floor(Math.random() * 1000);\n return `${id}-${number}`;\n }\n\n function createCleanID(value) {\n // convert spaces and special characters to dashes\n const id = value.replace(/[^a-zA-Z0-9]/g, '-');\n return `id-${id}`;\n }\n\n const handleCollapseEvent = () => {\n setExpanded(false);\n };\n\n useEffect(() => controller.subscribe(() => setState(controller.state)), [\n controller,\n ]);\n\n useEffect(() => {\n window.addEventListener('coveoFacet.collapseAll', handleCollapseEvent);\n\n return () => {\n window.removeEventListener('coveoFacet.collapseAll');\n };\n }, []);\n\n if (!state.values.length) {\n return;\n }\n\n return (\n
\n\n {\n setExpanded(!expanded);\n }}\n >\n \n {props.title}\n \n \n \n {expanded ?\n \n :\n \n }\n \n \n \n \n <>\n {state.values.map((value) => (\n \n ))}\n \n
\n {((state.canShowMoreValues || state.canShowLessValues) && expanded) && (\n
\n \n \n
\n )}\n \n );\n};\n","/* eslint-disable react/prop-types */\nimport React, {useEffect, useState} from 'react';\n\nexport const Pager = (props) => {\n const {controller} = props;\n const {labels} = props;\n const [state, setState] = useState(controller.state);\n\n useEffect(() => controller.subscribe(() => setState(controller.state)), [\n controller,\n ]);\n\n state.currentPages.filter((page) => page > 0 && page < state.maxPage);\n\n if (state.maxPage < 1) {\n return;\n }\n\n if (state.maxPage < 6) {\n return (\n \n );\n }\n\n return (\n \n );\n};\n","/* eslint-disable react/prop-types */\n/* eslint-disable react/no-unescaped-entities */\nimport React, {useEffect, useState} from 'react';\n\nexport const QuerySummary = (props) => {\n const {controller} = props;\n const {labels} = props;\n const [state, setState] = useState(controller.state);\n\n useEffect(() => controller.subscribe(() => setState(controller.state)), [\n controller,\n ]);\n\n if (state.total === 0){\n return (\n
\n );\n }\n\n return (\n <>\n
\n {labels.viewing} {state.firstResult}-{state.lastResult} {labels.of} {state.total.toString()}\n {state.hasQuery ? ` ${labels.resultsBy} ${state.query}` : ` ${labels.results}`}\n
\n \n );\n}\n","/* eslint-disable react/prop-types */\nimport React, {useEffect, useState} from 'react';\n\nexport const ResultList = (props) => {\n const {controller, resultTemplatesManager} = props;\n const [state, setState] = useState(controller.state);\n\n const {dataset} = document.getElementsByClassName('coveo-search-results__main-wrapper')[0];\n const labels = JSON.parse(dataset.localization);\n\n useEffect(() => controller.subscribe(() => setState(controller.state)), [\n controller,\n ]);\n\n if (!state.results.length) {\n return
;\n }\n\n return (\n
\n
    \n {state.results.map((result) => {\n const template = resultTemplatesManager.selectTemplate(result);\n\n if (!template)\n throw new Error(`No result template provided for ${result.title}.`);\n\n return template(result);\n })}\n
\n
\n );\n};\n","/* eslint-disable react/prop-types */\nimport React, {useEffect, useState} from 'react';\n\nexport const SearchBox = (props) => {\n const {controller} = props;\n const {labels} = props;\n const [state, setState] = useState(controller.state);\n\n useEffect(() => controller.subscribe(() => setState(controller.state)), [\n controller,\n ]);\n\n const suggestionStyle = {\n cursor: 'pointer',\n };\n\n return (\n
{\n if(e.key === 'ArrowDown' && state.suggestions.length > 0) {\n e.preventDefault();\n const focusedElement = document.querySelector('.coveo-search-results__sidebar .coveo-search-results__search-box-suggestion:focus');\n const firstSuggestion = document.querySelector('.coveo-search-results__sidebar .coveo-search-results__search-box-suggestion:first-child');\n const lastSuggestion = document.querySelector('.coveo-search-results__sidebar .coveo-search-results__search-box-suggestion:last-child');\n\n if(focusedElement === null) {\n firstSuggestion.focus();\n } else if(focusedElement === lastSuggestion) {\n // firstSuggestion.focus();\n document.querySelector('.coveo-search-results__sidebar .coveo-search-results__search-box-input').focus();\n } else {\n focusedElement.nextSibling.focus();\n }\n }\n\n if(e.key === 'ArrowUp' && state.suggestions.length > 0) {\n e.preventDefault();\n const focusedElement = document.querySelector('.coveo-search-results__sidebar .coveo-search-results__search-box-suggestion:focus');\n const firstSuggestion = document.querySelector('.coveo-search-results__sidebar .coveo-search-results__search-box-suggestion:first-child');\n const lastSuggestion = document.querySelector('.coveo-search-results__sidebar .coveo-search-results__search-box-suggestion:last-child');\n\n if(focusedElement === null) {\n lastSuggestion.focus();\n } else if(focusedElement === firstSuggestion) {\n // lastSuggestion.focus();\n document.querySelector('.coveo-search-results__sidebar .coveo-search-results__search-box-input').focus();\n } else {\n focusedElement.previousSibling.focus();\n }\n }\n }}\n >\n controller.updateText(e.target.value)}\n onKeyDown={(e) => e.key === 'Enter' && controller.submit()}\n required\n />\n \n {\n controller.clear();\n controller.submit();\n }}\n className={`coveo-search-results__search-box-clear ${state.value ? 'coveo-search-results__search-box-clear--active' : ''}`}\n >\n \n \n \n \n {state.suggestions.length > 0 && (\n
\n {state.suggestions.map((suggestion) => (\n controller.selectSuggestion(suggestion.rawValue)}\n dangerouslySetInnerHTML={{__html: suggestion.highlightedValue}}\n >\n ))}\n
\n )}\n {\n controller.submit();\n }}\n className={`coveo-search-results__search-box-search ${state.value ? 'coveo-search-results__search-box-search--active' : ''}`}\n >\n \n \n \n \n
\n );\n};\n","/* eslint-disable react/prop-types */\nimport {\n buildCriterionExpression\n} from '@coveo/headless';\nimport React, {useEffect, useState} from 'react';\n\nexport const Sort = (props) => {\n const {controller} = props;\n const {labels} = props;\n const [state, setState] = useState(controller.state);\n\n useEffect(() => controller.subscribe(() => setState(controller.state)), [\n controller,\n ]);\n\n const getCriterionFromName = (name) => props.criteria.find((_a) => {\n const criterionName = _a[0];\n return criterionName === name;\n });\n\n const getCurrentCriterion = () => props.criteria.find((_a) => {\n const criterion = _a[1];\n return state.sortCriteria === buildCriterionExpression(criterion);\n });\n\n return (\n
\n \n \n controller.sortBy(getCriterionFromName(e.target.value)[1])\n }\n >\n {props.criteria.map(([criterionName]) => (\n \n ))}\n \n
\n );\n};\n","/* eslint-disable no-restricted-globals */\nimport {buildUrlManager} from '@coveo/headless';\n\n/**\n * Search parameters, defined in the url's hash, should not be restored until all components are registered.\n *\n * Additionally, a search should not be executed until search parameters are restored.\n *\n * @param engine - A headless search engine instance.\n * @returns An unsubscribe function to remove attached event listeners.\n */\nexport function bindUrlManager(engine) {\n const fragment = () => window.location.hash.slice(1);\n\n const urlManager = buildUrlManager(engine, {\n initialState: {fragment: fragment()},\n });\n const onHashChange = () => {\n urlManager.synchronize(fragment());\n };\n\n window.addEventListener('hashchange', onHashChange);\n const unsubscribeManager = urlManager.subscribe(() => {\n const hash = `#${urlManager.state.fragment}`;\n history.pushState(null, document.title, hash);\n });\n\n return () => {\n window.removeEventListener('hashchange', onHashChange);\n unsubscribeManager();\n };\n}\n","import {\n buildSearchBox,\n buildResultList,\n buildResultsPerPage,\n buildPager,\n buildBreadcrumbManager,\n buildQuerySummary,\n buildDateFilter,\n} from '@coveo/headless';\nimport {headlessEngine} from '../engine';\n\nconst {dataset} = document.getElementsByClassName('coveo-search-results__main-wrapper')[0];\n\nconst maxResultsPerPage = JSON.parse(dataset.resultsPerPage);\nconst fieldsToInclude = JSON.parse(dataset.searchFields);\n/*\n Usage:\n import * as Controllers from '../../coveo/controllers/controllers';\n\n Then, in the component:\n*/\n\nexport const searchBox = buildSearchBox(headlessEngine, {\n options: {\n highlightOptions: {\n notMatchDelimiters: {\n open: '',\n close: '',\n },\n correctionDelimiters: {\n open: '',\n close: '',\n },\n },\n },\n});\n\nexport const resultList = buildResultList(headlessEngine, {\n options: {\n fieldsToInclude,\n }\n});\n\nexport const facetBreadcrumb = buildBreadcrumbManager(headlessEngine);\n\nexport const resultsPerPage = buildResultsPerPage(headlessEngine, {\n initialState: {numberOfResults: maxResultsPerPage},\n});\n\n/*\n Usage:\n \n*/\nexport const dateFilter = buildDateFilter(headlessEngine, {\n options: {\n field: 'date',\n },\n});\n\nexport const querySummary = buildQuerySummary(headlessEngine);\n\nexport const pager = buildPager(headlessEngine, {options: {numberOfPages: 3}});\n","/* eslint-disable react/prop-types */\nimport {buildInteractiveResult} from '@coveo/headless';\nimport React, {useEffect} from 'react';\nimport {headlessEngine} from '../engine';\n\n// Filters out dangerous URIs that can create XSS attacks such as `javascript:`.\nfunction filterProtocol(uri) {\n const isAbsolute = /^(https?|ftp|file|mailto|tel):/i.test(uri);\n const isRelative = /^\\//.test(uri);\n\n return isAbsolute || isRelative ? uri : '';\n}\n\nexport const InteractiveResult = (\n props\n) => {\n const controller = buildInteractiveResult(headlessEngine, {\n options: {result: props.result},\n });\n\n useEffect(() => () => controller.cancelPendingSelect());\n\n return (\n controller.select()}\n onContextMenu={() => controller.select()}\n onMouseDown={() => controller.select()}\n onMouseUp={() => controller.select()}\n onTouchStart={() => controller.beginDelayedSelect()}\n onTouchEnd={() => controller.cancelPendingSelect()}\n >\n {props.children}\n \n );\n};\n\n","/* eslint-disable react/prop-types */\nimport {buildInteractiveResult} from '@coveo/headless';\nimport React, {useEffect} from 'react';\nimport {headlessEngine} from '../engine';\n\nexport const NonInteractiveResult = (\n props\n) => {\n const controller = buildInteractiveResult(headlessEngine, {\n options: {result: props.result},\n });\n\n useEffect(() => () => controller.cancelPendingSelect());\n\n return (\n controller.select()}\n onContextMenu={() => controller.select()}\n onMouseDown={() => controller.select()}\n onMouseUp={() => controller.select()}\n onTouchStart={() => controller.beginDelayedSelect()}\n onTouchEnd={() => controller.cancelPendingSelect()}\n >\n {props.children}\n
\n );\n};\n\n","/* eslint-disable no-unused-vars */\nimport {\n buildResultTemplatesManager,\n ResultTemplatesHelpers,\n} from '@coveo/headless';\nimport React from 'react';\nimport dayjs, { locale } from 'dayjs';\nimport timeZonePlugin from \"dayjs/plugin/timezone\";\nimport dayjsPluginUTC from 'dayjs/plugin/utc'\nimport {InteractiveResult} from '../components/interactive-result';\nimport {NonInteractiveResult} from '../components/non-interactive-result';\nimport {headlessEngine} from '../engine';\n\nimport ('dayjs/locale/en') // path must match with `i18n.language`\nimport ('dayjs/locale/de')\nimport ('dayjs/locale/pl')\nimport ('dayjs/locale/nl')\nimport ('dayjs/locale/fr')\nimport (\"dayjs/plugin/utc\")\nimport (\"dayjs/plugin/advancedFormat\")\n\nconst {dataset} = document.getElementsByClassName('coveo-search-results__main-wrapper')[0];\nconst language = dataset.language.split('-')[0];\n// convert localization string to JSON\nconst labels = JSON.parse(dataset.localization);\nconst remoteLabel = labels.remote || 'Remote';\n// forcing an specific language for testing\n// const language = 'nl';\n\n// Locale and format variables\nlet localeSet = false;\nlet newsDateFormat = '';\nlet eventSingleDayFormat = '';\nlet eventSingleMonthFormatStart = '';\nlet eventSingleMonthFormatEnd = '';\nlet eventMultiMonthFormatStart = '';\nlet eventMultiMonthFormatEnd = '';\nlet eventMultiYearFormatStart = '';\nlet eventMultiYearFormatEnd = '';\nlet eventSingleTimeFormat = '';\nlet eventMultiTimeFormatStart = '';\nlet eventMultiTimeFormatEnd = '';\n\n// this function is used to convert unicode to string\nfunction covertUnicode(str) {\n if (typeof str === 'string') {\n return str.replace(/\\\\u[\\dA-F]{4}/gi, (match) => String.fromCharCode(parseInt(match.replace(/\\\\u/g, ''), 16)));\n }\n return str\n};\n\n// this function is used to set locale and date formatting variables based on language\nfunction setLocale() {\n /* sample usage for dayjs and the cases we need to cover\n\n // Date in user's local time:\n dayjs('2024/05/25 14:00:00Z').format('D MMMM YYYY HH:mm');\n\n // Date in UTC:\n dayjs('2024/05/25 14:00:00Z').utc().format('D MMMM YYYY HH:mm');\n\n // Date in a specific timezone (ES/EST):\n dayjs('2024/05/25 14:00:00Z').tz('America/New_York').format('D MMMM YYYY HH:mm');\n\n */\n\n if(!localeSet) {\n dayjs.extend(dayjsPluginUTC, { parseToLocal: true });\n dayjs.extend(timeZonePlugin);\n dayjs.locale(language);\n localeSet = true;\n\n // Documentation on formatting: https://day.js.org/docs/en/display/format\n switch (language) {\n case 'nl':\n newsDateFormat = 'D-M-YYYY';\n eventSingleDayFormat = 'D MMMM YYYY';\n eventSingleMonthFormatStart = 'D';\n eventSingleMonthFormatEnd = '-D MMMM YYYY';\n eventMultiMonthFormatStart = 'D MMMM';\n eventMultiMonthFormatEnd = '-D MMMM YYYY';\n eventMultiYearFormatStart = 'D MMMM YYYY';\n eventMultiYearFormatEnd = '-D MMMM YYYY';\n eventSingleTimeFormat = 'HH:mm [uur]';\n eventMultiTimeFormatStart = 'HH:mm';\n eventMultiTimeFormatEnd = '-HH:mm [uur]';\n break;\n case 'de':\n newsDateFormat = 'DD.MM.YYYY';\n eventSingleDayFormat = 'D. MMMM YYYY';\n eventSingleMonthFormatStart = 'D.';\n eventSingleMonthFormatEnd = '-D. MMMM YYYY';\n eventMultiMonthFormatStart = 'D. MMMM';\n eventMultiMonthFormatEnd = '-D. MMMM YYYY';\n eventMultiYearFormatStart = 'D. MMMM YYYY';\n eventMultiYearFormatEnd = '-D. MMMM YYYY';\n eventSingleTimeFormat = 'HH:mm [Uhr]';\n eventMultiTimeFormatStart = 'HH:mm';\n eventMultiTimeFormatEnd = '-HH:mm [Uhr]';\n break;\n case 'fr':\n newsDateFormat = 'DD/MM/YYYY';\n eventSingleDayFormat = 'D MMMM YYYY';\n eventSingleMonthFormatStart = '[du] D';\n eventSingleMonthFormatEnd = ' [au] D MMMM YYYY';\n eventMultiMonthFormatStart = '[du] D MMMM';\n eventMultiMonthFormatEnd = ' [au] D MMMM YYYY';\n eventMultiYearFormatStart = '[du] D MMMM YYYY';\n eventMultiYearFormatEnd = ' [au] D MMMM YYYY';\n eventSingleTimeFormat = 'HH:mm';\n eventMultiTimeFormatStart = 'HH:mm';\n eventMultiTimeFormatEnd = '-HH:mm';\n break;\n default:\n newsDateFormat = 'MMM D, YYYY';\n eventSingleDayFormat = 'MMMM D, YYYY';\n eventSingleMonthFormatStart = 'MMMM D';\n eventSingleMonthFormatEnd = '-D, YYYY';\n eventMultiMonthFormatStart = 'MMMM D';\n eventMultiMonthFormatEnd = '-MMMM D, YYYY';\n eventMultiYearFormatStart = 'MMM D, YYYY';\n eventMultiYearFormatEnd = '-MMM D, YYYY';\n eventSingleTimeFormat = 'hh:mm A';\n eventMultiTimeFormatStart = 'hh:mm A';\n eventMultiTimeFormatEnd = '-hh:mm A';\n }\n\n }\n}\n\n// Return formatted UTC date for News section based on language\nfunction formatNewsDate(date) {\n setLocale();\n if (!date) return '';\n return dayjs(date).utc().format(newsDateFormat);\n}\n\n// Returns true if future \nfunction checkIfFuture(date, result) {\n const eventDate = new Date(date);\n const now = new Date();\n\n return Date.parse(eventDate) > Date.parse(now);\n}\n\n// Returns formatted date based on location and language\nfunction formatEventDate(location, start, end, timezone) {\n setLocale();\n let tz = dayjs.tz.guess();\n if (location === remoteLabel) {\n tz = dayjs.tz.guess();\n } else {\n tz = timezone||\"Africa/Freetown\";\n }\n\n let formattedDate = '';\n const startDate = dayjs(new Date(start)).tz(tz).format('D MMMM YYYY');\n const startDay = startDate.split(' ')[0];\n const startMonth = startDate.split(' ')[1];\n const startYear = startDate.split(' ')[2];\n\n formattedDate = `${dayjs(new Date(start)).tz(tz).format(eventSingleDayFormat)}`;\n\n if(end) {\n const endDate = dayjs(new Date(end)).tz(tz).format('D MMMM YYYY');\n const endDay = endDate.split(' ')[0];\n const endMonth = endDate.split(' ')[1];\n const endYear = endDate.split(' ')[2];\n\n if (startDay === endDay && startMonth === endMonth && startYear === endYear) { // same day\n formattedDate = `${dayjs(new Date(start)).tz(tz).format(eventSingleDayFormat)}`;\n } else if (startMonth === endMonth && startYear === endYear) { // same month, different day\n formattedDate = `${dayjs(new Date(start)).tz(tz).format(eventSingleMonthFormatStart)}${dayjs(new Date(end)).tz(tz).format(eventSingleMonthFormatEnd)}`;\n } else if (startYear === endYear) { // same year, different month\n formattedDate = `${dayjs(new Date(start)).tz(tz).format(eventMultiMonthFormatStart)}${dayjs(new Date(end)).tz(tz).format(eventMultiMonthFormatEnd)}`;\n } else { // different year, different month, different day\n formattedDate = `${dayjs(new Date(start)).tz(tz).format(eventMultiYearFormatStart)}${dayjs(new Date(end)).tz(tz).format(eventMultiYearFormatEnd)}`;\n }\n }\n\n return formattedDate;\n}\n\n// Returns formatted time based on location and language\nfunction formatEventTime(location, start, end, timezone) {\n setLocale();\n let tz = dayjs.tz.guess();\n if (location === remoteLabel) {\n tz = dayjs.tz.guess();\n } else {\n tz = timezone||\"Africa/Freetown\";\n }\n let formattedTime = '';\n const startTime = dayjs(new Date(start)).tz(tz).format('HH:mm A');\n\n formattedTime = `${dayjs(new Date(start)).format(eventSingleTimeFormat)}`;\n formattedTime = formattedTime.replace(/^(?:)?0?/,'', '');\n\n if(end) {\n const endTime = dayjs(new Date(end)).tz(tz).format('HH:mm A');\n\n if (startTime === endTime) { // same time\n formattedTime = `${dayjs(new Date(start)).tz(tz).format(eventSingleTimeFormat)}`;\n formattedTime = formattedTime.replace(/^(?:)?0?/,'', '');\n } else { // different time\n formattedTime = `${dayjs(new Date(start)).tz(tz).format(eventMultiTimeFormatStart).replace(/^(?:)?0?/,'', '')}-${dayjs(new Date(end)).tz(tz).format(eventMultiTimeFormatStart).replace(/^(?:)?0?/,'', '')}`;\n // edge case for AM/PM in en-US\n if((formattedTime.match(/AM/g)?.length === 2) || (formattedTime.match(/PM/g)?.length === 2)) {\n formattedTime = formattedTime.replace(' AM', '');\n formattedTime = formattedTime.replace(' PM', '');\n }\n }\n }\n\n return formattedTime;\n}\n\n// Returns true if the event date is in the future\nfunction checkEventDate(date) {\n const eventDate = new Date(date);\n const now = new Date();\n\n if (Date.parse(eventDate) > Date.parse(now)) {\n return true;\n }\n\n return false;\n}\n\nexport const resultTemplatesManager = buildResultTemplatesManager(headlessEngine);\n\nresultTemplatesManager.registerTemplates(\n {\n conditions: [],\n fields: ['date'],\n content: (result) => (\n
  • \n \n {result.raw.bil_navigationtitle\n
    \n

    {covertUnicode(result.raw.bil_navigationtitle)}

    \n

    {covertUnicode(result.raw.bil_teaser)}

    \n
    \n
    \n
  • \n ),\n },\n {\n priority: 1,\n conditions: [\n ResultTemplatesHelpers.fieldMustMatch('bil_contenttype', ['resourcetype']),\n ],\n content: (result) => (\n
  • \n \n {result.raw.bil_f_resourcetype\n
    \n

    {covertUnicode(result.raw.bil_navigationtitle) || \"No Title ResType\"}

    \n
    {result.raw.bil_f_resourcetype === \"Webinar\"?covertUnicode(result.raw.bil_f_eventtype):covertUnicode(result.raw.bil_f_resourcetype)}{result.raw.bil_f_resourcetype === \"Webinar\" && result.raw.bil_f_startdate && checkIfFuture(result.raw.bil_f_enddate?result.raw.bil_f_enddate:result.raw.bil_f_startdate) ? ` | ${formatNewsDate(result.raw.bil_f_startdate).replace(/ /g, \"\\u00A0\")}`:''}
    \n

    {covertUnicode(result.raw.bil_teaser)}

    \n
    \n
    \n
  • \n ),\n },\n {\n priority: 1,\n conditions: [\n ResultTemplatesHelpers.fieldMustMatch('bil_contenttype', ['news']),\n ],\n content: (result) => (\n
  • \n \n {result.raw.bil_f_newstypes?result.raw.bil_f_newstypes[0]:null\n
    \n

    {covertUnicode(result.raw.bil_navigationtitle)}

    \n
    {covertUnicode(result.raw.bil_f_newstypes?`${result.raw.bil_f_newstypes[0]} | ${formatNewsDate(result.raw.bil_f_date).replace(/ /g, \"\\u00A0\")}`: formatNewsDate(result.raw.bil_f_date).replace(/ /g, \"\\u00A0\"))}
    \n

    {covertUnicode(result.raw.bil_teaser)}

    \n
    \n
    \n
  • \n ),\n },\n {\n priority: 1,\n conditions: [\n ResultTemplatesHelpers.fieldMustMatch('bil_contenttype', ['event']),\n ],\n content: (result) => (\n
  • \n {checkEventDate(result.raw.bil_f_startdate) && result.raw.bil_redirectlink ?\n <>\n \n {result.raw.bil_f_eventtype\n
    \n

    {covertUnicode(result.raw.bil_navigationtitle)}

    \n
    {covertUnicode(result.raw.bil_f_eventtype)}
    \n

    \n {formatEventDate(result.raw.bil_f_location, result.raw.bil_f_startdate, result.raw.bil_f_enddate, result.raw.bil_timezone)}
    \n {result.raw.bil_showtime && checkIfFuture(result.raw.bil_f_enddate?result.raw.bil_f_enddate:result.raw.bil_f_startdate)?\n <>\n {formatEventTime(result.raw.bil_f_location, result.raw.bil_f_startdate, result.raw.bil_f_enddate, result.raw.bil_timezone)}
    \n \n : null}\n {result.raw.bil_city && result.raw.bil_city}\n

    \n
    \n
    \n {(result.raw.bil_meetingrequestlink && checkEventDate(result.raw.bil_f_startdate)) && {labels.bookMeeting ? labels.bookMeeting : \"Book a Meeting\"}}\n \n :\n \n {result.raw.bil_f_eventtype\n
    \n

    {covertUnicode(result.raw.bil_navigationtitle)}

    \n
    {covertUnicode(result.raw.bil_f_eventtype)}
    \n

    \n {formatEventDate(result.raw.bil_f_location, result.raw.bil_f_startdate, result.raw.bil_f_enddate,result.raw.bil_timezone)}
    \n {result.raw.bil_showtime && checkIfFuture(result.raw.bil_f_enddate?result.raw.bil_f_enddate:result.raw.bil_f_startdate)?\n <>\n {formatEventTime(result.raw.bil_f_location, result.raw.bil_f_startdate, result.raw.bil_f_enddate, result.raw.bil_timezone)}
    \n \n : null}\n {result.raw.bil_city && result.raw.bil_city}\n

    \n
    \n
    \n }\n
  • \n ),\n }\n);\n","import {\n buildRelevanceSortCriterion,\n buildFieldSortCriterion,\n SortOrder,\n} from '@coveo/headless';\n\nconst {dataset} = document.getElementsByClassName('coveo-search-results__main-wrapper')[0];\n\nconst labels = JSON.parse(dataset.localization);\n\nexport const criteriaGlobal = [\n [labels.sortRelevance, buildRelevanceSortCriterion()],\n [labels.sortMostRecent, buildFieldSortCriterion('bil_f_date', SortOrder.Descending)],\n [labels.sortLeastRecent, buildFieldSortCriterion('bil_f_date', SortOrder.Ascending)],\n [labels.sortAlphaAsc, buildFieldSortCriterion('bil_navigationtitle', SortOrder.Ascending)],\n [labels.sortAlphaDesc, buildFieldSortCriterion('bil_navigationtitle', SortOrder.Descending)],\n];\n\nexport const criteriaEvent = [\n [labels.sortMostRecent, buildFieldSortCriterion('bil_f_startdate', SortOrder.Ascending)],\n [labels.sortLeastRecent, buildFieldSortCriterion('bil_f_startdate', SortOrder.Descending)],\n [labels.sortAlphaAsc, buildFieldSortCriterion('bil_navigationtitle', SortOrder.Ascending)],\n [labels.sortAlphaDesc, buildFieldSortCriterion('bil_navigationtitle', SortOrder.Descending)],\n [labels.sortRelevance, buildRelevanceSortCriterion()],\n];\n\nexport const criteriaNews = [\n [labels.sortMostRecent, buildFieldSortCriterion('bil_f_date', SortOrder.Descending)],\n [labels.sortLeastRecent, buildFieldSortCriterion('bil_f_date', SortOrder.Ascending)],\n [labels.sortAlphaAsc, buildFieldSortCriterion('bil_navigationtitle', SortOrder.Ascending)],\n [labels.sortAlphaDesc, buildFieldSortCriterion('bil_navigationtitle', SortOrder.Descending)],\n [labels.sortRelevance, buildRelevanceSortCriterion()],\n];\n\nexport const criteriaResource = [\n [labels.sortMostRecent, buildFieldSortCriterion('bil_f_date', SortOrder.Descending)],\n [labels.sortLeastRecent, buildFieldSortCriterion('bil_f_date', SortOrder.Ascending)],\n [labels.sortAlphaAsc, buildFieldSortCriterion('bil_navigationtitle', SortOrder.Ascending)],\n [labels.sortAlphaDesc, buildFieldSortCriterion('bil_navigationtitle', SortOrder.Descending)],\n [labels.sortRelevance, buildRelevanceSortCriterion()],\n];\n","/* eslint-disable no-unused-vars */\nimport {\n buildSearchEngine,\n getSampleSearchEngineConfiguration,\n} from '@coveo/headless';\n\nconst wrapper = document.getElementsByClassName('coveo-search-results__main-wrapper')[0] || document.getElementsByClassName('coveo-search-results__global-search-box')[0] ;\n\nconst {dataset} = wrapper;\n\nconst coveoConfig = JSON.parse(dataset.coveo);\n\nconst config = {\n organizationId: coveoConfig.OrganizationId,\n accessToken: coveoConfig.ApiKey,\n search: {\n preprocessSearchResponseMiddleware: (response) => {\n response.body.results.forEach((result) => result);\n return response;\n },\n preprocessFacetSearchResponseMiddleware: (response) => response,\n preprocessQuerySuggestResponseMiddleware: (response) => response,\n },\n preprocessRequest: (request, clientOrigin) => {\n if (clientOrigin === 'searchApiFetch') {\n const body = JSON.parse(request.body);\n // E.g., modify facet requests\n // body.facets = [...];\n request.body = JSON.stringify(body);\n }\n\n if (clientOrigin === 'analyticsFetch') {\n // E.g., send data to a third party\n }\n }\n}\n\nexport const headlessEngine = buildSearchEngine({\n configuration: config,\n});\n"],"sourceRoot":""}