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strap","webpack://baas-static-web/webpack/runtime/define property getters","webpack://baas-static-web/webpack/runtime/hasOwnProperty shorthand","webpack://baas-static-web/webpack/runtime/make namespace object","webpack://baas-static-web/external var \"ng.core\"","webpack://baas-static-web/./node_modules/@ng-select/ng-option-highlight/fesm2022/ng-select-ng-option-highlight.mjs","webpack://baas-static-web/./src/3rd-party/@ng-select/ng-option-highlight.ts"],"sourcesContent":["var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (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((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (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 = (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 = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","const __WEBPACK_NAMESPACE_OBJECT__ = ng.core;","import * as i0 from '@angular/core';\nimport { Directive, Input, NgModule } from '@angular/core';\n\nclass NgOptionHighlightDirective {\n constructor(elementRef, renderer) {\n this.elementRef = elementRef;\n this.renderer = renderer;\n this.element = this.elementRef.nativeElement;\n }\n get _canHighlight() {\n return this._isDefined(this.term) && this._isDefined(this.label);\n }\n ngOnChanges() {\n if (this._canHighlight) {\n this._highlightLabel();\n }\n }\n ngAfterViewInit() {\n this.label = this.element.innerHTML;\n if (this._canHighlight) {\n this._highlightLabel();\n }\n }\n _escapeRegExp(str) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n _highlightLabel() {\n const label = this.label;\n if (!this.term) {\n this._setInnerHtml(label);\n return;\n }\n const alternationString = this._escapeRegExp(this.term).replace(' ', '|');\n const termRegex = new RegExp(alternationString, 'gi');\n this._setInnerHtml(label.replace(termRegex, `$&`));\n }\n _setInnerHtml(html) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'innerHTML', html);\n }\n _isDefined(value) {\n return value !== undefined && value !== null;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.5\", ngImport: i0, type: NgOptionHighlightDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"18.2.5\", type: NgOptionHighlightDirective, isStandalone: true, selector: \"[ngOptionHighlight]\", inputs: { term: [\"ngOptionHighlight\", \"term\"] }, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.5\", ngImport: i0, type: NgOptionHighlightDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngOptionHighlight]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { term: [{\n type: Input,\n args: ['ngOptionHighlight']\n }] } });\n\nclass NgOptionHighlightModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.5\", ngImport: i0, type: NgOptionHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"18.2.5\", ngImport: i0, type: NgOptionHighlightModule, imports: [NgOptionHighlightDirective], exports: [NgOptionHighlightDirective] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"18.2.5\", ngImport: i0, type: NgOptionHighlightModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.5\", ngImport: i0, type: NgOptionHighlightModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [NgOptionHighlightDirective],\n exports: [NgOptionHighlightDirective],\n }]\n }] });\n\n/*\n * Public API Surface of ng-option-highlight\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NgOptionHighlightDirective, NgOptionHighlightModule };\n//# sourceMappingURL=ng-select-ng-option-highlight.mjs.map\n","import * as ngSelectOptionHighlight from '@ng-select/ng-option-highlight';\r\n\r\nif(window['ng-select'] == null) window['ng-select'] = {};\r\nwindow['ng-select']['ng-option-highlight'] = ngSelectOptionHighlight\r\n\r\nexport { ngSelectOptionHighlight };"],"names":["leafPrototypes","getProto","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","Object","getPrototypeOf","obj","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","NgOptionHighlightDirective","constructor","elementRef","renderer","element","nativeElement","_canHighlight","_isDefined","term","label","ngOnChanges","_highlightLabel","ngAfterViewInit","innerHTML","_escapeRegExp","str","replace","_setInnerHtml","alternationString","termRegex","RegExp","html","setProperty","minVersion","version","ngImport","type","deps","token","target","Directive","isStandalone","selector","inputs","usesOnChanges","decorators","args","standalone","ctorParameters","propDecorators","Input","NgOptionHighlightModule","NgModule","imports","window"],"sourceRoot":""}