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Q,CAAC,KAAO,MAAM,MAAQ,mDAAmD,SAAW,CAAC,MAAQ,KAAK,IAAM,SAAS,SAAW,CAAC,KAAO,CAAC,MAAQ,IAAI,IAAM,KAAK,MAAQ,CAAC,MAAQ,KAAK,IAAM,SAAS,GAAK,sFAAsF,SAAU,IAC3uOC,EAAOC,QAAU,SAASC,GAAW,OAAOJ,EAAIK,OAAOD,EAAU,EACjEF,EAAOC,QAAQtO,GAAK,sFACpBqO,EAAOC,QAAP,QAAyBD,EAAOC,O","sources":["webpack://@dgtls-pub/wolf-sb-integration/./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js","webpack://@dgtls-pub/wolf-sb-integration/./node_modules/rxjs/_esm5/internal/scheduler/Action.js","webpack://@dgtls-pub/wolf-sb-integration/./node_modules/rxjs/_esm5/internal/Scheduler.js","webpack://@dgtls-pub/wolf-sb-integration/./node_modules/rxjs/_esm5/internal/scheduler/async.js","webpack://@dgtls-pub/wolf-sb-integration/./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js","webpack://@dgtls-pub/wolf-sb-integration/./node_modules/rxjs/_esm5/internal/operators/debounceTime.js","webpack://@dgtls-pub/wolf-sb-integration/./src/global/js/DomServices.ts","webpack://@dgtls-pub/wolf-sb-integration/./src/global/js/InputsServices.ts","webpack://@dgtls-pub/wolf-sb-integration/./src/global/js/ControllerBase.ts","webpack://@dgtls-pub/wolf-sb-integration/./src/wolf/components/atoms/a-button/a-button.events.ts","webpack://@dgtls-pub/wolf-sb-integration/./src/wolf/components/organisms/o-kb-startpage-stage/o-kb-startpage-stage.controller.ts","webpack://@dgtls-pub/wolf-sb-integration/./src/wolf/components/molecules/m-typeahead-results/m-typeahead-results.template.twig"],"sourcesContent":["/** PURE_IMPORTS_START tslib,_Action PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Action } from './Action';\nvar AsyncAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsyncAction, _super);\n function AsyncAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.pending = false;\n return _this;\n }\n AsyncAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (this.closed) {\n return this;\n }\n this.state = state;\n var id = this.id;\n var scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);\n return this;\n };\n AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return setInterval(scheduler.flush.bind(scheduler, this), delay);\n };\n AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay !== null && this.delay === delay && this.pending === false) {\n return id;\n }\n clearInterval(id);\n return undefined;\n };\n AsyncAction.prototype.execute = function (state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n var error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n };\n AsyncAction.prototype._execute = function (state, delay) {\n var errored = false;\n var errorValue = undefined;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = !!e && e || new Error(e);\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n };\n AsyncAction.prototype._unsubscribe = function () {\n var id = this.id;\n var scheduler = this.scheduler;\n var actions = scheduler.actions;\n var index = actions.indexOf(this);\n this.work = null;\n this.state = null;\n this.pending = false;\n this.scheduler = null;\n if (index !== -1) {\n actions.splice(index, 1);\n }\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n };\n return AsyncAction;\n}(Action));\nexport { AsyncAction };\n//# sourceMappingURL=AsyncAction.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from '../Subscription';\nvar Action = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Action, _super);\n function Action(scheduler, work) {\n return _super.call(this) || this;\n }\n Action.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return this;\n };\n return Action;\n}(Subscription));\nexport { Action };\n//# sourceMappingURL=Action.js.map\n","var Scheduler = /*@__PURE__*/ (function () {\n function Scheduler(SchedulerAction, now) {\n if (now === void 0) {\n now = Scheduler.now;\n }\n this.SchedulerAction = SchedulerAction;\n this.now = now;\n }\n Scheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) {\n delay = 0;\n }\n return new this.SchedulerAction(this, work).schedule(state, delay);\n };\n Scheduler.now = function () { return Date.now(); };\n return Scheduler;\n}());\nexport { Scheduler };\n//# sourceMappingURL=Scheduler.js.map\n","/** PURE_IMPORTS_START _AsyncAction,_AsyncScheduler PURE_IMPORTS_END */\nimport { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport var asyncScheduler = /*@__PURE__*/ new AsyncScheduler(AsyncAction);\nexport var async = asyncScheduler;\n//# sourceMappingURL=async.js.map\n","/** PURE_IMPORTS_START tslib,_Scheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Scheduler } from '../Scheduler';\nvar AsyncScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsyncScheduler, _super);\n function AsyncScheduler(SchedulerAction, now) {\n if (now === void 0) {\n now = Scheduler.now;\n }\n var _this = _super.call(this, SchedulerAction, function () {\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) {\n return AsyncScheduler.delegate.now();\n }\n else {\n return now();\n }\n }) || this;\n _this.actions = [];\n _this.active = false;\n _this.scheduled = undefined;\n return _this;\n }\n AsyncScheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) {\n delay = 0;\n }\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {\n return AsyncScheduler.delegate.schedule(work, delay, state);\n }\n else {\n return _super.prototype.schedule.call(this, work, delay, state);\n }\n };\n AsyncScheduler.prototype.flush = function (action) {\n var actions = this.actions;\n if (this.active) {\n actions.push(action);\n return;\n }\n var error;\n this.active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this.active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsyncScheduler;\n}(Scheduler));\nexport { AsyncScheduler };\n//# sourceMappingURL=AsyncScheduler.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nexport function debounceTime(dueTime, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) { return source.lift(new DebounceTimeOperator(dueTime, scheduler)); };\n}\nvar DebounceTimeOperator = /*@__PURE__*/ (function () {\n function DebounceTimeOperator(dueTime, scheduler) {\n this.dueTime = dueTime;\n this.scheduler = scheduler;\n }\n DebounceTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));\n };\n return DebounceTimeOperator;\n}());\nvar DebounceTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DebounceTimeSubscriber, _super);\n function DebounceTimeSubscriber(destination, dueTime, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.dueTime = dueTime;\n _this.scheduler = scheduler;\n _this.debouncedSubscription = null;\n _this.lastValue = null;\n _this.hasValue = false;\n return _this;\n }\n DebounceTimeSubscriber.prototype._next = function (value) {\n this.clearDebounce();\n this.lastValue = value;\n this.hasValue = true;\n this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));\n };\n DebounceTimeSubscriber.prototype._complete = function () {\n this.debouncedNext();\n this.destination.complete();\n };\n DebounceTimeSubscriber.prototype.debouncedNext = function () {\n this.clearDebounce();\n if (this.hasValue) {\n var lastValue = this.lastValue;\n this.lastValue = null;\n this.hasValue = false;\n this.destination.next(lastValue);\n }\n };\n DebounceTimeSubscriber.prototype.clearDebounce = function () {\n var debouncedSubscription = this.debouncedSubscription;\n if (debouncedSubscription !== null) {\n this.remove(debouncedSubscription);\n debouncedSubscription.unsubscribe();\n this.debouncedSubscription = null;\n }\n };\n return DebounceTimeSubscriber;\n}(Subscriber));\nfunction dispatchNext(subscriber) {\n subscriber.debouncedNext();\n}\n//# sourceMappingURL=debounceTime.js.map\n","import { IDomServices } from 'global/interfaces/controller.interface';\nimport { Subject } from 'rxjs';\n\nexport class DomServices implements IDomServices {\n\tprotected $element: HTMLElement;\n\tprotected $references: Record;\n\tonDomElementChanged: Subject = new Subject();\n\n\tconstructor(element: HTMLElement, references: Record) {\n\t\tthis.$references = references;\n\t\tthis.$element = element;\n\t}\n\n\tstatic collectReferences(\n\t\telement: HTMLElement,\n\t\tignoredReferences: string[],\n\t\tincludedReferences: string[],\n\t): Partial> {\n\t\tconst refs: Partial> = {};\n\n\t\tArray.from(element.querySelectorAll('[data-ref]')).forEach((el: HTMLElement) => {\n\t\t\tlet referenceName: string = '';\n\t\t\tif (el.dataset.ref) {\n\t\t\t\treferenceName = el.dataset.ref;\n\t\t\t}\n\n\t\t\t// skip ignored references\n\t\t\tif (ignoredReferences.includes(referenceName)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (referenceName) {\n\t\t\t\t// if the included list has items, only include these references, otherwise consider all\n\t\t\t\tif (includedReferences.length > 0) {\n\t\t\t\t\tif (includedReferences.includes(referenceName)) {\n\t\t\t\t\t\trefs[referenceName] = el;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (Object.prototype.hasOwnProperty.call(refs, referenceName)) {\n\t\t\t\t\t\tif (window.location.hostname === 'localhost') {\n\t\t\t\t\t\t\tconsole.warn(`A reference called '${referenceName}' has already been registered in ${this.constructor.name}!\\n Element:`, element);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\trefs[referenceName] = el;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn refs;\n\t}\n\n\tgetRef(ref: string): T | undefined {\n\t\tif (this.$references) {\n\t\t\treturn Object.prototype.hasOwnProperty.call(this.$references, ref) ? (this.$references[ref] as T) : undefined;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tparseStringToHtml = (htmlAsString: string): void | ChildNode => {\n\t\tconst parsedNode = new DOMParser().parseFromString(htmlAsString, 'text/html').body.firstChild;\n\t\tif (parsedNode) return parsedNode;\n\t};\n\n\trenderDomElement = (ref: string, html: string, renderOnParent: boolean = false): void => {\n\t\tconst refExists = this.$references ? Object.prototype.hasOwnProperty.call(this.$references, ref) : undefined;\n\t\tif (renderOnParent) {\n\t\t\tthis.$element.innerHTML = html;\n\t\t\tthis.domElementChanged(ref);\n\t\t} else if (this.$references && refExists) {\n\t\t\t(this.$references as any)[ref].innerHTML = html;\n\t\t\tthis.domElementChanged(ref);\n\t\t} else {\n\t\t\tconsole.warn('DOM ref does not exist!', ref);\n\t\t}\n\t};\n\n\tappendRawHtmlToDomElement = (\n\t\tnode: HTMLElement,\n\t\thtmlAsString: string,\n\t\tposition: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend' = 'afterend',\n\t): void | ChildNode => {\n\t\tconst htmlNode = this.parseStringToHtml(htmlAsString);\n\t\tnode.insertAdjacentElement(position, htmlNode as Element);\n\t\tif (htmlNode) {\n\t\t\treturn htmlNode;\n\t\t}\n\t};\n\n\treplaceLastChildElementWithRawHtml = (ref: string, htmlAsString: string): void | ChildNode => {\n\t\tconst refExists = this.$references ? Object.prototype.hasOwnProperty.call(this.$references, ref) : undefined;\n\t\tif (refExists) {\n\t\t\tconst htmlNode = this.parseStringToHtml(htmlAsString);\n\t\t\tconst lastNode = this.$references[ref].childNodes[this.$references[ref].childNodes.length - 1];\n\t\t\t(this.$references as any)[ref].replaceChild(htmlNode, lastNode);\n\t\t\tthis.domElementChanged(ref);\n\t\t\tif (htmlNode) {\n\t\t\t\treturn htmlNode;\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.warn('DOM ref does not exist!', ref);\n\t\t}\n\t};\n\n\ttoggleElementState(control: HTMLElement, newState: Array<'enable' | 'disable' | 'show' | 'hide' | 'check' | 'uncheck'>): void {\n\t\tif (!control) return;\n\t\tnewState &&\n\t\t\tnewState.forEach((state) => {\n\t\t\t\tswitch (state) {\n\t\t\t\t\tcase 'enable': {\n\t\t\t\t\t\tcontrol.removeAttribute('disabled');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 'disable': {\n\t\t\t\t\t\tcontrol.setAttribute('disabled', 'true');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 'show': {\n\t\t\t\t\t\tcontrol.removeAttribute('hidden');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 'hide': {\n\t\t\t\t\t\tcontrol.setAttribute('hidden', 'true');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 'uncheck': {\n\t\t\t\t\t\tcontrol.removeAttribute('checked');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 'check': {\n\t\t\t\t\t\tcontrol.setAttribute('checked', 'true');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\tdomElementChanged = (reference: string): void => {\n\t\tthis.onDomElementChanged.next(reference);\n\t};\n\n\tparseDOMScriptTag = (elementId: string): TJSON => {\n\t\tconst data = document.getElementById(elementId) as HTMLScriptElement;\n\t\ttry {\n\t\t\tconst out = JSON.parse(data.innerText);\n\t\t\treturn out as TJSON;\n\t\t} catch (error) {\n\t\t\tconsole.warn('Cannot parse component form config', error);\n\t\t}\n\t\treturn {} as TJSON;\n\t};\n\n\trenderDomElementInHTMLElement(element: HTMLElement, html: string): void {\n\t\telement.innerHTML = html;\n\t}\n}\n","import { IInputServicesBase } from 'global/interfaces/controller.interface';\nimport { fromEvent, Subscription } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nexport enum InputClasses {\n\terrorClass = 'uk-form-danger',\n\thiddenClass = 'uk-hidden',\n}\nexport class InputServices implements IInputServicesBase {\n\tprivate observedInputs: Record = {};\n\n\taddFocusToInput({ element, inputName }: { element: HTMLElement; inputName: string }): void {\n\t\tconst input = element?.querySelector(`input[name='${inputName}']`);\n\t\tif (input) (input as HTMLInputElement).focus();\n\t}\n\n\tobserveElementEvents(\n\t\telement: HTMLInputElement | HTMLSelectElement | HTMLButtonElement,\n\t\tinputEvent: 'input' | 'change' | 'click',\n\t\tonChange: (value: string, event: InputEvent) => any,\n\t): void {\n\t\tconst inputToObserve$ = fromEvent(element, inputEvent);\n\n\t\tthis.observedInputs[element.name] = inputToObserve$.pipe(map(this.mapInputEvent)).subscribe(({ value, event }) =>\n\t\t\tthis.subscribeInputWithErrorRemovalOnInputChange({\n\t\t\t\tvalue,\n\t\t\t\tevent,\n\t\t\t\tonChange,\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * This method is in charge of adding error classes to the correct element within an input group on a defined element\n\t * @param {HTMLElement | null} element - The element to update\n\t * @param {Record} errors - The errors to manage\n\t */\n\taddErrorsToFieldset({\n\t\telement,\n\t\terrors,\n\t\tonErrorsUpdated,\n\t}: {\n\t\telement: HTMLElement | null;\n\t\terrors: Record;\n\t\tonErrorsUpdated?: () => void;\n\t}): void {\n\t\tif (element) {\n\t\t\tObject.keys(errors).forEach((inputName) => {\n\t\t\t\tconst input = element?.querySelector(`input[name='${inputName}']`) as HTMLElement;\n\n\t\t\t\tif (input) {\n\t\t\t\t\tconst errorMessage = errors[inputName] || '';\n\t\t\t\t\tthis.addOrRemoveFormValidationError('SHOW_VALIDATION_ERROR', input, errorMessage);\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (onErrorsUpdated) onErrorsUpdated();\n\t\t\tif (errors) {\n\t\t\t\tconst inputNameToFocus = Object.keys(errors)[0];\n\t\t\t\tconst firstErrorElement = element?.querySelector(`input[name='${inputNameToFocus}']`);\n\t\t\t\tif (firstErrorElement) firstErrorElement.scrollIntoView();\n\t\t\t\tif (inputNameToFocus) this.addFocusToInput({ element, inputName: inputNameToFocus });\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new Error(`ADD ERRORS TO FIELDSET: Looks like the element you want to update doesn't exist`);\n\t\t}\n\t}\n\n\taddOrRemoveFormValidationError(showOrHide: 'SHOW_VALIDATION_ERROR' | 'HIDE_VALIDATION_ERROR', input: HTMLElement, errorMessage: string = ''): void {\n\t\tif (!input) return;\n\n\t\tconst label = input.previousElementSibling;\n\t\tconst errorMessageContainer = input.nextElementSibling;\n\n\t\tif (showOrHide === 'SHOW_VALIDATION_ERROR') {\n\t\t\t// add error class to label\n\t\t\tif (label && label.classList) label.classList.add(InputClasses.errorClass);\n\t\t\t// add error class to input\n\t\t\tinput.classList.add(InputClasses.errorClass);\n\t\t\t// if there's an error message, inject it, show the div and add an error class\n\t\t\tif (errorMessageContainer) {\n\t\t\t\terrorMessageContainer.classList.add(InputClasses.errorClass);\n\t\t\t\terrorMessageContainer.classList.remove(InputClasses.hiddenClass);\n\t\t\t\terrorMessageContainer.innerHTML = errorMessage;\n\t\t\t}\n\t\t} else if (showOrHide === 'HIDE_VALIDATION_ERROR') {\n\t\t\t// remove error class from label\n\t\t\tif (label && label.classList) label.classList.remove(InputClasses.errorClass);\n\t\t\t// remove error class from input\n\t\t\tinput.classList.remove(InputClasses.errorClass);\n\t\t\t// remove error message and class\n\t\t\tif (errorMessageContainer) {\n\t\t\t\terrorMessageContainer.classList.remove(InputClasses.errorClass);\n\t\t\t\terrorMessageContainer.classList.add(InputClasses.hiddenClass);\n\t\t\t\terrorMessageContainer.innerHTML = '';\n\t\t\t}\n\t\t}\n\t}\n\n\tsubscribeInputWithErrorRemovalOnInputChange = ({\n\t\tvalue,\n\t\tevent,\n\t\tonChange,\n\t}: {\n\t\tvalue: string;\n\t\tevent: InputEvent;\n\t\tonChange?: (value: string, event: InputEvent) => void;\n\t}): void => {\n\t\tconst castEvent = event.target as HTMLElement;\n\n\t\tconst label = castEvent && castEvent.previousElementSibling;\n\t\tif (label && label.classList.contains(InputClasses.errorClass)) label.classList.remove(InputClasses.errorClass);\n\n\t\tconst input = event.target as HTMLElement;\n\t\tif (input && input.classList.contains(InputClasses.errorClass)) input.classList.remove(InputClasses.errorClass);\n\n\t\tconst errorMessage = castEvent && castEvent.nextElementSibling;\n\t\tif (errorMessage) {\n\t\t\terrorMessage.classList.remove(InputClasses.errorClass);\n\t\t\terrorMessage.classList.add('uk-hidden');\n\t\t}\n\n\t\tif (onChange) onChange(value, event);\n\t};\n\n\tmapInputEvent = (event: InputEvent): { value: string; event: InputEvent } => {\n\t\treturn { value: (event.target as HTMLInputElement | HTMLSelectElement).value, event };\n\t};\n}\n","import { IControllerBase, IDomServices } from 'global/interfaces/controller.interface';\nimport { DomServices } from './DomServices';\nimport { InputServices } from './InputsServices';\nexport default class ControllerBase = Record> implements IControllerBase {\n\treadonly $element: HTMLElement;\n\treadonly $references: Record;\n\treadonly ignoredReferences: string[];\n\treadonly includedReferences: string[];\n\treadonly disableReferenceCollection: boolean;\n\t/** See {@link DomServices} */\n\treadonly domUtils: IDomServices;\n\t/** See {@link InputServices} */\n\treadonly inputUtils: InputServices;\n\n\tconstructor(element: HTMLElement, ignoredReferences?: string[], includedReferences?: string[], disableReferenceCollection?: boolean) {\n\t\tthis.$element = element;\n\t\tthis.ignoredReferences = ignoredReferences || [];\n\t\tthis.includedReferences = includedReferences || [];\n\t\tthis.disableReferenceCollection = disableReferenceCollection || false;\n\n\t\tif (!this.disableReferenceCollection) {\n\t\t\tconst references = DomServices.collectReferences(this.$element, this.ignoredReferences, this.includedReferences);\n\t\t\tif (references && Object.keys(references).length > 0) {\n\t\t\t\tthis.$references = references as Record;\n\t\t\t} else {\n\t\t\t\tthis.$references = {} as Record;\n\t\t\t}\n\t\t}\n\n\t\tthis.domUtils = new DomServices(this.$element, this.$references);\n\t\tthis.inputUtils = new InputServices();\n\t}\n\n\tdispatchCustomEvent(\n\t\tname: string,\n\t\tdetail: T,\n\t\tbubbles: boolean = false,\n\t\tdispatchOnWindow: boolean = false,\n\t\tdispatchOnSpecificElement?: HTMLElement,\n\t): void {\n\t\tconst customEvent = new CustomEvent(name, { detail: detail, bubbles: bubbles });\n\t\tif (true === dispatchOnWindow) {\n\t\t\twindow.dispatchEvent(customEvent);\n\t\t} else if (dispatchOnSpecificElement) {\n\t\t\tdispatchOnSpecificElement.dispatchEvent(customEvent);\n\t\t} else {\n\t\t\tthis.$element.dispatchEvent(customEvent);\n\t\t}\n\t}\n}\n","import { ComponentEvents } from '../../../../global/interfaces/component.interface';\n\nexport const AtomButtonEvents: ComponentEvents = {\n\t/** The custom event emitted when the button is clicked */\n\tbuttonClicked: 'buttonClicked',\n};\n","import ControllerBase from './../../../../global/js/ControllerBase';\nimport { fromEvent } from 'rxjs';\nimport { debounceTime, map } from 'rxjs/operators';\nconst template = require('components/molecules/m-typeahead-results/m-typeahead-results.template.twig') as any;\nimport { MoleculeTypeaheadResult } from 'wolf/components/molecules/m-typeahead-results/m-typeahead-results.data';\nimport { AtomButtonEvents } from 'wolf/components/atoms/a-button/a-button.events';\n\nexport default class ControllerKbStartpageStage extends ControllerBase {\n\t/** A list of dom element references available to this component */\n\tprivate readonly componentRefs = {\n\t\tsearchBox: 'searchBox',\n\t\tsearchResults: 'searchResults',\n\t\tsearchButton: 'searchButton',\n\t\tsearchForm: 'searchForm',\n\t};\n\t/** The number of typeahead results to show */\n\tprivate readonly numberOfResults = 3;\n\n\t/** Minimum number of characters that trigger a typehead search **/\n\tprivate readonly minCharLength = 2;\n\t/** The typeahead URL for typeahead queries */\n\tprivate typeaheadUrl: string;\n\n\tprivate searchUrl: string;\n\t/** A local cache for typeahead searches to reduce repeat queries */\n\tprivate cache: Map;\n\n\tconstructor(element: HTMLElement) {\n\t\tsuper(element);\n\n\t\tthis.typeaheadUrl = element.dataset.typeaheadurl ?? '';\n\t\tthis.searchUrl = element.dataset.searchurl ?? '';\n\t\tthis.cache = new Map();\n\t\t// this.observeSearchButtonClick();\n\t\tthis.observeUserSearch();\n\t\tthis.observeSearchResults();\n\t}\n\n\t/**\n\t * Handle synthetic form submits using an a-button component (instead of an input type=submit)\n\t * @returns void\n\t */\n\tprivate observeSearchButtonClick(): void {\n\t\tconst buttonAtomComponent = this.$references[this.componentRefs.searchButton]!.firstChild;\n\t\tconst form = this.$references[this.componentRefs.searchForm] as HTMLFormElement;\n\t\tif (form && buttonAtomComponent) {\n\t\t\tbuttonAtomComponent.addEventListener(AtomButtonEvents.buttonClicked, (e: CustomEvent) => {\n\t\t\t\t// if (e && e.detail && e.detail.quantity.toString().length > 0) {\n\t\t\t\tif (e && e.detail) {\n\t\t\t\t\t// submit the form\n\t\t\t\t\tform && form.submit();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * When the search results change, attach new event listeners to the result elements, to handle user clicks\n\t * @returns void\n\t */\n\tprivate observeSearchResults(): void {\n\t\tthis.domUtils.onDomElementChanged.subscribe((ref) => {\n\t\t\tif (ref) {\n\t\t\t\t// @todo - find a better way to do this - the organism is now hardcoded to the molecule!\n\t\t\t\tconst results = this.$element.querySelectorAll('.m-typeahead-results__results');\n\t\t\t\tif (results && results.length === 1) {\n\t\t\t\t\tconst links = results[0].querySelectorAll('.m-typeahead-results__results-data a');\n\t\t\t\t\tif (links && links.length) {\n\t\t\t\t\t\t// attach event listeners for when the user clicks on a typeahead suggestion\n\t\t\t\t\t\tlinks.forEach((el: HTMLAnchorElement) => {\n\t\t\t\t\t\t\tel.addEventListener('click', (ev: Event | MouseEvent) => {\n\t\t\t\t\t\t\t\tev.preventDefault();\n\t\t\t\t\t\t\t\t// populate the search box\n\t\t\t\t\t\t\t\tthis.onTypeaheadSuggestionClick(el);\n\t\t\t\t\t\t\t\t// hide typeahead\n\t\t\t\t\t\t\t\tthis.renderSearchResults([], true);\n\t\t\t\t\t\t\t\t// console.log('Do a search immediately?');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Populate the search box with the search item's text\n\t * @param {HTMLAnchorElement} element\n\t * @returns void\n\t */\n\tprivate onTypeaheadSuggestionClick(element: HTMLAnchorElement): void {\n\t\t// go directly to the search href\n\t\tconst link: string = (element && element.dataset && element.dataset['href']) || '';\n\t\tif (link) {\n\t\t\twindow.location.href = link;\n\t\t} else {\n\t\t\t// the below code will put the search result in the searchbox\n\t\t\tconst searchBox = this.$references[this.componentRefs.searchBox] as HTMLInputElement;\n\t\t\tsearchBox && (searchBox.value = element.text);\n\t\t}\n\t}\n\n\t/**\n\t * Watch for search queries and update the typeahead results box\n\t * @returns void\n\t */\n\tprivate observeUserSearch(): void {\n\t\tif (Object.prototype.hasOwnProperty.call(this.$references, this.componentRefs.searchBox)) {\n\t\t\t/** Event handler for when the input changes value */\n\t\t\tconst searchKeyupEvent$ = fromEvent(this.$references[this.componentRefs.searchBox], 'keyup');\n\n\t\t\tsearchKeyupEvent$\n\t\t\t\t.pipe(\n\t\t\t\t\tdebounceTime(120),\n\t\t\t\t\tmap((e) => e && e.target),\n\t\t\t\t)\n\t\t\t\t.subscribe((e: HTMLInputElement) => {\n\t\t\t\t\tif (e && e.value.length >= this.minCharLength) {\n\t\t\t\t\t\t// report a search query\n\t\t\t\t\t\tthis.dispatchCustomEvent(this.componentRefs.searchBox, e.value);\n\n\t\t\t\t\t\tconst query = e.value as string;\n\t\t\t\t\t\tconst cachedResults = this.cache.get(query);\n\t\t\t\t\t\tconsole.info('query', query);\n\n\t\t\t\t\t\tif (cachedResults) {\n\t\t\t\t\t\t\tconsole.info('using cached results', cachedResults);\n\t\t\t\t\t\t\tthis.renderSearchResults(cachedResults);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.queryTypeaheadResults(query)\n\t\t\t\t\t\t\t.then((response) => response.json())\n\t\t\t\t\t\t\t.then((searchResults: MoleculeTypeaheadResult[]) => {\n\t\t\t\t\t\t\t\t// console.info(\"using results from query\", searchResults);\n\t\t\t\t\t\t\t\tthis.cache.set(query, searchResults);\n\t\t\t\t\t\t\t\tthis.renderSearchResults(searchResults);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.catch((e) => console.log(e));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.renderSearchResults([], true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Render the search results onto the page\n\t * @param {MoleculeTypeaheadResult[]} items\n\t * @returns void\n\t */\n\tprivate renderSearchResults(items: MoleculeTypeaheadResult[], hideResults?: boolean): void {\n\t\tif (Object.prototype.hasOwnProperty.call(this.$references, this.componentRefs.searchResults)) {\n\t\t\tif (hideResults) {\n\t\t\t\t// hide results box completely\n\t\t\t\tthis.$references[this.componentRefs.searchResults].innerHTML = '';\n\t\t\t} else {\n\t\t\t\t// build template\n\t\t\t\tconst resultsHtml: string = template({ data: items });\n\n\t\t\t\t// render results\n\t\t\t\tthis.domUtils.renderDomElement(this.componentRefs.searchResults, resultsHtml);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Do an API call for typeahead results\n\t * @param {string} query\n\t * @returns Promise\n\t */\n\tprivate queryTypeaheadResults(query: string): Promise {\n\t\tconst url = new URL(this.typeaheadUrl);\n\t\turl.searchParams.set('q', query);\n\t\treturn fetch(url.toString());\n\t}\n}\n","require(\"@base/models/component.twig\"); \nvar twig = require(\"twig\").twig;\nvar tpl = twig({\"allowInlineIncludes\":true,\"data\":[{\"type\":\"logic\",\"token\":{\"type\":\"Twig.logic.type.extends\",\"stack\":[{\"type\":\"Twig.expression.type.string\",\"value\":\"src/base/models/component.twig\"}],\"position\":{\"start\":0,\"end\":43}},\"position\":{\"start\":0,\"end\":43}},{\"type\":\"raw\",\"value\":\"\\n\",\"position\":{\"start\":44,\"end\":45}},{\"type\":\"logic\",\"token\":{\"type\":\"Twig.logic.type.set\",\"key\":\"config\",\"expression\":[{\"type\":\"Twig.expression.type.object.start\",\"value\":\"{\",\"match\":[\"{\"]},{\"type\":\"Twig.expression.type.operator.binary\",\"value\":\":\",\"precidence\":16,\"associativity\":\"rightToLeft\",\"operator\":\":\",\"key\":\"name\"},{\"type\":\"Twig.expression.type.string\",\"value\":\"m-typeahead-results\"},{\"type\":\"Twig.expression.type.comma\"},{\"type\":\"Twig.expression.type.operator.binary\",\"value\":\":\",\"precidence\":16,\"associativity\":\"rightToLeft\",\"operator\":\":\",\"key\":\"tag\"},{\"type\":\"Twig.expression.type.string\",\"value\":\"div\"},{\"type\":\"Twig.expression.type.comma\"},{\"type\":\"Twig.expression.type.operator.binary\",\"value\":\":\",\"precidence\":16,\"associativity\":\"rightToLeft\",\"operator\":\":\",\"key\":\"controller\"},{\"type\":\"Twig.expression.type.string\",\"value\":\"\"},{\"type\":\"Twig.expression.type.object.end\",\"value\":\"}\",\"match\":[\"}\"]}],\"position\":{\"start\":45,\"end\":135}},\"position\":{\"start\":45,\"end\":135}},{\"type\":\"raw\",\"value\":\"\\n\",\"position\":{\"start\":136,\"end\":137}},{\"type\":\"logic\",\"token\":{\"type\":\"Twig.logic.type.block\",\"blockName\":\"body\",\"position\":{\"start\":137,\"end\":153},\"output\":[{\"type\":\"raw\",\"value\":\"\\n\",\"position\":{\"start\":154,\"end\":155}},{\"type\":\"logic\",\"token\":{\"type\":\"Twig.logic.type.set\",\"key\":\"resultColumns\",\"expression\":[{\"type\":\"Twig.expression.type.variable\",\"value\":\"data\",\"match\":[\"data\"]},{\"type\":\"Twig.expression.type.key.period\",\"key\":\"results\"},{\"type\":\"Twig.expression.type.filter\",\"value\":\"length\",\"match\":[\"|length\",\"length\"]}],\"position\":{\"start\":155,\"end\":200}},\"position\":{\"start\":155,\"end\":200}},{\"type\":\"raw\",\"value\":\"
\\n
\\n\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t\\t\",\"position\":{\"start\":334,\"end\":415}},{\"type\":\"raw\",\"value\":\"\\n\\t\\t\\t\\t\",\"position\":{\"start\":997,\"end\":1002}},{\"type\":\"logic\",\"token\":{\"type\":\"Twig.logic.type.for\",\"keyVar\":null,\"valueVar\":\"result\",\"expression\":[{\"type\":\"Twig.expression.type.variable\",\"value\":\"data\",\"match\":[\"data\"]},{\"type\":\"Twig.expression.type.key.period\",\"key\":\"results\"}],\"position\":{\"start\":1002,\"end\":1034},\"output\":[{\"type\":\"raw\",\"value\":\"\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\",\"position\":{\"start\":1154,\"end\":1171}},{\"type\":\"output\",\"position\":{\"start\":1171,\"end\":1197},\"stack\":[{\"type\":\"Twig.expression.type.variable\",\"value\":\"result\",\"match\":[\"result\"],\"position\":{\"start\":1171,\"end\":1197}},{\"type\":\"Twig.expression.type.key.period\",\"position\":{\"start\":1171,\"end\":1197},\"key\":\"categoryTitle\"}]},{\"type\":\"raw\",\"value\":\"
\\n\\t\\t\\t\\t\\t\\t\",\"position\":{\"start\":1197,\"end\":1210}},{\"type\":\"logic\",\"token\":{\"type\":\"Twig.logic.type.for\",\"keyVar\":null,\"valueVar\":\"item\",\"expression\":[{\"type\":\"Twig.expression.type.variable\",\"value\":\"result\",\"match\":[\"result\"]},{\"type\":\"Twig.expression.type.key.period\",\"key\":\"items\"}],\"position\":{\"start\":1210,\"end\":1240},\"output\":[{\"type\":\"raw\",\"value\":\"\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\",\"position\":{\"start\":1339,\"end\":1356}}]},\"position\":{\"open\":{\"start\":1210,\"end\":1240},\"close\":{\"start\":1356,\"end\":1368}}},{\"type\":\"raw\",\"value\":\"\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\",\"position\":{\"start\":1369,\"end\":1385}}]},\"position\":{\"open\":{\"start\":1002,\"end\":1034},\"close\":{\"start\":1385,\"end\":1397}}},{\"type\":\"raw\",\"value\":\"\\t\\t\\t
\\n\\t\\t
\\n
\\n
\\n\\n\",\"position\":{\"start\":1398,\"end\":1436}}]},\"position\":{\"open\":{\"start\":137,\"end\":153},\"close\":{\"start\":1436,\"end\":1450}}}],\"id\":\"src/wolf/components/molecules/m-typeahead-results/m-typeahead-results.template.twig\",\"rethrow\":true});\nmodule.exports = function(context) { return tpl.render(context); };\nmodule.exports.id = \"src/wolf/components/molecules/m-typeahead-results/m-typeahead-results.template.twig\";\nmodule.exports.default = module.exports;\n"],"names":["AsyncAction","_super","scheduler","work","_this","call","this","pending","prototype","schedule","state","delay","closed","id","recycleAsyncId","requestAsyncId","setInterval","flush","bind","clearInterval","execute","Error","error","_execute","errored","errorValue","undefined","e","unsubscribe","_unsubscribe","actions","index","indexOf","splice","Action","Scheduler","SchedulerAction","now","Date","AsyncScheduler","delegate","active","scheduled","action","push","shift","debounceTime","dueTime","source","lift","DebounceTimeOperator","subscriber","subscribe","DebounceTimeSubscriber","destination","debouncedSubscription","lastValue","hasValue","_next","value","clearDebounce","add","dispatchNext","_complete","debouncedNext","complete","next","remove","Subscriber","DomServices","constructor","element","references","onDomElementChanged","Subject","parseStringToHtml","htmlAsString","parsedNode","DOMParser","parseFromString","body","firstChild","renderDomElement","ref","html","renderOnParent","refExists","$references","Object","hasOwnProperty","$element","innerHTML","domElementChanged","console","warn","appendRawHtmlToDomElement","node","position","htmlNode","insertAdjacentElement","replaceLastChildElementWithRawHtml","lastNode","childNodes","length","replaceChild","reference","parseDOMScriptTag","elementId","data","document","getElementById","JSON","parse","innerText","collectReferences","ignoredReferences","includedReferences","refs","Array","from","querySelectorAll","forEach","el","referenceName","dataset","includes","window","location","hostname","name","getRef","toggleElementState","control","newState","removeAttribute","setAttribute","renderDomElementInHTMLElement","InputClasses","InputServices","observedInputs","subscribeInputWithErrorRemovalOnInputChange","event","onChange","castEvent","target","label","previousElementSibling","classList","contains","errorClass","input","errorMessage","nextElementSibling","mapInputEvent","addFocusToInput","inputName","querySelector","focus","observeElementEvents","inputEvent","inputToObserve$","fromEvent","pipe","map","addErrorsToFieldset","errors","onErrorsUpdated","keys","addOrRemoveFormValidationError","inputNameToFocus","firstErrorElement","scrollIntoView","showOrHide","errorMessageContainer","hiddenClass","ControllerBase","disableReferenceCollection","domUtils","inputUtils","dispatchCustomEvent","detail","bubbles","dispatchOnWindow","dispatchOnSpecificElement","customEvent","CustomEvent","dispatchEvent","AtomButtonEvents","buttonClicked","template","ControllerKbStartpageStage","super","componentRefs","searchBox","searchResults","searchButton","searchForm","numberOfResults","minCharLength","typeaheadUrl","typeaheadurl","searchUrl","searchurl","cache","Map","observeUserSearch","observeSearchResults","observeSearchButtonClick","buttonAtomComponent","form","addEventListener","submit","results","links","ev","preventDefault","onTypeaheadSuggestionClick","renderSearchResults","link","href","text","query","cachedResults","get","info","queryTypeaheadResults","then","response","json","set","catch","log","items","hideResults","resultsHtml","url","URL","searchParams","fetch","toString","tpl","twig","module","exports","context","render"],"sourceRoot":""}