UNPKG

coveo-search-ui

Version:

Coveo JavaScript Search Framework

1 lines • 72.7 kB
webpackJsonpCoveo__temporary([12,19,32,40,42],{118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),o=n(93),r=n(1),s=n(0),l=n(9),a=function(){function e(){}return e.hideIfInfiniteScrollEnabled=function(t){e.isInfiniteScrollEnabled(t.searchInterface.element)?(t.disable(),r.$$(t.element).hide(),e.warnIfComponentNotNeeded(t)):(t.enable(),r.$$(t.element).unhide())},e.isInfiniteScrollEnabled=function(t){var n=e.getMainResultList(t);return!!n&&!!n.options.enableInfiniteScroll},e.scrollToTop=function(t){var n=e.getMainResultList(t);if(!n)return new l.Logger(this).warn("No active ResultList, scrolling to the top of the Window"),window.scrollTo(0,0);var i=n.searchInterface.element.getBoundingClientRect().top;i>0||window.scrollTo(0,window.pageYOffset+i)},e.getMainResultList=function(t){var n=e.getResultLists(t);return s.find(n,function(e){var t=e.searchInterface.element.classList.contains("CoveoRecommendation");return!e.disabled&&!t})},e.getResultLists=function(t){return r.$$(t).findAll("."+e.cssClass()).map(function(e){return i.Component.get(e,o.ResultList)})},e.cssClass=function(){return i.Component.computeCssClassName(o.ResultList)},e.warnIfComponentNotNeeded=function(t){var n=t.searchInterface.root;e.allResultListsUseInfiniteScroll(n)&&e.notNeededComponentWarning(t)},e.allResultListsUseInfiniteScroll=function(t){return 0===e.getResultLists(t).filter(function(e){return!e.options.enableInfiniteScroll}).length},e.notNeededComponentWarning=function(t){var n=i.Component.computeCssClassNameForType(t.type),o="The "+n+" component is not needed because all "+e.cssClass()+" components have enableInfiniteScroll set to 'true'.\n For the best performance, remove the "+n+" component from your search page.";new l.Logger(t).warn(o)},e}();t.ResultListUtils=a},125:function(module,exports,__webpack_require__){"use strict";function showOnlyWithHelper(e,t){return null==t&&(t={}),t.helpers=e,t}var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(exports,"__esModule",{value:!0});var underscore_1=__webpack_require__(0),GlobalExports_1=__webpack_require__(3),Assert_1=__webpack_require__(5),Strings_1=__webpack_require__(6),AccessibleButton_1=__webpack_require__(15),DateUtils_1=__webpack_require__(33),Dom_1=__webpack_require__(1),StringUtils_1=__webpack_require__(22),Utils_1=__webpack_require__(4),AnalyticsActionListMeta_1=__webpack_require__(10),Component_1=__webpack_require__(7),ComponentOptions_1=__webpack_require__(8),Initialization_1=__webpack_require__(2),FacetUtils_1=__webpack_require__(40),TemplateFieldsEvaluator_1=__webpack_require__(137),TemplateHelpers_1=__webpack_require__(122),IFieldValueCompatibleFacet_1=__webpack_require__(540),ComponentsTypes_1=__webpack_require__(47),FieldValue=function(_super){function FieldValue(e,t,n,i,o){void 0===o&&(o=FieldValue.ID);var r=_super.call(this,e,o,n)||this;return r.element=e,r.options=t,r.result=i,r.options=ComponentOptions_1.ComponentOptions.initOptions(e,FieldValue.simpleOptions,t,FieldValue.ID),null!=r.options.helper&&r.normalizeHelperAndOptions(),r.result=r.result||r.resolveResult(),Assert_1.Assert.exists(r.result),TemplateFieldsEvaluator_1.TemplateFieldsEvaluator.evaluateFieldsToMatch(r.options.conditions,r.result)&&!Utils_1.Utils.isNullOrUndefined(r.getValue())?r.initialize():null!=r.element.parentElement&&r.element.parentElement.removeChild(r.element),r}return __extends(FieldValue,_super),FieldValue.prototype.initialize=function(){var e,t=this.getValue();underscore_1.isArray(t)?e=t:this.options.splitValues?underscore_1.isString(t)&&(e=underscore_1.map(t.split(this.options.separator),function(e){return e.trim()})):(t=t.toString(),e=[t]),e.length>1&&this.isValueHierarchical&&(e=e.slice(-1)),this.appendValuesToDom(e),null!=this.options.textCaption&&this.prependTextCaptionToDom()},FieldValue.prototype.getValue=function(){var e=Utils_1.Utils.getFieldValue(this.result,this.options.field);return!underscore_1.isArray(e)&&underscore_1.isObject(e)&&(e=null),e},FieldValue.prototype.renderOneValue=function(e){var t=Dom_1.$$("span").el,n=this.getCaption(e);if(this.options.helper){var i=TemplateHelpers_1.TemplateHelpers.getHelper(this.options.helper+"v2")||TemplateHelpers_1.TemplateHelpers.getHelper(""+this.options.helper);Utils_1.Utils.exists(i)?n=i.call(this,e,this.getHelperOptions(),this.result):this.logger.warn("Helper "+this.options.helper+" is not found in available helpers. The list of supported helpers is :",underscore_1.keys(TemplateHelpers_1.TemplateHelpers.getHelpers()));var o=this.getFullDate(e,this.options.helper);o&&t.setAttribute("title",o),"date"!=this.options.helper&&"dateTime"!=this.options.helper&&"emailDateTime"!=this.options.helper||(n=StringUtils_1.StringUtils.capitalizeFirstLetter(n))}return this.options.htmlValue?t.innerHTML=n:t.appendChild(document.createTextNode(n)),this.bindEventOnValue(t,e,n),t},FieldValue.prototype.getValueContainer=function(){return this.element},FieldValue.prototype.normalizeHelperAndOptions=function(){var e=this;this.options=ComponentOptions_1.ComponentOptions.initOptions(this.element,FieldValue.helperOptions,this.options,FieldValue.ID);var t=underscore_1.keys(FieldValue.options.helperOptions.subOptions),n=underscore_1.filter(t,function(t){var n=FieldValue.options.helperOptions.subOptions[t];if(n){var i=n.helpers;return null!=i&&underscore_1.contains(i,e.options.helper)}return!1});this.options.helperOptions=underscore_1.omit(this.options.helperOptions,function(e,t){return!underscore_1.contains(n,t)})},FieldValue.prototype.getHelperOptions=function(){var inlineOptions=ComponentOptions_1.ComponentOptions.loadStringOption(this.element,"helperOptions",{});return Utils_1.Utils.isNonEmptyString(inlineOptions)?underscore_1.extend({},this.options.helperOptions,eval("("+inlineOptions+")")):this.options.helperOptions},FieldValue.prototype.getFullDate=function(e,t){var n={useLongDateFormat:!0,useTodayYesterdayAndTomorrow:!1,useWeekdayIfThisWeek:!1,omitYearIfCurrentOne:!1};return"date"==t?DateUtils_1.DateUtils.dateToString(new Date(parseInt(e)),n):"dateTime"==t||"emailDateTime"==t?DateUtils_1.DateUtils.dateTimeToString(new Date(parseInt(e)),n):""},FieldValue.prototype.appendValuesToDom=function(e){var t=this;underscore_1.each(e,function(n,i){void 0!=n&&(t.getValueContainer().appendChild(t.renderOneValue(n)),i!==e.length-1&&t.getValueContainer().appendChild(document.createTextNode(t.options.displaySeparator)))})},FieldValue.prototype.renderTextCaption=function(){return Dom_1.$$("span",{className:"coveo-field-caption"},underscore_1.escape(this.options.textCaption)).el},FieldValue.prototype.prependTextCaptionToDom=function(){var e=this.getValueContainer();Dom_1.$$(e).prepend(this.renderTextCaption()),Dom_1.$$(e).addClass("coveo-with-label")},FieldValue.prototype.bindEventOnValue=function(e,t,n){this.bindFacets(e,t,n)},FieldValue.prototype.getCaption=function(e){for(var t=0,n=this.getFacets();t<n.length;t++){var i=n[t],o=i.getCaptionForStringValue(e);if(o)return o}return FacetUtils_1.FacetUtils.tryToGetTranslatedCaption(this.options.field,e)},FieldValue.prototype.getFacets=function(){var e=this,t=ComponentsTypes_1.ComponentsTypes.getAllFacetsFromSearchInterface(this.searchInterface).filter(IFieldValueCompatibleFacet_1.isFacetFieldValueCompatible).filter(function(e){return!e.disabled}),n=t.filter(function(t){return t.options.id===e.options.facet});return n.length?n:t.filter(function(t){return t.options.field===e.options.field})},Object.defineProperty(FieldValue.prototype,"isValueHierarchical",{get:function(){for(var e=0,t=this.getFacets();e<t.length;e++){if(t[e].isFieldValueHierarchical)return!0}return!1},enumerable:!0,configurable:!0}),FieldValue.prototype.bindFacets=function(e,t,n){var i=this,o=this.getFacets();if(o.length){var r=!!underscore_1.find(o,function(e){return e.hasSelectedValue(t)}),s=function(){return i.handleFacetSelection(r,o,t)};this.buildClickableElement(e,r,n,s)}},FieldValue.prototype.buildClickableElement=function(e,t,n,i){var o=t?Strings_1.l("RemoveFilterOn",n):Strings_1.l("FilterOn",n);(new AccessibleButton_1.AccessibleButton).withTitle(o).withElement(e).withSelectAction(i).build(),t&&Dom_1.$$(e).addClass("coveo-selected"),Dom_1.$$(e).addClass("coveo-clickable")},FieldValue.prototype.handleFacetSelection=function(e,t,n){t.forEach(function(t){e?t.deselectValue(n):t.selectValue(n)}),this.executeQuery(n)},FieldValue.prototype.executeQuery=function(e){var t=this;this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return t.usageAnalytics.logSearchEvent(AnalyticsActionListMeta_1.analyticsActionCauseList.documentField,{facetId:t.options.facet,facetField:t.options.field.toString(),facetValue:e.toLowerCase()})}})},FieldValue.ID="FieldValue",FieldValue.doExport=function(){GlobalExports_1.exportGlobally({FieldValue:FieldValue})},FieldValue.options={field:ComponentOptions_1.ComponentOptions.buildFieldOption({defaultValue:"@field",required:!0}),facet:ComponentOptions_1.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||t.field}}),htmlValue:ComponentOptions_1.ComponentOptions.buildBooleanOption({defaultValue:!1}),splitValues:ComponentOptions_1.ComponentOptions.buildBooleanOption({defaultValue:!1}),separator:ComponentOptions_1.ComponentOptions.buildStringOption({depend:"splitValues",defaultValue:";"}),displaySeparator:ComponentOptions_1.ComponentOptions.buildStringOption({depend:"splitValues",defaultValue:", "}),helper:ComponentOptions_1.ComponentOptions.buildHelperOption(),helperOptions:ComponentOptions_1.ComponentOptions.buildObjectOption({subOptions:{text:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["anchor"])),target:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["anchor"])),class:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["anchor"])),format:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["number"])),decimals:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["currency"],{min:0})),symbol:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["currency"])),useTodayYesterdayAndTomorrow:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),useWeekdayIfThisWeek:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),omitYearIfCurrentOne:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),useLongDateFormat:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!1})),includeTimeIfToday:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),includeTimeIfThisWeek:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),alwaysIncludeTime:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!1})),predefinedFormat:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"])),companyDomain:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["email"])),me:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["email"])),lengthLimit:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["email"],{min:1})),truncateName:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["email"])),alt:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["image"])),height:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["image"])),width:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["image"])),srcTemplate:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["image"])),precision:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["size"],{min:0,defaultValue:2})),base:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["size"],{min:0,defaultValue:0})),isMilliseconds:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["timeSpan"])),length:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["shorten","shortenPath","shortenUri"],{defaultValue:200}))}}),textCaption:ComponentOptions_1.ComponentOptions.buildLocalizedStringOption(),conditions:ComponentOptions_1.ComponentOptions.buildFieldConditionOption()},FieldValue.simpleOptions=underscore_1.omit(FieldValue.options,"helperOptions"),FieldValue.helperOptions={helperOptions:FieldValue.options.helperOptions},FieldValue}(Component_1.Component);exports.FieldValue=FieldValue,Initialization_1.Initialization.registerAutoCreateComponent(FieldValue)},197:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(20),r=n(3),s=n(8),l=n(125),a=function(e){function t(n,i,o,r){var a=e.call(this,n,t.ID,o)||this;a.element=n,a.options=i,a.result=r,a.options=s.ComponentOptions.initComponentOptions(n,t,i);var u={field:a.options.field,helper:"image",htmlValue:!0,helperOptions:{height:a.options.height,width:a.options.width,alt:r.title,srcTemplate:a.options.srcTemplate}};return new l.FieldValue(n,u,o,r),a}return i(t,e),t.ID="ImageFieldValue",t.doExport=function(){r.exportGlobally({ImageFieldValue:t})},t.options={field:s.ComponentOptions.buildFieldOption({required:!0}),width:s.ComponentOptions.buildNumberOption(),height:s.ComponentOptions.buildNumberOption(),srcTemplate:s.ComponentOptions.buildStringOption()},t}(o.Component);t.ImageFieldValue=a,o.Initialization.registerAutoCreateComponent(a)},215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),o=n(0),r=function(){function e(e,t){this.resultListOptions=e,this.autoCreateComponentsFn=t}return e.prototype.renderResults=function(e,t,n){var r=this;return void 0===t&&(t=!1),Promise.all([this.getStartFragment(e,t),this.getEndFragment(e,t)]).then(function(t){var s=t[0],l=t[1],a=document.createDocumentFragment();s&&a.appendChild(s),o.each(e,function(e){a.appendChild(e),n(i.Component.getResult(e),e)}),l&&a.appendChild(l),r.resultListOptions.resultsContainer.appendChild(a)})},e.prototype.getStartFragment=function(e,t){return Promise.resolve(document.createDocumentFragment())},e.prototype.getEndFragment=function(e,t){return Promise.resolve(document.createDocumentFragment())},e}();t.ResultListRenderer=r},296:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{a(i.next(e))}catch(e){r(e)}}function l(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,l)}a((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,l,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return l={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l};Object.defineProperty(t,"__esModule",{value:!0});var l=n(3),a=n(20);n(703);var u=n(63),p=n(473),c=n(71),h=n(197),d=n(510),f=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.bindings=o,r.options=a.ComponentOptions.initComponentOptions(n,t,i),r.options.resultTemplate||(r.logger.warn("No template was provided for "+t.ID+", a default template was used instead."),r.options.resultTemplate=r.buildDefaultSearchResultPreviewTemplate()),r.bind.onRootElement(d.ResultPreviewsManagerEvents.updateResultPreviewsManagerOptions,function(e){return e.displayAfterDuration=Math.max(e.displayAfterDuration||0,r.options.executeQueryDelay)}),r.bind.onRootElement(d.ResultPreviewsManagerEvents.populateSearchResultPreviews,function(e){return r.populateSearchResultPreviews(e)}),r}return i(t,e),t.prototype.buildDefaultSearchResultPreviewTemplate=function(){return a.HtmlTemplate.create(a.$$("div",{className:"result-template"},a.$$("div",{className:"coveo-result-frame coveo-default-result-preview"},a.$$("div",{className:a.Component.computeCssClassName(h.ImageFieldValue),"data-field":"@image"}),a.$$("a",{className:a.Component.computeCssClassName(c.ResultLink)}))).el)},Object.defineProperty(t.prototype,"templateToHtml",{get:function(){var e={searchInterface:this.searchInterface,queryStateModel:this.queryStateModel,resultTemplate:this.options.resultTemplate};return new p.TemplateToHtml(e)},enumerable:!0,configurable:!0}),t.prototype.populateSearchResultPreviews=function(e){e.previewsQueries.push(this.fetchSearchResultPreviews(e.suggestion))},t.prototype.fetchSearchResultPreviews=function(e){return r(this,void 0,void 0,function(){var t,n;return s(this,function(i){switch(i.label){case 0:return t=this.buildQuery(e),[4,this.queryController.getEndpoint().search(t)];case 1:return n=i.sent(),n?[2,this.buildResultsPreview(e,n)]:[2,[]]}})})},t.prototype.buildQuery=function(e){var t=this.buildDefaultQuery(e);return a.$$(this.root).trigger(d.ResultPreviewsManagerEvents.buildingResultPreviewsQuery,{query:t}),t},t.prototype.buildDefaultQuery=function(e){var t=this.queryController.getLastQuery(),n=t.searchHub,i=t.pipeline,r=t.tab,s=t.locale,l=t.timezone,a=t.context,u=t.cq;return o({firstResult:0,searchHub:n,pipeline:i,tab:r,locale:s,timezone:l,context:a,cq:u,numberOfResults:this.options.numberOfPreviewResults,q:e.text||e.dom.innerText},e.advancedQuery&&{aq:e.advancedQuery})},t.prototype.buildResultsPreview=function(e,t){return r(this,void 0,void 0,function(){var n,i=this;return s(this,function(o){switch(o.label){case 0:return[4,this.templateToHtml.buildResults(t,"preview",[])];case 1:return n=o.sent(),n.length>0?[2,n.map(function(t,n){return i.buildResultPreview(e,t,n)})]:[2,[]]}})})},t.prototype.buildResultPreview=function(e,t,n){var i=this;t.classList.add("coveo-preview-selectable");var o=t.querySelector(a.Component.computeSelectorForType(c.ResultLink.ID));return o&&(t.setAttribute("aria-label",o.textContent),o.setAttribute("role","link"),o.removeAttribute("aria-level")),{element:t,onSelect:function(){return i.handleSelect(e,t,n)}}},t.prototype.handleSelect=function(e,t,n){var i=a.$$(t).find("."+a.Component.computeCssClassNameForType("ResultLink"));if(i){var o=a.Component.get(i);o.openLinkAsConfigured(),o.openLink()}},t.ID="QuerySuggestPreview",t.doExport=function(){l.exportGlobally({QuerySuggestPreview:t})},t.options={resultTemplate:u.TemplateComponentOptions.buildTemplateOption(),numberOfPreviewResults:a.ComponentOptions.buildNumberOption({defaultValue:4,min:1,max:6}),executeQueryDelay:a.ComponentOptions.buildNumberOption({defaultValue:200})},t}(a.Component);t.QuerySuggestPreview=f,a.Initialization.registerAutoCreateComponent(f)},40:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=n(21),r=n(121),s=n(33),l=n(4),a=n(1),u=n(0),p=n(6),c=function(){function e(){}return e.getRegexToUseForFacetSearch=function(e,t){return new RegExp(i.StringUtils.stringToRegex(e,t),"i")},e.getDisplayValueFromValueCaption=function(e,t,n){var i=this.tryToGetTranslatedCaption(t,e,!1);return n[e]||i},e.getValuesToUseForSearchInFacet=function(e,t){var n=[e],i=this.getRegexToUseForFacetSearch(e,t.options.facetSearchIgnoreAccents);return t.options.valueCaption?(u.chain(t.options.valueCaption).pairs().filter(function(e){return i.test(e[1])}).each(function(e){n.push(e[0])}),(o.QueryUtils.isStratusAgnosticField(t.options.field,"@objecttype")||o.QueryUtils.isStratusAgnosticField(t.options.field,"@filetype"))&&u.each(r.FileTypes.getFileTypeCaptions(),function(e,o){o in t.options.valueCaption||!i.test(e)||n.push(o)})):o.QueryUtils.isStratusAgnosticField(t.options.field,"@objecttype")||o.QueryUtils.isStratusAgnosticField(t.options.field,"@filetype")?u.each(u.filter(u.pairs(r.FileTypes.getFileTypeCaptions()),function(e){return i.test(e[1])}),function(e){n.push(e[0])}):o.QueryUtils.isStratusAgnosticField(t.options.field,"@month")&&u.each(u.range(1,13),function(e){i.test(s.DateUtils.monthToString(e-1))&&n.push(("0"+e.toString()).substr(-2))}),n},e.buildFacetSearchPattern=function(e){return e=u.map(e,function(e){return l.Utils.escapeRegexCharacter(e)}),e[0]=".*"+e[0]+".*",e.join("|")},e.needAnotherFacetSearch=function(e,t,n,i){return e<t&&e<i&&e>n},e.addNoStateCssClassToFacetValues=function(e,t){if(0!=e.values.getSelected().length){var n=a.$$(t).findAll("li:not(.coveo-selected)");u.each(n,function(e){a.$$(e).addClass("coveo-no-state")})}},e.tryToGetTranslatedCaption=function(t,n,i){void 0===i&&(i=!0);var a;if(o.QueryUtils.isStratusAgnosticField(t.toLowerCase(),"@filetype"))a=r.FileTypes.getFileType(n,i).caption;else if(o.QueryUtils.isStratusAgnosticField(t.toLowerCase(),"@objecttype"))a=r.FileTypes.getObjectType(n,i).caption;else if(e.isMonthFieldValue(t,n)){var u=parseInt(n,10);a=s.DateUtils.monthToString(u-1)}else i&&(a=p.l(n));return void 0!=a&&l.Utils.isNonEmptyString(a)?a:n},e.isMonthFieldValue=function(e,t){if(!o.QueryUtils.isStratusAgnosticField(e.toLowerCase(),"@month"))return!1;var n=parseInt(t,10);return!isNaN(n)&&!(n<1||n>12)},e}();t.FacetUtils=c},470:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=n(96),s=n(0),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultTemplate='<td><a class="CoveoResultLink"></a></td>\n <td><span class="CoveoExcerpt"></span></td>\n <td><span class="CoveoFieldValue" data-field="@date" data-helper="date"></span></td>',t.defaultRoledTemplates={"table-header":'<th style="width: 40%">Link</th>\n <th>Excerpt</th>\n <th style="width: 20%"\n class="CoveoSort coveo-table-header-sort"\n data-sort-criteria="date ascending,date descending"\n data-display-unselected-icon="false">Date</th>',"table-footer":"<th>Link</th>\n <th>Excerpt</th>\n <th>Date</th>"},t}return i(t,e),t.prototype.instantiateRoleToString=function(e){var t=s.find(this.templates,function(t){return t.role===e});return t?t.instantiateToString(void 0,{}):this.defaultRoledTemplates[e]},t.prototype.instantiateRoleToElement=function(e){var t=this,n=s.find(this.templates,function(t){return t.role===e});if(n)return n.instantiateToElement(void 0,{});var i=new o.Template(function(){return t.defaultRoledTemplates[e]});return i.layout="table",i.instantiateToElement(void 0)},t.prototype.getFallbackTemplate=function(){var e=this;return new o.Template(function(){return e.defaultTemplate})},t.prototype.hasTemplateWithRole=function(e){return s.find(this.templates,function(t){return t.role===e})},t}(r.TemplateList);t.TableTemplate=l},472:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.instantiateToString=function(e){return'<div class="coveo-result-frame">\n <div class="coveo-result-row">\n <div class="coveo-result-cell" style="width:40px;text-align:center;vertical-align:middle;">\n <span class="CoveoIcon" data-small="true" data-with-label="false">\n </span>\n </div>\n <div class="coveo-result-cell" style="padding:0 0 3px 5px;vertical-align:middle">\n <div class="coveo-result-row">\n <div class="coveo-result-cell" style="font-size:10pt;">\n <a class="CoveoResultLink" style="display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>'},t.prototype.instantiateToElement=function(e){var t=this;return new Promise(function(n,i){var o=document.createElement("div");o.innerHTML=t.instantiateToString(e),n(o)})},t}(o.Template);t.DefaultRecommendationTemplate=r},473:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{a(i.next(e))}catch(e){r(e)}}function l(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,l)}a((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,l,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return l={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l};Object.defineProperty(t,"__esModule",{value:!0});var r=n(20),s=n(93),l=n(0),a=n(1),u=n(9),p=function(){function e(e){this.args=e}return e.prototype.buildResults=function(e,t,n){return i(this,void 0,void 0,function(){var i,r,a=this;return o(this,function(o){return i=[],r=l.map(e.results,function(e,o){return a.buildResult(e,t,n).then(function(e){return null!=e&&i.push({elem:e,idx:o}),s.ResultList.resultCurrentlyBeingRendered=null,e})}),[2,Promise.all(r).then(function(){return l.pluck(l.sortBy(i,"idx"),"elem")})]})})},e.prototype.buildResult=function(e,t,n){return i(this,void 0,void 0,function(){var i;return o(this,function(o){switch(o.label){case 0:return r.Assert.exists(e),r.QueryUtils.setStateObjectOnQueryResult(this.args.queryStateModel.get(),e),r.QueryUtils.setSearchInterfaceObjectOnQueryResult(this.args.searchInterface,e),s.ResultList.resultCurrentlyBeingRendered=e,[4,this.createHtmlElement(e,t)];case 1:return i=o.sent(),null!=i&&r.Component.bindResultToElement(i,e),n.push(e),[4,this.autoCreateComponentsInsideResult(i,e).initResult];case 2:return o.sent(),this.verifyChildren(i),[2,i]}})})},e.prototype.autoCreateComponentsInsideResult=function(e,t){return r.Assert.exists(e),r.Initialization.automaticallyCreateComponentsInsideResult(e,t)},e.prototype.createHtmlElement=function(e,t){return this.args.resultTemplate.instantiateToElement(e,{wrapInDiv:!0,checkCondition:!0,currentLayout:t,responsiveComponents:this.args.searchInterface.responsiveComponents})},e.prototype.verifyChildren=function(e){a.$$(e).find(".CoveoResultLink")||new u.Logger(e).warn('Result does not contain a "CoveoResultLink" component, please verify the result template',this.args.resultTemplate)},e}();t.TemplateToHtml=p},474:function(e,t,n){"use strict";function i(){var e,t=S.Component.getComponentRef("ResultList");if(t&&(e=t.resultCurrentlyBeingRendered),!e){var n=S.Component.getComponentRef("Quickview");n&&(e=n.resultCurrentlyBeingRendered)}return e}function o(){var e=i();if(e)return e.termsToHighlight}function r(){var e=i();if(e)return e.phrasesToHighlight}function s(e,t){return d.Utils.isNonEmptyArray(w.keys(e))||d.Utils.isNonEmptyArray(w.keys(t))}var l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(122),u=n(69),p=n(33),c=n(135),h=n(179),d=n(4),f=n(22),m=n(73),g=n(178),y=n(21),v=n(24),b=n(1),C=n(53),O=n(120),T=n(40),_=n(23),w=n(0),S=n(7),R=n(68),F=function(){function e(){}return e.exportAllHelpersGlobally=function(e){w.each(a.TemplateHelpers.getHelpers(),function(t,n){void 0==e[n]&&(e[n]=t)})},e}();t.CoreHelpers=F,a.TemplateHelpers.registerFieldHelper("javascriptEncode",function(e){return d.Utils.exists(e)?f.StringUtils.javascriptEncode(e):void 0});var H=function(e,t){var n=u.StringAndHoles.shortenString(e,t.length,"...");return d.Utils.exists(t.highlights)?u.HighlightUtils.highlightString(n.value,t.highlights,n.holes,t.cssClass||"highlight"):n.value};a.TemplateHelpers.registerTemplateHelper("shorten",function(e,t,n,i){return H(e,{length:t,highlights:n,cssClass:i})}),a.TemplateHelpers.registerTemplateHelper("shortenv2",function(e,t){return H(e,t)});var A=function(e,t){var n=u.StringAndHoles.shortenPath(e,t.length);return d.Utils.exists(t.highlights)?u.HighlightUtils.highlightString(n.value,t.highlights,n.holes,t.cssClass||"highlight"):n.value};a.TemplateHelpers.registerTemplateHelper("shortenPath",function(e,t,n,i){return A(e,{length:t,highlights:n,cssClass:i})}),a.TemplateHelpers.registerFieldHelper("shortenPathv2",function(e,t){return A(e,t)});var I=function(e,t){var n=u.StringAndHoles.shortenUri(e,t.length);return d.Utils.exists(t.highlights)?u.HighlightUtils.highlightString(n.value,t.highlights,n.holes,t.cssClass||"highlight"):n.value};a.TemplateHelpers.registerTemplateHelper("shortenUri",function(e,t,n,i){return I(e,{length:t,highlights:n,cssClass:i})}),a.TemplateHelpers.registerTemplateHelper("shortenUriv2",function(e,t){return I(e,t)});var E=function(e,t){return d.Utils.exists(e)?d.Utils.exists(t.highlights)?u.HighlightUtils.highlightString(e,t.highlights,null,t.cssClass||"highlight"):e:void 0};a.TemplateHelpers.registerTemplateHelper("highlight",function(e,t,n){return E(e,{highlights:t,cssClass:n})}),a.TemplateHelpers.registerTemplateHelper("highlightv2",function(e,t){return E(e,t)});var L=function(e,t){return d.Utils.exists(e)&&d.Utils.exists(t.termsToHighlight)&&d.Utils.exists(t.phrasesToHighlight)?s(t.termsToHighlight,t.phrasesToHighlight)?O.StreamHighlightUtils.highlightStreamText(e,t.termsToHighlight,t.phrasesToHighlight,t.opts):e:void 0};a.TemplateHelpers.registerTemplateHelper("highlightStreamText",function(e,t,n,i){return void 0===t&&(t=o()),void 0===n&&(n=r()),L(e,{termsToHighlight:t,phrasesToHighlight:n,opts:i})}),a.TemplateHelpers.registerTemplateHelper("highlightStreamTextv2",function(e,t){var n=l({termsToHighlight:o(),phrasesToHighlight:r()},t);return L(e,n)});var $=function(e,t){return d.Utils.exists(e)&&d.Utils.exists(t.termsToHighlight)&&d.Utils.exists(t.phrasesToHighlight)?s(t.termsToHighlight,t.phrasesToHighlight)?O.StreamHighlightUtils.highlightStreamHTML(e,t.termsToHighlight,t.phrasesToHighlight,t.opts):e:void 0};a.TemplateHelpers.registerTemplateHelper("highlightStreamHTML",function(e,t,n,i){return void 0===t&&(t=o()),void 0===n&&(n=r()),$(e,{termsToHighlight:t,phrasesToHighlight:n,opts:i})}),a.TemplateHelpers.registerTemplateHelper("highlightStreamHTMLv2",function(e,t){var n=l({termsToHighlight:o(),phrasesToHighlight:r()},t);return $(e,n)}),a.TemplateHelpers.registerFieldHelper("number",function(e,t){if(d.Utils.exists(e)){var n=Number(e),i=w.isString(t)?t:t&&t.format;return i?f.StringUtils.htmlEncode(_.format(n,i)):f.StringUtils.htmlEncode(n.toString())}}),a.TemplateHelpers.registerFieldHelper("date",function(e,t){return p.DateUtils.dateToString(p.DateUtils.convertFromJsonDateIfNeeded(e),t)}),a.TemplateHelpers.registerFieldHelper("time",function(e,t){return p.DateUtils.timeToString(p.DateUtils.convertFromJsonDateIfNeeded(e),t)}),a.TemplateHelpers.registerFieldHelper("dateTime",function(e,t){return p.DateUtils.dateTimeToString(p.DateUtils.convertFromJsonDateIfNeeded(e),t)}),a.TemplateHelpers.registerFieldHelper("emailDateTime",function(e,t){var n={};n.includeTimeIfThisWeek=!0;var i=w.extend(t,n);return e?p.DateUtils.dateTimeToString(p.DateUtils.convertFromJsonDateIfNeeded(e),i):void 0}),a.TemplateHelpers.registerFieldHelper("currency",function(e,t){return c.CurrencyUtils.currencyToString(e,t)}),a.TemplateHelpers.registerFieldHelper("timeSpan",function(e,t){return void 0===t&&(t={isMilliseconds:!1}),new m.TimeSpan(e,t.isMilliseconds).getHHMMSS()}),a.TemplateHelpers.registerFieldHelper("email",function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,o,r,s;if(w.isObject(t[0])?(i=t[0].companyDomain,o=t[0].me,r=t[0].lengthLimit,s=t[0].truncateName):(i=t[0],o=t[1],r=t[2],s=t[3]),void 0==r&&(r=2),void 0==s&&(s=!1),w.isString(e)){var l=g.EmailUtils.splitSemicolonSeparatedListOfEmailAddresses(e);return g.EmailUtils.emailAddressesToHyperlinks(l,i,o,r,s)}return w.isArray(e)?g.EmailUtils.emailAddressesToHyperlinks(e,i,o,r,s):void 0}),a.TemplateHelpers.registerTemplateHelper("excessEmailToggle",function(e){b.$$(e).removeClass("coveo-active"),b.$$(e).hasClass("coveo-emails-excess-collapsed")?w.each(b.$$(e).siblings(".coveo-emails-excess-expanded"),function(e){b.$$(e).addClass("coveo-active")}):b.$$(e).hasClass("coveo-hide-expanded")&&(b.$$(e.parentElement).addClass("coveo-inactive"),w.each(b.$$(e.parentElement).siblings(".coveo-emails-excess-collapsed"),function(e){b.$$(e).addClass("coveo-active")}))}),a.TemplateHelpers.registerFieldHelper("anchor",function(e,t){return h.AnchorUtils.buildAnchor(e,t)}),a.TemplateHelpers.registerFieldHelper("image",function(e,t,n){return void 0===n&&(n=i()),t&&t.srcTemplate?h.ImageUtils.buildImage(f.StringUtils.buildStringTemplateFromResult(t.srcTemplate,n),{alt:t.alt,height:t.height,width:t.width}):h.ImageUtils.buildImage(e,t)}),a.TemplateHelpers.registerTemplateHelper("thumbnail",function(e,t,n){if(void 0===e&&(e=i()),void 0===t&&(t="default"),y.QueryUtils.hasThumbnail(e))return h.ImageUtils.buildImageFromResult(e,C.SearchEndpoint.endpoints[t],n)}),a.TemplateHelpers.registerTemplateHelper("fromFileTypeToIcon",function(e,t){void 0===e&&(e=i()),void 0===t&&(t={});var n=S.Component.getComponentRef("Icon");if(n)return n.createIcon(e,t).outerHTML}),a.TemplateHelpers.registerTemplateHelper("attrEncode",function(e){return(""+e).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/'/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}),a.TemplateHelpers.registerTemplateHelper("loadTemplates",function(e,t){void 0===t&&(t=!0);var n,o="",r=i(),s=!1,l=e;return w.each(e,function(e,t,i){"default"==e&&(n=t)}),void 0!=n&&(l=w.omit(e,n)),w.each(l,function(e,n,i){s&&t||(s=s||e,o+=a.TemplateHelpers.getHelper("loadTemplate")(n,e,r))}),s||void 0==n||(o+=a.TemplateHelpers.getHelper("loadTemplate")(n,!0,r)),o});var D=["B","KB","MB","GB","TB","PB","EB"];a.TemplateHelpers.registerFieldHelper("size",function(e,t){for(var n=parseInt(e,10),i=null!=t&&null!=t.precision?t.precision:2,o=null!=t&&null!=t.base?t.base:0;n>1024&&o+1<D.length;)n/=1024,o++;return(n=Math.floor(n*Math.pow(10,i))/Math.pow(10,i))+" "+D[o]}),a.TemplateHelpers.registerFieldHelper("translatedCaption",function(e){return T.FacetUtils.tryToGetTranslatedCaption("@filetype",e)}),a.TemplateHelpers.registerTemplateHelper("loadTemplate",function(e,t,n){return void 0===t&&(t=!0),d.Utils.isNullOrUndefined(n)&&(n=i()),t?R.TemplateCache.getTemplate(e).instantiateToString(n,{checkCondition:!1}):""}),a.TemplateHelpers.registerTemplateHelper("encodeCarriageReturn",function(e){return d.Utils.isNullOrUndefined(e)?void 0:f.StringUtils.encodeCarriageReturn(e)}),a.TemplateHelpers.registerTemplateHelper("isMobileDevice",function(){return v.DeviceUtils.isMobileDevice()?v.DeviceUtils.getDeviceName():null}),a.TemplateHelpers.registerTemplateHelper("pluralHelper",function(e,t){return e>1?t.plural:t.singular})},475:function(e,t,n){"use strict";function i(e,t){var n=o.once(function(){return t()});r.$$(e).on(["contextmenu","click","mousedown","mouseup"],n);var i;r.$$(e).on("touchstart",function(){i=window.setTimeout(n,1e3)}),r.$$(e).on("touchend",function(){i&&clearTimeout(i)})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(1);t.bindAnalyticsToLink=i},510:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.buildingResultPreviewsQuery="buildingResultPreviewsQuery",e.updateResultPreviewsManagerOptions="updateResultPreviewsManagerOptions",e.populateSearchResultPreviews="populateSearchResultPreviews",e}();t.ResultPreviewsManagerEvents=i},528:function(e,t){},529:function(e,t){},530:function(e,t){},531:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(62),o=n(19),r=n(93),s=n(1),l=n(7),a=n(9),u=function(){function e(e,t,n,i){this.coveoRoot=e,this.ID=t,this.searchInterface=l.Component.get(this.coveoRoot.el,o.SearchInterface,!1),this.currentMode="large"}return e.init=function(t,n,o){if(!s.$$(t).find("."+l.Component.computeCssClassName(r.ResultList))){return void new a.Logger("ResponsiveDefaultResultTemplate").trace("No ResultLayout component found : Cannot instantiate ResponsiveResultLayout")}i.ResponsiveComponentsManager.register(e,s.$$(t),r.ResultList.ID,n,o)},e.prototype.registerComponent=function(e){return e instanceof r.ResultList&&(this.resultList=e,!0)},e.prototype.handleResizeEvent=function(){var e=this,t=this.resultList.queryController.getLastResults();this.needSmallMode()?(s.$$(this.resultList.options.resultsContainer).addClass("coveo-card-layout-container"),s.$$(this.resultList.options.resultsContainer).removeClass("coveo-list-layout-container"),"small"!=this.currentMode&&(t&&this.resultList.buildResults(t).then(function(t){e.resultList.renderResults(t)}),this.currentMode="small")):(s.$$(this.resultList.options.resultsContainer).removeClass("coveo-card-layout-container"),s.$$(this.resultList.options.resultsContainer).addClass("coveo-list-layout-container"),"large"!=this.currentMode&&(t&&this.resultList.buildResults(t).then(function(t){e.resultList.renderResults(t)}),this.currentMode="large"))},e.prototype.needSmallMode=function(){return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getSmallScreenWidth()},e}();t.ResponsiveDefaultResultTemplate=u},532:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(){function e(e,t){this.searchInterface=t,this.resultContainerElement=i.$$(e)}return e.prototype.empty=function(){this.searchInterface.detachComponentsInside(this.resultContainerElement.el),i.$$(this.resultContainerElement).empty()},e.prototype.addClass=function(e){this.resultContainerElement.addClass(e)},e.prototype.isEmpty=function(){return this.resultContainerElement.isEmpty()},e.prototype.hideChildren=function(){this.resultContainerElement.children().forEach(function(e){return i.$$(e).hide()})},e.prototype.getResultElements=function(){return this.resultContainerElement.findAll(".CoveoResult")},Object.defineProperty(e.prototype,"el",{get:function(){return this.resultContainerElement.el},enumerable:!0,configurable:!0}),e.resultCurrentlyBeingRendered=null,e}();t.ResultContainer=o},533:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(215),r=n(1),s=n(0),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getEndFragment=function(e){var t=this;return new Promise(function(n){if(!s.isEmpty(e)){if(t.resultListOptions.enableInfiniteScroll){var i=r.$$(t.resultListOptions.resultsContainer).findAll(".coveo-card-layout-padding");s.each(i,function(e){return r.$$(e).remove()})}var o=document.createDocumentFragment();s.times(3,function(){return o.appendChild(r.$$("div",{className:"coveo-card-layout coveo-card-layout-padding"}).el)}),n(o)}n(null)})},t}(o.ResultListRenderer);t.ResultListCardRenderer=l},534:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{a(i.next(e))}catch(e){r(e)}}function l(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,l)}a((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,l,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return l={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l};Object.defineProperty(t,"__esModule",{value:!0});var s=n(215),l=n(470),a=n(1),u=n(0),p=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.resultListOptions=t,i.autoCreateComponentsFn=n,i.shouldDisplayHeader=!0,i.shouldDisplayFooter=!1,i.resultListOptions.resultTemplate instanceof l.TableTemplate&&(i.resultListOptions.resultTemplate.hasTemplateWithRole("table-footer")&&(i.shouldDisplayFooter=!0),0===i.resultListOptions.resultTemplate.templates.length||i.resultListOptions.resultTemplate.hasTemplateWithRole("table-header")||(i.shouldDisplayHeader=!1)),i}return i(t,e),t.prototype.getStartFragment=function(e,t){if(!t&&!u.isEmpty(e)&&this.shouldDisplayHeader)return this.renderRoledTemplate("table-header")},t.prototype.getEndFragment=function(e,t){if(!t&&!u.isEmpty(e)&&this.shouldDisplayFooter)return this.renderRoledTemplate("table-footer")},t.prototype.renderRoledTemplate=function(e){return o(this,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:return[4,this.resultListOptions.resultTemplate.instantiateRoleToElement(e)];case 1:return t=i.sent(),a.$$(t).addClass("coveo-result-list-"+e),this.autoCreateComponentsFn(t,void 0),n=document.createDocumentFragment(),n.appendChild(t),[2,n]}})})},t}(s.ResultListRenderer);t.ResultListTableRenderer=p},535:function(e,t){},540:function(e,t,n){"use strict";function i(e){return!!e.isFieldValueCompatible}Object.defineProperty(t,"__esModule",{value:!0}),t.isFacetFieldValueCompatible=i},703:function(e,t){},71:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),s=n(8),l=n(28),a=n(10),u=n(29),p=n(69),c=n(24),h=n(181),d=n(2),f=n(21),m=n(5),g=n(4),y=n(31),v=n(1),b=n(120),C=n(22),O=n(0),T=n(3);n(535);var _=n(15),w=n(475),S=function(e){function t(n,i,r,a,u){var p=e.call(this,n,t.ID,r)||this;p.element=n,p.options=i,p.bindings=r,p.result=a,p.os=u,p.logAnalytics=O.debounce(function(){p.queryController.saveLastQuery();var e=v.$$(p.element).getAttribute("href");void 0!=e&&""!=e||(e=p.escapedClickUri),p.options.logAnalytics?p.options.logAnalytics(e):p.logDocumentOpen(e),y.Defer.flush()},1500,!0);var h=p.searchInterface.options.originalOptionsObject[t.ID]||{},d=s.ComponentOptions.initComponentOptions(n,t,o({},h,i)),f=p.componentOptionsModel.get(l.ComponentOptionsModel.attributesEnum.resultLink);return p.options=O.extend({},d,f),p.result=a||p.resolveResult(),null==p.options.openQuickview&&(p.options.openQuickview="ExchangeCrawler"==a.raw.connectortype&&c.DeviceUtils.isMobileDevice()),p.element.hasAttribute("tabindex")||p.element.setAttribute("tabindex","0"),m.Assert.exists(p.componentOptionsModel),m.Assert.exists(p.result),p.quickviewShouldBeOpened()||w.bindAnalyticsToLink(n,function(){return p.logAnalytics()}),p.renderUri(n,a),p.bindEventToOpen(),p}return i(t,e),t.prototype.renderUri=function(e,t){if(/^\s*$/.test(this.element.innerHTML)){var n=this.getDisplayedTitle();this.element.innerHTML=n;var i=this.getDisplayedTitleAsText();this.element.hasAttribute("aria-label")||this.element.setAttribute("aria-label",i),this.element.title||(this.element.title=i)}},t.prototype.openLink=function(e){void 0===e&&(e=!0),e&&this.logAnalytics(),window.location.href=this.getResultUri()},t.prototype.openLinkInNewWindow=function(e){void 0===e&&(e=!0),e&&this.logAnalytics(),window.open(this.getResultUri(),"_blank")},t.prototype.openLinkInOutlook=function(e){void 0===e&&(e=!0),this.hasOutlookField()&&(e&&this.logAnalytics(),this.openLink())},t.prototype.openLinkAsConfigured=function(e){void 0===e&&(e=!0),this.toExecuteOnOpen&&(e&&this.logAnalytics(),this.toExecuteOnOpen())},t.prototype.bindEventToOpen=function(){return this.bindOnClickIfNotUndefined()||this.bindOpenQuickviewIfNotUndefined()||this.setHrefIfNotAlready()||this.openLinkThatIsNotAnAnchor()},t.prototype.getDisplayedTitle=function(){if(this.options.titleTemplate){var e=C.StringUtils.buildStringTemplateFromResult(this.options.titleTemplate,this.result);return e?b.StreamHighlightUtils.highlightStreamText(e,this.result.termsToHighlight,this.result.phrasesToHighlight):this.escapedClickUri}return this.result.title?p.HighlightUtils.highlightString(this.result.title,this.result.titleHighlights,null,"coveo-highlight"):this.escapedClickUri},t.prototype.getDisplayedTitleAsText=function(){var e=v.$$("div");return e.setHtml(this.getDisplayedTitle()),e.text()},Object.defineProperty(t.prototype,"escapedClickUri",{get:function(){return O.escape(this.result.clickUri)},enumerable:!0,configurable:!0}),t.prototype.bindOnClickIfNotUndefined=function(){var e=this;return void 0!=this.options.onClick&&(this.toExecuteOnOpen=function(t){e.options.onClick.call(e,t,e.result)},(new _.AccessibleButton).withElement(this.element).withLabel(this.result.title).withSelectAction(function(t){return e.toExecuteOnOpen(t)}).build(),!0)},t.prototype.bindOpenQuickviewIfNotUndefined=function(){var e=this;return!!this.quickviewShouldBeOpened()&&(this.toExecuteOnOpen=function(){v.$$(e.bindings.resultElement).trigger(u.ResultListEvents.openQuickview)},v.$$(this.element).on("click",f