{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","CoveoForSitecore.Lazy.min.js","webpack:///webpack/bootstrap d3c3b9f923badc0b5d8a?903e","webpack:///external \"Coveo\"?e31f","webpack:///./src/events/ContextEvents.ts?fa68","webpack:///./src/base/Prebinding.ts?cdee","webpack:///./src/base/Context.ts?5c64","webpack:///./src/base/Initialization.ts?b460","webpack:///./src/ui/context/CoveoForSitecoreContext.ts?cb4a","webpack:///./src/events/ExpressionEvents.ts?91ac","webpack:///./src/utils/HTMLUtils.ts?ac8f","webpack:///./src/base/initialization/ElementWithContextInitializer.ts?6006","webpack:///./src/base/initialization/SitecoreExperienceEditor.ts?d809","webpack:///./src/resolvers/components/SearchInterfaceComponentInitializer.ts?0b5a","webpack:///./src/BaseModules.ts?f81b","webpack:///./src/EventsModules.ts?6c13","webpack:///./src/base/SearchEndpoint.ts?74d7","webpack:///./src/base/initialization/ContextInitializer.ts?63c0","webpack:///./src/base/initialization/ExternalComponentInitializer.ts?4333","webpack:///./src/base/initialization/SearchInterfaceInitializer.ts?4c17","webpack:///./src/base/initialization/SearchboxInitializer.ts?f82b","webpack:///./src/handlers/CoveoFieldsHandler.ts?c9f1","webpack:///./src/handlers/CoveoLabelsHandler.ts?38cb","webpack:///./src/resolvers/prebinding/PrebindHelpers.ts?74cb","webpack:///./src/resolvers/prebinding/PrebindResolver.ts?8aea","webpack:///./src/resolvers/prebinding/prebindHelpers/AnalyticsEnabled.ts?bb06","webpack:///./src/resolvers/prebinding/prebindHelpers/CoveoForSitecoreAnalyticsEndpoint.ts?98fc","webpack:///./src/resolvers/prebinding/prebindHelpers/CurrentPageName.ts?851b","webpack:///./src/resolvers/prebinding/prebindHelpers/FieldTranslator.ts?f026","webpack:///./src/resolvers/prebinding/prebindHelpers/IsAnonymous.ts?d1eb","webpack:///./src/resolvers/prebinding/prebindHelpers/MainSearchInterfaceSelector.ts?fc5f","webpack:///./src/resolvers/prebinding/prebindHelpers/SortCriteria.ts?7762","webpack:///./src/resolvers/prebinding/prebindHelpers/UnfoldDictionaryToAttributes.ts?1d0b","webpack:///./src/resolvers/sortCriteria/SortCriteriaResolver.ts?8330","webpack:///./src/utils/SearchInterfaceProvider.ts?3bfe","./src/ui/analytics/LazyCoveoForSitecoreAnalytics.ts","./src/ui/analytics/LazySendAnalyticsToSitecore.ts","./src/ui/analytics/LazyValidateAnalyticsIncluded.ts","./src/ui/context/LazyCoveoForSitecoreBindWithUserContext.ts","./src/ui/distance/LazyDistanceResources.ts","./src/ui/distance/LazyGoogleApiPositionProvider.ts","./src/ui/distance/LazyNavigatorPositionProvider.ts","./src/ui/distance/LazyStaticPositionProvider.ts","./src/ui/scopes/LazyCoveoForSitecoreExpressions.ts","./src/ui/scopes/LazyCoveoForSitecoreExternalContent.ts","./src/ui/scopes/LazyCoveoForSitecoreFilterExpression.ts","./src/ui/scopes/LazyCoveoForSitecoreLocalExpression.ts","./src/ui/scopes/LazyCoveoForSitecoreRankingExpression.ts","webpack:///external \"CoveoForSitecoreUserContext\"?0068","./src/LazyEntry.ts"],"names":["root","factory","exports","module","require","define","amd","CoveoForSitecore","Coveo","CoveoForSitecoreUserContext","this","__WEBPACK_EXTERNAL_MODULE_0__","__WEBPACK_EXTERNAL_MODULE_73__","modules","__webpack_require__","moduleId","installedModules","i","l","call","parentJsonpFunction","window","webpackJsonpCoveoForSitecore","chunkIds","moreModules","executeModules","chunkId","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","shift","14","e","onScriptComplete","script","onerror","onload","clearTimeout","timeout","chunk","Error","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","createElement","type","charset","async","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","setTimeout","appendChild","m","c","value","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","default","object","property","oe","err","console","error","s","SitecoreContextEvents","onSitecoreContextInitialization","PrebindResolver_1","Prebinding","registerPrebindHelper","helperName","handler","processor","getHelper","applyPrebindingOnElement","rootElement","hasNotAppliedPrebind","applyToElement","applyPrebindingOnChildren","_this","nodeListToArray","querySelectorAll","map","element","filter","forEach","elements","array","PrebindResolver","ContextInitializer_1","CoveoForSitecoreContext_1","coveo_search_ui_1","Context","configureContext","contextElement","options","ComponentOptions","initComponentOptions","CoveoForSitecoreContext","initializeWithContextOptions","contextOptions","contextInitializer","ContextInitializer","fieldsHandler","createFieldsHandler","externalFields","scExternalFields","prefix","scFieldPrefix","suffix","scFieldSuffix","labels","createLabelsHandler","scLabels","sourceName","scIndexSourceName","initializePrebinding","context","initializeUnderscoreFieldsHelpers","initializeUnderscoreLabelsHelpers","initializeUnderscoreContextHelpers","initializeContextElement","fields","initSearchInterface","searchInterfaceElement","searchInterfaceInitializer","initializeSearchInterfaceForExperienceEditor","initializeExperienceEditorHooksForSearchInterface","initSearchboxIfStandalone","searchBoxElement","searchPageUri","searchboxInitializer","initContextOnElement","ElementWithContextInitializer_1","ElementWithContextInitializer","initializeContextWithinElement","initExternalComponentsSection","externalComponentInitializer","initializeExternalComponentSection","initExternalComponentsSectionForExperienceEditor","initializeExperienceEditorHooksForExternalComponentsSection","ExternalComponentInitializer_1","SearchboxInitializer_1","SearchInterfaceInitializer_1","SearchInterfaceInitializer","SearchboxInitializer","ExternalComponentInitializer","__extends","extendStatics","setPrototypeOf","__proto__","Array","b","__","constructor","create","ContextEvents_1","_super","bindings","ID","bind","onRootElement","InitializationEvents","afterComponentsInitialization","QueryEvents","doneBuildingQuery","args","hasDefaultPipelineNameSet","queryBuilderUsesDefaultPipeline","queryBuilder","pipeline","scDefaultPipelineName","contextArgs","sitecoreItemUri","scItemUri","sitecorePageName","scPageName","analyticsEnabled","scAnalyticsEnabled","indexSourceName","currentLanguage","scCurrentLanguage","languageFieldName","scLanguageFieldName","latestVersionFieldName","scLatestVersionFieldName","trigger","Component","buildStringOption","scRestEndpointUri","buildJsonOption","buildBooleanOption","scIsUserAnonymous","Initialization","registerAutoCreateComponent","SitecoreExpressionEvents","onBuildingSitecoreExternalContent","onBuildingLocalSitecoreInstanceExpression","item","HTMLElement","Prebinding_1","Context_1","cloneNode","getExperienceEditorInstance","staticInstance","HTMLUtils_1","SitecoreExperienceEditor","isOverriden","onAfterFrameLoadedCallbacks","registerOnLoadRenderingFromUrl","onAfterFrameLoadedCallback","overrideSitecoreLoadRenderingFromUrl","isInBackgroundRendering","location","search","indexOf","isInBackgroundRenderingParameterName","getComponentFromLoadRenderingFromUrlCallbackData","callbackData","renderingElement","getElementById","opening","id","nextElementSibling","Sitecore","originalLoad_1","PageModes","ChromeTypes","Placeholder","_loadRenderingFromUrl","onAfterFrameLoadedCallback_1","callback","url","frameLoadedCallback","registerShowDebugInformationCallback","scCoveoShowDebugInformation","debugModeEnabled","debugInfoElements","getElementsByClassName","classList","remove","add","ChromeManager","resetChromes","getInitializerInstance","initializer","SearchInterfaceComponentInitializer","loadComponentsForSearchInterface","searchInterface","newComponent","automaticallyCreateComponentsInside","getBindings","initResult","then","queryController","executeQuery","ignoreWarningSearchEvent","loadComponentsWithSearchInterfaceInitialization","$$","on","beforeInitialization","searchInterfaceComponent","SearchInterface","pushElementInSearchInterfaceExternalComponents","externalComponents","SearchEndpoint_1","SearchEndpoint","ExpressionEvents_1","configureSitecoreEndpoint","t","endpoints","createNewEndpoint","restUri","restEndpointUri","queryStringArguments","itemUri","siteName","CoveoFieldsHandler_1","CoveoLabelsHandler_1","PrebindHelpers_1","JSON","parse","CoveoFieldsHandler","CoveoLabelsHandler","PrebindHelpers","getAllPrebindHelpers","helper","getPrebind","TemplateHelpers","registerTemplateHelper","fieldName","raw","toCoveo","labelKey","translate","SearchInterfaceComponentInitializer_1","SitecoreExperienceEditor_1","experienceEditor","searchInterfaceComponentInitializer","externalComponentsSection","findSearchInterfaceForSection","component","contains","searchInterfaceId","dataset","warn","Initialization_1","init","SearchInterfaceProvider_1","searchInterfacesProvider","SearchInterfacesProvider","searchboxElement","searchInterfaces","getSearchInterfacesInPage","waitForSearchInterfacesInitialization","searchboxElementIsNotInitialized","initSearchbox","parentElement","Searchbox","all","getAllSearchInterfacesAfterComponentInitialization","waitForSearchInterfaceInitialization","loadExternalFields","isValidFieldName","fieldWithoutDelimiter","stripCoveoFieldDelimiter","translatedFieldWithoutDelimiter","translateFieldName","startsWithAt","addCoveoFieldDelimiter","fieldNameWithDelimiter","coveoFieldDelimiter","toLowerCase","externalField","shouldEscape","isExternalFieldConfig","field","substr","shouldReplaceSpecialCharacters","replaceSpecialCharacters","shouldDecorate","split","replaceSpecialCharacter","join","character","match","nonSpecialCharacters","escapeSpecialCharacter","charCodeAt","some","obj","key","AnalyticsEnabled_1","CoveoForSitecoreAnalyticsEndpoint_1","CurrentPageName_1","FieldTranslator_1","IsAnonymous_1","MainSearchInterfaceSelector_1","SortCriteria_1","UnfoldDictionaryToAttributes_1","AnalyticsEnabledPrebind","CoveoForSitecoreAnalyticsEndpointPrebind","CurrentPageNamePrebind","FieldTranslatorPrebind","IsAnonymousPrebind","MainSearchInterfaceSelectorPrebind","SortCriteriaPrebind","UnfoldDictionaryToAttributesPrebind","prebindAppliedValue","helpers","hasHelper","attributes","getPrebindingAttributesForElement","applyPrebindToElement","exception","getAllPrebindingAttributesNames","methodName","attribute","lowerCaseFirstCharacter","removePrebindPrefix","attributeValue","method","keys","stringStartsWithPrebindingString","filterAndWarnNonExistingHelperName","lastIndexOf","prebindString","hasHelperWithName","attributeName","substring","charAt","slice","prebind","currentValue","pageName","isAnonymous","resolvers","ResolveIfSelector","ResolveIfSearchInterfaceIdInPage","ResolveParentSearchInterfaceId","UseMainSearchInterfaceSelectorAsIs","mainSearchInterfaceId","getFirstValidResolver","getValue","resolver","message","canResolve","isMainSearchInterfaceDefined","isIdSelectorValid","selector","querySelector","foundId","tryFindParentSearchInterfaceFromElement","parentSearchInterface","findParentWithClass","className","parent","isStartingWithSelectorCharacter","SortCriteriaResolver_1","criteriaResolver","SortCriteriaResolver","sortCriteriaRawValue","sortCriteria","sortType","sortDirection","direction","toggleDirection","scEnableDirectionToggle","resolveRelevancyCriteria","resolveDateCriteria","sortField","resolveFieldCriteria","rawDictionary","parsedDictionary","translatedField","dataKey","toUpperCase","fieldCriteria","enableToggle","getFieldCriteria","getFieldWithDirection","getInvertedDirection","componentsIds","searchInterfacesSelector","getSearchInterfacesSelectorFromComponentIds","componentIds","componentId","computeSelectorForType","lazyCoveoForSitecoreAnalytics","LazyInitialization","registerLazyComponent","loaded","CoveoForSitecoreAnalytics","catch","buildErrorCallback","lazyCoveoSendAnalyticsToSitecore","SendAnalyticsToSitecore","lazyValidateAnalyticsIncluded","ValidateAnalyticsIncluded","lazyCoveoForSitecoreBindWithUserContext","CoveoForSitecoreBindWithUserContext","lazyCoveoDistanceResources","DistanceResources","lazyCoveoGoogleApiPositionProvider","GoogleApiPositionProvider","lazyCoveoNavigatorPositionProvider","NavigatorPositionProvider","lazyCoveoStaticPositionProvider","StaticPositionProvider","lazyCoveoForSitecoreExpressions","CoveoForSitecoreExpressions","lazyCoveoForSitecoreExternalContent","CoveoForSitecoreExternalContent","lazyCoveoForSitecoreFilterExpression","CoveoForSitecoreFilterExpression","lazyCoveoForSitecoreLocalExpression","CoveoForSitecoreLocalExpression","lazyCoveoForSitecoreRankingExpression","CoveoForSitecoreRankingExpression","__export","PublicPathUtils","getDynamicPublicPath"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,SAAAA,QAAA,gCACA,kBAAAC,gBAAAC,IACAD,QAAA,uCAAAJ,GACA,gBAAAC,SACAA,QAAAK,iBAAAN,EAAAG,QAAA,SAAAA,QAAA,gCAEAJ,EAAAO,iBAAAN,EAAAD,EAAAQ,MAAAR,EAAAS,8BACCC,KAAA,SAAAC,EAAAC,GACD,MCAgB,UAAUC,GCwB1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAb,OAGA,IAAAC,GAAAa,EAAAD,IACAE,EAAAF,EACAG,KACAhB,WAUA,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,EAAAQ,wBACApH,EAAA,IACAkd,gCACAld,EAAA,IACAyd,mCACAzd,EAAA,IACA2d,gCACA3d,EAAA,IACA6d,0CACA7d,EAAA,IACAue,kCACAve,EAAA,IACA+e,wCACA/e,EAAA,IACAye,sCACAze,EAAA,IACA2e,uCACA3e,EAAA,IACA6e,sCACA7e,EAAA,IACA+d,6BACA/d,EAAA,IACAie,qCACAje,EAAA,IACAme,qCACAne,EAAA,IACAqe,kCACAY,EAAAjf,EAAA,KACAif,EAAAjf,EAAA,KACAif,EAAAjf,EAAA","file":"CoveoForSitecore.Lazy.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"Coveo\"), require(\"CoveoForSitecoreUserContext\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"Coveo\", \"CoveoForSitecoreUserContext\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"CoveoForSitecore\"] = factory(require(\"Coveo\"), require(\"CoveoForSitecoreUserContext\"));\n\telse\n\t\troot[\"CoveoForSitecore\"] = factory(root[\"Coveo\"], root[\"CoveoForSitecoreUserContext\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_73__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"Coveo\"), require(\"CoveoForSitecoreUserContext\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"Coveo\", \"CoveoForSitecoreUserContext\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"CoveoForSitecore\"] = factory(require(\"Coveo\"), require(\"CoveoForSitecoreUserContext\"));\n\telse\n\t\troot[\"CoveoForSitecore\"] = factory(root[\"Coveo\"], root[\"CoveoForSitecoreUserContext\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_73__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// install a JSONP callback for chunk loading\n/******/ \tvar parentJsonpFunction = window[\"webpackJsonpCoveoForSitecore\"];\n/******/ \twindow[\"webpackJsonpCoveoForSitecore\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n/******/ \t\t// add \"moreModules\" to the modules object,\n/******/ \t\t// then flag all \"chunkIds\" as loaded and fire callback\n/******/ \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n/******/ \t\tfor(;i < chunkIds.length; i++) {\n/******/ \t\t\tchunkId = chunkIds[i];\n/******/ \t\t\tif(installedChunks[chunkId]) {\n/******/ \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n/******/ \t\t\t}\n/******/ \t\t\tinstalledChunks[chunkId] = 0;\n/******/ \t\t}\n/******/ \t\tfor(moduleId in moreModules) {\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n/******/ \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n/******/ \t\twhile(resolves.length) {\n/******/ \t\t\tresolves.shift()();\n/******/ \t\t}\n/******/\n/******/ \t};\n/******/\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// objects to store loaded and loading chunks\n/******/ \tvar installedChunks = {\n/******/ \t\t14: 0\n/******/ \t};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/ \t// This file contains only the entry chunk.\n/******/ \t// The chunk loading function for additional chunks\n/******/ \t__webpack_require__.e = function requireEnsure(chunkId) {\n/******/ \t\tvar installedChunkData = installedChunks[chunkId];\n/******/ \t\tif(installedChunkData === 0) {\n/******/ \t\t\treturn new Promise(function(resolve) { resolve(); });\n/******/ \t\t}\n/******/\n/******/ \t\t// a Promise means \"currently loading\".\n/******/ \t\tif(installedChunkData) {\n/******/ \t\t\treturn installedChunkData[2];\n/******/ \t\t}\n/******/\n/******/ \t\t// setup Promise in chunk cache\n/******/ \t\tvar promise = new Promise(function(resolve, reject) {\n/******/ \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n/******/ \t\t});\n/******/ \t\tinstalledChunkData[2] = promise;\n/******/\n/******/ \t\t// start chunk loading\n/******/ \t\tvar head = document.getElementsByTagName('head')[0];\n/******/ \t\tvar script = document.createElement('script');\n/******/ \t\tscript.type = 'text/javascript';\n/******/ \t\tscript.charset = 'utf-8';\n/******/ \t\tscript.async = true;\n/******/ \t\tscript.timeout = 120000;\n/******/\n/******/ \t\tif (__webpack_require__.nc) {\n/******/ \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n/******/ \t\t}\n/******/ \t\tscript.src = __webpack_require__.p + \"\" + ({\"0\":\"CoveoForSitecoreRankingExpression\",\"1\":\"CoveoForSitecoreFilterExpression\",\"2\":\"DistanceResources\",\"3\":\"GoogleApiPositionProvider\",\"4\":\"CoveoForSitecoreExternalContent\",\"5\":\"SendAnalyticsToSitecore\",\"6\":\"StaticPositionProvider\",\"7\":\"NavigatorPositionProvider\",\"8\":\"CoveoForSitecoreLocalExpression\",\"9\":\"CoveoForSitecoreExpressions\",\"10\":\"CoveoForSitecoreBindWithUserContext\",\"11\":\"ValidateAnalyticsIncluded\",\"12\":\"CoveoForSitecoreAnalytics\"}[chunkId]||chunkId) + \".min.js\";\n/******/ \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n/******/ \t\tscript.onerror = script.onload = onScriptComplete;\n/******/ \t\tfunction onScriptComplete() {\n/******/ \t\t\t// avoid mem leaks in IE.\n/******/ \t\t\tscript.onerror = script.onload = null;\n/******/ \t\t\tclearTimeout(timeout);\n/******/ \t\t\tvar chunk = installedChunks[chunkId];\n/******/ \t\t\tif(chunk !== 0) {\n/******/ \t\t\t\tif(chunk) {\n/******/ \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n/******/ \t\t\t\t}\n/******/ \t\t\t\tinstalledChunks[chunkId] = undefined;\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t\thead.appendChild(script);\n/******/\n/******/ \t\treturn promise;\n/******/ \t};\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"js/\";\n/******/\n/******/ \t// on error function for async loading\n/******/ \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 75);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SitecoreContextEvents = (function () {\n function SitecoreContextEvents() {\n }\n return SitecoreContextEvents;\n}());\nSitecoreContextEvents.onSitecoreContextInitialization = \"onSitecoreContextInitialization\";\nexports.SitecoreContextEvents = SitecoreContextEvents;\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar PrebindResolver_1 = __webpack_require__(36);\nvar Prebinding = (function () {\n function Prebinding() {\n }\n Prebinding.registerPrebindHelper = function (helperName, handler) {\n this.processor.registerPrebindHelper(helperName, handler);\n };\n Prebinding.getHelper = function (helperName) {\n return this.processor.getHelper(helperName);\n };\n Prebinding.applyPrebindingOnElement = function (rootElement) {\n if (this.processor.hasNotAppliedPrebind(rootElement)) {\n this.processor.applyToElement(rootElement);\n }\n };\n Prebinding.applyPrebindingOnChildren = function (rootElement) {\n var _this = this;\n this.nodeListToArray(rootElement.querySelectorAll(\"*\"))\n .map(function (element) { return element; })\n .filter(function (element) { return _this.processor.hasNotAppliedPrebind(element); })\n .forEach(function (element) { return _this.processor.applyToElement(element); });\n };\n Prebinding.nodeListToArray = function (elements) {\n var array = [];\n for (var i = 0, length = elements.length; i < length; i++) {\n array.push(elements[i]);\n }\n return array;\n };\n return Prebinding;\n}());\nPrebinding.processor = new PrebindResolver_1.PrebindResolver();\nexports.Prebinding = Prebinding;\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ContextInitializer_1 = __webpack_require__(29);\nvar CoveoForSitecoreContext_1 = __webpack_require__(5);\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar Context = (function () {\n function Context() {\n }\n Context.configureContext = function (contextElement) {\n if (typeof (contextElement) === \"undefined\" || contextElement === null) {\n throw Error(\"You must execute `configureContext` with an HTML element.\");\n }\n var options = coveo_search_ui_1.ComponentOptions.initComponentOptions(contextElement, CoveoForSitecoreContext_1.CoveoForSitecoreContext);\n this.initializeWithContextOptions(contextElement, options);\n };\n Context.initializeWithContextOptions = function (contextElement, contextOptions) {\n var contextInitializer = new ContextInitializer_1.ContextInitializer();\n var fieldsHandler = contextInitializer.createFieldsHandler({\n externalFields: contextOptions.scExternalFields,\n prefix: contextOptions.scFieldPrefix,\n suffix: contextOptions.scFieldSuffix\n });\n var labels = contextInitializer.createLabelsHandler({\n labels: contextOptions.scLabels\n });\n var sourceName = contextOptions.scIndexSourceName;\n contextInitializer.initializePrebinding({\n fieldsHandler: fieldsHandler,\n context: contextOptions\n });\n contextInitializer.initializeUnderscoreFieldsHelpers(fieldsHandler);\n contextInitializer.initializeUnderscoreLabelsHelpers(labels);\n contextInitializer.initializeUnderscoreContextHelpers(sourceName);\n contextInitializer.initializeContextElement(contextElement);\n this.fields = fieldsHandler;\n this.labels = labels;\n this.element = contextElement;\n };\n return Context;\n}());\nexports.Context = Context;\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ExternalComponentInitializer_1 = __webpack_require__(30);\nvar SearchboxInitializer_1 = __webpack_require__(32);\nvar SearchInterfaceInitializer_1 = __webpack_require__(31);\nvar ElementWithContextInitializer_1 = __webpack_require__(8);\nexports.searchInterfaceInitializer = new SearchInterfaceInitializer_1.SearchInterfaceInitializer();\nexports.searchboxInitializer = new SearchboxInitializer_1.SearchboxInitializer();\nexports.externalComponentInitializer = new ExternalComponentInitializer_1.ExternalComponentInitializer();\nfunction initSearchInterface(searchInterfaceElement) {\n return exports.searchInterfaceInitializer.initSearchInterface(searchInterfaceElement);\n}\nexports.initSearchInterface = initSearchInterface;\nfunction initializeSearchInterfaceForExperienceEditor(searchInterfaceElement) {\n exports.searchInterfaceInitializer.initializeExperienceEditorHooksForSearchInterface(searchInterfaceElement);\n return initSearchInterface(searchInterfaceElement);\n}\nexports.initializeSearchInterfaceForExperienceEditor = initializeSearchInterfaceForExperienceEditor;\nfunction initSearchboxIfStandalone(searchBoxElement, searchPageUri, options) {\n return exports.searchboxInitializer.initSearchboxIfStandalone(searchBoxElement, searchPageUri, options);\n}\nexports.initSearchboxIfStandalone = initSearchboxIfStandalone;\nfunction initContextOnElement(element) {\n ElementWithContextInitializer_1.ElementWithContextInitializer.initializeContextWithinElement(element);\n}\nexports.initContextOnElement = initContextOnElement;\nfunction initExternalComponentsSection(element) {\n exports.externalComponentInitializer.initializeExternalComponentSection(element);\n}\nexports.initExternalComponentsSection = initExternalComponentsSection;\nfunction initExternalComponentsSectionForExperienceEditor(element) {\n exports.externalComponentInitializer.initializeExperienceEditorHooksForExternalComponentsSection(element);\n initExternalComponentsSection(element);\n}\nexports.initExternalComponentsSectionForExperienceEditor = initExternalComponentsSectionForExperienceEditor;\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar ContextEvents_1 = __webpack_require__(1);\nvar CoveoForSitecoreContext = (function (_super) {\n __extends(CoveoForSitecoreContext, _super);\n function CoveoForSitecoreContext(element, options, bindings) {\n var _this = _super.call(this, element, CoveoForSitecoreContext.ID, bindings) || this;\n _this.element = element;\n _this.options = options;\n _this.bindings = bindings;\n _this.options = coveo_search_ui_1.ComponentOptions.initComponentOptions(element, CoveoForSitecoreContext, options);\n _this.bind.onRootElement(coveo_search_ui_1.InitializationEvents.afterComponentsInitialization, _this.afterComponentsInitialization);\n _this.bind.onRootElement(coveo_search_ui_1.QueryEvents.doneBuildingQuery, _this.doneBuildingQuery);\n return _this;\n }\n CoveoForSitecoreContext.prototype.doneBuildingQuery = function (args) {\n if (this.hasDefaultPipelineNameSet() && this.queryBuilderUsesDefaultPipeline(args.queryBuilder)) {\n args.queryBuilder.pipeline = this.options.scDefaultPipelineName;\n }\n };\n CoveoForSitecoreContext.prototype.hasDefaultPipelineNameSet = function () {\n return this.options.scDefaultPipelineName !== \"\";\n };\n CoveoForSitecoreContext.prototype.queryBuilderUsesDefaultPipeline = function (queryBuilder) {\n return typeof (queryBuilder.pipeline) === \"undefined\";\n };\n CoveoForSitecoreContext.prototype.afterComponentsInitialization = function () {\n var contextArgs = {\n sitecoreItemUri: this.options.scItemUri,\n sitecorePageName: this.options.scPageName,\n analyticsEnabled: this.options.scAnalyticsEnabled,\n indexSourceName: this.options.scIndexSourceName,\n currentLanguage: this.options.scCurrentLanguage,\n languageFieldName: this.options.scLanguageFieldName,\n latestVersionFieldName: this.options.scLatestVersionFieldName\n };\n this.bind.trigger(this.element, ContextEvents_1.SitecoreContextEvents.onSitecoreContextInitialization, contextArgs);\n };\n return CoveoForSitecoreContext;\n}(coveo_search_ui_1.Component));\nCoveoForSitecoreContext.ID = \"ForSitecoreContext\";\nCoveoForSitecoreContext.options = {\n scItemUri: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scLanguageFieldName: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scLatestVersionFieldName: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scCurrentLanguage: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scRestEndpointUri: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scLabels: coveo_search_ui_1.ComponentOptions.buildJsonOption(),\n scPageName: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scDefaultPipelineName: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scAnalyticsEnabled: coveo_search_ui_1.ComponentOptions.buildBooleanOption(),\n scIsUserAnonymous: coveo_search_ui_1.ComponentOptions.buildBooleanOption(),\n scFieldPrefix: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scFieldSuffix: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scExternalFields: coveo_search_ui_1.ComponentOptions.buildJsonOption(),\n scIndexSourceName: coveo_search_ui_1.ComponentOptions.buildStringOption()\n};\nexports.CoveoForSitecoreContext = CoveoForSitecoreContext;\ncoveo_search_ui_1.Initialization.registerAutoCreateComponent(CoveoForSitecoreContext);\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SitecoreExpressionEvents = (function () {\n function SitecoreExpressionEvents() {\n }\n return SitecoreExpressionEvents;\n}());\nSitecoreExpressionEvents.onBuildingSitecoreExternalContent = \"onBuildingSitecoreExternalContent\";\nSitecoreExpressionEvents.onBuildingLocalSitecoreInstanceExpression = \"onBuildingLocalSitecoreInstanceExpression\";\nexports.SitecoreExpressionEvents = SitecoreExpressionEvents;\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction nodeListToArray(elements) {\n var array = [];\n for (var i = 0, length = elements.length; i < length; i++) {\n var element = elements.item(i);\n if (element instanceof HTMLElement) {\n array.push(element);\n }\n }\n return array;\n}\nexports.nodeListToArray = nodeListToArray;\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Prebinding_1 = __webpack_require__(2);\nvar Context_1 = __webpack_require__(3);\nvar ElementWithContextInitializer = (function () {\n function ElementWithContextInitializer() {\n }\n ElementWithContextInitializer.initializeContextWithinElement = function (element) {\n if (!!Context_1.Context.element) {\n element.appendChild(Context_1.Context.element.cloneNode(true));\n }\n Prebinding_1.Prebinding.applyPrebindingOnElement(element);\n Prebinding_1.Prebinding.applyPrebindingOnChildren(element);\n };\n return ElementWithContextInitializer;\n}());\nexports.ElementWithContextInitializer = ElementWithContextInitializer;\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar HTMLUtils_1 = __webpack_require__(7);\nvar SitecoreExperienceEditor = (function () {\n function SitecoreExperienceEditor() {\n this.isOverriden = false;\n this.onAfterFrameLoadedCallbacks = [];\n }\n SitecoreExperienceEditor.prototype.registerOnLoadRenderingFromUrl = function (onAfterFrameLoadedCallback) {\n this.overrideSitecoreLoadRenderingFromUrl();\n this.onAfterFrameLoadedCallbacks.push(onAfterFrameLoadedCallback);\n };\n SitecoreExperienceEditor.prototype.isInBackgroundRendering = function () {\n return window.location.search.indexOf(SitecoreExperienceEditor.isInBackgroundRenderingParameterName) !== -1;\n };\n SitecoreExperienceEditor.prototype.getComponentFromLoadRenderingFromUrlCallbackData = function (callbackData) {\n if (!callbackData.renderingElement) {\n console.error(\"Could not find the rendering element from Sitecore callback data.\", callbackData);\n }\n var chromeRendering = document.getElementById(callbackData.renderingElement.opening[0].id);\n return chromeRendering.nextElementSibling;\n };\n SitecoreExperienceEditor.prototype.overrideSitecoreLoadRenderingFromUrl = function () {\n var _this = this;\n if (!this.isOverriden && typeof (Sitecore) !== \"undefined\") {\n var originalLoad_1 = Sitecore.PageModes.ChromeTypes.Placeholder.prototype._loadRenderingFromUrl;\n var onAfterFrameLoadedCallback_1 = function (callbackData) {\n _this.onAfterFrameLoadedCallbacks.forEach(function (callback) { return callback(callbackData); });\n };\n Sitecore.PageModes.ChromeTypes.Placeholder.prototype._loadRenderingFromUrl = function (url, frameLoadedCallback) {\n originalLoad_1.call(this, url + \"&\" + SitecoreExperienceEditor.isInBackgroundRenderingParameterName + \"=1\", function (callbackData) {\n frameLoadedCallback.call(this, callbackData);\n onAfterFrameLoadedCallback_1(callbackData);\n });\n };\n this.isOverriden = true;\n }\n };\n SitecoreExperienceEditor.prototype.registerShowDebugInformationCallback = function () {\n if (!window[\"scCoveoShowDebugInformation\"]) {\n window[\"scCoveoShowDebugInformation\"] = function (debugModeEnabled) {\n var debugInfoElements = HTMLUtils_1.nodeListToArray(document.getElementsByClassName(\"coveo-debug-information\"));\n if (debugModeEnabled) {\n debugInfoElements.forEach(function (element) { return element.classList.remove(\"coveo-debug-hidden\"); });\n }\n else {\n debugInfoElements.forEach(function (element) { return element.classList.add(\"coveo-debug-hidden\"); });\n }\n // Chromes are not updated correctly until an event refreshes them. This forces the update.\n Sitecore.PageModes.ChromeManager.resetChromes();\n };\n }\n };\n return SitecoreExperienceEditor;\n}());\nSitecoreExperienceEditor.isInBackgroundRenderingParameterName = \"isInBackgroundRendering\";\nexports.SitecoreExperienceEditor = SitecoreExperienceEditor;\nvar staticInstance = new SitecoreExperienceEditor();\nfunction getExperienceEditorInstance() {\n return staticInstance;\n}\nexports.getExperienceEditorInstance = getExperienceEditorInstance;\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Prebinding_1 = __webpack_require__(2);\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar externalComponentsOption = \"externalComponents\";\nvar SearchInterfaceComponentInitializer = (function () {\n function SearchInterfaceComponentInitializer() {\n }\n SearchInterfaceComponentInitializer.prototype.loadComponentsForSearchInterface = function (searchInterface, newComponent) {\n Prebinding_1.Prebinding.applyPrebindingOnElement(newComponent);\n Prebinding_1.Prebinding.applyPrebindingOnChildren(newComponent);\n var result = Coveo.Initialization.automaticallyCreateComponentsInside(newComponent, {\n bindings: searchInterface.getBindings(),\n options: {}\n });\n return result.initResult.then(function () {\n searchInterface.queryController.executeQuery({\n ignoreWarningSearchEvent: true\n });\n });\n };\n SearchInterfaceComponentInitializer.prototype.loadComponentsWithSearchInterfaceInitialization = function (searchInterfaceElement, element) {\n var _this = this;\n coveo_search_ui_1.$$(searchInterfaceElement).on(coveo_search_ui_1.InitializationEvents.beforeInitialization, function () {\n var searchInterfaceComponent = coveo_search_ui_1.get(searchInterfaceElement, coveo_search_ui_1.SearchInterface);\n _this.pushElementInSearchInterfaceExternalComponents(searchInterfaceComponent, element);\n });\n };\n SearchInterfaceComponentInitializer.prototype.pushElementInSearchInterfaceExternalComponents = function (searchInterfaceComponent, element) {\n if (!searchInterfaceComponent.options[externalComponentsOption]) {\n searchInterfaceComponent.options[externalComponentsOption] = [];\n }\n searchInterfaceComponent.options[externalComponentsOption].push(element);\n };\n return SearchInterfaceComponentInitializer;\n}());\nexports.SearchInterfaceComponentInitializer = SearchInterfaceComponentInitializer;\nvar initializer = new SearchInterfaceComponentInitializer();\nfunction getInitializerInstance() {\n return initializer;\n}\nexports.getInitializerInstance = getInitializerInstance;\n\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Context_1 = __webpack_require__(3);\nexports.Context = Context_1.Context;\nvar Prebinding_1 = __webpack_require__(2);\nexports.Prebinding = Prebinding_1.Prebinding;\nvar SearchEndpoint_1 = __webpack_require__(28);\nexports.SearchEndpoint = SearchEndpoint_1.SearchEndpoint;\n\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ContextEvents_1 = __webpack_require__(1);\nexports.SitecoreContextEvents = ContextEvents_1.SitecoreContextEvents;\nvar ExpressionEvents_1 = __webpack_require__(6);\nexports.SitecoreExpressionEvents = ExpressionEvents_1.SitecoreExpressionEvents;\n\n\n/***/ }),\n/* 13 */,\n/* 14 */,\n/* 15 */,\n/* 16 */,\n/* 17 */,\n/* 18 */,\n/* 19 */,\n/* 20 */,\n/* 21 */,\n/* 22 */,\n/* 23 */,\n/* 24 */,\n/* 25 */,\n/* 26 */,\n/* 27 */,\n/* 28 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar SearchEndpoint = (function () {\n function SearchEndpoint() {\n }\n SearchEndpoint.configureSitecoreEndpoint = function (options) {\n if (typeof (options) === \"undefined\") {\n throw Error(\"You must define endpoint options when calling 'configureSitecoreEndpoint'.\");\n }\n coveo_search_ui_1.SearchEndpoint.endpoints[\"default\"] = SearchEndpoint.createNewEndpoint(options);\n };\n SearchEndpoint.createNewEndpoint = function (options) {\n return new coveo_search_ui_1.SearchEndpoint({\n restUri: options.restEndpointUri || \"/coveo/rest\",\n queryStringArguments: {\n \"sitecoreItemUri\": options.itemUri,\n \"siteName\": options.siteName\n }\n });\n };\n return SearchEndpoint;\n}());\nexports.SearchEndpoint = SearchEndpoint;\n\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CoveoFieldsHandler_1 = __webpack_require__(33);\nvar CoveoLabelsHandler_1 = __webpack_require__(34);\nvar Prebinding_1 = __webpack_require__(2);\nvar PrebindHelpers_1 = __webpack_require__(35);\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar ContextInitializer = (function () {\n function ContextInitializer() {\n }\n ContextInitializer.prototype.createFieldsHandler = function (options) {\n var externalFields = typeof (options.externalFields) !== \"undefined\" ? JSON.parse(options.externalFields) : [];\n return new CoveoFieldsHandler_1.CoveoFieldsHandler(externalFields, options.prefix, options.suffix);\n };\n ContextInitializer.prototype.createLabelsHandler = function (options) {\n var labels = typeof (options.labels) !== \"undefined\" ? JSON.parse(options.labels) : {};\n return new CoveoLabelsHandler_1.CoveoLabelsHandler(labels);\n };\n ContextInitializer.prototype.initializePrebinding = function (args) {\n PrebindHelpers_1.PrebindHelpers.getAllPrebindHelpers().forEach(function (helper) {\n Prebinding_1.Prebinding.registerPrebindHelper(helper.name, helper.getPrebind(args));\n });\n };\n ContextInitializer.prototype.initializeUnderscoreFieldsHelpers = function (fieldsHandler) {\n coveo_search_ui_1.TemplateHelpers.registerTemplateHelper(\"coveoFieldValue\", function (fieldName) {\n return this.raw[fieldsHandler.toCoveo(fieldName)];\n });\n coveo_search_ui_1.TemplateHelpers.registerTemplateHelper(\"coveoFieldName\", function (fieldName) {\n return fieldsHandler.toCoveo(fieldName);\n });\n };\n ContextInitializer.prototype.initializeUnderscoreLabelsHelpers = function (labels) {\n coveo_search_ui_1.TemplateHelpers.registerTemplateHelper(\"translateLabel\", function (labelKey) {\n return labels.translate(labelKey);\n });\n };\n ContextInitializer.prototype.initializeUnderscoreContextHelpers = function (sourceName) {\n coveo_search_ui_1.TemplateHelpers.registerTemplateHelper(\"currentSourceName\", function () {\n return sourceName;\n });\n };\n ContextInitializer.prototype.initializeContextElement = function (contextElement) {\n Prebinding_1.Prebinding.applyPrebindingOnElement(contextElement);\n };\n return ContextInitializer;\n}());\nexports.ContextInitializer = ContextInitializer;\n\n\n/***/ }),\n/* 30 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SearchInterfaceComponentInitializer_1 = __webpack_require__(10);\nvar SitecoreExperienceEditor_1 = __webpack_require__(9);\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar ExternalComponentInitializer = (function () {\n function ExternalComponentInitializer(experienceEditor, searchInterfaceComponentInitializer) {\n if (experienceEditor === void 0) { experienceEditor = SitecoreExperienceEditor_1.getExperienceEditorInstance(); }\n if (searchInterfaceComponentInitializer === void 0) { searchInterfaceComponentInitializer = SearchInterfaceComponentInitializer_1.getInitializerInstance(); }\n this.experienceEditor = experienceEditor;\n this.searchInterfaceComponentInitializer = searchInterfaceComponentInitializer;\n }\n ExternalComponentInitializer.prototype.initializeExternalComponentSection = function (externalComponentsSection) {\n var searchInterface = this.findSearchInterfaceForSection(externalComponentsSection);\n if (!!searchInterface) {\n this.searchInterfaceComponentInitializer.loadComponentsWithSearchInterfaceInitialization(searchInterface, externalComponentsSection);\n }\n };\n ExternalComponentInitializer.prototype.initializeExperienceEditorHooksForExternalComponentsSection = function (externalComponentsSection) {\n var _this = this;\n var searchInterface = this.findSearchInterfaceForSection(externalComponentsSection);\n if (!!searchInterface) {\n this.experienceEditor.registerOnLoadRenderingFromUrl(function (callbackData) {\n if (!callbackData.error) {\n var component = _this.experienceEditor.getComponentFromLoadRenderingFromUrlCallbackData(callbackData);\n if (externalComponentsSection.contains(component)) {\n _this.searchInterfaceComponentInitializer.loadComponentsForSearchInterface(coveo_search_ui_1.get(searchInterface, coveo_search_ui_1.SearchInterface), component);\n }\n }\n });\n }\n };\n ExternalComponentInitializer.prototype.findSearchInterfaceForSection = function (externalComponentsSection) {\n var searchInterfaceId = externalComponentsSection.dataset.searchInterfaceId;\n var searchInterfaceElement = document.getElementById(searchInterfaceId);\n if (!!searchInterfaceElement) {\n return searchInterfaceElement;\n }\n else {\n console.warn(\"Could not find the search interface element with the following ID: \" + searchInterfaceId + \". Validate \\\"data-search-interface-id\\\" on the external components section element.\", externalComponentsSection);\n }\n };\n return ExternalComponentInitializer;\n}());\nexports.ExternalComponentInitializer = ExternalComponentInitializer;\n\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Initialization_1 = __webpack_require__(4);\nvar SearchInterfaceComponentInitializer_1 = __webpack_require__(10);\nvar SitecoreExperienceEditor_1 = __webpack_require__(9);\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar SearchInterfaceInitializer = (function () {\n function SearchInterfaceInitializer(experienceEditor, searchInterfaceComponentInitializer) {\n if (experienceEditor === void 0) { experienceEditor = SitecoreExperienceEditor_1.getExperienceEditorInstance(); }\n if (searchInterfaceComponentInitializer === void 0) { searchInterfaceComponentInitializer = SearchInterfaceComponentInitializer_1.getInitializerInstance(); }\n this.experienceEditor = experienceEditor;\n this.searchInterfaceComponentInitializer = searchInterfaceComponentInitializer;\n }\n SearchInterfaceInitializer.prototype.initSearchInterface = function (searchInterface) {\n if (!this.experienceEditor.isInBackgroundRendering()) {\n this.experienceEditor.registerShowDebugInformationCallback();\n Initialization_1.initContextOnElement(searchInterface);\n return coveo_search_ui_1.init(searchInterface);\n }\n };\n SearchInterfaceInitializer.prototype.initializeExperienceEditorHooksForSearchInterface = function (searchInterface) {\n var _this = this;\n this.experienceEditor.registerOnLoadRenderingFromUrl(function (callbackData) {\n if (!callbackData.error) {\n var component = _this.experienceEditor.getComponentFromLoadRenderingFromUrlCallbackData(callbackData);\n // Since multiple search interfaces can register event handlers, this ensures that the component is initializing for the correct search interface.\n if (searchInterface.contains(component)) {\n var searchInterfaceComponent = Coveo.get(searchInterface, Coveo.SearchInterface);\n _this.searchInterfaceComponentInitializer.loadComponentsForSearchInterface(searchInterfaceComponent, component);\n }\n }\n });\n };\n return SearchInterfaceInitializer;\n}());\nexports.SearchInterfaceInitializer = SearchInterfaceInitializer;\n\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SearchInterfaceProvider_1 = __webpack_require__(46);\nvar ElementWithContextInitializer_1 = __webpack_require__(8);\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar SearchboxInitializer = (function () {\n function SearchboxInitializer() {\n this.searchInterfacesProvider = new SearchInterfaceProvider_1.SearchInterfacesProvider();\n }\n SearchboxInitializer.prototype.initSearchboxIfStandalone = function (searchboxElement, searchPageUri, options) {\n var _this = this;\n var searchInterfaces = this.searchInterfacesProvider.getSearchInterfacesInPage([\"Recommendation\", \"SearchInterface\"]);\n return this.waitForSearchInterfacesInitialization(searchInterfaces).then(function () {\n if (_this.searchboxElementIsNotInitialized(searchboxElement)) {\n if (!!searchPageUri) {\n ElementWithContextInitializer_1.ElementWithContextInitializer.initializeContextWithinElement(searchboxElement);\n // coveo-search-ui doesn't like an initSearchbox directly on the searchbox.\n coveo_search_ui_1.initSearchbox(searchboxElement.parentElement, searchPageUri, options);\n }\n else {\n console.warn(\"The search box is not included in any search interface and the \\\"searchPageUri\\\" parameters is not specified. Consider using a Global Searchbox instead.\", searchboxElement);\n }\n }\n });\n };\n SearchboxInitializer.prototype.searchboxElementIsNotInitialized = function (searchBoxElement) {\n return typeof (coveo_search_ui_1.get(searchBoxElement, Coveo.Searchbox)) === \"undefined\";\n };\n SearchboxInitializer.prototype.waitForSearchInterfacesInitialization = function (searchInterfaces) {\n return Promise.all(this.getAllSearchInterfacesAfterComponentInitialization(searchInterfaces))\n .then(function () { });\n };\n SearchboxInitializer.prototype.getAllSearchInterfacesAfterComponentInitialization = function (searchInterfaces) {\n var _this = this;\n return searchInterfaces.map(function (searchInterface) { return coveo_search_ui_1.$$(searchInterface); })\n .map(function (searchInterface) { return _this.waitForSearchInterfaceInitialization(searchInterface); });\n };\n SearchboxInitializer.prototype.waitForSearchInterfaceInitialization = function (searchInterface) {\n return new Promise(function (resolve, reject) {\n searchInterface.on(coveo_search_ui_1.InitializationEvents.afterComponentsInitialization, function () { return resolve(); });\n });\n };\n return SearchboxInitializer;\n}());\nexports.SearchboxInitializer = SearchboxInitializer;\n\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CoveoFieldsHandler = (function () {\n function CoveoFieldsHandler(externalFields, prefix, suffix) {\n this.externalFields = externalFields;\n this.prefix = prefix;\n this.suffix = suffix;\n this.loadExternalFields(externalFields);\n this.prefix = prefix;\n this.suffix = suffix;\n }\n CoveoFieldsHandler.prototype.toCoveo = function (fieldName) {\n if (this.isValidFieldName(fieldName)) {\n var fieldWithoutDelimiter = this.stripCoveoFieldDelimiter(fieldName);\n var translatedFieldWithoutDelimiter = this.translateFieldName(fieldWithoutDelimiter);\n return this.startsWithAt(fieldName) ? this.addCoveoFieldDelimiter(translatedFieldWithoutDelimiter) : translatedFieldWithoutDelimiter;\n }\n else {\n console.error(\"Could not translate the '\" + fieldName + \"' field to a Coveo field. Returning as is.\");\n return fieldName;\n }\n };\n CoveoFieldsHandler.prototype.addCoveoFieldDelimiter = function (fieldName) {\n var fieldNameWithDelimiter = fieldName;\n if (!this.startsWithAt(fieldName)) {\n fieldNameWithDelimiter = (\"\" + CoveoFieldsHandler.coveoFieldDelimiter + fieldName).toLowerCase();\n }\n return fieldNameWithDelimiter;\n };\n CoveoFieldsHandler.prototype.loadExternalFields = function (externalFields) {\n var _this = this;\n this.externalFields = [];\n externalFields.forEach(function (externalField) {\n if (typeof (externalField) === \"string\") {\n _this.externalFields.push({\n \"fieldName\": externalField,\n \"shouldEscape\": false\n });\n }\n else if (_this.isExternalFieldConfig(externalField)) {\n _this.externalFields.push(externalField);\n }\n else {\n console.error(\"Invalid external field '\" + externalField + \"'.\");\n }\n });\n };\n CoveoFieldsHandler.prototype.isValidFieldName = function (fieldName) {\n return typeof (fieldName) !== \"undefined\" && fieldName !== \"\";\n };\n CoveoFieldsHandler.prototype.startsWithAt = function (fieldName) {\n return fieldName[0] === CoveoFieldsHandler.coveoFieldDelimiter;\n };\n CoveoFieldsHandler.prototype.stripCoveoFieldDelimiter = function (fieldName) {\n var field = fieldName;\n if (this.startsWithAt(fieldName)) {\n field = field.substr(1);\n }\n return field;\n };\n CoveoFieldsHandler.prototype.translateFieldName = function (fieldName) {\n var field = fieldName;\n if (this.shouldReplaceSpecialCharacters(fieldName)) {\n field = this.replaceSpecialCharacters(field);\n }\n if (this.shouldDecorate(fieldName)) {\n field = this.prefix + field + this.suffix;\n }\n return field;\n };\n CoveoFieldsHandler.prototype.replaceSpecialCharacters = function (fieldName) {\n return fieldName.split(\"\")\n .map(this.replaceSpecialCharacter.bind(this))\n .join(\"\");\n };\n CoveoFieldsHandler.prototype.replaceSpecialCharacter = function (character) {\n if (character.match(CoveoFieldsHandler.nonSpecialCharacters)) {\n return character;\n }\n else {\n return this.escapeSpecialCharacter(character);\n }\n };\n CoveoFieldsHandler.prototype.escapeSpecialCharacter = function (character) {\n return \"z\" + character.charCodeAt(0) + \"x\";\n };\n CoveoFieldsHandler.prototype.shouldReplaceSpecialCharacters = function (fieldName) {\n var fields = this.externalFields.filter(function (field) { return field.fieldName === fieldName; });\n return fields.length > 0 ? fields[0].shouldEscape : true;\n };\n CoveoFieldsHandler.prototype.shouldDecorate = function (fieldName) {\n return !this.externalFields.some(function (field) { return field.fieldName === fieldName; });\n };\n CoveoFieldsHandler.prototype.isExternalFieldConfig = function (obj) {\n return typeof (obj) !== \"undefined\" &&\n typeof (obj.fieldName) !== \"undefined\" &&\n typeof (obj.shouldEscape) !== \"undefined\";\n };\n return CoveoFieldsHandler;\n}());\n// 'z' and 'x' are also considered as special characters because\n// they are used in the escaping logic. So we have to remove them\n// from the regular expression pattern.\nCoveoFieldsHandler.nonSpecialCharacters = /[a-wyA-WY0-9]/;\nCoveoFieldsHandler.coveoFieldDelimiter = \"@\";\nexports.CoveoFieldsHandler = CoveoFieldsHandler;\n\n\n/***/ }),\n/* 34 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CoveoLabelsHandler = (function () {\n function CoveoLabelsHandler(labels) {\n this.labels = labels;\n }\n CoveoLabelsHandler.prototype.translate = function (key) {\n return this.labels[key] || key;\n };\n return CoveoLabelsHandler;\n}());\nexports.CoveoLabelsHandler = CoveoLabelsHandler;\n\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar AnalyticsEnabled_1 = __webpack_require__(37);\nvar CoveoForSitecoreAnalyticsEndpoint_1 = __webpack_require__(38);\nvar CurrentPageName_1 = __webpack_require__(39);\nvar FieldTranslator_1 = __webpack_require__(40);\nvar IsAnonymous_1 = __webpack_require__(41);\nvar MainSearchInterfaceSelector_1 = __webpack_require__(42);\nvar SortCriteria_1 = __webpack_require__(43);\nvar UnfoldDictionaryToAttributes_1 = __webpack_require__(44);\nvar PrebindHelpers = (function () {\n function PrebindHelpers() {\n }\n PrebindHelpers.getAllPrebindHelpers = function () {\n return [\n new AnalyticsEnabled_1.AnalyticsEnabledPrebind(),\n new CoveoForSitecoreAnalyticsEndpoint_1.CoveoForSitecoreAnalyticsEndpointPrebind(),\n new CurrentPageName_1.CurrentPageNamePrebind(),\n new FieldTranslator_1.FieldTranslatorPrebind(),\n new IsAnonymous_1.IsAnonymousPrebind(),\n new MainSearchInterfaceSelector_1.MainSearchInterfaceSelectorPrebind(),\n new SortCriteria_1.SortCriteriaPrebind(),\n new UnfoldDictionaryToAttributes_1.UnfoldDictionaryToAttributesPrebind(),\n ];\n };\n return PrebindHelpers;\n}());\nexports.PrebindHelpers = PrebindHelpers;\n\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar PrebindResolver = (function () {\n function PrebindResolver() {\n this.prebindAppliedValue = \"appliedPrebind\";\n this.helpers = {};\n }\n PrebindResolver.prototype.registerPrebindHelper = function (helperName, handler) {\n if (typeof (helperName) !== \"string\" || helperName === \"\") {\n throw \"You must define a name for the prebind helper.\";\n }\n if (typeof (handler) === \"undefined\" || handler === null) {\n throw \"You must define a handler for the prebind helper.\";\n }\n if (this.helpers.hasOwnProperty(helperName)) {\n console.warn(\"A prebind handler already exists for '\" + helperName + \"'. It will be ignored\");\n return;\n }\n this.helpers[helperName] = handler;\n };\n PrebindResolver.prototype.hasHelper = function (helperName) {\n return this.helpers.hasOwnProperty(helperName);\n };\n PrebindResolver.prototype.getHelper = function (helperName) {\n if (!this.hasHelper(helperName)) {\n throw \"'\" + helperName + \"' has no registered helper.\";\n }\n return this.helpers[helperName];\n };\n PrebindResolver.prototype.hasNotAppliedPrebind = function (element) {\n return element.dataset[this.prebindAppliedValue] !== \"true\";\n };\n PrebindResolver.prototype.applyToElement = function (element) {\n var _this = this;\n try {\n var attributes = this.getPrebindingAttributesForElement(element);\n if (attributes.length > 0) {\n element.dataset[this.prebindAppliedValue] = \"true\";\n }\n attributes.forEach(function (attributes) { return _this.applyPrebindToElement(attributes, element); });\n }\n catch (exception) {\n console.warn(\"(CoveoForSitecore) prebinding failed on element.\", element, exception);\n }\n };\n PrebindResolver.prototype.getPrebindingAttributesForElement = function (element) {\n var _this = this;\n return this.getAllPrebindingAttributesNames(element).map(function (key) {\n var methodName = element.dataset[key];\n var attribute = _this.lowerCaseFirstCharacter(_this.removePrebindPrefix(key));\n return {\n attribute: attribute,\n attributeValue: element.dataset[attribute] || \"\",\n method: _this.getHelper(methodName)\n };\n });\n };\n PrebindResolver.prototype.getAllPrebindingAttributesNames = function (element) {\n var _this = this;\n return Object.keys(element.dataset)\n .filter(function (key) { return _this.stringStartsWithPrebindingString(key); })\n .filter(function (key) {\n var helperName = element.dataset[key];\n return _this.filterAndWarnNonExistingHelperName(helperName, element);\n });\n };\n PrebindResolver.prototype.stringStartsWithPrebindingString = function (value) {\n return value.lastIndexOf(PrebindResolver.prebindString) === 0;\n };\n PrebindResolver.prototype.filterAndWarnNonExistingHelperName = function (helperName, element) {\n var hasHelperWithName = this.hasHelper(helperName);\n if (!hasHelperWithName) {\n console.warn(\"(CoveoForSitecore) an unregistered prebinding '\" + helperName + \"' was set on the element. Register this method using Prebinding.registerPrebindHelper(\\\"\" + helperName + \"\\\", handler).\", element);\n }\n return hasHelperWithName;\n };\n PrebindResolver.prototype.removePrebindPrefix = function (attributeName) {\n return attributeName.substring(PrebindResolver.prebindString.length);\n };\n PrebindResolver.prototype.lowerCaseFirstCharacter = function (value) {\n return value.charAt(0).toLowerCase() + value.slice(1);\n };\n PrebindResolver.prototype.applyPrebindToElement = function (prebind, element) {\n element.dataset[prebind.attribute] = prebind.method(prebind.attributeValue, element);\n };\n return PrebindResolver;\n}());\nPrebindResolver.prebindString = \"prebind\";\nexports.PrebindResolver = PrebindResolver;\n\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar AnalyticsEnabledPrebind = (function () {\n function AnalyticsEnabledPrebind() {\n this.name = \"analyticsEnabled\";\n }\n AnalyticsEnabledPrebind.prototype.getPrebind = function (args) {\n return function (currentValue, element) {\n return args.context.scAnalyticsEnabled ? \"true\" : \"false\";\n };\n };\n return AnalyticsEnabledPrebind;\n}());\nexports.AnalyticsEnabledPrebind = AnalyticsEnabledPrebind;\n\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CoveoForSitecoreAnalyticsEndpointPrebind = (function () {\n function CoveoForSitecoreAnalyticsEndpointPrebind() {\n this.name = \"coveoForSitecoreAnalyticsEndpoint\";\n }\n CoveoForSitecoreAnalyticsEndpointPrebind.prototype.getPrebind = function (args) {\n return function (currentValue, element) {\n return currentValue || args.context.scRestEndpointUri + \"/coveoanalytics\";\n };\n };\n return CoveoForSitecoreAnalyticsEndpointPrebind;\n}());\nexports.CoveoForSitecoreAnalyticsEndpointPrebind = CoveoForSitecoreAnalyticsEndpointPrebind;\n\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CurrentPageNamePrebind = (function () {\n function CurrentPageNamePrebind() {\n this.name = \"currentPageName\";\n }\n CurrentPageNamePrebind.prototype.getPrebind = function (args) {\n return function (pageName, element) {\n return pageName || args.context.scPageName;\n };\n };\n return CurrentPageNamePrebind;\n}());\nexports.CurrentPageNamePrebind = CurrentPageNamePrebind;\n\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar FieldTranslatorPrebind = (function () {\n function FieldTranslatorPrebind() {\n this.name = \"fieldTranslator\";\n }\n FieldTranslatorPrebind.prototype.getPrebind = function (args) {\n return function (name, element) {\n return args.fieldsHandler.toCoveo(name);\n };\n };\n return FieldTranslatorPrebind;\n}());\nexports.FieldTranslatorPrebind = FieldTranslatorPrebind;\n\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar IsAnonymousPrebind = (function () {\n function IsAnonymousPrebind() {\n this.name = \"isAnonymous\";\n }\n IsAnonymousPrebind.prototype.getPrebind = function (args) {\n return function (isAnonymous, element) {\n return args.context.scIsUserAnonymous ? \"true\" : \"false\";\n };\n };\n return IsAnonymousPrebind;\n}());\nexports.IsAnonymousPrebind = IsAnonymousPrebind;\n\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar MainSearchInterfaceSelectorPrebind = (function () {\n function MainSearchInterfaceSelectorPrebind() {\n this.name = \"mainSearchInterfaceSelector\";\n this.resolvers = [\n new ResolveIfSelector(),\n new ResolveIfSearchInterfaceIdInPage(),\n new ResolveParentSearchInterfaceId(),\n new UseMainSearchInterfaceSelectorAsIs()\n ];\n }\n MainSearchInterfaceSelectorPrebind.prototype.getPrebind = function (args) {\n var _this = this;\n return function (mainSearchInterfaceId, element) {\n var resolver = _this.getFirstValidResolver(mainSearchInterfaceId, element);\n return resolver.getValue(mainSearchInterfaceId, element);\n };\n };\n MainSearchInterfaceSelectorPrebind.prototype.getFirstValidResolver = function (mainSearchInterfaceId, element) {\n var resolver;\n do {\n if (this.resolvers.length === 0) {\n var message = \"Could not resolve the search interface element using the current resolver. Ensure that a valid value is set.\";\n console.error(message, {\n mainSearchInterfaceId: mainSearchInterfaceId,\n element: element\n });\n throw message;\n }\n resolver = this.resolvers.shift();\n } while (!resolver.canResolve(mainSearchInterfaceId, element));\n return resolver;\n };\n return MainSearchInterfaceSelectorPrebind;\n}());\nexports.MainSearchInterfaceSelectorPrebind = MainSearchInterfaceSelectorPrebind;\nvar ResolveIfSearchInterfaceIdInPage = (function () {\n function ResolveIfSearchInterfaceIdInPage() {\n }\n ResolveIfSearchInterfaceIdInPage.prototype.canResolve = function (mainSearchInterfaceId) {\n return this.isMainSearchInterfaceDefined(mainSearchInterfaceId) &&\n this.isIdSelectorValid(\"#\" + mainSearchInterfaceId);\n };\n ResolveIfSearchInterfaceIdInPage.prototype.getValue = function (mainSearchInterfaceId) {\n return \"#\" + mainSearchInterfaceId;\n };\n ResolveIfSearchInterfaceIdInPage.prototype.isMainSearchInterfaceDefined = function (mainSearchInterfaceId) {\n return !!mainSearchInterfaceId;\n };\n ResolveIfSearchInterfaceIdInPage.prototype.isIdSelectorValid = function (selector) {\n return document.querySelector(selector) !== null;\n };\n return ResolveIfSearchInterfaceIdInPage;\n}());\nvar ResolveParentSearchInterfaceId = (function () {\n function ResolveParentSearchInterfaceId() {\n }\n ResolveParentSearchInterfaceId.prototype.canResolve = function (mainSearchInterfaceId, element) {\n return this.getValue(mainSearchInterfaceId, element) !== null;\n };\n ResolveParentSearchInterfaceId.prototype.getValue = function (mainSearchInterfaceId, element) {\n if (typeof (this.foundId) === \"undefined\") {\n this.foundId = this.tryFindParentSearchInterfaceFromElement(element);\n }\n return this.foundId;\n };\n ResolveParentSearchInterfaceId.prototype.tryFindParentSearchInterfaceFromElement = function (element) {\n var parentSearchInterface = this.findParentWithClass(element, \"Coveo\" + coveo_search_ui_1.SearchInterface.ID);\n return !!parentSearchInterface ? \"#\" + parentSearchInterface.id : null;\n };\n ResolveParentSearchInterfaceId.prototype.findParentWithClass = function (element, className) {\n var parent = element.parentElement;\n while ((parent = parent.parentElement) && !parent.classList.contains(className)) { }\n return parent;\n };\n return ResolveParentSearchInterfaceId;\n}());\nvar ResolveIfSelector = (function () {\n function ResolveIfSelector() {\n }\n ResolveIfSelector.prototype.canResolve = function (mainSearchInterfaceId, element) {\n return !!mainSearchInterfaceId &&\n this.isStartingWithSelectorCharacter(mainSearchInterfaceId);\n };\n ResolveIfSelector.prototype.getValue = function (mainSearchInterfaceId, element) {\n return mainSearchInterfaceId;\n };\n ResolveIfSelector.prototype.isStartingWithSelectorCharacter = function (mainSearchInterfaceId) {\n var firstCharacter = mainSearchInterfaceId[0];\n return [\".\", \"#\"].indexOf(firstCharacter) !== -1;\n };\n return ResolveIfSelector;\n}());\nvar UseMainSearchInterfaceSelectorAsIs = (function () {\n function UseMainSearchInterfaceSelectorAsIs() {\n }\n UseMainSearchInterfaceSelectorAsIs.prototype.canResolve = function (mainSearchInterfaceId, element) {\n return true;\n };\n UseMainSearchInterfaceSelectorAsIs.prototype.getValue = function (mainSearchInterfaceId, element) {\n return mainSearchInterfaceId;\n };\n return UseMainSearchInterfaceSelectorAsIs;\n}());\n\n\n/***/ }),\n/* 43 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SortCriteriaResolver_1 = __webpack_require__(45);\nvar SortCriteriaPrebind = (function () {\n function SortCriteriaPrebind() {\n this.name = \"sortCriteriaResolver\";\n }\n SortCriteriaPrebind.prototype.getPrebind = function (args) {\n var criteriaResolver = new SortCriteriaResolver_1.SortCriteriaResolver(args.fieldsHandler);\n return function (sortCriteriaRawValue, element) {\n var sortCriteria = JSON.parse(sortCriteriaRawValue);\n if (Object.keys(sortCriteria).length === 0) {\n return null;\n }\n var sortType = (sortCriteria.type || \"relevancy\").toLowerCase();\n var sortDirection = (sortCriteria.direction || \"ascending\").toLowerCase();\n var toggleDirection = (element.dataset[\"scEnableDirectionToggle\"] || \"false\").toLowerCase() === \"true\";\n if (sortType === \"relevancy\") {\n return criteriaResolver.resolveRelevancyCriteria();\n }\n else if (sortType === \"date\") {\n return criteriaResolver.resolveDateCriteria(sortDirection, toggleDirection);\n }\n else {\n var sortField = sortCriteria.field;\n return criteriaResolver.resolveFieldCriteria(sortField, sortDirection, toggleDirection);\n }\n };\n };\n return SortCriteriaPrebind;\n}());\nexports.SortCriteriaPrebind = SortCriteriaPrebind;\n\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar UnfoldDictionaryToAttributesPrebind = (function () {\n function UnfoldDictionaryToAttributesPrebind() {\n this.name = \"unfoldDictionaryToAttributesPrebind\";\n }\n UnfoldDictionaryToAttributesPrebind.prototype.getPrebind = function (args) {\n return function (rawDictionary, element) {\n var parsedDictionary = JSON.parse(rawDictionary);\n Object.keys(parsedDictionary).forEach(function (key) {\n var translatedField = args.fieldsHandler.toCoveo(key);\n var dataKey = \"field\" + translatedField.charAt(0).toUpperCase() + translatedField.slice(1);\n element.dataset[dataKey] = parsedDictionary[key];\n });\n return rawDictionary;\n };\n };\n return UnfoldDictionaryToAttributesPrebind;\n}());\nexports.UnfoldDictionaryToAttributesPrebind = UnfoldDictionaryToAttributesPrebind;\n\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SortCriteriaResolver = (function () {\n function SortCriteriaResolver(fieldsHandler) {\n this.fieldsHandler = fieldsHandler;\n }\n SortCriteriaResolver.prototype.resolveFieldCriteria = function (fieldCriteria, sortDirection, enableToggle) {\n var field = fieldCriteria.charAt(0) !== \"@\" ? \"@\" + fieldCriteria : fieldCriteria;\n return this.getFieldCriteria(this.fieldsHandler.toCoveo(field), sortDirection, enableToggle);\n };\n SortCriteriaResolver.prototype.resolveDateCriteria = function (sortDirection, enableToggle) {\n return this.getFieldCriteria(\"date\", sortDirection, enableToggle);\n };\n SortCriteriaResolver.prototype.resolveRelevancyCriteria = function () {\n return \"relevancy\";\n };\n SortCriteriaResolver.prototype.getFieldCriteria = function (fieldCriteria, sortDirection, enableToggle) {\n if (enableToggle) {\n return this.getFieldWithDirection(fieldCriteria, sortDirection) + \", \" + this.getFieldWithDirection(fieldCriteria, this.getInvertedDirection(sortDirection));\n }\n else {\n return this.getFieldWithDirection(fieldCriteria, sortDirection);\n }\n };\n SortCriteriaResolver.prototype.getFieldWithDirection = function (fieldCriteria, sortDirection) {\n return fieldCriteria + \" \" + sortDirection;\n };\n SortCriteriaResolver.prototype.getInvertedDirection = function (sortDirection) {\n return sortDirection === \"descending\" ? \"ascending\" : \"descending\";\n };\n return SortCriteriaResolver;\n}());\nexports.SortCriteriaResolver = SortCriteriaResolver;\n\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nvar HTMLUtils_1 = __webpack_require__(7);\nvar SearchInterfacesProvider = (function () {\n function SearchInterfacesProvider() {\n }\n SearchInterfacesProvider.prototype.getSearchInterfacesInPage = function (componentsIds) {\n var searchInterfacesSelector = this.getSearchInterfacesSelectorFromComponentIds(componentsIds);\n var searchInterfaces = document.querySelectorAll(searchInterfacesSelector);\n return HTMLUtils_1.nodeListToArray(searchInterfaces);\n };\n SearchInterfacesProvider.prototype.getSearchInterfacesSelectorFromComponentIds = function (componentIds) {\n return componentIds.map(function (componentId) { return coveo_search_ui_1.Component.computeSelectorForType(componentId); })\n .join(\", \");\n };\n return SearchInterfacesProvider;\n}());\nexports.SearchInterfacesProvider = SearchInterfacesProvider;\n\n\n/***/ }),\n/* 47 */,\n/* 48 */,\n/* 49 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoForSitecoreAnalytics() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreAnalytics\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(12).then((function () {\n var loaded = __webpack_require__(14)[\"CoveoForSitecoreAnalytics\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreAnalytics\", resolve));\n });\n });\n}\nexports.lazyCoveoForSitecoreAnalytics = lazyCoveoForSitecoreAnalytics;\n\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoSendAnalyticsToSitecore() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"SendAnalyticsToSitecore\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(5).then((function () {\n var loaded = __webpack_require__(15)[\"SendAnalyticsToSitecore\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"SendAnalyticsToSitecore\", resolve));\n });\n });\n}\nexports.lazyCoveoSendAnalyticsToSitecore = lazyCoveoSendAnalyticsToSitecore;\n\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyValidateAnalyticsIncluded() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ValidateAnalyticsIncluded\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(11).then((function () {\n var loaded = __webpack_require__(16)[\"ValidateAnalyticsIncluded\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"ValidateAnalyticsIncluded\", resolve));\n });\n });\n}\nexports.lazyValidateAnalyticsIncluded = lazyValidateAnalyticsIncluded;\n\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoForSitecoreBindWithUserContext() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreBindWithUserContext\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(10).then((function () {\n var loaded = __webpack_require__(17)[\"CoveoForSitecoreBindWithUserContext\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreBindWithUserContext\", resolve));\n });\n });\n}\nexports.lazyCoveoForSitecoreBindWithUserContext = lazyCoveoForSitecoreBindWithUserContext;\n\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoDistanceResources() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"DistanceResources\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(2).then((function () {\n var loaded = __webpack_require__(18)[\"DistanceResources\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"DistanceResources\", resolve));\n });\n });\n}\nexports.lazyCoveoDistanceResources = lazyCoveoDistanceResources;\n\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoGoogleApiPositionProvider() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"GoogleApiPositionProvider\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(3).then((function () {\n var loaded = __webpack_require__(19)[\"GoogleApiPositionProvider\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"GoogleApiPositionProvider\", resolve));\n });\n });\n}\nexports.lazyCoveoGoogleApiPositionProvider = lazyCoveoGoogleApiPositionProvider;\n\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoNavigatorPositionProvider() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"NavigatorPositionProvider\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(7).then((function () {\n var loaded = __webpack_require__(20)[\"NavigatorPositionProvider\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"NavigatorPositionProvider\", resolve));\n });\n });\n}\nexports.lazyCoveoNavigatorPositionProvider = lazyCoveoNavigatorPositionProvider;\n\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoStaticPositionProvider() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"StaticPositionProvider\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(6).then((function () {\n var loaded = __webpack_require__(21)[\"StaticPositionProvider\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"StaticPositionProvider\", resolve));\n });\n });\n}\nexports.lazyCoveoStaticPositionProvider = lazyCoveoStaticPositionProvider;\n\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoForSitecoreExpressions() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreExpressions\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(9).then((function () {\n var loaded = __webpack_require__(22)[\"CoveoForSitecoreExpressions\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreExpressions\", resolve));\n });\n });\n}\nexports.lazyCoveoForSitecoreExpressions = lazyCoveoForSitecoreExpressions;\n\n\n/***/ }),\n/* 58 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoForSitecoreExternalContent() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreExternalContent\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(4).then((function () {\n var loaded = __webpack_require__(23)[\"CoveoForSitecoreExternalContent\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreExternalContent\", resolve));\n });\n });\n}\nexports.lazyCoveoForSitecoreExternalContent = lazyCoveoForSitecoreExternalContent;\n\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoForSitecoreFilterExpression() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreFilterExpression\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(1).then((function () {\n var loaded = __webpack_require__(24)[\"CoveoForSitecoreFilterExpression\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreFilterExpression\", resolve));\n });\n });\n}\nexports.lazyCoveoForSitecoreFilterExpression = lazyCoveoForSitecoreFilterExpression;\n\n\n/***/ }),\n/* 60 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoForSitecoreLocalExpression() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreLocalExpression\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(8).then((function () {\n var loaded = __webpack_require__(25)[\"CoveoForSitecoreLocalExpression\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreLocalExpression\", resolve));\n });\n });\n}\nexports.lazyCoveoForSitecoreLocalExpression = lazyCoveoForSitecoreLocalExpression;\n\n\n/***/ }),\n/* 61 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\nfunction lazyCoveoForSitecoreRankingExpression() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreRankingExpression\", function () {\n return new Promise(function (resolve, reject) {\n __webpack_require__.e/* require.ensure */(0).then((function () {\n var loaded = __webpack_require__(26)[\"CoveoForSitecoreRankingExpression\"];\n resolve(loaded);\n }).bind(null, __webpack_require__)).catch(coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreRankingExpression\", resolve));\n });\n });\n}\nexports.lazyCoveoForSitecoreRankingExpression = lazyCoveoForSitecoreRankingExpression;\n\n\n/***/ }),\n/* 62 */,\n/* 63 */,\n/* 64 */,\n/* 65 */,\n/* 66 */,\n/* 67 */,\n/* 68 */,\n/* 69 */,\n/* 70 */,\n/* 71 */,\n/* 72 */,\n/* 73 */\n/***/ (function(module, exports) {\n\nmodule.exports = CoveoForSitecoreUserContext;\n\n/***/ }),\n/* 74 */,\n/* 75 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = __webpack_require__(0);\n__webpack_require__.p = coveo_search_ui_1.PublicPathUtils.getDynamicPublicPath();\nvar CoveoForSitecoreContext_1 = __webpack_require__(5);\nexports.CoveoForSitecoreContext = CoveoForSitecoreContext_1.CoveoForSitecoreContext;\nvar LazyCoveoForSitecoreAnalytics_1 = __webpack_require__(49);\nLazyCoveoForSitecoreAnalytics_1.lazyCoveoForSitecoreAnalytics();\nvar LazySendAnalyticsToSitecore_1 = __webpack_require__(50);\nLazySendAnalyticsToSitecore_1.lazyCoveoSendAnalyticsToSitecore();\nvar LazyValidateAnalyticsIncluded_1 = __webpack_require__(51);\nLazyValidateAnalyticsIncluded_1.lazyValidateAnalyticsIncluded();\nvar LazyCoveoForSitecoreBindWithUserContext_1 = __webpack_require__(52);\nLazyCoveoForSitecoreBindWithUserContext_1.lazyCoveoForSitecoreBindWithUserContext();\nvar LazyCoveoForSitecoreExpressions_1 = __webpack_require__(57);\nLazyCoveoForSitecoreExpressions_1.lazyCoveoForSitecoreExpressions();\nvar LazyCoveoForSitecoreRankingExpression_1 = __webpack_require__(61);\nLazyCoveoForSitecoreRankingExpression_1.lazyCoveoForSitecoreRankingExpression();\nvar LazyCoveoForSitecoreExternalContent_1 = __webpack_require__(58);\nLazyCoveoForSitecoreExternalContent_1.lazyCoveoForSitecoreExternalContent();\nvar LazyCoveoForSitecoreFilterExpression_1 = __webpack_require__(59);\nLazyCoveoForSitecoreFilterExpression_1.lazyCoveoForSitecoreFilterExpression();\nvar LazyCoveoForSitecoreLocalExpression_1 = __webpack_require__(60);\nLazyCoveoForSitecoreLocalExpression_1.lazyCoveoForSitecoreLocalExpression();\nvar LazyDistanceResources_1 = __webpack_require__(53);\nLazyDistanceResources_1.lazyCoveoDistanceResources();\nvar LazyGoogleApiPositionProvider_1 = __webpack_require__(54);\nLazyGoogleApiPositionProvider_1.lazyCoveoGoogleApiPositionProvider();\nvar LazyNavigatorPositionProvider_1 = __webpack_require__(55);\nLazyNavigatorPositionProvider_1.lazyCoveoNavigatorPositionProvider();\nvar LazyStaticPositionProvider_1 = __webpack_require__(56);\nLazyStaticPositionProvider_1.lazyCoveoStaticPositionProvider();\n__export(__webpack_require__(12));\n__export(__webpack_require__(11));\n__export(__webpack_require__(4));\n\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// CoveoForSitecore.Lazy.min.js"," \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonpCoveoForSitecore\"];\n \twindow[\"webpackJsonpCoveoForSitecore\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t14: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = 'text/javascript';\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"\" + ({\"0\":\"CoveoForSitecoreRankingExpression\",\"1\":\"CoveoForSitecoreFilterExpression\",\"2\":\"DistanceResources\",\"3\":\"GoogleApiPositionProvider\",\"4\":\"CoveoForSitecoreExternalContent\",\"5\":\"SendAnalyticsToSitecore\",\"6\":\"StaticPositionProvider\",\"7\":\"NavigatorPositionProvider\",\"8\":\"CoveoForSitecoreLocalExpression\",\"9\":\"CoveoForSitecoreExpressions\",\"10\":\"CoveoForSitecoreBindWithUserContext\",\"11\":\"ValidateAnalyticsIncluded\",\"12\":\"CoveoForSitecoreAnalytics\"}[chunkId]||chunkId) + \".min.js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"js/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 75);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d3c3b9f923badc0b5d8a","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"Coveo\"\n// module id = 0\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SitecoreContextEvents = (function () {\n function SitecoreContextEvents() {\n }\n return SitecoreContextEvents;\n}());\nSitecoreContextEvents.onSitecoreContextInitialization = \"onSitecoreContextInitialization\";\nexports.SitecoreContextEvents = SitecoreContextEvents;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/events/ContextEvents.ts\n// module id = 1\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar PrebindResolver_1 = require(\"../resolvers/prebinding/PrebindResolver\");\nvar Prebinding = (function () {\n function Prebinding() {\n }\n Prebinding.registerPrebindHelper = function (helperName, handler) {\n this.processor.registerPrebindHelper(helperName, handler);\n };\n Prebinding.getHelper = function (helperName) {\n return this.processor.getHelper(helperName);\n };\n Prebinding.applyPrebindingOnElement = function (rootElement) {\n if (this.processor.hasNotAppliedPrebind(rootElement)) {\n this.processor.applyToElement(rootElement);\n }\n };\n Prebinding.applyPrebindingOnChildren = function (rootElement) {\n var _this = this;\n this.nodeListToArray(rootElement.querySelectorAll(\"*\"))\n .map(function (element) { return element; })\n .filter(function (element) { return _this.processor.hasNotAppliedPrebind(element); })\n .forEach(function (element) { return _this.processor.applyToElement(element); });\n };\n Prebinding.nodeListToArray = function (elements) {\n var array = [];\n for (var i = 0, length = elements.length; i < length; i++) {\n array.push(elements[i]);\n }\n return array;\n };\n return Prebinding;\n}());\nPrebinding.processor = new PrebindResolver_1.PrebindResolver();\nexports.Prebinding = Prebinding;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/Prebinding.ts\n// module id = 2\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ContextInitializer_1 = require(\"./initialization/ContextInitializer\");\nvar CoveoForSitecoreContext_1 = require(\"../ui/context/CoveoForSitecoreContext\");\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar Context = (function () {\n function Context() {\n }\n Context.configureContext = function (contextElement) {\n if (typeof (contextElement) === \"undefined\" || contextElement === null) {\n throw Error(\"You must execute `configureContext` with an HTML element.\");\n }\n var options = coveo_search_ui_1.ComponentOptions.initComponentOptions(contextElement, CoveoForSitecoreContext_1.CoveoForSitecoreContext);\n this.initializeWithContextOptions(contextElement, options);\n };\n Context.initializeWithContextOptions = function (contextElement, contextOptions) {\n var contextInitializer = new ContextInitializer_1.ContextInitializer();\n var fieldsHandler = contextInitializer.createFieldsHandler({\n externalFields: contextOptions.scExternalFields,\n prefix: contextOptions.scFieldPrefix,\n suffix: contextOptions.scFieldSuffix\n });\n var labels = contextInitializer.createLabelsHandler({\n labels: contextOptions.scLabels\n });\n var sourceName = contextOptions.scIndexSourceName;\n contextInitializer.initializePrebinding({\n fieldsHandler: fieldsHandler,\n context: contextOptions\n });\n contextInitializer.initializeUnderscoreFieldsHelpers(fieldsHandler);\n contextInitializer.initializeUnderscoreLabelsHelpers(labels);\n contextInitializer.initializeUnderscoreContextHelpers(sourceName);\n contextInitializer.initializeContextElement(contextElement);\n this.fields = fieldsHandler;\n this.labels = labels;\n this.element = contextElement;\n };\n return Context;\n}());\nexports.Context = Context;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/Context.ts\n// module id = 3\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ExternalComponentInitializer_1 = require(\"./initialization/ExternalComponentInitializer\");\nvar SearchboxInitializer_1 = require(\"./initialization/SearchboxInitializer\");\nvar SearchInterfaceInitializer_1 = require(\"./initialization/SearchInterfaceInitializer\");\nvar ElementWithContextInitializer_1 = require(\"./initialization/ElementWithContextInitializer\");\nexports.searchInterfaceInitializer = new SearchInterfaceInitializer_1.SearchInterfaceInitializer();\nexports.searchboxInitializer = new SearchboxInitializer_1.SearchboxInitializer();\nexports.externalComponentInitializer = new ExternalComponentInitializer_1.ExternalComponentInitializer();\nfunction initSearchInterface(searchInterfaceElement) {\n return exports.searchInterfaceInitializer.initSearchInterface(searchInterfaceElement);\n}\nexports.initSearchInterface = initSearchInterface;\nfunction initializeSearchInterfaceForExperienceEditor(searchInterfaceElement) {\n exports.searchInterfaceInitializer.initializeExperienceEditorHooksForSearchInterface(searchInterfaceElement);\n return initSearchInterface(searchInterfaceElement);\n}\nexports.initializeSearchInterfaceForExperienceEditor = initializeSearchInterfaceForExperienceEditor;\nfunction initSearchboxIfStandalone(searchBoxElement, searchPageUri, options) {\n return exports.searchboxInitializer.initSearchboxIfStandalone(searchBoxElement, searchPageUri, options);\n}\nexports.initSearchboxIfStandalone = initSearchboxIfStandalone;\nfunction initContextOnElement(element) {\n ElementWithContextInitializer_1.ElementWithContextInitializer.initializeContextWithinElement(element);\n}\nexports.initContextOnElement = initContextOnElement;\nfunction initExternalComponentsSection(element) {\n exports.externalComponentInitializer.initializeExternalComponentSection(element);\n}\nexports.initExternalComponentsSection = initExternalComponentsSection;\nfunction initExternalComponentsSectionForExperienceEditor(element) {\n exports.externalComponentInitializer.initializeExperienceEditorHooksForExternalComponentsSection(element);\n initExternalComponentsSection(element);\n}\nexports.initExternalComponentsSectionForExperienceEditor = initExternalComponentsSectionForExperienceEditor;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/Initialization.ts\n// module id = 4\n// module chunks = 13 14","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar ContextEvents_1 = require(\"../../events/ContextEvents\");\nvar CoveoForSitecoreContext = (function (_super) {\n __extends(CoveoForSitecoreContext, _super);\n function CoveoForSitecoreContext(element, options, bindings) {\n var _this = _super.call(this, element, CoveoForSitecoreContext.ID, bindings) || this;\n _this.element = element;\n _this.options = options;\n _this.bindings = bindings;\n _this.options = coveo_search_ui_1.ComponentOptions.initComponentOptions(element, CoveoForSitecoreContext, options);\n _this.bind.onRootElement(coveo_search_ui_1.InitializationEvents.afterComponentsInitialization, _this.afterComponentsInitialization);\n _this.bind.onRootElement(coveo_search_ui_1.QueryEvents.doneBuildingQuery, _this.doneBuildingQuery);\n return _this;\n }\n CoveoForSitecoreContext.prototype.doneBuildingQuery = function (args) {\n if (this.hasDefaultPipelineNameSet() && this.queryBuilderUsesDefaultPipeline(args.queryBuilder)) {\n args.queryBuilder.pipeline = this.options.scDefaultPipelineName;\n }\n };\n CoveoForSitecoreContext.prototype.hasDefaultPipelineNameSet = function () {\n return this.options.scDefaultPipelineName !== \"\";\n };\n CoveoForSitecoreContext.prototype.queryBuilderUsesDefaultPipeline = function (queryBuilder) {\n return typeof (queryBuilder.pipeline) === \"undefined\";\n };\n CoveoForSitecoreContext.prototype.afterComponentsInitialization = function () {\n var contextArgs = {\n sitecoreItemUri: this.options.scItemUri,\n sitecorePageName: this.options.scPageName,\n analyticsEnabled: this.options.scAnalyticsEnabled,\n indexSourceName: this.options.scIndexSourceName,\n currentLanguage: this.options.scCurrentLanguage,\n languageFieldName: this.options.scLanguageFieldName,\n latestVersionFieldName: this.options.scLatestVersionFieldName\n };\n this.bind.trigger(this.element, ContextEvents_1.SitecoreContextEvents.onSitecoreContextInitialization, contextArgs);\n };\n return CoveoForSitecoreContext;\n}(coveo_search_ui_1.Component));\nCoveoForSitecoreContext.ID = \"ForSitecoreContext\";\nCoveoForSitecoreContext.options = {\n scItemUri: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scLanguageFieldName: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scLatestVersionFieldName: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scCurrentLanguage: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scRestEndpointUri: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scLabels: coveo_search_ui_1.ComponentOptions.buildJsonOption(),\n scPageName: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scDefaultPipelineName: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scAnalyticsEnabled: coveo_search_ui_1.ComponentOptions.buildBooleanOption(),\n scIsUserAnonymous: coveo_search_ui_1.ComponentOptions.buildBooleanOption(),\n scFieldPrefix: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scFieldSuffix: coveo_search_ui_1.ComponentOptions.buildStringOption(),\n scExternalFields: coveo_search_ui_1.ComponentOptions.buildJsonOption(),\n scIndexSourceName: coveo_search_ui_1.ComponentOptions.buildStringOption()\n};\nexports.CoveoForSitecoreContext = CoveoForSitecoreContext;\ncoveo_search_ui_1.Initialization.registerAutoCreateComponent(CoveoForSitecoreContext);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/context/CoveoForSitecoreContext.ts\n// module id = 5\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SitecoreExpressionEvents = (function () {\n function SitecoreExpressionEvents() {\n }\n return SitecoreExpressionEvents;\n}());\nSitecoreExpressionEvents.onBuildingSitecoreExternalContent = \"onBuildingSitecoreExternalContent\";\nSitecoreExpressionEvents.onBuildingLocalSitecoreInstanceExpression = \"onBuildingLocalSitecoreInstanceExpression\";\nexports.SitecoreExpressionEvents = SitecoreExpressionEvents;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/events/ExpressionEvents.ts\n// module id = 6\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction nodeListToArray(elements) {\n var array = [];\n for (var i = 0, length = elements.length; i < length; i++) {\n var element = elements.item(i);\n if (element instanceof HTMLElement) {\n array.push(element);\n }\n }\n return array;\n}\nexports.nodeListToArray = nodeListToArray;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/utils/HTMLUtils.ts\n// module id = 7\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Prebinding_1 = require(\"../Prebinding\");\nvar Context_1 = require(\"../Context\");\nvar ElementWithContextInitializer = (function () {\n function ElementWithContextInitializer() {\n }\n ElementWithContextInitializer.initializeContextWithinElement = function (element) {\n if (!!Context_1.Context.element) {\n element.appendChild(Context_1.Context.element.cloneNode(true));\n }\n Prebinding_1.Prebinding.applyPrebindingOnElement(element);\n Prebinding_1.Prebinding.applyPrebindingOnChildren(element);\n };\n return ElementWithContextInitializer;\n}());\nexports.ElementWithContextInitializer = ElementWithContextInitializer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/initialization/ElementWithContextInitializer.ts\n// module id = 8\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar HTMLUtils_1 = require(\"../../utils/HTMLUtils\");\nvar SitecoreExperienceEditor = (function () {\n function SitecoreExperienceEditor() {\n this.isOverriden = false;\n this.onAfterFrameLoadedCallbacks = [];\n }\n SitecoreExperienceEditor.prototype.registerOnLoadRenderingFromUrl = function (onAfterFrameLoadedCallback) {\n this.overrideSitecoreLoadRenderingFromUrl();\n this.onAfterFrameLoadedCallbacks.push(onAfterFrameLoadedCallback);\n };\n SitecoreExperienceEditor.prototype.isInBackgroundRendering = function () {\n return window.location.search.indexOf(SitecoreExperienceEditor.isInBackgroundRenderingParameterName) !== -1;\n };\n SitecoreExperienceEditor.prototype.getComponentFromLoadRenderingFromUrlCallbackData = function (callbackData) {\n if (!callbackData.renderingElement) {\n console.error(\"Could not find the rendering element from Sitecore callback data.\", callbackData);\n }\n var chromeRendering = document.getElementById(callbackData.renderingElement.opening[0].id);\n return chromeRendering.nextElementSibling;\n };\n SitecoreExperienceEditor.prototype.overrideSitecoreLoadRenderingFromUrl = function () {\n var _this = this;\n if (!this.isOverriden && typeof (Sitecore) !== \"undefined\") {\n var originalLoad_1 = Sitecore.PageModes.ChromeTypes.Placeholder.prototype._loadRenderingFromUrl;\n var onAfterFrameLoadedCallback_1 = function (callbackData) {\n _this.onAfterFrameLoadedCallbacks.forEach(function (callback) { return callback(callbackData); });\n };\n Sitecore.PageModes.ChromeTypes.Placeholder.prototype._loadRenderingFromUrl = function (url, frameLoadedCallback) {\n originalLoad_1.call(this, url + \"&\" + SitecoreExperienceEditor.isInBackgroundRenderingParameterName + \"=1\", function (callbackData) {\n frameLoadedCallback.call(this, callbackData);\n onAfterFrameLoadedCallback_1(callbackData);\n });\n };\n this.isOverriden = true;\n }\n };\n SitecoreExperienceEditor.prototype.registerShowDebugInformationCallback = function () {\n if (!window[\"scCoveoShowDebugInformation\"]) {\n window[\"scCoveoShowDebugInformation\"] = function (debugModeEnabled) {\n var debugInfoElements = HTMLUtils_1.nodeListToArray(document.getElementsByClassName(\"coveo-debug-information\"));\n if (debugModeEnabled) {\n debugInfoElements.forEach(function (element) { return element.classList.remove(\"coveo-debug-hidden\"); });\n }\n else {\n debugInfoElements.forEach(function (element) { return element.classList.add(\"coveo-debug-hidden\"); });\n }\n // Chromes are not updated correctly until an event refreshes them. This forces the update.\n Sitecore.PageModes.ChromeManager.resetChromes();\n };\n }\n };\n return SitecoreExperienceEditor;\n}());\nSitecoreExperienceEditor.isInBackgroundRenderingParameterName = \"isInBackgroundRendering\";\nexports.SitecoreExperienceEditor = SitecoreExperienceEditor;\nvar staticInstance = new SitecoreExperienceEditor();\nfunction getExperienceEditorInstance() {\n return staticInstance;\n}\nexports.getExperienceEditorInstance = getExperienceEditorInstance;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/initialization/SitecoreExperienceEditor.ts\n// module id = 9\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Prebinding_1 = require(\"../../base/Prebinding\");\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar externalComponentsOption = \"externalComponents\";\nvar SearchInterfaceComponentInitializer = (function () {\n function SearchInterfaceComponentInitializer() {\n }\n SearchInterfaceComponentInitializer.prototype.loadComponentsForSearchInterface = function (searchInterface, newComponent) {\n Prebinding_1.Prebinding.applyPrebindingOnElement(newComponent);\n Prebinding_1.Prebinding.applyPrebindingOnChildren(newComponent);\n var result = Coveo.Initialization.automaticallyCreateComponentsInside(newComponent, {\n bindings: searchInterface.getBindings(),\n options: {}\n });\n return result.initResult.then(function () {\n searchInterface.queryController.executeQuery({\n ignoreWarningSearchEvent: true\n });\n });\n };\n SearchInterfaceComponentInitializer.prototype.loadComponentsWithSearchInterfaceInitialization = function (searchInterfaceElement, element) {\n var _this = this;\n coveo_search_ui_1.$$(searchInterfaceElement).on(coveo_search_ui_1.InitializationEvents.beforeInitialization, function () {\n var searchInterfaceComponent = coveo_search_ui_1.get(searchInterfaceElement, coveo_search_ui_1.SearchInterface);\n _this.pushElementInSearchInterfaceExternalComponents(searchInterfaceComponent, element);\n });\n };\n SearchInterfaceComponentInitializer.prototype.pushElementInSearchInterfaceExternalComponents = function (searchInterfaceComponent, element) {\n if (!searchInterfaceComponent.options[externalComponentsOption]) {\n searchInterfaceComponent.options[externalComponentsOption] = [];\n }\n searchInterfaceComponent.options[externalComponentsOption].push(element);\n };\n return SearchInterfaceComponentInitializer;\n}());\nexports.SearchInterfaceComponentInitializer = SearchInterfaceComponentInitializer;\nvar initializer = new SearchInterfaceComponentInitializer();\nfunction getInitializerInstance() {\n return initializer;\n}\nexports.getInitializerInstance = getInitializerInstance;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/components/SearchInterfaceComponentInitializer.ts\n// module id = 10\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Context_1 = require(\"./base/Context\");\nexports.Context = Context_1.Context;\nvar Prebinding_1 = require(\"./base/Prebinding\");\nexports.Prebinding = Prebinding_1.Prebinding;\nvar SearchEndpoint_1 = require(\"./base/SearchEndpoint\");\nexports.SearchEndpoint = SearchEndpoint_1.SearchEndpoint;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/BaseModules.ts\n// module id = 11\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ContextEvents_1 = require(\"./events/ContextEvents\");\nexports.SitecoreContextEvents = ContextEvents_1.SitecoreContextEvents;\nvar ExpressionEvents_1 = require(\"./events/ExpressionEvents\");\nexports.SitecoreExpressionEvents = ExpressionEvents_1.SitecoreExpressionEvents;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/EventsModules.ts\n// module id = 12\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar SearchEndpoint = (function () {\n function SearchEndpoint() {\n }\n SearchEndpoint.configureSitecoreEndpoint = function (options) {\n if (typeof (options) === \"undefined\") {\n throw Error(\"You must define endpoint options when calling 'configureSitecoreEndpoint'.\");\n }\n coveo_search_ui_1.SearchEndpoint.endpoints[\"default\"] = SearchEndpoint.createNewEndpoint(options);\n };\n SearchEndpoint.createNewEndpoint = function (options) {\n return new coveo_search_ui_1.SearchEndpoint({\n restUri: options.restEndpointUri || \"/coveo/rest\",\n queryStringArguments: {\n \"sitecoreItemUri\": options.itemUri,\n \"siteName\": options.siteName\n }\n });\n };\n return SearchEndpoint;\n}());\nexports.SearchEndpoint = SearchEndpoint;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/SearchEndpoint.ts\n// module id = 28\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CoveoFieldsHandler_1 = require(\"../../handlers/CoveoFieldsHandler\");\nvar CoveoLabelsHandler_1 = require(\"../../handlers/CoveoLabelsHandler\");\nvar Prebinding_1 = require(\"../Prebinding\");\nvar PrebindHelpers_1 = require(\"../../resolvers/prebinding/PrebindHelpers\");\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar ContextInitializer = (function () {\n function ContextInitializer() {\n }\n ContextInitializer.prototype.createFieldsHandler = function (options) {\n var externalFields = typeof (options.externalFields) !== \"undefined\" ? JSON.parse(options.externalFields) : [];\n return new CoveoFieldsHandler_1.CoveoFieldsHandler(externalFields, options.prefix, options.suffix);\n };\n ContextInitializer.prototype.createLabelsHandler = function (options) {\n var labels = typeof (options.labels) !== \"undefined\" ? JSON.parse(options.labels) : {};\n return new CoveoLabelsHandler_1.CoveoLabelsHandler(labels);\n };\n ContextInitializer.prototype.initializePrebinding = function (args) {\n PrebindHelpers_1.PrebindHelpers.getAllPrebindHelpers().forEach(function (helper) {\n Prebinding_1.Prebinding.registerPrebindHelper(helper.name, helper.getPrebind(args));\n });\n };\n ContextInitializer.prototype.initializeUnderscoreFieldsHelpers = function (fieldsHandler) {\n coveo_search_ui_1.TemplateHelpers.registerTemplateHelper(\"coveoFieldValue\", function (fieldName) {\n return this.raw[fieldsHandler.toCoveo(fieldName)];\n });\n coveo_search_ui_1.TemplateHelpers.registerTemplateHelper(\"coveoFieldName\", function (fieldName) {\n return fieldsHandler.toCoveo(fieldName);\n });\n };\n ContextInitializer.prototype.initializeUnderscoreLabelsHelpers = function (labels) {\n coveo_search_ui_1.TemplateHelpers.registerTemplateHelper(\"translateLabel\", function (labelKey) {\n return labels.translate(labelKey);\n });\n };\n ContextInitializer.prototype.initializeUnderscoreContextHelpers = function (sourceName) {\n coveo_search_ui_1.TemplateHelpers.registerTemplateHelper(\"currentSourceName\", function () {\n return sourceName;\n });\n };\n ContextInitializer.prototype.initializeContextElement = function (contextElement) {\n Prebinding_1.Prebinding.applyPrebindingOnElement(contextElement);\n };\n return ContextInitializer;\n}());\nexports.ContextInitializer = ContextInitializer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/initialization/ContextInitializer.ts\n// module id = 29\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SearchInterfaceComponentInitializer_1 = require(\"../../resolvers/components/SearchInterfaceComponentInitializer\");\nvar SitecoreExperienceEditor_1 = require(\"./SitecoreExperienceEditor\");\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar ExternalComponentInitializer = (function () {\n function ExternalComponentInitializer(experienceEditor, searchInterfaceComponentInitializer) {\n if (experienceEditor === void 0) { experienceEditor = SitecoreExperienceEditor_1.getExperienceEditorInstance(); }\n if (searchInterfaceComponentInitializer === void 0) { searchInterfaceComponentInitializer = SearchInterfaceComponentInitializer_1.getInitializerInstance(); }\n this.experienceEditor = experienceEditor;\n this.searchInterfaceComponentInitializer = searchInterfaceComponentInitializer;\n }\n ExternalComponentInitializer.prototype.initializeExternalComponentSection = function (externalComponentsSection) {\n var searchInterface = this.findSearchInterfaceForSection(externalComponentsSection);\n if (!!searchInterface) {\n this.searchInterfaceComponentInitializer.loadComponentsWithSearchInterfaceInitialization(searchInterface, externalComponentsSection);\n }\n };\n ExternalComponentInitializer.prototype.initializeExperienceEditorHooksForExternalComponentsSection = function (externalComponentsSection) {\n var _this = this;\n var searchInterface = this.findSearchInterfaceForSection(externalComponentsSection);\n if (!!searchInterface) {\n this.experienceEditor.registerOnLoadRenderingFromUrl(function (callbackData) {\n if (!callbackData.error) {\n var component = _this.experienceEditor.getComponentFromLoadRenderingFromUrlCallbackData(callbackData);\n if (externalComponentsSection.contains(component)) {\n _this.searchInterfaceComponentInitializer.loadComponentsForSearchInterface(coveo_search_ui_1.get(searchInterface, coveo_search_ui_1.SearchInterface), component);\n }\n }\n });\n }\n };\n ExternalComponentInitializer.prototype.findSearchInterfaceForSection = function (externalComponentsSection) {\n var searchInterfaceId = externalComponentsSection.dataset.searchInterfaceId;\n var searchInterfaceElement = document.getElementById(searchInterfaceId);\n if (!!searchInterfaceElement) {\n return searchInterfaceElement;\n }\n else {\n console.warn(\"Could not find the search interface element with the following ID: \" + searchInterfaceId + \". Validate \\\"data-search-interface-id\\\" on the external components section element.\", externalComponentsSection);\n }\n };\n return ExternalComponentInitializer;\n}());\nexports.ExternalComponentInitializer = ExternalComponentInitializer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/initialization/ExternalComponentInitializer.ts\n// module id = 30\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Initialization_1 = require(\"../Initialization\");\nvar SearchInterfaceComponentInitializer_1 = require(\"../../resolvers/components/SearchInterfaceComponentInitializer\");\nvar SitecoreExperienceEditor_1 = require(\"./SitecoreExperienceEditor\");\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar SearchInterfaceInitializer = (function () {\n function SearchInterfaceInitializer(experienceEditor, searchInterfaceComponentInitializer) {\n if (experienceEditor === void 0) { experienceEditor = SitecoreExperienceEditor_1.getExperienceEditorInstance(); }\n if (searchInterfaceComponentInitializer === void 0) { searchInterfaceComponentInitializer = SearchInterfaceComponentInitializer_1.getInitializerInstance(); }\n this.experienceEditor = experienceEditor;\n this.searchInterfaceComponentInitializer = searchInterfaceComponentInitializer;\n }\n SearchInterfaceInitializer.prototype.initSearchInterface = function (searchInterface) {\n if (!this.experienceEditor.isInBackgroundRendering()) {\n this.experienceEditor.registerShowDebugInformationCallback();\n Initialization_1.initContextOnElement(searchInterface);\n return coveo_search_ui_1.init(searchInterface);\n }\n };\n SearchInterfaceInitializer.prototype.initializeExperienceEditorHooksForSearchInterface = function (searchInterface) {\n var _this = this;\n this.experienceEditor.registerOnLoadRenderingFromUrl(function (callbackData) {\n if (!callbackData.error) {\n var component = _this.experienceEditor.getComponentFromLoadRenderingFromUrlCallbackData(callbackData);\n // Since multiple search interfaces can register event handlers, this ensures that the component is initializing for the correct search interface.\n if (searchInterface.contains(component)) {\n var searchInterfaceComponent = Coveo.get(searchInterface, Coveo.SearchInterface);\n _this.searchInterfaceComponentInitializer.loadComponentsForSearchInterface(searchInterfaceComponent, component);\n }\n }\n });\n };\n return SearchInterfaceInitializer;\n}());\nexports.SearchInterfaceInitializer = SearchInterfaceInitializer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/initialization/SearchInterfaceInitializer.ts\n// module id = 31\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SearchInterfaceProvider_1 = require(\"../../utils/SearchInterfaceProvider\");\nvar ElementWithContextInitializer_1 = require(\"./ElementWithContextInitializer\");\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar SearchboxInitializer = (function () {\n function SearchboxInitializer() {\n this.searchInterfacesProvider = new SearchInterfaceProvider_1.SearchInterfacesProvider();\n }\n SearchboxInitializer.prototype.initSearchboxIfStandalone = function (searchboxElement, searchPageUri, options) {\n var _this = this;\n var searchInterfaces = this.searchInterfacesProvider.getSearchInterfacesInPage([\"Recommendation\", \"SearchInterface\"]);\n return this.waitForSearchInterfacesInitialization(searchInterfaces).then(function () {\n if (_this.searchboxElementIsNotInitialized(searchboxElement)) {\n if (!!searchPageUri) {\n ElementWithContextInitializer_1.ElementWithContextInitializer.initializeContextWithinElement(searchboxElement);\n // coveo-search-ui doesn't like an initSearchbox directly on the searchbox.\n coveo_search_ui_1.initSearchbox(searchboxElement.parentElement, searchPageUri, options);\n }\n else {\n console.warn(\"The search box is not included in any search interface and the \\\"searchPageUri\\\" parameters is not specified. Consider using a Global Searchbox instead.\", searchboxElement);\n }\n }\n });\n };\n SearchboxInitializer.prototype.searchboxElementIsNotInitialized = function (searchBoxElement) {\n return typeof (coveo_search_ui_1.get(searchBoxElement, Coveo.Searchbox)) === \"undefined\";\n };\n SearchboxInitializer.prototype.waitForSearchInterfacesInitialization = function (searchInterfaces) {\n return Promise.all(this.getAllSearchInterfacesAfterComponentInitialization(searchInterfaces))\n .then(function () { });\n };\n SearchboxInitializer.prototype.getAllSearchInterfacesAfterComponentInitialization = function (searchInterfaces) {\n var _this = this;\n return searchInterfaces.map(function (searchInterface) { return coveo_search_ui_1.$$(searchInterface); })\n .map(function (searchInterface) { return _this.waitForSearchInterfaceInitialization(searchInterface); });\n };\n SearchboxInitializer.prototype.waitForSearchInterfaceInitialization = function (searchInterface) {\n return new Promise(function (resolve, reject) {\n searchInterface.on(coveo_search_ui_1.InitializationEvents.afterComponentsInitialization, function () { return resolve(); });\n });\n };\n return SearchboxInitializer;\n}());\nexports.SearchboxInitializer = SearchboxInitializer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base/initialization/SearchboxInitializer.ts\n// module id = 32\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CoveoFieldsHandler = (function () {\n function CoveoFieldsHandler(externalFields, prefix, suffix) {\n this.externalFields = externalFields;\n this.prefix = prefix;\n this.suffix = suffix;\n this.loadExternalFields(externalFields);\n this.prefix = prefix;\n this.suffix = suffix;\n }\n CoveoFieldsHandler.prototype.toCoveo = function (fieldName) {\n if (this.isValidFieldName(fieldName)) {\n var fieldWithoutDelimiter = this.stripCoveoFieldDelimiter(fieldName);\n var translatedFieldWithoutDelimiter = this.translateFieldName(fieldWithoutDelimiter);\n return this.startsWithAt(fieldName) ? this.addCoveoFieldDelimiter(translatedFieldWithoutDelimiter) : translatedFieldWithoutDelimiter;\n }\n else {\n console.error(\"Could not translate the '\" + fieldName + \"' field to a Coveo field. Returning as is.\");\n return fieldName;\n }\n };\n CoveoFieldsHandler.prototype.addCoveoFieldDelimiter = function (fieldName) {\n var fieldNameWithDelimiter = fieldName;\n if (!this.startsWithAt(fieldName)) {\n fieldNameWithDelimiter = (\"\" + CoveoFieldsHandler.coveoFieldDelimiter + fieldName).toLowerCase();\n }\n return fieldNameWithDelimiter;\n };\n CoveoFieldsHandler.prototype.loadExternalFields = function (externalFields) {\n var _this = this;\n this.externalFields = [];\n externalFields.forEach(function (externalField) {\n if (typeof (externalField) === \"string\") {\n _this.externalFields.push({\n \"fieldName\": externalField,\n \"shouldEscape\": false\n });\n }\n else if (_this.isExternalFieldConfig(externalField)) {\n _this.externalFields.push(externalField);\n }\n else {\n console.error(\"Invalid external field '\" + externalField + \"'.\");\n }\n });\n };\n CoveoFieldsHandler.prototype.isValidFieldName = function (fieldName) {\n return typeof (fieldName) !== \"undefined\" && fieldName !== \"\";\n };\n CoveoFieldsHandler.prototype.startsWithAt = function (fieldName) {\n return fieldName[0] === CoveoFieldsHandler.coveoFieldDelimiter;\n };\n CoveoFieldsHandler.prototype.stripCoveoFieldDelimiter = function (fieldName) {\n var field = fieldName;\n if (this.startsWithAt(fieldName)) {\n field = field.substr(1);\n }\n return field;\n };\n CoveoFieldsHandler.prototype.translateFieldName = function (fieldName) {\n var field = fieldName;\n if (this.shouldReplaceSpecialCharacters(fieldName)) {\n field = this.replaceSpecialCharacters(field);\n }\n if (this.shouldDecorate(fieldName)) {\n field = this.prefix + field + this.suffix;\n }\n return field;\n };\n CoveoFieldsHandler.prototype.replaceSpecialCharacters = function (fieldName) {\n return fieldName.split(\"\")\n .map(this.replaceSpecialCharacter.bind(this))\n .join(\"\");\n };\n CoveoFieldsHandler.prototype.replaceSpecialCharacter = function (character) {\n if (character.match(CoveoFieldsHandler.nonSpecialCharacters)) {\n return character;\n }\n else {\n return this.escapeSpecialCharacter(character);\n }\n };\n CoveoFieldsHandler.prototype.escapeSpecialCharacter = function (character) {\n return \"z\" + character.charCodeAt(0) + \"x\";\n };\n CoveoFieldsHandler.prototype.shouldReplaceSpecialCharacters = function (fieldName) {\n var fields = this.externalFields.filter(function (field) { return field.fieldName === fieldName; });\n return fields.length > 0 ? fields[0].shouldEscape : true;\n };\n CoveoFieldsHandler.prototype.shouldDecorate = function (fieldName) {\n return !this.externalFields.some(function (field) { return field.fieldName === fieldName; });\n };\n CoveoFieldsHandler.prototype.isExternalFieldConfig = function (obj) {\n return typeof (obj) !== \"undefined\" &&\n typeof (obj.fieldName) !== \"undefined\" &&\n typeof (obj.shouldEscape) !== \"undefined\";\n };\n return CoveoFieldsHandler;\n}());\n// 'z' and 'x' are also considered as special characters because\n// they are used in the escaping logic. So we have to remove them\n// from the regular expression pattern.\nCoveoFieldsHandler.nonSpecialCharacters = /[a-wyA-WY0-9]/;\nCoveoFieldsHandler.coveoFieldDelimiter = \"@\";\nexports.CoveoFieldsHandler = CoveoFieldsHandler;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/handlers/CoveoFieldsHandler.ts\n// module id = 33\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CoveoLabelsHandler = (function () {\n function CoveoLabelsHandler(labels) {\n this.labels = labels;\n }\n CoveoLabelsHandler.prototype.translate = function (key) {\n return this.labels[key] || key;\n };\n return CoveoLabelsHandler;\n}());\nexports.CoveoLabelsHandler = CoveoLabelsHandler;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/handlers/CoveoLabelsHandler.ts\n// module id = 34\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar AnalyticsEnabled_1 = require(\"./prebindHelpers/AnalyticsEnabled\");\nvar CoveoForSitecoreAnalyticsEndpoint_1 = require(\"./prebindHelpers/CoveoForSitecoreAnalyticsEndpoint\");\nvar CurrentPageName_1 = require(\"./prebindHelpers/CurrentPageName\");\nvar FieldTranslator_1 = require(\"./prebindHelpers/FieldTranslator\");\nvar IsAnonymous_1 = require(\"./prebindHelpers/IsAnonymous\");\nvar MainSearchInterfaceSelector_1 = require(\"./prebindHelpers/MainSearchInterfaceSelector\");\nvar SortCriteria_1 = require(\"./prebindHelpers/SortCriteria\");\nvar UnfoldDictionaryToAttributes_1 = require(\"./prebindHelpers/UnfoldDictionaryToAttributes\");\nvar PrebindHelpers = (function () {\n function PrebindHelpers() {\n }\n PrebindHelpers.getAllPrebindHelpers = function () {\n return [\n new AnalyticsEnabled_1.AnalyticsEnabledPrebind(),\n new CoveoForSitecoreAnalyticsEndpoint_1.CoveoForSitecoreAnalyticsEndpointPrebind(),\n new CurrentPageName_1.CurrentPageNamePrebind(),\n new FieldTranslator_1.FieldTranslatorPrebind(),\n new IsAnonymous_1.IsAnonymousPrebind(),\n new MainSearchInterfaceSelector_1.MainSearchInterfaceSelectorPrebind(),\n new SortCriteria_1.SortCriteriaPrebind(),\n new UnfoldDictionaryToAttributes_1.UnfoldDictionaryToAttributesPrebind(),\n ];\n };\n return PrebindHelpers;\n}());\nexports.PrebindHelpers = PrebindHelpers;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/PrebindHelpers.ts\n// module id = 35\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar PrebindResolver = (function () {\n function PrebindResolver() {\n this.prebindAppliedValue = \"appliedPrebind\";\n this.helpers = {};\n }\n PrebindResolver.prototype.registerPrebindHelper = function (helperName, handler) {\n if (typeof (helperName) !== \"string\" || helperName === \"\") {\n throw \"You must define a name for the prebind helper.\";\n }\n if (typeof (handler) === \"undefined\" || handler === null) {\n throw \"You must define a handler for the prebind helper.\";\n }\n if (this.helpers.hasOwnProperty(helperName)) {\n console.warn(\"A prebind handler already exists for '\" + helperName + \"'. It will be ignored\");\n return;\n }\n this.helpers[helperName] = handler;\n };\n PrebindResolver.prototype.hasHelper = function (helperName) {\n return this.helpers.hasOwnProperty(helperName);\n };\n PrebindResolver.prototype.getHelper = function (helperName) {\n if (!this.hasHelper(helperName)) {\n throw \"'\" + helperName + \"' has no registered helper.\";\n }\n return this.helpers[helperName];\n };\n PrebindResolver.prototype.hasNotAppliedPrebind = function (element) {\n return element.dataset[this.prebindAppliedValue] !== \"true\";\n };\n PrebindResolver.prototype.applyToElement = function (element) {\n var _this = this;\n try {\n var attributes = this.getPrebindingAttributesForElement(element);\n if (attributes.length > 0) {\n element.dataset[this.prebindAppliedValue] = \"true\";\n }\n attributes.forEach(function (attributes) { return _this.applyPrebindToElement(attributes, element); });\n }\n catch (exception) {\n console.warn(\"(CoveoForSitecore) prebinding failed on element.\", element, exception);\n }\n };\n PrebindResolver.prototype.getPrebindingAttributesForElement = function (element) {\n var _this = this;\n return this.getAllPrebindingAttributesNames(element).map(function (key) {\n var methodName = element.dataset[key];\n var attribute = _this.lowerCaseFirstCharacter(_this.removePrebindPrefix(key));\n return {\n attribute: attribute,\n attributeValue: element.dataset[attribute] || \"\",\n method: _this.getHelper(methodName)\n };\n });\n };\n PrebindResolver.prototype.getAllPrebindingAttributesNames = function (element) {\n var _this = this;\n return Object.keys(element.dataset)\n .filter(function (key) { return _this.stringStartsWithPrebindingString(key); })\n .filter(function (key) {\n var helperName = element.dataset[key];\n return _this.filterAndWarnNonExistingHelperName(helperName, element);\n });\n };\n PrebindResolver.prototype.stringStartsWithPrebindingString = function (value) {\n return value.lastIndexOf(PrebindResolver.prebindString) === 0;\n };\n PrebindResolver.prototype.filterAndWarnNonExistingHelperName = function (helperName, element) {\n var hasHelperWithName = this.hasHelper(helperName);\n if (!hasHelperWithName) {\n console.warn(\"(CoveoForSitecore) an unregistered prebinding '\" + helperName + \"' was set on the element. Register this method using Prebinding.registerPrebindHelper(\\\"\" + helperName + \"\\\", handler).\", element);\n }\n return hasHelperWithName;\n };\n PrebindResolver.prototype.removePrebindPrefix = function (attributeName) {\n return attributeName.substring(PrebindResolver.prebindString.length);\n };\n PrebindResolver.prototype.lowerCaseFirstCharacter = function (value) {\n return value.charAt(0).toLowerCase() + value.slice(1);\n };\n PrebindResolver.prototype.applyPrebindToElement = function (prebind, element) {\n element.dataset[prebind.attribute] = prebind.method(prebind.attributeValue, element);\n };\n return PrebindResolver;\n}());\nPrebindResolver.prebindString = \"prebind\";\nexports.PrebindResolver = PrebindResolver;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/PrebindResolver.ts\n// module id = 36\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar AnalyticsEnabledPrebind = (function () {\n function AnalyticsEnabledPrebind() {\n this.name = \"analyticsEnabled\";\n }\n AnalyticsEnabledPrebind.prototype.getPrebind = function (args) {\n return function (currentValue, element) {\n return args.context.scAnalyticsEnabled ? \"true\" : \"false\";\n };\n };\n return AnalyticsEnabledPrebind;\n}());\nexports.AnalyticsEnabledPrebind = AnalyticsEnabledPrebind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/prebindHelpers/AnalyticsEnabled.ts\n// module id = 37\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CoveoForSitecoreAnalyticsEndpointPrebind = (function () {\n function CoveoForSitecoreAnalyticsEndpointPrebind() {\n this.name = \"coveoForSitecoreAnalyticsEndpoint\";\n }\n CoveoForSitecoreAnalyticsEndpointPrebind.prototype.getPrebind = function (args) {\n return function (currentValue, element) {\n return currentValue || args.context.scRestEndpointUri + \"/coveoanalytics\";\n };\n };\n return CoveoForSitecoreAnalyticsEndpointPrebind;\n}());\nexports.CoveoForSitecoreAnalyticsEndpointPrebind = CoveoForSitecoreAnalyticsEndpointPrebind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/prebindHelpers/CoveoForSitecoreAnalyticsEndpoint.ts\n// module id = 38\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CurrentPageNamePrebind = (function () {\n function CurrentPageNamePrebind() {\n this.name = \"currentPageName\";\n }\n CurrentPageNamePrebind.prototype.getPrebind = function (args) {\n return function (pageName, element) {\n return pageName || args.context.scPageName;\n };\n };\n return CurrentPageNamePrebind;\n}());\nexports.CurrentPageNamePrebind = CurrentPageNamePrebind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/prebindHelpers/CurrentPageName.ts\n// module id = 39\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar FieldTranslatorPrebind = (function () {\n function FieldTranslatorPrebind() {\n this.name = \"fieldTranslator\";\n }\n FieldTranslatorPrebind.prototype.getPrebind = function (args) {\n return function (name, element) {\n return args.fieldsHandler.toCoveo(name);\n };\n };\n return FieldTranslatorPrebind;\n}());\nexports.FieldTranslatorPrebind = FieldTranslatorPrebind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/prebindHelpers/FieldTranslator.ts\n// module id = 40\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar IsAnonymousPrebind = (function () {\n function IsAnonymousPrebind() {\n this.name = \"isAnonymous\";\n }\n IsAnonymousPrebind.prototype.getPrebind = function (args) {\n return function (isAnonymous, element) {\n return args.context.scIsUserAnonymous ? \"true\" : \"false\";\n };\n };\n return IsAnonymousPrebind;\n}());\nexports.IsAnonymousPrebind = IsAnonymousPrebind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/prebindHelpers/IsAnonymous.ts\n// module id = 41\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar MainSearchInterfaceSelectorPrebind = (function () {\n function MainSearchInterfaceSelectorPrebind() {\n this.name = \"mainSearchInterfaceSelector\";\n this.resolvers = [\n new ResolveIfSelector(),\n new ResolveIfSearchInterfaceIdInPage(),\n new ResolveParentSearchInterfaceId(),\n new UseMainSearchInterfaceSelectorAsIs()\n ];\n }\n MainSearchInterfaceSelectorPrebind.prototype.getPrebind = function (args) {\n var _this = this;\n return function (mainSearchInterfaceId, element) {\n var resolver = _this.getFirstValidResolver(mainSearchInterfaceId, element);\n return resolver.getValue(mainSearchInterfaceId, element);\n };\n };\n MainSearchInterfaceSelectorPrebind.prototype.getFirstValidResolver = function (mainSearchInterfaceId, element) {\n var resolver;\n do {\n if (this.resolvers.length === 0) {\n var message = \"Could not resolve the search interface element using the current resolver. Ensure that a valid value is set.\";\n console.error(message, {\n mainSearchInterfaceId: mainSearchInterfaceId,\n element: element\n });\n throw message;\n }\n resolver = this.resolvers.shift();\n } while (!resolver.canResolve(mainSearchInterfaceId, element));\n return resolver;\n };\n return MainSearchInterfaceSelectorPrebind;\n}());\nexports.MainSearchInterfaceSelectorPrebind = MainSearchInterfaceSelectorPrebind;\nvar ResolveIfSearchInterfaceIdInPage = (function () {\n function ResolveIfSearchInterfaceIdInPage() {\n }\n ResolveIfSearchInterfaceIdInPage.prototype.canResolve = function (mainSearchInterfaceId) {\n return this.isMainSearchInterfaceDefined(mainSearchInterfaceId) &&\n this.isIdSelectorValid(\"#\" + mainSearchInterfaceId);\n };\n ResolveIfSearchInterfaceIdInPage.prototype.getValue = function (mainSearchInterfaceId) {\n return \"#\" + mainSearchInterfaceId;\n };\n ResolveIfSearchInterfaceIdInPage.prototype.isMainSearchInterfaceDefined = function (mainSearchInterfaceId) {\n return !!mainSearchInterfaceId;\n };\n ResolveIfSearchInterfaceIdInPage.prototype.isIdSelectorValid = function (selector) {\n return document.querySelector(selector) !== null;\n };\n return ResolveIfSearchInterfaceIdInPage;\n}());\nvar ResolveParentSearchInterfaceId = (function () {\n function ResolveParentSearchInterfaceId() {\n }\n ResolveParentSearchInterfaceId.prototype.canResolve = function (mainSearchInterfaceId, element) {\n return this.getValue(mainSearchInterfaceId, element) !== null;\n };\n ResolveParentSearchInterfaceId.prototype.getValue = function (mainSearchInterfaceId, element) {\n if (typeof (this.foundId) === \"undefined\") {\n this.foundId = this.tryFindParentSearchInterfaceFromElement(element);\n }\n return this.foundId;\n };\n ResolveParentSearchInterfaceId.prototype.tryFindParentSearchInterfaceFromElement = function (element) {\n var parentSearchInterface = this.findParentWithClass(element, \"Coveo\" + coveo_search_ui_1.SearchInterface.ID);\n return !!parentSearchInterface ? \"#\" + parentSearchInterface.id : null;\n };\n ResolveParentSearchInterfaceId.prototype.findParentWithClass = function (element, className) {\n var parent = element.parentElement;\n while ((parent = parent.parentElement) && !parent.classList.contains(className)) { }\n return parent;\n };\n return ResolveParentSearchInterfaceId;\n}());\nvar ResolveIfSelector = (function () {\n function ResolveIfSelector() {\n }\n ResolveIfSelector.prototype.canResolve = function (mainSearchInterfaceId, element) {\n return !!mainSearchInterfaceId &&\n this.isStartingWithSelectorCharacter(mainSearchInterfaceId);\n };\n ResolveIfSelector.prototype.getValue = function (mainSearchInterfaceId, element) {\n return mainSearchInterfaceId;\n };\n ResolveIfSelector.prototype.isStartingWithSelectorCharacter = function (mainSearchInterfaceId) {\n var firstCharacter = mainSearchInterfaceId[0];\n return [\".\", \"#\"].indexOf(firstCharacter) !== -1;\n };\n return ResolveIfSelector;\n}());\nvar UseMainSearchInterfaceSelectorAsIs = (function () {\n function UseMainSearchInterfaceSelectorAsIs() {\n }\n UseMainSearchInterfaceSelectorAsIs.prototype.canResolve = function (mainSearchInterfaceId, element) {\n return true;\n };\n UseMainSearchInterfaceSelectorAsIs.prototype.getValue = function (mainSearchInterfaceId, element) {\n return mainSearchInterfaceId;\n };\n return UseMainSearchInterfaceSelectorAsIs;\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/prebindHelpers/MainSearchInterfaceSelector.ts\n// module id = 42\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SortCriteriaResolver_1 = require(\"../../sortCriteria/SortCriteriaResolver\");\nvar SortCriteriaPrebind = (function () {\n function SortCriteriaPrebind() {\n this.name = \"sortCriteriaResolver\";\n }\n SortCriteriaPrebind.prototype.getPrebind = function (args) {\n var criteriaResolver = new SortCriteriaResolver_1.SortCriteriaResolver(args.fieldsHandler);\n return function (sortCriteriaRawValue, element) {\n var sortCriteria = JSON.parse(sortCriteriaRawValue);\n if (Object.keys(sortCriteria).length === 0) {\n return null;\n }\n var sortType = (sortCriteria.type || \"relevancy\").toLowerCase();\n var sortDirection = (sortCriteria.direction || \"ascending\").toLowerCase();\n var toggleDirection = (element.dataset[\"scEnableDirectionToggle\"] || \"false\").toLowerCase() === \"true\";\n if (sortType === \"relevancy\") {\n return criteriaResolver.resolveRelevancyCriteria();\n }\n else if (sortType === \"date\") {\n return criteriaResolver.resolveDateCriteria(sortDirection, toggleDirection);\n }\n else {\n var sortField = sortCriteria.field;\n return criteriaResolver.resolveFieldCriteria(sortField, sortDirection, toggleDirection);\n }\n };\n };\n return SortCriteriaPrebind;\n}());\nexports.SortCriteriaPrebind = SortCriteriaPrebind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/prebindHelpers/SortCriteria.ts\n// module id = 43\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar UnfoldDictionaryToAttributesPrebind = (function () {\n function UnfoldDictionaryToAttributesPrebind() {\n this.name = \"unfoldDictionaryToAttributesPrebind\";\n }\n UnfoldDictionaryToAttributesPrebind.prototype.getPrebind = function (args) {\n return function (rawDictionary, element) {\n var parsedDictionary = JSON.parse(rawDictionary);\n Object.keys(parsedDictionary).forEach(function (key) {\n var translatedField = args.fieldsHandler.toCoveo(key);\n var dataKey = \"field\" + translatedField.charAt(0).toUpperCase() + translatedField.slice(1);\n element.dataset[dataKey] = parsedDictionary[key];\n });\n return rawDictionary;\n };\n };\n return UnfoldDictionaryToAttributesPrebind;\n}());\nexports.UnfoldDictionaryToAttributesPrebind = UnfoldDictionaryToAttributesPrebind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/prebinding/prebindHelpers/UnfoldDictionaryToAttributes.ts\n// module id = 44\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SortCriteriaResolver = (function () {\n function SortCriteriaResolver(fieldsHandler) {\n this.fieldsHandler = fieldsHandler;\n }\n SortCriteriaResolver.prototype.resolveFieldCriteria = function (fieldCriteria, sortDirection, enableToggle) {\n var field = fieldCriteria.charAt(0) !== \"@\" ? \"@\" + fieldCriteria : fieldCriteria;\n return this.getFieldCriteria(this.fieldsHandler.toCoveo(field), sortDirection, enableToggle);\n };\n SortCriteriaResolver.prototype.resolveDateCriteria = function (sortDirection, enableToggle) {\n return this.getFieldCriteria(\"date\", sortDirection, enableToggle);\n };\n SortCriteriaResolver.prototype.resolveRelevancyCriteria = function () {\n return \"relevancy\";\n };\n SortCriteriaResolver.prototype.getFieldCriteria = function (fieldCriteria, sortDirection, enableToggle) {\n if (enableToggle) {\n return this.getFieldWithDirection(fieldCriteria, sortDirection) + \", \" + this.getFieldWithDirection(fieldCriteria, this.getInvertedDirection(sortDirection));\n }\n else {\n return this.getFieldWithDirection(fieldCriteria, sortDirection);\n }\n };\n SortCriteriaResolver.prototype.getFieldWithDirection = function (fieldCriteria, sortDirection) {\n return fieldCriteria + \" \" + sortDirection;\n };\n SortCriteriaResolver.prototype.getInvertedDirection = function (sortDirection) {\n return sortDirection === \"descending\" ? \"ascending\" : \"descending\";\n };\n return SortCriteriaResolver;\n}());\nexports.SortCriteriaResolver = SortCriteriaResolver;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/resolvers/sortCriteria/SortCriteriaResolver.ts\n// module id = 45\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nvar HTMLUtils_1 = require(\"./HTMLUtils\");\nvar SearchInterfacesProvider = (function () {\n function SearchInterfacesProvider() {\n }\n SearchInterfacesProvider.prototype.getSearchInterfacesInPage = function (componentsIds) {\n var searchInterfacesSelector = this.getSearchInterfacesSelectorFromComponentIds(componentsIds);\n var searchInterfaces = document.querySelectorAll(searchInterfacesSelector);\n return HTMLUtils_1.nodeListToArray(searchInterfaces);\n };\n SearchInterfacesProvider.prototype.getSearchInterfacesSelectorFromComponentIds = function (componentIds) {\n return componentIds.map(function (componentId) { return coveo_search_ui_1.Component.computeSelectorForType(componentId); })\n .join(\", \");\n };\n return SearchInterfacesProvider;\n}());\nexports.SearchInterfacesProvider = SearchInterfacesProvider;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/utils/SearchInterfaceProvider.ts\n// module id = 46\n// module chunks = 13 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoForSitecoreAnalytics() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreAnalytics\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./CoveoForSitecoreAnalytics\"], function () {\n var loaded = require(\"./CoveoForSitecoreAnalytics.ts\")[\"CoveoForSitecoreAnalytics\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreAnalytics\", resolve), \"CoveoForSitecoreAnalytics\");\n });\n });\n}\nexports.lazyCoveoForSitecoreAnalytics = lazyCoveoForSitecoreAnalytics;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/analytics/LazyCoveoForSitecoreAnalytics.ts\n// module id = 49\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoSendAnalyticsToSitecore() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"SendAnalyticsToSitecore\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./SendAnalyticsToSitecore\"], function () {\n var loaded = require(\"./SendAnalyticsToSitecore.ts\")[\"SendAnalyticsToSitecore\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"SendAnalyticsToSitecore\", resolve), \"SendAnalyticsToSitecore\");\n });\n });\n}\nexports.lazyCoveoSendAnalyticsToSitecore = lazyCoveoSendAnalyticsToSitecore;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/analytics/LazySendAnalyticsToSitecore.ts\n// module id = 50\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyValidateAnalyticsIncluded() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ValidateAnalyticsIncluded\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./ValidateAnalyticsIncluded\"], function () {\n var loaded = require(\"./ValidateAnalyticsIncluded.ts\")[\"ValidateAnalyticsIncluded\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"ValidateAnalyticsIncluded\", resolve), \"ValidateAnalyticsIncluded\");\n });\n });\n}\nexports.lazyValidateAnalyticsIncluded = lazyValidateAnalyticsIncluded;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/analytics/LazyValidateAnalyticsIncluded.ts\n// module id = 51\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoForSitecoreBindWithUserContext() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreBindWithUserContext\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./CoveoForSitecoreBindWithUserContext\"], function () {\n var loaded = require(\"./CoveoForSitecoreBindWithUserContext.ts\")[\"CoveoForSitecoreBindWithUserContext\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreBindWithUserContext\", resolve), \"CoveoForSitecoreBindWithUserContext\");\n });\n });\n}\nexports.lazyCoveoForSitecoreBindWithUserContext = lazyCoveoForSitecoreBindWithUserContext;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/context/LazyCoveoForSitecoreBindWithUserContext.ts\n// module id = 52\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoDistanceResources() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"DistanceResources\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./DistanceResources\"], function () {\n var loaded = require(\"./DistanceResources.ts\")[\"DistanceResources\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"DistanceResources\", resolve), \"DistanceResources\");\n });\n });\n}\nexports.lazyCoveoDistanceResources = lazyCoveoDistanceResources;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/distance/LazyDistanceResources.ts\n// module id = 53\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoGoogleApiPositionProvider() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"GoogleApiPositionProvider\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./GoogleApiPositionProvider\"], function () {\n var loaded = require(\"./GoogleApiPositionProvider.ts\")[\"GoogleApiPositionProvider\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"GoogleApiPositionProvider\", resolve), \"GoogleApiPositionProvider\");\n });\n });\n}\nexports.lazyCoveoGoogleApiPositionProvider = lazyCoveoGoogleApiPositionProvider;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/distance/LazyGoogleApiPositionProvider.ts\n// module id = 54\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoNavigatorPositionProvider() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"NavigatorPositionProvider\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./NavigatorPositionProvider\"], function () {\n var loaded = require(\"./NavigatorPositionProvider.ts\")[\"NavigatorPositionProvider\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"NavigatorPositionProvider\", resolve), \"NavigatorPositionProvider\");\n });\n });\n}\nexports.lazyCoveoNavigatorPositionProvider = lazyCoveoNavigatorPositionProvider;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/distance/LazyNavigatorPositionProvider.ts\n// module id = 55\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoStaticPositionProvider() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"StaticPositionProvider\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./StaticPositionProvider\"], function () {\n var loaded = require(\"./StaticPositionProvider.ts\")[\"StaticPositionProvider\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"StaticPositionProvider\", resolve), \"StaticPositionProvider\");\n });\n });\n}\nexports.lazyCoveoStaticPositionProvider = lazyCoveoStaticPositionProvider;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/distance/LazyStaticPositionProvider.ts\n// module id = 56\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoForSitecoreExpressions() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreExpressions\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./CoveoForSitecoreExpressions\"], function () {\n var loaded = require(\"./CoveoForSitecoreExpressions.ts\")[\"CoveoForSitecoreExpressions\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreExpressions\", resolve), \"CoveoForSitecoreExpressions\");\n });\n });\n}\nexports.lazyCoveoForSitecoreExpressions = lazyCoveoForSitecoreExpressions;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/scopes/LazyCoveoForSitecoreExpressions.ts\n// module id = 57\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoForSitecoreExternalContent() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreExternalContent\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./CoveoForSitecoreExternalContent\"], function () {\n var loaded = require(\"./CoveoForSitecoreExternalContent.ts\")[\"CoveoForSitecoreExternalContent\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreExternalContent\", resolve), \"CoveoForSitecoreExternalContent\");\n });\n });\n}\nexports.lazyCoveoForSitecoreExternalContent = lazyCoveoForSitecoreExternalContent;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/scopes/LazyCoveoForSitecoreExternalContent.ts\n// module id = 58\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoForSitecoreFilterExpression() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreFilterExpression\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./CoveoForSitecoreFilterExpression\"], function () {\n var loaded = require(\"./CoveoForSitecoreFilterExpression.ts\")[\"CoveoForSitecoreFilterExpression\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreFilterExpression\", resolve), \"CoveoForSitecoreFilterExpression\");\n });\n });\n}\nexports.lazyCoveoForSitecoreFilterExpression = lazyCoveoForSitecoreFilterExpression;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/scopes/LazyCoveoForSitecoreFilterExpression.ts\n// module id = 59\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoForSitecoreLocalExpression() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreLocalExpression\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./CoveoForSitecoreLocalExpression\"], function () {\n var loaded = require(\"./CoveoForSitecoreLocalExpression.ts\")[\"CoveoForSitecoreLocalExpression\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreLocalExpression\", resolve), \"CoveoForSitecoreLocalExpression\");\n });\n });\n}\nexports.lazyCoveoForSitecoreLocalExpression = lazyCoveoForSitecoreLocalExpression;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/scopes/LazyCoveoForSitecoreLocalExpression.ts\n// module id = 60\n// module chunks = 14","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\nfunction lazyCoveoForSitecoreRankingExpression() {\n coveo_search_ui_1.LazyInitialization.registerLazyComponent(\"ForSitecoreRankingExpression\", function () {\n return new Promise(function (resolve, reject) {\n require.ensure([\"./CoveoForSitecoreRankingExpression\"], function () {\n var loaded = require(\"./CoveoForSitecoreRankingExpression.ts\")[\"CoveoForSitecoreRankingExpression\"];\n resolve(loaded);\n }, coveo_search_ui_1.LazyInitialization.buildErrorCallback(\"CoveoForSitecoreRankingExpression\", resolve), \"CoveoForSitecoreRankingExpression\");\n });\n });\n}\nexports.lazyCoveoForSitecoreRankingExpression = lazyCoveoForSitecoreRankingExpression;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/ui/scopes/LazyCoveoForSitecoreRankingExpression.ts\n// module id = 61\n// module chunks = 14","module.exports = CoveoForSitecoreUserContext;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"CoveoForSitecoreUserContext\"\n// module id = 73\n// module chunks = 13","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar coveo_search_ui_1 = require(\"coveo-search-ui\");\n__webpack_public_path__ = coveo_search_ui_1.PublicPathUtils.getDynamicPublicPath();\nvar CoveoForSitecoreContext_1 = require(\"./ui/context/CoveoForSitecoreContext\");\nexports.CoveoForSitecoreContext = CoveoForSitecoreContext_1.CoveoForSitecoreContext;\nvar LazyCoveoForSitecoreAnalytics_1 = require(\"./ui/analytics/LazyCoveoForSitecoreAnalytics\");\nLazyCoveoForSitecoreAnalytics_1.lazyCoveoForSitecoreAnalytics();\nvar LazySendAnalyticsToSitecore_1 = require(\"./ui/analytics/LazySendAnalyticsToSitecore\");\nLazySendAnalyticsToSitecore_1.lazyCoveoSendAnalyticsToSitecore();\nvar LazyValidateAnalyticsIncluded_1 = require(\"./ui/analytics/LazyValidateAnalyticsIncluded\");\nLazyValidateAnalyticsIncluded_1.lazyValidateAnalyticsIncluded();\nvar LazyCoveoForSitecoreBindWithUserContext_1 = require(\"./ui/context/LazyCoveoForSitecoreBindWithUserContext\");\nLazyCoveoForSitecoreBindWithUserContext_1.lazyCoveoForSitecoreBindWithUserContext();\nvar LazyCoveoForSitecoreExpressions_1 = require(\"./ui/scopes/LazyCoveoForSitecoreExpressions\");\nLazyCoveoForSitecoreExpressions_1.lazyCoveoForSitecoreExpressions();\nvar LazyCoveoForSitecoreRankingExpression_1 = require(\"./ui/scopes/LazyCoveoForSitecoreRankingExpression\");\nLazyCoveoForSitecoreRankingExpression_1.lazyCoveoForSitecoreRankingExpression();\nvar LazyCoveoForSitecoreExternalContent_1 = require(\"./ui/scopes/LazyCoveoForSitecoreExternalContent\");\nLazyCoveoForSitecoreExternalContent_1.lazyCoveoForSitecoreExternalContent();\nvar LazyCoveoForSitecoreFilterExpression_1 = require(\"./ui/scopes/LazyCoveoForSitecoreFilterExpression\");\nLazyCoveoForSitecoreFilterExpression_1.lazyCoveoForSitecoreFilterExpression();\nvar LazyCoveoForSitecoreLocalExpression_1 = require(\"./ui/scopes/LazyCoveoForSitecoreLocalExpression\");\nLazyCoveoForSitecoreLocalExpression_1.lazyCoveoForSitecoreLocalExpression();\nvar LazyDistanceResources_1 = require(\"./ui/distance/LazyDistanceResources\");\nLazyDistanceResources_1.lazyCoveoDistanceResources();\nvar LazyGoogleApiPositionProvider_1 = require(\"./ui/distance/LazyGoogleApiPositionProvider\");\nLazyGoogleApiPositionProvider_1.lazyCoveoGoogleApiPositionProvider();\nvar LazyNavigatorPositionProvider_1 = require(\"./ui/distance/LazyNavigatorPositionProvider\");\nLazyNavigatorPositionProvider_1.lazyCoveoNavigatorPositionProvider();\nvar LazyStaticPositionProvider_1 = require(\"./ui/distance/LazyStaticPositionProvider\");\nLazyStaticPositionProvider_1.lazyCoveoStaticPositionProvider();\n__export(require(\"./EventsModules\"));\n__export(require(\"./BaseModules\"));\n__export(require(\"./base/Initialization\"));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/LazyEntry.ts\n// module id = 75\n// module chunks = 14"],"sourceRoot":""}