ng-select2-component
Advanced tools
Comparing version 8.0.4 to 8.0.5
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/overlay"),require("@angular/cdk/scrolling"),require("@angular/core"),require("@angular/forms"),require("rxjs"),require("@angular/common"),require("ngx-infinite-scroll")):"function"==typeof define&&define.amd?define("ng-select2-component",["exports","@angular/cdk/overlay","@angular/cdk/scrolling","@angular/core","@angular/forms","rxjs","@angular/common","ngx-infinite-scroll"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-select2-component"]={},e.ng.cdk.overlay,e.ng.cdk.scrolling,e.ng.core,e.ng.forms,e.rxjs,e.ng.common,e.ngxInfiniteScroll)}(this,(function(e,t,n,o,i,l,r,s){"use strict";var a=[{l:"a",s:/[ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ]/gi},{l:"aa",s:/ꜳ/gi},{l:"ae",s:/[æǽǣ]/gi},{l:"ao",s:/ꜵ/gi},{l:"au",s:/ꜷ/gi},{l:"av",s:/[ꜹꜻ]/gi},{l:"ay",s:/ꜽ/gi},{l:"b",s:/[ⓑbḃḅḇƀƃɓ]/gi},{l:"c",s:/[ⓒcćĉċčçḉƈȼꜿↄ]/gi},{l:"d",s:/[ⓓdḋďḍḑḓḏđƌɖɗꝺ]/gi},{l:"dz",s:/[dzdž]/gi},{l:"e",s:/[ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ]/gi},{l:"f",s:/[ⓕfḟƒꝼ]/gi},{l:"g",s:/[ⓖgǵĝḡğġǧģǥɠꞡᵹꝿ]/gi},{l:"h",s:/[ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ]/gi},{l:"hv",s:/ƕ/gi},{l:"i",s:/[ⓘiìíîĩīĭİïḯỉǐȉȋịįḭɨı]/gi},{l:"j",s:/[ⓙjĵǰɉ]/gi},{l:"k",s:/[ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ]/gi},{l:"l",s:/[ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇꝆ]/gi},{l:"lj",s:/lj/gi},{l:"m",s:/[ⓜmḿṁṃɱɯ]/gi},{l:"n",s:/[ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ]/gi},{l:"nj",s:/nj/gi},{l:"o",s:/[ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔƟꝋꝍɵ]/gi},{l:"oi",s:/ƣ/gi},{l:"oe",s:/œ/gi},{l:"oo",s:/ꝏ/gi},{l:"ou",s:/ȣ/gi},{l:"p",s:/[ⓟpṕṗƥᵽꝑꝓꝕ]/gi},{l:"q",s:/[ⓠqɋꝗꝙ]/gi},{l:"r",s:/[ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ]/gi},{l:"s",s:/[ⓢsßẞśṥŝṡšṧṣṩșşȿꞩꞅẛ]/gi},{l:"t",s:/[ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ]/gi},{l:"tz",s:/ꜩ/gi},{l:"u",s:/[ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ]/gi},{l:"v",s:/[ⓥvṽṿʋꝟʌ]/gi},{l:"vy",s:/ꝡ/gi},{l:"w",s:/[ⓦwẁẃŵẇẅẘẉⱳ]/gi},{l:"x",s:/[ⓧxẋẍ]/gi},{l:"y",s:/[ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ]/gi},{l:"z",s:/[ⓩzźẑżžẓẕƶȥɀⱬꝣ]/gi}],c=new RegExp("[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");Object.create;function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var u=function(){function e(){}return e.getOptionByValue=function(e,t){var n,o,i,l;if(Array.isArray(e))try{for(var r=p(e),s=r.next();!s.done;s=r.next()){var a=s.value,c=a.options;if(c)try{for(var u=(i=void 0,p(c)),d=u.next();!d.done;d=u.next()){var h=d.value;if(h.value===t)return h}}catch(e){i={error:e}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(i)throw i.error}}else if(a.value===t)return a}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return null},e.getOptionsByValue=function(t,n,o){var i,l;if(o){var r=Array.isArray(n)?n:[],s=[];try{for(var a=p(r),c=a.next();!c.done;c=a.next()){var u=c.value,d=e.getOptionByValue(t,u);d&&s.push(d)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(l=a.return)&&l.call(a)}finally{if(i)throw i.error}}return s}return e.getOptionByValue(t,n)},e.getFirstAvailableOption=function(e){var t,n,o,i;if(Array.isArray(e))try{for(var l=p(e),r=l.next();!r.done;r=l.next()){var s=r.value,a=s.options;if(a)try{for(var c=(o=void 0,p(a)),u=c.next();!u.done;u=c.next()){var d;if(!(d=u.value).disabled)return d.value}}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}else if(!(d=s).disabled)return d.value}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return null},e.getOptionsCount=function(e){var t,n,o=0;if(Array.isArray(e))try{for(var i=p(e),l=i.next();!l.done;l=i.next()){var r=l.value.options;r?o+=r.length:o++}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o},e.valueIsNotInFilteredData=function(t,n){var o,i,l,r;if(e.isNullOrUndefined(n))return!0;try{for(var s=p(t),a=s.next();!a.done;a=s.next()){var c=a.value,u=c.options;if(u)try{for(var d=(l=void 0,p(u)),h=d.next();!h.done;h=d.next()){if(h.value.value===n)return!1}}catch(e){l={error:e}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}else if(c.value===n)return!1}}catch(e){o={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return!0},e.getPreviousOption=function(t,n){for(var o=e.isNullOrUndefined(n),i=t.length-1;i>=0;i--){var l=t[i],r=l.options;if(r)for(var s=r.length-1;s>=0;s--){var a=r[s];if(o&&!a.disabled&&!a.hide)return a;o||(o=a.value===n)}else{a=l;if(o&&!a.disabled&&!a.hide)return a;o||(o=a.value===n)}}return null},e.getNextOption=function(t,n){var o,i,l,r,s=e.isNullOrUndefined(n);try{for(var a=p(t),c=a.next();!c.done;c=a.next()){var u=c.value,d=u.options;if(d)try{for(var h=(l=void 0,p(d)),f=h.next();!f.done;f=h.next()){var g=f.value;if(s){if(!g.disabled&&!g.hide)return g}else s||(s=g.value===n)}}catch(e){l={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(l)throw l.error}}else{g=u;if(s){if(!g.disabled&&!g.hide)return g}else s||(s=g.value===n)}}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return null},e.isNullOrUndefined=function(e){return null==e},e.containSearchText=function(t,n,o){return!n||null!==e.formatSansUnicode(t).match(new RegExp(e.formatPattern(n,o),"i"))},e.protectPattern=function(e){return e.replace(c,"\\$&")},e.formatSansUnicode=function(e){var t,n;try{for(var o=p(a),i=o.next();!i.done;i=o.next()){var l=i.value;e=e.replace(l.s,l.l)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return e},e.formatPattern=function(t,n){return t=e.formatSansUnicode(e.protectPattern(t)),n&&"function"==typeof n&&(t=n(t)),t},e.getFilteredData=function(t,n,o){var i,l;if(n){var r=[];try{for(var s=p(t),a=s.next();!a.done;a=s.next()){var c=a.value,u=c.options;if(u){if(u.some((function(t){return e.containSearchText(t.label,n,o)}))){var d=u.filter((function(t){return e.containSearchText(t.label,n,o)}));r.push({label:c.label,options:d})}}else e.containSearchText(c.label,n,o)&&r.push(c)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(l=s.return)&&l.call(s)}finally{if(i)throw i.error}}return r}return t},e.getFilteredSelectedData=function(t,n){var o,i,l=[];try{for(var r=p(t),s=r.next();!s.done;s=r.next()){var a=s.value,c=a.options;if(c){var u=c.filter((function(t){return"false"===e.isSelected(n,t,!0)}));u.length&&l.push({label:a.label,options:u})}else"false"===e.isSelected(n,a,!0)&&l.push(a)}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return l},e.isSearchboxHiddex=function(t,n){return(""===n||null==n||isNaN(+n))&&(n=6),e.getOptionsCount(t)<+n},e.isSelected=function(e,t,n){return n?e&&e.some((function(e){return e.value===t.value}))?"true":"false":e&&t.value===e.value?"true":"false"},e.removeSelection=function(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t.value)return void e.splice(n,1)},e}(),d=0,h=["default","hidden","always"],f=function(){function e(e,t,n,i,r,s){this._viewportRuler=e,this._changeDetectorRef=t,this._parentForm=n,this._parentFormGroup=i,this._control=r,this.minCharForSearch=0,this.limitSelection=0,this.listPosition="below",this.styleMode="default",this.infiniteScrollDistance=1.5,this.infiniteScrollThrottle=150,this.resultMaxHeight="200px",this.update=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.focus=new o.EventEmitter,this.blur=new o.EventEmitter,this.search=new o.EventEmitter,this.scroll=new o.EventEmitter,this.removeOption=new o.EventEmitter,this.option=null,this.isOpen=!1,this.focused=!1,this.hoveringValue=null,this.innerSearchText="",this._stateChanges=new l.Subject,this._disabled=!1,this._required=!1,this._readonly=!1,this._multiple=!1,this._overlay=!1,this._resettable=!1,this._hideSelectedItems=!1,this._clickDetection=!1,this._uid="select2-"+d++,this._infiniteScroll=!0,this._onTouched=function(){},this._onChange=function(){},this.id=this.id,this._tabIndex=parseInt(s,10)||0,this._control&&(this._control.valueAccessor=this),this._clickDetectionFc=this.clickDetection.bind(this)}return Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=this._coerceBooleanProperty(e),this.ngOnInit()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlay",{get:function(){return this._overlay},set:function(e){this._overlay=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"infiniteScroll",{get:function(){return this._infiniteScroll},set:function(e){this._infiniteScroll=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2Options",{get:function(){return this.multiple?this.option:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2Option",{get:function(){return this.multiple?null:this.option},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchText",{get:function(){return this.innerSearchText},set:function(e){this.customSearchEnabled&&this.search.emit({component:this,value:this._value,search:e}),this.innerSearchText=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCountForSearch",{get:function(){return this._minCountForSearch},set:function(e){this._minCountForSearch=e,this.updateSearchBox()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._control?this._control.disabled:this._disabled},set:function(e){this._disabled=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideSelectedItems",{get:function(){return this._hideSelectedItems},set:function(e){this._hideSelectedItems=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=this;this.testValueChange(this._value,e)&&setTimeout((function(){t._value=e,t.writeValue(e)}),10)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(e){void 0!==e&&(this._tabIndex=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resettable",{get:function(){return this._resettable},set:function(e){this._resettable=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaInvalid",{get:function(){return this._isErrorState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classMaterial",{get:function(){return"material"===this.styleMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNostyle",{get:function(){return"noStyle"===this.styleMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2above",{get:function(){return this.overlay?this._isAbobeOverlay():"above"===this.listPosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_positions",{get:function(){if("auto"!==this.listPosition)return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resultsElement",{get:function(){var e;return null===(e=this.resultContainer)||void 0===e?void 0:e.nativeElement},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._viewportRuler.change(100).subscribe((function(){e.isOpen&&e.triggerRect()}));var t=u.getOptionsByValue(this.data,this._control?this._control.value:this.value,this.multiple);null!==t&&(this.option=t),Array.isArray(t)||(this.hoveringValue=this.value),this.updateSearchBox()},e.prototype.ngAfterViewInit=function(){var e=this;this.cdkConnectedOverlay.positionChange.subscribe((function(t){var n;"auto"===e.listPosition&&(null===(n=t.connectionPair)||void 0===n?void 0:n.originY)&&e._overlayPosition!==t.connectionPair.originY&&(e.triggerRect(),e._overlayPosition=t.connectionPair.originY,e._changeDetectorRef.detectChanges())})),this.selectionElement=this.selection.nativeElement,this.triggerRect()},e.prototype.ngDoCheck=function(){var e;this.updateSearchBox(),this._dirtyCheckNativeValue(),this._triggerRect&&(this.overlayWidth!==this._triggerRect.width&&(this.overlayWidth=this._triggerRect.width),(null===(e=this._dropdownRect)||void 0===e?void 0:e.height)>0&&this.overlayHeight!==this._dropdownRect.height&&(this.overlayHeight="auto"===this.listPosition?this._dropdownRect.height:0))},e.prototype.ngOnDestroy=function(){window.document.body.removeEventListener("click",this._clickDetectionFc)},e.prototype.updateSearchBox=function(){var e=!this.customSearchEnabled&&u.isSearchboxHiddex(this.data,this._minCountForSearch);this.isSearchboxHidden!==e&&(this.isSearchboxHidden=e)},e.prototype.hideSearch=function(){var e=h.indexOf(this.displaySearchStatus)>-1?this.displaySearchStatus:"default";return"default"===e&&this.isSearchboxHidden||"hidden"===e},e.prototype.getOptionStyle=function(e){return"select2-results__option "+(e.hide?"select2-results__option--hide ":"")+(e.value===this.hoveringValue?"select2-results__option--highlighted ":"")+(e.classes||"")},e.prototype.mouseenter=function(e){e.disabled||(this.hoveringValue=e.value)},e.prototype.click=function(e){this.testSelection(e)&&this.select(e)},e.prototype.reset=function(e){this.select(null),e.preventDefault(),e.stopPropagation()},e.prototype.prevChange=function(e){e.stopPropagation()},e.prototype.toggleOpenAndClose=function(){var e=this;this.disabled||(this._focus(!0),this.isOpen=!this.isOpen,this.isOpen?(this.innerSearchText="",this.updateFilteredData(),this._focusSearchboxOrResultsElement(),setTimeout((function(){if(e.option){var t=e.option instanceof Array?e.option[0]:e.option;e.updateScrollFromOption(t)}else e.resultsElement&&(e.resultsElement.scrollTop=0);setTimeout((function(){var t,n;e.triggerRect(),null===(n=null===(t=e.cdkConnectedOverlay)||void 0===t?void 0:t.overlayRef)||void 0===n||n.updatePosition()}),100)})),this.open.emit(this)):this.close.emit(this),this.isOpen&&!this._clickDetection&&setTimeout((function(){window.document.body.addEventListener("click",e._clickDetectionFc,!1),e._clickDetection=!0}),200),this._changeDetectorRef.markForCheck())},e.prototype.hasTemplate=function(e,t){var n,i;return this.templates instanceof o.TemplateRef||(null===(n=this.templates)||void 0===n?void 0:n[e.templateId])instanceof o.TemplateRef||(null===(i=this.templates)||void 0===i?void 0:i[t])instanceof o.TemplateRef},e.prototype.getTemplate=function(e,t){return this.hasTemplate(e,t)?this.templates[e.templateId]||this.templates[t]||this.templates:void 0},e.prototype.triggerRect=function(){this._triggerRect=this.selectionElement.getBoundingClientRect(),this._dropdownRect=this.dropdown.nativeElement?this.dropdown.nativeElement.getBoundingClientRect():void 0},e.prototype.testSelection=function(e){return!e.disabled&&!(this.multiple&&this.limitSelection&&!(Array.isArray(this._value)&&this._value.length<this.limitSelection))},e.prototype.testValueChange=function(e,t){var n,o,i,l;if(null==e&&null==t||e===t)return!1;if(this.multiple&&(null===(i=e)||void 0===i?void 0:i.length)&&(null===(l=t)||void 0===l?void 0:l.length)&&e.length===t.length){try{for(var r=p(e),s=r.next();!s.done;s=r.next()){var a=s.value;if(!(t.indexOf(a)>-1))return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return!1}return!0},e.prototype.updateFilteredData=function(){var e=this;setTimeout((function(){var t=e.data;e.multiple&&e.hideSelectedItems&&(t=u.getFilteredSelectedData(t,e.option)),!e.customSearchEnabled&&e.searchText&&e.searchText.length>=+e.minCharForSearch&&(t=u.getFilteredData(t,e.searchText,e.editPattern)),u.valueIsNotInFilteredData(t,e.hoveringValue)&&(e.hoveringValue=u.getFirstAvailableOption(t)),e.filteredData=t,e._changeDetectorRef.markForCheck()}))},e.prototype.clickDetection=function(e){this.ifParentContainsClass(e.target,"selection")?this.isOpen&&!this.ifParentContainsId(e.target,this._id)&&(this.toggleOpenAndClose(),this.clickExit()):(this.isOpen&&!this.ifParentContainsClass(e.target,"select2-dropdown")&&this.toggleOpenAndClose(),this.ifParentContainsId(e.target,this._id)||this.clickExit())},e.prototype.clickExit=function(){this._focus(!1),window.document.body.removeEventListener("click",this._clickDetectionFc),this._clickDetection=!1},e.prototype.ifParentContainsClass=function(e,t){return null!==this.getParentElementByClass(e,t)},e.prototype.ifParentContainsId=function(e,t){return null!==this.getParentElementById(e,t)},e.prototype.getParentElementByClass=function(e,t){return this.containClasses(e,t.trim().split(/\s+/))?e:e.parentElement?this.getParentElementByClass(e.parentElement,t):null},e.prototype.getParentElementById=function(e,t){return e.id===t?e:e.parentElement?this.getParentElementById(e.parentElement,t):null},e.prototype.containClasses=function(e,t){var n,o;if(!e.classList)return!1;try{for(var i=p(t),l=i.next();!l.done;l=i.next()){var r=l.value;if(!e.classList.contains(r))return!1}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.focusin=function(){this.disabled||this._focus(!0)},e.prototype.focusout=function(){this.selectionElement&&!this.selectionElement.classList.contains("select2-focused")&&(this._focus(!1),this._onTouched())},e.prototype.moveUp=function(){this.updateScrollFromOption(u.getPreviousOption(this.filteredData,this.hoveringValue))},e.prototype.moveDown=function(){this.updateScrollFromOption(u.getNextOption(this.filteredData,this.hoveringValue))},e.prototype.updateScrollFromOption=function(e){if(e){this.hoveringValue=e.value;var t=this.results.find((function(t){return t.nativeElement.innerText.trim()===e.label}));if(t&&this.resultsElement){this.resultsElement.scrollTop=0;var n=this.resultsElement.getBoundingClientRect(),o=t.nativeElement.getBoundingClientRect();this.resultsElement.scrollTop=o.top-n.top}}},e.prototype.selectByEnter=function(){if(this.hoveringValue){var e=u.getOptionByValue(this.data,this.hoveringValue);this.select(e)}},e.prototype.select=function(e){var t;if(null!==e)if(this.multiple){var n=this.option,o=n.findIndex((function(t){return t.value===e.value}));-1===o?n.push(e):n.splice(o,1),t=this.option.map((function(e){return e.value}))}else this.option=e,this.isOpen&&(this.isOpen=!1,this.close.emit(this),this.selectionElement&&this.selectionElement.focus()),t=this.option.value;else this.option=null;this.multiple&&this.hideSelectedItems&&this.updateFilteredData(),this._control?this._onChange(t):this._value=t,this.update.emit({component:this,value:t,options:Array.isArray(this.option)?this.option:this.option?[this.option]:null})},e.prototype.keyDown=function(e){this._testKey(e,["ArrowDown",40])?(this.moveDown(),e.preventDefault()):this._testKey(e,["ArrowUp",38])?(this.moveUp(),e.preventDefault()):this._testKey(e,["Enter",13])?(this.selectByEnter(),e.preventDefault()):this._testKey(e,["Escape","Tab",9,27])&&this.isOpen&&(this.toggleOpenAndClose(),this._focus(!1))},e.prototype.openKey=function(e){this._testKey(e,["ArrowDown","ArrowUp","Enter",40,38,13])?(this.toggleOpenAndClose(),e.preventDefault()):this._testKey(e,["Escape","Tab",9,27])&&(this._focus(!1),this._onTouched())},e.prototype.trackBy=function(e,t){return t.value},e.prototype.searchUpdate=function(e){this.searchText=e.target.value,this.updateFilteredData()},e.prototype.isSelected=function(e){return u.isSelected(this.option,e,this.multiple)},e.prototype.isDisabled=function(e){return e.disabled?"true":"false"},e.prototype.removeSelection=function(e,t){u.removeSelection(this.option,t),this.multiple&&this.hideSelectedItems&&this.updateFilteredData();var n=this.option.map((function(e){return e.value}));this._control?this._onChange(n):this._value=n,this.update.emit({component:this,value:n,options:Array.isArray(this.option)?this.option:this.option?[this.option]:null}),this.removeOption.emit({component:this,value:n,removedOption:t}),e.preventDefault(),e.stopPropagation(),this.isOpen&&this._focusSearchboxOrResultsElement()},e.prototype.writeValue=function(e){this._setSelectionByValue(e)},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onScroll=function(e){this.scroll.emit({component:this,way:e,search:this.innerSearchText})},e.prototype._isErrorState=function(){var e=this._control&&this._control.invalid,t=this._control&&this._control.touched,n=this._parentFormGroup&&this._parentFormGroup.submitted||this._parentForm&&this._parentForm.submitted;return!(!e||!t&&!n)},e.prototype._testKey=function(e,t){return void 0===t&&(t=[]),this._isKey(this._getKey(e),t)},e.prototype._getKey=function(e){var t;return void 0!==e.key?t=e.key:void 0!==e.keyIdentifier?t=e.keyIdentifier:void 0!==e.keyCode?t=e.keyCode:e.preventDefault(),t},e.prototype._isKey=function(e,t){return void 0===t&&(t=[]),!!(t&&t.length>0)&&-1!==t.indexOf(e)},e.prototype._setSelectionByValue=function(e){var t=this;if(this.option||null!=e){var n=Array.isArray(e);if(this.multiple&&e&&!n)throw new Error("Non array value.");this.data?this.multiple?(this.option=[],n&&u.getOptionsByValue(this.data,e,this.multiple).map((function(e){return t.select(e)}))):this.select(u.getOptionByValue(this.data,e)):this._control&&this._control.viewToModelUpdate(e),this._changeDetectorRef.markForCheck()}},e.prototype._dirtyCheckNativeValue=function(){var e=this.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this._stateChanges.next())},e.prototype._coerceBooleanProperty=function(e){return null!=e&&""+e!="false"},e.prototype._focusSearchboxOrResultsElement=function(){var e=this;this.isSearchboxHidden?this.resultsElement&&this.resultsElement.focus():setTimeout((function(){e.searchInput&&e.searchInput.nativeElement&&e.searchInput.nativeElement.focus()}))},e.prototype._focus=function(e){!e&&this.focused?(this.focused=e,this.blur.emit(this)):e&&!this.focused&&(this.focused=e,this.focus.emit(this))},e.prototype._isAbobeOverlay=function(){return this.overlay&&this._overlayPosition&&"auto"===this.listPosition?"top"===this._overlayPosition:"above"===this.listPosition},e}();f.decorators=[{type:o.Component,args:[{selector:"select2",template:'<div class="select2-label" (click)="toggleOpenAndClose()">\n <ng-content select="select2-label"></ng-content>\n <span *ngIf="required" class="select2-required"></span>\n</div>\n<div\n class="select2 select2-container select2-container--default select2-container--focus"\n [class.select2-container--below]="!select2above"\n [class.select2-container--above]="select2above"\n [class.select2-container--open]="isOpen"\n [class.select2-container--disabled]="disabled"\n>\n <div\n class="selection"\n #selection\n #trigger="cdkOverlayOrigin"\n [attr.tabindex]="!this.isOpen ? tabIndex : \'-1\'"\n (click)="toggleOpenAndClose()"\n (focus)="focusin()"\n (blur)="focusout()"\n (keydown)="openKey($event)"\n cdkOverlayOrigin\n [class.select2-focused]="focused"\n >\n <div\n class="select2-selection"\n [class.select2-selection--multiple]="multiple"\n [class.select2-selection--single]="!multiple"\n role="combobox"\n >\n <span *ngIf="!multiple" class="select2-selection__rendered" [title]="select2Option?.label || \'\'">\n <span *ngIf="!select2Option"> </span>\n <span *ngIf="select2Option" [innerHTML]="select2Option.label"></span>\n <span [class.select2-selection__placeholder__option]="option" class="select2-selection__placeholder">{{\n placeholder\n }}</span>\n </span>\n <span\n (click)="reset($event)"\n *ngIf="!multiple && resettable && select2Option"\n class="select2-selection__reset"\n role="presentation"\n >×</span\n >\n <span *ngIf="!multiple" class="select2-selection__arrow" role="presentation"> </span>\n <ul *ngIf="multiple" class="select2-selection__rendered">\n <span\n [class.select2-selection__placeholder__option]="select2Options?.length > 0"\n class="select2-selection__placeholder"\n >{{ placeholder }}</span\n >\n <li *ngFor="let op of option; trackBy: trackBy" class="select2-selection__choice" [title]="op.label">\n <span\n (click)="removeSelection($event, op)"\n class="select2-selection__choice__remove"\n role="presentation"\n >×</span\n >\n <span [innerHTML]="op.label"></span>\n </li>\n </ul>\n </div>\n </div>\n <ng-container *ngIf="!overlay">\n <ng-container *ngTemplateOutlet="containerTemplate"></ng-container>\n </ng-container>\n\n <div class="select2-subscript-wrapper">\n <ng-content select="select2-hint"></ng-content>\n </div>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass="select2-overlay-backdrop"\n [cdkConnectedOverlayOrigin]="trigger"\n [cdkConnectedOverlayOpen]="this.isOpen && overlay"\n [cdkConnectedOverlayMinWidth]="overlayWidth"\n [cdkConnectedOverlayHeight]="overlayHeight"\n [cdkConnectedOverlayPositions]="_positions"\n (backdropClick)="toggleOpenAndClose()"\n>\n <ng-container *ngTemplateOutlet="containerTemplate"></ng-container>\n</ng-template>\n\n<ng-template #containerTemplate>\n <div\n class="select2-container select2-container--default select2-container-dropdown"\n [class.select2-container--open]="isOpen"\n [class.select2-overlay]="overlay"\n [class.select2-position-auto]="listPosition === \'auto\'"\n >\n <div\n #dropdown\n class="select2-dropdown"\n [class.select2-dropdown--below]="!select2above"\n [class.select2-dropdown--above]="select2above"\n >\n <div class="select2-search select2-search--dropdown" [class.select2-search--hide]="hideSearch()">\n <input\n #searchInput\n [id]="id + \'-search-field\'"\n [value]="searchText"\n (keydown)="keyDown($event)"\n (keyup)="searchUpdate($event)"\n (change)="prevChange($event)"\n class="select2-search__field"\n type="search"\n role="textbox"\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n [attr.tabindex]="this.isOpen ? tabIndex : \'-1\'"\n />\n </div>\n <div class="select2-results">\n <ul\n #results\n class="select2-results__options"\n [style.max-height]="resultMaxHeight"\n role="tree"\n tabindex="-1"\n infiniteScroll\n [infiniteScrollDisabled]="!infiniteScroll && !isOpen"\n [infiniteScrollDistance]="infiniteScrollDistance"\n [infiniteScrollThrottle]="infiniteScrollThrottle"\n [infiniteScrollContainer]="results"\n (scrolled)="onScroll(\'down\')"\n (scrolledUp)="onScroll(\'up\')"\n (keydown)="keyDown($event)"\n >\n <ng-container *ngFor="let groupOrOption of filteredData; index as i; trackBy: trackBy">\n <li *ngIf="groupOrOption.options" class="select2-results__option" role="group">\n <strong\n *ngIf="!hasTemplate(groupOrOption, \'group\'); else optGroup"\n [attr.class]="\n \'select2-results__group\' +\n (groupOrOption.classes ? \' \' + groupOrOption.classes : \'\')\n "\n [innerHTML]="groupOrOption.label"\n ></strong>\n <ng-template #optGroup>\n <ng-container\n *ngTemplateOutlet="getTemplate(groupOrOption, \'group\'); context: groupOrOption"\n >\n </ng-container>\n </ng-template>\n\n <ul class="select2-results__options select2-results__options--nested">\n <li\n *ngFor="let option of groupOrOption.options; index as j; trackBy: trackBy"\n #result\n [id]="option.id || id + \'-option-\' + i + \'-\' + j"\n [class]="getOptionStyle(option)"\n role="treeitem"\n [attr.aria-selected]="isSelected(option)"\n [attr.aria-disabled]="isDisabled(option)"\n (mouseenter)="mouseenter(option)"\n (click)="click(option)"\n >\n <div\n *ngIf="!hasTemplate(option, \'option\'); else liGroup"\n class="select2-label-content"\n [innerHTML]="option.label"\n ></div>\n <ng-template #liGroup>\n <ng-container\n *ngTemplateOutlet="getTemplate(option, \'option\'); context: option"\n >\n </ng-container>\n </ng-template>\n </li>\n </ul>\n </li>\n <li\n *ngIf="!groupOrOption.options"\n #result\n [id]="groupOrOption.id || id + \'-option-\' + i"\n [class]="getOptionStyle(groupOrOption)"\n role="treeitem"\n [attr.aria-selected]="isSelected(groupOrOption)"\n [attr.aria-disabled]="isDisabled(groupOrOption)"\n (mouseenter)="mouseenter(groupOrOption)"\n (click)="click(groupOrOption)"\n >\n <div\n *ngIf="!hasTemplate(groupOrOption, \'option\'); else li"\n [innerHTML]="groupOrOption.label"\n class="select2-label-content"\n ></div>\n <ng-template #li>\n <ng-container\n *ngTemplateOutlet="getTemplate(groupOrOption, \'option\'); context: groupOrOption"\n >\n </ng-container>\n </ng-template>\n </li>\n </ng-container>\n <li\n class="select2-no-result select2-results__option"\n *ngIf="!filteredData?.length && noResultMessage"\n [innerHTML]="noResultMessage"\n ></li>\n </ul>\n </div>\n </div>\n </div>\n</ng-template>\n',styles:['.select2-label{color:#000;color:var(--select2-label-text-color,#000)}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle;width:100%}.select2-container .select2-container-dropdown{opacity:0;position:absolute;width:0}.select2-container .select2-selection--single{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;flex:1 1 auto;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container .select2-selection--multiple{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{border:none;box-sizing:border-box;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background:#fff;background:var(--select2-dropdown-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-dropdown-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);box-sizing:border-box;display:block;height:0;overflow:hidden;position:absolute;width:100%;z-index:1051}.select2-dropdown .select2-label-content{display:contents}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;color:#000;color:var(--select2-option-text-color,#000);padding:6px;user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container.select2-container-dropdown.select2-container--open{opacity:1;width:100%}.select2-container--open .select2-dropdown{height:auto;overflow:auto}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;bottom:27px;display:flex;flex-direction:column-reverse}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{box-sizing:border-box;padding:4px;width:100%}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{background:#fff;border:0;display:block;filter:alpha(opacity=0);height:auto;left:0;margin:0;min-height:100%;min-width:100%;opacity:0;padding:0;position:fixed;top:0;width:auto;z-index:99}.select2-required:before{color:red;color:var(--select2-required-color,red);content:"*"}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background:#fff;background:var(--select2-selection-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-selection-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);display:flex}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;color:var(--select2-selection-text-color,#444);line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999;color:var(--select2-placeholder-color,#999)}.select2-container--default .select2-selection--single .select2-selection__placeholder span{overflow:hidden;text-overflow:ellipsis;text-overflow:var(--select2-placeholder-overflow,ellipsis);white-space:nowrap}.select2-container--default .select2-selection--single .select2-selection__placeholder__option{display:none}.select2-container--default .select2-selection--single .select2-selection__arrow,.select2-container--default .select2-selection--single .select2-selection__reset{align-items:center;display:flex;justify-content:center;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow:before{border-bottom:0 solid var(--select2-arrow-color,#888);border-color:#888 transparent;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--select2-arrow-color,#888);content:" ";height:0;width:0}.select2-container--default .select2-selection--single .select2-selection__reset{color:#999;color:var(--select2-reset-color,#999)}.select2-container--default.select2-container--disabled .select2-selection--single{background:#eee;background:var(--select2-selection-disabled-background,#eee);cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:before{border-bottom-color:var(--select2-arrow-color,#888);border-color:transparent transparent #888;border-right-color:transparent;border-top-color:transparent;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background:#fff;background:var(--select2-selection-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-selection-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;flex:1 1 auto;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;color:var(--select2-placeholder-color,#999);display:block;float:left;margin-top:5px;overflow:hidden;text-overflow:ellipsis;text-overflow:var(--select2-placeholder-overflow,ellipsis);white-space:nowrap;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__placeholder__option{display:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px;margin-top:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background:#e4e4e4;background:var(--select2-selection-choice-background,#e4e4e4);border:1px solid #aaa;border:1px solid var(--select2-selection-choice-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);color:#000;color:var(--select2-selection-choice-text-color,#000);cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;color:var(--select2-selection-choice-close-color,#999);cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333;color:var(--select2-selection-choice-hover-close-color,#333)}.select2-container--default.select2-container--focused .select2-selection--multiple,.select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--multiple,.select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--single{border:1px solid #000;border:1px solid var(--select2-selection-focus-border-color,#000);outline:none}.select2-container--default.select2-container--disabled .select2-selection--multiple{background:#eee;background:var(--select2-selection-disabled-background,#eee);cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{background:#fff;background:1px solid var(--select2-search-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-search-border-color,#aaa);border-radius:0;border-radius:var(--select2-search-border-radius,0)}.select2-container--default .select2-search--inline .select2-search__field{-webkit-appearance:textfield;background:transparent;border:none;box-shadow:none;outline:none}.select2-container--default .select2-results>.select2-results__options{overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{background:transparent;background:var(--select2-option-disabled-background,transparent);color:#999;color:var(--select2-option-disabled-text-color,#999)}.select2-container--default .select2-results__option[aria-selected=true]{background:#ddd;background:var(--select2-option-selected-background,#ddd);color:#000;color:var(--select2-option-selected-text-color,#000)}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background:#5897fb;background:var(--select2-option-highlighted-background,#5897fb);color:#fff;color:var(--select2-option-highlighted-text-color,#fff)}.select2-container--default .select2-results__option--hide{display:none}.select2-container--default .select2-results__group{background:transparent;background:var(--select2-option-group-background,transparent);color:grey;color:var(--select2-option-group-text-color,grey);cursor:default;display:block;padding:6px}.select2-no-result{color:#888;color:var(--select2-no-result-color,#888);font-style:italic;font-style:var(--select2-font-style-color,italic)}:host.nostyle .select2-dropdown{border-color:transparent}:host.nostyle .select2-container--default .select2-focused .select2-selection--multiple,:host.nostyle .select2-container--default .select2-focused .select2-selection--single,:host.nostyle .select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--multiple,:host.nostyle .select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--single,:host.nostyle .select2-selection--multiple,:host.nostyle .select2-selection--single{background:transparent;border-color:transparent}:host.material{display:inline-block;width:300px}:host.material>.select2-container{padding-bottom:1.29688em;vertical-align:inherit}:host.material>.select2-container .selection{align-items:baseline;border-top:.84375em solid transparent;display:inline-flex;height:auto;padding:.4375em 0;width:100%}:host.material .select2-container--default .select2-selection--multiple,:host.material .select2-container--default .select2-selection--single{border:0;border-radius:0;box-sizing:border-box;height:24px;width:100%}:host.material .select2-container--default .select2-selection--multiple:before,:host.material .select2-container--default .select2-selection--single:before{background:#ddd;background:var(--select2-material-underline,#ddd);bottom:1.65em;content:" ";display:block;height:1px;position:absolute;width:100%}:host.material .select2-container--default .select2-selection--multiple:after,:host.material .select2-container--default .select2-selection--single:after{background:#5a419e;background:var(--select2-material-underline-active,#5a419e);bottom:1.63em;content:" ";display:block;height:2px;left:50%;position:absolute;transition:none;width:0}:host.material .select2-container--default .select2-selection--multiple .select2-selection__rendered,:host.material .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:inherit;padding-left:1px}:host.material .select2-container--default .select2-selection--multiple .select2-selection__placeholder,:host.material .select2-container--default .select2-selection--single .select2-selection__placeholder{color:rgba(0,0,0,.38);color:var(--select2-material-placeholder-color,rgba(0,0,0,.38));display:block;left:0;position:absolute;top:20px;transform-origin:0 21px;transition:transform .3s}:host.material .select2-container--default .select2-container--open{bottom:1.6em;left:0}:host.material .select2-container--default .select2-selection__placeholder__option{transform:translateY(-1.5em) scale(.75) perspective(100px) translateZ(.001px);width:133.33333%}:host.material .select2-container--default .select2-selection__arrow{top:20px}:host.material .select2-container--default.select2-container--open .select2-selection--multiple:after,:host.material .select2-container--default.select2-container--open .select2-selection--single:after,:host.material .select2-container--default .select2-focused .select2-selection--multiple:after,:host.material .select2-container--default .select2-focused .select2-selection--single:after{left:0;transition:width .3s cubic-bezier(.12,1,.77,1),left .3s cubic-bezier(.12,1,.77,1);width:100%}:host.material .select2-container--default .select2-dropdown{border:0;border-radius:0;box-shadow:0 5px 5px rgba(0,0,0,.5)}:host.material .select2-container--default .select2-results__option--highlighted[aria-selected],:host.material .select2-container--default .select2-results__option[aria-selected=true]{background:rgba(0,0,0,.04);background:var(--select2-material-option-selected-background,rgba(0,0,0,.04));color:#000;color:var(--select2-material-option-highlighted-text-color,#000)}:host.material .select2-container--default .select2-results__option[aria-selected=true]{color:#ff5722;color:var(--select2-material-option-selected-text-color,#ff5722)}:host.material .select2-container--default.select2-container--disabled .select2-selection--multiple,:host.material .select2-container--default.select2-container--disabled .select2-selection--single{background:transparent}:host.material .select2-container--default.select2-container--disabled .select2-selection--multiple:before,:host.material .select2-container--default.select2-container--disabled .select2-selection--single:before{background:linear-gradient(90deg,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background:var(--select2-material-underline-disabled,linear-gradient(90deg,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0));background-position:0 bottom;background-repeat:repeat-x;background-size:4px 1px}:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--multiple:after,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--multiple:before,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--single:after,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--single:before{background:red;background:var(--select2-material-underline-invalid,red)}:host.material:not(.select2-container--open) .select2-focused .select2-selection--multiple,:host.material:not(.select2-container--open) .select2-focused .select2-selection--single{border:0}:host.material .select2-subscript-wrapper{color:#888;color:var(--select2-hint-text-color,#888);font-size:75%;position:absolute;top:calc(100% - 1.72917em)}::ng-deep .select2-overlay-backdrop{background:rgba(0,0,0,.32);background:var(--select2-overlay-backdrop,transparent)}::ng-deep .cdk-overlay-container .select2-container .select2-dropdown.select2-dropdown--above{bottom:28px}::ng-deep .cdk-overlay-container .select2-container--open.select2-position-auto .select2-dropdown{margin-bottom:28px}::ng-deep .cdk-overlay-container .select2-container--open.select2-position-auto .select2-dropdown.select2-dropdown--above{bottom:0;margin-bottom:0;margin-top:28px}@supports (-moz-appearance:none){select2.material .select2-container--default .select2-selection--multiple,select2.material .select2-container--default .select2-selection--single{height:26px}}@supports (-ms-scroll-limit:0){select2.material .select2-container--default .select2-selection--multiple,select2.material .select2-container--default .select2-selection--single{height:25px}}']}]}],f.ctorParameters=function(){return[{type:n.ViewportRuler},{type:o.ChangeDetectorRef},{type:i.NgForm,decorators:[{type:o.Optional}]},{type:i.FormGroupDirective,decorators:[{type:o.Optional}]},{type:i.NgControl,decorators:[{type:o.Self},{type:o.Optional}]},{type:String,decorators:[{type:o.Attribute,args:["tabindex"]}]}]},f.propDecorators={data:[{type:o.Input}],minCharForSearch:[{type:o.Input}],displaySearchStatus:[{type:o.Input}],placeholder:[{type:o.Input}],customSearchEnabled:[{type:o.Input}],limitSelection:[{type:o.Input}],listPosition:[{type:o.Input}],multiple:[{type:o.Input}],overlay:[{type:o.Input}],styleMode:[{type:o.Input}],noResultMessage:[{type:o.Input}],infiniteScrollDistance:[{type:o.Input}],infiniteScrollThrottle:[{type:o.Input}],infiniteScroll:[{type:o.Input}],editPattern:[{type:o.Input}],templates:[{type:o.Input}],resultMaxHeight:[{type:o.Input}],update:[{type:o.Output}],open:[{type:o.Output}],close:[{type:o.Output}],focus:[{type:o.Output}],blur:[{type:o.Output}],search:[{type:o.Output}],scroll:[{type:o.Output}],removeOption:[{type:o.Output}],minCountForSearch:[{type:o.Input}],id:[{type:o.Input},{type:o.HostBinding,args:["id"]}],required:[{type:o.Input}],disabled:[{type:o.Input}],hideSelectedItems:[{type:o.Input}],readonly:[{type:o.Input}],value:[{type:o.Input}],tabIndex:[{type:o.Input}],resettable:[{type:o.Input}],ariaInvalid:[{type:o.HostBinding,args:["attr.aria-invalid"]}],classMaterial:[{type:o.HostBinding,args:["class.material"]}],classNostyle:[{type:o.HostBinding,args:["class.nostyle"]}],select2above:[{type:o.HostBinding,args:["class.select2-above"]}],cdkConnectedOverlay:[{type:o.ViewChild,args:[t.CdkConnectedOverlay]}],selection:[{type:o.ViewChild,args:["selection",{static:!0}]}],resultContainer:[{type:o.ViewChild,args:["results"]}],results:[{type:o.ViewChildren,args:["result"]}],searchInput:[{type:o.ViewChild,args:["searchInput"]}],dropdown:[{type:o.ViewChild,args:["dropdown"]}]};var g=function(){};g.decorators=[{type:o.Directive,args:[{selector:"select2-hint"}]}];var b=function(){};b.decorators=[{type:o.Directive,args:[{selector:"select2-label"}]}];var v=function(){};v.decorators=[{type:o.NgModule,args:[{imports:[r.CommonModule,i.FormsModule,t.OverlayModule,i.ReactiveFormsModule,s.InfiniteScrollModule],declarations:[g,b,f],exports:[i.FormsModule,i.ReactiveFormsModule,g,b,f]}]}],e.Select2=f,e.Select2Hint=g,e.Select2Label=b,e.Select2Module=v,e.Select2Utils=u,e.defaultMinCountForSearch=6,e.protectRegexp=c,e.timeout=200,e.unicodePatterns=a,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/overlay"),require("@angular/cdk/scrolling"),require("@angular/core"),require("@angular/forms"),require("rxjs"),require("@angular/common"),require("ngx-infinite-scroll")):"function"==typeof define&&define.amd?define("ng-select2-component",["exports","@angular/cdk/overlay","@angular/cdk/scrolling","@angular/core","@angular/forms","rxjs","@angular/common","ngx-infinite-scroll"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-select2-component"]={},e.ng.cdk.overlay,e.ng.cdk.scrolling,e.ng.core,e.ng.forms,e.rxjs,e.ng.common,e.ngxInfiniteScroll)}(this,(function(e,t,n,o,i,l,r,s){"use strict";var a=[{l:"a",s:/[ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ]/gi},{l:"aa",s:/ꜳ/gi},{l:"ae",s:/[æǽǣ]/gi},{l:"ao",s:/ꜵ/gi},{l:"au",s:/ꜷ/gi},{l:"av",s:/[ꜹꜻ]/gi},{l:"ay",s:/ꜽ/gi},{l:"b",s:/[ⓑbḃḅḇƀƃɓ]/gi},{l:"c",s:/[ⓒcćĉċčçḉƈȼꜿↄ]/gi},{l:"d",s:/[ⓓdḋďḍḑḓḏđƌɖɗꝺ]/gi},{l:"dz",s:/[dzdž]/gi},{l:"e",s:/[ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ]/gi},{l:"f",s:/[ⓕfḟƒꝼ]/gi},{l:"g",s:/[ⓖgǵĝḡğġǧģǥɠꞡᵹꝿ]/gi},{l:"h",s:/[ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ]/gi},{l:"hv",s:/ƕ/gi},{l:"i",s:/[ⓘiìíîĩīĭİïḯỉǐȉȋịįḭɨı]/gi},{l:"j",s:/[ⓙjĵǰɉ]/gi},{l:"k",s:/[ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ]/gi},{l:"l",s:/[ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇꝆ]/gi},{l:"lj",s:/lj/gi},{l:"m",s:/[ⓜmḿṁṃɱɯ]/gi},{l:"n",s:/[ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ]/gi},{l:"nj",s:/nj/gi},{l:"o",s:/[ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔƟꝋꝍɵ]/gi},{l:"oi",s:/ƣ/gi},{l:"oe",s:/œ/gi},{l:"oo",s:/ꝏ/gi},{l:"ou",s:/ȣ/gi},{l:"p",s:/[ⓟpṕṗƥᵽꝑꝓꝕ]/gi},{l:"q",s:/[ⓠqɋꝗꝙ]/gi},{l:"r",s:/[ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ]/gi},{l:"s",s:/[ⓢsßẞśṥŝṡšṧṣṩșşȿꞩꞅẛ]/gi},{l:"t",s:/[ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ]/gi},{l:"tz",s:/ꜩ/gi},{l:"u",s:/[ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ]/gi},{l:"v",s:/[ⓥvṽṿʋꝟʌ]/gi},{l:"vy",s:/ꝡ/gi},{l:"w",s:/[ⓦwẁẃŵẇẅẘẉⱳ]/gi},{l:"x",s:/[ⓧxẋẍ]/gi},{l:"y",s:/[ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ]/gi},{l:"z",s:/[ⓩzźẑżžẓẕƶȥɀⱬꝣ]/gi}],c=new RegExp("[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");Object.create;function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var u=function(){function e(){}return e.getOptionByValue=function(e,t){var n,o,i,l;if(Array.isArray(e))try{for(var r=p(e),s=r.next();!s.done;s=r.next()){var a=s.value,c=a.options;if(c)try{for(var u=(i=void 0,p(c)),d=u.next();!d.done;d=u.next()){var h=d.value;if(h.value===t)return h}}catch(e){i={error:e}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(i)throw i.error}}else if(a.value===t)return a}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return null},e.getOptionsByValue=function(t,n,o){var i,l;if(o){var r=Array.isArray(n)?n:[],s=[];try{for(var a=p(r),c=a.next();!c.done;c=a.next()){var u=c.value,d=e.getOptionByValue(t,u);d&&s.push(d)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(l=a.return)&&l.call(a)}finally{if(i)throw i.error}}return s}return e.getOptionByValue(t,n)},e.getFirstAvailableOption=function(e){var t,n,o,i;if(Array.isArray(e))try{for(var l=p(e),r=l.next();!r.done;r=l.next()){var s=r.value,a=s.options;if(a)try{for(var c=(o=void 0,p(a)),u=c.next();!u.done;u=c.next()){var d;if(!(d=u.value).disabled)return d.value}}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}else if(!(d=s).disabled)return d.value}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return null},e.getOptionsCount=function(e){var t,n,o=0;if(Array.isArray(e))try{for(var i=p(e),l=i.next();!l.done;l=i.next()){var r=l.value.options;r?o+=r.length:o++}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o},e.valueIsNotInFilteredData=function(t,n){var o,i,l,r;if(e.isNullOrUndefined(n))return!0;try{for(var s=p(t),a=s.next();!a.done;a=s.next()){var c=a.value,u=c.options;if(u)try{for(var d=(l=void 0,p(u)),h=d.next();!h.done;h=d.next()){if(h.value.value===n)return!1}}catch(e){l={error:e}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}else if(c.value===n)return!1}}catch(e){o={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return!0},e.getPreviousOption=function(t,n){for(var o=e.isNullOrUndefined(n),i=t.length-1;i>=0;i--){var l=t[i],r=l.options;if(r)for(var s=r.length-1;s>=0;s--){var a=r[s];if(o&&!a.disabled&&!a.hide)return a;o||(o=a.value===n)}else{a=l;if(o&&!a.disabled&&!a.hide)return a;o||(o=a.value===n)}}return null},e.getNextOption=function(t,n){var o,i,l,r,s=e.isNullOrUndefined(n);try{for(var a=p(t),c=a.next();!c.done;c=a.next()){var u=c.value,d=u.options;if(d)try{for(var h=(l=void 0,p(d)),f=h.next();!f.done;f=h.next()){var g=f.value;if(s){if(!g.disabled&&!g.hide)return g}else s||(s=g.value===n)}}catch(e){l={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(l)throw l.error}}else{g=u;if(s){if(!g.disabled&&!g.hide)return g}else s||(s=g.value===n)}}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return null},e.isNullOrUndefined=function(e){return null==e},e.containSearchText=function(t,n,o){return!n||null!==e.formatSansUnicode(t).match(new RegExp(e.formatPattern(n,o),"i"))},e.protectPattern=function(e){return e.replace(c,"\\$&")},e.formatSansUnicode=function(e){var t,n;try{for(var o=p(a),i=o.next();!i.done;i=o.next()){var l=i.value;e=e.replace(l.s,l.l)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return e},e.formatPattern=function(t,n){return t=e.formatSansUnicode(e.protectPattern(t)),n&&"function"==typeof n&&(t=n(t)),t},e.getFilteredData=function(t,n,o){var i,l;if(n){var r=[];try{for(var s=p(t),a=s.next();!a.done;a=s.next()){var c=a.value,u=c.options;if(u){if(u.some((function(t){return e.containSearchText(t.label,n,o)}))){var d=u.filter((function(t){return e.containSearchText(t.label,n,o)}));r.push({label:c.label,options:d})}}else e.containSearchText(c.label,n,o)&&r.push(c)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(l=s.return)&&l.call(s)}finally{if(i)throw i.error}}return r}return t},e.getFilteredSelectedData=function(t,n){var o,i,l=[];try{for(var r=p(t),s=r.next();!s.done;s=r.next()){var a=s.value,c=a.options;if(c){var u=c.filter((function(t){return"false"===e.isSelected(n,t,!0)}));u.length&&l.push({label:a.label,options:u})}else"false"===e.isSelected(n,a,!0)&&l.push(a)}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return l},e.isSearchboxHiddex=function(t,n){return(""===n||null==n||isNaN(+n))&&(n=6),e.getOptionsCount(t)<+n},e.isSelected=function(e,t,n){return n?e&&e.some((function(e){return e.value===t.value}))?"true":"false":e&&t.value===e.value?"true":"false"},e.removeSelection=function(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t.value)return void e.splice(n,1)},e}(),d=0,h=["default","hidden","always"],f=function(){function e(e,t,n,i,r,s){this._viewportRuler=e,this._changeDetectorRef=t,this._parentForm=n,this._parentFormGroup=i,this._control=r,this.minCharForSearch=0,this.limitSelection=0,this.listPosition="below",this.styleMode="default",this.infiniteScrollDistance=1.5,this.infiniteScrollThrottle=150,this.resultMaxHeight="200px",this.update=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.focus=new o.EventEmitter,this.blur=new o.EventEmitter,this.search=new o.EventEmitter,this.scroll=new o.EventEmitter,this.removeOption=new o.EventEmitter,this.option=null,this.isOpen=!1,this.focused=!1,this.hoveringValue=null,this.innerSearchText="",this._stateChanges=new l.Subject,this._disabled=!1,this._required=!1,this._readonly=!1,this._multiple=!1,this._overlay=!1,this._resettable=!1,this._hideSelectedItems=!1,this._clickDetection=!1,this._uid="select2-"+d++,this._infiniteScroll=!0,this._onTouched=function(){},this._onChange=function(){},this.id=this.id,this._tabIndex=parseInt(s,10)||0,this._control&&(this._control.valueAccessor=this),this._clickDetectionFc=this.clickDetection.bind(this)}return Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=this._coerceBooleanProperty(e),this.ngOnInit()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlay",{get:function(){return this._overlay},set:function(e){this._overlay=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"infiniteScroll",{get:function(){return this._infiniteScroll},set:function(e){this._infiniteScroll=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2Options",{get:function(){return this.multiple?this.option:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2Option",{get:function(){return this.multiple?null:this.option},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchText",{get:function(){return this.innerSearchText},set:function(e){this.customSearchEnabled&&this.search.emit({component:this,value:this._value,search:e}),this.innerSearchText=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCountForSearch",{get:function(){return this._minCountForSearch},set:function(e){this._minCountForSearch=e,this.updateSearchBox()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._control?this._control.disabled:this._disabled},set:function(e){this._disabled=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideSelectedItems",{get:function(){return this._hideSelectedItems},set:function(e){this._hideSelectedItems=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=this;this.testValueChange(this._value,e)&&setTimeout((function(){t._value=e,t.writeValue(e)}),10)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(e){void 0!==e&&(this._tabIndex=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resettable",{get:function(){return this._resettable},set:function(e){this._resettable=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaInvalid",{get:function(){return this._isErrorState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classMaterial",{get:function(){return"material"===this.styleMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNostyle",{get:function(){return"noStyle"===this.styleMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2above",{get:function(){return this.overlay?this._isAbobeOverlay():"above"===this.listPosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_positions",{get:function(){if("auto"!==this.listPosition)return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resultsElement",{get:function(){var e;return null===(e=this.resultContainer)||void 0===e?void 0:e.nativeElement},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._viewportRuler.change(100).subscribe((function(){e.isOpen&&e.triggerRect()}));var t=u.getOptionsByValue(this.data,this._control?this._control.value:this.value,this.multiple);null!==t&&(this.option=t),Array.isArray(t)||(this.hoveringValue=this.value),this.updateSearchBox()},e.prototype.ngAfterViewInit=function(){var e=this;this.cdkConnectedOverlay.positionChange.subscribe((function(t){var n;"auto"===e.listPosition&&(null===(n=t.connectionPair)||void 0===n?void 0:n.originY)&&e._overlayPosition!==t.connectionPair.originY&&(e.triggerRect(),e._overlayPosition=t.connectionPair.originY,e._changeDetectorRef.detectChanges())})),this.selectionElement=this.selection.nativeElement,this.triggerRect()},e.prototype.ngDoCheck=function(){var e;this.updateSearchBox(),this._dirtyCheckNativeValue(),this._triggerRect&&(this.overlayWidth!==this._triggerRect.width&&(this.overlayWidth=this._triggerRect.width),(null===(e=this._dropdownRect)||void 0===e?void 0:e.height)>0&&this.overlayHeight!==this._dropdownRect.height&&(this.overlayHeight="auto"===this.listPosition?this._dropdownRect.height:0))},e.prototype.ngOnDestroy=function(){window.document.body.removeEventListener("click",this._clickDetectionFc)},e.prototype.updateSearchBox=function(){var e=!this.customSearchEnabled&&u.isSearchboxHiddex(this.data,this._minCountForSearch);this.isSearchboxHidden!==e&&(this.isSearchboxHidden=e)},e.prototype.hideSearch=function(){var e=h.indexOf(this.displaySearchStatus)>-1?this.displaySearchStatus:"default";return"default"===e&&this.isSearchboxHidden||"hidden"===e},e.prototype.getOptionStyle=function(e){return"select2-results__option "+(e.hide?"select2-results__option--hide ":"")+(e.value===this.hoveringValue?"select2-results__option--highlighted ":"")+(e.classes||"")},e.prototype.mouseenter=function(e){e.disabled||(this.hoveringValue=e.value)},e.prototype.click=function(e){this.testSelection(e)&&this.select(e)},e.prototype.reset=function(e){this.select(null),e.preventDefault(),e.stopPropagation()},e.prototype.prevChange=function(e){e.stopPropagation()},e.prototype.toggleOpenAndClose=function(){var e=this;this.disabled||(this._focus(!0),this.isOpen=!this.isOpen,this.isOpen?(this.innerSearchText="",this.updateFilteredData(),this._focusSearchboxOrResultsElement(),setTimeout((function(){if(e.option){var t=e.option instanceof Array?e.option[0]:e.option;e.updateScrollFromOption(t)}else e.resultsElement&&(e.resultsElement.scrollTop=0);setTimeout((function(){var t,n;e.triggerRect(),null===(n=null===(t=e.cdkConnectedOverlay)||void 0===t?void 0:t.overlayRef)||void 0===n||n.updatePosition()}),100)})),this.open.emit(this)):this.close.emit(this),this.isOpen&&!this._clickDetection&&setTimeout((function(){window.document.body.addEventListener("click",e._clickDetectionFc,!1),e._clickDetection=!0}),200),this._changeDetectorRef.markForCheck())},e.prototype.hasTemplate=function(e,t){var n,i;return this.templates instanceof o.TemplateRef||(null===(n=this.templates)||void 0===n?void 0:n[e.templateId])instanceof o.TemplateRef||(null===(i=this.templates)||void 0===i?void 0:i[t])instanceof o.TemplateRef},e.prototype.getTemplate=function(e,t){return this.hasTemplate(e,t)?this.templates[e.templateId]||this.templates[t]||this.templates:void 0},e.prototype.triggerRect=function(){var e;this._triggerRect=this.selectionElement.getBoundingClientRect(),this._dropdownRect=(null===(e=this.dropdown)||void 0===e?void 0:e.nativeElement)?this.dropdown.nativeElement.getBoundingClientRect():void 0},e.prototype.testSelection=function(e){return!e.disabled&&!(this.multiple&&this.limitSelection&&!(Array.isArray(this._value)&&this._value.length<this.limitSelection))},e.prototype.testValueChange=function(e,t){var n,o,i,l;if(null==e&&null==t||e===t)return!1;if(this.multiple&&(null===(i=e)||void 0===i?void 0:i.length)&&(null===(l=t)||void 0===l?void 0:l.length)&&e.length===t.length){try{for(var r=p(e),s=r.next();!s.done;s=r.next()){var a=s.value;if(!(t.indexOf(a)>-1))return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return!1}return!0},e.prototype.updateFilteredData=function(){var e=this;setTimeout((function(){var t=e.data;e.multiple&&e.hideSelectedItems&&(t=u.getFilteredSelectedData(t,e.option)),!e.customSearchEnabled&&e.searchText&&e.searchText.length>=+e.minCharForSearch&&(t=u.getFilteredData(t,e.searchText,e.editPattern)),u.valueIsNotInFilteredData(t,e.hoveringValue)&&(e.hoveringValue=u.getFirstAvailableOption(t)),e.filteredData=t,e._changeDetectorRef.markForCheck()}))},e.prototype.clickDetection=function(e){this.ifParentContainsClass(e.target,"selection")?this.isOpen&&!this.ifParentContainsId(e.target,this._id)&&(this.toggleOpenAndClose(),this.clickExit()):(this.isOpen&&!this.ifParentContainsClass(e.target,"select2-dropdown")&&this.toggleOpenAndClose(),this.ifParentContainsId(e.target,this._id)||this.clickExit())},e.prototype.clickExit=function(){this._focus(!1),window.document.body.removeEventListener("click",this._clickDetectionFc),this._clickDetection=!1},e.prototype.ifParentContainsClass=function(e,t){return null!==this.getParentElementByClass(e,t)},e.prototype.ifParentContainsId=function(e,t){return null!==this.getParentElementById(e,t)},e.prototype.getParentElementByClass=function(e,t){return this.containClasses(e,t.trim().split(/\s+/))?e:e.parentElement?this.getParentElementByClass(e.parentElement,t):null},e.prototype.getParentElementById=function(e,t){return e.id===t?e:e.parentElement?this.getParentElementById(e.parentElement,t):null},e.prototype.containClasses=function(e,t){var n,o;if(!e.classList)return!1;try{for(var i=p(t),l=i.next();!l.done;l=i.next()){var r=l.value;if(!e.classList.contains(r))return!1}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.focusin=function(){this.disabled||this._focus(!0)},e.prototype.focusout=function(){this.selectionElement&&!this.selectionElement.classList.contains("select2-focused")&&(this._focus(!1),this._onTouched())},e.prototype.moveUp=function(){this.updateScrollFromOption(u.getPreviousOption(this.filteredData,this.hoveringValue))},e.prototype.moveDown=function(){this.updateScrollFromOption(u.getNextOption(this.filteredData,this.hoveringValue))},e.prototype.updateScrollFromOption=function(e){if(e){this.hoveringValue=e.value;var t=this.results.find((function(t){return t.nativeElement.innerText.trim()===e.label}));if(t&&this.resultsElement){this.resultsElement.scrollTop=0;var n=this.resultsElement.getBoundingClientRect(),o=t.nativeElement.getBoundingClientRect();this.resultsElement.scrollTop=o.top-n.top}}},e.prototype.selectByEnter=function(){if(this.hoveringValue){var e=u.getOptionByValue(this.data,this.hoveringValue);this.select(e)}},e.prototype.select=function(e){var t;if(null!==e)if(this.multiple){var n=this.option,o=n.findIndex((function(t){return t.value===e.value}));-1===o?n.push(e):n.splice(o,1),t=this.option.map((function(e){return e.value}))}else this.option=e,this.isOpen&&(this.isOpen=!1,this.close.emit(this),this.selectionElement&&this.selectionElement.focus()),t=this.option.value;else this.option=null;this.multiple&&this.hideSelectedItems&&this.updateFilteredData(),this._control?this._onChange(t):this._value=t,this.update.emit({component:this,value:t,options:Array.isArray(this.option)?this.option:this.option?[this.option]:null})},e.prototype.keyDown=function(e){this._testKey(e,["ArrowDown",40])?(this.moveDown(),e.preventDefault()):this._testKey(e,["ArrowUp",38])?(this.moveUp(),e.preventDefault()):this._testKey(e,["Enter",13])?(this.selectByEnter(),e.preventDefault()):this._testKey(e,["Escape","Tab",9,27])&&this.isOpen&&(this.toggleOpenAndClose(),this._focus(!1))},e.prototype.openKey=function(e){this._testKey(e,["ArrowDown","ArrowUp","Enter",40,38,13])?(this.toggleOpenAndClose(),e.preventDefault()):this._testKey(e,["Escape","Tab",9,27])&&(this._focus(!1),this._onTouched())},e.prototype.trackBy=function(e,t){return t.value},e.prototype.searchUpdate=function(e){this.searchText=e.target.value,this.updateFilteredData()},e.prototype.isSelected=function(e){return u.isSelected(this.option,e,this.multiple)},e.prototype.isDisabled=function(e){return e.disabled?"true":"false"},e.prototype.removeSelection=function(e,t){u.removeSelection(this.option,t),this.multiple&&this.hideSelectedItems&&this.updateFilteredData();var n=this.option.map((function(e){return e.value}));this._control?this._onChange(n):this._value=n,this.update.emit({component:this,value:n,options:Array.isArray(this.option)?this.option:this.option?[this.option]:null}),this.removeOption.emit({component:this,value:n,removedOption:t}),e.preventDefault(),e.stopPropagation(),this.isOpen&&this._focusSearchboxOrResultsElement()},e.prototype.writeValue=function(e){this._setSelectionByValue(e)},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onScroll=function(e){this.scroll.emit({component:this,way:e,search:this.innerSearchText})},e.prototype._isErrorState=function(){var e=this._control&&this._control.invalid,t=this._control&&this._control.touched,n=this._parentFormGroup&&this._parentFormGroup.submitted||this._parentForm&&this._parentForm.submitted;return!(!e||!t&&!n)},e.prototype._testKey=function(e,t){return void 0===t&&(t=[]),this._isKey(this._getKey(e),t)},e.prototype._getKey=function(e){var t;return void 0!==e.key?t=e.key:void 0!==e.keyIdentifier?t=e.keyIdentifier:void 0!==e.keyCode?t=e.keyCode:e.preventDefault(),t},e.prototype._isKey=function(e,t){return void 0===t&&(t=[]),!!(t&&t.length>0)&&-1!==t.indexOf(e)},e.prototype._setSelectionByValue=function(e){var t=this;if(this.option||null!=e){var n=Array.isArray(e);if(this.multiple&&e&&!n)throw new Error("Non array value.");this.data?this.multiple?(this.option=[],n&&u.getOptionsByValue(this.data,e,this.multiple).map((function(e){return t.select(e)}))):this.select(u.getOptionByValue(this.data,e)):this._control&&this._control.viewToModelUpdate(e),this._changeDetectorRef.markForCheck()}},e.prototype._dirtyCheckNativeValue=function(){var e=this.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this._stateChanges.next())},e.prototype._coerceBooleanProperty=function(e){return null!=e&&""+e!="false"},e.prototype._focusSearchboxOrResultsElement=function(){var e=this;this.isSearchboxHidden?this.resultsElement&&this.resultsElement.focus():setTimeout((function(){e.searchInput&&e.searchInput.nativeElement&&e.searchInput.nativeElement.focus()}))},e.prototype._focus=function(e){!e&&this.focused?(this.focused=e,this.blur.emit(this)):e&&!this.focused&&(this.focused=e,this.focus.emit(this))},e.prototype._isAbobeOverlay=function(){return this.overlay&&this._overlayPosition&&"auto"===this.listPosition?"top"===this._overlayPosition:"above"===this.listPosition},e}();f.decorators=[{type:o.Component,args:[{selector:"select2",template:'<div class="select2-label" (click)="toggleOpenAndClose()">\n <ng-content select="select2-label"></ng-content>\n <span *ngIf="required" class="select2-required"></span>\n</div>\n<div\n class="select2 select2-container select2-container--default select2-container--focus"\n [class.select2-container--below]="!select2above"\n [class.select2-container--above]="select2above"\n [class.select2-container--open]="isOpen"\n [class.select2-container--disabled]="disabled"\n>\n <div\n class="selection"\n #selection\n #trigger="cdkOverlayOrigin"\n [attr.tabindex]="!this.isOpen ? tabIndex : \'-1\'"\n (click)="toggleOpenAndClose()"\n (focus)="focusin()"\n (blur)="focusout()"\n (keydown)="openKey($event)"\n cdkOverlayOrigin\n [class.select2-focused]="focused"\n >\n <div\n class="select2-selection"\n [class.select2-selection--multiple]="multiple"\n [class.select2-selection--single]="!multiple"\n role="combobox"\n >\n <span *ngIf="!multiple" class="select2-selection__rendered" [title]="select2Option?.label || \'\'">\n <span *ngIf="!select2Option"> </span>\n <span *ngIf="select2Option" [innerHTML]="select2Option.label"></span>\n <span [class.select2-selection__placeholder__option]="option" class="select2-selection__placeholder">{{\n placeholder\n }}</span>\n </span>\n <span\n (click)="reset($event)"\n *ngIf="!multiple && resettable && select2Option"\n class="select2-selection__reset"\n role="presentation"\n >×</span\n >\n <span *ngIf="!multiple" class="select2-selection__arrow" role="presentation"> </span>\n <ul *ngIf="multiple" class="select2-selection__rendered">\n <span\n [class.select2-selection__placeholder__option]="select2Options?.length > 0"\n class="select2-selection__placeholder"\n >{{ placeholder }}</span\n >\n <li *ngFor="let op of option; trackBy: trackBy" class="select2-selection__choice" [title]="op.label">\n <span\n (click)="removeSelection($event, op)"\n class="select2-selection__choice__remove"\n role="presentation"\n >×</span\n >\n <span [innerHTML]="op.label"></span>\n </li>\n </ul>\n </div>\n </div>\n <ng-container *ngIf="!overlay">\n <ng-container *ngTemplateOutlet="containerTemplate"></ng-container>\n </ng-container>\n\n <div class="select2-subscript-wrapper">\n <ng-content select="select2-hint"></ng-content>\n </div>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass="select2-overlay-backdrop"\n [cdkConnectedOverlayOrigin]="trigger"\n [cdkConnectedOverlayOpen]="this.isOpen && overlay"\n [cdkConnectedOverlayMinWidth]="overlayWidth"\n [cdkConnectedOverlayHeight]="overlayHeight"\n [cdkConnectedOverlayPositions]="_positions"\n (backdropClick)="toggleOpenAndClose()"\n>\n <ng-container *ngTemplateOutlet="containerTemplate"></ng-container>\n</ng-template>\n\n<ng-template #containerTemplate>\n <div\n class="select2-container select2-container--default select2-container-dropdown"\n [class.select2-container--open]="isOpen"\n [class.select2-overlay]="overlay"\n [class.select2-position-auto]="listPosition === \'auto\'"\n >\n <div\n #dropdown\n class="select2-dropdown"\n [class.select2-dropdown--below]="!select2above"\n [class.select2-dropdown--above]="select2above"\n >\n <div class="select2-search select2-search--dropdown" [class.select2-search--hide]="hideSearch()">\n <input\n #searchInput\n [id]="id + \'-search-field\'"\n [value]="searchText"\n (keydown)="keyDown($event)"\n (keyup)="searchUpdate($event)"\n (change)="prevChange($event)"\n class="select2-search__field"\n type="search"\n role="textbox"\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n [attr.tabindex]="this.isOpen ? tabIndex : \'-1\'"\n />\n </div>\n <div class="select2-results">\n <ul\n #results\n class="select2-results__options"\n [style.max-height]="resultMaxHeight"\n role="tree"\n tabindex="-1"\n infiniteScroll\n [infiniteScrollDisabled]="!infiniteScroll && !isOpen"\n [infiniteScrollDistance]="infiniteScrollDistance"\n [infiniteScrollThrottle]="infiniteScrollThrottle"\n [infiniteScrollContainer]="results"\n (scrolled)="onScroll(\'down\')"\n (scrolledUp)="onScroll(\'up\')"\n (keydown)="keyDown($event)"\n >\n <ng-container *ngFor="let groupOrOption of filteredData; index as i; trackBy: trackBy">\n <li *ngIf="groupOrOption.options" class="select2-results__option" role="group">\n <strong\n *ngIf="!hasTemplate(groupOrOption, \'group\'); else optGroup"\n [attr.class]="\n \'select2-results__group\' +\n (groupOrOption.classes ? \' \' + groupOrOption.classes : \'\')\n "\n [innerHTML]="groupOrOption.label"\n ></strong>\n <ng-template #optGroup>\n <ng-container\n *ngTemplateOutlet="getTemplate(groupOrOption, \'group\'); context: groupOrOption"\n >\n </ng-container>\n </ng-template>\n\n <ul class="select2-results__options select2-results__options--nested">\n <li\n *ngFor="let option of groupOrOption.options; index as j; trackBy: trackBy"\n #result\n [id]="option.id || id + \'-option-\' + i + \'-\' + j"\n [class]="getOptionStyle(option)"\n role="treeitem"\n [attr.aria-selected]="isSelected(option)"\n [attr.aria-disabled]="isDisabled(option)"\n (mouseenter)="mouseenter(option)"\n (click)="click(option)"\n >\n <div\n *ngIf="!hasTemplate(option, \'option\'); else liGroup"\n class="select2-label-content"\n [innerHTML]="option.label"\n ></div>\n <ng-template #liGroup>\n <ng-container\n *ngTemplateOutlet="getTemplate(option, \'option\'); context: option"\n >\n </ng-container>\n </ng-template>\n </li>\n </ul>\n </li>\n <li\n *ngIf="!groupOrOption.options"\n #result\n [id]="groupOrOption.id || id + \'-option-\' + i"\n [class]="getOptionStyle(groupOrOption)"\n role="treeitem"\n [attr.aria-selected]="isSelected(groupOrOption)"\n [attr.aria-disabled]="isDisabled(groupOrOption)"\n (mouseenter)="mouseenter(groupOrOption)"\n (click)="click(groupOrOption)"\n >\n <div\n *ngIf="!hasTemplate(groupOrOption, \'option\'); else li"\n [innerHTML]="groupOrOption.label"\n class="select2-label-content"\n ></div>\n <ng-template #li>\n <ng-container\n *ngTemplateOutlet="getTemplate(groupOrOption, \'option\'); context: groupOrOption"\n >\n </ng-container>\n </ng-template>\n </li>\n </ng-container>\n <li\n class="select2-no-result select2-results__option"\n *ngIf="!filteredData?.length && noResultMessage"\n [innerHTML]="noResultMessage"\n ></li>\n </ul>\n </div>\n </div>\n </div>\n</ng-template>\n',styles:['.select2-label{color:#000;color:var(--select2-label-text-color,#000)}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle;width:100%}.select2-container .select2-container-dropdown{opacity:0;position:absolute;width:0}.select2-container .select2-selection--single{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;flex:1 1 auto;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container .select2-selection--multiple{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{border:none;box-sizing:border-box;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background:#fff;background:var(--select2-dropdown-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-dropdown-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);box-sizing:border-box;display:block;height:0;overflow:hidden;position:absolute;width:100%;z-index:1051}.select2-dropdown .select2-label-content{display:contents}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;color:#000;color:var(--select2-option-text-color,#000);padding:6px;user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container.select2-container-dropdown.select2-container--open{opacity:1;width:100%}.select2-container--open .select2-dropdown{height:auto;overflow:auto}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;bottom:27px;display:flex;flex-direction:column-reverse}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{box-sizing:border-box;padding:4px;width:100%}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{background:#fff;border:0;display:block;filter:alpha(opacity=0);height:auto;left:0;margin:0;min-height:100%;min-width:100%;opacity:0;padding:0;position:fixed;top:0;width:auto;z-index:99}.select2-required:before{color:red;color:var(--select2-required-color,red);content:"*"}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background:#fff;background:var(--select2-selection-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-selection-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);display:flex}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;color:var(--select2-selection-text-color,#444);line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999;color:var(--select2-placeholder-color,#999)}.select2-container--default .select2-selection--single .select2-selection__placeholder span{overflow:hidden;text-overflow:ellipsis;text-overflow:var(--select2-placeholder-overflow,ellipsis);white-space:nowrap}.select2-container--default .select2-selection--single .select2-selection__placeholder__option{display:none}.select2-container--default .select2-selection--single .select2-selection__arrow,.select2-container--default .select2-selection--single .select2-selection__reset{align-items:center;display:flex;justify-content:center;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow:before{border-bottom:0 solid var(--select2-arrow-color,#888);border-color:#888 transparent;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--select2-arrow-color,#888);content:" ";height:0;width:0}.select2-container--default .select2-selection--single .select2-selection__reset{color:#999;color:var(--select2-reset-color,#999)}.select2-container--default.select2-container--disabled .select2-selection--single{background:#eee;background:var(--select2-selection-disabled-background,#eee);cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:before{border-bottom-color:var(--select2-arrow-color,#888);border-color:transparent transparent #888;border-right-color:transparent;border-top-color:transparent;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background:#fff;background:var(--select2-selection-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-selection-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;flex:1 1 auto;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;color:var(--select2-placeholder-color,#999);display:block;float:left;margin-top:5px;overflow:hidden;text-overflow:ellipsis;text-overflow:var(--select2-placeholder-overflow,ellipsis);white-space:nowrap;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__placeholder__option{display:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px;margin-top:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background:#e4e4e4;background:var(--select2-selection-choice-background,#e4e4e4);border:1px solid #aaa;border:1px solid var(--select2-selection-choice-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);color:#000;color:var(--select2-selection-choice-text-color,#000);cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;color:var(--select2-selection-choice-close-color,#999);cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333;color:var(--select2-selection-choice-hover-close-color,#333)}.select2-container--default.select2-container--focused .select2-selection--multiple,.select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--multiple,.select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--single{border:1px solid #000;border:1px solid var(--select2-selection-focus-border-color,#000);outline:none}.select2-container--default.select2-container--disabled .select2-selection--multiple{background:#eee;background:var(--select2-selection-disabled-background,#eee);cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{background:#fff;background:1px solid var(--select2-search-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-search-border-color,#aaa);border-radius:0;border-radius:var(--select2-search-border-radius,0)}.select2-container--default .select2-search--inline .select2-search__field{-webkit-appearance:textfield;background:transparent;border:none;box-shadow:none;outline:none}.select2-container--default .select2-results>.select2-results__options{overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{background:transparent;background:var(--select2-option-disabled-background,transparent);color:#999;color:var(--select2-option-disabled-text-color,#999)}.select2-container--default .select2-results__option[aria-selected=true]{background:#ddd;background:var(--select2-option-selected-background,#ddd);color:#000;color:var(--select2-option-selected-text-color,#000)}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background:#5897fb;background:var(--select2-option-highlighted-background,#5897fb);color:#fff;color:var(--select2-option-highlighted-text-color,#fff)}.select2-container--default .select2-results__option--hide{display:none}.select2-container--default .select2-results__group{background:transparent;background:var(--select2-option-group-background,transparent);color:grey;color:var(--select2-option-group-text-color,grey);cursor:default;display:block;padding:6px}.select2-no-result{color:#888;color:var(--select2-no-result-color,#888);font-style:italic;font-style:var(--select2-font-style-color,italic)}:host.nostyle .select2-dropdown{border-color:transparent}:host.nostyle .select2-container--default .select2-focused .select2-selection--multiple,:host.nostyle .select2-container--default .select2-focused .select2-selection--single,:host.nostyle .select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--multiple,:host.nostyle .select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--single,:host.nostyle .select2-selection--multiple,:host.nostyle .select2-selection--single{background:transparent;border-color:transparent}:host.material{display:inline-block;width:300px}:host.material>.select2-container{padding-bottom:1.29688em;vertical-align:inherit}:host.material>.select2-container .selection{align-items:baseline;border-top:.84375em solid transparent;display:inline-flex;height:auto;padding:.4375em 0;width:100%}:host.material .select2-container--default .select2-selection--multiple,:host.material .select2-container--default .select2-selection--single{border:0;border-radius:0;box-sizing:border-box;height:24px;width:100%}:host.material .select2-container--default .select2-selection--multiple:before,:host.material .select2-container--default .select2-selection--single:before{background:#ddd;background:var(--select2-material-underline,#ddd);bottom:1.65em;content:" ";display:block;height:1px;position:absolute;width:100%}:host.material .select2-container--default .select2-selection--multiple:after,:host.material .select2-container--default .select2-selection--single:after{background:#5a419e;background:var(--select2-material-underline-active,#5a419e);bottom:1.63em;content:" ";display:block;height:2px;left:50%;position:absolute;transition:none;width:0}:host.material .select2-container--default .select2-selection--multiple .select2-selection__rendered,:host.material .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:inherit;padding-left:1px}:host.material .select2-container--default .select2-selection--multiple .select2-selection__placeholder,:host.material .select2-container--default .select2-selection--single .select2-selection__placeholder{color:rgba(0,0,0,.38);color:var(--select2-material-placeholder-color,rgba(0,0,0,.38));display:block;left:0;position:absolute;top:20px;transform-origin:0 21px;transition:transform .3s}:host.material .select2-container--default .select2-container--open{bottom:1.6em;left:0}:host.material .select2-container--default .select2-selection__placeholder__option{transform:translateY(-1.5em) scale(.75) perspective(100px) translateZ(.001px);width:133.33333%}:host.material .select2-container--default .select2-selection__arrow{top:20px}:host.material .select2-container--default.select2-container--open .select2-selection--multiple:after,:host.material .select2-container--default.select2-container--open .select2-selection--single:after,:host.material .select2-container--default .select2-focused .select2-selection--multiple:after,:host.material .select2-container--default .select2-focused .select2-selection--single:after{left:0;transition:width .3s cubic-bezier(.12,1,.77,1),left .3s cubic-bezier(.12,1,.77,1);width:100%}:host.material .select2-container--default .select2-dropdown{border:0;border-radius:0;box-shadow:0 5px 5px rgba(0,0,0,.5)}:host.material .select2-container--default .select2-results__option--highlighted[aria-selected],:host.material .select2-container--default .select2-results__option[aria-selected=true]{background:rgba(0,0,0,.04);background:var(--select2-material-option-selected-background,rgba(0,0,0,.04));color:#000;color:var(--select2-material-option-highlighted-text-color,#000)}:host.material .select2-container--default .select2-results__option[aria-selected=true]{color:#ff5722;color:var(--select2-material-option-selected-text-color,#ff5722)}:host.material .select2-container--default.select2-container--disabled .select2-selection--multiple,:host.material .select2-container--default.select2-container--disabled .select2-selection--single{background:transparent}:host.material .select2-container--default.select2-container--disabled .select2-selection--multiple:before,:host.material .select2-container--default.select2-container--disabled .select2-selection--single:before{background:linear-gradient(90deg,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background:var(--select2-material-underline-disabled,linear-gradient(90deg,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0));background-position:0 bottom;background-repeat:repeat-x;background-size:4px 1px}:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--multiple:after,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--multiple:before,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--single:after,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--single:before{background:red;background:var(--select2-material-underline-invalid,red)}:host.material:not(.select2-container--open) .select2-focused .select2-selection--multiple,:host.material:not(.select2-container--open) .select2-focused .select2-selection--single{border:0}:host.material .select2-subscript-wrapper{color:#888;color:var(--select2-hint-text-color,#888);font-size:75%;position:absolute;top:calc(100% - 1.72917em)}::ng-deep .select2-overlay-backdrop{background:rgba(0,0,0,.32);background:var(--select2-overlay-backdrop,transparent)}::ng-deep .cdk-overlay-container .select2-container .select2-dropdown.select2-dropdown--above{bottom:28px}::ng-deep .cdk-overlay-container .select2-container--open.select2-position-auto .select2-dropdown{margin-bottom:28px}::ng-deep .cdk-overlay-container .select2-container--open.select2-position-auto .select2-dropdown.select2-dropdown--above{bottom:0;margin-bottom:0;margin-top:28px}@supports (-moz-appearance:none){select2.material .select2-container--default .select2-selection--multiple,select2.material .select2-container--default .select2-selection--single{height:26px}}@supports (-ms-scroll-limit:0){select2.material .select2-container--default .select2-selection--multiple,select2.material .select2-container--default .select2-selection--single{height:25px}}']}]}],f.ctorParameters=function(){return[{type:n.ViewportRuler},{type:o.ChangeDetectorRef},{type:i.NgForm,decorators:[{type:o.Optional}]},{type:i.FormGroupDirective,decorators:[{type:o.Optional}]},{type:i.NgControl,decorators:[{type:o.Self},{type:o.Optional}]},{type:String,decorators:[{type:o.Attribute,args:["tabindex"]}]}]},f.propDecorators={data:[{type:o.Input}],minCharForSearch:[{type:o.Input}],displaySearchStatus:[{type:o.Input}],placeholder:[{type:o.Input}],customSearchEnabled:[{type:o.Input}],limitSelection:[{type:o.Input}],listPosition:[{type:o.Input}],multiple:[{type:o.Input}],overlay:[{type:o.Input}],styleMode:[{type:o.Input}],noResultMessage:[{type:o.Input}],infiniteScrollDistance:[{type:o.Input}],infiniteScrollThrottle:[{type:o.Input}],infiniteScroll:[{type:o.Input}],editPattern:[{type:o.Input}],templates:[{type:o.Input}],resultMaxHeight:[{type:o.Input}],update:[{type:o.Output}],open:[{type:o.Output}],close:[{type:o.Output}],focus:[{type:o.Output}],blur:[{type:o.Output}],search:[{type:o.Output}],scroll:[{type:o.Output}],removeOption:[{type:o.Output}],minCountForSearch:[{type:o.Input}],id:[{type:o.Input},{type:o.HostBinding,args:["id"]}],required:[{type:o.Input}],disabled:[{type:o.Input}],hideSelectedItems:[{type:o.Input}],readonly:[{type:o.Input}],value:[{type:o.Input}],tabIndex:[{type:o.Input}],resettable:[{type:o.Input}],ariaInvalid:[{type:o.HostBinding,args:["attr.aria-invalid"]}],classMaterial:[{type:o.HostBinding,args:["class.material"]}],classNostyle:[{type:o.HostBinding,args:["class.nostyle"]}],select2above:[{type:o.HostBinding,args:["class.select2-above"]}],cdkConnectedOverlay:[{type:o.ViewChild,args:[t.CdkConnectedOverlay]}],selection:[{type:o.ViewChild,args:["selection",{static:!0}]}],resultContainer:[{type:o.ViewChild,args:["results"]}],results:[{type:o.ViewChildren,args:["result"]}],searchInput:[{type:o.ViewChild,args:["searchInput"]}],dropdown:[{type:o.ViewChild,args:["dropdown"]}]};var g=function(){};g.decorators=[{type:o.Directive,args:[{selector:"select2-hint"}]}];var b=function(){};b.decorators=[{type:o.Directive,args:[{selector:"select2-label"}]}];var v=function(){};v.decorators=[{type:o.NgModule,args:[{imports:[r.CommonModule,i.FormsModule,t.OverlayModule,i.ReactiveFormsModule,s.InfiniteScrollModule],declarations:[g,b,f],exports:[i.FormsModule,i.ReactiveFormsModule,g,b,f]}]}],e.Select2=f,e.Select2Hint=g,e.Select2Label=b,e.Select2Module=v,e.Select2Utils=u,e.defaultMinCountForSearch=6,e.protectRegexp=c,e.timeout=200,e.unicodePatterns=a,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ng-select2-component.umd.min.js.map |
# Changelog of ng-select2 | ||
## V8.0.5 (2021-09-27) | ||
### Corrections | ||
- Fix when `overlay` is `true` on start | ||
## V8.0.4 (2021-09-23) | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "ng-select2-component", | ||
"version": "8.0.4", | ||
"version": "8.0.5", | ||
"description": "An Angular select2 component.", | ||
@@ -5,0 +5,0 @@ "author": "York Yao, Célian Veyssière", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
833900
7605