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UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;;;ACtBA,wFAAwF;;;AAExF,wFAA6C;AAApC,mHAAU","sources":["webpack://CoveoExtension/./src/ui/HelloWorld.ts","webpack://CoveoExtension/external var \"Coveo\"","webpack://CoveoExtension/webpack/bootstrap","webpack://CoveoExtension/./src/Index.ts"],"sourcesContent":["import {\r\n Component,\r\n ComponentOptions,\r\n IComponentBindings,\r\n $$,\r\n QueryEvents,\r\n IBuildingQueryEventArgs,\r\n Initialization\r\n} from 'coveo-search-ui';\r\n\r\nexport interface IHelloWorldOptions {\r\n dummyOptionText: string;\r\n dummyOptionQuery: string;\r\n}\r\n\r\nexport class HelloWorld extends Component {\r\n static ID = 'HelloWorld';\r\n\r\n static options: IHelloWorldOptions = {\r\n dummyOptionText: ComponentOptions.buildStringOption({\r\n defaultValue: 'Hello world'\r\n }),\r\n dummyOptionQuery: ComponentOptions.buildStringOption({\r\n defaultValue: '@uri'\r\n })\r\n };\r\n\r\n constructor(public element: HTMLElement, public options: IHelloWorldOptions, public bindings: IComponentBindings) {\r\n super(element, HelloWorld.ID, bindings);\r\n this.options = ComponentOptions.initComponentOptions(element, HelloWorld, options);\r\n\r\n $$(this.element).text(this.options.dummyOptionText);\r\n\r\n this.bind.onRootElement(QueryEvents.buildingQuery, (args: IBuildingQueryEventArgs) => this.handleBuildingQuery(args));\r\n }\r\n\r\n private handleBuildingQuery(args: IBuildingQueryEventArgs) {\r\n args.queryBuilder.advancedExpression.add(this.options.dummyOptionQuery);\r\n }\r\n}\r\n\r\nInitialization.registerAutoCreateComponent(HelloWorld);\r\n","module.exports = Coveo;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// This entry point defines all the component that should be included in your extension.\r\n\r\nexport { HelloWorld } from './ui/HelloWorld';\r\n"],"names":[],"sourceRoot":""}