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02637.js","sourcesContent":["import { Component } from '../Base/Component';\nimport { IComponentBindings } from '../Base/ComponentBindings';\nimport { IQueryResult } from '../../rest/QueryResult';\nimport { ComponentOptions } from '../Base/ComponentOptions';\nimport { Assert } from '../../misc/Assert';\nimport { HighlightUtils } from '../../utils/HighlightUtils';\nimport { Initialization } from '../Base/Initialization';\nimport { exportGlobally } from '../../GlobalExports';\nimport 'styling/_Excerpt';\n\n/**\n * The Excerpt component renders an excerpt of its associated result and highlights the keywords from the query using\n * the appropriate template helpers.\n *\n * This component is a result template component (see [Result Templates](https://developers.coveo.com/x/aIGfAQ)).\n */\nexport class Excerpt extends Component {\n static ID = 'Excerpt';\n\n static doExport = () => {\n exportGlobally({\n Excerpt: Excerpt\n });\n };\n\n /**\n * Creates a new Excerpt component.\n * @param element The HTMLElement on which to instantiate the component.\n * @param options The options for the Excerpt component.\n * @param bindings The bindings that the component requires to function normally. If not set, these will be\n * automatically resolved (with a slower execution time).\n * @param result The result to associate the component with.\n */\n constructor(public element: HTMLElement, public options?: any, public bindings?: IComponentBindings, public result?: IQueryResult) {\n super(element, Excerpt.ID, bindings);\n this.options = ComponentOptions.initComponentOptions(element, Excerpt, options);\n this.result = this.result || this.resolveResult();\n Assert.exists(this.result);\n this.element.innerHTML = HighlightUtils.highlightString(this.result.excerpt, this.result.excerptHighlights, null, 'coveo-highlight');\n }\n}\n\nInitialization.registerAutoCreateComponent(Excerpt);\n\n\n\n// WEBPACK FOOTER //\n// ./src/ui/Excerpt/Excerpt.ts","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./sass/_Excerpt.scss\n// module id = 438\n// module chunks = 68 77"],"sourceRoot":""}