{"version":3,"sources":["Text.min__7d400a8f34d33214ce02.js","./src/ui/Text/Text.ts"],"names":["webpackJsonpCoveo__temporary","285","module","exports","__webpack_require__","__extends","this","extendStatics","Object","setPrototypeOf","__proto__","Array","d","b","p","hasOwnProperty","__","constructor","prototype","create","defineProperty","value","element","options","bindings","Text","ID","ComponentOptions","initComponentOptions","$$","text","style","fontSize","size","fontStyle","color","fontWeight","weight","textAlign","marginTop","marginBottom","marginRight","marginLeft","paddingTop","paddingBottom","paddingLeft","paddingRight","_this","doExport","exportGlobally","buildLocalizedStringOption","buildStringOption","Component","Initialization","registerAutoCreateComponent","677"],"mappings":"AAAAA,8BAA8B,KAExBC,IACA,SAAUC,EAAQC,EAASC,GAEjC,YAEA,IAAIC,GAAaC,MAAQA,KAAKD,WAAc,WACxC,GAAIE,GAAgBC,OAAOC,iBACpBC,uBAA2BC,QAAS,SAAUC,EAAGC,GAAKD,EAAEF,UAAYG,IACvE,SAAUD,EAAGC,GAAK,IAAK,GAAIC,KAAKD,GAAOA,EAAEE,eAAeD,KAAIF,EAAEE,GAAKD,EAAEC,IACzE,OAAO,UAAUF,EAAGC,GAEhB,QAASG,KAAOV,KAAKW,YAAcL,EADnCL,EAAcK,EAAGC,GAEjBD,EAAEM,UAAkB,OAANL,EAAaL,OAAOW,OAAON,IAAMG,EAAGE,UAAYL,EAAEK,UAAW,GAAIF,OAGvFR,QAAOY,eAAejB,EAAS,cAAgBkB,OAAO,ICjBtD,MACA,YACA,OACA,OAEA,OACA,OAiCA,cA2FE,WAAmBC,EAA6BC,EAAwBC,GAAxE,MACE,YAAMF,EAASG,EAAKC,GAAIF,IAAS,IDnE7B,OCkEa,GAAAF,UAA6B,EAAAC,UAE9C,EAAKA,QAAU,EAAAI,iBAAiBC,qBAAqBN,EAASG,EAAMF,GACpE,EAAAM,GAAG,EAAKP,SAASQ,KAAK,EAAKP,QAAQF,OACnC,EAAKC,QAAQS,MAAMC,SAAW,EAAKT,QAAQU,KAC3C,EAAKX,QAAQ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OA+Gb,EAAA4B,eAAeC,4BAA4B7B,IDTrC8B,IACA,SAAUrD,EAAQC","file":"Text.min__7d400a8f34d33214ce02.js","sourcesContent":["webpackJsonpCoveo__temporary([60],{\n\n/***/ 285:\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 });\n__webpack_require__(677);\nvar GlobalExports_1 = __webpack_require__(3);\nvar Dom_1 = __webpack_require__(1);\nvar Component_1 = __webpack_require__(7);\nvar ComponentOptions_1 = __webpack_require__(8);\nvar Initialization_1 = __webpack_require__(2);\n/**\n * The Text component embeds itself in a result template to output a simple text value.\n *\n * The only purpose of this component is to make it possible to easily add different text values to result templates\n * when using the Coveo JavaScript Search Interface Editor (see\n * [Interface Editor](https://docs.coveo.com/en/1852/)).\n *\n * If you are not designing a search interface using the Coveo JavaScript Search Interface Editor, using this component\n * is unnecessary.\n *\n * This component is a result template component (see [Result Templates](https://docs.coveo.com/en/413/)).\n */\nvar Text = /** @class */ (function (_super) {\n __extends(Text, _super);\n /**\n * Creates a new Text component.\n * @param element The HTMLElement on which to instantiate the component.\n * @param options The options for the Text 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 */\n function Text(element, options, bindings) {\n var _this = _super.call(this, element, Text.ID, bindings) || this;\n _this.element = element;\n _this.options = options;\n _this.options = ComponentOptions_1.ComponentOptions.initComponentOptions(element, Text, options);\n Dom_1.$$(_this.element).text(_this.options.value);\n _this.element.style.fontSize = _this.options.size;\n _this.element.style.fontStyle = _this.options.style;\n _this.element.style.color = _this.options.color;\n _this.element.style.fontWeight = _this.options.weight;\n _this.element.style.textAlign = _this.options.textAlign;\n _this.element.style.marginTop = _this.options.marginTop;\n _this.element.style.marginBottom = _this.options.marginBottom;\n _this.element.style.marginRight = _this.options.marginRight;\n _this.element.style.marginLeft = _this.options.marginLeft;\n _this.element.style.paddingTop = _this.options.paddingTop;\n _this.element.style.paddingBottom = _this.options.paddingBottom;\n _this.element.style.paddingLeft = _this.options.paddingLeft;\n _this.element.style.paddingRight = _this.options.paddingRight;\n return _this;\n }\n Text.ID = 'Text';\n Text.doExport = function () {\n GlobalExports_1.exportGlobally({\n Text: Text\n });\n };\n /**\n * @componentOptions\n */\n Text.options = {\n /**\n * Specifies the localized string value that the component should render.\n */\n value: ComponentOptions_1.ComponentOptions.buildLocalizedStringOption(),\n /**\n * Specifies the size of the text (set as the `font-size` CSS property).\n */\n size: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the style of the text (set as the `font-style` CSS property).\n */\n style: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the color of the text (set as the `color` CSS property).\n */\n color: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the weight of the text (set as the `font-weight` CSS property).\n */\n weight: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the alignment of the text (set as the `text-align` CSS property).\n */\n textAlign: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the top margin of the text (set as the `margin-top` CSS property).\n */\n marginTop: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the bottom margin of the text (set as the `margin-bottom` CSS property).\n */\n marginBottom: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the left margin of the text (set as the `margin-left` CSS property).\n */\n marginLeft: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the right margin of the text (set as the `margin-right` CSS property).\n */\n marginRight: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the top padding of the text (set as the `padding-top` CSS property).\n */\n paddingTop: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the bottom padding of the text (set as the `padding-bottom` CSS property).\n */\n paddingBottom: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the left padding of the text (set as the `padding-left` CSS property).\n */\n paddingLeft: ComponentOptions_1.ComponentOptions.buildStringOption(),\n /**\n * Specifies the right padding of the text (set as the `padding-right` CSS property).\n */\n paddingRight: ComponentOptions_1.ComponentOptions.buildStringOption()\n };\n return Text;\n}(Component_1.Component));\nexports.Text = Text;\nInitialization_1.Initialization.registerAutoCreateComponent(Text);\n\n\n/***/ }),\n\n/***/ 677:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// Text.min__7d400a8f34d33214ce02.js","import 'styling/_Text';\nimport { exportGlobally } from '../../GlobalExports';\nimport { $$ } from '../../utils/Dom';\nimport { Component } from '../Base/Component';\nimport { IComponentBindings } from '../Base/ComponentBindings';\nimport { ComponentOptions } from '../Base/ComponentOptions';\nimport { Initialization } from '../Base/Initialization';\n\nexport interface ITextOptions {\n value?: string;\n size?: string;\n style?: string;\n color?: string;\n weight?: string;\n textAlign?: string;\n\n marginTop?: string;\n marginBottom?: string;\n marginLeft?: string;\n marginRight?: string;\n\n paddingTop?: string;\n paddingBottom?: string;\n paddingLeft?: string;\n paddingRight?: string;\n}\n\n/**\n * The Text component embeds itself in a result template to output a simple text value.\n *\n * The only purpose of this component is to make it possible to easily add different text values to result templates\n * when using the Coveo JavaScript Search Interface Editor (see\n * [Interface Editor](https://docs.coveo.com/en/1852/)).\n *\n * If you are not designing a search interface using the Coveo JavaScript Search Interface Editor, using this component\n * is unnecessary.\n *\n * This component is a result template component (see [Result Templates](https://docs.coveo.com/en/413/)).\n */\nexport class Text extends Component {\n static ID = 'Text';\n\n static doExport = () => {\n exportGlobally({\n Text: Text\n });\n };\n\n /**\n * @componentOptions\n */\n static options: ITextOptions = {\n /**\n * Specifies the localized string value that the component should render.\n */\n value: ComponentOptions.buildLocalizedStringOption(),\n\n /**\n * Specifies the size of the text (set as the `font-size` CSS property).\n */\n size: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the style of the text (set as the `font-style` CSS property).\n */\n style: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the color of the text (set as the `color` CSS property).\n */\n color: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the weight of the text (set as the `font-weight` CSS property).\n */\n weight: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the alignment of the text (set as the `text-align` CSS property).\n */\n textAlign: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the top margin of the text (set as the `margin-top` CSS property).\n */\n marginTop: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the bottom margin of the text (set as the `margin-bottom` CSS property).\n */\n marginBottom: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the left margin of the text (set as the `margin-left` CSS property).\n */\n marginLeft: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the right margin of the text (set as the `margin-right` CSS property).\n */\n marginRight: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the top padding of the text (set as the `padding-top` CSS property).\n */\n paddingTop: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the bottom padding of the text (set as the `padding-bottom` CSS property).\n */\n paddingBottom: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the left padding of the text (set as the `padding-left` CSS property).\n */\n paddingLeft: ComponentOptions.buildStringOption(),\n\n /**\n * Specifies the right padding of the text (set as the `padding-right` CSS property).\n */\n paddingRight: ComponentOptions.buildStringOption()\n };\n\n /**\n * Creates a new Text component.\n * @param element The HTMLElement on which to instantiate the component.\n * @param options The options for the Text 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 */\n constructor(public element: HTMLElement, public options?: ITextOptions, bindings?: IComponentBindings) {\n super(element, Text.ID, bindings);\n this.options = ComponentOptions.initComponentOptions(element, Text, options);\n $$(this.element).text(this.options.value);\n this.element.style.fontSize = this.options.size;\n this.element.style.fontStyle = this.options.style;\n this.element.style.color = this.options.color;\n this.element.style.fontWeight = this.options.weight;\n this.element.style.textAlign = this.options.textAlign;\n this.element.style.marginTop = this.options.marginTop;\n this.element.style.marginBottom = this.options.marginBottom;\n this.element.style.marginRight = this.options.marginRight;\n this.element.style.marginLeft = this.options.marginLeft;\n this.element.style.paddingTop = this.options.paddingTop;\n this.element.style.paddingBottom = this.options.paddingBottom;\n this.element.style.paddingLeft = this.options.paddingLeft;\n this.element.style.paddingRight = this.options.paddingRight;\n }\n}\n\nInitialization.registerAutoCreateComponent(Text);\n\n\n\n// WEBPACK FOOTER //\n// ./src/ui/Text/Text.ts"],"sourceRoot":""}