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,QAAS,SAAUC,SAAU,EAAIf,KAAMkC,EAAuBP,WAAY,CAAC,CACnH3B,KAAM,EAAAsC,SACNV,KAAM,CAAC,CACCW,aAAc,CACVlD,GAEJxC,QAAS,CACLwC,GAEJmD,QAAS,CACL,EAAAC,aACA,EAAAC,kBAAkBP,iBChFd,MAAxBQ,OAAmB,aAAWA,OAAmB,WAAS,CAAC,GACvB,MAApCA,OAAmB,WAAEC,cAAqBD,OAAmB,WAAEC,YAAmB,CAAC,GAC1C,MAAzCD,OAAmB,WAAEC,YAAYC,OAAcF,OAAmB,WAAEC,YAAYC,KAAY,CAAC,GACjD,MAA5CF,OAAmB,WAAEC,YAAYC,KAAK9D,KAAY4D,OAAmB,WAAEC,YAAYC,KAAK9D,GAAU,CAAC,GAEvG4D,OAAmB,WAAEC,YAAYC,KAAK9D,GAAGK,GAAK,C","sources":["webpack://domain-startscherm-front-end/webpack/runtime/create fake namespace object","webpack://domain-startscherm-front-end/webpack/bootstrap","webpack://domain-startscherm-front-end/webpack/runtime/define property getters","webpack://domain-startscherm-front-end/webpack/runtime/hasOwnProperty shorthand","webpack://domain-startscherm-front-end/webpack/runtime/make namespace object","webpack://domain-startscherm-front-end/external var \"ng.core\"","webpack://domain-startscherm-front-end/external var \"ng.common\"","webpack://domain-startscherm-front-end/external var \"lvflanders.bar.ng.ui\"","webpack://domain-startscherm-front-end/./dist/@lvflanders/startscherm-chat-ng-ui/fesm2015/lvflanders-startscherm-chat-ng-ui.mjs","webpack://domain-startscherm-front-end/./cdn/lvflanders-startscherm-chat-ng-ui.ts"],"sourcesContent":["var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// 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](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = ng.core;","var __WEBPACK_NAMESPACE_OBJECT__ = ng.common;","var __WEBPACK_NAMESPACE_OBJECT__ = lvflanders.bar.ng.ui;","import * as i0 from '@angular/core';\nimport { Component, ViewEncapsulation, Inject, Input, NgModule } from '@angular/core';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i1 from '@lvflanders/bar-ng-ui';\nimport { BarControlsModule } from '@lvflanders/bar-ng-ui';\n\nclass StartschermChatComponent {\r\n constructor(document, elementRef) {\r\n this.document = document;\r\n this.elementRef = elementRef;\r\n }\r\n ngAfterViewInit() {\r\n this.loadChatWithScript();\r\n }\r\n loadChatWithScript() {\r\n let chatScript = document.createElement(\"script\");\r\n let opts = this.extractData(this.options);\r\n chatScript.type = \"text/javascript\";\r\n chatScript.async = true;\r\n let url = \"https://www.socialintents.com/api/socialintents.1.3.js#\";\r\n if (opts && opts.key) {\r\n url = url + opts.key;\r\n }\r\n else {\r\n console.warn(\"Er is geen chatkey meegegeven, we gebruiken de standaard\");\r\n url = url + \"2c9fa6c373e55e5e0173e748ff4e02ed\";\r\n }\r\n //chatScript.src = \"http://www.socialintents.com/api/socialintents.1.3.js#2c9faa357398634601739fd80a910f51\";\r\n chatScript.src = url;\r\n document.body.appendChild(chatScript);\r\n let chatScriptConfiguration = document.createElement(\"script\");\r\n chatScriptConfiguration.type = \"text/javascript\";\r\n chatScriptConfiguration.async = true;\r\n chatScriptConfiguration.innerHTML = \"window.FCSP = 'some-key-123'\";\r\n document.body.appendChild(chatScriptConfiguration);\r\n }\r\n extractData(data) {\r\n var result = {};\r\n if (data) {\r\n if (data.apikey) {\r\n result.key = data.apikey;\r\n }\r\n }\r\n return result;\r\n }\r\n}\r\nStartschermChatComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StartschermChatComponent, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });\r\nStartschermChatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: StartschermChatComponent, selector: \"startscherm-chat\", inputs: { options: \"options\" }, ngImport: i0, template: \"\", styles: [\"\"], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StartschermChatComponent, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'startscherm-chat', encapsulation: ViewEncapsulation.None, template: \"\" }]\r\n }], ctorParameters: function () {\r\n return [{ type: undefined, decorators: [{\r\n type: Inject,\r\n args: [DOCUMENT]\r\n }] }, { type: i0.ElementRef }];\r\n }, propDecorators: { options: [{\r\n type: Input\r\n }] } });\n\nclass StartschermChatModule {\r\n static forRoot() {\r\n return {\r\n ngModule: StartschermChatModule,\r\n providers: []\r\n };\r\n }\r\n}\r\nStartschermChatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StartschermChatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nStartschermChatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: StartschermChatModule, declarations: [StartschermChatComponent], imports: [CommonModule, i1.BarControlsModule], exports: [StartschermChatComponent] });\r\nStartschermChatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StartschermChatModule, imports: [CommonModule,\r\n BarControlsModule.forRoot()] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StartschermChatModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n declarations: [\r\n StartschermChatComponent\r\n ],\r\n exports: [\r\n StartschermChatComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n BarControlsModule.forRoot()\r\n ]\r\n }]\r\n }] });\n\n/*\r\n * Public API Surface of @lvflanders/startscherm-chat-ng-ui\r\n */\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { StartschermChatComponent, StartschermChatModule };\n//# sourceMappingURL=lvflanders-startscherm-chat-ng-ui.mjs.map\n","import * as lvFlandersStartschermChatNgUi from '../dist/@lvflanders/startscherm-chat-ng-ui';\r\n\r\n// global glue variable for externals\r\nif (window['lvflanders'] == null) window['lvflanders'] = {};\r\nif (window['lvflanders'].startscherm == null) window['lvflanders'].startscherm = {};\r\nif (window['lvflanders'].startscherm.chat == null) window['lvflanders'].startscherm.chat = {};\r\nif (window['lvflanders'].startscherm.chat.ng == null) window['lvflanders'].startscherm.chat.ng = {};\r\n\r\nwindow['lvflanders'].startscherm.chat.ng.ui = lvFlandersStartschermChatNgUi;\r\n\r\nexport { lvFlandersStartschermChatNgUi };"],"names":["leafPrototypes","getProto","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","Object","getPrototypeOf","obj","__proto__","t","value","mode","this","__esModule","then","ns","create","r","def","current","indexOf","getOwnPropertyNames","forEach","key","d","definition","o","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","ng","core","common","lvflanders","bar","ui","StartschermChatComponent","constructor","document","elementRef","ngAfterViewInit","loadChatWithScript","chatScript","createElement","opts","extractData","options","type","async","url","console","warn","src","body","appendChild","chatScriptConfiguration","innerHTML","data","result","apikey","minVersion","version","ngImport","deps","token","DOCUMENT","target","Component","selector","inputs","template","styles","encapsulation","None","decorators","args","ViewEncapsulation","ctorParameters","Inject","propDecorators","Input","StartschermChatModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","BarControlsModule","window","startscherm","chat"],"sourceRoot":""}