@clr/angular 5.3.1 → 5.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@cds/core/icon"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@angular/forms"),require("@cds/core/icon/register")):"function"==typeof define&&define.amd?define("@clr/angular",["exports","@angular/core","@cds/core/icon","@angular/common","rxjs","rxjs/operators","@angular/animations","@angular/forms","@cds/core/icon/register"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).clr=e.clr||{},e.clr.angular={}),e.ng.core,e.icon,e.ng.common,e.rxjs,e.rxjs.operators,e.ng.animations,e.ng.forms)}(this,(function(e,t,n,r,i,o,s,a){"use strict";function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=c(t),p=c(r),u=function(){};u.decorators=[{type:t.Directive,args:[{selector:"clr-icon"}]}];var d=function(){};d.decorators=[{type:t.Directive,args:[{selector:"cds-icon"}]}];var h,g,f=[u,d],y=function(){};function b(e){return e===h.ArrowUp||e===g.ArrowUp?h.ArrowUp:e===h.ArrowDown||e===g.ArrowDown?h.ArrowDown:e===h.ArrowRight||e===g.ArrowRight?h.ArrowRight:e===h.ArrowLeft||e===g.ArrowLeft?h.ArrowLeft:e===h.Space||e===g.Space?h.Space:e===h.Escape||e===g.Escape?h.Escape:e}function m(e){var t=b(e.key);t!==h.ArrowUp&&t!==h.ArrowDown&&t!==h.ArrowLeft&&t!==h.ArrowRight||e.preventDefault()}y.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[f],exports:[f]}]}],function(e){e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Backspace="Backspace",e.Tab="Tab",e.Enter="Enter",e.Escape="Escape",e.Space="Space",e.Home="Home",e.End="End"}(h||(h={})),function(e){e.ArrowUp="Up",e.ArrowDown="Down",e.ArrowRight="Right",e.ArrowLeft="Left",e.Space="Spacebar",e.Escape="Esc",e.Home="Home",e.End="End",e.Enter="Enter",e.Tab="Tab"}(g||(g={}));var v=function(){function e(){this._open=!1,this._openChange=new i.Subject,this._openEventChange=new i.Subject,this._popoverAligned=new i.Subject}return Object.defineProperty(e.prototype,"openChange",{get:function(){return this._openChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openEvent",{get:function(){return this._openEvent},set:function(e){this._openEvent=e,this._openEventChange.next(e)},enumerable:!1,configurable:!0}),e.prototype.getEventChange=function(){return this._openEventChange.asObservable()},Object.defineProperty(e.prototype,"open",{get:function(){return this._open},set:function(e){e=!!e,this._open!==e&&(this._open=e,this._openChange.next(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"originalEvent",{get:function(){return this._openEvent},enumerable:!1,configurable:!0}),e.prototype.toggleWithEvent=function(e){m(e),this.openEvent=e,this.open=!this.open},Object.defineProperty(e.prototype,"popoverAligned",{get:function(){return this._popoverAligned.asObservable()},enumerable:!1,configurable:!0}),e.prototype.popoverAlignedEmit=function(e){this._popoverAligned.next(e)},e}();v.decorators=[{type:t.Injectable}];var C,S,I=function(){function e(e,t,n){var r=this;this.renderer=e,this.smartOpenService=t,this.document=n,this.outsideClickClose=!0,this.scrollToClose=!0,this.subscriptions=[],this.subscriptions.push(t.openChange.subscribe((function(e){e?(r.addEscapeListener(),r.addClickListener(),r.addScrollListener()):r.removeAllEventListeners()})),t.getEventChange().subscribe((function(e){r.ignoredEvent=e})))}return e.prototype.addScrollListener=function(){var e=this;this.scrollToClose&&(this.documentScroller=i.fromEvent(this.document,"scroll",{capture:!0}),this.scrollSubscription=this.documentScroller.pipe(o.filter(this.testForSmartPopoverContentContainer)).subscribe((function(){e.smartOpenService.open=!1,e.setAnchorFocus()})))},e.prototype.removeScrollListener=function(){this.documentScroller&&(this.scrollSubscription.unsubscribe(),delete this.documentScroller)},e.prototype.testForSmartPopoverContentContainer=function(e){for(var t=e.target;t.classList&&"body"!==t.parentElement.localName;)t=t.parentElement;return!!t.classList&&!t.classList.contains("clr-popover-content")},e.prototype.addClickListener=function(){var e=this;this.outsideClickClose&&(this.documentClickListener=this.renderer.listen(this.document,"click",(function(t){t===e.ignoredEvent?delete e.ignoredEvent:(e.smartOpenService.open=!1,t.target.focus())})))},e.prototype.removeClickListener=function(){this.outsideClickClose&&(delete this.ignoredEvent,this.documentClickListener&&(this.documentClickListener(),delete this.documentClickListener))},e.prototype.addEscapeListener=function(){var e=this;this.escapeListener=this.renderer.listen(this.document,"keydown.escape",(function(){e.smartOpenService.open=!1,e.setAnchorFocus()}))},e.prototype.removeEscapeListener=function(){this.escapeListener&&(this.escapeListener(),delete this.escapeListener)},Object.defineProperty(e.prototype,"anchorButtonRef",{get:function(){return this._anchorButtonRef},set:function(e){this._anchorButtonRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"closeButtonRef",{get:function(){return this._closeButtonRef},set:function(e){this._closeButtonRef=e},enumerable:!1,configurable:!0}),e.prototype.setCloseFocus=function(){this._closeButtonRef.nativeElement.focus()},e.prototype.setAnchorFocus=function(){this.anchorButtonRef.nativeElement.focus()},Object.defineProperty(e.prototype,"contentRef",{get:function(){return this._contentRef},set:function(e){this._contentRef=e},enumerable:!1,configurable:!0}),e.prototype.removeAllEventListeners=function(){this.removeScrollListener(),this.removeClickListener(),this.removeEscapeListener()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.removeAllEventListeners()},e}();I.decorators=[{type:t.Injectable}],I.ctorParameters=function(){return[{type:t.Renderer2},{type:v},{type:HTMLDocument,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]},function(e){e[e.BOTTOM=0]="BOTTOM",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.TOP=3]="TOP"}(C||(C={})),e.ClrAlignment=void 0,(S=e.ClrAlignment||(e.ClrAlignment={}))[S.START=0]="START",S[S.CENTER=.5]="CENTER",S[S.END=1]="END";var O,E=function(e){return Object.assign(Object.assign({},e),{side:-1*e.side})},w=function(e,t){var n=e.content+(t?.5:-.5);return n<0||n>1?e:Object.assign(Object.assign({},e),{content:n})};function _(e,t,n){return function(r){return t(e(r),n)}}function P(e,t,n){var r=t.left,i=t.top;switch(e.axis+e.side){case-1:r+=D(e,t,n),i-=n.height;break;case 1:r+=D(e,t,n),i+=t.height;break;case 0:r-=n.width,i+=T(e,t,n);break;case 2:r+=t.width,i+=T(e,t,n)}return{xOffset:r,yOffset:i}}function D(t,n,r){var i=0;switch(t.anchor){case e.ClrAlignment.START:break;case e.ClrAlignment.CENTER:i+=n.width/2;break;case e.ClrAlignment.END:i+=n.width}switch(t.content){case e.ClrAlignment.START:break;case e.ClrAlignment.CENTER:i-=r.width/2;break;case e.ClrAlignment.END:i-=r.width}return i}function T(t,n,r){var i=0;switch(t.anchor){case e.ClrAlignment.START:break;case e.ClrAlignment.CENTER:i+=n.height/2;break;case e.ClrAlignment.END:i+=n.height}switch(t.content){case e.ClrAlignment.START:break;case e.ClrAlignment.CENTER:i-=r.height/2;break;case e.ClrAlignment.END:i-=r.height}return i}e.ClrAxis=void 0,(O=e.ClrAxis||(e.ClrAxis={}))[O.VERTICAL=0]="VERTICAL",O[O.HORIZONTAL=1]="HORIZONTAL";var x=function(){function t(e,t){this.eventService=e,this.platformId=t,this._shouldRealign=new i.Subject,this.shouldRealign=this._shouldRealign.asObservable()}return t.prototype.realign=function(){this._shouldRealign.next()},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!1,configurable:!0}),t.prototype.alignContent=function(t){if(!r.isPlatformBrowser(this.platformId))return{xOffset:0,yOffset:0};this.currentAnchorCoords=this.eventService.anchorButtonRef.nativeElement.getBoundingClientRect(),this.currentContentCoords=t.getBoundingClientRect(),this.contentOffsets=P(this.position,this.currentAnchorCoords,this.currentContentCoords);var n=function(e,t){var n=[],r=e.yOffset+t.height,i=e.xOffset,o=e.xOffset+t.width;return e.yOffset>=0||n.push(C.TOP),i>=0||n.push(C.LEFT),r<=(window.innerHeight||document.documentElement.clientHeight)||n.push(C.BOTTOM),o<=(window.innerWidth||document.documentElement.clientWidth)||n.push(C.RIGHT),n}(this.contentOffsets,this.currentContentCoords),i=n.reduce((function(e,t){return e+t}),0);return 1===n.length&&this.position.axis===e.ClrAxis.VERTICAL?this.handleVerticalAxisOneViolation(i):1===n.length&&this.position.axis===e.ClrAxis.HORIZONTAL?this.handleHorizontalAxisOneViolation(i):2===n.length&&this.position.axis===e.ClrAxis.VERTICAL?this.handleVerticalAxisTwoViolations(i):2===n.length&&this.position.axis===e.ClrAxis.HORIZONTAL&&this.handleHorizontalAxisTwoViolations(i),this.contentOffsets},t.prototype.handleVerticalAxisOneViolation=function(e){switch(e){case 0:case 3:this.contentOffsets=P(E(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 1:this.contentOffsets=P(w(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 2:this.contentOffsets=P(w(this.position,!0),this.currentAnchorCoords,this.currentContentCoords)}},t.prototype.handleVerticalAxisTwoViolations=function(e){switch(e){case 5:var t=_(E,w,!0);this.contentOffsets=P(t(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 4:var n=_(E,w,!1);this.contentOffsets=P(n(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 3:break;case 2:t=_(E,w,!0);this.contentOffsets=P(t(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 1:n=_(E,w,!1);this.contentOffsets=P(n(this.position),this.currentAnchorCoords,this.currentContentCoords)}},t.prototype.handleHorizontalAxisOneViolation=function(e){switch(e){case 1:case 2:this.contentOffsets=P(E(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 0:this.contentOffsets=P(w(this.position,!0),this.currentAnchorCoords,this.currentContentCoords);break;case 3:this.contentOffsets=P(w(this.position),this.currentAnchorCoords,this.currentContentCoords)}},t.prototype.handleHorizontalAxisTwoViolations=function(e){switch(e){case 5:case 4:var t=_(E,w,!1);this.contentOffsets=P(t(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 3:break;case 2:case 1:var n=_(E,w,!0);this.contentOffsets=P(n(this.position),this.currentAnchorCoords,this.currentContentCoords)}},t}();x.decorators=[{type:t.Injectable}],x.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var A=function(){function e(e,n,r,i,o,s,a){this.document=e,this.container=n,this.template=r,this.renderer=i,this.smartPositionService=o,this.smartEventsService=s,this.smartOpenService=a,this.subscriptions=[],this.shouldRealign=!1,this.checkCollector=new t.EventEmitter}return Object.defineProperty(e.prototype,"open",{set:function(e){this.smartOpenService.open=!!e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentAt",{set:function(e){this.smartPositionService.position=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"outsideClickClose",{set:function(e){this.smartEventsService.outsideClickClose=!!e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollToClose",{set:function(e){this.smartEventsService.scrollToClose=!!e},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.subscriptions.push(this.smartOpenService.openChange.subscribe((function(t){t?e.addContent():e.removeContent()})),this.smartPositionService.shouldRealign.subscribe((function(){e.shouldRealign=!0,e.view&&e.renderer.setStyle(e.view.rootNodes[0],"opacity","0")})),this.checkCollector.pipe(o.debounceTime(0)).subscribe((function(){e.alignContent(),e.shouldRealign=!1,e.view&&e.renderer.setStyle(e.view.rootNodes[0],"opacity","1")})))},e.prototype.ngOnDestroy=function(){this.removeContent(),this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.removeContent=function(){var e=this;this.view&&(this.view.rootNodes.forEach((function(t){return e.renderer.removeChild(e.document.body,t)})),this.container.clear(),delete this.view)},e.prototype.addContent=function(){var e=this;this.view=this.container.createEmbeddedView(this.template),this.smartEventsService.contentRef=this.view.rootNodes[0],this.renderer.addClass(this.view.rootNodes[0],"clr-popover-content"),this.renderer.setStyle(this.view.rootNodes[0],"top","0px"),this.renderer.setStyle(this.view.rootNodes[0],"left","0px"),this.renderer.setStyle(this.view.rootNodes[0],"opacity","0"),this.renderer.listen(this.view.rootNodes[0],"click",(function(t){e.smartOpenService.openEvent=t})),this.view.rootNodes.forEach((function(t){e.renderer.appendChild(e.document.body,t)})),this.shouldRealign=!0},e.prototype.ngAfterContentChecked=function(){this.smartOpenService.open&&this.view&&this.shouldRealign&&this.checkCollector.emit()},e.prototype.alignContent=function(){if(this.view){var e=this.smartPositionService.alignContent(this.view.rootNodes[0]);this.renderer.setStyle(this.view.rootNodes[0],"top",e.yOffset+"px"),this.renderer.setStyle(this.view.rootNodes[0],"left",e.xOffset+"px"),this.smartOpenService.popoverAlignedEmit(this.view.rootNodes[0])}},e}();A.decorators=[{type:t.Directive,args:[{selector:"[clrPopoverContent]"}]}],A.ctorParameters=function(){return[{type:HTMLDocument,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:t.ViewContainerRef},{type:t.TemplateRef},{type:t.Renderer2},{type:x},{type:I},{type:v}]},A.propDecorators={open:[{type:t.Input,args:["clrPopoverContent"]}],contentAt:[{type:t.Input,args:["clrPopoverContentAt"]}],outsideClickClose:[{type:t.Input,args:["clrPopoverContentOutsideClickToClose"]}],scrollToClose:[{type:t.Input,args:["clrPopoverContentScrollToClose"]}]};var k=function(){function e(e){var n=this;this.smartOpenService=e,this.subscriptions=[],this.openCloseChange=new t.EventEmitter,this.subscriptions.push(this.smartOpenService.openChange.subscribe((function(e){n.openCloseChange.next(e)})))}return e.prototype.handleClick=function(e){this.smartOpenService.toggleWithEvent(e)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();k.decorators=[{type:t.Directive,args:[{selector:"[clrPopoverOpenCloseButton]",host:{"[class.clr-smart-open-close]":"true"}}]}],k.ctorParameters=function(){return[{type:v}]},k.propDecorators={openCloseChange:[{type:t.Output,args:["clrPopoverOpenCloseChange"]}],handleClick:[{type:t.HostListener,args:["click",["$event"]]}]};var R=function(){function e(e,n,r){var i=this;this.elementRef=e,this.smartEventsService=n,this.smartOpenService=r,this.subscriptions=[],this.closeChange=new t.EventEmitter,this.subscriptions.push(r.openChange.pipe(o.filter((function(e){return!e}))).subscribe((function(){i.closeChange.next()})))}return e.prototype.handleClick=function(e){this.smartOpenService.toggleWithEvent(e),this.smartEventsService.setAnchorFocus()},e.prototype.ngAfterViewInit=function(){this.smartEventsService.closeButtonRef=this.elementRef,this.smartEventsService.setCloseFocus()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();R.decorators=[{type:t.Directive,args:[{selector:"[clrPopoverCloseButton]",host:{"[class.clr-smart-close-button]":"true"}}]}],R.ctorParameters=function(){return[{type:t.ElementRef},{type:I},{type:v}]},R.propDecorators={closeChange:[{type:t.Output,args:["clrPopoverOnCloseChange"]}],handleClick:[{type:t.HostListener,args:["click",["$event"]]}]};var L=function(e,t){e.anchorButtonRef=t};L.decorators=[{type:t.Directive,args:[{selector:"[clrPopoverAnchor]",host:{"[class.clr-anchor]":"true"}}]}],L.ctorParameters=function(){return[{type:I},{type:t.ElementRef}]};var j=function(){};j.decorators=[{type:t.NgModule,args:[{imports:[],declarations:[L,R,k,A],exports:[L,R,k,A]}]}];var N,F=function(){};e.ClrLoadingState=void 0,(N=e.ClrLoadingState||(e.ClrLoadingState={}))[N.DEFAULT=0]="DEFAULT",N[N.LOADING=1]="LOADING",N[N.SUCCESS=2]="SUCCESS",N[N.ERROR=3]="ERROR";var M=function(){function t(t){this.listener=t,this._loadingState=e.ClrLoadingState.DEFAULT}return Object.defineProperty(t.prototype,"loadingState",{get:function(){return this._loadingState},set:function(t){!0===t?t=e.ClrLoadingState.LOADING:t||(t=e.ClrLoadingState.DEFAULT),t!==this._loadingState&&(this._loadingState=t,this.listener&&this.listener.loadingStateChange(t))},enumerable:!1,configurable:!0}),t.prototype.ngOnDestroy=function(){this.loadingState=e.ClrLoadingState.DEFAULT},t}();M.decorators=[{type:t.Directive,args:[{selector:"[clrLoading]"}]}],M.ctorParameters=function(){return[{type:F,decorators:[{type:t.Optional}]}]},M.propDecorators={loadingState:[{type:t.Input,args:["clrLoading"]}]};var V=function(){function e(){this._changes=new i.Subject}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!1,configurable:!0}),e.prototype.updateButtonGroup=function(e){this._changes.next(e)},e}();V.decorators=[{type:t.Injectable}];var B=function(){function n(e,n){this.buttonInGroupService=e,this.toggleService=n,this._enableService=!1,this._inMenu=!1,this._classNames="btn",this._name=null,this._type=null,this._id=null,this._disabled=null,this._click=new t.EventEmitter(!1)}return Object.defineProperty(n.prototype,"inMenu",{get:function(){return this._inMenu},set:function(e){e=!!e,this._inMenu!==e&&(this._inMenu=e,this._enableService&&this.buttonInGroupService&&this.buttonInGroupService.updateButtonGroup(this))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"classNames",{get:function(){return this._classNames},set:function(e){if("string"==typeof e){var t=e.split(" ");-1===t.indexOf("btn")&&t.push("btn"),this._classNames=t.join(" ")}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(e){"string"==typeof e&&(this._name=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(e){"string"==typeof e&&(this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},set:function(e){"string"==typeof e&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=null!==e&&!1!==e?"":null},enumerable:!1,configurable:!0}),n.prototype.loadingStateChange=function(t){this.loading=t===e.ClrLoadingState.LOADING},n.prototype.emitClick=function(e){this.inMenu&&this.toggleService.toggleWithEvent(e),this._click.emit(!0)},n.prototype.ngAfterViewInit=function(){this._enableService=!0},n}();B.decorators=[{type:t.Component,args:[{selector:"clr-button",template:'\n <ng-template #buttonProjectedRef>\n <button\n [class]="classNames"\n (click)="emitClick($event)"\n [attr.type]="type"\n [attr.name]="name"\n [attr.disabled]="disabled"\n [attr.id]="id"\n >\n <span class="spinner spinner-inline" *ngIf="loading"></span>\n <ng-content></ng-content>\n </button>\n </ng-template>\n ',providers:[{provide:F,useExisting:B}]}]}],B.ctorParameters=function(){return[{type:V,decorators:[{type:t.SkipSelf},{type:t.Optional}]},{type:v}]},B.propDecorators={templateRef:[{type:t.ViewChild,args:["buttonProjectedRef",{static:!0}]}],inMenu:[{type:t.Input,args:["clrInMenu"]}],classNames:[{type:t.Input,args:["class"]}],name:[{type:t.Input,args:["name"]}],type:[{type:t.Input,args:["type"]}],id:[{type:t.Input,args:["id"]}],disabled:[{type:t.Input,args:["disabled"]}],_click:[{type:t.Output,args:["click"]}]};var z={open:"Open",close:"Close",show:"Show",hide:"Hide",expand:"Expand",collapse:"Collapse",more:"More",select:"Select",selectAll:"Select All",previous:"Previous",next:"Next",current:"Jump to current",info:"Info",success:"Success",warning:"Warning",danger:"Error",rowActions:"Available actions",pickColumns:"Show or hide columns",showColumns:"Show Columns",sortColumn:"Sort Column",firstPage:"First Page",lastPage:"Last Page",nextPage:"Next Page",previousPage:"Previous Page",currentPage:"Current Page",totalPages:"Total Pages",filterItems:"Filter items",minValue:"Min value",maxValue:"Max value",modalContentStart:"Beginning of Modal Content",modalContentEnd:"End of Modal Content",showColumnsMenuDescription:"Show or hide columns menu",allColumnsSelected:"All columns selected",signpostToggle:"Signpost Toggle",signpostClose:"Signpost Close",loading:"Loading",detailPaneStart:"Start of row details",detailPaneEnd:"End of row details",singleSelectionAriaLabel:"Single selection header",singleActionableAriaLabel:"Single actionable header",detailExpandableAriaLabel:"Toggle more row content",datagridFilterAriaLabel:"Toggle column filter",columnSeparatorAriaLabel:"Column resize handle",columnSeparatorDescription:"Not necessary to use this button",alertCloseButtonAriaLabel:"Close alert",datepickerToggle:"Toggle datepicker",datepickerPreviousMonth:"Previous month",datepickerCurrentMonth:"Current month",datepickerNextMonth:"Next month",datepickerPreviousDecade:"Previous decade",datepickerNextDecade:"Next decade",datepickerCurrentDecade:"Current decade",datepickerSelectMonthText:"Select month, the current month is {CALENDAR_MONTH}",datepickerSelectYearText:"Select year, the current year is {CALENDAR_YEAR}",stackViewChanged:"Value changed.",verticalNavGroupToggle:"Toggle vertical navigation group",verticalNavToggle:"Toggle vertical navigation",timelineStepNotStarted:"Not started",timelineStepCurrent:"Current",timelineStepSuccess:"Completed",timelineStepError:"Error",timelineStepProcessing:"In progress",comboboxDelete:"Delete selected option",comboboxSearching:'Searching for matches for "{INPUT}"',comboboxSelection:"Selection",comboboxSelected:"Selected",comboboxNoResults:"No results",comboboxOpen:"Show options",dategridExpandableBeginningOf:"Beginning of",dategridExpandableEndOf:"End of",dategridExpandableRowContent:"Expandable row content",dategridExpandableRowsHelperText:"Screen reader table commands may not work for viewing expanded content, please use your screen reader's browse mode to read the content exposed by this button"},H=function(){function e(){this._strings=z}return e.prototype.localize=function(e){this._strings=Object.assign(Object.assign({},this._strings),e)},Object.defineProperty(e.prototype,"keys",{get:function(){return this._strings},enumerable:!1,configurable:!0}),e.prototype.parse=function(e,t){void 0===t&&(t={});var n=Object.keys(t),r=e;return n.length&&n.forEach((function(e){r=r.replace("{"+e+"}",t[e])})),r},e}();H.ɵprov=l.ɵɵdefineInjectable({factory:function(){return new H},token:H,providedIn:"root"}),H.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var G=0,W=new t.InjectionToken("UNIQUE_ID");function U(){return"clr-id-"+G++}var Y,K={provide:W,useFactory:U};e.ClrSide=void 0,(Y=e.ClrSide||(e.ClrSide={}))[Y.BEFORE=-1]="BEFORE",Y[Y.AFTER=1]="AFTER";var Z=function(){};Z["top-right"]={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.END,content:e.ClrAlignment.END},Z["top-left"]={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START},Z["bottom-right"]={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.END,content:e.ClrAlignment.END},Z["bottom-left"]={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START},Z["right-top"]={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.CENTER,content:e.ClrAlignment.END},Z["right-bottom"]={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START},Z["left-top"]={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.CENTER,content:e.ClrAlignment.END},Z["left-bottom"]={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START};var q=function(){function e(e,t,n,r){this.buttonGroupNewService=e,this.toggleService=t,this.popoverId=n,this.commonStrings=r,this.popoverPosition=Z["bottom-left"],this.inlineButtons=[],this.menuButtons=[]}return Object.defineProperty(e.prototype,"open",{get:function(){return this.toggleService.open},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.initializeButtons(),this.buttonGroupNewService.changes.subscribe((function(t){return e.rearrangeButton(t)})),this.buttons.changes.subscribe((function(){e.initializeButtons()}))},e.prototype.rearrangeButton=function(e){var t,n;e.inMenu?(t=this.inlineButtons,n=this.menuButtons):(t=this.menuButtons,n=this.inlineButtons);var r=t.indexOf(e);if(r>-1){t.splice(r,1);var i=this.getMoveIndex(e);i<=n.length&&n.splice(i,0,e)}},e.prototype.getMoveIndex=function(e){return this.buttons.filter((function(t){return t.inMenu===e.inMenu})).indexOf(e)},e.prototype.initializeButtons=function(){var e=[],t=[];this.buttons.forEach((function(n){n.inMenu?t.push(n):e.push(n)})),this.inlineButtons=e,this.menuButtons=t},Object.defineProperty(e.prototype,"menuPosition",{get:function(){return this._menuPosition},set:function(e){e&&Z[e]?this._menuPosition=e:this._menuPosition="bottom-left",this.popoverPosition=Z[this._menuPosition]},enumerable:!1,configurable:!0}),e}();q.decorators=[{type:t.Component,args:[{selector:"clr-button-group",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<ng-container *ngFor="let inlineButton of inlineButtons">\n <ng-template [ngTemplateOutlet]="inlineButton.templateRef"></ng-template>\n</ng-container>\n<ng-container *ngIf="menuButtons.length > 0">\n <div class="btn-group-overflow open" [ngClass]="menuPosition" #anchor>\n <button\n class="btn dropdown-toggle"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [attr.aria-controls]="popoverId"\n [attr.aria-expanded]="open"\n [attr.aria-label]="commonStrings.keys.rowActions"\n >\n <cds-icon shape="ellipsis-horizontal" [attr.title]="commonStrings.keys.more"></cds-icon>\n </button>\n <div\n role="menu"\n class="dropdown-menu clr-button-group-menu"\n [id]="popoverId"\n [attr.id]="popoverId"\n [attr.aria-hidden]="!open"\n *clrPopoverContent="open at popoverPosition; outsideClickToClose: true; scrollToClose: true"\n >\n <ng-template [ngTemplateOutlet]="ref"></ng-template>\n </div>\n </div>\n</ng-container>\n<ng-template #ref>\n <ng-container *ngFor="let menuButton of menuButtons">\n <ng-template [ngTemplateOutlet]="menuButton.templateRef"></ng-template>\n </ng-container>\n</ng-template>\n',providers:[V,K,v,I,x],host:{"[class.btn-group]":"true"}}]}],q.ctorParameters=function(){return[{type:V},{type:v},{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:H}]},q.propDecorators={buttons:[{type:t.ContentChildren,args:[B]}],menuPosition:[{type:t.Input,args:["clrMenuPosition"]}]};var X=[B,q],$=function(){};$.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,j],declarations:[X],exports:[X]}]}];var J=function(){function n(n,r){this.el=n,this.renderer=r,this.buttonState=e.ClrLoadingState,this.state=e.ClrLoadingState.DEFAULT,this.clrLoadingChange=new t.EventEmitter(!1)}return n.prototype.loadingStateChange=function(t){if(t!==this.state){switch(this.state=t,t){case e.ClrLoadingState.DEFAULT:this.renderer.removeStyle(this.el.nativeElement,"width"),this.renderer.removeStyle(this.el.nativeElement,"transform"),this.disabled||this.renderer.removeAttribute(this.el.nativeElement,"disabled");break;case e.ClrLoadingState.LOADING:this.setExplicitButtonWidth(),this.renderer.setStyle(this.el.nativeElement,"transform","translatez(0)"),this.renderer.setAttribute(this.el.nativeElement,"disabled","");break;case e.ClrLoadingState.SUCCESS:this.setExplicitButtonWidth();break;case e.ClrLoadingState.ERROR:this.loadingStateChange(e.ClrLoadingState.DEFAULT)}this.clrLoadingChange.emit(t)}},n.prototype.setExplicitButtonWidth=function(){if(this.el.nativeElement&&this.el.nativeElement.getBoundingClientRect){var e=this.el.nativeElement.getBoundingClientRect();this.renderer.setStyle(this.el.nativeElement,"width",e.width+"px")}},n}();J.decorators=[{type:t.Component,args:[{selector:"button[clrLoading]",template:'\n <ng-container [ngSwitch]="state">\n <span *ngSwitchCase="buttonState.LOADING">\n <span @spinner class="spinner spinner-inline"></span>\n </span>\n <span *ngSwitchCase="buttonState.SUCCESS">\n <span\n @validated\n (@validated.done)="this.loadingStateChange(this.buttonState.DEFAULT)"\n class="spinner spinner-inline spinner-check"\n ></span>\n </span>\n <span *ngSwitchCase="buttonState.DEFAULT" @defaultButton>\n <ng-content></ng-content>\n </span>\n </ng-container>\n ',providers:[{provide:F,useExisting:J}],animations:[s.trigger("defaultButton",[s.transition(":enter",[s.style({opacity:0}),s.animate("200ms 100ms ease-in",s.style({opacity:1}))]),s.transition(":leave",[s.style({opacity:0})])]),s.trigger("spinner",[s.transition(":enter",[s.style({opacity:0}),s.animate("200ms 100ms ease-in",s.style({opacity:1}))]),s.transition(":leave",[s.style({opacity:1}),s.animate("100ms ease-out",s.style({opacity:0}))])]),s.trigger("validated",[s.transition(":enter",[s.animate("600ms",s.keyframes([s.style({transform:"scale(0,0)",offset:0}),s.style({opacity:1,offset:.2}),s.style({transform:"scale(1.2,1.2)",offset:.4}),s.style({transform:"scale(.9,.9)",offset:.6}),s.style({transform:"scale(1,1)",offset:1})]))]),s.transition(":leave",[s.style({opacity:1}),s.animate("100ms ease-out",s.style({opacity:0}))])])],host:{"[attr.disabled]":"disabled? '' : null"}}]}],J.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},J.propDecorators={disabled:[{type:t.Input,args:["disabled"]}],clrLoadingChange:[{type:t.Output,args:["clrLoadingChange"]}]};var Q=[J],ee=function(){};ee.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Q],exports:[Q]}]}];var te=function(){n.ClarityIcons.addIcons(n.ellipsisHorizontalIcon)};te.decorators=[{type:t.NgModule,args:[{exports:[ee,$]}]}],te.ctorParameters=function(){return[]};var ne=function(){};ne.decorators=[{type:t.Component,args:[{template:""}]}];var re=function(){};re.decorators=[{type:t.NgModule,args:[{declarations:[ne],exports:[ne],entryComponents:[ne]}]}];
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@cds/core/icon"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@angular/forms"),require("@cds/core/icon/register")):"function"==typeof define&&define.amd?define("@clr/angular",["exports","@angular/core","@cds/core/icon","@angular/common","rxjs","rxjs/operators","@angular/animations","@angular/forms","@cds/core/icon/register"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).clr=e.clr||{},e.clr.angular={}),e.ng.core,e.icon,e.ng.common,e.rxjs,e.rxjs.operators,e.ng.animations,e.ng.forms)}(this,(function(e,t,n,r,i,o,s,a){"use strict";var c=function(){};c.decorators=[{type:t.Directive,args:[{selector:"clr-icon"}]}];var l=function(){};l.decorators=[{type:t.Directive,args:[{selector:"cds-icon"}]}];var p,u,d=[c,l],h=function(){};function g(e){return e===p.ArrowUp||e===u.ArrowUp?p.ArrowUp:e===p.ArrowDown||e===u.ArrowDown?p.ArrowDown:e===p.ArrowRight||e===u.ArrowRight?p.ArrowRight:e===p.ArrowLeft||e===u.ArrowLeft?p.ArrowLeft:e===p.Space||e===u.Space?p.Space:e===p.Escape||e===u.Escape?p.Escape:e}function f(e){var t=g(e.key);t!==p.ArrowUp&&t!==p.ArrowDown&&t!==p.ArrowLeft&&t!==p.ArrowRight||e.preventDefault()}h.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[d],exports:[d]}]}],function(e){e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Backspace="Backspace",e.Tab="Tab",e.Enter="Enter",e.Escape="Escape",e.Space="Space",e.Home="Home",e.End="End"}(p||(p={})),function(e){e.ArrowUp="Up",e.ArrowDown="Down",e.ArrowRight="Right",e.ArrowLeft="Left",e.Space="Spacebar",e.Escape="Esc",e.Home="Home",e.End="End",e.Enter="Enter",e.Tab="Tab"}(u||(u={}));var y=function(){function e(){this._open=!1,this._openChange=new i.Subject,this._openEventChange=new i.Subject,this._popoverAligned=new i.Subject}return Object.defineProperty(e.prototype,"openChange",{get:function(){return this._openChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openEvent",{get:function(){return this._openEvent},set:function(e){this._openEvent=e,this._openEventChange.next(e)},enumerable:!1,configurable:!0}),e.prototype.getEventChange=function(){return this._openEventChange.asObservable()},Object.defineProperty(e.prototype,"open",{get:function(){return this._open},set:function(e){e=!!e,this._open!==e&&(this._open=e,this._openChange.next(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"originalEvent",{get:function(){return this._openEvent},enumerable:!1,configurable:!0}),e.prototype.toggleWithEvent=function(e){f(e),this.openEvent=e,this.open=!this.open},Object.defineProperty(e.prototype,"popoverAligned",{get:function(){return this._popoverAligned.asObservable()},enumerable:!1,configurable:!0}),e.prototype.popoverAlignedEmit=function(e){this._popoverAligned.next(e)},e}();y.decorators=[{type:t.Injectable}];var b,m,v=function(){function e(e,t,n){var r=this;this.renderer=e,this.smartOpenService=t,this.document=n,this.outsideClickClose=!0,this.scrollToClose=!0,this.subscriptions=[],this.subscriptions.push(t.openChange.subscribe((function(e){e?(r.addEscapeListener(),r.addClickListener(),r.addScrollListener()):r.removeAllEventListeners()})),t.getEventChange().subscribe((function(e){r.ignoredEvent=e})))}return e.prototype.addScrollListener=function(){var e=this;this.scrollToClose&&(this.documentScroller=i.fromEvent(this.document,"scroll",{capture:!0}),this.scrollSubscription=this.documentScroller.pipe(o.filter(this.testForSmartPopoverContentContainer)).subscribe((function(){e.smartOpenService.open=!1,e.setAnchorFocus()})))},e.prototype.removeScrollListener=function(){this.documentScroller&&(this.scrollSubscription.unsubscribe(),delete this.documentScroller)},e.prototype.testForSmartPopoverContentContainer=function(e){for(var t=e.target;t.classList&&"body"!==t.parentElement.localName;)t=t.parentElement;return!!t.classList&&!t.classList.contains("clr-popover-content")},e.prototype.addClickListener=function(){var e=this;this.outsideClickClose&&(this.documentClickListener=this.renderer.listen(this.document,"click",(function(t){t===e.ignoredEvent?delete e.ignoredEvent:(e.smartOpenService.open=!1,t.target.focus())})))},e.prototype.removeClickListener=function(){this.outsideClickClose&&(delete this.ignoredEvent,this.documentClickListener&&(this.documentClickListener(),delete this.documentClickListener))},e.prototype.addEscapeListener=function(){var e=this;this.escapeListener=this.renderer.listen(this.document,"keydown.escape",(function(){e.smartOpenService.open=!1,e.setAnchorFocus()}))},e.prototype.removeEscapeListener=function(){this.escapeListener&&(this.escapeListener(),delete this.escapeListener)},Object.defineProperty(e.prototype,"anchorButtonRef",{get:function(){return this._anchorButtonRef},set:function(e){this._anchorButtonRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"closeButtonRef",{get:function(){return this._closeButtonRef},set:function(e){this._closeButtonRef=e},enumerable:!1,configurable:!0}),e.prototype.setCloseFocus=function(){this._closeButtonRef.nativeElement.focus()},e.prototype.setAnchorFocus=function(){this.anchorButtonRef.nativeElement.focus()},Object.defineProperty(e.prototype,"contentRef",{get:function(){return this._contentRef},set:function(e){this._contentRef=e},enumerable:!1,configurable:!0}),e.prototype.removeAllEventListeners=function(){this.removeScrollListener(),this.removeClickListener(),this.removeEscapeListener()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.removeAllEventListeners()},e}();v.decorators=[{type:t.Injectable}],v.ctorParameters=function(){return[{type:t.Renderer2},{type:y},{type:HTMLDocument,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]},function(e){e[e.BOTTOM=0]="BOTTOM",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.TOP=3]="TOP"}(b||(b={})),(m=e.ClrAlignment||(e.ClrAlignment={}))[m.START=0]="START",m[m.CENTER=.5]="CENTER",m[m.END=1]="END";var C,S=function(e){return Object.assign(Object.assign({},e),{side:-1*e.side})},I=function(e,t){var n=e.content+(t?.5:-.5);return n<0||n>1?e:Object.assign(Object.assign({},e),{content:n})};function O(e,t,n){return function(r){return t(e(r),n)}}function E(e,t,n){var r=t.left,i=t.top;switch(e.axis+e.side){case-1:r+=w(e,t,n),i-=n.height;break;case 1:r+=w(e,t,n),i+=t.height;break;case 0:r-=n.width,i+=_(e,t,n);break;case 2:r+=t.width,i+=_(e,t,n)}return{xOffset:r,yOffset:i}}function w(t,n,r){var i=0;switch(t.anchor){case e.ClrAlignment.START:break;case e.ClrAlignment.CENTER:i+=n.width/2;break;case e.ClrAlignment.END:i+=n.width}switch(t.content){case e.ClrAlignment.START:break;case e.ClrAlignment.CENTER:i-=r.width/2;break;case e.ClrAlignment.END:i-=r.width}return i}function _(t,n,r){var i=0;switch(t.anchor){case e.ClrAlignment.START:break;case e.ClrAlignment.CENTER:i+=n.height/2;break;case e.ClrAlignment.END:i+=n.height}switch(t.content){case e.ClrAlignment.START:break;case e.ClrAlignment.CENTER:i-=r.height/2;break;case e.ClrAlignment.END:i-=r.height}return i}(C=e.ClrAxis||(e.ClrAxis={}))[C.VERTICAL=0]="VERTICAL",C[C.HORIZONTAL=1]="HORIZONTAL";var P=function(){function t(e,t){this.eventService=e,this.platformId=t,this._shouldRealign=new i.Subject,this.shouldRealign=this._shouldRealign.asObservable()}return t.prototype.realign=function(){this._shouldRealign.next()},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!1,configurable:!0}),t.prototype.alignContent=function(t){if(!r.isPlatformBrowser(this.platformId))return{xOffset:0,yOffset:0};this.currentAnchorCoords=this.eventService.anchorButtonRef.nativeElement.getBoundingClientRect(),this.currentContentCoords=t.getBoundingClientRect(),this.contentOffsets=E(this.position,this.currentAnchorCoords,this.currentContentCoords);var n=function(e,t){var n=[],r=e.yOffset+t.height,i=e.xOffset,o=e.xOffset+t.width;return e.yOffset>=0||n.push(b.TOP),i>=0||n.push(b.LEFT),r<=(window.innerHeight||document.documentElement.clientHeight)||n.push(b.BOTTOM),o<=(window.innerWidth||document.documentElement.clientWidth)||n.push(b.RIGHT),n}(this.contentOffsets,this.currentContentCoords),i=n.reduce((function(e,t){return e+t}),0);return 1===n.length&&this.position.axis===e.ClrAxis.VERTICAL?this.handleVerticalAxisOneViolation(i):1===n.length&&this.position.axis===e.ClrAxis.HORIZONTAL?this.handleHorizontalAxisOneViolation(i):2===n.length&&this.position.axis===e.ClrAxis.VERTICAL?this.handleVerticalAxisTwoViolations(i):2===n.length&&this.position.axis===e.ClrAxis.HORIZONTAL&&this.handleHorizontalAxisTwoViolations(i),this.contentOffsets},t.prototype.handleVerticalAxisOneViolation=function(e){switch(e){case 0:case 3:this.contentOffsets=E(S(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 1:this.contentOffsets=E(I(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 2:this.contentOffsets=E(I(this.position,!0),this.currentAnchorCoords,this.currentContentCoords)}},t.prototype.handleVerticalAxisTwoViolations=function(e){switch(e){case 5:var t=O(S,I,!0);this.contentOffsets=E(t(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 4:var n=O(S,I,!1);this.contentOffsets=E(n(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 3:break;case 2:t=O(S,I,!0);this.contentOffsets=E(t(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 1:n=O(S,I,!1);this.contentOffsets=E(n(this.position),this.currentAnchorCoords,this.currentContentCoords)}},t.prototype.handleHorizontalAxisOneViolation=function(e){switch(e){case 1:case 2:this.contentOffsets=E(S(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 0:this.contentOffsets=E(I(this.position,!0),this.currentAnchorCoords,this.currentContentCoords);break;case 3:this.contentOffsets=E(I(this.position),this.currentAnchorCoords,this.currentContentCoords)}},t.prototype.handleHorizontalAxisTwoViolations=function(e){switch(e){case 5:case 4:var t=O(S,I,!1);this.contentOffsets=E(t(this.position),this.currentAnchorCoords,this.currentContentCoords);break;case 3:break;case 2:case 1:var n=O(S,I,!0);this.contentOffsets=E(n(this.position),this.currentAnchorCoords,this.currentContentCoords)}},t}();P.decorators=[{type:t.Injectable}],P.ctorParameters=function(){return[{type:v},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var D=function(){function e(e,n,r,i,o,s,a){this.document=e,this.container=n,this.template=r,this.renderer=i,this.smartPositionService=o,this.smartEventsService=s,this.smartOpenService=a,this.subscriptions=[],this.shouldRealign=!1,this.checkCollector=new t.EventEmitter}return Object.defineProperty(e.prototype,"open",{set:function(e){this.smartOpenService.open=!!e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentAt",{set:function(e){this.smartPositionService.position=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"outsideClickClose",{set:function(e){this.smartEventsService.outsideClickClose=!!e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollToClose",{set:function(e){this.smartEventsService.scrollToClose=!!e},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.subscriptions.push(this.smartOpenService.openChange.subscribe((function(t){t?e.addContent():e.removeContent()})),this.smartPositionService.shouldRealign.subscribe((function(){e.shouldRealign=!0,e.view&&e.renderer.setStyle(e.view.rootNodes[0],"opacity","0")})),this.checkCollector.pipe(o.debounceTime(0)).subscribe((function(){e.alignContent(),e.shouldRealign=!1,e.view&&e.renderer.setStyle(e.view.rootNodes[0],"opacity","1")})))},e.prototype.ngOnDestroy=function(){this.removeContent(),this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.removeContent=function(){var e=this;this.view&&(this.view.rootNodes.forEach((function(t){return e.renderer.removeChild(e.document.body,t)})),this.container.clear(),delete this.view)},e.prototype.addContent=function(){var e=this;this.view=this.container.createEmbeddedView(this.template),this.smartEventsService.contentRef=this.view.rootNodes[0],this.renderer.addClass(this.view.rootNodes[0],"clr-popover-content"),this.renderer.setStyle(this.view.rootNodes[0],"top","0px"),this.renderer.setStyle(this.view.rootNodes[0],"left","0px"),this.renderer.setStyle(this.view.rootNodes[0],"opacity","0"),this.renderer.listen(this.view.rootNodes[0],"click",(function(t){e.smartOpenService.openEvent=t})),this.view.rootNodes.forEach((function(t){e.renderer.appendChild(e.document.body,t)})),this.shouldRealign=!0},e.prototype.ngAfterContentChecked=function(){this.smartOpenService.open&&this.view&&this.shouldRealign&&this.checkCollector.emit()},e.prototype.alignContent=function(){if(this.view){var e=this.smartPositionService.alignContent(this.view.rootNodes[0]);this.renderer.setStyle(this.view.rootNodes[0],"top",e.yOffset+"px"),this.renderer.setStyle(this.view.rootNodes[0],"left",e.xOffset+"px"),this.smartOpenService.popoverAlignedEmit(this.view.rootNodes[0])}},e}();D.decorators=[{type:t.Directive,args:[{selector:"[clrPopoverContent]"}]}],D.ctorParameters=function(){return[{type:HTMLDocument,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:t.ViewContainerRef},{type:t.TemplateRef},{type:t.Renderer2},{type:P},{type:v},{type:y}]},D.propDecorators={open:[{type:t.Input,args:["clrPopoverContent"]}],contentAt:[{type:t.Input,args:["clrPopoverContentAt"]}],outsideClickClose:[{type:t.Input,args:["clrPopoverContentOutsideClickToClose"]}],scrollToClose:[{type:t.Input,args:["clrPopoverContentScrollToClose"]}]};var T=function(){function e(e){var n=this;this.smartOpenService=e,this.subscriptions=[],this.openCloseChange=new t.EventEmitter,this.subscriptions.push(this.smartOpenService.openChange.subscribe((function(e){n.openCloseChange.next(e)})))}return e.prototype.handleClick=function(e){this.smartOpenService.toggleWithEvent(e)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();T.decorators=[{type:t.Directive,args:[{selector:"[clrPopoverOpenCloseButton]",host:{"[class.clr-smart-open-close]":"true"}}]}],T.ctorParameters=function(){return[{type:y}]},T.propDecorators={openCloseChange:[{type:t.Output,args:["clrPopoverOpenCloseChange"]}],handleClick:[{type:t.HostListener,args:["click",["$event"]]}]};var x=function(){function e(e,n,r){var i=this;this.elementRef=e,this.smartEventsService=n,this.smartOpenService=r,this.subscriptions=[],this.closeChange=new t.EventEmitter,this.subscriptions.push(r.openChange.pipe(o.filter((function(e){return!e}))).subscribe((function(){i.closeChange.next()})))}return e.prototype.handleClick=function(e){this.smartOpenService.toggleWithEvent(e),this.smartEventsService.setAnchorFocus()},e.prototype.ngAfterViewInit=function(){this.smartEventsService.closeButtonRef=this.elementRef,this.smartEventsService.setCloseFocus()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();x.decorators=[{type:t.Directive,args:[{selector:"[clrPopoverCloseButton]",host:{"[class.clr-smart-close-button]":"true"}}]}],x.ctorParameters=function(){return[{type:t.ElementRef},{type:v},{type:y}]},x.propDecorators={closeChange:[{type:t.Output,args:["clrPopoverOnCloseChange"]}],handleClick:[{type:t.HostListener,args:["click",["$event"]]}]};var A=function(e,t){e.anchorButtonRef=t};A.decorators=[{type:t.Directive,args:[{selector:"[clrPopoverAnchor]",host:{"[class.clr-anchor]":"true"}}]}],A.ctorParameters=function(){return[{type:v},{type:t.ElementRef}]};var k=function(){};k.decorators=[{type:t.NgModule,args:[{imports:[],declarations:[A,x,T,D],exports:[A,x,T,D]}]}];var R,L=function(){};(R=e.ClrLoadingState||(e.ClrLoadingState={}))[R.DEFAULT=0]="DEFAULT",R[R.LOADING=1]="LOADING",R[R.SUCCESS=2]="SUCCESS",R[R.ERROR=3]="ERROR";var j=function(){function t(t){this.listener=t,this._loadingState=e.ClrLoadingState.DEFAULT}return Object.defineProperty(t.prototype,"loadingState",{get:function(){return this._loadingState},set:function(t){!0===t?t=e.ClrLoadingState.LOADING:t||(t=e.ClrLoadingState.DEFAULT),t!==this._loadingState&&(this._loadingState=t,this.listener&&this.listener.loadingStateChange(t))},enumerable:!1,configurable:!0}),t.prototype.ngOnDestroy=function(){this.loadingState=e.ClrLoadingState.DEFAULT},t}();j.decorators=[{type:t.Directive,args:[{selector:"[clrLoading]"}]}],j.ctorParameters=function(){return[{type:L,decorators:[{type:t.Optional}]}]},j.propDecorators={loadingState:[{type:t.Input,args:["clrLoading"]}]};var N=function(){function e(){this._changes=new i.Subject}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!1,configurable:!0}),e.prototype.updateButtonGroup=function(e){this._changes.next(e)},e}();N.decorators=[{type:t.Injectable}];var F=function(){function n(e,n){this.buttonInGroupService=e,this.toggleService=n,this._enableService=!1,this._inMenu=!1,this._classNames="btn",this._name=null,this._type=null,this._id=null,this._disabled=null,this._click=new t.EventEmitter(!1)}return Object.defineProperty(n.prototype,"inMenu",{get:function(){return this._inMenu},set:function(e){e=!!e,this._inMenu!==e&&(this._inMenu=e,this._enableService&&this.buttonInGroupService&&this.buttonInGroupService.updateButtonGroup(this))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"classNames",{get:function(){return this._classNames},set:function(e){if("string"==typeof e){var t=e.split(" ");-1===t.indexOf("btn")&&t.push("btn"),this._classNames=t.join(" ")}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(e){"string"==typeof e&&(this._name=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(e){"string"==typeof e&&(this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},set:function(e){"string"==typeof e&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=null!==e&&!1!==e?"":null},enumerable:!1,configurable:!0}),n.prototype.loadingStateChange=function(t){this.loading=t===e.ClrLoadingState.LOADING},n.prototype.emitClick=function(e){this.inMenu&&this.toggleService.toggleWithEvent(e),this._click.emit(!0)},n.prototype.ngAfterViewInit=function(){this._enableService=!0},n}();F.decorators=[{type:t.Component,args:[{selector:"clr-button",template:'\n <ng-template #buttonProjectedRef>\n <button\n [class]="classNames"\n (click)="emitClick($event)"\n [attr.type]="type"\n [attr.name]="name"\n [attr.disabled]="disabled"\n [attr.id]="id"\n >\n <span class="spinner spinner-inline" *ngIf="loading"></span>\n <ng-content></ng-content>\n </button>\n </ng-template>\n ',providers:[{provide:L,useExisting:F}]}]}],F.ctorParameters=function(){return[{type:N,decorators:[{type:t.SkipSelf},{type:t.Optional}]},{type:y}]},F.propDecorators={templateRef:[{type:t.ViewChild,args:["buttonProjectedRef",{static:!0}]}],inMenu:[{type:t.Input,args:["clrInMenu"]}],classNames:[{type:t.Input,args:["class"]}],name:[{type:t.Input,args:["name"]}],type:[{type:t.Input,args:["type"]}],id:[{type:t.Input,args:["id"]}],disabled:[{type:t.Input,args:["disabled"]}],_click:[{type:t.Output,args:["click"]}]};var M={open:"Open",close:"Close",show:"Show",hide:"Hide",expand:"Expand",collapse:"Collapse",more:"More",select:"Select",selectAll:"Select All",previous:"Previous",next:"Next",current:"Jump to current",info:"Info",success:"Success",warning:"Warning",danger:"Error",rowActions:"Available actions",pickColumns:"Show or hide columns",showColumns:"Show Columns",sortColumn:"Sort Column",firstPage:"First Page",lastPage:"Last Page",nextPage:"Next Page",previousPage:"Previous Page",currentPage:"Current Page",totalPages:"Total Pages",filterItems:"Filter items",minValue:"Min value",maxValue:"Max value",modalContentStart:"Beginning of Modal Content",modalContentEnd:"End of Modal Content",showColumnsMenuDescription:"Show or hide columns menu",allColumnsSelected:"All columns selected",signpostToggle:"Signpost Toggle",signpostClose:"Signpost Close",loading:"Loading",detailPaneStart:"Start of row details",detailPaneEnd:"End of row details",singleSelectionAriaLabel:"Single selection header",singleActionableAriaLabel:"Single actionable header",detailExpandableAriaLabel:"Toggle more row content",datagridFilterAriaLabel:"Toggle column filter",columnSeparatorAriaLabel:"Column resize handle",columnSeparatorDescription:"Not necessary to use this button",alertCloseButtonAriaLabel:"Close alert",datepickerToggle:"Toggle datepicker",datepickerPreviousMonth:"Previous month",datepickerCurrentMonth:"Current month",datepickerNextMonth:"Next month",datepickerPreviousDecade:"Previous decade",datepickerNextDecade:"Next decade",datepickerCurrentDecade:"Current decade",datepickerSelectMonthText:"Select month, the current month is {CALENDAR_MONTH}",datepickerSelectYearText:"Select year, the current year is {CALENDAR_YEAR}",stackViewChanged:"Value changed.",verticalNavGroupToggle:"Toggle vertical navigation group",verticalNavToggle:"Toggle vertical navigation",timelineStepNotStarted:"Not started",timelineStepCurrent:"Current",timelineStepSuccess:"Completed",timelineStepError:"Error",timelineStepProcessing:"In progress",comboboxDelete:"Delete selected option",comboboxSearching:'Searching for matches for "{INPUT}"',comboboxSelection:"Selection",comboboxSelected:"Selected",comboboxNoResults:"No results",comboboxOpen:"Show options",dategridExpandableBeginningOf:"Beginning of",dategridExpandableEndOf:"End of",dategridExpandableRowContent:"Expandable row content",dategridExpandableRowsHelperText:"Screen reader table commands may not work for viewing expanded content, please use your screen reader's browse mode to read the content exposed by this button"},V=function(){function e(){this._strings=M}return e.prototype.localize=function(e){this._strings=Object.assign(Object.assign({},this._strings),e)},Object.defineProperty(e.prototype,"keys",{get:function(){return this._strings},enumerable:!1,configurable:!0}),e.prototype.parse=function(e,t){void 0===t&&(t={});var n=Object.keys(t),r=e;return n.length&&n.forEach((function(e){r=r.replace("{"+e+"}",t[e])})),r},e}();V.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new V},token:V,providedIn:"root"}),V.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var B=0,z=new t.InjectionToken("UNIQUE_ID");function H(){return"clr-id-"+B++}var G,W={provide:z,useFactory:H};(G=e.ClrSide||(e.ClrSide={}))[G.BEFORE=-1]="BEFORE",G[G.AFTER=1]="AFTER";var U=function(){};U["top-right"]={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.END,content:e.ClrAlignment.END},U["top-left"]={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START},U["bottom-right"]={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.END,content:e.ClrAlignment.END},U["bottom-left"]={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START},U["right-top"]={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.CENTER,content:e.ClrAlignment.END},U["right-bottom"]={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START},U["left-top"]={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.CENTER,content:e.ClrAlignment.END},U["left-bottom"]={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START};var Y=function(){function e(e,t,n,r){this.buttonGroupNewService=e,this.toggleService=t,this.popoverId=n,this.commonStrings=r,this.popoverPosition=U["bottom-left"],this.inlineButtons=[],this.menuButtons=[]}return Object.defineProperty(e.prototype,"open",{get:function(){return this.toggleService.open},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.initializeButtons(),this.buttonGroupNewService.changes.subscribe((function(t){return e.rearrangeButton(t)})),this.buttons.changes.subscribe((function(){e.initializeButtons()}))},e.prototype.rearrangeButton=function(e){var t,n;e.inMenu?(t=this.inlineButtons,n=this.menuButtons):(t=this.menuButtons,n=this.inlineButtons);var r=t.indexOf(e);if(r>-1){t.splice(r,1);var i=this.getMoveIndex(e);i<=n.length&&n.splice(i,0,e)}},e.prototype.getMoveIndex=function(e){return this.buttons.filter((function(t){return t.inMenu===e.inMenu})).indexOf(e)},e.prototype.initializeButtons=function(){var e=[],t=[];this.buttons.forEach((function(n){n.inMenu?t.push(n):e.push(n)})),this.inlineButtons=e,this.menuButtons=t},Object.defineProperty(e.prototype,"menuPosition",{get:function(){return this._menuPosition},set:function(e){e&&U[e]?this._menuPosition=e:this._menuPosition="bottom-left",this.popoverPosition=U[this._menuPosition]},enumerable:!1,configurable:!0}),e}();Y.decorators=[{type:t.Component,args:[{selector:"clr-button-group",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<ng-container *ngFor="let inlineButton of inlineButtons">\n <ng-template [ngTemplateOutlet]="inlineButton.templateRef"></ng-template>\n</ng-container>\n<ng-container *ngIf="menuButtons.length > 0">\n <div class="btn-group-overflow open" [ngClass]="menuPosition" #anchor>\n <button\n class="btn dropdown-toggle"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [attr.aria-controls]="popoverId"\n [attr.aria-expanded]="open"\n [attr.aria-label]="commonStrings.keys.rowActions"\n >\n <cds-icon shape="ellipsis-horizontal" [attr.title]="commonStrings.keys.more"></cds-icon>\n </button>\n <div\n role="menu"\n class="dropdown-menu clr-button-group-menu"\n [id]="popoverId"\n [attr.id]="popoverId"\n [attr.aria-hidden]="!open"\n *clrPopoverContent="open at popoverPosition; outsideClickToClose: true; scrollToClose: true"\n >\n <ng-template [ngTemplateOutlet]="ref"></ng-template>\n </div>\n </div>\n</ng-container>\n<ng-template #ref>\n <ng-container *ngFor="let menuButton of menuButtons">\n <ng-template [ngTemplateOutlet]="menuButton.templateRef"></ng-template>\n </ng-container>\n</ng-template>\n',providers:[N,W,y,v,P],host:{"[class.btn-group]":"true"}}]}],Y.ctorParameters=function(){return[{type:N},{type:y},{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:V}]},Y.propDecorators={buttons:[{type:t.ContentChildren,args:[F]}],menuPosition:[{type:t.Input,args:["clrMenuPosition"]}]};var K=[F,Y],Z=function(){};Z.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,k],declarations:[K],exports:[K]}]}];var q=function(){function n(n,r){this.el=n,this.renderer=r,this.buttonState=e.ClrLoadingState,this.state=e.ClrLoadingState.DEFAULT,this.clrLoadingChange=new t.EventEmitter(!1)}return n.prototype.loadingStateChange=function(t){if(t!==this.state){switch(this.state=t,t){case e.ClrLoadingState.DEFAULT:this.renderer.removeStyle(this.el.nativeElement,"width"),this.renderer.removeStyle(this.el.nativeElement,"transform"),this.disabled||this.renderer.removeAttribute(this.el.nativeElement,"disabled");break;case e.ClrLoadingState.LOADING:this.setExplicitButtonWidth(),this.renderer.setStyle(this.el.nativeElement,"transform","translatez(0)"),this.renderer.setAttribute(this.el.nativeElement,"disabled","");break;case e.ClrLoadingState.SUCCESS:this.setExplicitButtonWidth();break;case e.ClrLoadingState.ERROR:this.loadingStateChange(e.ClrLoadingState.DEFAULT)}this.clrLoadingChange.emit(t)}},n.prototype.setExplicitButtonWidth=function(){if(this.el.nativeElement&&this.el.nativeElement.getBoundingClientRect){var e=this.el.nativeElement.getBoundingClientRect();this.renderer.setStyle(this.el.nativeElement,"width",e.width+"px")}},n}();q.decorators=[{type:t.Component,args:[{selector:"button[clrLoading]",template:'\n <ng-container [ngSwitch]="state">\n <span *ngSwitchCase="buttonState.LOADING">\n <span @spinner class="spinner spinner-inline"></span>\n </span>\n <span *ngSwitchCase="buttonState.SUCCESS">\n <span\n @validated\n (@validated.done)="this.loadingStateChange(this.buttonState.DEFAULT)"\n class="spinner spinner-inline spinner-check"\n ></span>\n </span>\n <span *ngSwitchCase="buttonState.DEFAULT" @defaultButton>\n <ng-content></ng-content>\n </span>\n </ng-container>\n ',providers:[{provide:L,useExisting:q}],animations:[s.trigger("defaultButton",[s.transition(":enter",[s.style({opacity:0}),s.animate("200ms 100ms ease-in",s.style({opacity:1}))]),s.transition(":leave",[s.style({opacity:0})])]),s.trigger("spinner",[s.transition(":enter",[s.style({opacity:0}),s.animate("200ms 100ms ease-in",s.style({opacity:1}))]),s.transition(":leave",[s.style({opacity:1}),s.animate("100ms ease-out",s.style({opacity:0}))])]),s.trigger("validated",[s.transition(":enter",[s.animate("600ms",s.keyframes([s.style({transform:"scale(0,0)",offset:0}),s.style({opacity:1,offset:.2}),s.style({transform:"scale(1.2,1.2)",offset:.4}),s.style({transform:"scale(.9,.9)",offset:.6}),s.style({transform:"scale(1,1)",offset:1})]))]),s.transition(":leave",[s.style({opacity:1}),s.animate("100ms ease-out",s.style({opacity:0}))])])],host:{"[attr.disabled]":"disabled? '' : null"}}]}],q.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},q.propDecorators={disabled:[{type:t.Input,args:["disabled"]}],clrLoadingChange:[{type:t.Output,args:["clrLoadingChange"]}]};var X=[q],$=function(){};$.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[X],exports:[X]}]}];var J=function(){n.ClarityIcons.addIcons(n.ellipsisHorizontalIcon)};J.decorators=[{type:t.NgModule,args:[{exports:[$,Z]}]}],J.ctorParameters=function(){return[]};var Q=function(){};Q.decorators=[{type:t.Component,args:[{template:""}]}];var ee=function(){};ee.decorators=[{type:t.NgModule,args:[{declarations:[Q],exports:[Q],entryComponents:[Q]}]}];
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,5 +13,5 @@
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var ie=function(e,t){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function se(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ae(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function ce(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ae(arguments[t]));return e}Object.create;var le=function(){function e(e,n,r){if(void 0===r&&(r=0),this.injector=n.injector,!this.injector.get(e,null)){var i=this.injector.get(t.ComponentFactoryResolver),o=this.injector.get(t.ElementRef);n.createComponent(i.resolveComponentFactory(ne));var s=i.resolveComponentFactory(e),a=[];a[r]=[o.nativeElement];var c=n.createComponent(s,void 0,void 0,a);n.remove(0),c.instance._dynamic=!0,this.injector=c.injector}}return e.prototype.get=function(e,t){return this.injector.get(e,t)},e}(),pe=0,ue=function(){function e(){this._id="clr-form-control-"+ ++pe,this._idChange=new i.BehaviorSubject(this._id)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this._idChange.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"idChange",{get:function(){return this._idChange.asObservable()},enumerable:!1,configurable:!0}),e}();ue.decorators=[{type:t.Injectable}];var de,he=function(){function e(){this._controlChanges=new i.Subject,this._helpers=new i.Subject}return Object.defineProperty(e.prototype,"controlChanges",{get:function(){return this._controlChanges.asObservable()},enumerable:!1,configurable:!0}),e.prototype.setControl=function(e){this._controlChanges.next(e)},Object.defineProperty(e.prototype,"helpersChange",{get:function(){return this._helpers.asObservable()},enumerable:!1,configurable:!0}),e.prototype.setHelpers=function(e){this._helpers.next(e)},e}();he.decorators=[{type:t.Injectable}],e.ClrFormLayout=void 0,(de=e.ClrFormLayout||(e.ClrFormLayout={})).VERTICAL="vertical",de.HORIZONTAL="horizontal",de.COMPACT="compact";var ge,fe=function(){function t(){this.minLabelSize=1,this.maxLabelSize=12,this.layout=e.ClrFormLayout.HORIZONTAL,this.layoutValues=Object.keys(e.ClrFormLayout).map((function(t){return e.ClrFormLayout[t]})),this._labelSize=2}return Object.defineProperty(t.prototype,"labelSize",{get:function(){return this._labelSize},set:function(e){this.labelSizeIsValid(e)&&(this._labelSize=e)},enumerable:!1,configurable:!0}),t.prototype.isVertical=function(){return this.layout===e.ClrFormLayout.VERTICAL},t.prototype.isHorizontal=function(){return this.layout===e.ClrFormLayout.HORIZONTAL},t.prototype.isCompact=function(){return this.layout===e.ClrFormLayout.COMPACT},Object.defineProperty(t.prototype,"layoutClass",{get:function(){return"clr-form-"+this.layout},enumerable:!1,configurable:!0}),t.prototype.isValid=function(e){return this.layoutValues.indexOf(e)>-1},t.prototype.labelSizeIsValid=function(e){return Number.isInteger(e)&&e>=this.minLabelSize&&e<=this.maxLabelSize},t}();fe.decorators=[{type:t.Injectable}],function(e){e.NONE="NONE",e.VALID="VALID",e.INVALID="INVALID"}(ge||(ge={}));var ye=function(){function e(e){var t=this;this.ngControlService=e,this.subscriptions=[],this._statusChanges=new i.BehaviorSubject(ge.NONE),this.subscriptions.push(this.ngControlService.controlChanges.subscribe((function(e){e&&(t.control=e,t.subscriptions.push(t.control.statusChanges.subscribe((function(){t.triggerStatusChange()}))))})))}return Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this._statusChanges.asObservable()},enumerable:!1,configurable:!0}),e.prototype.triggerStatusChange=function(){if(this.control){var e=ge[this.control.status];this._statusChanges.next(this.control.touched&&["VALID","INVALID"].includes(e)?e:ge.NONE)}},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();ye.decorators=[{type:t.Injectable}],ye.ctorParameters=function(){return[{type:he}]};var be=function(){function e(e){this.layoutService=e,this.className=""}return e.prototype.controlClass=function(e,t,n){void 0===e&&(e=ge.NONE),void 0===t&&(t=!1),void 0===n&&(n="");var r=[this.className,n];switch(e){case ge.VALID:r.push("clr-success");break;case ge.INVALID:r.push("clr-error")}return t&&this.layoutService&&-1===this.className.indexOf("clr-col")&&r.push("clr-col-md-"+(this.layoutService.maxLabelSize-this.layoutService.labelSize)+" clr-col-12"),r.join(" ").trim()},e.prototype.initControlClass=function(e,t){t&&t.className&&(this.className=t.className,t.className.split(" ").forEach((function(n){n.startsWith("clr-col")&&e.removeClass(t,n)})))},e}();be.decorators=[{type:t.Injectable}],be.ctorParameters=function(){return[{type:fe,decorators:[{type:t.Optional}]}]};var me=function(){function e(){this._touched=new i.Subject}return Object.defineProperty(e.prototype,"touchedChange",{get:function(){return this._touched.asObservable()},enumerable:!1,configurable:!0}),e.prototype.markAsTouched=function(){this._touched.next()},e}();me.decorators=[{type:t.Injectable}];var ve=0,Ce=function(){function e(){this._id="clr-form-container-"+ ++ve,this._idChange=new i.BehaviorSubject(this._id)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this._idChange.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"idChange",{get:function(){return this._idChange.asObservable()},enumerable:!1,configurable:!0}),e}();Ce.decorators=[{type:t.Injectable}];var Se="helper",Ie="error",Oe="success",Ee=function(){function e(e,t){this.controlIdService=e,this.containerIdService=t,this.controlIdSuffix="abstract"}return Object.defineProperty(e.prototype,"id",{get:function(){return this.containerIdService?this.containerIdService.id+"-"+this.controlIdSuffix:this.controlIdService?this.controlIdService.id+"-"+this.controlIdSuffix:null},enumerable:!1,configurable:!0}),e}();Ee.decorators=[{type:t.Directive}],Ee.ctorParameters=function(){return[{type:ue,decorators:[{type:t.Optional}]},{type:Ce,decorators:[{type:t.Optional}]}]};var we=function(){function e(e,t,n,r,i,o){var s=this;this.vcr=e,this.wrapperType=t,this.ngControl=r,this.subscriptions=[],this.index=0,this.renderer=i,this.el=o;try{this.ngControlService=n.get(he),this.ifControlStateService=n.get(ye),this.controlClassService=n.get(be),this.markControlService=n.get(me)}catch(e){}this.controlClassService&&this.controlClassService.initControlClass(i,o.nativeElement),this.markControlService&&this.subscriptions.push(this.markControlService.touchedChange.subscribe((function(){s.markAsTouched()}))),this.ngControlService&&this.subscriptions.push(this.ngControlService.helpersChange.subscribe((function(e){s.setAriaDescribedBy(e)})))}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this.controlIdService&&(this.controlIdService.id=e)},enumerable:!1,configurable:!0}),e.prototype.triggerValidation=function(){this.ifControlStateService&&(this.ngControl&&!this.ngControl.touched&&this.markAsTouched(),this.ifControlStateService.triggerStatusChange())},e.prototype.markAsTouched=function(){this.ngControl.control.markAsTouched(),this.ngControl.control.updateValueAndValidity()},e.prototype.getProviderFromContainer=function(e,t){try{return this._containerInjector.get(e,t)}catch(e){return t}},e.prototype.ngOnInit=function(){this._containerInjector=new le(this.wrapperType,this.vcr,this.index),this.controlIdService=this._containerInjector.get(ue);try{this.containerIdService=this._containerInjector.get(Ce)}catch(e){}this._id?this.controlIdService.id=this._id:this._id=this.controlIdService.id,this.ngControlService&&this.ngControlService.setControl(this.ngControl)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.setAriaDescribedBy=function(e){if(e.show){var t=this.getAriaDescribedById(e);if(null!==t)return void this.renderer.setAttribute(this.el.nativeElement,"aria-describedby",t)}this.renderer.removeAttribute(this.el.nativeElement,"aria-describedby")},e.prototype.getAriaDescribedById=function(e){var t=Se;return e.showInvalid?t=Ie:e.showValid&&(t=Oe),this.containerIdService?this.containerIdService.id.concat("-",t):this.controlIdService?this.controlIdService.id.concat("-",t):null},e}();we.decorators=[{type:t.Directive}],we.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Type},{type:t.Injector},{type:a.NgControl},{type:t.Renderer2},{type:t.ElementRef}]},we.propDecorators={id:[{type:t.HostBinding},{type:t.Input}],triggerValidation:[{type:t.HostListener,args:["blur"]}]};var _e=function(){function e(e,t,n,r,i){this.controlIdService=e,this.layoutService=t,this.ngControlService=n,this.renderer=r,this.el=i,this.subscriptions=[],this.enableGrid=!0}return Object.defineProperty(e.prototype,"labelText",{get:function(){return this.el.nativeElement&&this.el.nativeElement.textContent},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;(this.controlIdService||this.ngControlService)&&this.renderer.addClass(this.el.nativeElement,"clr-control-label"),this.enableGrid&&this.layoutService&&!this.layoutService.isVertical()&&this.el.nativeElement&&this.el.nativeElement.className.indexOf("clr-col")<0&&(this.renderer.addClass(this.el.nativeElement,"clr-col-12"),this.renderer.addClass(this.el.nativeElement,"clr-col-md-"+this.layoutService.labelSize)),this.controlIdService&&!this.forAttr&&this.subscriptions.push(this.controlIdService.idChange.subscribe((function(t){return e.forAttr=t})))},e.prototype.disableGrid=function(){this.enableGrid=!1},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();_e.decorators=[{type:t.Directive,args:[{selector:"label"}]}],_e.ctorParameters=function(){return[{type:ue,decorators:[{type:t.Optional}]},{type:fe,decorators:[{type:t.Optional}]},{type:he,decorators:[{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]},_e.propDecorators={forAttr:[{type:t.HostBinding,args:["attr.for"]},{type:t.Input,args:["for"]}]};var Pe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.controlIdService=t,r.containerIdService=n,r.controlIdSuffix=Oe,r}return oe(t,e),t}(Ee);Pe.decorators=[{type:t.Component,args:[{selector:"clr-control-success",template:" <ng-content></ng-content> ",host:{"[class.clr-subtext]":"true","[attr.id]":"id"}}]}],Pe.ctorParameters=function(){return[{type:ue,decorators:[{type:t.Optional}]},{type:Ce,decorators:[{type:t.Optional}]}]};var De=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.controlIdService=t,r.containerIdService=n,r.controlIdSuffix=Ie,r}return oe(t,e),t}(Ee);De.decorators=[{type:t.Component,args:[{selector:"clr-control-error",template:" <ng-content></ng-content> ",host:{"[class.clr-subtext]":"true","[attr.id]":"id"}}]}],De.ctorParameters=function(){return[{type:ue,decorators:[{type:t.Optional}]},{type:Ce,decorators:[{type:t.Optional}]}]};var Te=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.controlIdService=t,r.containerIdService=n,r.controlIdSuffix=Se,r}return oe(t,e),t}(Ee);Te.decorators=[{type:t.Component,args:[{selector:"clr-control-helper",template:" <ng-content></ng-content> ",host:{"[class.clr-subtext]":"true","[attr.id]":"id"}}]}],Te.ctorParameters=function(){return[{type:ue,decorators:[{type:t.Optional}]},{type:Ce,decorators:[{type:t.Optional}]}]};var xe=function(){function e(e,t,n,r){var i=this;this.ifControlStateService=e,this.layoutService=t,this.controlClassService=n,this.ngControlService=r,this.subscriptions=[],this._dynamic=!1,this.subscriptions.push(this.ifControlStateService.statusChanges.subscribe((function(e){i.state=e,i.updateHelpers()}))),this.subscriptions.push(this.ngControlService.controlChanges.subscribe((function(e){i.control=e})))}return Object.defineProperty(e.prototype,"showHelper",{get:function(){return!1!=!!this.controlHelperComponent&&(!!this.controlHelperComponent&&this.state===ge.NONE||!1==!!this.controlSuccessComponent&&this.state===ge.VALID||!1==!!this.controlErrorComponent&&this.state===ge.INVALID)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showValid",{get:function(){return this.state===ge.VALID&&!!this.controlSuccessComponent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInvalid",{get:function(){return this.state===ge.INVALID&&!!this.controlErrorComponent},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.updateHelpers()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.controlClass=function(){return this.controlSuccessComponent||this.state!==ge.VALID?this.controlClassService.controlClass(this.state,this.addGrid()):this.controlClassService.controlClass(ge.NONE,this.addGrid())},e.prototype.addGrid=function(){return this.layoutService&&!this.layoutService.isVertical()},e.prototype.updateHelpers=function(){this.ngControlService&&this.ngControlService.setHelpers({show:this.showInvalid||this.showHelper||this.showValid,showInvalid:this.showInvalid,showHelper:this.showHelper,showValid:this.showValid})},e}();xe.decorators=[{type:t.Directive}],xe.ctorParameters=function(){return[{type:ye},{type:fe,decorators:[{type:t.Optional}]},{type:be},{type:he}]},xe.propDecorators={label:[{type:t.ContentChild,args:[_e,{static:!1}]}],controlSuccessComponent:[{type:t.ContentChild,args:[Pe]}],controlErrorComponent:[{type:t.ContentChild,args:[De]}],controlHelperComponent:[{type:t.ContentChild,args:[Te]}]};var Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t}(xe);Ae.decorators=[{type:t.Component,args:[{selector:"clr-control-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper">\n <ng-content></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[ye,he,ue,be]}]}];var ke=function(e){function t(t,n,r,i,o){var s=e.call(this,t,Ae,n,r,i,o)||this;return s.index=1,s}return oe(t,e),t}(we);ke.decorators=[{type:t.Directive,args:[{selector:"[clrControl]",host:{"[class.clr-input]":"true"}}]}],ke.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var Re=function(){function e(e,t){this.layoutService=e,this.markControlService=t}return Object.defineProperty(e.prototype,"labelSize",{set:function(e){var t=parseInt(e,10)||2;this.layoutService.labelSize=t},enumerable:!1,configurable:!0}),e.prototype.markAsTouched=function(){this.markControlService.markAsTouched()},e.prototype.onFormSubmit=function(){this.markAsTouched()},e}();Re.decorators=[{type:t.Directive,args:[{selector:"[clrForm]",providers:[fe,me],host:{"[class.clr-form]":"true","[class.clr-form-horizontal]":"layoutService.isHorizontal()","[class.clr-form-compact]":"layoutService.isCompact()"}}]}],Re.ctorParameters=function(){return[{type:fe},{type:me}]},Re.propDecorators={labelSize:[{type:t.Input,args:["clrLabelSize"]}],labels:[{type:t.ContentChildren,args:[_e,{descendants:!0}]}],onFormSubmit:[{type:t.HostListener,args:["submit"]}]};var Le=function(){function e(e,t){var n=this;this.ifControlStateService=e,this.ngControlService=t,this.subscriptions=[],this.displayedContent=!1,t&&this.subscriptions.push(this.ngControlService.controlChanges.subscribe((function(e){n.control=e}))),e&&this.subscriptions.push(this.ifControlStateService.statusChanges.subscribe((function(e){n.handleState(e)})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.handleState=function(e){},e}();Le.decorators=[{type:t.Directive}],Le.ctorParameters=function(){return[{type:ye,decorators:[{type:t.Optional}]},{type:he,decorators:[{type:t.Optional}]}]};var je=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;if(o.template=r,o.container=i,!o.ifControlStateService)throw new Error("clrIfError can only be used within a form control container element like clr-input-container");return o}return oe(t,e),t.prototype.handleState=function(e){this.error&&this.control?this.displayError(this.control.hasError(this.error)):this.displayError(ge.INVALID===e)},t.prototype.displayError=function(e){this.container&&(e&&!1===this.displayedContent?(this.container.createEmbeddedView(this.template,{error:this.control.getError(this.error)}),this.displayedContent=!0):e||(this.container.clear(),this.displayedContent=!1))},t}(Le);je.decorators=[{type:t.Directive,args:[{selector:"[clrIfError]"}]}],je.ctorParameters=function(){return[{type:ye,decorators:[{type:t.Optional}]},{type:he,decorators:[{type:t.Optional}]},{type:t.TemplateRef},{type:t.ViewContainerRef}]},je.propDecorators={error:[{type:t.Input,args:["clrIfError"]}]};var Ne=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;if(o.template=r,o.container=i,!t)throw new Error("ClrIfSuccess can only be used within a form control container element like clr-input-container");return o}return oe(t,e),t.prototype.handleState=function(e){var t=ge.VALID===e;t&&!this.displayedContent?this.container.createEmbeddedView(this.template):!t&&this.container&&this.container.clear(),this.displayedContent=t},t}(Le);Ne.decorators=[{type:t.Directive,args:[{selector:"[clrIfSuccess]"}]}],Ne.ctorParameters=function(){return[{type:ye,decorators:[{type:t.Optional}]},{type:he,decorators:[{type:t.Optional}]},{type:t.TemplateRef},{type:t.ViewContainerRef}]};var Fe=function(){function e(e){this.layoutService=e}return e.prototype.ngOnInit=function(){this.layout&&this.layoutService.isValid(this.layout)&&(this.layoutService.layout=this.layout)},e}();Fe.decorators=[{type:t.Directive,args:[{selector:"[clrForm][clrLayout]"}]}],Fe.ctorParameters=function(){return[{type:fe}]},Fe.propDecorators={layout:[{type:t.Input,args:["clrLayout"]}]};var Me=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};Me.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y],declarations:[_e,De,Pe,Te,je,Ne,Re,Fe,Ae,ke],exports:[_e,De,Pe,Te,je,Ne,Re,Fe,Ae,ke],entryComponents:[Ae]}]}],Me.ctorParameters=function(){return[]};var Ve=new t.InjectionToken("IS_TOGGLE");function Be(){return new i.BehaviorSubject(!1)}var ze={provide:Ve,useFactory:Be},He=function(){function e(e){var t=this;this._dynamic=!1,this.toggle=!1,this.subscriptions=[],this.subscriptions.push(e.subscribe((function(e){t.toggle=e})))}return e.prototype.ngOnInit=function(){this.label&&this.label.disableGrid()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();He.decorators=[{type:t.Component,args:[{selector:"clr-checkbox-wrapper,clr-toggle-wrapper",template:'\n <ng-content select="[clrCheckbox],[clrToggle]"></ng-content>\n <ng-content select="label"></ng-content>\n <label *ngIf="!label"></label>\n ',host:{"[class.clr-checkbox-wrapper]":"!toggle","[class.clr-toggle-wrapper]":"toggle"},providers:[ue,ze]}]}],He.ctorParameters=function(){return[{type:i.BehaviorSubject,decorators:[{type:t.Inject,args:[Ve]}]}]},He.propDecorators={label:[{type:t.ContentChild,args:[_e,{static:!0}]}]};var Ge=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,He,n,r,i,o)||this;return a.toggle=s,a}return oe(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this);var t=this.getProviderFromContainer(Ve,null);t&&null!==this.toggle&&t.next(!0)},t}(we);Ge.decorators=[{type:t.Directive,args:[{selector:"[clrCheckbox],[clrToggle]"}]}],Ge.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef},{type:String,decorators:[{type:t.Attribute,args:["clrToggle"]}]}]};var We=function(e){function t(t,n,r,i){var o=e.call(this,i,t,n,r)||this;return o.layoutService=t,o.controlClassService=n,o.ngControlService=r,o.ifControlStateService=i,o.inline=!1,o}return oe(t,e),Object.defineProperty(t.prototype,"clrInline",{get:function(){return this.inline},set:function(e){this.inline="string"==typeof e?"false"!==e:!!e},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.setAriaRoles()},t.prototype.setAriaRoles=function(){this.role=this.checkboxes.length?"group":null},t}(xe);We.decorators=[{type:t.Component,args:[{selector:"clr-checkbox-container,clr-toggle-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [class.clr-control-inline]="clrInline" [ngClass]="controlClass()">\n <ng-content select="clr-checkbox-wrapper,clr-toggle-wrapper"></ng-content>\n <div class="clr-subtext-wrapper">\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n status="success"\n shape="check-circle"\n aria-hidden="true"\n ></cds-icon>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()","[attr.role]":"role"},providers:[ye,he,be,Ce]}]}],We.ctorParameters=function(){return[{type:fe,decorators:[{type:t.Optional}]},{type:be},{type:he},{type:ye}]},We.propDecorators={checkboxes:[{type:t.ContentChildren,args:[Ge,{descendants:!0}]}],clrInline:[{type:t.Input}]};var Ue=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};Ue.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,Me,re],declarations:[Ge,We,He],exports:[Me,Ge,We,He],entryComponents:[He]}]}],Ue.ctorParameters=function(){return[]};var Ye=0,Ke=new t.InjectionToken("IF_ACTIVE_ID");function Ze(){return++Ye}var qe={provide:Ke,useFactory:Ze},Xe=function(){function e(){this._currentChange=new i.Subject}return Object.defineProperty(e.prototype,"currentChange",{get:function(){return this._currentChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current!==e&&(this._current=e,this._currentChange.next(e))},enumerable:!1,configurable:!0}),e}();Xe.decorators=[{type:t.Injectable}];var $e=function(){function e(e,n,r,i){var o=this;this.ifActiveService=e,this.id=n,this.template=r,this.container=i,this.wasActive=!1,this.activeChange=new t.EventEmitter(!1),this.checkAndUpdateView(e.current),this.subscription=this.ifActiveService.currentChange.subscribe((function(e){o.checkAndUpdateView(e)}))}return e.prototype.checkAndUpdateView=function(e){var t=e===this.id;t!==this.wasActive&&(this.updateView(t),this.activeChange.emit(t),this.wasActive=t)},Object.defineProperty(e.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},set:function(e){e&&(this.ifActiveService.current=this.id)},enumerable:!1,configurable:!0}),e.prototype.updateView=function(e){e?this.container.createEmbeddedView(this.template):this.container.clear()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}();$e.decorators=[{type:t.Directive,args:[{selector:"[clrIfActive]"}]}],$e.ctorParameters=function(){return[{type:Xe},{type:Number,decorators:[{type:t.Inject,args:[Ke]}]},{type:t.TemplateRef},{type:t.ViewContainerRef}]},$e.propDecorators={active:[{type:t.Input,args:["clrIfActive"]}],activeChange:[{type:t.Output,args:["clrIfActiveChange"]}]};var Je=function(){function e(e,n,r){var i=this;this.toggleService=e,this.template=n,this.container=r,this.openChange=new t.EventEmitter(!1),this.subscription=this.toggleService.openChange.subscribe((function(e){i.updateView(e),i.openChange.emit(e)}))}return Object.defineProperty(e.prototype,"open",{get:function(){return this.toggleService.open},set:function(e){this.toggleService.open=e},enumerable:!1,configurable:!0}),e.prototype.updateView=function(e){e?this.container.createEmbeddedView(this.template):this.container.clear()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}();Je.decorators=[{type:t.Directive,args:[{selector:"[clrIfOpen]"}]}],Je.ctorParameters=function(){return[{type:v},{type:t.TemplateRef},{type:t.ViewContainerRef}]},Je.propDecorators={open:[{type:t.Input,args:["clrIfOpen"]}],openChange:[{type:t.Output,args:["clrIfOpenChange"]}]};var Qe=function(){function t(){this.expandable=0,this._loading=!1,this._expanded=!1,this._expandChange=new i.Subject}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(e){(e=!!e)!==this._loading&&(this._loading=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(e){(e=!!e)!==this._expanded&&(this._expanded=e,this._expandChange.next(e))},enumerable:!1,configurable:!0}),t.prototype.toggle=function(){this.expanded=!this._expanded},Object.defineProperty(t.prototype,"expandChange",{get:function(){return this._expandChange.asObservable()},enumerable:!1,configurable:!0}),t.prototype.loadingStateChange=function(t){switch(t){case e.ClrLoadingState.LOADING:this.loading=!0;break;default:this.loading=!1}},t}();Qe.decorators=[{type:t.Injectable}];var et=function(){function e(e,n,r,i,o){var s=this;this.template=e,this.container=n,this.el=r,this.renderer=i,this.expand=o,this._expanded=!1,this.expandedChange=new t.EventEmitter(!0),this._subscriptions=[],this._subscriptions.push(o.expandChange.subscribe((function(){s.updateView(),s.expandedChange.emit(s.expand.expanded)})))}return Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){"boolean"==typeof e&&(this.expand.expanded=e,this._expanded=e)},enumerable:!1,configurable:!0}),e.prototype.updateView=function(){if(!this.expand.expanded||0===this.container.length)if(this.template)this.expand.expanded?this.container.createEmbeddedView(this.template):this.container.clear();else try{this.expand.expanded?this.renderer.setStyle(this.el.nativeElement,"display",null):this.renderer.setStyle(this.el.nativeElement,"display","none")}catch(e){}},e.prototype.ngOnInit=function(){this.expand.expandable++,this.updateView()},e.prototype.ngOnDestroy=function(){this.expand.expandable--,this._subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();et.decorators=[{type:t.Directive,args:[{selector:"[clrIfExpanded]"}]}],et.ctorParameters=function(){return[{type:t.TemplateRef,decorators:[{type:t.Optional}]},{type:t.ViewContainerRef},{type:t.ElementRef},{type:t.Renderer2},{type:Qe}]},et.propDecorators={expanded:[{type:t.Input,args:["clrIfExpanded"]}],expandedChange:[{type:t.Output,args:["clrIfExpandedChange"]}]};var tt=[$e,Je,et],nt=function(){};nt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[tt],exports:[tt]}]}];var rt=function(){function e(){this._previousFocusTraps=[]}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._previousFocusTraps.push(this._current),this._current=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nbFocusTrappers",{get:function(){return this._previousFocusTraps.length},enumerable:!1,configurable:!0}),e.prototype.activatePreviousTrapper=function(){this._current=this._previousFocusTraps.pop()},e}();rt.ɵprov=l.ɵɵdefineInjectable({factory:function(){return new rt},token:rt,providedIn:"root"}),rt.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var it=function(){function e(e,t,n,i,o){this.el=e,this.injector=t,this.focusTrapsTracker=n,this.renderer=i,this.platformId=o,this.localFocusEscaped=!1,this._config={strict:!0},this.document=this.injector.get(r.DOCUMENT),this.focusTrapsTracker.current=this}return Object.defineProperty(e.prototype,"config",{set:function(e){this._config=Object.assign(this._config,""===e?{}:e)},enumerable:!1,configurable:!0}),e.prototype.onFocusIn=function(e){var t=this.el.nativeElement;this.focusTrapsTracker.current!==this||!r.isPlatformBrowser(this.platformId)||this.localFocusEscaped||t.contains(e.target)||(e.target===this.topReboundEl&&t.contains(e.relatedTarget)?(this.focusLastFocusable(),this.focusTrapElIfOutside()):e.target===this.bottomReboundEl&&t.contains(e.relatedTarget)?(this.focusFirstFocusable(),this.focusTrapElIfOutside()):this._config.strict?this.el.nativeElement.focus():this.localFocusEscaped=!0)},e.prototype.createFocusableOffScreenEl=function(){var e=this.document.createElement("span");return this.renderer.setAttribute(e,"tabindex","0"),this.renderer.addClass(e,"offscreen-focus-rebounder"),e},e.prototype.addReboundEls=function(){if(r.isPlatformBrowser(this.platformId)){this.topReboundEl=this.createFocusableOffScreenEl(),this.bottomReboundEl=this.createFocusableOffScreenEl();var e=this.el.nativeElement;this.renderer.insertBefore(e.parentElement,this.topReboundEl,e),e.nextSibling?this.renderer.insertBefore(e.parentNode,this.bottomReboundEl,e.nextSibling):this.renderer.appendChild(e.parentNode,this.bottomReboundEl)}},e.prototype.removeReboundEls=function(){r.isPlatformBrowser(this.platformId)&&this.topReboundEl&&this.bottomReboundEl&&(this.parentElement.removeChild(this.topReboundEl),this.parentElement.removeChild(this.bottomReboundEl),delete this.topReboundEl,delete this.bottomReboundEl)},e.prototype.setPreviousFocus=function(){this.previousActiveElement&&this.previousActiveElement.focus&&this.previousActiveElement.focus()},e.prototype.ngOnInit=function(){r.isPlatformBrowser(this.platformId)&&(this.renderer.setAttribute(this.el.nativeElement,"tabindex","-1"),this.el.nativeElement.focus())},e.prototype.ngAfterViewInit=function(){r.isPlatformBrowser(this.platformId)&&(this.previousActiveElement=this.document.activeElement,this.parentElement=this.el.nativeElement.parentElement),this.addReboundEls()},Object.defineProperty(e.prototype,"potentiallyFocusableEls",{get:function(){return ce(this.el.nativeElement.querySelectorAll('[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), [contenteditable="true"]:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]) '))},enumerable:!1,configurable:!0}),e.prototype.focusFirstFocusable=function(){for(var e=0;e<this.potentiallyFocusableEls.length&&(this.firstFocusableEl=this.focusElement(this.potentiallyFocusableEls[e]),!this.firstFocusableEl);e++);},e.prototype.focusLastFocusable=function(){for(var e=this.potentiallyFocusableEls.length-1;e>=0&&(this.lastFocusableEl=this.focusElement(this.potentiallyFocusableEls[e]),!this.lastFocusableEl);e--);},e.prototype.focusTrapElIfOutside=function(){this.el.nativeElement.contains(document.activeElement)||this.el.nativeElement.focus()},e.prototype.focusElement=function(e){return e&&e.focus&&(e.focus(),document.activeElement===e)?e:null},e.prototype.ngOnDestroy=function(){this.removeReboundEls(),this.setPreviousFocus(),this.focusTrapsTracker.activatePreviousTrapper()},e}();it.decorators=[{type:t.Directive,args:[{selector:"[clrFocusTrap]"}]}],it.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Injector},{type:rt},{type:t.Renderer2},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},it.propDecorators={config:[{type:t.Input,args:["clrFocusTrap"]}],onFocusIn:[{type:t.HostListener,args:["document:focusin",["$event"]]}]};var ot=[it],st=function(){};st.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[ot],exports:[ot]}]}];var at=/d+.+m+.+y+/i,ct=/m+.+d+.+y+/i,lt=/d+|m+|y+/i,pt=/\d+/g,ut=/Mobi/i,dt=/\u200f/g,ht="YYYY",gt="MM",ft="DD",yt={name:"LITTLE_ENDIAN",format:[ft,gt,ht]},bt={name:"MIDDLE_ENDIAN",format:[gt,ft,ht]},mt={name:"BIG_ENDIAN",format:[ht,gt,ft]};function vt(e,t){return new Date(e,t+1,0).getDate()}var Ct=function(){function e(e,t,n,r,i,o){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===o&&(o=!1),this.dayModel=e,this.isTodaysDate=t,this.isExcluded=n,this.isDisabled=r,this.isSelected=i,this.isFocusable=o}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.isFocusable?0:-1},enumerable:!1,configurable:!0}),e}(),St=function(){function e(e,t,n){this.year=e,this.month=t,this.date=n}return e.prototype.isEqual=function(e){return!!e&&(this.year===e.year&&this.month===e.month&&this.date===e.date)},e.prototype.toDate=function(){return new Date(this.year,this.month,this.date)},e.prototype.incrementBy=function(t){var n=new Date(this.year,this.month,this.date+t);return new e(n.getFullYear(),n.getMonth(),n.getDate())},e.prototype.clone=function(){return new e(this.year,this.month,this.date)},e.prototype.toComparisonString=function(){return""+this.year+this.pad(this.month)+this.pad(this.date)},e.prototype.pad=function(e){return e<10?"0"+e:""+e},e.prototype.toDateString=function(){return this.toDate().toLocaleDateString()},e}(),It=function(){function e(e,t,n,r,i,o){this.calendar=e,this.selectedDay=t,this.focusableDay=n,this.today=r,this.firstDayOfWeek=i,this.excludedDates=o,this.currMonthDayViews=[],this.initializeCalendarView()}return Object.defineProperty(e.prototype,"calendarView",{get:function(){return this._calendarView},enumerable:!1,configurable:!0}),e.prototype.initializeCalendarView=function(){var e=this.calendar.previousMonth(),t=this.calendar.nextMonth(),n=this.numDaysFromPrevMonthInCalView(this.calendar.year,this.calendar.month),r=42-(this.calendar.days.length+n),i=[],o=[];n>0&&(i=this.generateDayViewModels(e.days.slice(-1*n),!0,!1)),this.currMonthDayViews=this.generateDayViewModels(this.calendar.days,!1,!0),r>0&&(o=this.generateDayViewModels(t.days.slice(0,r),!0,!1)),this._calendarView=this.generateCalendarView(i,this.currMonthDayViews,o),this.initializeSelectedDay(),this.initializeFocusableDay()},e.prototype.isDateExcluded=function(e){var t=this.excludedDates,n=t.minDate,r=t.maxDate,i=n.toComparisonString(),o=r.toComparisonString(),s=e.toComparisonString();return!(s>=i&&s<=o)},e.prototype.generateDayViewModels=function(e,t,n){var r=this,i=e.map((function(e){return new Ct(e,!1,t,r.isDateExcluded(e),!1,!1)}));return n&&this.calendar.isDayInCalendar(this.today)&&(i[this.today.date-1].isTodaysDate=!0),i},e.prototype.numDaysFromPrevMonthInCalView=function(e,t){var n=new Date(e,t,1).getDay();return n>=this.firstDayOfWeek?n-this.firstDayOfWeek:7+n-this.firstDayOfWeek},e.prototype.isDayInCalendarView=function(e){return!!this.calendar.isDayInCalendar(e)},e.prototype.generateCalendarView=function(e,t,n){for(var r=ce(e,t,n),i=[],o=0;o<6;o++)i[o]=r.slice(7*o,7*(o+1));return i},e.prototype.initializeSelectedDay=function(){this.selectedDay&&this.isDayInCalendarView(this.selectedDay)&&(this.currMonthDayViews[this.selectedDay.date-1].isSelected=!0)},e.prototype.initializeFocusableDay=function(){this.focusableDay&&this.isDayInCalendarView(this.focusableDay)?this.setFocusableFlag(this.focusableDay,!0):this.selectedDay&&this.isDayInCalendarView(this.selectedDay)?(this.setFocusableFlag(this.selectedDay,!0),this.focusableDay=this.selectedDay.clone()):this.isDayInCalendarView(this.today)?(this.setFocusableFlag(this.today,!0),this.focusableDay=this.today.clone()):(this.focusableDay=new St(this.calendar.year,this.calendar.month,15),this.setFocusableFlag(this.focusableDay,!0))},e.prototype.setFocusableFlag=function(e,t){e&&(this.currMonthDayViews[e.date-1].isFocusable=t)},e.prototype.updateFocusableDay=function(e){this.setFocusableFlag(this.focusableDay,!1),this.setFocusableFlag(e,!0),this.focusableDay=e},e}(),Ot=function(){function e(e,t){this.year=e,this.month=t,this.initializeDaysInCalendar()}return e.prototype.initializeDaysInCalendar=function(){var e=this,t=vt(this.year,this.month);this.days=Array(t).fill(null).map((function(t,n){return new St(e.year,e.month,n+1)}))},e.prototype.isEqual=function(e){return!!e&&(this.year===e.year&&this.month===e.month)},e.prototype.isDayInCalendar=function(e){return!!e&&(this.year===e.year&&this.month===e.month)},e.prototype.previousMonth=function(){return 0===this.month?new e(this.year-1,11):new e(this.year,this.month-1)},e.prototype.nextMonth=function(){return 11===this.month?new e(this.year+1,0):new e(this.year,this.month+1)},e}(),Et=function(){function e(){this._todaysFullDate=new Date,this._selectedDayChange=new i.Subject,this._displayedCalendarChange=new i.Subject,this._focusOnCalendarChange=new i.Subject,this._focusedDayChange=new i.Subject}return Object.defineProperty(e.prototype,"displayedCalendar",{get:function(){return this._displayedCalendar},enumerable:!1,configurable:!0}),e.prototype.setDisplayedCalendar=function(e){this._displayedCalendar.isEqual(e)||(this._displayedCalendar=e,this._displayedCalendarChange.next())},e.prototype.initializeTodaysDate=function(){this._todaysFullDate=new Date,this._today=new St(this._todaysFullDate.getFullYear(),this._todaysFullDate.getMonth(),this._todaysFullDate.getDate())},Object.defineProperty(e.prototype,"today",{get:function(){return this._today},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedDayChange",{get:function(){return this._selectedDayChange.asObservable()},enumerable:!1,configurable:!0}),e.prototype.notifySelectedDayChanged=function(e){this.selectedDay=e,this._selectedDayChange.next(e)},e.prototype.initializeCalendar=function(){this.focusedDay=null,this.initializeTodaysDate(),this.selectedDay?this._displayedCalendar=new Ot(this.selectedDay.year,this.selectedDay.month):this._displayedCalendar=new Ot(this.today.year,this.today.month)},e.prototype.changeMonth=function(e){this.setDisplayedCalendar(new Ot(this._displayedCalendar.year,e))},e.prototype.changeYear=function(e){this.setDisplayedCalendar(new Ot(e,this._displayedCalendar.month))},e.prototype.moveToNextMonth=function(){this.setDisplayedCalendar(this._displayedCalendar.nextMonth())},e.prototype.moveToPreviousMonth=function(){this.setDisplayedCalendar(this._displayedCalendar.previousMonth())},e.prototype.moveToCurrentMonth=function(){this.displayedCalendar.isDayInCalendar(this.today)||this.setDisplayedCalendar(new Ot(this.today.year,this.today.month)),this._focusOnCalendarChange.next()},e.prototype.incrementFocusDay=function(e){this.focusedDay=this.focusedDay.incrementBy(e),this._displayedCalendar.isDayInCalendar(this.focusedDay)?this._focusedDayChange.next(this.focusedDay):this.setDisplayedCalendar(new Ot(this.focusedDay.year,this.focusedDay.month)),this._focusOnCalendarChange.next()},Object.defineProperty(e.prototype,"displayedCalendarChange",{get:function(){return this._displayedCalendarChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusOnCalendarChange",{get:function(){return this._focusOnCalendarChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusedDayChange",{get:function(){return this._focusedDayChange.asObservable()},enumerable:!1,configurable:!0}),e}();Et.decorators=[{type:t.Injectable}];var wt=function(){function e(e,t){this._ngZone=e,this.platformId=t}return e.prototype.focusCell=function(e){var t=this;this._ngZone.runOutsideAngular((function(){t.ngZoneIsStableInBrowser().subscribe((function(){var t=e.nativeElement.querySelector('[tabindex="0"]');t&&t.focus()}))}))},e.prototype.focusInput=function(e){var t=this;this._ngZone.runOutsideAngular((function(){return t.ngZoneIsStableInBrowser().subscribe((function(){return e.focus()}))}))},e.prototype.elementIsFocused=function(e){return r.isPlatformBrowser(this.platformId)&&document.activeElement===e},e.prototype.ngZoneIsStableInBrowser=function(){var e=this;return this._ngZone.onStable.asObservable().pipe(o.first(),o.filter((function(){return r.isPlatformBrowser(e.platformId)})))},e}();wt.decorators=[{type:t.Injectable}],wt.ctorParameters=function(){return[{type:t.NgZone},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var _t=function(){function e(e){this.locale=e,this._firstDayOfWeek=0,this.initializeLocaleData()}return Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeDays",{get:function(){return this._localeDays},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeDaysNarrow",{get:function(){return this._localeDays.map((function(e){return e.narrow}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeMonthsAbbreviated",{get:function(){return this._localeMonthsAbbreviated},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeMonthsWide",{get:function(){return this._localeMonthsWide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeDateFormat",{get:function(){return this._localeDateFormat},enumerable:!1,configurable:!0}),e.prototype.initializeLocaleData=function(){this.initializeFirstDayOfWeek(),this.initializeLocaleDateFormat(),this.initializeLocaleMonthsAbbreviated(),this.initializeLocaleMonthsWide(),this.initializeLocaleDays()},e.prototype.initializeLocaleDays=function(){for(var e=[],t=r.getLocaleDayNames(this.locale,r.FormStyle.Standalone,r.TranslationWidth.Wide).slice(),n=r.getLocaleDayNames(this.locale,r.FormStyle.Standalone,r.TranslationWidth.Narrow).slice(),i=this.firstDayOfWeek,o=0;o<7;o++)e.push({day:t[o],narrow:n[o]});if(i>0){var s=e.splice(0,i);e.push.apply(e,ce(s))}this._localeDays=e},e.prototype.initializeLocaleMonthsAbbreviated=function(){this._localeMonthsAbbreviated=r.getLocaleMonthNames(this.locale,r.FormStyle.Standalone,r.TranslationWidth.Abbreviated).slice()},e.prototype.initializeLocaleMonthsWide=function(){this._localeMonthsWide=r.getLocaleMonthNames(this.locale,r.FormStyle.Standalone,r.TranslationWidth.Wide).slice()},e.prototype.initializeFirstDayOfWeek=function(){this._firstDayOfWeek=r.getLocaleFirstDayOfWeek(this.locale)},e.prototype.initializeLocaleDateFormat=function(){this._localeDateFormat=r.getLocaleDateFormat(this.locale,r.FormatWidth.Short)},e}();_t.decorators=[{type:t.Injectable}],_t.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]};var Pt=function(){function e(e){this._localeHelperService=e,this.disabledDates={minDate:new St(0,0,1),maxDate:new St(9999,11,31)},this.cldrLocaleDateFormat="dd/MM/y",this.localeDisplayFormat=yt,this.delimiters=["/","/"],this.cldrLocaleDateFormat=this._localeHelperService.localeDateFormat,this.initializeLocaleDisplayFormat()}return e.prototype.setMinDate=function(e){if(e){var t=ae(e.split("-").map((function(e){return parseInt(e,10)})),3),n=t[0],r=t[1],i=t[2];this.disabledDates.minDate=new St(n,r-1,i)}else this.disabledDates.minDate=new St(0,0,1)},e.prototype.setMaxDate=function(e){if(e){var t=ae(e.split("-").map((function(e){return parseInt(e,10)})),3),n=t[0],r=t[1],i=t[2];this.disabledDates.maxDate=new St(n,r-1,i)}else this.disabledDates.maxDate=new St(9999,11,31)},e.prototype.initializeLocaleDisplayFormat=function(){var e=this.cldrLocaleDateFormat.toLocaleLowerCase();at.test(e)?this.localeDisplayFormat=yt:ct.test(e)?this.localeDisplayFormat=bt:this.localeDisplayFormat=mt,this.extractDelimiters()},e.prototype.extractDelimiters=function(){if(this.cldrLocaleDateFormat){var e=this.cldrLocaleDateFormat.replace(dt,"").split(lt);e&&4===e.length?this.delimiters=[e[1],e[2]]:console.error("Unexpected date format received. Delimiters extracted: ",e)}},e.prototype.toLocaleDisplayFormatString=function(e){if(e){if(isNaN(e.getTime()))return"";var t=e.getDate(),n=e.getMonth()+1,r=t>9?t.toString():"0"+t,i=n>9?n.toString():"0"+n;return this.localeDisplayFormat===yt?r+this.delimiters[0]+i+this.delimiters[1]+e.getFullYear():this.localeDisplayFormat===bt?i+this.delimiters[0]+r+this.delimiters[1]+e.getFullYear():e.getFullYear()+this.delimiters[0]+i+this.delimiters[1]+r}return""},Object.defineProperty(e.prototype,"placeholderText",{get:function(){var e=this.localeDisplayFormat.format;return e[0]+this.delimiters[0]+e[1]+this.delimiters[1]+e[2]},enumerable:!1,configurable:!0}),e.prototype.isValidMonth=function(e){return e>-1&&e<12},e.prototype.isValidDate=function(e,t,n){return n>0&&n<=vt(e,t)},e.prototype.validateAndGetDate=function(e,t,n){var r=+e,i=+t-1,o=+n;if(!this.isValidMonth(i)||!this.isValidDate(r,i,o))return null;var s=function(e){if(e>9999||e>100&&e<999||e<10)return-1;if(e>999)return e;var t=(new Date).getFullYear(),n=e+100*Math.floor(t/100);return n>t+20&&(n-=100),n}(r);return-1!==s?new Date(s,i,o):null},e.prototype.getDateValueFromDateString=function(e){if(!e)return null;var t=e.match(pt);if(!t||3!==t.length)return null;var n=ae(t,3),r=n[0],i=n[1],o=n[2];return this.localeDisplayFormat===yt?this.validateAndGetDate(o,i,r):this.localeDisplayFormat===bt?this.validateAndGetDate(o,r,i):this.validateAndGetDate(r,i,o)},e}();Pt.decorators=[{type:t.Injectable}],Pt.ctorParameters=function(){return[{type:_t}]};var Dt=function(){function e(e,t,n,r,i){this._localeHelperService=e,this._dateNavigationService=t,this._datepickerFocusService=n,this._dateIOService=r,this._elRef=i,this._subs=[],this.generateCalendarView(),this.initializeSubscriptions()}return Object.defineProperty(e.prototype,"localeDays",{get:function(){return this._localeHelperService.localeDays},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this._dateNavigationService.displayedCalendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedDay",{get:function(){return this._dateNavigationService.selectedDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusedDay",{get:function(){return this._dateNavigationService.focusedDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"today",{get:function(){return this._dateNavigationService.today},enumerable:!1,configurable:!0}),e.prototype.initializeSubscriptions=function(){var e=this;this._subs.push(this._dateNavigationService.displayedCalendarChange.subscribe((function(){e.generateCalendarView()}))),this._subs.push(this._dateNavigationService.focusedDayChange.subscribe((function(t){e.calendarViewModel.updateFocusableDay(t)}))),this._subs.push(this._dateNavigationService.focusOnCalendarChange.subscribe((function(){e._datepickerFocusService.focusCell(e._elRef)})))},e.prototype.generateCalendarView=function(){this.calendarViewModel=new It(this.calendar,this.selectedDay,this.focusedDay,this.today,this._localeHelperService.firstDayOfWeek,this._dateIOService.disabledDates)},e.prototype.onKeyDown=function(e){if(e&&this.focusedDay)switch(e.keyCode){case 38:e.preventDefault(),this._dateNavigationService.incrementFocusDay(-7);break;case 40:e.preventDefault(),this._dateNavigationService.incrementFocusDay(7);break;case 37:e.preventDefault(),this._dateNavigationService.incrementFocusDay(-1);break;case 39:e.preventDefault(),this._dateNavigationService.incrementFocusDay(1)}},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e.prototype.ngOnDestroy=function(){this._subs.forEach((function(e){return e.unsubscribe()}))},e}();Dt.decorators=[{type:t.Component,args:[{selector:"clr-calendar",template:'<table class="calendar-table">\n <tr class="calendar-row weekdays">\n <td *ngFor="let day of localeDays" class="calendar-cell weekday" role="heading" [attr.aria-label]="day.day">\n {{day.narrow}}\n </td>\n </tr>\n <tr class="calendar-row" *ngFor="let row of calendarViewModel.calendarView">\n <td *ngFor="let dayView of row" class="calendar-cell">\n <clr-day [clrDayView]="dayView"></clr-day>\n </td>\n </tr>\n</table>\n'}]}],Dt.ctorParameters=function(){return[{type:_t},{type:Et},{type:wt},{type:Pt},{type:t.ElementRef}]},Dt.propDecorators={onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var Tt=function(){function e(){this._focused=new i.BehaviorSubject(!1)}return Object.defineProperty(e.prototype,"focusChange",{get:function(){return this._focused.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focused",{set:function(e){this._focused.next(e)},enumerable:!1,configurable:!0}),e}();Tt.decorators=[{type:t.Injectable}];var xt=function(){function e(){this._touchedChange=new i.Subject,this._dirtyChange=new i.Subject}return Object.defineProperty(e.prototype,"touchedChange",{get:function(){return this._touchedChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtyChange",{get:function(){return this._dirtyChange.asObservable()},enumerable:!1,configurable:!0}),e.prototype.markAsTouched=function(){this._touchedChange.next()},e.prototype.markAsDirty=function(){this._dirtyChange.next()},e.prototype.setDisabled=function(e){this.disabled=e},e}();xt.decorators=[{type:t.Injectable}];var At=function(){function e(e){this._document=e,this._isUserAgentMobile=!1,this._document&&(this._isUserAgentMobile=ut.test(e.defaultView.navigator.userAgent),this._innerWidth=e.defaultView.innerWidth)}return Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!(this._document&&this._innerWidth<768&&this._isUserAgentMobile)},enumerable:!1,configurable:!0}),e}();At.decorators=[{type:t.Injectable}],At.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]};var kt=function(){function e(){this._currentView="DAYVIEW",this.position=Z["bottom-left"]}return Object.defineProperty(e.prototype,"isDayView",{get:function(){return"DAYVIEW"===this._currentView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isYearView",{get:function(){return"YEARVIEW"===this._currentView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMonthView",{get:function(){return"MONTHVIEW"===this._currentView},enumerable:!1,configurable:!0}),e.prototype.changeToMonthView=function(){this._currentView="MONTHVIEW"},e.prototype.changeToYearView=function(){this._currentView="YEARVIEW"},e.prototype.changeToDayView=function(){this._currentView="DAYVIEW"},e}();kt.decorators=[{type:t.Injectable}];var Rt=function(e){function t(t,n,r,i,o,s,a,c,l,p,u){var d=e.call(this,u,l,c,p)||this;return d.toggleService=t,d.dateNavigationService=n,d.datepickerEnabledService=r,d.dateFormControlService=i,d.commonStrings=o,d.focusService=s,d.viewManagerService=a,d.controlClassService=c,d.layoutService=l,d.ngControlService=p,d.ifControlStateService=u,d.focus=!1,d.subscriptions.push(d.focusService.focusChange.subscribe((function(e){d.focus=e}))),d.subscriptions.push(d.toggleService.openChange.subscribe((function(){d.dateFormControlService.markAsTouched()}))),d}return oe(t,e),Object.defineProperty(t.prototype,"clrPosition",{set:function(e){e&&Z[e]&&(this.viewManagerService.position=Z[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popoverPosition",{get:function(){return this.viewManagerService.position},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"open",{get:function(){return this.toggleService.open},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionButton",{set:function(e){this.toggleButton=e},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this;this.subscriptions.push(this.toggleService.openChange.subscribe((function(t){t?e.initializeCalendar():e.toggleButton.nativeElement.focus()})))},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.datepickerEnabledService.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputDateDisabled",{get:function(){return this.control&&this.control.disabled||this.dateFormControlService&&this.dateFormControlService.disabled},enumerable:!1,configurable:!0}),t.prototype.initializeCalendar=function(){this.dateNavigationService.initializeCalendar()},t}(xe);function Lt(e){return null!==e&&("string"==typeof e?e.length>=0:"boolean"==typeof e&&e)}Rt.decorators=[{type:t.Component,args:[{selector:"clr-date-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper" clrPopoverAnchor>\n <div class="clr-input-group" [class.clr-focus]="focus">\n <ng-content select="[clrDate]"></ng-content>\n <button\n #actionButton\n type="button"\n clrPopoverOpenCloseButton\n class="clr-input-group-icon-action"\n [attr.title]="commonStrings.keys.datepickerToggle"\n [attr.aria-label]="commonStrings.keys.datepickerToggle"\n [disabled]="isInputDateDisabled"\n *ngIf="isEnabled"\n >\n <cds-icon status="info" shape="calendar"></cds-icon>\n </button>\n <clr-datepicker-view-manager\n *clrPopoverContent="open; at: popoverPosition; outsideClickToClose: true; scrollToClose: true"\n clrFocusTrap\n ></clr-datepicker-view-manager>\n </div>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',providers:[ue,v,I,x,_t,be,Tt,he,Pt,Et,At,xt,kt,ye],host:{"[class.clr-date-container]":"true","[class.clr-form-control-disabled]":"isInputDateDisabled","[class.clr-form-control]":"true","[class.clr-row]":"addGrid()"}}]}],Rt.ctorParameters=function(){return[{type:v},{type:Et},{type:At},{type:xt},{type:H},{type:Tt},{type:kt},{type:be},{type:fe,decorators:[{type:t.Optional}]},{type:he},{type:ye}]},Rt.propDecorators={clrPosition:[{type:t.Input,args:["clrPosition"]}],actionButton:[{type:t.ViewChild,args:["actionButton"]}]};var jt=function(e){function n(n,r,i,o,s,a,c,l,p,u,d,h,g){var f=e.call(this,n,Rt,r,s,o,i)||this;return f.el=i,f.renderer=o,f.control=s,f.container=a,f.dateIOService=c,f.dateNavigationService=l,f.datepickerEnabledService=p,f.dateFormControlService=u,f.platformId=d,f.focusService=h,f.datepickerFocusService=g,f.dateChange=new t.EventEmitter(!1),f.index=1,f}return oe(n,e),Object.defineProperty(n.prototype,"date",{set:function(e){this.previousDateChange!==e&&this.updateDate(this.getValidDateValueFromDate(e)),this.initialClrDateInputValue||(this.initialClrDateInputValue=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"min",{set:function(e){this.dateIOService.setMinDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"max",{set:function(e){this.dateIOService.setMaxDate(e)},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.populateServicesFromContainerComponent(),this.subscriptions.push(this.listenForUserSelectedDayChanges(),this.listenForControlValueChanges(),this.listenForTouchChanges(),this.listenForDirtyChanges(),this.listenForInputRefocus())},n.prototype.ngAfterViewInit=function(){this.processInitialInputs()},n.prototype.setFocusStates=function(){this.setFocus(!0)},n.prototype.triggerValidation=function(){e.prototype.triggerValidation.call(this),this.setFocus(!1)},Object.defineProperty(n.prototype,"placeholderText",{get:function(){return this.placeholder?this.placeholder:this.dateIOService.placeholderText},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"inputType",{get:function(){return r.isPlatformBrowser(this.platformId)&&this.usingNativeDatepicker()?"date":"text"},enumerable:!1,configurable:!0}),n.prototype.onValueChange=function(e){var t=this.dateIOService.getDateValueFromDateString(e.value);if(this.usingClarityDatepicker()&&t)this.updateDate(t,!0);else if(this.usingNativeDatepicker()){var n=ae(e.value.split("-"),3),r=n[0],i=n[1],o=n[2];this.updateDate(new Date(+r,+i-1,+o),!0)}else this.emitDateOutput(null)},Object.defineProperty(n.prototype,"disabled",{get:function(){return this.dateFormControlService?this.dateFormControlService.disabled:null},set:function(e){this.dateFormControlService&&this.dateFormControlService.setDisabled(Lt(e))},enumerable:!1,configurable:!0}),n.prototype.usingClarityDatepicker=function(){return this.datepickerEnabledService.isEnabled},n.prototype.usingNativeDatepicker=function(){return!this.datepickerEnabledService.isEnabled},n.prototype.setFocus=function(e){this.focusService&&(this.focusService.focused=e)},n.prototype.populateServicesFromContainerComponent=function(){this.container||(this.dateIOService=this.getProviderFromContainer(Pt),this.dateNavigationService=this.getProviderFromContainer(Et),this.datepickerEnabledService=this.getProviderFromContainer(At),this.dateFormControlService=this.getProviderFromContainer(xt))},n.prototype.processInitialInputs=function(){this.datepickerHasFormControl()?this.updateDate(this.dateIOService.getDateValueFromDateString(this.control.value)):this.updateDate(this.initialClrDateInputValue)},n.prototype.updateDate=function(e,t){void 0===t&&(t=!1);var n=this.getValidDateValueFromDate(e);t?this.emitDateOutput(n):this.previousDateChange=n,this.dateNavigationService&&(this.dateNavigationService.selectedDay=n?new St(n.getFullYear(),n.getMonth(),n.getDate()):null),this.updateInput(n)},n.prototype.updateInput=function(e){if(e){var t=this.dateIOService.toLocaleDisplayFormatString(e);this.usingNativeDatepicker()?(e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),this.renderer.setProperty(this.el.nativeElement,"valueAsDate",e)):this.datepickerHasFormControl()&&t!==this.control.value?this.control.control.setValue(t):this.renderer.setProperty(this.el.nativeElement,"value",t)}else this.renderer.setProperty(this.el.nativeElement,"value","")},n.prototype.getValidDateValueFromDate=function(e){if(this.dateIOService){var t=this.dateIOService.toLocaleDisplayFormatString(e);return this.dateIOService.getDateValueFromDateString(t)}return null},n.prototype.emitDateOutput=function(e){var t,n;t=e,n=this.previousDateChange,t instanceof Date&&n instanceof Date&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()?!e&&this.previousDateChange&&(this.dateChange.emit(null),this.previousDateChange=null):(this.dateChange.emit(e),this.previousDateChange=e)},n.prototype.datepickerHasFormControl=function(){return!!this.control},n.prototype.listenForControlValueChanges=function(){var e=this;return i.of(this.datepickerHasFormControl()).pipe(o.filter((function(e){return e})),o.switchMap((function(){return e.control.valueChanges})),o.filter((function(){return!e.datepickerFocusService.elementIsFocused(e.el.nativeElement)}))).subscribe((function(t){return e.updateDate(e.dateIOService.getDateValueFromDateString(t))}))},n.prototype.listenForUserSelectedDayChanges=function(){var e=this;return this.dateNavigationService.selectedDayChange.subscribe((function(t){return e.updateDate(t.toDate(),!0)}))},n.prototype.listenForTouchChanges=function(){var e=this;return this.dateFormControlService.touchedChange.pipe(o.filter((function(){return e.datepickerHasFormControl()}))).subscribe((function(){return e.control.control.markAsTouched()}))},n.prototype.listenForDirtyChanges=function(){var e=this;return this.dateFormControlService.dirtyChange.pipe(o.filter((function(){return e.datepickerHasFormControl()}))).subscribe((function(){return e.control.control.markAsDirty()}))},n.prototype.listenForInputRefocus=function(){var e=this;return this.dateNavigationService.selectedDayChange.pipe(o.filter((function(e){return!!e}))).subscribe((function(){return e.datepickerFocusService.focusInput(e.el.nativeElement)}))},n}(we);jt.decorators=[{type:t.Directive,args:[{selector:"[clrDate]",host:{"[class.clr-input]":"true"},providers:[wt]}]}],jt.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:t.ElementRef},{type:t.Renderer2},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:Rt,decorators:[{type:t.Optional}]},{type:Pt,decorators:[{type:t.Optional}]},{type:Et,decorators:[{type:t.Optional}]},{type:At,decorators:[{type:t.Optional}]},{type:xt,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:Tt,decorators:[{type:t.Optional}]},{type:wt}]},jt.propDecorators={placeholder:[{type:t.Input}],dateChange:[{type:t.Output,args:["clrDateChange"]}],date:[{type:t.Input,args:["clrDate"]}],min:[{type:t.Input}],max:[{type:t.Input}],setFocusStates:[{type:t.HostListener,args:["focus"]}],triggerValidation:[{type:t.HostListener,args:["blur"]}],placeholderText:[{type:t.HostBinding,args:["attr.placeholder"]}],inputType:[{type:t.HostBinding,args:["attr.type"]}],onValueChange:[{type:t.HostListener,args:["change",["$event.target"]]}],disabled:[{type:t.HostBinding,args:["disabled"]},{type:t.Input,args:["disabled"]}]};var Nt=function(){function e(e){this.viewManagerService=e}return Object.defineProperty(e.prototype,"isMonthView",{get:function(){return this.viewManagerService.isMonthView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isYearView",{get:function(){return this.viewManagerService.isYearView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDayView",{get:function(){return this.viewManagerService.isDayView},enumerable:!1,configurable:!0}),e}();Nt.decorators=[{type:t.Component,args:[{selector:"clr-datepicker-view-manager",template:'\x3c!--\n* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n* This software is released under MIT license.\n* The full license information can be found in LICENSE in the root directory of this project.\n--\x3e\n\n<clr-monthpicker *ngIf="isMonthView"></clr-monthpicker>\n<clr-yearpicker *ngIf="isYearView"></clr-yearpicker>\n<clr-daypicker *ngIf="isDayView"></clr-daypicker>\n',providers:[wt],host:{"[class.datepicker]":"true","[attr.aria-modal]":"true"}}]}],Nt.ctorParameters=function(){return[{type:kt}]};var Ft=function(){function e(e,t,n){this._dateNavigationService=e,this._toggleService=t,this.dateFormControlService=n}return Object.defineProperty(e.prototype,"dayView",{get:function(){return this._dayView},set:function(e){this._dayView=e,this.dayString=this._dayView.dayModel.toDateString()},enumerable:!1,configurable:!0}),e.prototype.onDayViewFocus=function(){this._dateNavigationService.focusedDay=this.dayView.dayModel},e.prototype.selectDay=function(){var e=this.dayView.dayModel;this._dateNavigationService.notifySelectedDayChanged(e),this.dateFormControlService.markAsDirty(),this._toggleService.open=!1},e}();Ft.decorators=[{type:t.Component,args:[{selector:"clr-day",template:'\n <button\n class="day-btn"\n type="button"\n [class.is-today]="dayView.isTodaysDate"\n [class.is-excluded]="dayView.isExcluded"\n [class.is-disabled]="dayView.isDisabled"\n [class.is-selected]="dayView.isSelected"\n [attr.tabindex]="dayView.tabIndex"\n (click)="selectDay()"\n (focus)="onDayViewFocus()"\n [attr.aria-label]="dayString"\n >\n {{ dayView.dayModel.date }}\n </button>\n ',host:{"[class.day]":"true"}}]}],Ft.ctorParameters=function(){return[{type:Et},{type:v},{type:xt}]},Ft.propDecorators={dayView:[{type:t.Input,args:["clrDayView"]}]};var Mt=function(){function e(e,t,n,r){this._viewManagerService=e,this._dateNavigationService=t,this._localeHelperService=n,this.commonStrings=r}return Object.defineProperty(e.prototype,"monthAttrString",{get:function(){return this.commonStrings.parse(this.commonStrings.keys.datepickerSelectMonthText,{CALENDAR_MONTH:this.calendarMonth})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearAttrString",{get:function(){return this.commonStrings.parse(this.commonStrings.keys.datepickerSelectYearText,{CALENDAR_YEAR:this.calendarYear.toString()})},enumerable:!1,configurable:!0}),e.prototype.changeToMonthView=function(){this._viewManagerService.changeToMonthView()},e.prototype.changeToYearView=function(){this._viewManagerService.changeToYearView()},Object.defineProperty(e.prototype,"calendarMonth",{get:function(){return this._localeHelperService.localeMonthsAbbreviated[this._dateNavigationService.displayedCalendar.month]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendarYear",{get:function(){return this._dateNavigationService.displayedCalendar.year},enumerable:!1,configurable:!0}),e.prototype.nextMonth=function(){this._dateNavigationService.moveToNextMonth()},e.prototype.previousMonth=function(){this._dateNavigationService.moveToPreviousMonth()},e.prototype.currentMonth=function(){this._dateNavigationService.moveToCurrentMonth()},e}();Mt.decorators=[{type:t.Component,args:[{selector:"clr-daypicker",template:'<div class="clr-sr-only">{{commonStrings.keys.modalContentStart}}</div>\n<div class="calendar-header">\n <div class="calendar-pickers">\n <button\n class="calendar-btn monthpicker-trigger"\n type="button"\n (click)="changeToMonthView()"\n [attr.aria-label]="monthAttrString"\n [attr.title]="monthAttrString"\n >\n {{calendarMonth}}\n </button>\n <button\n class="calendar-btn yearpicker-trigger"\n type="button"\n (click)="changeToYearView()"\n [attr.aria-label]="yearAttrString"\n [attr.title]="yearAttrString"\n >\n {{calendarYear}}\n </button>\n </div>\n <div class="calendar-switchers">\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="previousMonth()"\n [attr.aria-label]="commonStrings.keys.datepickerPreviousMonth"\n >\n <cds-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.datepickerPreviousMonth"></cds-icon>\n </button>\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="currentMonth()"\n [attr.aria-label]="commonStrings.keys.datepickerCurrentMonth"\n >\n <cds-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentMonth"></cds-icon>\n </button>\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="nextMonth()"\n [attr.aria-label]="commonStrings.keys.datepickerNextMonth"\n >\n <cds-icon shape="angle" direction="right"></cds-icon>\n </button>\n </div>\n</div>\n<clr-calendar></clr-calendar>\n<div class="clr-sr-only">{{commonStrings.keys.modalContentEnd}}</div>\n',host:{"[class.daypicker]":"true"}}]}],Mt.ctorParameters=function(){return[{type:kt},{type:Et},{type:_t},{type:H}]};var Vt=function(){function e(e,t,n,r,i){this._viewManagerService=e,this._localeHelperService=t,this._dateNavigationService=n,this._datepickerFocusService=r,this._elRef=i,this._focusedMonthIndex=this.calendarMonthIndex}return Object.defineProperty(e.prototype,"monthNames",{get:function(){return this._localeHelperService.localeMonthsWide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendarMonthIndex",{get:function(){return this._dateNavigationService.displayedCalendar.month},enumerable:!1,configurable:!0}),e.prototype.changeMonth=function(e){this._dateNavigationService.changeMonth(e),this._viewManagerService.changeToDayView()},e.prototype.getTabIndex=function(e){return e===this._focusedMonthIndex?0:-1},e.prototype.onKeyDown=function(e){if(e){var t=e.keyCode;38===t&&this._focusedMonthIndex>0?(e.preventDefault(),this._focusedMonthIndex--,this._datepickerFocusService.focusCell(this._elRef)):40===t&&this._focusedMonthIndex<11?(e.preventDefault(),this._focusedMonthIndex++,this._datepickerFocusService.focusCell(this._elRef)):39===t&&this._focusedMonthIndex<6?(e.preventDefault(),this._focusedMonthIndex=this._focusedMonthIndex+6,this._datepickerFocusService.focusCell(this._elRef)):37===t&&this._focusedMonthIndex>5&&(e.preventDefault(),this._focusedMonthIndex=this._focusedMonthIndex-6,this._datepickerFocusService.focusCell(this._elRef))}},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e}();Vt.decorators=[{type:t.Component,args:[{selector:"clr-monthpicker",template:'\n <button\n type="button"\n class="calendar-btn month"\n *ngFor="let month of monthNames; let monthIndex = index"\n (click)="changeMonth(monthIndex)"\n [class.is-selected]="monthIndex === calendarMonthIndex"\n [attr.tabindex]="getTabIndex(monthIndex)"\n >\n {{ month }}\n </button>\n ',host:{"[class.monthpicker]":"true"}}]}],Vt.ctorParameters=function(){return[{type:kt},{type:_t},{type:Et},{type:wt},{type:t.ElementRef}]},Vt.propDecorators={onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var Bt=function(){function e(e){this.year=e,this.yearRange=[],this.generateYearRange()}return Object.defineProperty(e.prototype,"middleYear",{get:function(){return this.yearRange[Math.floor(this.yearRange.length/2)]},enumerable:!1,configurable:!0}),e.prototype.generateYearRange=function(){var e=this.year%10,t=this.year-e,n=t+10;this.yearRange=this.generateRange(t,n)},e.prototype.generateRange=function(e,t){return Array.from({length:t-e},(function(t,n){return n+e}))},e.prototype.nextDecade=function(){return new e(this.year+10)},e.prototype.previousDecade=function(){return new e(this.year-10)},e.prototype.currentDecade=function(){return new e((new Date).getFullYear())},e.prototype.inRange=function(e){return this.yearRange.indexOf(e)>-1},e}(),zt=function(){function e(e,t,n,r,i){this._dateNavigationService=e,this._viewManagerService=t,this._datepickerFocusService=n,this._elRef=r,this.commonStrings=i,this.yearRangeModel=new Bt(this.calendarYear),this._focusedYear=this.calendarYear,this.updateRange(this.yearRangeModel)}return Object.defineProperty(e.prototype,"calendarYear",{get:function(){return this._dateNavigationService.displayedCalendar.year},enumerable:!1,configurable:!0}),e.prototype.incrementFocusYearBy=function(e){this._focusedYear=this._focusedYear+e,this.yearRangeModel.inRange(this._focusedYear)||(this.yearRangeModel=e>0?this.yearRangeModel.nextDecade():this.yearRangeModel.previousDecade()),this._datepickerFocusService.focusCell(this._elRef)},e.prototype.changeYear=function(e){this._dateNavigationService.changeYear(e),this._viewManagerService.changeToDayView()},e.prototype.previousDecade=function(){this.yearRangeModel=this.yearRangeModel.previousDecade(),this.updateRange(this.yearRangeModel)},e.prototype.currentDecade=function(){this.yearRangeModel.inRange(this._dateNavigationService.today.year)||(this.yearRangeModel=this.yearRangeModel.currentDecade()),this._datepickerFocusService.focusCell(this._elRef),this.updateRange(this.yearRangeModel)},e.prototype.nextDecade=function(){this.yearRangeModel=this.yearRangeModel.nextDecade(),this.updateRange(this.yearRangeModel)},e.prototype.getTabIndex=function(e){return this.yearRangeModel.inRange(this._focusedYear)||(this.yearRangeModel.inRange(this.calendarYear)?this._focusedYear=this.calendarYear:this._focusedYear=this.yearRangeModel.middleYear),this._focusedYear===e?0:-1},e.prototype.onKeyDown=function(e){if(e){var t=e.keyCode;38===t?(e.preventDefault(),this.incrementFocusYearBy(-1)):40===t?(e.preventDefault(),this.incrementFocusYearBy(1)):39===t?(e.preventDefault(),this.incrementFocusYearBy(5)):37===t&&(e.preventDefault(),this.incrementFocusYearBy(-5))}},e.prototype.updateRange=function(e){var t=e.yearRange[0],n=e.yearRange[e.yearRange.length-1];this.decadeRange=t+" to "+n},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e}();zt.decorators=[{type:t.Component,args:[{selector:"clr-yearpicker",template:'\n <div class="year-switchers">\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="previousDecade()"\n [attr.aria-label]="commonStrings.keys.datepickerPreviousDecade"\n >\n <cds-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.datepickerPreviousDecade"></cds-icon>\n </button>\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="currentDecade()"\n [attr.aria-label]="commonStrings.keys.datepickerCurrentDecade"\n >\n <cds-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentDecade"></cds-icon>\n </button>\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="nextDecade()"\n [attr.aria-label]="commonStrings.keys.datepickerNextDecade"\n >\n <cds-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextDecade"></cds-icon>\n </button>\n </div>\n <div class="years">\n <button\n *ngFor="let year of yearRangeModel.yearRange"\n type="button"\n class="calendar-btn year"\n [attr.tabindex]="getTabIndex(year)"\n [class.is-selected]="year === calendarYear"\n (click)="changeYear(year)"\n >\n {{ year }}\n </button>\n </div>\n ',host:{"[class.yearpicker]":"true"}}]}],zt.ctorParameters=function(){return[{type:Et},{type:kt},{type:wt},{type:t.ElementRef},{type:H}]},zt.propDecorators={onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var Ht=[Ft,Rt,jt,Nt,Vt,zt,Mt,Dt],Gt=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon,n.angleIcon,n.eventIcon,n.calendarIcon)};Gt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,re,nt,j,y,st,Me],declarations:[Ht],exports:[Ht],entryComponents:[Rt]}]}],Gt.ctorParameters=function(){return[]};var Wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t}(xe);Wt.decorators=[{type:t.Component,args:[{selector:"clr-input-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper">\n <ng-content select="[clrInput]"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[ye,he,ue,be]}]}];var Ut=function(e){function t(t,n,r,i,o){var s=e.call(this,t,Wt,n,r,i,o)||this;return s.index=1,s}return oe(t,e),t}(we);Ut.decorators=[{type:t.Directive,args:[{selector:"[clrInput]",host:{"[class.clr-input]":"true"}}]}],Ut.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var Yt=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};Yt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,y,Me],declarations:[Ut,Wt],exports:[Me,Ut,Wt],entryComponents:[Wt]}]}],Yt.ctorParameters=function(){return[]};var Kt=new t.InjectionToken(void 0);function Zt(){return new i.BehaviorSubject(!1)}var qt={provide:Kt,useFactory:Zt},Xt=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,t,n,r,i)||this;return c.focusService=o,c.toggleService=s,c.commonStrings=a,c.show=!1,c.focus=!1,c._toggle=!0,c.subscriptions.push(c.focusService.focusChange.subscribe((function(e){c.focus=e}))),c}return oe(t,e),Object.defineProperty(t.prototype,"clrToggle",{get:function(){return this._toggle},set:function(e){this._toggle=e,e||(this.show=!1)},enumerable:!1,configurable:!0}),t.prototype.toggle=function(){this.show=!this.show,this.toggleService.next(this.show)},t}(xe);Xt.decorators=[{type:t.Component,args:[{selector:"clr-password-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper">\n <div class="clr-input-group" [class.clr-focus]="focus">\n <ng-content select="[clrPassword]"></ng-content>\n <button\n *ngIf="clrToggle"\n (click)="toggle()"\n [disabled]="control?.disabled"\n class="clr-input-group-icon-action"\n type="button"\n >\n <cds-icon\n status="info"\n [attr.shape]="show ? \'eye-hide\' : \'eye\'"\n [attr.title]="show ? commonStrings.keys.hide : commonStrings.keys.show"\n ></cds-icon>\n </button>\n </div>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[he,ue,be,Tt,qt,ye]}]}],Xt.ctorParameters=function(){return[{type:ye},{type:fe,decorators:[{type:t.Optional}]},{type:be},{type:he},{type:Tt},{type:i.BehaviorSubject,decorators:[{type:t.Inject,args:[Kt]}]},{type:H}]},Xt.propDecorators={clrToggle:[{type:t.Input,args:["clrToggle"]}]};var $t=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,t,Xt,n,r,i,o)||this;if(c.focusService=s,c.toggleService=a,c.index=1,!c.focusService)throw new Error("clrPassword requires being wrapped in <clr-password-container>");return c.subscriptions.push(c.toggleService.subscribe((function(e){i.setProperty(o.nativeElement,"type",e?"text":"password")}))),c}return oe(t,e),t.prototype.triggerFocus=function(){this.focusService&&(this.focusService.focused=!0)},t.prototype.triggerValidation=function(){e.prototype.triggerValidation.call(this),this.focusService&&(this.focusService.focused=!1)},t}(we);$t.decorators=[{type:t.Directive,args:[{selector:"[clrPassword]",host:{"[class.clr-input]":"true"}}]}],$t.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef},{type:Tt,decorators:[{type:t.Optional}]},{type:i.BehaviorSubject,decorators:[{type:t.Optional},{type:t.Inject,args:[Kt]}]}]},$t.propDecorators={triggerFocus:[{type:t.HostListener,args:["focus"]}],triggerValidation:[{type:t.HostListener,args:["blur"]}]};var Jt=function(){n.ClarityIcons.addIcons(n.eyeHideIcon,n.eyeIcon,n.exclamationCircleIcon,n.checkCircleIcon)};Jt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,y,Me],declarations:[$t,Xt],exports:[Me,$t,Xt],entryComponents:[Xt]}]}],Jt.ctorParameters=function(){return[]};var Qt=function(){function e(){this._dynamic=!1}return e.prototype.ngOnInit=function(){this.label&&this.label.disableGrid()},e}();Qt.decorators=[{type:t.Component,args:[{selector:"clr-radio-wrapper",template:'\n <ng-content select="[clrRadio]"></ng-content>\n <ng-content select="label"></ng-content>\n <label *ngIf="!label"></label>\n ',host:{"[class.clr-radio-wrapper]":"true"},providers:[ue]}]}],Qt.propDecorators={label:[{type:t.ContentChild,args:[_e,{static:!0}]}]};var en=function(e){function t(t,n,r,i,o){return e.call(this,t,Qt,n,r,i,o)||this}return oe(t,e),t}(we);en.decorators=[{type:t.Directive,args:[{selector:"[clrRadio]"}]}],en.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var tn=function(e){function t(t,n,r,i){var o=e.call(this,i,t,n,r)||this;return o.layoutService=t,o.controlClassService=n,o.ngControlService=r,o.ifControlStateService=i,o.inline=!1,o}return oe(t,e),Object.defineProperty(t.prototype,"clrInline",{get:function(){return this.inline},set:function(e){this.inline="string"==typeof e?"false"!==e:!!e},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.setAriaRoles()},t.prototype.setAriaRoles=function(){this.role=this.radios.length?"group":null},t}(xe);tn.decorators=[{type:t.Component,args:[{selector:"clr-radio-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [class.clr-control-inline]="clrInline" [ngClass]="controlClass()">\n <ng-content select="clr-radio-wrapper"></ng-content>\n <div class="clr-subtext-wrapper">\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()","[attr.role]":"role"},providers:[he,ye,be,Ce]}]}],tn.ctorParameters=function(){return[{type:fe,decorators:[{type:t.Optional}]},{type:be},{type:he},{type:ye}]},tn.propDecorators={radios:[{type:t.ContentChildren,args:[en,{descendants:!0}]}],clrInline:[{type:t.Input}]};var nn=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};nn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,Me,re,y],declarations:[en,tn,Qt],exports:[Me,en,tn,Qt],entryComponents:[Qt]}]}],nn.ctorParameters=function(){return[]};var rn=function(e){function t(t,n,r,i){var o=e.call(this,i,t,n,r)||this;return o.layoutService=t,o.controlClassService=n,o.ngControlService=r,o.ifControlStateService=i,o.multi=!1,o}return oe(t,e),t.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.ngControlService.controlChanges.subscribe((function(t){t&&(e.multi=t.valueAccessor instanceof a.SelectMultipleControlValueAccessor,e.control=t)})))},t.prototype.wrapperClass=function(){return this.multi?"clr-multiselect-wrapper":"clr-select-wrapper"},t}(xe);rn.decorators=[{type:t.Component,args:[{selector:"clr-select-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div [ngClass]="wrapperClass()">\n <ng-content select="[clrSelect]"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[ye,he,ue,be]}]}],rn.ctorParameters=function(){return[{type:fe,decorators:[{type:t.Optional}]},{type:be},{type:he},{type:ye}]},rn.propDecorators={multiple:[{type:t.ContentChild,args:[a.SelectMultipleControlValueAccessor,{static:!1}]}]};var on=function(e){function t(t,n,r,i,o){var s=e.call(this,t,rn,n,r,i,o)||this;return s.index=1,s}return oe(t,e),t}(we);on.decorators=[{type:t.Directive,args:[{selector:"[clrSelect]",host:{"[class.clr-select]":"true"}}]}],on.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var sn=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};sn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,y,Me],declarations:[on,rn],exports:[Me,on,rn],entryComponents:[rn]}]}],sn.ctorParameters=function(){return[]};var an=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t}(xe);an.decorators=[{type:t.Component,args:[{selector:"clr-textarea-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-textarea-wrapper">\n <ng-content select="[clrTextarea]"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[ye,he,ue,be]}]}];var cn=function(e){function t(t,n,r,i,o){var s=e.call(this,t,an,n,r,i,o)||this;return s.index=1,s}return oe(t,e),t}(we);cn.decorators=[{type:t.Directive,args:[{selector:"[clrTextarea]",host:{"[class.clr-textarea]":"true"}}]}],cn.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var ln=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};ln.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,y,Me],declarations:[cn,an],exports:[Me,cn,an],entryComponents:[an]}]}],ln.ctorParameters=function(){return[]};var pn=function(e){function t(t,n,r,i,o,s){var a=e.call(this,s,t,n,r)||this;return a.renderer=i,a.idService=o,a.ifControlStateService=s,a._hasProgress=!1,a}return oe(t,e),Object.defineProperty(t.prototype,"hasProgress",{get:function(){return this._hasProgress},set:function(e){var t=!!e;t!==this._hasProgress&&(this._hasProgress=t)},enumerable:!1,configurable:!0}),t.prototype.getRangeProgressFillWidth=function(){var e=this.renderer.selectRootElement("[clrRange]#"+this.idService.id),t=e.offsetWidth,n=+e.min,r=+e.max;0===n&&0===r&&(r=100);var i=(n+r)/2;return 100*((this.control&&void 0!==this.control.value?this.control.value:i)-n)/(r-n)*t/100+"px"},t}(xe);pn.decorators=[{type:t.Component,args:[{selector:"clr-range-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-range-wrapper" [class.progress-fill]="hasProgress">\n <ng-content select="[clrRange]"></ng-content>\n <span *ngIf="hasProgress" class="fill-input" [style.width]="getRangeProgressFillWidth()"></span>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[ye,he,ue,be]}]}],pn.ctorParameters=function(){return[{type:fe,decorators:[{type:t.Optional}]},{type:be},{type:he},{type:t.Renderer2},{type:ue},{type:ye}]},pn.propDecorators={hasProgress:[{type:t.Input,args:["clrRangeHasProgress"]}]};var un=function(e){function t(t,n,r,i,o){return e.call(this,t,pn,n,r,i,o)||this}return oe(t,e),t}(we);un.decorators=[{type:t.Directive,args:[{selector:"[clrRange]",host:{"[class.clr-range]":"true"}}]}],un.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var dn=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};dn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,Me,re,y],declarations:[un,pn],exports:[Me,un,pn],entryComponents:[pn]}]}],dn.ctorParameters=function(){return[]};var hn=0,gn=function(){function e(){this._id="clr-datalist-"+ ++hn,this._idChange=new i.BehaviorSubject(this._id)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this._idChange.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"idChange",{get:function(){return this._idChange.asObservable()},enumerable:!1,configurable:!0}),e}();gn.decorators=[{type:t.Injectable}];var fn=function(e){function t(t,n,r,i,o){var s=e.call(this,o,n,t,r)||this;return s.focusService=i,s.ifControlStateService=o,s.focus=!1,s.subscriptions.push(s.focusService.focusChange.subscribe((function(e){return s.focus=e}))),s}return oe(t,e),t}(xe);fn.decorators=[{type:t.Component,args:[{selector:"clr-datalist-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper">\n <div class="clr-input-group" [class.clr-focus]="focus">\n <ng-content select="[clrDatalistInput]"></ng-content>\n <ng-content select="datalist"></ng-content>\n </div>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[be,fe,ue,Tt,he,gn,ye]}]}],fn.ctorParameters=function(){return[{type:be},{type:fe,decorators:[{type:t.Optional}]},{type:he},{type:Tt},{type:ye}]};var yn=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,n,fn,r,i,o,s)||this;if(c.focusService=t,c.datalistIdService=a,!c.focusService)throw new Error("clrDatalist requires being wrapped in <clr-datalist-container>");return c}return oe(t,e),t.prototype.ngAfterContentInit=function(){var e=this;this.subscriptions.push(this.datalistIdService.idChange.subscribe((function(t){return e.listValue=t})))},t.prototype.triggerFocus=function(){this.focusService&&(this.focusService.focused=!0)},t.prototype.triggerValidation=function(){e.prototype.triggerValidation.call(this),this.focusService&&(this.focusService.focused=!1)},t}(we);yn.decorators=[{type:t.Directive,args:[{selector:"[clrDatalistInput]",host:{"[class.clr-input]":"true","[attr.list]":"listValue"}}]}],yn.ctorParameters=function(){return[{type:Tt,decorators:[{type:t.Optional}]},{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef},{type:gn}]},yn.propDecorators={triggerFocus:[{type:t.HostListener,args:["focus"]}],triggerValidation:[{type:t.HostListener,args:["blur"]}]};var bn=function(){function e(e){this.datalistIdService=e,this.subscriptions=[]}return e.prototype.ngAfterContentInit=function(){var e=this;this.datalistIdService&&this.subscriptions.push(this.datalistIdService.idChange.subscribe((function(t){return e.datalistId=t})))},Object.defineProperty(e.prototype,"id",{set:function(e){e&&this.datalistIdService?(this.datalistId=e,this.datalistIdService.id=e):e&&(this.datalistId=e)},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();bn.decorators=[{type:t.Directive,args:[{selector:"datalist",host:{"[id]":"datalistId"}}]}],bn.ctorParameters=function(){return[{type:gn,decorators:[{type:t.Optional}]}]},bn.propDecorators={id:[{type:t.Input}]};var mn=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};mn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,Yt,y],declarations:[bn,yn,fn],exports:[bn,yn,fn]}]}],mn.ctorParameters=function(){return[]};var vn=function(){function e(){}return e.prototype.containsItem=function(e){return!!this.model&&this.model.includes(e)},e.prototype.select=function(e){this.addItem(e)},e.prototype.unselect=function(e){this.removeItem(e)},e.prototype.isEmpty=function(){return!(this.model&&this.model.length>0)},e.prototype.pop=function(){var e;return this.model&&this.model.length>0&&(e=this.model[this.model.length-1],this.removeItem(e)),e},e.prototype.toString=function(e,t){void 0===t&&(t=-1);var n="";return this.model&&(t>-1?this.model[t]&&(e&&this.model[t][e]?n+=this.model[t][e]:n+=this.model[t].toString()):this.model.forEach((function(t){e&&t[e]?n+=t[e]:n+=t.toString(),n+=" "}))),n.trim()},e.prototype.addItem=function(e){this.containsItem(e)||(this.model=this.model||[],this.model.push(e))},e.prototype.removeItem=function(e){if(null!==this.model&&void 0!==this.model){var t=this.model.indexOf(e);t>-1&&this.model.splice(t,1),0===this.model.length&&(this.model=null)}},e}(),Cn=function(){function e(){this.loading=!1,this._currentInput="",this._inputChanged=new i.BehaviorSubject(""),this.inputChanged=this._inputChanged.asObservable(),this._selectionChanged=new i.ReplaySubject(1)}return Object.defineProperty(e.prototype,"currentInput",{get:function(){return this._currentInput},set:function(e){e||this.multiselectable||this.setSelectionValue(null),this._currentInput=e,this._inputChanged.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionChanged",{get:function(){return this._selectionChanged.asObservable()},enumerable:!1,configurable:!0}),e.prototype.select=function(e){e&&!this.selectionModel.containsItem(e)&&(this.selectionModel.select(e),this._selectionChanged.next(this.selectionModel))},e.prototype.toggle=function(e){e&&(this.selectionModel.containsItem(e)?this.selectionModel.unselect(e):this.selectionModel.select(e),this._selectionChanged.next(this.selectionModel))},e.prototype.unselect=function(e){e&&this.selectionModel.containsItem(e)&&(this.selectionModel.unselect(e),this._selectionChanged.next(this.selectionModel))},Object.defineProperty(e.prototype,"multiselectable",{get:function(){return this.selectionModel instanceof vn},enumerable:!1,configurable:!0}),e.prototype.setSelectionValue=function(e){this.selectionModel&&this.selectionModel.model!==e&&(this.selectionModel.model||e)&&(this.selectionModel.model=e,this._selectionChanged.next(this.selectionModel))},e}();Cn.decorators=[{type:t.Injectable}];var Sn,In=function(){};function On(e){return[K,e,{provide:In,useExisting:e}]}!function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right"}(Sn||(Sn={}));var En=function(){function e(){}return e.prototype.containsItem=function(e){return this.model===e},e.prototype.select=function(e){this.model=e},e.prototype.unselect=function(e){this.containsItem(e)&&(this.model=null)},e.prototype.isEmpty=function(){return!this.model},e.prototype.pop=function(){var e=this.model;return this.model=null,e},e.prototype.toString=function(e){return this.model?e&&this.model[e]?this.model[e]:this.model.toString():""},e}(),wn=function(e){function t(){var t=e.apply(this,ce(arguments))||this;return t._focusChanged=new i.BehaviorSubject(null),t}return oe(t,e),Object.defineProperty(t.prototype,"focusChanged",{get:function(){return this._focusChanged.asObservable()},enumerable:!1,configurable:!0}),t.prototype.select=function(e){this.model!==e&&(this.model=e,this._focusChanged.next(e))},t}(En),_n=function(){function e(e,t,n,r,i){this.id=e,this.toggleService=n,this.selectionService=r,this.platformId=i,this.pseudoFocus=new wn,this.optionData=[],this.handleFocusSubscription(),this.renderer=t.createRenderer(null,null)}return e.prototype.handleFocusSubscription=function(){var e=this;this.toggleService.openChange.subscribe((function(t){t||(e.pseudoFocus.model=null)}))},Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger},set:function(e){this._trigger=e,this.addFocusOnBlurListener(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listbox",{get:function(){return this._listbox},set:function(e){this._listbox=e,this.addFocusOnBlurListener(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textInput",{get:function(){return this._textInput},set:function(e){var t=this;this._textInput=e,this.renderer.listen(e,"keydown",(function(e){return!t.handleTextInput(e)})),this.addFocusOnBlurListener(e)},enumerable:!1,configurable:!0}),e.prototype.moveFocusTo=function(e){var t=this,n=this.optionData.findIndex((function(e){return e.equals(t.pseudoFocus.model)}));e===Sn.UP?-1===n||0===n?n=this.optionData.length-1:n--:e===Sn.DOWN&&(-1===n||n===this.optionData.length-1?n=0:n++),this.pseudoFocus.select(this.optionData[n]),this.pseudoFocus.model&&this.pseudoFocus.model.el&&this.pseudoFocus.model.el.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},e.prototype.openAndMoveTo=function(e){var t=this;this.toggleService.open?this.moveFocusTo(e):(this.toggleService.openChange.pipe(o.take(1)).subscribe((function(n){n&&t.moveFocusTo(e)})),this.toggleService.open=!0)},e.prototype.handleTextInput=function(e){var t=!1,n=b(e.key);if(e)switch(n){case h.Enter:this.toggleService.open&&this.pseudoFocus.model&&(this.selectionService.multiselectable?this.selectionService.toggle(this.pseudoFocus.model.value):this.selectionService.select(this.pseudoFocus.model.value),t=!0);break;case h.Space:this.toggleService.open||(this.toggleService.open=!0,t=!0);break;case h.ArrowUp:this.preventViewportScrolling(e),this.openAndMoveTo(Sn.UP),t=!0;break;case h.ArrowDown:this.preventViewportScrolling(e),this.openAndMoveTo(Sn.DOWN),t=!0;break;default:e.key===h.Tab||this.selectionService.multiselectable&&e.key===h.Backspace||e.key===h.Escape||this.toggleService.open||(this.toggleService.open=!0)}return t},e.prototype.preventViewportScrolling=function(e){e.preventDefault(),e.stopImmediatePropagation()},e.prototype.focusInput=function(){this.textInput&&r.isPlatformBrowser(this.platformId)&&this.textInput.focus()},e.prototype.addFocusOnBlurListener=function(e){var t=this;r.isPlatformBrowser(this.platformId)&&this.renderer.listen(e,"blur",(function(e){t.focusOutOfComponent(e)&&(t.toggleService.open=!1,t.componentCdRef&&t.componentCdRef.detectChanges())}))},e.prototype.focusOutOfComponent=function(e){var t=e.relatedTarget||document.activeElement;return!(this.textInput.contains(t)||this.trigger.contains(t)||this.listbox.contains(t))},e.prototype.focusFirstActive=function(){if(this.optionData.length>0)if(this.selectionService.selectionModel.isEmpty())this.pseudoFocus.select(this.optionData[0]);else{var e;e=this.selectionService.multiselectable?this.selectionService.selectionModel.model[0]:this.selectionService.selectionModel.model;var t=this.optionData.find((function(t){return t.value===e}));this.pseudoFocus.select(t)}},e.prototype.addOptionValues=function(e){this.optionData=e},e}();_n.decorators=[{type:t.Injectable}],_n.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:t.RendererFactory2},{type:v},{type:Cn},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var Pn=On(_n),Dn=function(){function e(e,t){this.id=e,this.value=t}return e.prototype.equals=function(e){return!!e&&(this.id===e.id&&this.value===e.value)},e}(),Tn=function(){function e(e,t,n,r,i){this.elRef=e,this.commonStrings=t,this.focusHandler=n,this.optionSelectionService=r,this.autoId=i,this.optionProxy=new Dn(null,null),this.optionProxy.el=this.elRef.nativeElement}return Object.defineProperty(e.prototype,"optionId",{get:function(){return this._id},set:function(e){this._id=e,this.optionProxy.id=this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.optionProxy.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.optionSelectionService.selectionModel&&this.optionSelectionService.selectionModel.containsItem(this.value)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._id||(this._id="clr-option-"+this.autoId,this.optionProxy.id=this._id)},e.prototype.onClick=function(){this.optionSelectionService.multiselectable?this.optionSelectionService.toggle(this.value):this.optionSelectionService.select(this.value),this.focusHandler.focusInput()},Object.defineProperty(e.prototype,"focusClass",{get:function(){return this.focusHandler.pseudoFocus.containsItem(this.optionProxy)},enumerable:!1,configurable:!0}),e}();Tn.decorators=[{type:t.Component,args:[{selector:"clr-option",template:'<ng-content></ng-content>\n <span *ngIf="selected" class="clr-sr-only"> {{ commonStrings.keys.comboboxSelected }} </span> ',providers:[K],host:{"[class.clr-combobox-option]":"true","[attr.role]":'"option"',"[attr.tabindex]":"-1","[attr.id]":"optionId"}}]}],Tn.ctorParameters=function(){return[{type:t.ElementRef},{type:H},{type:_n},{type:Cn},{type:String,decorators:[{type:t.Inject,args:[W]}]}]},Tn.propDecorators={optionId:[{type:t.Input,args:["id"]}],value:[{type:t.Input,args:["clrValue"]}],selected:[{type:t.HostBinding,args:["class.active"]}],onClick:[{type:t.HostListener,args:["click"]}],focusClass:[{type:t.HostBinding,args:["class.clr-focus"]}]};var xn=new t.InjectionToken("POPOVER_HOST_ANCHOR"),An=function(){};An.decorators=[{type:t.Injectable}];var kn=0,Rn=function(){function t(e,t,n,r,i,o,s,a,c){if(this.optionSelectionService=e,this.id=t,this.ariaService=n,this.el=r,this.commonStrings=i,this.focusHandler=o,this.toggleService=s,this.document=c,this.loading=!1,this.subscriptions=[],!a)throw new Error("clr-options should only be used inside of a clr-combobox");this.optionsId||(this.optionsId="clr-options-"+kn++)}return t.prototype.searchText=function(e){return this.commonStrings.parse(this.commonStrings.keys.comboboxSearching,{INPUT:e})},Object.defineProperty(t.prototype,"emptyOptions",{get:function(){return!this.optionSelectionService.loading&&0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsId",{get:function(){return this.ariaService.ariaControls},set:function(e){this.ariaService.ariaControls=e,this.ariaService.ariaOwns=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this.focusHandler.addOptionValues(this._items.map((function(e){return e.optionProxy})))},enumerable:!1,configurable:!0}),t.prototype.loadingStateChange=function(t){this.loading=t===e.ClrLoadingState.LOADING},t.prototype.ngAfterViewInit=function(){var e=this;this.focusHandler.listbox=this.el.nativeElement,this.subscriptions.push(i.fromEvent(this.document,"scroll",{capture:!0}).subscribe((function(t){e.toggleService.open&&t.target!==e.el.nativeElement&&t.target!==e.focusHandler.textInput&&(e.toggleService.open=!1)})))},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},t}();Rn.decorators=[{type:t.Component,args:[{selector:"clr-options",template:'\n <div *ngIf="optionSelectionService.loading" class="clr-combobox-options-loading">\n <clr-spinner clrInline>\n {{ commonStrings.keys.loading }}\n </clr-spinner>\n <span class="clr-combobox-options-text">\n {{ searchText(optionSelectionService.currentInput) }}\n </span>\n </div>\n\n \x3c!-- Rendered if data set is empty --\x3e\n <div *ngIf="emptyOptions">\n <span class="clr-combobox-options-empty-text">\n {{ commonStrings.keys.comboboxNoResults }}\n </span>\n </div>\n\n \x3c!--Option Groups and Options will be projected here--\x3e\n <ng-content></ng-content>\n ',providers:[{provide:F,useExisting:Rn}],host:{"[class.clr-combobox-options]":"true","[attr.role]":'"listbox"',"[id]":"optionsId"}}]}],Rn.ctorParameters=function(){return[{type:Cn},{type:Number,decorators:[{type:t.Inject,args:[Ke]}]},{type:An},{type:t.ElementRef},{type:H},{type:_n},{type:v},{type:t.ElementRef,decorators:[{type:t.Optional},{type:t.Inject,args:[xn]}]},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]},Rn.propDecorators={optionsId:[{type:t.Input,args:["id"]}],items:[{type:t.ContentChildren,args:[Tn]}]};var Ln=function(){this.labelOffset=0};Ln.decorators=[{type:t.Injectable}];var jn=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,r,i)||this;return a.containerService=o,a.el=s,a}return oe(t,e),t.prototype.ngAfterContentInit=function(){this.label&&(this.containerService.labelText=this.label.labelText)},t.prototype.ngAfterViewInit=function(){this.containerService.labelOffset=this.controlContainer.nativeElement.offsetHeight-this.el.nativeElement.offsetHeight},t}(xe);jn.decorators=[{type:t.Component,args:[{selector:"clr-combobox-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()" #controlContainer>\n <ng-content select="clr-combobox"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n status="success"\n shape="check-circle"\n aria-hidden="true"\n ></cds-icon>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-combobox-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[ye,he,ue,be,Ln]}]}],jn.ctorParameters=function(){return[{type:ye},{type:fe,decorators:[{type:t.Optional}]},{type:be},{type:he},{type:Ln},{type:t.ElementRef}]},jn.propDecorators={controlContainer:[{type:t.ViewChild,args:["controlContainer"]}],label:[{type:t.ContentChild,args:[_e]}]};var Nn=function(e){this.template=e};Nn.decorators=[{type:t.Directive,args:[{selector:"[clrOptionSelected]"}]}],Nn.ctorParameters=function(){return[{type:t.TemplateRef}]},Nn.propDecorators={selected:[{type:t.Input,args:["clrOptionSelected"]}]};var Fn=function(){function e(e){this.renderer=e,this._unlistenFuncs=[]}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),e.prototype.reset=function(e){this._current=e},e.prototype.listenToArrowKeys=function(e){var t=this;this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowup",(function(){return!t.move(Sn.UP)}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowdown",(function(){return!t.move(Sn.DOWN)}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowleft",(function(){return!t.move(Sn.LEFT)}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowright",(function(){return!t.move(Sn.RIGHT)})))},e.prototype.registerContainer=function(e){var t=this;this.renderer.setAttribute(e,"tabindex","0"),this.listenToArrowKeys(e),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.space",(function(){return!t.activateCurrent()}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.enter",(function(){return!t.activateCurrent()})))},e.prototype.moveTo=function(e){void 0!==e&&(this.current&&this.current.blur(),e.focus(),this._current=e)},e.prototype.move=function(e){var t=this,n=!1;if(this.current){var r=this.current[e];if(r)(i.isObservable(r)?r:i.of(r)).subscribe((function(e){e&&(t.moveTo(e),n=!0)}))}return n},e.prototype.activateCurrent=function(){return!(!this.current||!this.current.activate)&&(this.current.activate(),!0)},e.prototype.detachListeners=function(){this._unlistenFuncs.forEach((function(e){return e()}))},e}();function Mn(e,t){return e||new Fn(t)}Fn.decorators=[{type:t.Injectable}],Fn.ctorParameters=function(){return[{type:t.Renderer2}]};var Vn={provide:Fn,useFactory:Mn,deps:[[new t.Optional,new t.SkipSelf,Fn],t.Renderer2]},Bn=function(n){function i(r,i,o,s,a,c,l,p,u,d,h,g,f,y,b){var m=n.call(this,r,jn,i,o,s,a)||this;return m.control=o,m.renderer=s,m.el=a,m.optionSelectionService=c,m.commonStrings=l,m.toggleService=p,m.positionService=u,m.controlStateService=d,m.containerService=h,m.platformId=g,m.ariaService=f,m.focusHandler=y,m.cdr=b,m.index=1,m.invalid=!1,m.focused=!1,m._searchText="",m.smartPosition={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START},m.placeholder="",m.clrInputChange=new t.EventEmitter(!1),m.clrOpenChange=m.toggleService.openChange,m.clrSelectionChange=m.optionSelectionService.selectionChanged,o&&(o.valueAccessor=m),m.optionSelectionService.selectionModel=new En,m.updateControlValue(),m}return oe(i,n),Object.defineProperty(i.prototype,"id",{get:function(){return this.controlIdService.id+"-combobox"},set:function(e){n.prototype.id=e},enumerable:!1,configurable:!0}),i.prototype.inputId=function(){return this.controlIdService.id},Object.defineProperty(i.prototype,"openState",{get:function(){return this.toggleService.open},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"searchText",{get:function(){return this._searchText},set:function(e){e!==this._searchText&&(this._searchText=e,this.clrInputChange.emit(this.searchText),this.optionSelectionService.currentInput=this.searchText)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"multiSelectModel",{get:function(){if(!this.multiSelect)throw Error("multiSelectModel is not available in single selection context");return this.optionSelectionService.selectionModel.model},enumerable:!1,configurable:!0}),i.prototype.loadingStateChange=function(t){var n=this;this.optionSelectionService.loading=t===e.ClrLoadingState.LOADING,this.positionService.realign(),t!==e.ClrLoadingState.LOADING&&r.isPlatformBrowser(this.platformId)&&setTimeout((function(){n.focusFirstActive()}))},Object.defineProperty(i.prototype,"disabled",{get:function(){return this.control&&this.control.disabled},enumerable:!1,configurable:!0}),i.prototype.unselect=function(e){this.disabled||this.optionSelectionService.unselect(e)},Object.defineProperty(i.prototype,"multiSelect",{get:function(){return this.optionSelectionService.multiselectable},set:function(e){this.optionSelectionService.selectionModel=e?new vn:new En,this.updateControlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaControls",{get:function(){return this.ariaService.ariaControls},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaOwns",{get:function(){return this.ariaService.ariaOwns},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaDescribedBySelection",{get:function(){return"selection-"+this.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"displayField",{get:function(){return this.optionSelectionService.displayField},enumerable:!1,configurable:!0}),i.prototype.onBlur=function(){this.onTouchedCallback(),"blur"===this.control.control.updateOn&&this.control.control.updateValueAndValidity(),this.focused=!1},i.prototype.onFocus=function(){this.focused=!0},i.prototype.getSelectionAriaLabel=function(){return this.containerService&&this.containerService.labelText?this.containerService.labelText+" "+this.commonStrings.keys.comboboxSelection:this.commonStrings.keys.comboboxSelection},i.prototype.onKeyUp=function(e){if(8===e.keyCode&&this.multiSelect&&0===this._searchText.length){var t=this.optionSelectionService.selectionModel.model;if(t&&t.length>0){var n=t[t.length-1];this.control.control.markAsTouched(),this.optionSelectionService.unselect(n)}}},i.prototype.initializeSubscriptions=function(){var e=this;this.subscriptions.push(this.optionSelectionService.selectionChanged.subscribe((function(t){e.updateInputValue(t),e.multiSelect&&e.positionService.realign(),e.multiSelect||!t||t.isEmpty()||(e.toggleService.open=!1),e.updateControlValue()}))),this.subscriptions.push(this.toggleService.openChange.subscribe((function(t){t&&e.focusFirstActive(),e.multiSelect?e.searchText="":e.searchText=e.getDisplayNames(e.optionSelectionService.selectionModel.model)[0]||""}))),this.subscriptions.push(this.toggleService.popoverAligned.subscribe((function(t){if(e.containerService){var n=t;n.getBoundingClientRect().top<e.el.nativeElement.getBoundingClientRect().top&&e.renderer.setStyle(t,"top",n.offsetTop+e.containerService.labelOffset+"px")}}))),this.controlStateService&&this.subscriptions.push(this.controlStateService.statusChanges.subscribe((function(t){e.invalid=t===ge.INVALID})))},i.prototype.focusFirstActive=function(){this.focusHandler.focusFirstActive()},i.prototype.updateInputValue=function(e){this.multiSelect||(this.searchText=e.model?this.getDisplayNames(e.model)[0]:"",this.searchText&&(this.optionSelectionService.currentInput=this.searchText))},i.prototype.updateControlValue=function(){this.onChangeCallback&&this.onChangeCallback(this.optionSelectionService.selectionModel.model)},i.prototype.writeValue=function(e){this.optionSelectionService.selectionModel.model=e,this.updateInputValue(this.optionSelectionService.selectionModel)},i.prototype.registerOnChange=function(e){this.onChangeCallback=e},i.prototype.getActiveDescendant=function(){var e=this.focusHandler.pseudoFocus.model;return e?e.id:null},i.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},i.prototype.setDisabledState=function(){},i.prototype.focusInput=function(){this.focusHandler.focusInput()},i.prototype.getDisplayNames=function(e){var t=this;return this.displayField?(Array.isArray(e)||(e=[e]),e.map((function(e){return e?e[t.displayField]:null}))):[this.optionSelectionService.selectionModel.model]},i.prototype.ngAfterContentInit=function(){this.initializeSubscriptions(),this.optionSelectionService.selectionModel.isEmpty()||this.updateInputValue(this.optionSelectionService.selectionModel)},i.prototype.ngAfterViewInit=function(){this.focusHandler.componentCdRef=this.cdr,this.focusHandler.textInput=this.textbox.nativeElement,this.focusHandler.trigger=this.trigger.nativeElement,this.el=this.textbox},i.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},i}(we);Bn.decorators=[{type:t.Component,args:[{selector:"clr-combobox",template:'\x3c!--\n* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n* This software is released under MIT license.\n* The full license information can be found in LICENSE in the root directory of this project.\n--\x3e\n\n\x3c!-- The (click) handler is needed to auto-focus on input field which can not currently occupy the whole\n width of the component, after being wrapped to a new line --\x3e\n<div\n class="clr-combobox-wrapper"\n clrPopoverAnchor\n (click)="focusInput()"\n [class.multi]="multiSelect"\n [class.invalid]="invalid"\n>\n <span\n *ngIf="multiSelect && optionSelectionService.selectionModel.model"\n role="grid"\n clrRovingTabindex\n [clrRovingTabindexDisabled]="control?.disabled"\n clrDirection="both"\n [attr.aria-label]="getSelectionAriaLabel()"\n [attr.aria-disabled]="control?.disabled? true: null"\n >\n <span *ngFor="let item of multiSelectModel; let i = index" class="label label-combobox-pill" role="row">\n <span role="gridcell">\n <span class="clr-combobox-pill-content" clrKeyFocusItem>\n <ng-container\n *ngIf="optionSelected"\n [ngTemplateOutlet]="optionSelected.template"\n [ngTemplateOutletContext]="{$implicit: optionSelectionService.selectionModel.model[i]}"\n >\n </ng-container>\n </span>\n </span>\n <span role="gridcell">\n <button\n clrKeyFocusItem\n type="button"\n class="clr-combobox-remove-btn"\n [disabled]="control?.disabled? true: null"\n [attr.aria-label]="commonStrings.keys.comboboxDelete + \' \' + optionSelectionService.selectionModel.toString(displayField, i)"\n (click)="unselect(item)"\n >\n <cds-icon shape="window-close" size="12"></cds-icon>\n </button>\n </span>\n </span>\n </span>\n\n <span class="clr-combobox-input-wrapper">\n <input\n #textboxInput\n type="text"\n [id]="inputId()"\n role="combobox"\n class="clr-input clr-combobox-input"\n [(ngModel)]="searchText"\n (blur)="onBlur()"\n (focus)="onFocus()"\n [attr.aria-expanded]="openState"\n [attr.aria-owns]="ariaOwns"\n aria-haspopup="listbox"\n aria-autocomplete="list"\n autocomplete="off"\n [attr.aria-invalid]="control?.invalid? true: null"\n [disabled]="control?.disabled? true: null"\n [attr.aria-activedescendant]="getActiveDescendant()"\n [attr.placeholder]="placeholder"\n aria-multiline="false"\n />\n </span>\n\n \x3c!-- No click handler, as it uses the handler on the .clr-combobox-wrapper --\x3e\n <button\n clrPopoverOpenCloseButton\n #trigger\n type="button"\n class="clr-combobox-trigger"\n tabindex="-1"\n [disabled]="control?.disabled || null"\n [attr.aria-label]="commonStrings.keys.comboboxOpen"\n >\n <cds-icon shape="angle" direction="down" size="12"></cds-icon>\n </button>\n\n <div class="clr-focus-indicator" [class.clr-focus]="focused"></div>\n</div>\n\n\x3c!-- Both close handlers are handled manually due to issues in Edge browser.\n Additionally \'outsideClickToClose\' has complex handling that\'s necessary\n to be manual due to the component architecture --\x3e\n<div role="dialog" *clrPopoverContent="openState at smartPosition; outsideClickToClose: false; scrollToClose: false">\n <ng-content></ng-content>\n</div>\n',providers:[v,{provide:xn,useExisting:t.ElementRef},Cn,{provide:F,useExisting:Bn},qe,An,Vn,Pn,v,I,x],host:{"[class.aria-required]":"true","[class.clr-combobox]":"true","[class.clr-combobox-disabled]":"control?.disabled"}}]}],Bn.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef},{type:Cn},{type:H},{type:v},{type:x},{type:ye,decorators:[{type:t.Optional}]},{type:Ln,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:An},{type:_n},{type:t.ChangeDetectorRef}]},Bn.propDecorators={textbox:[{type:t.ViewChild,args:["textboxInput"]}],trigger:[{type:t.ViewChild,args:["trigger"]}],optionSelected:[{type:t.ContentChild,args:[Nn]}],placeholder:[{type:t.Input,args:["placeholder"]}],multiSelect:[{type:t.Input,args:["clrMulti"]}],onKeyUp:[{type:t.HostListener,args:["keydown",["$event"]]}],clrInputChange:[{type:t.Output,args:["clrInputChange"]}],clrOpenChange:[{type:t.Output,args:["clrOpenChange"]}],clrSelectionChange:[{type:t.Output,args:["clrSelectionChange"]}]};var zn=function(){function e(e,t,n,i,o){var s=this;this.template=e,this.differs=t,this.optionService=n,this.positionService=i,this.vcr=o,this.subscriptions=[],this.filter="",this.differ=null,this.iterableProxy=new r.NgForOf(this.vcr,this.template,this.differs),this.subscriptions.push(n.inputChanged.subscribe((function(e){s.filter=e,s.updateItems()})))}return Object.defineProperty(e.prototype,"rawItems",{set:function(e){this._rawItems=e||[],this.updateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackBy",{set:function(e){this.iterableProxy.ngForTrackBy=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"field",{set:function(e){this._filterField=e,this.optionService.displayField=e},enumerable:!1,configurable:!0}),e.prototype.updateItems=function(){var e=this;this._rawItems&&void 0!==this.filter&&null!==this.filter&&(this._filterField?this.filteredItems=this._rawItems.filter((function(t){var n=t[e._filterField];return!!n&&n.toString().toLowerCase().indexOf(e.filter.toLowerCase().toString())>-1})):this.filteredItems=this._rawItems.filter((function(t){return"object"!=typeof t?t.toString().toLowerCase().indexOf(e.filter.toString().toLowerCase())>-1:Object.values(t).filter((function(t){return!!t&&t.toString().toLowerCase().indexOf(e.filter.toString().toLowerCase())>-1})).length>0})),this.iterableProxy.ngForOf=this.filteredItems)},e.prototype.ngDoCheck=function(){(this.differ||(this.differ=this.differs.find(this.filteredItems).create(this.iterableProxy.ngForTrackBy)),this.differ)&&(this.differ.diff(this.filteredItems)&&(this.iterableProxy.ngDoCheck(),this.positionService.realign()))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();zn.decorators=[{type:t.Directive,args:[{selector:"[clrOptionItems][clrOptionItemsOf]"}]}],zn.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.IterableDiffers},{type:Cn},{type:x},{type:t.ViewContainerRef}]},zn.propDecorators={rawItems:[{type:t.Input,args:["clrOptionItemsOf"]}],trackBy:[{type:t.Input,args:["clrOptionItemsTrackBy"]}],field:[{type:t.Input,args:["clrOptionItemsField"]}]};var Hn=function(){function e(){}return Object.defineProperty(e.prototype,"spinnerClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inlineClass",{get:function(){return this._inline},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrInline",{set:function(e){this._inline=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inverseClass",{get:function(){return this._inverse},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrInverse",{set:function(e){this._inverse=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"smallClass",{get:function(){return this._small},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrSmall",{set:function(e){this._small=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediumClass",{get:function(){return!this._small&&this._medium},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrMedium",{set:function(e){this._medium=Lt(e)},enumerable:!1,configurable:!0}),e}();Hn.decorators=[{type:t.Component,args:[{selector:"clr-spinner",template:" <ng-content></ng-content> ",host:{"[attr.aria-busy]":"true"}}]}],Hn.propDecorators={spinnerClass:[{type:t.HostBinding,args:["class.spinner"]}],inlineClass:[{type:t.HostBinding,args:["class.spinner-inline"]}],clrInline:[{type:t.Input,args:["clrInline"]}],inverseClass:[{type:t.HostBinding,args:["class.spinner-inverse"]}],clrInverse:[{type:t.Input,args:["clrInverse"]}],smallClass:[{type:t.HostBinding,args:["class.spinner-sm"]}],clrSmall:[{type:t.Input,args:["clrSmall"]}],mediumClass:[{type:t.HostBinding,args:["class.spinner-md"]}],clrMedium:[{type:t.Input,args:["clrMedium"]}]};var Gn,Wn=[Hn],Un=function(){};Un.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Wn],exports:[Wn]}]}],function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e.BOTH="both"}(Gn||(Gn={}));var Yn=function(){function e(e,t){this.elementRef=e,this.platformId=t}return Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),e.prototype.focus=function(){r.isPlatformBrowser(this.platformId)&&this.elementRef.nativeElement.focus()},e}();Yn.decorators=[{type:t.Directive,args:[{selector:"[clrKeyFocusItem]"}]}],Yn.ctorParameters=function(){return[{type:t.ElementRef},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var Kn=function(){function e(e){this.elementRef=e,this.direction=Gn.VERTICAL,this.focusOnLoad=!1,this.focusChange=new t.EventEmitter,this._current=0,this.subscriptions=[]}return Object.defineProperty(e.prototype,"focusableItems",{get:function(){return this._focusableItems?this._focusableItems:this.clrKeyFocusItems?this.clrKeyFocusItems.toArray():[]},set:function(e){Array.isArray(e)&&e.length&&(this._focusableItems=e,this.initializeFocus())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current!==e&&(this._current=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentItem",{get:function(){return this.focusableItems[this._current]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentItemElement",{get:function(){return this.currentItem.nativeElement?this.currentItem.nativeElement:this.currentItem},enumerable:!1,configurable:!0}),e.prototype.focusCurrent=function(){this.currentItem.focus(),this.focusChange.next(this._current)},e.prototype.moveTo=function(e){this.positionInRange(e)&&(this.current=e,this.focusCurrent())},e.prototype.ngAfterContentInit=function(){this.subscriptions.push(this.listenForItemUpdates()),this.initializeFocus()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.handleKeyboardEvent=function(e){if(this.currentItemElement!==e.target){var t=this.getItemPosition(e.target);this.positionInRange(t)&&(this.current=t)}this.prevKeyPressed(e)&&this.currentFocusIsNotFirstItem()?this.moveTo(this.current-1):this.nextKeyPressed(e)&&this.currentFocusIsNotLastItem()?this.moveTo(this.current+1):e.code===h.Home?this.moveTo(0):e.code===h.End&&this.moveTo(this.focusableItems.length-1),m(e)},e.prototype.setClickedItemCurrent=function(e){var t=this.getItemPosition(e.target);t>-1&&this.moveTo(t)},e.prototype.getItemPosition=function(e){return this._focusableItems?this.focusableItems.indexOf(e):this.focusableItems.map((function(e){return e.nativeElement})).indexOf(e)},e.prototype.positionInRange=function(e){return e>=0&&e<this.focusableItems.length},e.prototype.currentFocusIsNotFirstItem=function(){return this._current-1>=0},e.prototype.currentFocusIsNotLastItem=function(){return this._current+1<this.focusableItems.length},e.prototype.initializeFocus=function(){this.focusableItems&&this.focusableItems.length&&(this._current>=this.focusableItems.length&&(this._current=this.focusableItems.length-1),this.focusOnLoad&&(this.currentItem.focus(),this.focusChange.next()))},e.prototype.listenForItemUpdates=function(){var e=this;return this.clrKeyFocusItems.changes.subscribe((function(){e.initializeFocus()}))},e.prototype.nextKeyPressed=function(e){var t=b(e.key);switch(this.direction){case Gn.VERTICAL:return t===h.ArrowDown;case Gn.HORIZONTAL:return t===h.ArrowRight;case Gn.BOTH:return t===h.ArrowDown||t===h.ArrowRight;default:return!1}},e.prototype.prevKeyPressed=function(e){var t=b(e.key);switch(this.direction){case Gn.VERTICAL:return t===h.ArrowUp;case Gn.HORIZONTAL:return t===h.ArrowLeft;case Gn.BOTH:return t===h.ArrowUp||t===h.ArrowLeft;default:return!1}},e}();Kn.decorators=[{type:t.Component,args:[{selector:"[clrKeyFocus]",template:"<ng-content></ng-content>"}]}],Kn.ctorParameters=function(){return[{type:t.ElementRef}]},Kn.propDecorators={direction:[{type:t.Input,args:["clrDirection"]}],focusOnLoad:[{type:t.Input,args:["clrFocusOnLoad"]}],focusChange:[{type:t.Output,args:["clrFocusChange"]}],clrKeyFocusItems:[{type:t.ContentChildren,args:[Yn,{descendants:!0}]}],focusableItems:[{type:t.Input,args:["clrKeyFocus"]}],handleKeyboardEvent:[{type:t.HostListener,args:["keydown",["$event"]]}],setClickedItemCurrent:[{type:t.HostListener,args:["click",["$event"]]}]};var Zn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.renderer=n,r.disabled=!1,r}return oe(t,e),Object.defineProperty(t.prototype,"rovingIndexItems",{get:function(){return this.focusableItems},set:function(e){this.focusableItems=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rovingTabindexDisabled",{set:function(e){this.disabled=e,this.currentItem&&this.setTabindex(this.currentItem,e?-1:0)},enumerable:!1,configurable:!0}),t.prototype.handleKeyboardEvent=function(t){this.prevKeyPressed(t)&&this.currentFocusIsNotFirstItem()?this.updateTabindex(this.current-1):this.nextKeyPressed(t)&&this.currentFocusIsNotLastItem()?this.updateTabindex(this.current+1):t.code===h.Home?this.updateTabindex(0):t.code===h.End&&this.updateTabindex(this.focusableItems.length-1),e.prototype.handleKeyboardEvent.call(this,t)},t.prototype.setClickedItemCurrent=function(t){var n;(n=this.focusableItems[0].nativeElement?this.focusableItems.map((function(e){return e.nativeElement})).indexOf(t.target):this.focusableItems.indexOf(t.target))>-1&&this.updateTabindex(n),e.prototype.setClickedItemCurrent.call(this,t)},t.prototype.initializeFocus=function(){var t=this;this.focusableItems&&this.focusableItems.length&&(this.focusableItems.forEach((function(e){t.setTabindex(e,-1)})),this.current>=this.focusableItems.length&&(this.current=this.focusableItems.length-1),!this.disabled&&this.currentItem&&this.setTabindex(this.currentItem,0)),e.prototype.initializeFocus.call(this)},t.prototype.updateTabindex=function(e){this.setTabindex(this.currentItem,-1),this.setTabindex(this.focusableItems[e],0)},t.prototype.setTabindex=function(e,t){e instanceof HTMLElement?this.renderer.setAttribute(e,"tabindex",t.toString()):this.renderer.setAttribute(e.nativeElement,"tabindex",t.toString())},t}(Kn);Zn.decorators=[{type:t.Component,args:[{selector:"[clrRovingTabindex]",template:"<ng-content></ng-content>"}]}],Zn.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},Zn.propDecorators={rovingIndexItems:[{type:t.Input,args:["clrRovingTabindex"]}],rovingTabindexDisabled:[{type:t.Input,args:["clrRovingTabindexDisabled"]}]};var qn=[Kn,Zn,Yn],Xn=function(){};Xn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[qn],exports:[qn]}]}];var $n=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon,n.angleIcon,n.windowCloseIcon)};$n.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,y,Xn,Me,nt,j,Un],declarations:[Bn,jn,Rn,Tn,Nn,zn],exports:[Me,Bn,jn,Rn,Tn,Nn,nt,zn]}]}],$n.ctorParameters=function(){return[]};var Jn=function(){};Jn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],exports:[Me,Ue,$n,Gt,Yt,Jt,nn,sn,ln,dn,mn]}]}];var Qn=[M],er=function(){};er.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Qn],exports:[Qn]}]}];var tr=function(){function e(e){this.el=e,this.strict=!1,this.outsideClick=new t.EventEmitter(!1)}return e.prototype.documentClick=function(e){var t=e.target,n=this.el.nativeElement;t!==n&&(!this.strict&&n.contains(t)||this.outsideClick.emit(e))},e}();tr.decorators=[{type:t.Directive,args:[{selector:"[clrOutsideClick]"}]}],tr.ctorParameters=function(){return[{type:t.ElementRef}]},tr.propDecorators={strict:[{type:t.Input,args:["clrStrict"]}],outsideClick:[{type:t.Output,args:["clrOutsideClick"]}],documentClick:[{type:t.HostListener,args:["document:click",["$event"]]}]};var nr=[tr],rr=function(){};rr.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[nr],exports:[nr]}]}];var ir=function(){function e(){}return e.prototype.userDefinedWidth=function(e){e.classList.add("datagrid-cell-width-zero");var t=this.clientRect(e).width;return e.classList.remove("datagrid-cell-width-zero"),t},e.prototype.scrollBarWidth=function(e){return e.offsetWidth-e.clientWidth},e.prototype.scrollWidth=function(e){return e.scrollWidth||0},e.prototype.computedHeight=function(e){return parseInt(getComputedStyle(e).getPropertyValue("height"),10)},e.prototype.clientRect=function(e){var t=e.getBoundingClientRect();return{top:parseInt(t.top,10),bottom:parseInt(t.bottom,10),left:parseInt(t.left,10),right:parseInt(t.right,10),width:parseInt(t.width,10),height:parseInt(t.height,10)}},e.prototype.minWidth=function(e){return parseInt(getComputedStyle(e).getPropertyValue("min-width"),10)},e.prototype.focus=function(e){e.focus()},e}();ir.decorators=[{type:t.Injectable}];var or,sr=function(e){this.dragPosition=e.dragPosition,this.group=e.group,this.dragDataTransfer=e.dragDataTransfer,this.dropPointPosition=e.dropPointPosition};!function(e){e[e.DRAG_START=0]="DRAG_START",e[e.DRAG_MOVE=1]="DRAG_MOVE",e[e.DRAG_END=2]="DRAG_END",e[e.DRAG_ENTER=3]="DRAG_ENTER",e[e.DRAG_LEAVE=4]="DRAG_LEAVE",e[e.DROP=5]="DROP"}(or||(or={}));var ar=function(){function e(){this.dragStart=new i.Subject,this.dragMove=new i.Subject,this.dragEnd=new i.Subject,this.drop=new i.Subject}return Object.defineProperty(e.prototype,"dragStarted",{get:function(){return this.dragStart.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragMoved",{get:function(){return this.dragMove.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragEnded",{get:function(){return this.dragEnd.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropped",{get:function(){return this.drop.asObservable()},enumerable:!1,configurable:!0}),e.prototype.broadcast=function(e){switch(e.type){case or.DRAG_START:this.dragStart.next(e);break;case or.DRAG_MOVE:this.dragMove.next(e);break;case or.DRAG_END:this.dragEnd.next(e);break;case or.DROP:this.drop.next(e)}},e}();ar.ɵprov=l.ɵɵdefineInjectable({factory:function(){return new ar},token:ar,providedIn:"root"}),ar.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var cr=function(){function e(e,t,n){this.ngZone=e,this.renderer=t,this.eventBus=n,this.listeners=[],this.dragStart=new i.Subject,this.dragMove=new i.Subject,this.dragEnd=new i.Subject,this.hasDragStarted=!1,this.dragStartDelay=0}return Object.defineProperty(e.prototype,"dragStarted",{get:function(){return this.dragStart.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragMoved",{get:function(){return this.dragMove.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragEnded",{get:function(){return this.dragEnd.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragStartPosition",{get:function(){return this.initialPosition},enumerable:!1,configurable:!0}),e.prototype.attachDragListeners=function(e){this.draggableEl=e,this.listeners.push(this.customDragEvent(this.draggableEl,"mousedown","mousemove","mouseup")),this.listeners.push(this.customDragEvent(this.draggableEl,"touchstart","touchmove","touchend"))},e.prototype.detachDragListeners=function(){this.listeners&&this.listeners.map((function(e){return e()})),this.nestedListeners&&this.nestedListeners.map((function(e){return e()})),this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener()},e.prototype.getNativeEventObject=function(e){return e.hasOwnProperty("changedTouches")?e.changedTouches[0]:e},e.prototype.customDragEvent=function(e,t,n,r){var i=this;return this.renderer.listen(e,t,(function(e){i.initialPosition={pageX:i.getNativeEventObject(e).pageX,pageY:i.getNativeEventObject(e).pageY},i.nestedListeners=[],i.nestedListeners.push(i.renderer.listen("document","selectstart",(function(e){e.preventDefault(),e.stopImmediatePropagation()}))),i.ngZone.runOutsideAngular((function(){i.checkDragStartBoundary(n),i.dragStartDelayTimeout=setTimeout((function(){i.checkDragStartBoundaryListener&&i.checkDragStartBoundaryListener(),i.hasDragStarted=!0,i.broadcast(e,or.DRAG_START),i.nestedListeners.push(i.renderer.listen("document",n,(function(e){e.stopImmediatePropagation(),i.hasDragStarted&&i.broadcast(e,or.DRAG_MOVE)})))}),i.dragStartDelay)})),i.nestedListeners.push(i.renderer.listen("document",r,(function(e){i.hasDragStarted&&(i.hasDragStarted=!1,i.broadcast(e,or.DRAG_END)),clearTimeout(i.dragStartDelayTimeout),i.nestedListeners.map((function(e){return e()})),i.checkDragStartBoundaryListener&&i.checkDragStartBoundaryListener()})))}))},e.prototype.checkDragStartBoundary=function(e){var t=this;this.checkDragStartBoundaryListener=this.renderer.listen("document",e,(function(e){var n=Math.abs(t.getNativeEventObject(e).pageX-t.initialPosition.pageX),r=Math.abs(t.getNativeEventObject(e).pageY-t.initialPosition.pageY);(n>1||r>1)&&(clearTimeout(t.dragStartDelayTimeout),t.checkDragStartBoundaryListener&&t.checkDragStartBoundaryListener())}))},e.prototype.broadcast=function(e,t){var n=this.generateDragEvent(e,t);switch(n.type){case or.DRAG_START:this.dragStart.next(n);break;case or.DRAG_MOVE:this.dragMove.next(n);break;case or.DRAG_END:this.dragEnd.next(n)}n.ghostElement=this.ghostElement,n.dropPointPosition=this.dropPointPosition,this.eventBus.broadcast(n)},e.prototype.generateDragEvent=function(e,t){var n=this.getNativeEventObject(e);return{type:t,dragPosition:{pageX:n.pageX,pageY:n.pageY,moveX:n.pageX-this.initialPosition.pageX,moveY:n.pageY-this.initialPosition.pageY},group:this.group,dragDataTransfer:this.dragDataTransfer,ghostElement:this.ghostElement}},e}();cr.decorators=[{type:t.Injectable}],cr.ctorParameters=function(){return[{type:t.NgZone},{type:t.Renderer2},{type:ar}]};var lr=function(){function e(e){this.domAdapter=e}return e.prototype.capture=function(e,t){this.draggableElClientRect=this.domAdapter.clientRect(e),this.snapshotDragEvent=t},e.prototype.discard=function(){delete this.draggableElClientRect,delete this.snapshotDragEvent},Object.defineProperty(e.prototype,"hasDraggableState",{get:function(){return!!this.snapshotDragEvent&&!!this.draggableElClientRect},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientRect",{get:function(){return this.draggableElClientRect},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragEvent",{get:function(){return this.snapshotDragEvent},enumerable:!1,configurable:!0}),e}();lr.decorators=[{type:t.Injectable}],lr.ctorParameters=function(){return[{type:ir}]};var pr=function(){function e(e,t,n,r,i){var o=this;if(this.el=e,this.dragEventListener=t,this.draggableSnapshot=n,this.renderer=r,this.ngZone=i,this.subscriptions=[],this.leaveAnimConfig={value:0,params:{top:"0px",left:"0px"}},!this.dragEventListener||!this.draggableSnapshot)throw new Error("The clr-draggable-ghost component can only be used inside of a clrDraggable directive.");this.draggableGhostEl=this.el.nativeElement,this.renderer.addClass(this.draggableGhostEl,"draggable-ghost"),this.dragEventListener.ghostElement=this.draggableGhostEl,this.setDefaultGhostSize(this.draggableGhostEl);var s={top:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageY-this.draggableSnapshot.clientRect.top:0,left:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageX-this.draggableSnapshot.clientRect.left:0},a=!1;this.subscriptions.push(this.dragEventListener.dragMoved.subscribe((function(e){a||(o.draggableSnapshot.hasDraggableState?o.animateToOnLeave(o.draggableSnapshot.clientRect.top+"px",o.draggableSnapshot.clientRect.left+"px"):o.animateToOnLeave(o.dragEventListener.dragStartPosition.pageY+"px",o.dragEventListener.dragStartPosition.pageY+"px"),a=!0);var t=o.findTopLeftPosition(e.dragPosition,s);o.setPositionStyle(o.draggableGhostEl,t.pageX,t.pageY),o.dragEventListener.dropPointPosition=o.findDropPointPosition(t)})))}return e.prototype.setDefaultGhostSize=function(e){this.draggableSnapshot.hasDraggableState&&this.setSizeStyle(e,this.draggableSnapshot.clientRect.width,this.draggableSnapshot.clientRect.height)},e.prototype.animateToOnLeave=function(e,t){var n=this;this.ngZone.run((function(){n.leaveAnimConfig={value:0,params:{top:e,left:t}}}))},e.prototype.findTopLeftPosition=function(e,t){return{pageX:e.pageX-t.left,pageY:e.pageY-t.top}},e.prototype.findDropPointPosition=function(e){return this.draggableSnapshot.hasDraggableState?{pageX:e.pageX+this.draggableSnapshot.clientRect.width/2,pageY:e.pageY+this.draggableSnapshot.clientRect.height/2}:e},e.prototype.setSizeStyle=function(e,t,n){this.renderer.setStyle(e,"width",t+"px"),this.renderer.setStyle(e,"height",n+"px")},e.prototype.setPositionStyle=function(e,t,n){this.renderer.setStyle(e,"left",t+"px"),this.renderer.setStyle(e,"top",n+"px"),this.renderer.setStyle(e,"visibility","visible")},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();pr.decorators=[{type:t.Component,args:[{selector:"clr-draggable-ghost",template:"<ng-content></ng-content>",animations:[s.trigger("leaveAnimation",[s.transition(":leave",[s.style({left:"*",top:"*"}),s.animate("0.2s ease-in-out",s.style({top:"{{top}}",left:"{{left}}"}))])])]}]}],pr.ctorParameters=function(){return[{type:t.ElementRef},{type:cr,decorators:[{type:t.Optional}]},{type:lr,decorators:[{type:t.Optional}]},{type:t.Renderer2},{type:t.NgZone}]},pr.propDecorators={leaveAnimConfig:[{type:t.HostBinding,args:["@leaveAnimation"]}]};var ur=function(){function e(e,t,n){var r=this;if(this.template=e,this.container=t,this.dragEventListener=n,this.subscriptions=[],!this.dragEventListener||!this.container)throw new Error("The *clrIfDragged directive can only be used inside of a clrDraggable directive.");this.subscriptions.push(this.dragEventListener.dragStarted.subscribe((function(){r.container.createEmbeddedView(r.template)}))),this.subscriptions.push(this.dragEventListener.dragEnded.subscribe((function(){r.container.clear()})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();ur.decorators=[{type:t.Directive,args:[{selector:"[clrIfDragged]"}]}],ur.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:cr,decorators:[{type:t.Optional}]}]};var dr=function(){function e(e,t){this.dragEventListener=e,this.renderer=t}return Object.defineProperty(e.prototype,"defaultHandleEl",{get:function(){return this._defaultHandleEl},set:function(e){this._defaultHandleEl=e,this._customHandleEl||this.makeElementHandle(this._defaultHandleEl)},enumerable:!1,configurable:!0}),e.prototype.makeElementHandle=function(e){this._defaultHandleEl&&this._defaultHandleEl!==e&&this.renderer.removeClass(this._defaultHandleEl,"drag-handle"),this.dragEventListener.attachDragListeners(e),this.renderer.addClass(e,"drag-handle")},Object.defineProperty(e.prototype,"customHandleEl",{get:function(){return this._customHandleEl},enumerable:!1,configurable:!0}),e.prototype.registerCustomHandle=function(e){this.dragEventListener.detachDragListeners(),this._customHandleEl=e,this.makeElementHandle(this._customHandleEl)},e.prototype.unregisterCustomHandle=function(){this.dragEventListener.detachDragListeners(),this.renderer.removeClass(this._customHandleEl,"drag-handle"),delete this._customHandleEl,this._defaultHandleEl&&this.makeElementHandle(this._defaultHandleEl)},e}();dr.decorators=[{type:t.Injectable}],dr.ctorParameters=function(){return[{type:cr},{type:t.Renderer2}]};var hr=function(){function e(e){this.renderer=e}return e.prototype.enter=function(){this.renderer.addClass(document.body,"in-drag")},e.prototype.exit=function(){this.renderer.removeClass(document.body,"in-drag")},e}();hr.decorators=[{type:t.Injectable}],hr.ctorParameters=function(){return[{type:t.Renderer2}]};var gr=function(){function e(e,n,r,i,o,s,a,c){this.el=e,this.dragEventListener=n,this.dragHandleRegistrar=r,this.viewContainerRef=i,this.cfr=o,this.injector=s,this.draggableSnapshot=a,this.globalDragMode=c,this.subscriptions=[],this.dragOn=!1,this.dragStartEmitter=new t.EventEmitter,this.dragMoveEmitter=new t.EventEmitter,this.dragEndEmitter=new t.EventEmitter,this.draggableEl=this.el.nativeElement,this.componentFactory=this.cfr.resolveComponentFactory(pr)}return Object.defineProperty(e.prototype,"dataTransfer",{set:function(e){this.dragEventListener.dragDataTransfer=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"group",{set:function(e){this.dragEventListener.group=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragStartDelay",{set:function(e){"number"==typeof e?this.dragEventListener.dragStartDelay=e:"string"==typeof e&&(this.dragEventListener.dragStartDelay=parseInt(e,10)||0)},enumerable:!1,configurable:!0}),e.prototype.createDefaultGhost=function(e){this.draggableSnapshot.capture(this.draggableEl,e),this.viewContainerRef.createComponent(this.componentFactory,0,this.injector,[[this.draggableEl.cloneNode(!0)]])},e.prototype.destroyDefaultGhost=function(){this.viewContainerRef.clear(),this.draggableSnapshot.discard()},e.prototype.ngAfterContentInit=function(){var e=this;this.dragHandleRegistrar.defaultHandleEl=this.draggableEl,this.subscriptions.push(this.dragEventListener.dragStarted.subscribe((function(t){e.globalDragMode.enter(),e.dragOn=!0,e.customGhost||e.createDefaultGhost(t),e.dragStartEmitter.emit(new sr(t))}))),this.subscriptions.push(this.dragEventListener.dragMoved.subscribe((function(t){e.dragMoveEmitter.emit(new sr(t))}))),this.subscriptions.push(this.dragEventListener.dragEnded.subscribe((function(t){e.globalDragMode.exit(),e.dragOn=!1,e.customGhost||e.destroyDefaultGhost(),e.dragEndEmitter.emit(new sr(t))})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.dragEventListener.detachDragListeners()},e}();gr.decorators=[{type:t.Directive,args:[{selector:"[clrDraggable]",providers:[cr,dr,lr,hr,ir],host:{"[class.draggable]":"true","[class.being-dragged]":"dragOn"}}]}],gr.ctorParameters=function(){return[{type:t.ElementRef},{type:cr},{type:dr},{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:lr},{type:hr}]},gr.propDecorators={customGhost:[{type:t.ContentChild,args:[ur]}],dataTransfer:[{type:t.Input,args:["clrDraggable"]}],group:[{type:t.Input,args:["clrGroup"]}],dragStartDelay:[{type:t.Input,args:["clrDragStartDelay"]}],dragStartEmitter:[{type:t.Output,args:["clrDragStart"]}],dragMoveEmitter:[{type:t.Output,args:["clrDragMove"]}],dragEndEmitter:[{type:t.Output,args:["clrDragEnd"]}]};var fr=function(){function e(e,n,r,i){this.el=e,this.eventBus=n,this.domAdapter=r,this.renderer=i,this.isDraggableMatch=!1,this._isDraggableOver=!1,this._dropTolerance={top:0,right:0,bottom:0,left:0},this.dragStartEmitter=new t.EventEmitter,this.dragMoveEmitter=new t.EventEmitter,this.dragEndEmitter=new t.EventEmitter,this.dragLeaveEmitter=new t.EventEmitter,this.dragEnterEmitter=new t.EventEmitter,this.dropEmitter=new t.EventEmitter,this.droppableEl=this.el.nativeElement}return Object.defineProperty(e.prototype,"isDraggableOver",{set:function(e){e?this.renderer.addClass(this.droppableEl,"draggable-over"):this.renderer.removeClass(this.droppableEl,"draggable-over"),this._isDraggableOver=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"group",{set:function(e){this._group=e},enumerable:!1,configurable:!0}),e.prototype.dropToleranceGenerator=function(e,t,n,r){return void 0===e&&(e=0),void 0===t&&(t=e),void 0===n&&(n=e),void 0===r&&(r=t),{top:e,right:t,bottom:n,left:r}},Object.defineProperty(e.prototype,"dropTolerance",{set:function(e){if("number"==typeof e)this._dropTolerance=this.dropToleranceGenerator(e);else if("string"==typeof e){var t=e.trim().split(/\s+/).map((function(e){return parseInt(e,10)}));this._dropTolerance=this.dropToleranceGenerator.apply(this,ce(t))}else e&&(this._dropTolerance=Object.assign(Object.assign({},this.dropToleranceGenerator(0)),e))},enumerable:!1,configurable:!0}),e.prototype.unsubscribeFrom=function(e){e&&e.unsubscribe()},e.prototype.checkGroupMatch=function(e){return!(!e&&this._group)&&(!(!this._group&&e)&&(!this._group&&!e||("string"==typeof e?"string"==typeof this._group?this._group===e:this._group.indexOf(e)>-1:"string"==typeof this._group?e.indexOf(this._group)>-1:this._group.some((function(t){return e.indexOf(t)>-1})))))},e.prototype.isInDropArea=function(e){return!!e&&(this.clientRect||(this.clientRect=this.domAdapter.clientRect(this.droppableEl)),e.pageX>=this.clientRect.left-this._dropTolerance.left&&e.pageX<=this.clientRect.right+this._dropTolerance.right&&e.pageY>=this.clientRect.top-this._dropTolerance.top&&e.pageY<=this.clientRect.bottom+this._dropTolerance.bottom)},e.prototype.onDragStart=function(e){var t=this;this.isDraggableMatch=this.checkGroupMatch(e.group),this.isDraggableMatch&&(this.dragStartEmitter.emit(new sr(e)),this.dragMoveSubscription=this.eventBus.dragMoved.subscribe((function(e){t.onDragMove(e)})),this.dragEndSubscription=this.eventBus.dragEnded.subscribe((function(e){t.onDragEnd(e)})))},e.prototype.onDragMove=function(e){var t=this.isInDropArea(e.dropPointPosition);if(!this._isDraggableOver&&t){this.isDraggableOver=!0;var n=Object.assign(Object.assign({},e),{type:or.DRAG_ENTER});this.eventBus.broadcast(n),this.dragEnterEmitter.emit(new sr(n))}else if(this._isDraggableOver&&!t){this.isDraggableOver=!1;var r=Object.assign(Object.assign({},e),{type:or.DRAG_LEAVE});this.eventBus.broadcast(r),this.dragLeaveEmitter.emit(new sr(r))}this.dragMoveEmitter.emit(new sr(e))},e.prototype.onDragEnd=function(e){if(this._isDraggableOver){e.ghostElement&&this.renderer.addClass(e.ghostElement,"dropped");var t=Object.assign(Object.assign({},e),{type:or.DROP});this.eventBus.broadcast(t),this.dropEmitter.emit(new sr(t)),this.isDraggableOver=!1}this.dragEndEmitter.emit(new sr(e)),this.unsubscribeFrom(this.dragMoveSubscription),this.unsubscribeFrom(this.dragEndSubscription),this.isDraggableMatch=!1,delete this.clientRect},e.prototype.ngOnInit=function(){var e=this;this.dragStartSubscription=this.eventBus.dragStarted.subscribe((function(t){e.onDragStart(t)}))},e.prototype.ngOnDestroy=function(){this.unsubscribeFrom(this.dragStartSubscription),this.unsubscribeFrom(this.dragMoveSubscription),this.unsubscribeFrom(this.dragEndSubscription)},e}();fr.decorators=[{type:t.Directive,args:[{selector:"[clrDroppable]",providers:[ir],host:{"[class.droppable]":"true","[class.draggable-match]":"isDraggableMatch"}}]}],fr.ctorParameters=function(){return[{type:t.ElementRef},{type:ar},{type:ir},{type:t.Renderer2}]},fr.propDecorators={group:[{type:t.Input,args:["clrGroup"]}],dropTolerance:[{type:t.Input,args:["clrDropTolerance"]}],dragStartEmitter:[{type:t.Output,args:["clrDragStart"]}],dragMoveEmitter:[{type:t.Output,args:["clrDragMove"]}],dragEndEmitter:[{type:t.Output,args:["clrDragEnd"]}],dragLeaveEmitter:[{type:t.Output,args:["clrDragLeave"]}],dragEnterEmitter:[{type:t.Output,args:["clrDragEnter"]}],dropEmitter:[{type:t.Output,args:["clrDrop"]}]};var yr=function(){function e(e,t){if(this.el=e,this.dragHandleRegistrar=t,!this.dragHandleRegistrar)throw new Error("The clrDragHandle directive can only be used inside of a clrDraggable directive.");this.dragHandleRegistrar.registerCustomHandle(this.el.nativeElement)}return e.prototype.ngOnDestroy=function(){this.dragHandleRegistrar.unregisterCustomHandle()},e}();yr.decorators=[{type:t.Directive,args:[{selector:"[clrDragHandle]",host:{"[class.drag-handle]":"true"}}]}],yr.ctorParameters=function(){return[{type:t.ElementRef},{type:dr,decorators:[{type:t.Optional}]}]};var br=[gr,fr,ur,yr,pr],mr=function(){};mr.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[br],entryComponents:[pr],exports:[br]}]}];var vr=function(){function e(e,t){this.element=e,this.domAdapter=t,this.startHeight=0}return Object.defineProperty(e.prototype,"expandAnimation",{get:function(){return{value:this.clrExpandTrigger,params:{startHeight:this.startHeight}}},enumerable:!1,configurable:!0}),e.prototype.animationDone=function(){this.updateStartHeight()},e.prototype.updateStartHeight=function(){this.startHeight=this.domAdapter.computedHeight(this.element.nativeElement)||0},e}();vr.decorators=[{type:t.Component,args:[{selector:"clr-expandable-animation",template:" <ng-content></ng-content> ",animations:[s.trigger("expandAnimation",[s.transition("true <=> false",[s.style({height:"{{startHeight}}px",overflow:"hidden"}),s.animate("0.2s ease-in-out",s.style({height:"*"}))])])],providers:[ir],styles:["\n :host {\n display: block;\n }\n "]}]}],vr.ctorParameters=function(){return[{type:t.ElementRef},{type:ir}]},vr.propDecorators={clrExpandTrigger:[{type:t.Input}],expandAnimation:[{type:t.HostBinding,args:["@expandAnimation"]}],animationDone:[{type:t.HostListener,args:["@expandAnimation.done"]}]};var Cr=[vr],Sr=function(){};Sr.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Cr],exports:[Cr]}]}];var Ir=new t.InjectionToken("FOCUS_ON_VIEW_INIT"),Or={provide:Ir,useValue:!0},Er=function(){function e(e,t,n,r,i){this.el=e,this.platformId=t,this.focusOnViewInit=n,this.renderer=i,this.directFocus=!0,this._isEnabled=this.focusOnViewInit,this.document=r}return e.prototype.onFocusout=function(){this.directFocus||(this.renderer.removeAttribute(this.el.nativeElement,"tabindex"),this.renderer.setStyle(this.el.nativeElement,"outline",null))},Object.defineProperty(e.prototype,"isEnabled",{set:function(e){this.focusOnViewInit&&"boolean"==typeof e&&(this._isEnabled=e)},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.focus()},e.prototype.focus=function(){r.isPlatformBrowser(this.platformId)&&this._isEnabled&&this.document&&this.document.activeElement!==this.el.nativeElement&&(this.el.nativeElement.focus(),this.document.activeElement!==this.el.nativeElement&&(this.directFocus=!1,this.renderer.setAttribute(this.el.nativeElement,"tabindex","-1"),this.renderer.setStyle(this.el.nativeElement,"outline","none"),this.el.nativeElement.focus()))},e}();Er.decorators=[{type:t.Directive,args:[{selector:"[clrFocusOnViewInit]"}]}],Er.ctorParameters=function(){return[{type:t.ElementRef},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:Boolean,decorators:[{type:t.Inject,args:[Ir]}]},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:t.Renderer2}]},Er.propDecorators={onFocusout:[{type:t.HostListener,args:["focusout"]}],isEnabled:[{type:t.Input,args:["clrFocusOnViewInit"]}]};var wr=[Er],_r=function(){};_r.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[wr],providers:[Or],exports:[wr]}]}];var Pr=function(){},Dr=function(){function e(){this._change=new i.Subject,this.nbChanges=0}return Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.changeStart=function(){this.nbChanges++},e.prototype.changeDone=function(){0==--this.nbChanges&&this._change.next()},e}();Dr.decorators=[{type:t.Injectable}];var Tr=function(){function e(e){this.stateDebouncer=e,this.preventEmit=!1,this.activated=!1,this._size=0,this._change=new i.Subject,this._sizeChange=new i.Subject,this._current=1}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){var t=this._size;e!==t&&(this.preventEmit||this.stateDebouncer.changeStart(),this._size=e,this._current=0===e?1:Math.floor(t/e*(this._current-1))+1,this.preventEmit||(this._change.next(this._current),this._sizeChange.next(this._size),this.stateDebouncer.changeDone())),this.preventEmit=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalItems",{get:function(){return this._totalItems||0},set:function(e){this._totalItems=e,this.current>this.last&&(this.current=this.last)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._last?this._last:this.size>0&&this.totalItems?Math.ceil(this.totalItems/this.size):1},set:function(e){this._last=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeChange",{get:function(){return this._sizeChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){e!==this._current&&(this.stateDebouncer.changeStart(),this._current=e,this._change.next(e),this.stateDebouncer.changeDone())},enumerable:!1,configurable:!0}),e.prototype.previous=function(){this.current>1&&this.current--},e.prototype.next=function(){this.current<this.last&&this.current++},Object.defineProperty(e.prototype,"firstItem",{get:function(){return 0===this._totalItems?-1:0===this.size?0:(this.current-1)*this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastItem",{get:function(){if(0===this._totalItems)return-1;if(0===this.size)return this.totalItems-1;var e=this.current*this.size-1;return this.totalItems&&(e=Math.min(e,this.totalItems-1)),e},enumerable:!1,configurable:!0}),e.prototype.resetPageSize=function(e){void 0===e&&(e=!1),this.preventEmit=e,this.size=0},e}();Tr.decorators=[{type:t.Injectable}],Tr.ctorParameters=function(){return[{type:Dr}]};var xr=function(){function e(e,t){this._page=e,this.stateDebouncer=t,this._change=new i.Subject,this._all=[]}return Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.hasActiveFilters=function(){var e,t;try{for(var n=se(this._all),r=n.next();!r.done;r=n.next()){var i=r.value.filter;if(i&&i.isActive())return!0}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!1},e.prototype.getActiveFilters=function(){var e,t,n=[];try{for(var r=se(this._all),i=r.next();!i.done;i=r.next()){var o=i.value.filter;o&&o.isActive()&&n.push(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.add=function(e){var t=this,n=e.changes.subscribe((function(){return t.resetPageAndEmitFilterChange([e])})),r=!1,i=new Ar(e,(function(){if(!r){n.unsubscribe();var i=t._all.findIndex((function(t){return t.filter===e}));i>=0&&t._all.splice(i,1),e.isActive()&&t.resetPageAndEmitFilterChange([]),r=!0}}));return this._all.push(i),e.isActive()&&this.resetPageAndEmitFilterChange([e]),i},e.prototype.accepts=function(e){var t,n;try{for(var r=se(this._all),i=r.next();!i.done;i=r.next()){var o=i.value.filter;if(o&&o.isActive()&&!o.accepts(e))return!1}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!0},e.prototype.resetPageAndEmitFilterChange=function(e){this.stateDebouncer.changeStart(),this._page.current=1,this._change.next(e),this.stateDebouncer.changeDone()},e}();xr.decorators=[{type:t.Injectable}],xr.ctorParameters=function(){return[{type:Tr},{type:Dr}]};var Ar=function(e,t){this.filter=e,this.unregister=t},kr=function(){function e(e){this.filters=e}return Object.defineProperty(e.prototype,"filter",{get:function(){return this.registered&&this.registered.filter},enumerable:!1,configurable:!0}),e.prototype.setFilter=function(e){this.deleteFilter(),e instanceof Ar?this.registered=e:e&&(this.registered=this.filters.add(e))},e.prototype.deleteFilter=function(){this.registered&&(this.registered.unregister(),delete this.registered)},e.prototype.ngOnDestroy=function(){this.deleteFilter()},e}();kr.decorators=[{type:t.Directive}],kr.ctorParameters=function(){return[{type:xr}]};var Rr=function(n){function i(r,i,o,s,a){var c=n.call(this,r)||this;return c.commonStrings=i,c.smartToggleService=o,c.platformId=s,c.popoverId=a,c.subs=[],c.ariaExpanded=!1,c.smartPosition={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.END,content:e.ClrAlignment.END},c._open=!1,c.openChange=new t.EventEmitter(!1),c.subs.push(o.openChange.subscribe((function(e){c.open=e,c.ariaExpanded=e}))),c}return oe(i,n),Object.defineProperty(i.prototype,"open",{get:function(){return this._open},set:function(e){e=!!e,this.open!==e&&(this.smartToggleService.open=e,this.openChange.emit(e),!e&&r.isPlatformBrowser(this.platformId)&&this.anchor.nativeElement.focus(),this._open=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"customFilter",{set:function(e){this.setFilter(e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"active",{get:function(){return!!this.filter&&this.filter.isActive()},enumerable:!1,configurable:!0}),i.prototype.ngOnDestroy=function(){n.prototype.ngOnDestroy.call(this),this.subs.forEach((function(e){return e.unsubscribe()}))},i}(kr);Rr.decorators=[{type:t.Component,args:[{selector:"clr-dg-filter",providers:[{provide:Pr,useExisting:Rr},K],template:'\n <button\n class="datagrid-filter-toggle"\n type="button"\n #anchor\n [attr.aria-label]="commonStrings.keys.datagridFilterAriaLabel"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-controls]="popoverId"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [class.datagrid-filter-open]="open"\n [class.datagrid-filtered]="active"\n >\n <cds-icon\n [attr.status]="active ? \'info\' : null"\n [attr.shape]="active ? \'filter-grid-circle\' : \'filter-grid\'"\n solid\n ></cds-icon>\n </button>\n\n <div\n class="datagrid-filter"\n [id]="popoverId"\n clrFocusTrap\n *clrPopoverContent="open; at: smartPosition; outsideClickToClose: true; scrollToClose: true"\n >\n <div class="datagrid-filter-close-wrapper">\n <button type="button" class="close" clrPopoverCloseButton>\n <cds-icon shape="window-close" [attr.title]="commonStrings.keys.close"></cds-icon>\n </button>\n </div>\n\n <ng-content></ng-content>\n </div>\n '}]}],Rr.ctorParameters=function(){return[{type:xr},{type:H},{type:v},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:String,decorators:[{type:t.Inject,args:[W]}]}]},Rr.propDecorators={anchor:[{type:t.ViewChild,args:["anchor",{read:t.ElementRef}]}],open:[{type:t.Input,args:["clrDgFilterOpen"]}],openChange:[{type:t.Output,args:["clrDgFilterOpenChange"]}],customFilter:[{type:t.Input,args:["clrDgFilter"]}]};var Lr=function(){function e(e){this.prop=e,e.indexOf(".")>=0&&(this.splitProp=e.split("."))}return e.prototype.getPropValue=function(e){var t,n;if(this.splitProp){var r=e;try{for(var i=se(this.splitProp),o=i.next();!o.done;o=i.next()){var s=o.value;if(null==r||void 0===r[s])return;r=r[s]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}return e[this.prop]},e}(),jr=function(){function e(e,t){void 0===t&&(t=!1),this.prop=e,this.exact=t,this.nestedProp=new Lr(e)}return e.prototype.accepts=function(e,t){var n=this.nestedProp.getPropValue(e);return void 0!==n&&(this.exact?(""+n).toLowerCase()===t:(""+n).toLowerCase().indexOf(t)>=0)},e}(),Nr=function(){function e(e){this.filterFn=e,this._changes=new i.Subject,this._lowerCaseValue="",this._rawValue=""}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowerCaseValue",{get:function(){return this._lowerCaseValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._rawValue},set:function(e){e||(e=""),e!==this._rawValue&&(this._rawValue=e,this._lowerCaseValue=e.toLowerCase().trim(),this._changes.next(e))},enumerable:!1,configurable:!0}),e.prototype.isActive=function(){return!!this.value},e.prototype.accepts=function(e){return this.filterFn.accepts(e,this.lowerCaseValue)},Object.defineProperty(e.prototype,"state",{get:function(){return this.filterFn instanceof jr?{property:this.filterFn.prop,value:this.value}:this},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return t instanceof e&&(t.filterFn instanceof jr?this.filterFn instanceof jr&&t.filterFn.prop===this.filterFn.prop&&t.value===this.value:t===this)},e}(),Fr=function(e){function n(n,r,i,o){var s=e.call(this,n)||this;return s.domAdapter=r,s.commonStrings=i,s.smartToggleService=o,s.subs=[],s.open=!1,s.filterValueChange=new t.EventEmitter,s}return oe(n,e),Object.defineProperty(n.prototype,"customStringFilter",{set:function(e){e instanceof Ar?this.setFilter(e):this.setFilter(new Nr(e)),this.initFilterValue&&(this.value=this.initFilterValue,delete this.initFilterValue)},enumerable:!1,configurable:!0}),n.prototype.ngAfterViewInit=function(){var e=this;this.subs.push(this.smartToggleService.openChange.subscribe((function(t){e.open=t,setTimeout((function(){e.domAdapter.focus(e.input.nativeElement)}))})))},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.subs.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(n.prototype,"value",{get:function(){return this.filter.value},set:function(e){this.filter&&"string"==typeof e?(e||(e=""),e!==this.filter.value&&(this.filter.value=e,this.filterValueChange.emit(e))):this.initFilterValue=e},enumerable:!1,configurable:!0}),n}(kr);Fr.decorators=[{type:t.Component,args:[{selector:"clr-dg-string-filter",providers:[{provide:Pr,useExisting:Fr}],template:'\n <clr-dg-filter [clrDgFilter]="registered" [(clrDgFilterOpen)]="open">\n <input\n #input\n type="text"\n name="search"\n [(ngModel)]="value"\n class="clr-input"\n [attr.aria-label]="commonStrings.keys.filterItems"\n />\n </clr-dg-filter>\n '}]}],Fr.ctorParameters=function(){return[{type:xr},{type:ir},{type:H},{type:v}]},Fr.propDecorators={customStringFilter:[{type:t.Input,args:["clrDgStringFilter"]}],input:[{type:t.ViewChild,args:["input"]}],filterContainer:[{type:t.ViewChild,args:[Rr]}],value:[{type:t.Input,args:["clrFilterValue"]}],filterValueChange:[{type:t.Output,args:["clrFilterValueChange"]}]};var Mr=function(){function e(e,t){void 0===t&&(t=!1),this.prop=e,this.exact=t,this.nestedProp=new Lr(e)}return e.prototype.accepts=function(e,t,n){var r=this.nestedProp.getPropValue(e);return!(null!==t&&r<t)&&!(null!==n&&r>n)},e}(),Vr=function(){function e(e){this.filterFn=e,this._changes=new i.Subject,this._low=null,this._high=null}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return[this._low,this._high]},set:function(e){var t=e[0],n=e[1];t===this._low&&n===this._high||(this._low=t,this._high=n,this._changes.next([this._low,this._high]))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"low",{get:function(){return this._low},set:function(e){e!==this._low&&(this._low=e,this._changes.next([this._low,this._high]))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"high",{get:function(){return this._high},set:function(e){e!==this._high&&(this._high=e,this._changes.next([this._low,this._high]))},enumerable:!1,configurable:!0}),e.prototype.isActive=function(){return null!==this._low||null!==this.high},e.prototype.accepts=function(e){return this.filterFn.accepts(e,this._low,this._high)},Object.defineProperty(e.prototype,"state",{get:function(){return this.filterFn instanceof Mr?{property:this.filterFn.prop,low:this._low,high:this._high}:this},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return t instanceof e&&(t.filterFn instanceof Mr?this.filterFn instanceof Mr&&t.filterFn.prop===this.filterFn.prop&&t.low===this._low&&t.high===this._high:t===this)},e}(),Br=function(e){function n(n,r,i,o){var s=e.call(this,n)||this;return s.domAdapter=r,s.commonStrings=i,s.popoverToggleService=o,s.subscriptions=[],s.open=!1,s.filterValueChange=new t.EventEmitter,s}return oe(n,e),n.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){e.unsubscribe()}))},Object.defineProperty(n.prototype,"customNumericFilter",{set:function(e){e instanceof Ar?this.setFilter(e):this.setFilter(new Vr(e)),this.initFilterValues&&(this.value=this.initFilterValues,delete this.initFilterValues)},enumerable:!1,configurable:!0}),n.prototype.ngAfterViewInit=function(){var e=this;this.subscriptions.push(this.popoverToggleService.openChange.subscribe((function(t){e.open=t,setTimeout((function(){e.domAdapter.focus(e.input.nativeElement)}))})))},Object.defineProperty(n.prototype,"value",{get:function(){return[this.filter.low,this.filter.high]},set:function(e){this.filter&&Array.isArray(e)?!e||e[0]===this.filter.low&&e[1]===this.filter.high||("number"==typeof e[0]?this.filter.low=e[0]:this.filter.low=null,"number"==typeof e[1]?this.filter.high=e[1]:this.filter.high=null,this.filterValueChange.emit(e)):this.initFilterValues=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"low",{get:function(){return"number"==typeof this.filter.low&&isFinite(this.filter.low)?this.filter.low:null},set:function(e){"number"==typeof e&&e!==this.filter.low?(this.filter.low=e,this.filterValueChange.emit([this.filter.low,this.filter.high])):"number"!=typeof e&&(this.filter.low=null,this.filterValueChange.emit([this.filter.low,this.filter.high]))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"high",{get:function(){return"number"==typeof this.filter.high&&isFinite(this.filter.high)?this.filter.high:null},set:function(e){"number"==typeof e&&e!==this.filter.high?(this.filter.high=e,this.filterValueChange.emit([this.filter.low,this.filter.high])):"number"!=typeof e&&(this.filter.high=null,this.filterValueChange.emit([this.filter.low,this.filter.high]))},enumerable:!1,configurable:!0}),n}(kr);Br.decorators=[{type:t.Component,args:[{selector:"clr-dg-numeric-filter",providers:[{provide:Pr,useExisting:Br}],template:'\n <clr-dg-filter [clrDgFilter]="registered" [(clrDgFilterOpen)]="open">\n <input\n class="datagrid-numeric-filter-input"\n #input_low\n type="number"\n name="low"\n [(ngModel)]="low"\n [placeholder]="commonStrings.keys.minValue"\n [attr.aria-label]="commonStrings.keys.minValue"\n />\n <span class="datagrid-filter-input-spacer"></span>\n <input\n class="datagrid-numeric-filter-input"\n #input_high\n type="number"\n name="high"\n [(ngModel)]="high"\n [placeholder]="commonStrings.keys.maxValue"\n [attr.aria-label]="commonStrings.keys.maxValue"\n />\n </clr-dg-filter>\n '}]}],Br.ctorParameters=function(){return[{type:xr},{type:ir},{type:H},{type:v}]},Br.propDecorators={customNumericFilter:[{type:t.Input,args:["clrDgNumericFilter"]}],input:[{type:t.ViewChild,args:["input_low"]}],filterContainer:[{type:t.ViewChild,args:[Rr]}],value:[{type:t.Input,args:["clrFilterValue"]}],filterValueChange:[{type:t.Output,args:["clrFilterValueChange"]}]};var zr=function(){function e(){this._chocolate=new i.Subject,this.disableChocolateCheck=!1}return Object.defineProperty(e.prototype,"chocolate",{get:function(){return this._chocolate.asObservable()},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewChecked=function(){this.disableChocolateCheck||this._chocolate.next()},e}();zr.decorators=[{type:t.Directive}];var Hr=function(){function e(e,t){var n=this;this.subscription=t.chocolate.subscribe((function(){n.latestFlavor!==n.flavor&&(t.disableChocolateCheck=!0,e.detectChanges(),t.disableChocolateCheck=!1)}))}return e.prototype.ngAfterContentChecked=function(){this.latestFlavor=this.flavor},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}();Hr.decorators=[{type:t.Directive}],Hr.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:zr}]};var Gr=function(){function e(){this.actionableCount=0}return e.prototype.register=function(){this.actionableCount++},e.prototype.unregister=function(){this.actionableCount--},Object.defineProperty(e.prototype,"hasActionableRow",{get:function(){return this.actionableCount>0},enumerable:!1,configurable:!0}),e}();Gr.decorators=[{type:t.Injectable}];var Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t}(zr);Wr.decorators=[{type:t.Directive,args:[{selector:"clr-datagrid"}]}];var Ur=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");return(i=e.call(this,t,n)||this).rowActions=r,i}return oe(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.rowActions.hasActionableRow},enumerable:!1,configurable:!0}),t}(Hr);Ur.decorators=[{type:t.Directive,args:[{selector:"clr-datagrid, clr-dg-row"}]}],Ur.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Wr,decorators:[{type:t.Optional}]},{type:Gr}]};var Yr=function(){function e(){this.toggleState=!1,this._state=new i.BehaviorSubject(this.toggleState),this._enabled=!1}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stateChange",{get:function(){return this._state.asObservable()},enumerable:!1,configurable:!0}),e.prototype.close=function(){this.toggleState=!1,this._state.next(this.toggleState),this.button&&(this.button.focus(),this.button=null)},e.prototype.open=function(e,t){this.cache=e,this.button=t,this.toggleState=!0,this._state.next(this.toggleState)},e.prototype.toggle=function(e,t){this.isRowOpen(e)||!e?this.close():this.open(e,t)},Object.defineProperty(e.prototype,"state",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e.prototype.isRowOpen=function(e){return!(!this.toggleState||this.cache!==e)},Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0===this.toggleState},enumerable:!1,configurable:!0}),e}();Yr.decorators=[{type:t.Injectable}];var Kr=function(){function e(e){this.detailService=e,this.expandableCount=0}return e.prototype.register=function(){this.expandableCount++},e.prototype.unregister=function(){this.expandableCount--},Object.defineProperty(e.prototype,"hasExpandableRow",{get:function(){return!this.detailService.enabled&&this.expandableCount>0},enumerable:!1,configurable:!0}),e}();Kr.decorators=[{type:t.Injectable}],Kr.ctorParameters=function(){return[{type:Yr}]};var Zr=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");return(i=e.call(this,t,n)||this).expandableCount=r,i}return oe(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.expandableCount.hasExpandableRow},enumerable:!1,configurable:!0}),t}(Hr);Zr.decorators=[{type:t.Directive,args:[{selector:"clr-datagrid, clr-dg-row"}]}],Zr.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Wr,decorators:[{type:t.Optional}]},{type:Kr}]};var qr,Xr=function(){function e(e){this.prop=e,this.nestedProp=new Lr(e)}return e.prototype.compare=function(e,t){var n=this.nestedProp.getPropValue(e),r=this.nestedProp.getPropValue(t);return"string"==typeof n&&(n=n.toLowerCase()),"string"==typeof r&&(r=r.toLowerCase()),null==n?null==r?0:1:null==r||n<r?-1:n>r?1:0},e}();e.ClrDatagridSortOrder=void 0,(qr=e.ClrDatagridSortOrder||(e.ClrDatagridSortOrder={}))[qr.UNSORTED=0]="UNSORTED",qr[qr.ASC=1]="ASC",qr[qr.DESC=-1]="DESC";var $r=function(){function e(e){this.stateDebouncer=e,this._reverse=!1,this._change=new i.Subject}return Object.defineProperty(e.prototype,"comparator",{get:function(){return this._comparator},set:function(e){this.stateDebouncer.changeStart(),this._comparator=e,this.emitChange(),this.stateDebouncer.changeDone()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(e){this.stateDebouncer.changeStart(),this._reverse=e,this.emitChange(),this.stateDebouncer.changeDone()},enumerable:!1,configurable:!0}),e.prototype.emitChange=function(){this._change.next(this)},Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.toggle=function(e,t){this.stateDebouncer.changeStart(),this.comparator===e?this._reverse=void 0!==t&&t||!this._reverse:(this._comparator=e,this._reverse=void 0!==t&&t),this.emitChange(),this.stateDebouncer.changeDone()},e.prototype.clear=function(){this.comparator=null},e.prototype.compare=function(e,t){return(this.reverse?-1:1)*this.comparator.compare(e,t)},e}();$r.decorators=[{type:t.Injectable}],$r.ctorParameters=function(){return[{type:Dr}]};var Jr=function(){function e(){this._dynamic=!1}return e.prototype.ngAfterViewInit=function(){this.columnView=this.templateRef.createEmbeddedView(null)},e.prototype.ngOnDestroy=function(){this.columnView.destroy()},e}();Jr.decorators=[{type:t.Component,args:[{selector:"dg-wrapped-column",template:"\n <ng-template #columnPortal>\n <ng-content></ng-content>\n </ng-template>\n "}]}],Jr.propDecorators={templateRef:[{type:t.ViewChild,args:["columnPortal"]}]};var Qr=function(n){function r(r,i,o,s,a,c){var l=n.call(this,i)||this;return l._sort=r,l.vcr=o,l.detailService=s,l.changeDetectorRef=a,l.commonStrings=c,l.showSeparator=!0,l.subscriptions=[],l._colType="string",l._sorted=!1,l.sortedChange=new t.EventEmitter,l._sortOrder=e.ClrDatagridSortOrder.UNSORTED,l.sortOrderChange=new t.EventEmitter,l.customFilter=!1,l.filterValueChange=new t.EventEmitter,l.subscriptions.push(l.listenForSortingChanges()),l.subscriptions.push(l.listenForDetailPaneChanges()),l}return oe(r,n),r.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},r.prototype.listenForDetailPaneChanges=function(){var e=this;return this.detailService.stateChange.subscribe((function(t){e.showSeparator!==!t&&(e.showSeparator=!t,e.changeDetectorRef.markForCheck())}))},r.prototype.listenForSortingChanges=function(){var t=this;return this._sort.change.subscribe((function(n){t.changeDetectorRef.markForCheck(),t.sortOrder!==e.ClrDatagridSortOrder.UNSORTED&&n.comparator!==t._sortBy&&(t._sortOrder=e.ClrDatagridSortOrder.UNSORTED,t.sortOrderChange.emit(t._sortOrder),t.sortIcon=null,t._sortDirection=null),t.sorted&&n.comparator!==t._sortBy&&(t._sorted=!1,t.sortedChange.emit(!1))}))},Object.defineProperty(r.prototype,"colType",{get:function(){return this._colType},set:function(e){this._colType=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"field",{get:function(){return this._field},set:function(e){"string"==typeof e&&(this._field=e,this._sortBy||(this._sortBy=new Xr(e)))},enumerable:!1,configurable:!0}),r.prototype.setupDefaultFilter=function(e,t){"number"===t?this.setFilter(new Vr(new Mr(e))):"string"===t&&this.setFilter(new Nr(new jr(e))),this.filter&&this.initFilterValue&&(this.updateFilterValue=this.initFilterValue,delete this.initFilterValue)},r.prototype.ngOnChanges=function(e){e.colType&&e.colType.currentValue&&e.colType.currentValue!==e.colType.previousValue&&!this.customFilter&&!this.filter&&this.colType&&this.field&&this.setupDefaultFilter(this.field,this.colType),e.field&&e.field.currentValue&&e.field.currentValue!==e.field.previousValue&&!this.customFilter&&this.colType&&this.setupDefaultFilter(this.field,this.colType)},Object.defineProperty(r.prototype,"sortBy",{get:function(){return this._sortBy},set:function(e){"string"==typeof e?this._sortBy=new Xr(e):e?this._sortBy=e:this.field?this._sortBy=new Xr(this.field):delete this._sortBy},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sortable",{get:function(){return!!this._sortBy},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sorted",{get:function(){return this._sorted},set:function(e){!e&&this.sorted?(this._sorted=!1,this._sort.clear()):e&&!this.sorted&&this.sort()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sortOrder",{get:function(){return this._sortOrder},set:function(t){if(void 0!==t&&this._sortOrder!==t)switch(t){default:case e.ClrDatagridSortOrder.UNSORTED:this._sort.clear();break;case e.ClrDatagridSortOrder.ASC:this.sort(!1);break;case e.ClrDatagridSortOrder.DESC:this.sort(!0)}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ariaSort",{get:function(){switch(this._sortOrder){default:case e.ClrDatagridSortOrder.UNSORTED:return"none";case e.ClrDatagridSortOrder.ASC:return"ascending";case e.ClrDatagridSortOrder.DESC:return"descending"}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sortDirection",{get:function(){return this._sortDirection},enumerable:!1,configurable:!0}),r.prototype.sort=function(t){this.sortable&&(this._sort.toggle(this._sortBy,t),this._sortOrder=this._sort.reverse?e.ClrDatagridSortOrder.DESC:e.ClrDatagridSortOrder.ASC,this._sortDirection=this._sortOrder===e.ClrDatagridSortOrder.DESC?"down":"up",this.sortIcon=this._sortOrder===e.ClrDatagridSortOrder.DESC?"arrow down":"arrow",this.sortOrderChange.emit(this._sortOrder),this._sorted=!0,this.sortedChange.emit(!0))},Object.defineProperty(r.prototype,"projectedFilter",{set:function(e){e&&(this.deleteFilter(),this.customFilter=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"updateFilterValue",{set:function(e){this.filter?this.filter instanceof Nr?(e&&"string"==typeof e||(e=""),e!==this.filter.value&&(this.filter.value=e)):this.filter instanceof Vr&&(e&&e instanceof Array||(e=[null,null]),2!==e.length||e[0]===this.filter.value[0]&&e[1]===this.filter.value[1]||(this.filter.value=e)):this.initFilterValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filterValue",{get:function(){return this.filter instanceof Nr||this.filter instanceof Vr?this.filter.value:null},set:function(e){(this.filter instanceof Nr||this.filter instanceof Vr)&&(this.updateFilterValue=e,this.filterValueChange.emit(this.filter.value))},enumerable:!1,configurable:!0}),r.prototype.ngOnInit=function(){this.wrappedInjector=new le(Jr,this.vcr)},Object.defineProperty(r.prototype,"_view",{get:function(){return this.wrappedInjector.get(Jr,this.vcr).columnView},enumerable:!1,configurable:!0}),r}(kr);Qr.decorators=[{type:t.Component,args:[{selector:"clr-dg-column",template:'\n <div class="datagrid-column-flex">\n <button class="datagrid-column-title" *ngIf="sortable" (click)="sort()" type="button">\n <ng-container *ngTemplateOutlet="columnTitle"></ng-container>\n <cds-icon\n *ngIf="sortDirection"\n shape="arrow"\n [attr.direction]="sortDirection"\n aria-hidden="true"\n class="sort-icon"\n ></cds-icon>\n </button>\n \x3c!-- I\'m really not happy with that select since it\'s not very scalable --\x3e\n <ng-content select="clr-dg-filter, clr-dg-string-filter, clr-dg-numeric-filter"></ng-content>\n\n <clr-dg-string-filter\n *ngIf="field && !customFilter && colType == \'string\'"\n [clrDgStringFilter]="registered"\n [(clrFilterValue)]="filterValue"\n ></clr-dg-string-filter>\n\n <clr-dg-numeric-filter\n *ngIf="field && !customFilter && colType == \'number\'"\n [clrDgNumericFilter]="registered"\n [(clrFilterValue)]="filterValue"\n ></clr-dg-numeric-filter>\n\n <ng-template #columnTitle>\n <ng-content></ng-content>\n </ng-template>\n\n <span class="datagrid-column-title" *ngIf="!sortable">\n <ng-container *ngTemplateOutlet="columnTitle"></ng-container>\n </span>\n\n <clr-dg-column-separator *ngIf="showSeparator"></clr-dg-column-separator>\n </div>\n ',providers:[x,I,v],host:{"[class.datagrid-column]":"true","[attr.aria-sort]":"ariaSort",role:"columnheader"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}],Qr.ctorParameters=function(){return[{type:$r},{type:xr},{type:t.ViewContainerRef},{type:Yr},{type:t.ChangeDetectorRef},{type:H}]},Qr.propDecorators={colType:[{type:t.Input,args:["clrDgColType"]}],field:[{type:t.Input,args:["clrDgField"]}],sortBy:[{type:t.Input,args:["clrDgSortBy"]}],sorted:[{type:t.Input,args:["clrDgSorted"]}],sortedChange:[{type:t.Output,args:["clrDgSortedChange"]}],sortOrder:[{type:t.Input,args:["clrDgSortOrder"]}],sortOrderChange:[{type:t.Output,args:["clrDgSortOrderChange"]}],projectedFilter:[{type:t.ContentChild,args:[Pr]}],updateFilterValue:[{type:t.Input,args:["clrFilterValue"]}],filterValueChange:[{type:t.Output,args:["clrFilterValueChange"]}]};var ei=function(){function e(e,t,n){this._filters=e,this._sort=t,this._page=n,this.loading=!1,this.trackBy=function(e,t){return t},this._smart=!1,this._displayed=[],this._change=new i.Subject,this._allChanges=new i.Subject}return e.prototype.destroy=function(){this._filtersSub&&this._filtersSub.unsubscribe(),this._sortSub&&this._sortSub.unsubscribe(),this._pageSub&&this._pageSub.unsubscribe()},Object.defineProperty(e.prototype,"smart",{get:function(){return this._smart},enumerable:!1,configurable:!0}),e.prototype.smartenUp=function(){var e=this;this._smart=!0,this._filtersSub=this._filters.change.subscribe((function(){return e._filterItems()})),this._sortSub=this._sort.change.subscribe((function(){e._sort.comparator?e._sortItems():e._filterItems()})),this._pageSub=this._page.change.subscribe((function(){return e._changePage()}))},Object.defineProperty(e.prototype,"all",{get:function(){return this._all},set:function(e){this._all=e,this.emitAllChanges(e),this.smart?this._filterItems():(this._displayed=e,this.emitChange())},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.smart&&this._filterItems()},Object.defineProperty(e.prototype,"displayed",{get:function(){return this._displayed},enumerable:!1,configurable:!0}),e.prototype.emitChange=function(){this._change.next(this.displayed)},Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.emitAllChanges=function(e){this._allChanges.next(e)},Object.defineProperty(e.prototype,"allChanges",{get:function(){return this._allChanges.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uninitialized",{get:function(){return!this._all},enumerable:!1,configurable:!0}),e.prototype._filterItems=function(){var e=this;this.uninitialized||(this._filters.hasActiveFilters()?this._filtered=this._all.filter((function(t){return e._filters.accepts(t)})):this._filtered=this._all.slice(),this._page.totalItems=this._filtered.length,this._sortItems())},e.prototype._sortItems=function(){var e=this;this.uninitialized||(this._sort.comparator&&this._filtered.sort((function(t,n){return e._sort.compare(t,n)})),this._changePage())},e.prototype._changePage=function(){this.uninitialized||this._page.activated&&0===this._page.size||(this._page.size>0?this._displayed=this._filtered.slice(this._page.firstItem,this._page.lastItem+1):this._displayed=this._filtered,this.emitChange())},e}();ei.decorators=[{type:t.Injectable}],ei.ctorParameters=function(){return[{type:xr},{type:$r},{type:Tr}]};var ti=function(){function e(e,t,n,i){var o=this;this.template=e,this.differs=t,this.items=n,this.vcr=i,this.differ=null,this.subscriptions=[],n.smartenUp(),this.iterableProxy=new r.NgForOf(this.vcr,this.template,this.differs),this.subscriptions.push(n.change.subscribe((function(e){o.iterableProxy.ngForOf=e,o.iterableProxy.ngDoCheck()})))}return Object.defineProperty(e.prototype,"rawItems",{set:function(e){this._rawItems=e||[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackBy",{set:function(e){this.items.trackBy=e,this.iterableProxy.ngForTrackBy=e},enumerable:!1,configurable:!0}),e.prototype.ngDoCheck=function(){(this.differ||(this.differ=this.differs.find(this._rawItems).create(this.iterableProxy.ngForTrackBy)),this.differ)&&(this.differ.diff(this._rawItems)&&(this.items.all=this._rawItems))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();ti.decorators=[{type:t.Directive,args:[{selector:"[clrDgItems][clrDgItemsOf]"}]}],ti.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.IterableDiffers},{type:ei},{type:t.ViewContainerRef}]},ti.propDecorators={rawItems:[{type:t.Input,args:["clrDgItemsOf"]}],trackBy:[{type:t.Input,args:["clrDgItemsTrackBy"]}]};var ni=function(){function e(e){this.items=e}return Object.defineProperty(e.prototype,"emptyDatagrid",{get:function(){return!(this.items.loading||this.items.displayed&&0!==this.items.displayed.length)},enumerable:!1,configurable:!0}),e}();ni.decorators=[{type:t.Component,args:[{selector:"clr-dg-placeholder",template:'\n <div class="datagrid-placeholder" [class.datagrid-empty]="emptyDatagrid" role="row">\n <div class="datagrid-placeholder-image" *ngIf="emptyDatagrid"></div>\n <span role="gridcell"><ng-content *ngIf="emptyDatagrid"></ng-content></span>\n </div>\n ',host:{"[class.datagrid-placeholder-container]":"true"}}]}],ni.ctorParameters=function(){return[{type:ei}]};var ri=function(){function e(){}return Object.defineProperty(e.prototype,"triggerEl",{set:function(e){this._triggerEl=e},enumerable:!1,configurable:!0}),e.prototype.focusTrigger=function(){this._triggerEl&&this._triggerEl.focus()},e}();ri.decorators=[{type:t.Injectable}];var ii=function(){function e(){this._id=new i.Subject}return e.prototype.setId=function(e){this._id.next(e)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id.asObservable()},enumerable:!1,configurable:!0}),e}();ii.decorators=[{type:t.Injectable}];var oi=function(){function e(e,t,n,r,i,o,s){this.toggleService=e,this.el=t,this.commonStrings=n,this.signpostIdService=r,this.signpostFocusManager=i,this.platformId=s,this.subscriptions=[],this.document=o}return e.prototype.ngOnInit=function(){var e=this;this.signpostFocusManager.triggerEl=this.el.nativeElement,this.subscriptions.push(this.toggleService.openChange.subscribe((function(t){e.ariaExpanded=t;var n=e.isOpen;e.isOpen=t,!e.isOpen&&n&&e.focusOnClose()})),this.signpostIdService.id.subscribe((function(t){return e.ariaControl=t})))},e.prototype.focusOnClose=function(){r.isPlatformBrowser(this.platformId)&&(this.isOpen||this.document.activeElement!==this.document.body||this.signpostFocusManager.focusTrigger())},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.onSignpostTriggerClick=function(e){this.toggleService.toggleWithEvent(e)},e}();oi.decorators=[{type:t.Directive,args:[{selector:"[clrSignpostTrigger]",host:{class:"signpost-trigger","[attr.aria-label]":"commonStrings.keys.signpostToggle","[attr.aria-expanded]":"ariaExpanded","[attr.aria-controls]":"ariaControl","[class.active]":"isOpen"}}]}],oi.ctorParameters=function(){return[{type:v},{type:t.ElementRef},{type:H},{type:ii},{type:ri},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},oi.propDecorators={onSignpostTriggerClick:[{type:t.HostListener,args:["click",["$event"]]}]};var si=function(){function e(e){this.commonStrings=e,this.useCustomTrigger=!1}return Object.defineProperty(e.prototype,"customTrigger",{set:function(e){this.useCustomTrigger=!!e},enumerable:!1,configurable:!0}),e}();si.decorators=[{type:t.Component,args:[{selector:"clr-signpost",template:'\n <ng-container *ngIf="!useCustomTrigger">\n <button type="button" class="signpost-action btn btn-small btn-link" clrSignpostTrigger>\n <cds-icon shape="info-circle" [attr.title]="commonStrings.keys.info"></cds-icon>\n </button>\n </ng-container>\n\n <ng-content></ng-content>\n ',host:{"[class.signpost]":"true"},providers:[v,ri,{provide:xn,useExisting:t.ElementRef},ii]}]}],si.ctorParameters=function(){return[{type:H}]},si.propDecorators={customTrigger:[{type:t.ContentChild,args:[oi]}]};var ai=function(){function e(){this._dynamic=!1}return e.prototype.ngAfterViewInit=function(){this.cellView=this.templateRef.createEmbeddedView(null)},e.prototype.ngOnDestroy=function(){this.cellView.destroy()},e}();ai.decorators=[{type:t.Component,args:[{selector:"dg-wrapped-cell",template:"\n <ng-template #cellPortal>\n <ng-content></ng-content>\n </ng-template>\n "}]}],ai.propDecorators={templateRef:[{type:t.ViewChild,args:["cellPortal"]}]};var ci,li,pi=function(){function e(e){this.vcr=e}return e.prototype.ngOnInit=function(){this.wrappedInjector=new le(ai,this.vcr)},Object.defineProperty(e.prototype,"_view",{get:function(){return this.wrappedInjector.get(ai,this.vcr).cellView},enumerable:!1,configurable:!0}),e}();pi.decorators=[{type:t.Component,args:[{selector:"clr-dg-cell",template:" <ng-content></ng-content> ",host:{"[class.datagrid-cell]":"true","[class.datagrid-signpost-trigger]":"signpost.length > 0",role:"gridcell"}}]}],pi.ctorParameters=function(){return[{type:t.ViewContainerRef}]},pi.propDecorators={signpost:[{type:t.ContentChildren,args:[si]}]},function(e){e[e.DISPLAY=0]="DISPLAY",e[e.CALCULATE=1]="CALCULATE"}(ci||(ci={})),function(e){e[e.ALIGN_COLUMNS=0]="ALIGN_COLUMNS",e[e.CALCULATE_MODE_ON=1]="CALCULATE_MODE_ON",e[e.CALCULATE_MODE_OFF=2]="CALCULATE_MODE_OFF",e[e.CLEAR_WIDTHS=3]="CLEAR_WIDTHS",e[e.COMPUTE_COLUMN_WIDTHS=4]="COMPUTE_COLUMN_WIDTHS"}(li||(li={}));var ui=function(){function e(){this._renderStep=new i.Subject,this.alreadySized=!1}return Object.defineProperty(e.prototype,"renderStep",{get:function(){return this._renderStep.asObservable()},enumerable:!1,configurable:!0}),e.prototype.filterRenderSteps=function(e){return this.renderStep.pipe(o.filter((function(t){return e===t})))},e.prototype.resize=function(){this._renderStep.next(li.CALCULATE_MODE_ON),this.alreadySized&&this._renderStep.next(li.CLEAR_WIDTHS),this._renderStep.next(li.COMPUTE_COLUMN_WIDTHS),this._renderStep.next(li.ALIGN_COLUMNS),this.alreadySized=!0,this._renderStep.next(li.CALCULATE_MODE_OFF)},e}();ui.decorators=[{type:t.Injectable}];var di,hi=function(){function e(e){var t=this;this.subscriptions=[],this._view=new i.BehaviorSubject(ci.DISPLAY),this.subscriptions.push(e.filterRenderSteps(li.CALCULATE_MODE_ON).subscribe((function(){return t._view.next(ci.CALCULATE)}))),this.subscriptions.push(e.filterRenderSteps(li.CALCULATE_MODE_OFF).subscribe((function(){return t._view.next(ci.DISPLAY)})))}return Object.defineProperty(e.prototype,"view",{get:function(){return this._view.asObservable()},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();hi.decorators=[{type:t.Injectable}],hi.ctorParameters=function(){return[{type:ui}]},function(e){e[e.None=0]="None",e[e.Single=1]="Single",e[e.Multi=2]="Multi"}(di||(di={}));var gi=0,fi=function(){function e(e,t,n){var r=this;this._items=e,this._filters=t,this._zone=n,this.preserveSelection=!1,this.prevSelectionRefs=[],this.lockedRefs=[],this._selectionType=di.None,this.rowSelectionMode=!1,this.subscriptions=[],this.valueCollector=new i.Subject,this._change=new i.Subject,this.id="clr-dg-selection"+gi++,this.subscriptions.push(this._filters.change.subscribe((function(){r._selectable&&!r.preserveSelection&&r.clearSelection()}))),this.subscriptions.push(this._items.allChanges.subscribe((function(e){var t=[];switch(r.selectionType){case di.None:break;case di.Single:var n,i=r._items.trackBy,o=!1;if(r.currentSingle&&!r.prevSingleSelectionRef&&r._items.all&&r._items.trackBy){var s=r._items.all.findIndex((function(e){return e===r.currentSingle}));r.prevSingleSelectionRef=r._items.trackBy(s,r.currentSingle)}e.forEach((function(e,s){var a=i(s,e);r.prevSingleSelectionRef===a&&(n=e,o=!0),r.lockedRefs.indexOf(a)>-1&&t.push(a)})),r._items.smart&&!n&&(o=!0),setTimeout((function(){o&&(r.currentSingle=n)}),0);break;case di.Multi:var a=r.current.slice(),c=r._items.trackBy,l=!1;r.current.length>0&&r.prevSelectionRefs.length!==r.current.length&&r._items.all&&r._items.trackBy&&(r.prevSelectionRefs=[],r.current.forEach((function(e){var t=r._items.all.findIndex((function(t){return t===e}));r.prevSelectionRefs.push(r._items.trackBy(t,e))}))),e.forEach((function(e,n){var i=c(n,e);r.lockedRefs.indexOf(i)>-1&&t.push(i)})),a.length>0&&(e.forEach((function(e,t){var n=c(t,e),i=r.prevSelectionRefs.indexOf(n);i>-1&&(a[i]=e,l=!0)})),r._items.smart&&(a=a.filter((function(t){return e.indexOf(t)>-1})),r.current.length!==a.length&&(l=!0)),setTimeout((function(){l&&(r.current=a)}),0))}r.lockedRefs=t}))),this.subscriptions.push(this.valueCollector.pipe(o.debounceTime(0)).subscribe((function(){return r.emitChange()})))}return e.prototype.clearSelection=function(){this._current=[],this.prevSelectionRefs=[],this.prevSingleSelectionRef=null,this._currentSingle=null,this.emitChange()},Object.defineProperty(e.prototype,"selectionType",{get:function(){return this._selectionType},set:function(e){e!==this.selectionType&&(this._selectionType=e,e===di.None?delete this.current:this.updateCurrent([],!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_selectable",{get:function(){return this._selectionType===di.Multi||this._selectionType===di.Single},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(e.prototype,"currentSingle",{get:function(){return this._currentSingle},set:function(e){if(e!==this._currentSingle){if(this._currentSingle=e,this._items.all&&this._items.trackBy&&e){var t=this._items.all.findIndex((function(t){return t===e}));this.prevSingleSelectionRef=this._items.trackBy(t,e)}this.emitChange()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this.updateCurrent(e,!0)},enumerable:!1,configurable:!0}),e.prototype.updateCurrent=function(e,t){this._current=e,t&&this.valueCollector.next(e)},e.prototype.emitChange=function(){this._selectionType===di.Single?this._change.next(this.currentSingle):this._selectionType===di.Multi&&this._change.next(this.current)},Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.isSelected=function(e){return this._selectionType===di.Single?this.currentSingle===e:this._selectionType===di.Multi&&this.current.indexOf(e)>=0},e.prototype.selectItem=function(e){if(this.current=this.current.concat(e),this._items.trackBy&&this._items.all){var t=this._items.all.findIndex((function(t){return t===e}));this.prevSelectionRefs.push(this._items.trackBy(t,e))}},e.prototype.deselectItem=function(e){if(this.current=this.current.slice(0,e).concat(this.current.slice(e+1)),this._items.trackBy&&e<this.prevSelectionRefs.length){var t=this.prevSelectionRefs.splice(e,1);this.lockedRefs=this.lockedRefs.filter((function(e){return e!==t[0]}))}},e.prototype.setSelected=function(e,t){var n=this.current?this.current.indexOf(e):-1;switch(this._selectionType){case di.None:case di.Single:break;case di.Multi:n>=0&&!t?this.deselectItem(n):n<0&&t&&this.selectItem(e)}},e.prototype.isAllSelected=function(){var e=this;if(this._selectionType!==di.Multi||!this._items.displayed)return!1;var t=this._items.displayed.filter((function(t){return!1===e.isLocked(t)}));return!(t.length<1)&&t.filter((function(t){return e.current.indexOf(t)>-1})).length===t.length},e.prototype.canItBeLocked=function(){return this._selectionType!==di.None&&Array.isArray(this._items.all)},e.prototype.lockItem=function(e,t){if(this.canItBeLocked()){var n=this._items.trackBy(this._items.all.findIndex((function(t){return t===e})),e);!0===t?this.lockedRefs.push(n):this.lockedRefs=this.lockedRefs.filter((function(e){return n!==e}))}},e.prototype.isLocked=function(e){if(this.canItBeLocked()){var t=this._items.trackBy(this._items.all.findIndex((function(t){return t===e})),e);return this.lockedRefs.indexOf(t)>-1}return!1},e.prototype.toggleAll=function(){var e=this;this._selectionType!==di.None&&this._selectionType!==di.Single&&(this.isAllSelected()?this._items.displayed.forEach((function(t){var n=e.current.indexOf(t);n>-1&&!1===e.isLocked(t)&&e.deselectItem(n)})):this._items.displayed.forEach((function(t){e.current.indexOf(t)<0&&!1===e.isLocked(t)&&e.selectItem(t)})))},e}();fi.decorators=[{type:t.Injectable}],fi.ctorParameters=function(){return[{type:ei},{type:xr},{type:t.NgZone}]};var yi=function(){function e(){this._dynamic=!1}return e.prototype.ngAfterViewInit=function(){this.rowView=this.templateRef.createEmbeddedView(null)},e.prototype.ngOnDestroy=function(){this.rowView.destroy()},e}();yi.decorators=[{type:t.Component,args:[{selector:"dg-wrapped-row",template:"\n <ng-template #rowPortal>\n <ng-content></ng-content>\n </ng-template>\n "}]}],yi.propDecorators={templateRef:[{type:t.ViewChild,args:["rowPortal"]}]};var bi=0,mi=function(t){function n(){var e=t.call(this)||this;return e.expandableId="",e._replace=new i.BehaviorSubject(!1),e._animate=new i.Subject,bi++,e.expandableId="clr-dg-expandable-row-"+bi,e}return oe(n,t),Object.defineProperty(n.prototype,"expanded",{get:function(){return this._expanded},set:function(e){(e=!!e)!==this._expanded&&(this._expanded=e,this._animate.next(),this._expandChange.next(e))},enumerable:!1,configurable:!0}),n.prototype.loadingStateChange=function(n){t.prototype.loadingStateChange.call(this,n),n!==e.ClrLoadingState.LOADING&&this._animate.next()},Object.defineProperty(n.prototype,"replace",{get:function(){return this._replace.asObservable()},enumerable:!1,configurable:!0}),n.prototype.setReplace=function(e){this._replace.next(e)},Object.defineProperty(n.prototype,"animate",{get:function(){return this._animate.asObservable()},enumerable:!1,configurable:!0}),n}(Qe);mi.decorators=[{type:t.Injectable}],mi.ctorParameters=function(){return[]};var vi=0,Ci=function(){function e(e,n,r,o,s,a,c,l,p,u){var d=this;this.selection=e,this.rowActionService=n,this.globalExpandable=r,this.expand=o,this.detailService=s,this.displayMode=a,this.vcr=c,this.renderer=l,this.el=p,this.commonStrings=u,this.SELECTION_TYPE=di,this.expandAnimationTrigger=!1,this._selected=!1,this.selectedChanged=new t.EventEmitter(!1),this.expandedChange=new t.EventEmitter(!1),this._detailOpenLabel="",this._detailCloseLabel="",this.subscriptions=[],this.displayCells=!1,vi++,this.id="clr-dg-row"+vi,this.radioId="clr-dg-row-rd"+vi,this.checkboxId="clr-dg-row-cb"+vi,this.expandableId=o.expandableId,this.subscriptions.push(i.combineLatest(this.expand.replace,this.expand.expandChange).subscribe((function(e){var t=ae(e,2),n=t[0],r=t[1];n&&r?(d.replaced=!0,d.renderer.addClass(d.el.nativeElement,"datagrid-row-replaced")):(d.replaced=!1,d.renderer.removeClass(d.el.nativeElement,"datagrid-row-replaced"))})))}return Object.defineProperty(e.prototype,"selected",{get:function(){return this.selection.selectionType===di.None?this._selected:this.selection.isSelected(this.item)},set:function(e){this.selection.selectionType===di.None?this._selected=e:this.selection.setSelected(this.item,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDgSelectable",{get:function(){return!this.selection.isLocked(this.item)},set:function(e){this.selection.lockItem(this.item,!1===e)},enumerable:!1,configurable:!0}),e.prototype.toggle=function(e){void 0===e&&(e=!this.selected),e!==this.selected&&(this.selected=e,this.selectedChanged.emit(e))},Object.defineProperty(e.prototype,"expanded",{get:function(){return this.expand.expanded},set:function(e){this.expand.expanded=e},enumerable:!1,configurable:!0}),e.prototype.toggleExpand=function(){this.expand.expandable&&(this.expandAnimation.updateStartHeight(),this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))},Object.defineProperty(e.prototype,"clrDgDetailOpenLabel",{get:function(){return this._detailOpenLabel?this._detailOpenLabel:this.commonStrings.keys.open},set:function(e){this._detailOpenLabel=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDgDetailCloseLabel",{get:function(){return this._detailCloseLabel?this._detailCloseLabel:this.commonStrings.keys.close},set:function(e){this._detailCloseLabel=e},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.dgCells.changes.subscribe((function(){e.dgCells.forEach((function(t){t._view.destroyed||e._scrollableCells.insert(t._view)}))}))},e.prototype.ngAfterViewInit=function(){var e=this;this.subscriptions.push(this.displayMode.view.subscribe((function(t){for(var n=e._scrollableCells.length;n>0;n--)e._scrollableCells.detach();for(n=e._calculatedCells.length;n>0;n--)e._calculatedCells.detach();t===ci.CALCULATE?(e.displayCells=!1,e.dgCells.forEach((function(t){t._view.destroyed||e._calculatedCells.insert(t._view)}))):(e.displayCells=!0,e.dgCells.forEach((function(t){t._view.destroyed||e._scrollableCells.insert(t._view)})))})),this.expand.animate.subscribe((function(){e.expandAnimationTrigger=!e.expandAnimationTrigger})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.ngOnInit=function(){this.wrappedInjector=new le(yi,this.vcr),this.selection.lockItem(this.item,!1===this.clrDgSelectable)},Object.defineProperty(e.prototype,"_view",{get:function(){return this.wrappedInjector.get(yi,this.vcr).rowView},enumerable:!1,configurable:!0}),e}();Ci.decorators=[{type:t.Component,args:[{selector:"clr-dg-row",template:'\x3c!--\n We need to wrap the #rowContent in label element if we are in rowSelectionMode.\n Clicking of that wrapper label will equate to clicking on the whole row, which triggers the checkbox to toggle.\n--\x3e\n<label class="datagrid-row-clickable" *ngIf="selection.rowSelectionMode">\n <clr-expandable-animation [clrExpandTrigger]="expandAnimationTrigger" *ngIf="expand.expandable">\n <ng-template [ngTemplateOutlet]="rowContent"></ng-template>\n </clr-expandable-animation>\n <ng-template [ngTemplateOutlet]="rowContent" *ngIf="!expand.expandable"></ng-template>\n</label>\n\n<clr-expandable-animation\n *ngIf="!selection.rowSelectionMode && expand.expandable"\n [clrExpandTrigger]="expandAnimationTrigger"\n>\n <ng-template [ngTemplateOutlet]="rowContent"></ng-template>\n</clr-expandable-animation>\n\n<ng-template *ngIf="!selection.rowSelectionMode && !expand.expandable" [ngTemplateOutlet]="rowContent"></ng-template>\n\n\x3c!--\n We need the "project into template" hacks because we need this in 2 different places\n depending on whether the details replace the row or not.\n--\x3e\n<ng-template #detail>\n <ng-content select="clr-dg-row-detail"></ng-content>\n</ng-template>\n\n<ng-template #rowContent>\n <div\n role="row"\n [id]="id"\n class="datagrid-row-master datagrid-row-flex"\n [class.datagrid-row-detail-open]="detailService.isRowOpen(item)"\n >\n <div class="datagrid-row-sticky">\n \x3c!-- Sticky elements here --\x3e\n <ng-container #stickyCells>\n <div\n *ngIf="selection.selectionType === SELECTION_TYPE.Multi"\n class="datagrid-select datagrid-fixed-column datagrid-cell"\n [ngClass]="{ \'clr-form-control-disabled\': !clrDgSelectable }"\n role="gridcell"\n >\n <div class="clr-checkbox-wrapper">\n <input\n type="checkbox"\n [ngModel]="selected"\n (ngModelChange)="toggle($event)"\n [id]="checkboxId"\n [attr.disabled]="clrDgSelectable ? null : true"\n [attr.aria-disabled]="clrDgSelectable ? null : true"\n [attr.aria-label]="commonStrings.keys.select"\n />\n \x3c!-- Usage of class clr-col-null here prevents clr-col-* classes from being added when a datagrid is wrapped inside clrForm --\x3e\n <label [for]="checkboxId" class="clr-control-label clr-col-null">\n <span class="clr-sr-only">{{commonStrings.keys.select}}</span>\n </label>\n </div>\n </div>\n <div\n *ngIf="selection.selectionType === SELECTION_TYPE.Single"\n class="datagrid-select datagrid-fixed-column datagrid-cell"\n role="gridcell"\n [ngClass]="{ \'clr-form-control-disabled\': !clrDgSelectable }"\n >\n \x3c!-- TODO: it would be better if in addition to the generic "Select" label, we could add aria-labelledby\n to label the radio by the first cell in the row (typically an id or name).\n It\'s pretty easy to label it with the whole row since we already have an id for it, but in most\n cases the row is far too long to serve as a label, the screenreader reads every single cell content. --\x3e\n <input\n type="radio"\n clrRadio\n [id]="radioId"\n [name]="selection.id + \'-radio\'"\n [value]="item"\n [(ngModel)]="selection.currentSingle"\n [checked]="selection.currentSingle === item"\n [attr.disabled]="clrDgSelectable ? null : true"\n [attr.aria-disabled]="clrDgSelectable ? null : true"\n [attr.aria-label]="commonStrings.keys.select"\n />\n </div>\n <div\n *ngIf="rowActionService.hasActionableRow"\n class="datagrid-row-actions datagrid-fixed-column datagrid-cell"\n role="gridcell"\n >\n <ng-content select="clr-dg-action-overflow"></ng-content>\n </div>\n <div\n *ngIf="globalExpandable.hasExpandableRow"\n class="datagrid-expandable-caret datagrid-fixed-column datagrid-cell"\n role="gridcell"\n >\n <ng-container *ngIf="expand.expandable">\n <button\n *ngIf="!expand.loading"\n (click)="toggleExpand()"\n type="button"\n class="datagrid-expandable-caret-button"\n [attr.aria-expanded]="expand.expanded"\n [attr.aria-label]="expand.expanded ? clrDgDetailCloseLabel : clrDgDetailOpenLabel"\n [attr.aria-controls]="expandableId"\n >\n <cds-icon\n shape="angle"\n class="datagrid-expandable-caret-icon"\n [attr.direction]="expand.expanded ? \'down\' : \'right\'"\n [attr.title]="expand.expanded ? commonStrings.keys.collapse : commonStrings.keys.expand"\n ></cds-icon>\n </button>\n <clr-spinner *ngIf="expand.loading" clrSmall>{{ commonStrings.keys.loading }}</clr-spinner>\n </ng-container>\n </div>\n <div *ngIf="detailService.enabled" class="datagrid-detail-caret datagrid-fixed-column datagrid-cell">\n <button\n (click)="detailService.toggle(item, detailButton)"\n type="button"\n #detailButton\n class="datagrid-detail-caret-button"\n [class.is-open]="detailService.isRowOpen(item)"\n [attr.aria-label]="detailService.isOpen ? clrDgDetailCloseLabel : clrDgDetailOpenLabel"\n [attr.aria-expanded]="detailService.isOpen"\n [attr.aria-controls]="detailService.id"\n aria-haspopup="dialog"\n >\n <cds-icon\n shape="angle-double"\n [attr.direction]="detailService.isRowOpen(item) ? \'left\' : \'right\'"\n class="datagrid-detail-caret-icon"\n [attr.title]="detailService.isRowOpen(item) ? commonStrings.keys.close: commonStrings.keys.open"\n ></cds-icon>\n </button>\n </div>\n </ng-container>\n \x3c!-- placeholder for projecting other sticky cells as pinned--\x3e\n </div>\n <div class="datagrid-row-scrollable" [ngClass]="{\'is-replaced\': replaced && expanded}">\n <div class="datagrid-scrolling-cells">\n <ng-content select="clr-dg-cell"></ng-content>\n <ng-container #scrollableCells></ng-container>\n </div>\n \x3c!-- details here when replace, re-visit when sticky container is used for pinned cells --\x3e\n <ng-template *ngIf="replaced && !expand.loading" [ngTemplateOutlet]="detail"></ng-template>\n <ng-template *ngIf="!replaced && !expand.loading" [ngTemplateOutlet]="detail"></ng-template>\n </div>\n </div>\n</ng-template>\n\n<ng-container #calculatedCells></ng-container>\n',host:{"[class.datagrid-row]":"true","[class.datagrid-selected]":"selected","[attr.aria-owns]":"id",role:"rowgroup"},providers:[mi,{provide:Qe,useExisting:mi},{provide:F,useExisting:mi}]}]}],Ci.ctorParameters=function(){return[{type:fi},{type:Gr},{type:Kr},{type:mi},{type:Yr},{type:hi},{type:t.ViewContainerRef},{type:t.Renderer2},{type:t.ElementRef},{type:H}]},Ci.propDecorators={expandAnimation:[{type:t.ViewChild,args:[vr]}],item:[{type:t.Input,args:["clrDgItem"]}],selected:[{type:t.Input,args:["clrDgSelected"]}],clrDgSelectable:[{type:t.Input,args:["clrDgSelectable"]}],selectedChanged:[{type:t.Output,args:["clrDgSelectedChange"]}],expanded:[{type:t.Input,args:["clrDgExpanded"]}],expandedChange:[{type:t.Output,args:["clrDgExpandedChange"]}],detailButton:[{type:t.ViewChild,args:["detailButton"]}],clrDgDetailOpenLabel:[{type:t.Input}],clrDgDetailCloseLabel:[{type:t.Input}],dgCells:[{type:t.ContentChildren,args:[pi]}],_stickyCells:[{type:t.ViewChild,args:["stickyCells",{read:t.ViewContainerRef}]}],_scrollableCells:[{type:t.ViewChild,args:["scrollableCells",{read:t.ViewContainerRef}]}],_calculatedCells:[{type:t.ViewChild,args:["calculatedCells",{read:t.ViewContainerRef}]}]};var Si=function(){function e(e,t,n,r){var i=this;this.filters=e,this.sort=t,this.page=n,this.debouncer=r,this.change=this.debouncer.change.pipe(o.map((function(){return i.state})))}return Object.defineProperty(e.prototype,"state",{get:function(){var e,t,n={};this.page.size>0&&(n.page={from:this.page.firstItem,to:this.page.lastItem,size:this.page.size,current:this.page.current}),this.sort.comparator&&(this.sort.comparator instanceof Xr?n.sort={by:this.sort.comparator.prop,reverse:this.sort.reverse}:n.sort={by:this.sort.comparator,reverse:this.sort.reverse});var r=this.filters.getActiveFilters();if(r.length>0){n.filters=[];try{for(var i=se(r),o=i.next();!o.done;o=i.next()){var s=o.value;s.state?n.filters.push(s.state):n.filters.push(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}return n},enumerable:!1,configurable:!0}),e}();Si.decorators=[{type:t.Injectable}],Si.ctorParameters=function(){return[{type:xr},{type:$r},{type:Tr},{type:Dr}]};var Ii,Oi=function(){function e(e){this.platformId=e}return Object.defineProperty(e.prototype,"tableRef",{get:function(){return this._tableRef},set:function(e){this._tableRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"table",{set:function(e){r.isPlatformBrowser(this.platformId)&&e.nativeElement&&(this.tableRef=e.nativeElement.querySelector(".datagrid-table"))},enumerable:!1,configurable:!0}),e.prototype.getColumnDragHeight=function(){return this.tableRef?this.tableRef.clientHeight+"px":null},e}();Oi.decorators=[{type:t.Injectable}],Oi.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},function(e){e[e.WIDTH=0]="WIDTH",e[e.HIDDEN=1]="HIDDEN"}(Ii||(Ii={}));var Ei=Object.keys(Ii).map((function(e){return Ii[e]})).filter((function(e){return e===parseInt(e,10)})),wi=function(){function e(){this.columns=[],this._cache=[]}return e.prototype.cache=function(){this._cache=this.columns.map((function(e){var t=Object.assign({},e.value);return delete t.changes,t}))},e.prototype.hasCache=function(){return!!this._cache.length},e.prototype.resetToLastCache=function(){var e=this;this._cache.forEach((function(t,n){e.columns[n].next(Object.assign(Object.assign({},t),{changes:Ei}))})),this._cache=[]},Object.defineProperty(e.prototype,"columnStates",{get:function(){return this.columns.map((function(e){return e.value}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasHideableColumns",{get:function(){return this.columnStates.filter((function(e){return e.hideable})).length>0},enumerable:!1,configurable:!0}),e.prototype.emitStateChangeAt=function(e,t){this.columns[e]&&this.emitStateChange(this.columns[e],t)},e.prototype.emitStateChange=function(e,t){e.next(Object.assign(Object.assign({},e.value),t))},e}();wi.decorators=[{type:t.Injectable}];var _i=function(){function e(e,n,r,i,o,s,a,c,l,p,u,d,h){this.organizer=e,this.items=n,this.expandableRows=r,this.selection=i,this.rowActionService=o,this.stateProvider=s,this.displayMode=a,this.renderer=c,this.detailService=l,this.el=u,this.page=d,this.commonStrings=h,this.SELECTION_TYPE=di,this.refresh=new t.EventEmitter(!1),this.selectedChanged=new t.EventEmitter(!1),this.singleSelectedChanged=new t.EventEmitter(!1),this.clrDgSingleSelectionAriaLabel=this.commonStrings.keys.singleSelectionAriaLabel,this.clrDgSingleActionableAriaLabel=this.commonStrings.keys.singleActionableAriaLabel,this.clrDetailExpandableAriaLabel=this.commonStrings.keys.detailExpandableAriaLabel,this.clrDgDisablePageFocus=!1,this._subscriptions=[],this.selectAllId="clr-dg-select-all-"+p,this.detailService.id=p}return Object.defineProperty(e.prototype,"loading",{get:function(){return this.items.loading},set:function(e){this.items.loading=e},enumerable:!1,configurable:!0}),e.prototype.dataChanged=function(){this.items.refresh()},Object.defineProperty(e.prototype,"selected",{set:function(e){this.selection.selectionType=e?di.Multi:di.None,this.selection.updateCurrent(e,!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"singleSelected",{set:function(e){this.selection.selectionType=di.Single,e?this.selection.currentSingle=e:this.selection.currentSingle&&(this.selection.currentSingle=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDgPreserveSelection",{set:function(e){this.selection.preserveSelection=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowSelectionMode",{set:function(e){this.selection.rowSelectionMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allSelected",{get:function(){return this.selection.isAllSelected()},set:function(e){this.selection.toggleAll()},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.items.smart||(this.items.all=this.rows.map((function(e){return e.item}))),this._subscriptions.push(this.rows.changes.subscribe((function(){e.items.smart||(e.items.all=e.rows.map((function(e){return e.item})));for(var t=e._displayedRows.length-1;t>=0;t--)e._displayedRows.get(t).destroyed&&e._displayedRows.remove(t);if(e.rows.forEach((function(t){e._displayedRows.insert(t._view)})),e.detailService.state&&e.detailService.isOpen){var n=e.rows.find((function(t,n){return e.items.trackBy(n,t.item)===e.items.trackBy(n,e.detailService.state)}));n?e.detailService.open(n.item,n.detailButton):e.detailService.close()}})))},e.prototype.ngAfterViewInit=function(){var e=this;this.refresh.emit(this.stateProvider.state),this._subscriptions.push(this.stateProvider.change.subscribe((function(t){return e.refresh.emit(t)})),this.selection.change.subscribe((function(t){e.selection.selectionType===di.Single?e.singleSelectedChanged.emit(t):e.selection.selectionType===di.Multi&&e.selectedChanged.emit(t)})),this.page.change.subscribe((function(){e.clrDgDisablePageFocus||e.datagridTable.nativeElement.focus()})),this.displayMode.view.subscribe((function(t){for(var n=e._projectedDisplayColumns.length;n>0;n--)e._projectedDisplayColumns.detach();for(n=e._projectedCalculationColumns.length;n>0;n--)e._projectedCalculationColumns.detach();for(n=e._calculationRows.length;n>0;n--)e._calculationRows.detach();for(n=e._displayedRows.length;n>0;n--)e._displayedRows.detach();t===ci.DISPLAY?(e.renderer.removeClass(e.el.nativeElement,"datagrid-calculate-mode"),e.columns.forEach((function(t){e._projectedDisplayColumns.insert(t._view)})),e.rows.forEach((function(t){e._displayedRows.insert(t._view)}))):(e.renderer.addClass(e.el.nativeElement,"datagrid-calculate-mode"),e.columns.forEach((function(t){e._projectedCalculationColumns.insert(t._view)})),e.rows.forEach((function(t){e._calculationRows.insert(t._view)})))})))},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.resize=function(){this.organizer.resize()},e}();_i.decorators=[{type:t.Component,args:[{selector:"clr-datagrid",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<ng-content select="clr-dg-action-bar"></ng-content>\n<div class="datagrid-outer-wrapper">\n <div class="datagrid-inner-wrapper">\n <div class="datagrid" #datagrid [attr.aria-hidden]="detailService.isOpen ? true : null">\n <div class="datagrid-table-wrapper">\n <div role="grid" class="datagrid-table" tabindex="-1" #datagridTable>\n <div role="rowgroup" class="datagrid-header">\n <div role="row" class="datagrid-row">\n <div class="datagrid-row-master datagrid-row-flex">\n <div class="datagrid-row-sticky">\n \x3c!--header for datagrid where you can select multiple rows --\x3e\n <div\n role="columnheader"\n class="datagrid-column datagrid-select datagrid-fixed-column"\n *ngIf="selection.selectionType === SELECTION_TYPE.Multi"\n >\n <div class="clr-checkbox-wrapper">\n <input\n type="checkbox"\n [id]="selectAllId"\n [(ngModel)]="allSelected"\n [attr.aria-label]="commonStrings.keys.selectAll"\n />\n \x3c!-- Usage of class clr-col-null here prevents clr-col-* classes from being added when a datagrid is wrapped inside clrForm --\x3e\n <label [for]="selectAllId" class="clr-control-label clr-col-null">\n <span class="clr-sr-only">{{commonStrings.keys.selectAll}}</span>\n </label>\n </div>\n\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for datagrid where you can select one row only --\x3e\n <div\n role="columnheader"\n class="datagrid-column datagrid-select datagrid-fixed-column"\n *ngIf="selection.selectionType === SELECTION_TYPE.Single"\n [attr.aria-label]="clrDgSingleSelectionAriaLabel"\n >\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for single row action; only displayType if we have at least one actionable row in datagrid --\x3e\n <div\n role="columnheader"\n class="datagrid-column datagrid-row-actions datagrid-fixed-column"\n *ngIf="rowActionService.hasActionableRow"\n [attr.aria-label]="clrDgSingleActionableAriaLabel"\n >\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for carets; only displayType if we have at least one expandable row in datagrid --\x3e\n <div\n role="columnheader"\n class="datagrid-column datagrid-expandable-caret datagrid-fixed-column"\n *ngIf="expandableRows.hasExpandableRow || detailService.enabled"\n [attr.aria-label]="clrDetailExpandableAriaLabel"\n >\n <div class="datagrid-column-separator"></div>\n </div>\n </div>\n <div class="datagrid-row-scrollable">\n <ng-container #projectedDisplayColumns></ng-container>\n </div>\n </div>\n </div>\n </div>\n <ng-container #displayedRows></ng-container>\n \x3c!-- Custom placeholder overrides the default empty one --\x3e\n <ng-content select="clr-dg-placeholder"></ng-content>\n <clr-dg-placeholder *ngIf="!placeholder"></clr-dg-placeholder>\n </div>\n </div>\n </div>\n <ng-content select="clr-dg-footer"></ng-content>\n <div class="datagrid-spinner" *ngIf="loading">\n <clr-spinner clrMedium>Loading</clr-spinner>\n </div>\n </div>\n <ng-content select="[clrIfDetail],clr-dg-detail"></ng-content>\n</div>\n\n<div class="datagrid-calculation-table">\n <div class="datagrid-calculation-header">\n <ng-container #projectedCalculationColumns></ng-container>\n </div>\n <ng-container #calculationRows></ng-container>\n</div>\n',providers:[fi,$r,xr,Tr,ei,ui,Gr,Kr,Dr,Yr,K,Si,Oi,wi,hi],host:{"[class.datagrid-host]":"true","[class.datagrid-detail-open]":"detailService.isOpen"}}]}],_i.ctorParameters=function(){return[{type:ui},{type:ei},{type:Kr},{type:fi},{type:Gr},{type:Si},{type:hi},{type:t.Renderer2},{type:Yr},{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:t.ElementRef},{type:Tr},{type:H}]},_i.propDecorators={loading:[{type:t.Input,args:["clrDgLoading"]}],refresh:[{type:t.Output,args:["clrDgRefresh"]}],iterator:[{type:t.ContentChild,args:[ti]}],selected:[{type:t.Input,args:["clrDgSelected"]}],selectedChanged:[{type:t.Output,args:["clrDgSelectedChange"]}],singleSelected:[{type:t.Input,args:["clrDgSingleSelected"]}],singleSelectedChanged:[{type:t.Output,args:["clrDgSingleSelectedChange"]}],clrDgSingleSelectionAriaLabel:[{type:t.Input}],clrDgSingleActionableAriaLabel:[{type:t.Input}],clrDetailExpandableAriaLabel:[{type:t.Input}],clrDgDisablePageFocus:[{type:t.Input}],clrDgPreserveSelection:[{type:t.Input}],rowSelectionMode:[{type:t.Input,args:["clrDgRowSelection"]}],placeholder:[{type:t.ContentChild,args:[ni]}],columns:[{type:t.ContentChildren,args:[Qr]}],rows:[{type:t.ContentChildren,args:[Ci]}],scrollableColumns:[{type:t.ViewChild,args:["scrollableColumns",{read:t.ViewContainerRef}]}],datagridTable:[{type:t.ViewChild,args:["datagridTable",{read:t.ElementRef}]}],_projectedDisplayColumns:[{type:t.ViewChild,args:["projectedDisplayColumns",{read:t.ViewContainerRef}]}],_projectedCalculationColumns:[{type:t.ViewChild,args:["projectedCalculationColumns",{read:t.ViewContainerRef}]}],_displayedRows:[{type:t.ViewChild,args:["displayedRows",{read:t.ViewContainerRef}]}],_calculationRows:[{type:t.ViewChild,args:["calculationRows",{read:t.ViewContainerRef}]}]};var Pi=function(){};Pi.decorators=[{type:t.Component,args:[{selector:"clr-dg-action-bar",template:" <ng-content></ng-content> ",host:{"[class.datagrid-action-bar]":"true"}}]}];var Di=0,Ti=function(){function n(n,r,i,o,s,a){var c=this;this.rowActionService=n,this.commonStrings=r,this.platformId=i,this.zone=o,this.smartToggleService=s,this.popoverId=a,this.subscriptions=[],this.smartPosition={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.CENTER,content:e.ClrAlignment.CENTER},this._open=!1,this.openChange=new t.EventEmitter(!1),this.rowActionService.register(),this.subscriptions.push(this.smartToggleService.openChange.subscribe((function(e){c.open=e,e&&c.focusFirstButton()}))),this.popoverId="clr-action-menu"+Di++}return n.prototype.ngOnDestroy=function(){this.rowActionService.unregister(),this.subscriptions.forEach((function(e){return e.unsubscribe()}))},n.prototype.closeOverflowContent=function(e){this.smartToggleService.toggleWithEvent(e)},n.prototype.focusFirstButton=function(){r.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((function(){setTimeout((function(){var e=document.querySelector("button.action-item");e&&e.focus()}))}))},Object.defineProperty(n.prototype,"open",{get:function(){return this._open},set:function(e){var t=!!e;!!t!==this.open&&(this.smartToggleService.open=t,this.openChange.emit(t),this._open=t)},enumerable:!1,configurable:!0}),n}();Ti.decorators=[{type:t.Component,args:[{selector:"clr-dg-action-overflow",providers:[K,v,I,x],template:'\n <button\n class="datagrid-action-toggle"\n type="button"\n role="button"\n aria-haspopup="true"\n #anchor\n [attr.aria-controls]="popoverId"\n [attr.aria-expanded]="open"\n [attr.aria-label]="commonStrings.keys.rowActions"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n >\n <cds-icon shape="ellipsis-vertical" [attr.title]="commonStrings.keys.rowActions"></cds-icon>\n </button>\n\n <div\n class="datagrid-action-overflow"\n role="menu"\n [id]="popoverId"\n [attr.aria-hidden]="!open"\n [attr.id]="popoverId"\n clrFocusTrap\n (click)="closeOverflowContent($event)"\n *clrPopoverContent="open; at: smartPosition; outsideClickToClose: true; scrollToClose: true"\n >\n <ng-content></ng-content>\n </div>\n '}]}],Ti.ctorParameters=function(){return[{type:Gr},{type:H},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:t.NgZone},{type:v},{type:String,decorators:[{type:t.Inject,args:[W]}]}]},Ti.propDecorators={open:[{type:t.Input,args:["clrDgActionOverflowOpen"]}],openChange:[{type:t.Output,args:["clrDgActionOverflowOpenChange"]}]};var xi=function(){function e(e,t,n){this.el=e,this.domAdapter=t,this.organizer=n,this._resizedBy=0}return Object.defineProperty(e.prototype,"resizedBy",{get:function(){return this._resizedBy},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minColumnWidth",{get:function(){return this.domAdapter.minWidth(this.el.nativeElement)||96},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxResizeRange",{get:function(){return this.widthBeforeResize-this.minColumnWidth},enumerable:!1,configurable:!0}),e.prototype.startResize=function(){this._resizedBy=0,this.isWithinMaxResizeRange=!0,this.widthBeforeResize=this.domAdapter.clientRect(this.el.nativeElement).width},e.prototype.endResize=function(){this.organizer.resize()},Object.defineProperty(e.prototype,"widthAfterResize",{get:function(){return this.widthBeforeResize+this._resizedBy},enumerable:!1,configurable:!0}),e.prototype.calculateResize=function(e){e<-this.maxResizeRange?(this._resizedBy=-this.maxResizeRange,this.isWithinMaxResizeRange=!1):(this._resizedBy=e,this.isWithinMaxResizeRange=!0)},e}();xi.decorators=[{type:t.Injectable}],xi.ctorParameters=function(){return[{type:t.ElementRef},{type:ir},{type:ui}]};var Ai=function(){function e(e,t,n,r,i,o,s){this.columnResizerService=e,this.renderer=t,this.ngZone=n,this.tableSizeService=r,this.commonString=i,this.document=o,this.columnSeparatorId=s,this.resizeStartedOnKeyDown=!1,this.unlisteners=[]}return Object.defineProperty(e.prototype,"resizeTrackerEl",{get:function(){return this.resizeTrackerRef.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnHandleEl",{get:function(){return this.columnHandleRef.nativeElement},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.unlisteners.push(e.renderer.listen(e.columnHandleEl,"keydown",(function(t){e.showTrackerOnFirstKeyDown(t),e.moveTrackerOnKeyDown(t)}))),e.unlisteners.push(e.renderer.listen(e.columnHandleEl,"keyup",(function(t){e.hideTrackerOnKeyUp(t)})))}))},Object.defineProperty(e.prototype,"descriptionId",{get:function(){return this.columnSeparatorId+"-aria-describedby"},enumerable:!1,configurable:!0}),e.prototype.showTracker=function(){this.columnResizerService.startResize();var e=this.tableSizeService.getColumnDragHeight();this.renderer.setStyle(this.resizeTrackerEl,"height",e),this.renderer.setStyle(this.resizeTrackerEl,"display","block")},e.prototype.moveTracker=function(e){this.columnResizerService.calculateResize(e),this.renderer.setStyle(this.resizeTrackerEl,"transform","translateX("+this.columnResizerService.resizedBy+"px)"),this.renderer.setStyle(this.document.body,"cursor","col-resize"),this.redFlagTracker()},e.prototype.hideTracker=function(){this.columnResizerService.endResize(),this.renderer.setStyle(this.resizeTrackerEl,"display","none"),this.renderer.setStyle(this.resizeTrackerEl,"transform","translateX(0px)"),this.renderer.setStyle(this.document.body,"cursor","auto")},e.prototype.showTrackerOnFirstKeyDown=function(e){this.resizeStartedOnKeyDown||!this.isArrowLeftKeyEvent(e)&&!this.isArrowRightKeyEvent(e)||(this.resizeStartedOnKeyDown=!0,this.renderer.addClass(this.resizeTrackerEl,"on-arrow-key-resize"),this.showTracker())},e.prototype.moveTrackerOnKeyDown=function(e){this.isArrowLeftKeyEvent(e)?this.moveTracker(this.columnResizerService.resizedBy-12):this.isArrowRightKeyEvent(e)&&this.moveTracker(this.columnResizerService.resizedBy+12)},e.prototype.hideTrackerOnKeyUp=function(e){this.resizeStartedOnKeyDown&&(this.isArrowLeftKeyEvent(e)||this.isArrowRightKeyEvent(e))&&(this.resizeStartedOnKeyDown=!1,this.renderer.removeClass(this.resizeTrackerEl,"on-arrow-key-resize"),this.hideTracker(),this.columnHandleEl.focus())},e.prototype.redFlagTracker=function(){this.isWithinMaxResizeRange!==this.columnResizerService.isWithinMaxResizeRange&&(this.isWithinMaxResizeRange=this.columnResizerService.isWithinMaxResizeRange,this.isWithinMaxResizeRange?this.renderer.removeClass(this.resizeTrackerEl,"exceeded-max"):this.renderer.addClass(this.resizeTrackerEl,"exceeded-max"))},e.prototype.isArrowLeftKeyEvent=function(e){return e.key===h.ArrowLeft||e.key===g.ArrowLeft},e.prototype.isArrowRightKeyEvent=function(e){return e.key===h.ArrowRight||e.key===g.ArrowRight},e.prototype.ngOnDestroy=function(){this.unlisteners.forEach((function(e){return e()}))},e}();Ai.decorators=[{type:t.Component,args:[{selector:"clr-dg-column-separator",template:'\n <button\n type="button"\n class="datagrid-column-handle"\n [attr.aria-label]="commonString.keys.columnSeparatorAriaLabel"\n [attr.aria-describedby]="descriptionId"\n clrDraggable\n [clrGroup]="columnSeparatorId"\n (clrDragStart)="showTracker()"\n (clrDragMove)="moveTracker($event.dragPosition.moveX)"\n (clrDragEnd)="hideTracker()"\n #columnHandle\n ></button>\n <span class="clr-sr-only" [attr.id]="descriptionId">\n {{ commonString.keys.columnSeparatorDescription }}\n </span>\n <div class="datagrid-column-resize-tracker" #resizeTracker></div>\n ',host:{"[class.datagrid-column-separator]":"true"},providers:[K]}]}],Ai.ctorParameters=function(){return[{type:xi},{type:t.Renderer2},{type:t.NgZone},{type:Oi},{type:H},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:String,decorators:[{type:t.Inject,args:[W]}]}]},Ai.propDecorators={resizeTrackerRef:[{type:t.ViewChild,args:["resizeTracker"]}],columnHandleRef:[{type:t.ViewChild,args:["columnHandle"]}]};var ki=function(){};ki.decorators=[{type:t.Component,args:[{selector:"clr-dg-column-toggle-title",template:"<ng-content></ng-content>"}]}];var Ri=function(){function e(e){this.columnsService=e,this.allSelected=new t.EventEmitter}return Object.defineProperty(e.prototype,"clrAllSelected",{get:function(){return this.allSelected.asObservable()},enumerable:!1,configurable:!0}),e.prototype.hideableColumns=function(){return this.columnsService.columns.filter((function(e){return e.value.hideable}))},Object.defineProperty(e.prototype,"allHideablesVisible",{get:function(){return 0===this.hideableColumns().filter((function(e){return e.value.hidden})).length},enumerable:!1,configurable:!0}),e.prototype.selectAll=function(){var e=this;this.hideableColumns().forEach((function(t){return e.columnsService.emitStateChange(t,{hidden:!1,changes:[Ii.HIDDEN]})})),this.allSelected.next(!0)},e}();Ri.decorators=[{type:t.Component,args:[{selector:"clr-dg-column-toggle-button",template:'\n <button\n class="btn btn-sm btn-link switch-button"\n (click)="selectAll()"\n [disabled]="allHideablesVisible"\n type="button"\n >\n <ng-content></ng-content>\n </button>\n '}]}],Ri.ctorParameters=function(){return[{type:wi}]},Ri.propDecorators={clrAllSelected:[{type:t.Output,args:["clrAllSelected"]}]};var Li=function(){function t(t,n,r,i,o,s){this.commonStrings=t,this.columnsService=n,this.columnSwitchId=r,this.platformId=i,this.zone=o,this.popoverId=s,this.smartPosition={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START}}return Object.defineProperty(t.prototype,"allColumnsVisible",{get:function(){return this._allColumnsVisible},set:function(e){this._allColumnsVisible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideableColumnStates",{get:function(){return this.columnsService.columns.filter((function(e){return e.value.hideable})).map((function(e){return e.value}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOnlyOneVisibleColumn",{get:function(){return 0===this.columnsService.columns.length-this.hideableColumnStates.length&&1===this.hideableColumnStates.filter((function(e){return!e.hidden})).length},enumerable:!1,configurable:!0}),t.prototype.toggleColumnState=function(e,t){var n=this.columnsService.columns.filter((function(t){return t.value===e}))[0];this.columnsService.emitStateChange(n,{hidden:t,changes:[Ii.HIDDEN]})},t.prototype.toggleSwitchPanel=function(){this.openState=!this.openState},t.prototype.allColumnsSelected=function(){this.allSelectedElement.nativeElement.focus()},t.prototype.trackByFn=function(e){return e},t}();Li.decorators=[{type:t.Component,args:[{selector:"clr-dg-column-toggle",template:'\n <button\n role="button"\n type="button"\n class="btn btn-sm btn-link column-toggle--action"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [attr.aria-controls]="popoverId"\n [attr.aria-owns]="popoverId"\n [attr.title]="commonStrings.keys.pickColumns"\n >\n <cds-icon shape="view-columns" aria-hidden="true" [attr.title]="commonStrings.keys.pickColumns"></cds-icon>\n </button>\n <div\n class="column-switch"\n role="dialog"\n [attr.aria-label]="commonStrings.keys.showColumnsMenuDescription"\n [id]="popoverId"\n clrFocusTrap\n *clrPopoverContent="openState; at: smartPosition; outsideClickToClose: true; scrollToClose: true"\n >\n <div class="switch-header">\n <div class="clr-sr-only" tabindex="-1" #allSelected>{{ commonStrings.keys.allColumnsSelected }}</div>\n <ng-container *ngIf="!customToggleTitle">{{ commonStrings.keys.showColumns }}</ng-container>\n <ng-content select="clr-dg-column-toggle-title"></ng-content>\n <button\n class="btn btn-sm btn-link toggle-switch-close-button"\n clrPopoverCloseButton\n type="button"\n [attr.aria-label]="commonStrings.keys.close"\n [attr.title]="commonStrings.keys.close"\n >\n <cds-icon shape="window-close" aria-hidden="true" [attr.title]="commonStrings.keys.close"></cds-icon>\n </button>\n </div>\n <ul class="switch-content list-unstyled">\n <li *ngFor="let columnState of hideableColumnStates; trackBy: trackByFn">\n <clr-checkbox-wrapper>\n <input\n clrCheckbox\n type="checkbox"\n [disabled]="hasOnlyOneVisibleColumn && !columnState.hidden"\n [ngModel]="!columnState.hidden"\n (ngModelChange)="toggleColumnState(columnState, !$event)"\n />\n <label>\n <ng-template [ngTemplateOutlet]="columnState.titleTemplateRef"></ng-template>\n </label>\n </clr-checkbox-wrapper>\n </li>\n </ul>\n <div class="switch-footer">\n <ng-content select="clr-dg-column-toggle-button"></ng-content>\n <clr-dg-column-toggle-button *ngIf="!customToggleButton" (clrAllSelected)="allColumnsSelected()">\n {{ commonStrings.keys.selectAll }}\n </clr-dg-column-toggle-button>\n </div>\n </div>\n ',host:{"[class.column-switch-wrapper]":"true","[class.active]":"openState"},providers:[K,I,x,v]}]}],Li.ctorParameters=function(){return[{type:H},{type:wi},{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:t.NgZone},{type:String,decorators:[{type:t.Inject,args:[W]}]}]},Li.propDecorators={customToggleTitle:[{type:t.ContentChild,args:[ki]}],customToggleButton:[{type:t.ContentChild,args:[Ri]}],allSelectedElement:[{type:t.ViewChild,args:["allSelected",{read:t.ElementRef}]}]};var ji=function(){function e(e){this.expandableRowsCount=e,this.expandableRowsCount&&this.expandableRowsCount.register()}return e.prototype.ngOnDestroy=function(){this.expandableRowsCount&&this.expandableRowsCount.unregister()},e}();ji.decorators=[{type:t.Directive,args:[{selector:"[clrIfExpanded]"}]}],ji.ctorParameters=function(){return[{type:Kr,decorators:[{type:t.Optional}]}]};var Ni=function(){function e(e,t){this.detailService=e,this.commonStrings=t}return Object.defineProperty(e.prototype,"titleId",{get:function(){return this.detailService.id+"-title"},enumerable:!1,configurable:!0}),e}();Ni.decorators=[{type:t.Component,args:[{selector:"clr-dg-detail-header",host:{"[class.datagrid-detail-header]":"true"},template:'\n <div class="datagrid-detail-header-title" clrFocusOnViewInit [id]="titleId">\n <ng-content></ng-content>\n </div>\n <div class="datagrid-detail-pane-close">\n <button\n type="button"\n class="btn btn-link"\n (click)="detailService.close()"\n [attr.aria-label]="commonStrings.keys.close"\n >\n <cds-icon size="24" shape="times"></cds-icon>\n </button>\n </div>\n '}]}],Ni.ctorParameters=function(){return[{type:Yr},{type:H}]};var Fi=function(){function e(e,t){this.detailService=e,this.commonStrings=t}return e.prototype.closeCheck=function(){this.detailService.close()},e}();Fi.decorators=[{type:t.Component,args:[{selector:"clr-dg-detail",host:{"[class.datagrid-detail-pane]":"true"},template:'\n <div\n [clrFocusTrap]="{ strict: false }"\n class="datagrid-detail-pane-content"\n *ngIf="detailService.isOpen"\n role="dialog"\n [id]="detailService.id"\n aria-modal="true"\n [attr.aria-describedby]="header ? header.titleId : \'\'"\n >\n <div class="clr-sr-only">{{ commonStrings.keys.detailPaneStart }}</div>\n <ng-content></ng-content>\n <div class="clr-sr-only">{{ commonStrings.keys.detailPaneEnd }}</div>\n </div>\n '}]}],Fi.ctorParameters=function(){return[{type:Yr},{type:H}]},Fi.propDecorators={header:[{type:t.ContentChild,args:[Ni]}],closeCheck:[{type:t.HostListener,args:["document:keyup.esc"]}]};var Mi=function(){function e(e,n,r){this.templateRef=e,this.viewContainer=n,this.detailService=r,this.subscriptions=[],this.skip=!1,this.stateChange=new t.EventEmitter(null),this.detailService.enabled=!0}return Object.defineProperty(e.prototype,"state",{set:function(e){this.skip||this.detailService.toggle(e),this.skip=!1},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.detailService.stateChange.subscribe((function(t){!0===t?e.togglePanel(!0):e.togglePanel(!1)})))},e.prototype.togglePanel=function(e){var t=null;this.viewContainer.clear(),!0===e&&(this.viewContainer.createEmbeddedView(this.templateRef,{$implicit:this.detailService.state}),this.skip=!0,t=this.detailService.state),this.stateChange.emit(t)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();Mi.decorators=[{type:t.Directive,args:[{selector:"[clrIfDetail]"}]}],Mi.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:Yr}]},Mi.propDecorators={state:[{type:t.Input,args:["clrIfDetail"]}],stateChange:[{type:t.Output,args:["clrIfDetailChange"]}]};var Vi=function(){};Vi.decorators=[{type:t.Component,args:[{selector:"clr-dg-detail-body",template:'\n <div class="clr-dg-detail-body-wrapper">\n <ng-content></ng-content>\n </div>\n ',host:{"[class.datagrid-detail-body]":"true"}}]}];var Bi=function(){function e(e,t,n){this.selection=e,this.detailService=t,this.columnsService=n,this.SELECTION_TYPE=di}return Object.defineProperty(e.prototype,"hasHideableColumns",{get:function(){return this.columnsService.hasHideableColumns},enumerable:!1,configurable:!0}),e}();Bi.decorators=[{type:t.Component,args:[{selector:"clr-dg-footer",template:'\n <ng-container *ngIf="selection.selectionType === SELECTION_TYPE.Multi && selection.current.length > 0">\n <div class="clr-form-control-disabled">\n <clr-checkbox-wrapper class="datagrid-footer-select">\n <input clrCheckbox type="checkbox" checked="checked" disabled />\n <label>{{ selection.current.length }}</label>\n </clr-checkbox-wrapper>\n </div>\n </ng-container>\n <ng-container *ngIf="!detailService.isOpen">\n <ng-content select="clr-dg-column-toggle"></ng-content>\n <clr-dg-column-toggle *ngIf="hasHideableColumns && !toggle"></clr-dg-column-toggle>\n <div class="datagrid-footer-description">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <ng-content select="clr-dg-pagination"></ng-content>\n ',host:{"[class.datagrid-footer]":"true"}}]}],Bi.ctorParameters=function(){return[{type:fi},{type:Yr},{type:wi}]},Bi.propDecorators={toggle:[{type:t.ContentChild,args:[Li]}]};var zi=new t.InjectionToken("COLUMN_STATE");function Hi(){return new i.BehaviorSubject({changes:[]})}var Gi={provide:zi,useFactory:Hi},Wi=function(){function e(e,n,r,i){if(this.titleTemplateRef=e,this.viewContainerRef=n,this.columnsService=r,this.columnState=i,this.hiddenChange=new t.EventEmitter,this.subscriptions=[],this.viewContainerRef.createEmbeddedView(this.titleTemplateRef),!this.columnState)throw new Error("The *clrDgHideableColumn directive can only be used inside of a clr-dg-column component.")}return Object.defineProperty(e.prototype,"clrDgHideableColumn",{set:function(e){this.clrDgHidden="string"!=typeof e&&(!(!e||!e.hidden)&&e.hidden)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDgHidden",{set:function(e){this._hidden=e||!1,this.columnsService.emitStateChange(this.columnState,{hidden:this._hidden,changes:[Ii.HIDDEN]})},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.columnsService.emitStateChange(this.columnState,{hideable:!0,titleTemplateRef:this.titleTemplateRef,hidden:this._hidden,changes:[Ii.HIDDEN]}),this.subscriptions.push(this.columnState.subscribe((function(t){t.changes&&t.changes.indexOf(Ii.HIDDEN)>-1&&e.hiddenChange.emit(t.hidden)})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();Wi.decorators=[{type:t.Directive,args:[{selector:"[clrDgHideableColumn]"}]}],Wi.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:wi},{type:i.BehaviorSubject,decorators:[{type:t.Optional},{type:t.Inject,args:[zi]}]}]},Wi.propDecorators={clrDgHideableColumn:[{type:t.Input,args:["clrDgHideableColumn"]}],clrDgHidden:[{type:t.Input,args:["clrDgHidden"]}],hiddenChange:[{type:t.Output,args:["clrDgHiddenChange"]}]};var Ui=function(){function e(e){this._items=e}return Object.defineProperty(e.prototype,"trackBy",{set:function(e){this._items&&(this._items.trackBy=e)},enumerable:!1,configurable:!0}),e}();Ui.decorators=[{type:t.Directive,args:[{selector:"[ngForTrackBy]"}]}],Ui.ctorParameters=function(){return[{type:ei,decorators:[{type:t.Optional}]}]},Ui.propDecorators={trackBy:[{type:t.Input,args:["ngForTrackBy"]}]};var Yi=function(){function e(e){this.page=e}return e.prototype.ngOnInit=function(){this.pageSizeOptions&&0!==this.pageSizeOptions.length||(this.pageSizeOptions=[this.page.size])},e}();Yi.decorators=[{type:t.Component,args:[{selector:"clr-dg-page-size",template:'\n <ng-content></ng-content>\n <div class="clr-select-wrapper">\n <select [class.clr-page-size-select]="true" [(ngModel)]="page.size">\n <option *ngFor="let option of pageSizeOptions" [ngValue]="option">{{ option }}</option>\n </select>\n </div>\n '}]}],Yi.ctorParameters=function(){return[{type:Tr}]},Yi.propDecorators={pageSizeOptions:[{type:t.Input,args:["clrPageSizeOptions"]}]};var Ki=function(){function e(e,n,r){this.page=e,this.commonStrings=n,this.detailService=r,this.currentChanged=new t.EventEmitter(!1),this.page.activated=!0}return e.prototype.ngOnInit=function(){var e=this;this.page.size||(this.page.size=10),this._pageSubscription=this.page.change.subscribe((function(t){return e.currentChanged.emit(t)}))},e.prototype.ngOnDestroy=function(){this.page.resetPageSize(!0),this._pageSubscription&&this._pageSubscription.unsubscribe()},Object.defineProperty(e.prototype,"pageSize",{get:function(){return this.page.size},set:function(e){"number"==typeof e&&(this.page.size=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalItems",{get:function(){return this.page.totalItems},set:function(e){"number"==typeof e&&(this.page.totalItems=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastPage",{get:function(){return this.page.last},set:function(e){"number"==typeof e&&(this.page.last=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.page.current},set:function(e){"number"==typeof e&&(this.page.current=e)},enumerable:!1,configurable:!0}),e.prototype.previous=function(){this.page.previous()},e.prototype.next=function(){this.page.next()},Object.defineProperty(e.prototype,"firstItem",{get:function(){return this.page.firstItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastItem",{get:function(){return this.page.lastItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"middlePages",{get:function(){var e=[];return this.page.current>1&&e.push(this.page.current-1),e.push(this.page.current),this.page.current<this.page.last&&e.push(this.page.current+1),e},enumerable:!1,configurable:!0}),e.prototype.updateCurrentPage=function(e){var t=parseInt(e.target.value,10);isNaN(t)||(t<1?this.page.current=1:t>this.page.last?this.page.current=this.page.last:this.page.current=t),this.currentPageInputRef.nativeElement.value=this.page.current},e}();Ki.decorators=[{type:t.Component,args:[{selector:"clr-dg-pagination",template:'\n <ng-container *ngIf="!detailService.isOpen">\n <div class="pagination-size" *ngIf="_pageSizeComponent">\n <ng-content select="clr-dg-page-size"></ng-content>\n </div>\n <div class="pagination-description">\n <ng-content></ng-content>\n </div>\n <div class="pagination-list" *ngIf="page.last > 1">\n <button\n type="button"\n class="pagination-first"\n [disabled]="page.current <= 1"\n (click)="page.current = 1"\n [attr.aria-label]="commonStrings.keys.firstPage"\n >\n <cds-icon shape="step-forward-2" direction="down"></cds-icon>\n </button>\n <button\n type="button"\n class="pagination-previous"\n [disabled]="page.current <= 1"\n (click)="page.current = page.current - 1"\n [attr.aria-label]="commonStrings.keys.previousPage"\n >\n <cds-icon shape="angle" direction="left"></cds-icon>\n </button>\n <input\n *ngIf="!disableCurrentPageInput; else readOnly"\n #currentPageInput\n type="text"\n class="pagination-current clr-input"\n [size]="page.last.toString().length"\n [value]="page.current"\n (keydown.enter)="updateCurrentPage($event)"\n (blur)="updateCurrentPage($event)"\n [attr.aria-label]="commonStrings.keys.currentPage"\n />\n <ng-template #readOnly>\n <span>{{ page.current }}</span>\n </ng-template>\n\n &nbsp;/&nbsp;<span [attr.aria-label]="commonStrings.keys.totalPages">{{ page.last }}</span>\n <button\n type="button"\n class="pagination-next"\n [disabled]="page.current >= page.last"\n (click)="page.current = page.current + 1"\n [attr.aria-label]="commonStrings.keys.nextPage"\n >\n <cds-icon shape="angle" direction="right"></cds-icon>\n </button>\n <button\n type="button"\n class="pagination-last"\n [disabled]="page.current >= page.last"\n (click)="page.current = page.last"\n [attr.aria-label]="commonStrings.keys.lastPage"\n >\n <cds-icon shape="step-forward-2" direction="up"></cds-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf="detailService.isOpen">\n <div class="pagination-description-compact">\n {{ page.firstItem + 1 }}-{{ page.lastItem + 1 }} / {{ page.totalItems }}\n </div>\n <div class="pagination-list">\n <button\n type="button"\n class="pagination-previous"\n [disabled]="page.current <= 1"\n (click)="page.current = page.current - 1"\n [attr.aria-label]="commonStrings.keys.previousPage"\n >\n <cds-icon shape="angle" direction="left"></cds-icon>\n </button>\n <span>{{ page.current }}</span>\n <button\n type="button"\n class="pagination-next"\n [disabled]="page.current >= page.last"\n (click)="page.current = page.current + 1"\n [attr.aria-label]="commonStrings.keys.nextPage"\n >\n <cds-icon shape="angle" direction="right"></cds-icon>\n </button>\n </div>\n </ng-container>\n ',host:{"[class.pagination]":"true"}}]}],Ki.ctorParameters=function(){return[{type:Tr},{type:H},{type:Yr}]},Ki.propDecorators={_pageSizeComponent:[{type:t.ContentChild,args:[Yi]}],currentPageInputRef:[{type:t.ViewChild,args:["currentPageInput"]}],disableCurrentPageInput:[{type:t.Input,args:["clrDgPageInputDisabled"]}],pageSize:[{type:t.Input,args:["clrDgPageSize"]}],totalItems:[{type:t.Input,args:["clrDgTotalItems"]}],lastPage:[{type:t.Input,args:["clrDgLastPage"]}],currentPage:[{type:t.Input,args:["clrDgPage"]}],currentChanged:[{type:t.Output,args:["clrDgPageChange"]}]};var Zi=function(){function e(e,t,n,r,i){this.selection=e,this.rowActionService=t,this.expand=n,this.expandableRows=r,this.commonStrings=i,this.SELECTION_TYPE=di,this.subscriptions=[],this.replacedRow=!1}return Object.defineProperty(e.prototype,"replace",{set:function(e){this.expand.setReplace(!!e)},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.subscriptions.push(this.expand.replace.subscribe((function(t){e.replacedRow=t})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(e.prototype,"beginningOfExpandableContentAriaText",{get:function(){return this._beginningOfExpandableContentAriaText||this.commonStrings.keys.dategridExpandableBeginningOf+" "+this.commonStrings.keys.dategridExpandableRowContent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endOfExpandableContentAriaText",{get:function(){return this._endOfExpandableContentAriaText||this.commonStrings.keys.dategridExpandableEndOf+" "+this.commonStrings.keys.dategridExpandableRowContent},enumerable:!1,configurable:!0}),e}();Zi.decorators=[{type:t.Component,args:[{selector:"clr-dg-row-detail",template:'\n <div class="clr-sr-only">\n {{ beginningOfExpandableContentAriaText }} {{ commonStrings.keys.dategridExpandableRowsHelperText }}\n </div>\n <ng-content></ng-content>\n <div class="clr-sr-only">{{ endOfExpandableContentAriaText }}</div>\n ',host:{"[class.datagrid-row-flex]":"true","[class.datagrid-row-detail]":"true","[class.datagrid-container]":"cells.length === 0","[attr.id]":"expand.expandableId"}}]}],Zi.ctorParameters=function(){return[{type:fi},{type:Gr},{type:mi},{type:Kr},{type:H}]},Zi.propDecorators={cells:[{type:t.ContentChildren,args:[pi]}],replace:[{type:t.Input,args:["clrDgReplace"]}],_beginningOfExpandableContentAriaText:[{type:t.Input,args:["clrRowDetailBeginningAriaText"]}],_endOfExpandableContentAriaText:[{type:t.Input,args:["clrRowDetailEndAriaText"]}]};var qi="datagrid-fixed-width",Xi="datagrid-hidden-column",$i=function(){function e(e,t,n){var r=this;this.el=e,this.renderer=t,this.subscriptions=[],this.subscriptions.push(n.filterRenderSteps(li.CLEAR_WIDTHS).subscribe((function(){return r.clearWidth()})))}return Object.defineProperty(e.prototype,"columnState",{set:function(e){var t=this;this.stateSubscription&&this.stateSubscription.unsubscribe(),this.runAllChanges=Ei,this.stateSubscription=e.subscribe((function(e){return t.stateChanges(e)}))},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.stateChanges=function(e){var t=this;this.runAllChanges&&(e.changes=this.runAllChanges,delete this.runAllChanges),e.changes&&e.changes.length&&e.changes.forEach((function(n){switch(n){case Ii.WIDTH:t.setWidth(e);break;case Ii.HIDDEN:t.setHidden(e)}}))},e.prototype.clearWidth=function(){this.renderer.removeClass(this.el.nativeElement,qi),this.renderer.setStyle(this.el.nativeElement,"width",null)},e.prototype.setWidth=function(e){e.strictWidth?this.renderer.addClass(this.el.nativeElement,qi):this.renderer.removeClass(this.el.nativeElement,qi),this.renderer.setStyle(this.el.nativeElement,"width",e.width+"px")},e.prototype.setHidden=function(e){e.hidden?this.renderer.addClass(this.el.nativeElement,Xi):this.renderer.removeClass(this.el.nativeElement,Xi)},e}();$i.decorators=[{type:t.Directive,args:[{selector:"clr-dg-cell"}]}],$i.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:ui}]};var Ji=function(){function e(e,n,r,i,o,s,a){var c=this;this.el=e,this.renderer=n,this.organizer=r,this.domAdapter=i,this.columnResizerService=o,this.columnsService=s,this.columnState=a,this.resizeEmitter=new t.EventEmitter,this.widthSet=!1,this.autoSet=!1,this.subscriptions=[],this.subscriptions.push(this.organizer.filterRenderSteps(li.CLEAR_WIDTHS).subscribe((function(){return c.clearWidth()}))),this.subscriptions.push(a.subscribe((function(e){return c.stateChanges(e)})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.stateChanges=function(e){var t=this;e.changes&&e.changes.length&&e.changes.forEach((function(n){switch(n){case Ii.WIDTH:t.setWidth(e);break;case Ii.HIDDEN:t.setHidden(e)}}))},e.prototype.clearWidth=function(){this.widthSet&&!this.columnResizerService.resizedBy&&this.renderer.setStyle(this.el.nativeElement,"width",null),this.autoSet&&this.renderer.removeClass(this.el.nativeElement,qi)},e.prototype.detectStrictWidth=function(){return this.columnResizerService.resizedBy?this.columnResizerService.widthAfterResize:this.autoSet?0:this.domAdapter.userDefinedWidth(this.el.nativeElement)},e.prototype.computeWidth=function(e){var t=e;return t||(t=this.domAdapter.scrollWidth(this.el.nativeElement)),t},e.prototype.getColumnWidthState=function(){var e=this.detectStrictWidth();return{width:this.computeWidth(e),strictWidth:e}},e.prototype.setColumnState=function(e){this.columnsService.columns[e]=this.columnState},e.prototype.setWidth=function(e){e.strictWidth?(this.columnResizerService.resizedBy&&(this.resizeEmitter.emit(e.width),this.renderer.setStyle(this.el.nativeElement,"width",e.width+"px"),this.widthSet=!1),this.renderer.addClass(this.el.nativeElement,qi),this.autoSet=!1):(this.renderer.removeClass(this.el.nativeElement,qi),this.renderer.setStyle(this.el.nativeElement,"width",e.width+"px"),this.widthSet=!0,this.autoSet=!0)},e.prototype.setHidden=function(e){e.hidden?this.renderer.addClass(this.el.nativeElement,Xi):this.renderer.removeClass(this.el.nativeElement,Xi)},e}();Ji.decorators=[{type:t.Directive,args:[{selector:"clr-dg-column",providers:[xi,Gi]}]}],Ji.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:ui},{type:ir},{type:xi},{type:wi},{type:i.BehaviorSubject,decorators:[{type:t.Inject,args:[zi]}]}]},Ji.propDecorators={resizeEmitter:[{type:t.Output,args:["clrDgColumnResize"]}]};var Qi=function(){function e(){}return e.prototype.userDefinedWidth=function(e){return 0},e.prototype.scrollBarWidth=function(e){return 0},e.prototype.scrollWidth=function(e){return 0},e.prototype.computedHeight=function(e){return 0},e.prototype.clientRect=function(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}},e.prototype.minWidth=function(e){return 0},e.prototype.focus=function(e){},e}();Qi.decorators=[{type:t.Injectable}];var eo=function(){function e(e){this.columnsService=e,this.subscriptions=[]}return e.prototype.ngAfterContentInit=function(){var e=this;this.setColumnState(),this.subscriptions.push(this.cells.changes.subscribe((function(){e.setColumnState()})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.setColumnState=function(){var e=this;this.cells.length===this.columnsService.columns.length&&this.cells.forEach((function(t,n){e.columnsService.columns[n]&&(t.columnState=e.columnsService.columns[n])}))},e}();eo.decorators=[{type:t.Directive,args:[{selector:"clr-dg-row, clr-dg-row-detail"}]}],eo.ctorParameters=function(){return[{type:wi}]},eo.propDecorators={cells:[{type:t.ContentChildren,args:[$i]}]};var to=function(e){return r.isPlatformBrowser(e)?new ir:new Qi},no=function(){function e(e,t,n,r,i,o,s,a,c){var l=this;this.organizer=e,this.items=t,this.page=n,this.domAdapter=r,this.el=i,this.renderer=o,this.detailService=s,this.tableSizeService=a,this.columnsService=c,this._heightSet=!1,this.subscriptions=[],this.columnsSizesStable=!1,this.shouldStabilizeColumns=!0,this.subscriptions.push(this.organizer.filterRenderSteps(li.COMPUTE_COLUMN_WIDTHS).subscribe((function(){return l.computeHeadersWidth()}))),this.subscriptions.push(this.page.sizeChange.subscribe((function(){l._heightSet&&l.resetDatagridHeight()}))),this.subscriptions.push(this.detailService.stateChange.subscribe((function(e){return l.toggleDetailPane(e)}))),this.subscriptions.push(this.items.change.subscribe((function(){return l.shouldStabilizeColumns=!0})))}return e.prototype.ngAfterContentInit=function(){var e=this;this.setupColumns(),this.subscriptions.push(this.headers.changes.subscribe((function(){e.setupColumns(),e.columnsSizesStable=!1,e.stabilizeColumns()})))},e.prototype.ngAfterViewInit=function(){this.tableSizeService.table=this.el},e.prototype.ngAfterViewChecked=function(){var e=this;this.shouldStabilizeColumns&&this.stabilizeColumns(),this.shouldComputeHeight()&&setTimeout((function(){e.computeDatagridHeight()}))},e.prototype.setupColumns=function(){this.headers.forEach((function(e,t){return e.setColumnState(t)})),this.columnsService.columns.splice(this.headers.length),this.rows.forEach((function(e){return e.setColumnState()}))},e.prototype.shouldComputeHeight=function(){return!this._heightSet&&this.page.size>0&&this.items.displayed.length===this.page.size},e.prototype.toggleDetailPane=function(e){var t=this;this.headers&&(e&&!this.columnsService.hasCache()?(this.columnsService.cache(),this.headers.forEach((function(n,r){r>0&&t.columnsService.emitStateChangeAt(r,{changes:[Ii.HIDDEN],hidden:e})}))):e||this.columnsService.resetToLastCache())},e.prototype.computeDatagridHeight=function(){var e=this.domAdapter.clientRect(this.el.nativeElement).height;this.renderer.setStyle(this.el.nativeElement,"height",e+"px"),this._heightSet=!0},e.prototype.resetDatagridHeight=function(){this.renderer.setStyle(this.el.nativeElement,"height",""),this._heightSet=!1},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.computeHeadersWidth=function(){var e=this,t=this.headers.length,n=!0;this.headers.forEach((function(r,i){var o=Object.assign({changes:[Ii.WIDTH]},r.getColumnWidthState());o.strictWidth||(n=!1),t===i+1&&n&&(o.strictWidth=0),e.columnsService.emitStateChangeAt(i,o)}))},e.prototype.stabilizeColumns=function(){this.shouldStabilizeColumns=!1,this.columnsSizesStable||this.items.displayed.length>0&&(this.organizer.resize(),this.columnsSizesStable=!0)},e}();no.decorators=[{type:t.Directive,args:[{selector:"clr-datagrid",providers:[{provide:ir,useFactory:to,deps:[t.PLATFORM_ID]}]}]}],no.ctorParameters=function(){return[{type:ui},{type:ei},{type:Tr},{type:ir},{type:t.ElementRef},{type:t.Renderer2},{type:Yr},{type:Oi},{type:wi}]},no.propDecorators={headers:[{type:t.ContentChildren,args:[Ji]}],rows:[{type:t.ContentChildren,args:[eo,{descendants:!0}]}]};var ro=[_i,Pi,Ti,Qr,Ai,Li,Wi,Rr,ti,Ui,Ci,Zi,ji,pi,Bi,Ki,Yi,ni,Ri,ki,Fi,Mi,Ni,Vi,ai,Jr,yi,no,Ji,eo,$i,Wr,Ur,Zr,Fr,Br],io=function(){n.ClarityIcons.addIcons(n.ellipsisVerticalIcon,n.viewColumnsIcon,n.windowCloseIcon,n.arrowIcon,n.timesIcon,n.stepForward2Icon,n.angleDoubleIcon,n.filterGridCircleIcon,n.filterGridIcon)};io.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,Jn,a.FormsModule,er,nt,rr,Sr,mr,Un,j,st,_r],declarations:[ro],exports:[ro],entryComponents:[ai,Jr,yi]}]}],io.ctorParameters=function(){return[]};var oo=function(){function e(e,n,r){this.parent=e,this.uniqueId=n,this.commonStrings=r,this.expanded=!1,this.expandedChange=new t.EventEmitter(!1),this.expandable=!1,this.focused=!1,this._changedChildren=0,this._fullyInitialized=!1,this._changed=!1,e&&e.addChild()}return Object.defineProperty(e.prototype,"getChangedValue",{get:function(){return this._changed||this._changedChildren>0&&!this.expanded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setChangedValue",{set:function(e){this._changed=e,this.parent&&this._fullyInitialized&&(e?this.parent._changedChildren++:this.parent._changedChildren--)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._fullyInitialized=!0},e.prototype.addChild=function(){this.expandable=!0},e.prototype.toggleExpand=function(){this.expandable&&(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))},Object.defineProperty(e.prototype,"caretDirection",{get:function(){return this.expanded?"down":"right"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.expandable?"button":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.expandable?"0":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onStackLabelFocus",{get:function(){return this.expandable&&!this.expanded&&this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.expandable?this.expanded?"true":"false":null},enumerable:!1,configurable:!0}),e.prototype.getStackChildrenId=function(){return this.expanded?"clr-stack-children-"+this.uniqueId:null},e}();oo.decorators=[{type:t.Component,args:[{selector:"clr-stack-block",template:'\n <div\n class="stack-block-label"\n (click)="toggleExpand()"\n (keyup.enter)="toggleExpand()"\n (keyup.space)="toggleExpand()"\n (focus)="focused = true"\n (blur)="focused = false"\n [id]="uniqueId"\n [attr.role]="role"\n [attr.tabindex]="tabIndex"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-controls]="getStackChildrenId()"\n [attr.aria-posinset]="ariaPosinset"\n [attr.aria-level]="ariaLevel"\n [attr.aria-setsize]="ariaSetsize"\n >\n <cds-icon shape="angle" class="stack-block-caret" *ngIf="expandable" [attr.direction]="caretDirection"></cds-icon>\n <span class="clr-sr-only" *ngIf="getChangedValue">{{ commonStrings.keys.stackViewChanged }}</span>\n <div class="stack-view-key">\n \x3c!-- This structure changed to fix #3567 and the a11y request was to move away from dl\'s --\x3e\n \x3c!-- I added the key class to update css targets for the original component style --\x3e\n <ng-content select="clr-stack-label"></ng-content>\n </div>\n <div class="stack-block-content">\n <ng-content></ng-content>\n </div>\n </div>\n\n <clr-expandable-animation [clrExpandTrigger]="expanded" class="stack-children" [attr.id]="getStackChildrenId()">\n <div [style.height]="expanded ? \'auto\' : 0" role="region" *ngIf="expanded">\n <ng-content select="clr-stack-block"></ng-content>\n </div>\n </clr-expandable-animation>\n ',host:{"[class.stack-block]":"true"},providers:[K],styles:["\n :host {\n display: block;\n }\n "]}]}],oo.ctorParameters=function(){return[{type:oo,decorators:[{type:t.SkipSelf},{type:t.Optional}]},{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:H}]},oo.propDecorators={expanded:[{type:t.HostBinding,args:["class.stack-block-expanded"]},{type:t.Input,args:["clrSbExpanded"]}],expandedChange:[{type:t.Output,args:["clrSbExpandedChange"]}],expandable:[{type:t.HostBinding,args:["class.stack-block-expandable"]},{type:t.Input,args:["clrSbExpandable"]}],getChangedValue:[{type:t.HostBinding,args:["class.stack-block-changed"]}],setChangedValue:[{type:t.Input,args:["clrSbNotifyChange"]}],ariaLevel:[{type:t.Input,args:["clrStackViewLevel"]}],ariaSetsize:[{type:t.Input,args:["clrStackViewSetsize"]}],ariaPosinset:[{type:t.Input,args:["clrStackViewPosinset"]}],onStackLabelFocus:[{type:t.HostBinding,args:["class.on-focus"]}]};var so=function(){function e(){this.editable=!1,this.save=new t.EventEmitter(!1),this._editMode=!1,this.editingChange=new t.EventEmitter(!1)}return Object.defineProperty(e.prototype,"editing",{get:function(){return this.editable&&this._editMode},set:function(e){this.editable&&(this._editMode=e,this.editingChange.emit(e),e||this.save.emit(null))},enumerable:!1,configurable:!0}),e}();so.decorators=[{type:t.Component,args:[{selector:"clr-stack-view",template:'\n <ng-content select="clr-stack-header"></ng-content>\n <div class="stack-view"><ng-content></ng-content></div>\n ',styles:["\n :host {\n display: block;\n }\n "]}]}],so.propDecorators={save:[{type:t.Output,args:["clrStackSave"]}]};var ao=function(e){this.stackView=e};ao.decorators=[{type:t.Component,args:[{selector:"clr-stack-header",template:'\n <h4 class="stack-header">\n <span class="stack-title"><ng-content></ng-content></span>\n\n <span class="stack-actions">\n <ng-content select=".stack-action"></ng-content>\n \x3c!-- Undocumented experimental feature: inline editing. --\x3e\n <button\n *ngIf="stackView.editable"\n class="stack-action btn btn-sm btn-link"\n (click)="stackView.editing = !stackView.editing"\n type="button"\n >\n Edit\n </button>\n \x3c!-- End of undocumented experimental feature. --\x3e\n </span>\n </h4>\n ',styles:["\n :host {\n display: block;\n }\n "]}]}],ao.ctorParameters=function(){return[{type:so}]};var co=function(e){var n=this;this.stackView=e,this.modelChange=new t.EventEmitter(!1),this.stackView.editable=!0,this.stackView.editingChange.subscribe((function(e){e||n.modelChange.emit(n.model)}))},lo=function(e){function t(t){var n=e.call(this,t)||this;return n.stackView=t,n.type="text",n}return oe(t,e),t}(co);lo.decorators=[{type:t.Component,args:[{selector:"clr-stack-input",inputs:["model: clrModel","type"],outputs:["modelChange: clrModelChange"],template:'\n <span *ngIf="!stackView.editing">{{ model }}</span>\n <input [type]="type" *ngIf="stackView.editing" [(ngModel)]="model" />\n '}]}],lo.ctorParameters=function(){return[{type:so}]};var po=function(e){function t(t){var n=e.call(this,t)||this;return n.stackView=t,n}return oe(t,e),t}(co);po.decorators=[{type:t.Component,args:[{selector:"clr-stack-select",inputs:["model: clrModel"],outputs:["modelChange: clrModelChange"],template:'\n <span *ngIf="!stackView.editing">{{ model }}</span>\n <div class="select" *ngIf="stackView.editing">\n <select [(ngModel)]="model">\n <ng-content></ng-content>\n </select>\n </div>\n '}]}],po.ctorParameters=function(){return[{type:so}]};var uo=function(){};uo.decorators=[{type:t.Directive,args:[{selector:"clr-stack-label, clr-stack-content"}]}];var ho=function(e){this.uniqueId=e};ho.decorators=[{type:t.Directive,args:[{selector:"[clrStackInput]",host:{"[class.clr-input]":"true","[attr.aria-labelledby]":"uniqueId"}}]}],ho.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[W]}]}]};var go,fo=[so,ao,oo,ho,uo,lo,po],yo=function(){n.ClarityIcons.addIcons(n.angleIcon)};yo.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,y,Sr],declarations:[fo],exports:[fo]}]}],yo.ctorParameters=function(){return[]},e.ClrSelectedState=void 0,(go=e.ClrSelectedState||(e.ClrSelectedState={}))[go.UNSELECTED=0]="UNSELECTED",go[go.SELECTED=1]="SELECTED",go[go.INDETERMINATE=2]="INDETERMINATE";var bo=function(){function t(){this.selected=new i.BehaviorSubject(e.ClrSelectedState.UNSELECTED),this._loading=!1,this.loading$=new i.BehaviorSubject(!1)}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.loading$.next(e)},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.selected.complete()},t.prototype.setSelected=function(t,n,r){t!==this.selected.value&&(this.selected.next(t),r&&t!==e.ClrSelectedState.INDETERMINATE&&this.children&&this.children.forEach((function(e){return e.setSelected(t,!1,!0)})),n&&this.parent&&this.parent._updateSelectionFromChildren())},t.prototype.toggleSelection=function(t){var n=this.selected.value===e.ClrSelectedState.SELECTED?e.ClrSelectedState.UNSELECTED:e.ClrSelectedState.SELECTED;this.setSelected(n,!0,t)},t.prototype.computeSelectionStateFromChildren=function(){var t,n,r=!1,i=!1;try{for(var o=se(this.children),s=o.next();!s.done;s=o.next()){switch(s.value.selected.value){case e.ClrSelectedState.INDETERMINATE:return e.ClrSelectedState.INDETERMINATE;case e.ClrSelectedState.SELECTED:if(r=!0,i)return e.ClrSelectedState.INDETERMINATE;break;case e.ClrSelectedState.UNSELECTED:default:if(i=!0,r)return e.ClrSelectedState.INDETERMINATE}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r?i?e.ClrSelectedState.UNSELECTED:e.ClrSelectedState.SELECTED:e.ClrSelectedState.UNSELECTED},t.prototype._updateSelectionFromChildren=function(){var e=this.computeSelectionStateFromChildren();e!==this.selected.value&&(this.selected.next(e),this.parent&&this.parent._updateSelectionFromChildren())},t}(),mo=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t&&t._addChild(n),n.children=[],n}return oe(t,e),t.prototype._addChild=function(e){this.children.push(e)},t.prototype._removeChild=function(e){var t=this.children.indexOf(e);t>-1&&this.children.splice(t,1)},t.prototype.destroy=function(){this.parent&&this.parent._removeChild(this),e.prototype.destroy.call(this)},t}(bo),vo=function(){this.selectable=!1,this.eager=!0,this.childrenFetched=new i.Subject};function Co(e){return e||new vo}vo.decorators=[{type:t.Injectable}];var So={provide:vo,useFactory:Co,deps:[[new t.Optional,new t.SkipSelf,vo]]},Io=function(){function e(){this._focusRequest=new i.Subject,this._focusChange=new i.Subject}return Object.defineProperty(e.prototype,"focusRequest",{get:function(){return this._focusRequest.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusChange",{get:function(){return this._focusChange.asObservable()},enumerable:!1,configurable:!0}),e.prototype.findSiblings=function(e){return e.parent?e.parent.children:this.rootNodeModels},e.prototype.findLastVisibleInNode=function(e){if(!e)return null;if(e.expanded&&e.children.length>0){var t=e.children,n=t[t.length-1];return this.findLastVisibleInNode(n)}return e},e.prototype.findNextFocusable=function(e){if(!e)return null;var t=this.findSiblings(e),n=t.indexOf(e);return n<t.length-1?t[n+1]:n===t.length-1?this.findNextFocusable(e.parent):null},e.prototype.findLastVisibleInTree=function(){var e=this.rootNodeModels&&this.rootNodeModels.length&&this.rootNodeModels[this.rootNodeModels.length-1];return this.findLastVisibleInNode(e)},e.prototype.findNodeAbove=function(e){if(!e)return null;var t=this.findSiblings(e),n=t.indexOf(e);return 0===n?e.parent:n>0?this.findLastVisibleInNode(t[n-1]):null},e.prototype.findNodeBelow=function(e){return e?e.expanded&&e.children.length>0?e.children[0]:this.findNextFocusable(e):null},e.prototype.focusNode=function(e){e&&this._focusRequest.next(e.nodeId)},e.prototype.broadcastFocusedNode=function(e){this.focusedNodeId!==e&&(this.focusedNodeId=e,this._focusChange.next(e))},e.prototype.focusParent=function(e){e&&this.focusNode(e.parent)},e.prototype.focusFirstVisibleNode=function(){var e=this.rootNodeModels&&this.rootNodeModels[0];this.focusNode(e)},e.prototype.focusLastVisibleNode=function(){this.focusNode(this.findLastVisibleInTree())},e.prototype.focusNodeAbove=function(e){this.focusNode(this.findNodeAbove(e))},e.prototype.focusNodeBelow=function(e){this.focusNode(this.findNodeBelow(e))},e}();Io.decorators=[{type:t.Injectable}];var Oo=function(){function e(e){this.el=e}return e.prototype.activate=function(){this.el.nativeElement&&this.el.nativeElement.click&&this.el.nativeElement.click()},e}();Oo.decorators=[{type:t.Directive,args:[{selector:".clr-treenode-link"}]}],Oo.ctorParameters=function(){return[{type:t.ElementRef}]};var Eo=function(){function n(n,r,i,o,s,a,c,l){this.nodeId=n,this.platformId=r,this.featuresService=o,this.expandService=s,this.commonStrings=a,this.focusManager=c,this.STATES=e.ClrSelectedState,this.skipEmitChange=!1,this.isModelLoading=!1,this.selectedChange=new t.EventEmitter(!1),this.expandedChange=new t.EventEmitter,this.subscriptions=[],this.contentContainerTabindex=-1,this.featuresService.recursion?l.view?this._model=l.view.context.clrModel:this._model=l._lView[8].clrModel:this._model=new mo(i?i._model:null),this._model.nodeId=this.nodeId}return n.prototype.isExpandable=function(){return void 0!==this.expandable?this.expandable:!!this.expandService.expandable||this._model.children&&this._model.children.length>0},Object.defineProperty(n.prototype,"selected",{get:function(){return this._model.selected.value},set:function(t){this.featuresService.selectable=!0,null==t&&(t=e.ClrSelectedState.UNSELECTED),"boolean"==typeof t&&(t=t?e.ClrSelectedState.SELECTED:e.ClrSelectedState.UNSELECTED),this.skipEmitChange=!0,this._model.setSelected(t,this.featuresService.eager,this.featuresService.eager),this.skipEmitChange=!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaSelected",{get:function(){return this.featuresService.selectable?this._model.selected.value===e.ClrSelectedState.SELECTED:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"expanded",{get:function(){return this.expandService.expanded},set:function(e){this.expandService.expanded=e},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){var e=this;this._model.expanded=this.expanded,this.subscriptions.push(this._model.selected.pipe(o.filter((function(){return!e.skipEmitChange}))).subscribe((function(t){e.selectedChange.emit(t)}))),this.subscriptions.push(this.expandService.expandChange.subscribe((function(t){e.expandedChange.emit(t),e._model.expanded=t}))),this.subscriptions.push(this.focusManager.focusRequest.subscribe((function(t){e.nodeId===t&&e.focusTreeNode()})),this.focusManager.focusChange.subscribe((function(t){e.checkTabIndex(t)}))),this.subscriptions.push(this._model.loading$.pipe(o.debounceTime(0)).subscribe((function(t){return e.isModelLoading=t})))},n.prototype.ngOnDestroy=function(){this._model.destroy(),this.subscriptions.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(n.prototype,"treeNodeLink",{get:function(){return this.treeNodeLinkList&&this.treeNodeLinkList.first},enumerable:!1,configurable:!0}),n.prototype.setTabIndex=function(e){this.contentContainerTabindex=e,this.contentContainer.nativeElement.setAttribute("tabindex",e)},n.prototype.checkTabIndex=function(e){r.isPlatformBrowser(this.platformId)&&this.nodeId!==e&&-1!==this.contentContainerTabindex&&this.setTabIndex(-1)},n.prototype.focusTreeNode=function(){r.isPlatformBrowser(this.platformId)&&document.activeElement!==this.contentContainer.nativeElement&&(this.setTabIndex(0),this.contentContainer.nativeElement.focus())},n.prototype.broadcastFocusOnContainer=function(){this.focusManager.broadcastFocusedNode(this.nodeId)},n.prototype.onKeyDown=function(e){switch(m(e),b(e.key)){case h.ArrowUp:this.focusManager.focusNodeAbove(this._model);break;case h.ArrowDown:this.focusManager.focusNodeBelow(this._model);break;case h.ArrowRight:this.expandOrFocusFirstChild();break;case h.ArrowLeft:this.collapseOrFocusParent();break;case h.Home:this.focusManager.focusFirstVisibleNode();break;case h.End:this.focusManager.focusLastVisibleNode();break;case h.Enter:this.triggerDefaultAction();break;case h.Space:e.preventDefault(),this.triggerDefaultAction()}},n.prototype.expandOrFocusFirstChild=function(){this.expanded?this._model.children.length>0&&this.focusManager.focusNodeBelow(this._model):this.isExpandable()&&(this.expandService.expanded=!0)},n.prototype.collapseOrFocusParent=function(){this.expanded?this.expandService.expanded=!1:this.focusManager.focusParent(this._model)},n.prototype.triggerDefaultAction=function(){this.treeNodeLink?this.treeNodeLink.activate():this.featuresService.selectable&&this._model.toggleSelection(this.featuresService.eager)},n}();Eo.decorators=[{type:t.Component,args:[{selector:"clr-tree-node",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div\n #contentContainer\n role="treeitem"\n class="clr-tree-node-content-container"\n tabindex="-1"\n [attr.aria-expanded]="isExpandable() ? expanded : null"\n [attr.aria-selected]="ariaSelected"\n (keydown)="onKeyDown($event)"\n (focus)="broadcastFocusOnContainer()"\n>\n <button\n *ngIf="isExpandable() && !isModelLoading && !expandService.loading"\n aria-hidden="true"\n type="button"\n tabindex="-1"\n class="clr-treenode-caret"\n (click)="expandService.toggle();"\n (focus)="focusTreeNode()"\n >\n <cds-icon\n class="clr-treenode-caret-icon"\n shape="angle"\n [attr.direction]="expandService.expanded ? \'down\' : \'right\'"\n ></cds-icon>\n </button>\n <div class="clr-treenode-spinner-container" *ngIf="expandService.loading || isModelLoading">\n <span class="clr-treenode-spinner spinner"></span>\n </div>\n <div class="clr-checkbox-wrapper clr-treenode-checkbox" *ngIf="featuresService.selectable">\n <input\n aria-hidden="true"\n type="checkbox"\n id="{{nodeId}}-check"\n class="clr-checkbox"\n [checked]="_model.selected.value === STATES.SELECTED"\n [indeterminate]="_model.selected.value === STATES.INDETERMINATE"\n (change)="_model.toggleSelection(featuresService.eager)"\n (focus)="focusTreeNode()"\n tabindex="-1"\n />\n <label for="{{nodeId}}-check" class="clr-control-label"></label>\n </div>\n <div class="clr-treenode-content" (mousedown)="focusTreeNode()">\n <ng-content></ng-content>\n <div class="clr-sr-only" *ngIf="featuresService.selectable">\n <span *ngIf="ariaSelected"> selected </span>\n <span *ngIf="!ariaSelected"> unselected </span>\n </div>\n </div>\n</div>\n<div\n class="clr-treenode-children"\n [@toggleChildrenAnim]="expandService.expanded ? \'expanded\' : \'collapsed\'"\n [attr.role]="isExpandable() && !featuresService.recursion ? \'group\' : null"\n>\n <ng-content select="clr-tree-node"></ng-content>\n <ng-content select="[clrIfExpanded]"></ng-content>\n <clr-recursive-children [parent]="_model"></clr-recursive-children>\n</div>\n',providers:[K,So,Qe,{provide:F,useExisting:Qe}],animations:[s.trigger("toggleChildrenAnim",[s.transition("collapsed => expanded",[s.style({height:0}),s.animate(200,s.style({height:"*"}))]),s.transition("expanded => collapsed",[s.style({height:"*"}),s.animate(200,s.style({height:0}))]),s.state("expanded",s.style({height:"*","overflow-y":"visible"})),s.state("collapsed",s.style({height:0}))])],host:{"[attr.role]":'"treeitem"',"[class.clr-tree-node]":"true"}}]}],Eo.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:Eo,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:vo},{type:Qe},{type:H},{type:Io},{type:t.Injector}]},Eo.propDecorators={selected:[{type:t.Input,args:["clrSelected"]}],selectedChange:[{type:t.Output,args:["clrSelectedChange"]}],expandable:[{type:t.Input,args:["clrExpandable"]}],expanded:[{type:t.Input,args:["clrExpanded"]}],expandedChange:[{type:t.Output,args:["clrExpandedChange"]}],contentContainer:[{type:t.ViewChild,args:["contentContainer",{read:t.ElementRef,static:!0}]}],treeNodeLinkList:[{type:t.ContentChildren,args:[Oo,{descendants:!1}]}]};var wo=function(){function e(e,t,n){this.featuresService=e,this.focusManagerService=t,this.el=n,this.subscriptions=[],this.tabindex=0}return Object.defineProperty(e.prototype,"lazy",{set:function(e){this.featuresService.eager=!e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMultiSelectable",{get:function(){return this.featuresService.selectable&&this.rootNodes.length>0},enumerable:!1,configurable:!0}),e.prototype.onFocusIn=function(e){e.target===this.el.nativeElement&&(this.focusManagerService.focusFirstVisibleNode(),delete this.tabindex)},e.prototype.ngAfterContentInit=function(){var e=this;this.setRootNodes(),this.subscriptions.push(this.rootNodes.changes.subscribe((function(){e.setRootNodes()})))},e.prototype.setRootNodes=function(){this.focusManagerService.rootNodeModels=this.rootNodes.map((function(e){return e._model})).filter((function(e){return!e.parent}))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();wo.decorators=[{type:t.Component,args:[{selector:"clr-tree",template:'\n <ng-content></ng-content>\n <clr-recursive-children\n *ngIf="featuresService.recursion"\n [children]="featuresService.recursion.root"\n ></clr-recursive-children>\n ',providers:[So,Io],host:{"[attr.tabindex]":"tabindex","[attr.role]":'"tree"',"[attr.aria-multiselectable]":"isMultiSelectable"}}]}],wo.ctorParameters=function(){return[{type:vo},{type:Io},{type:t.ElementRef}]},wo.propDecorators={lazy:[{type:t.Input,args:["clrLazy"]}],onFocusIn:[{type:t.HostListener,args:["focusin",["$event"]]}],rootNodes:[{type:t.ContentChildren,args:[Eo]}]};var _o=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.getChildren=r,o.featuresService=i,o.childrenFetched=!1,o._children=[],o.model=t,o.parent=n,o}return oe(t,e),t.prototype.clearChildren=function(){this._children.forEach((function(e){return e.destroy()})),delete this._children,this.childrenFetched=!1},t.prototype.fetchChildren=function(){var e=this;if(!this.childrenFetched){var t,n=this.getChildren(this.model);(t=n)&&"function"==typeof t.then?(this.loading=!0,n.then((function(t){e._children=e.wrapChildren(t),e.loading=!1}))):i.isObservable(n)?(this.loading=!0,this.subscription=n.subscribe((function(t){e._children=e.wrapChildren(t),e.loading=!1}))):this._children=n?this.wrapChildren(n):[],this.childrenFetched=!0,this.featuresService&&this.featuresService.childrenFetched.next()}},t.prototype.wrapChildren=function(e){var n=this;return e.map((function(e){return new t(e,n,n.getChildren,n.featuresService)}))},Object.defineProperty(t.prototype,"children",{get:function(){return this.fetchChildren(),this._children},set:function(e){this._children=e},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.subscription&&this.subscription.unsubscribe(),e.prototype.destroy.call(this)},t}(bo),Po=function(){function e(e,t,n){this.template=e,this.featuresService=t,this.cdr=n}return e.prototype.ngOnChanges=function(){var e,t=this;e=Array.isArray(this.nodes)?this.nodes.map((function(e){return new _o(e,null,t.getChildren,t.featuresService)})):[new _o(this.nodes,null,this.getChildren,this.featuresService)],this.childrenFetchSubscription||(this.childrenFetchSubscription=this.featuresService.childrenFetched.pipe(o.debounceTime(0)).subscribe((function(){t.cdr.detectChanges()}))),this.featuresService.recursion={template:this.template,root:e}},e.prototype.ngOnDestroy=function(){this.childrenFetchSubscription&&this.childrenFetchSubscription.unsubscribe()},e}();Po.decorators=[{type:t.Directive,args:[{selector:"[clrRecursiveFor][clrRecursiveForOf]"}]}],Po.ctorParameters=function(){return[{type:t.TemplateRef},{type:vo},{type:t.ChangeDetectorRef}]},Po.propDecorators={nodes:[{type:t.Input,args:["clrRecursiveForOf"]}],getChildren:[{type:t.Input,args:["clrRecursiveForGetChildren"]}]};var Do=function(){function e(e,t){var n=this;this.featuresService=e,this.expandService=t,t&&(this.subscription=this.expandService.expandChange.subscribe((function(e){!e&&n.parent&&!n.featuresService.eager&&n.featuresService.recursion&&n.parent.clearChildren()})))}return e.prototype.shouldRender=function(){return this.featuresService.recursion&&(this.featuresService.eager||!this.expandService||this.expandService.expanded)},e.prototype.getContext=function(e){return{$implicit:e.model,clrModel:e}},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}();Do.decorators=[{type:t.Component,args:[{selector:"clr-recursive-children",template:'\n <ng-container *ngIf="shouldRender()">\n <ng-container *ngFor="let child of parent?.children || children">\n <ng-container *ngTemplateOutlet="featuresService.recursion.template; context: getContext(child)"></ng-container>\n </ng-container>\n </ng-container>\n ',host:{"[attr.role]":'"group"'}}]}],Do.ctorParameters=function(){return[{type:vo},{type:Qe,decorators:[{type:t.Optional}]}]},Do.propDecorators={parent:[{type:t.Input,args:["parent"]}],children:[{type:t.Input,args:["children"]}]};var To=[wo,Eo,Po,Oo],xo=function(){n.ClarityIcons.addIcons(n.angleIcon)};xo.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,er],declarations:[To,Do],exports:[To]}]}],xo.ctorParameters=function(){return[]};var Ao=function(){};Ao.decorators=[{type:t.NgModule,args:[{exports:[io,yo,xo]}]}];var ko=function(){function e(){}return e.linkParent=function(e,t,n){e.forEach((function(e){return e[n]=t}))},e.linkVertical=function(e,t){void 0===t&&(t=!0),e.forEach((function(t,n){n>0&&(t.up=e[n-1]),n<e.length-1&&(t.down=e[n+1])})),t&&e.length>1&&(e[0].up=e[e.length-1],e[e.length-1].down=e[0])},e}();function Ro(e,t,n){return i.Observable.create((function(r){t(r);var i=e.subscribe(r);return function(){i.unsubscribe(),n&&n(r)}}))}var Lo=function(){function e(e,t,n,r,i,o){this.id=e,this.renderer=t,this.parent=n,this.toggleService=r,this.focusService=i,this.platformId=o,this._unlistenFuncs=[],this.focusBackOnTrigger=!1,this.resetChildren(),this.moveToFirstItemWhenOpen(),this.parent||this.handleRootFocus()}return e.prototype.moveToFirstItemWhenOpen=function(){var e=this;this.toggleService.openChange.subscribe((function(t){t&&e.toggleService.originalEvent&&setTimeout((function(){e.focusService.moveTo(e),e.parent?e.focusService.move(Sn.RIGHT):e.focusService.move(Sn.DOWN)}))}))},e.prototype.handleRootFocus=function(){var e=this;this.toggleService.openChange.subscribe((function(t){t||(e.focusService.reset(e),e.focusBackOnTrigger&&e.focus()),e.focusBackOnTrigger=t}))},Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger},set:function(e){var t=this;this._trigger=e,this.parent?this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowright",(function(e){return t.toggleService.toggleWithEvent(e)}))):(this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowup",(function(e){return t.toggleService.toggleWithEvent(e)}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowdown",(function(e){return t.toggleService.toggleWithEvent(e)}))),this.focusService.listenToArrowKeys(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(e){var t=this;this._container=e,this._unlistenFuncs.push(this.renderer.listen(e,"keydown.tab",(function(e){return t.toggleService.toggleWithEvent(e)}))),this.parent?this._unlistenFuncs.push(this.renderer.listen(e,"keydown.esc",(function(e){t.focusService.move(Sn.LEFT),e.stopPropagation()}))):(this.focusService.registerContainer(e),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.esc",(function(e){return t.toggleService.toggleWithEvent(e)}))),this._unlistenFuncs.push(this.renderer.listen(e,"blur",(function(n){t.children.pipe(o.take(1)).subscribe((function(e){return e.forEach((function(e){return e.blur()}))}));var i=n.relatedTarget||document.activeElement;i&&r.isPlatformBrowser(t.platformId)&&(e.contains(i)||i===t.trigger)||(t.focusBackOnTrigger=!1,t.toggleService.open=!1)}))))},enumerable:!1,configurable:!0}),e.prototype.focus=function(){this.trigger&&r.isPlatformBrowser(this.platformId)&&this.trigger.focus()},e.prototype.blur=function(){this.trigger&&r.isPlatformBrowser(this.platformId)&&this.trigger.blur()},e.prototype.activate=function(){r.isPlatformBrowser(this.platformId)&&this.trigger.click()},e.prototype.openAndGetChildren=function(){var e=this;return Ro(this.children,(function(){return e.toggleService.open=!0}))},e.prototype.closeAndGetThis=function(){var e=this;return Ro(i.of(this),(function(){return e.toggleService.open=!1}))},e.prototype.resetChildren=function(){this.children=new i.ReplaySubject(1),this.parent?this.right=this.openAndGetChildren().pipe(o.map((function(e){return e[0]}))):(this.down=this.openAndGetChildren().pipe(o.map((function(e){return e[0]}))),this.up=this.openAndGetChildren().pipe(o.map((function(e){return e[e.length-1]}))))},e.prototype.addChildren=function(e){ko.linkVertical(e),this.parent&&ko.linkParent(e,this.closeAndGetThis(),Sn.LEFT),this.children.next(e)},e.prototype.ngOnDestroy=function(){this._unlistenFuncs.forEach((function(e){return e()})),this.focusService.detachListeners()},e}();Lo.decorators=[{type:t.Injectable}],Lo.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:t.Renderer2},{type:Lo,decorators:[{type:t.SkipSelf},{type:t.Optional}]},{type:v},{type:Fn},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var jo=On(Lo),No=function(){function e(){this._changes=new i.Subject}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!1,configurable:!0}),e.prototype.closeMenus=function(){this._changes.next(!1)},e}();function Fo(e){return e||new No}No.decorators=[{type:t.Injectable}];var Mo={provide:No,useFactory:Fo,deps:[[new t.Optional,new t.SkipSelf,No]]},Vo=function(){function e(e,t,n,r){var i=this;this.parent=e,this.toggleService=t,this.cdr=n,this.subscriptions=[],this.isMenuClosable=!0,this.subscriptions.push(r.changes.subscribe((function(e){return i.toggleService.open=e}))),this.subscriptions.push(t.openChange.subscribe((function(){return i.cdr.markForCheck()})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();Vo.decorators=[{type:t.Component,args:[{selector:"clr-dropdown",template:"<ng-content></ng-content>",host:{"[class.dropdown]":"true","[class.open]":"toggleService.open"},providers:[Mo,{provide:xn,useExisting:t.ElementRef},Vn,v,jo]}]}],Vo.ctorParameters=function(){return[{type:Vo,decorators:[{type:t.SkipSelf},{type:t.Optional}]},{type:v},{type:t.ChangeDetectorRef},{type:No}]},Vo.propDecorators={isMenuClosable:[{type:t.Input,args:["clrCloseMenuOnItemClick"]}]};var Bo=function(){function e(e,t,n,r){this.id=e,this.el=t,this.renderer=n,this.platformId=r,this.disabled=!1,n.setAttribute(t.nativeElement,"id",e),n.setAttribute(t.nativeElement,"tabindex","-1")}return e.prototype.focus=function(){r.isPlatformBrowser(this.platformId)&&(this.renderer.setAttribute(this.el.nativeElement,"tabindex","0"),this.el.nativeElement.focus(),this.el.nativeElement.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},e.prototype.blur=function(){r.isPlatformBrowser(this.platformId)&&(this.renderer.setAttribute(this.el.nativeElement,"tabindex","-1"),this.el.nativeElement.blur())},e.prototype.activate=function(){r.isPlatformBrowser(this.platformId)&&this.el.nativeElement.click()},e}();Bo.decorators=[{type:t.Injectable}],Bo.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:t.ElementRef},{type:t.Renderer2},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var zo,Ho=[K,{provide:In,useClass:Bo}],Go=function(){function e(e,t,n,r,i){this.dropdown=e,this.el=t,this._dropdownService=n,this.renderer=r,this.focusableItem=i,this.setByDeprecatedDisabled=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this.focusableItem.disabled},set:function(e){this.focusableItem.disabled=!!e||""===e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabledDeprecated",{get:function(){return this.focusableItem.disabled},set:function(e){this.focusableItem.disabled=!!e||""===e,this.setByDeprecatedDisabled=!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropdownItemId",{get:function(){return this.focusableItem.id},set:function(e){this.focusableItem.id=e},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.unlisten=this.renderer.listen(this.el.nativeElement,"click",(function(){return e.onDropdownItemClick()}))},e.prototype.onDropdownItemClick=function(){this.dropdown.isMenuClosable&&!this.el.nativeElement.classList.contains("disabled")&&this._dropdownService.closeMenus()},e.prototype.ngOnDestroy=function(){this.unlisten&&this.unlisten()},e}();Go.decorators=[{type:t.Directive,args:[{selector:"[clrDropdownItem]",host:{"[class.disabled]":"disabled","[class.dropdown-item]":"true","[attr.role]":'"menuitem"',"[attr.aria-disabled]":"disabled","[attr.disabled]":"(disabled && setByDeprecatedDisabled)? '' : null","[attr.id]":"dropdownItemId"},providers:[Ho]}]}],Go.ctorParameters=function(){return[{type:Vo},{type:t.ElementRef},{type:No},{type:t.Renderer2},{type:In}]},Go.propDecorators={disabled:[{type:t.Input,args:["clrDisabled"]}],disabledDeprecated:[{type:t.Input,args:["disabled"]}],dropdownItemId:[{type:t.Input,args:["id"]}]},function(e){e[e.RIGHT_CENTER=0]="RIGHT_CENTER",e[e.RIGHT_TOP=1]="RIGHT_TOP",e[e.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",e[e.TOP_CENTER=3]="TOP_CENTER",e[e.TOP_RIGHT=4]="TOP_RIGHT",e[e.TOP_LEFT=5]="TOP_LEFT",e[e.BOTTOM_CENTER=6]="BOTTOM_CENTER",e[e.BOTTOM_RIGHT=7]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=8]="BOTTOM_LEFT",e[e.LEFT_CENTER=9]="LEFT_CENTER",e[e.LEFT_TOP=10]="LEFT_TOP",e[e.LEFT_BOTTOM=11]="LEFT_BOTTOM"}(zo||(zo={}));var Wo="absolute",Uo="scroll",Yo="auto",Ko=function(){function e(e){this.element=e,this.scrollableElements=[],this.boundOnScrollListener=this.emitScrollEvent.bind(this),e.style.position=Wo,e.style.top=0,e.style.bottom="auto",e.style.left=0,e.style.right="auto"}return e.prototype.anchor=function(e,t,n,r){var i=void 0===r?{}:r,o=i.offsetX,s=void 0===o?0:o,a=i.offsetY,c=void 0===a?0:a,l=i.useAnchorParent,p=void 0!==l&&l;this.addScrollEventListeners(e),p&&(e=e.parentNode),e.style.position="static";var u=e.getBoundingClientRect(),d=this.element.getBoundingClientRect(),h=u.left-d.left+s,g=u.top-d.top+c;switch(t){case zo.LEFT_TOP:case zo.TOP_LEFT:break;case zo.TOP_CENTER:h+=u.width/2;break;case zo.TOP_RIGHT:case zo.RIGHT_TOP:h+=u.width;break;case zo.LEFT_BOTTOM:case zo.BOTTOM_LEFT:g+=u.height;break;case zo.BOTTOM_CENTER:g+=u.height,h+=u.width/2;break;case zo.BOTTOM_RIGHT:case zo.RIGHT_BOTTOM:g+=u.height,h+=u.width;break;case zo.LEFT_CENTER:g+=u.height/2;break;case zo.RIGHT_CENTER:g+=u.height/2,h+=u.width}switch(n){case zo.LEFT_TOP:case zo.TOP_LEFT:break;case zo.TOP_CENTER:h-=d.width/2;break;case zo.TOP_RIGHT:case zo.RIGHT_TOP:h-=d.width;break;case zo.LEFT_BOTTOM:case zo.BOTTOM_LEFT:g-=d.height;break;case zo.BOTTOM_CENTER:g-=d.height,h-=d.width/2;break;case zo.BOTTOM_RIGHT:case zo.RIGHT_BOTTOM:g-=d.height,h-=d.width;break;case zo.LEFT_CENTER:g-=d.height/2;break;case zo.RIGHT_CENTER:g-=d.height/2,h-=d.width}var f=getComputedStyle(this.element),y=parseInt(f.marginLeft,10),b=parseInt(f.marginRight,10),m=parseInt(f.marginTop,10),v=parseInt(f.marginBottom,10);switch(t){case zo.LEFT_TOP:case zo.TOP_LEFT:case zo.TOP_RIGHT:case zo.RIGHT_TOP:n!==zo.BOTTOM_RIGHT&&n!==zo.RIGHT_BOTTOM||(g-=v,h-=b),n!==zo.BOTTOM_LEFT&&n!==zo.LEFT_BOTTOM||(g-=m,h+=y),n!==zo.TOP_LEFT&&n!==zo.LEFT_TOP||(g+=m,h+=y),n!==zo.TOP_RIGHT&&n!==zo.RIGHT_TOP||(g+=m,h-=b);break;case zo.LEFT_BOTTOM:case zo.BOTTOM_LEFT:case zo.BOTTOM_RIGHT:case zo.RIGHT_BOTTOM:n!==zo.BOTTOM_LEFT&&n!==zo.LEFT_BOTTOM||(g-=v,h+=y),n!==zo.BOTTOM_RIGHT&&n!==zo.RIGHT_BOTTOM||(g-=v,h-=b),n!==zo.TOP_LEFT&&n!==zo.LEFT_TOP||(g+=m,h+=y),n!==zo.TOP_RIGHT&&n!==zo.RIGHT_TOP||(g+=m,h-=b);break;case zo.TOP_CENTER:g-=v,h+=y,h-=b;break;case zo.BOTTOM_CENTER:g+=m,h+=y,h-=b;break;case zo.LEFT_CENTER:g+=m,g-=v,h-=b;break;case zo.RIGHT_CENTER:g+=m,g-=v,h+=y}return this.element.style.transform="translateX("+Math.round(h)+"px) translateY("+Math.round(g)+"px)",this._scroll.asObservable()},e.prototype.release=function(){this.element.style.transform="",this.removeScrollEventListeners()},e.prototype.isPositioned=function(e){var t=getComputedStyle(e).position;return"relative"===t||t===Wo||"fixed"===t},e.prototype.emitScrollEvent=function(){this._scroll.next()},e.prototype.addScrollEventListeners=function(e){this._scroll=new i.Subject;for(var t=e,n=e;n&&n!==document&&(this.scrolls(n)&&(n.addEventListener("scroll",this.boundOnScrollListener),this.scrollableElements.push(n)),n===t||!this.isPositioned(n));)n=n.parentNode},e.prototype.removeScrollEventListeners=function(){var e,t;try{for(var n=se(this.scrollableElements),r=n.next();!r.done;r=n.next()){r.value.removeEventListener("scroll",this.boundOnScrollListener)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.scrollableElements.length=0,this._scroll&&(this._scroll.complete(),delete this._scroll)},e.prototype.scrolls=function(e){var t=getComputedStyle(e);return t.overflowX===Uo||t.overflowX===Yo||t.overflowY===Uo||t.overflowY===Yo},e}(),Zo=function(){function e(e,n){var r=this;this.parentHost=n,this.updateAnchor=!1,this.popoverOptions={},this.closeOnOutsideClick=!1,this.el=e.get(t.ElementRef),this.toggleService=e.get(v),this.renderer=e.get(t.Renderer2),this.anchorElem=n.nativeElement,this.popoverInstance=new Ko(this.el.nativeElement),this.subscription=this.toggleService.openChange.subscribe((function(e){e?(r.anchor(),r.attachESCListener()):(r.release(),r.detachESCListener())})),this.toggleService.open&&(this.anchor(),this.attachESCListener())}return e.prototype.anchor=function(){this.updateAnchor=!0,this.ignore=this.toggleService.originalEvent},e.prototype.release=function(){this.detachOutsideClickListener(),this.popoverInstance.release()},e.prototype.ngAfterViewChecked=function(){var e=this;this.updateAnchor&&(this.updateAnchor=!1,this.popoverInstance.anchor(this.anchorElem,this.anchorPoint,this.popoverPoint,this.popoverOptions).subscribe((function(){e.toggleService.open=!1})),this.attachOutsideClickListener())},e.prototype.ngOnDestroy=function(){this.release(),this.detachESCListener(),this.subscription.unsubscribe()},Object.defineProperty(e.prototype,"isOffScreen",{get:function(){return!this.toggleService.open},enumerable:!1,configurable:!0}),e.prototype.attachESCListener=function(){var e=this;this.popoverOptions.ignoreGlobalESCListener||(this.documentESCListener=this.renderer.listen("document","keydown",(function(t){t&&t.key&&("Escape"!==t.key&&"Esc"!==t.key||(e.toggleService.open=!1))})))},e.prototype.detachESCListener=function(){this.documentESCListener&&(this.documentESCListener(),delete this.documentESCListener)},e.prototype.attachOutsideClickListener=function(){var e=this;this.closeOnOutsideClick&&(this.hostClickListener=this.renderer.listen(this.el.nativeElement,"click",(function(t){return e.ignore=t})),this.ignoredElement&&(this.ignoredElementClickListener=this.renderer.listen(this.ignoredElement,"click",(function(t){return e.ignore=t}))),this.documentClickListener=this.renderer.listen("document","click",(function(t){t===e.ignore?delete e.ignore:e.toggleService.open=!1})))},e.prototype.detachOutsideClickListener=function(){this.closeOnOutsideClick&&(this.hostClickListener&&(this.hostClickListener(),delete this.hostClickListener),this.ignoredElementClickListener&&(this.ignoredElementClickListener(),delete this.ignoredElementClickListener),this.documentClickListener&&(this.documentClickListener(),delete this.documentClickListener))},e}();Zo.decorators=[{type:t.Directive}],Zo.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef,decorators:[{type:t.SkipSelf}]}]},Zo.propDecorators={isOffScreen:[{type:t.HostBinding,args:["class.is-off-screen"]}]};var qo=function(e){function t(t,n,r,i){var o=this;if(!n)throw new Error("clr-dropdown-menu should only be used inside of a clr-dropdown");return o=e.call(this,t,n)||this,r?(o.anchorPoint=zo.RIGHT_TOP,o.popoverPoint=zo.LEFT_TOP):(o.anchorPoint=zo.BOTTOM_LEFT,o.popoverPoint=zo.LEFT_TOP),o.popoverOptions.allowMultipleOpen=!0,o.popoverOptions.ignoreGlobalESCListener=!0,o.closeOnOutsideClick=!0,o.focusHandler=i,o}return oe(t,e),Object.defineProperty(t.prototype,"position",{set:function(e){switch(e){case"top-right":this.anchorPoint=zo.TOP_RIGHT,this.popoverPoint=zo.RIGHT_BOTTOM;break;case"top-left":this.anchorPoint=zo.TOP_LEFT,this.popoverPoint=zo.LEFT_BOTTOM;break;case"bottom-right":this.anchorPoint=zo.BOTTOM_RIGHT,this.popoverPoint=zo.RIGHT_TOP;break;case"bottom-left":this.anchorPoint=zo.BOTTOM_LEFT,this.popoverPoint=zo.LEFT_TOP;break;case"right-top":this.anchorPoint=zo.RIGHT_TOP,this.popoverPoint=zo.LEFT_TOP;break;case"right-bottom":this.anchorPoint=zo.RIGHT_BOTTOM,this.popoverPoint=zo.LEFT_BOTTOM;break;case"left-top":this.anchorPoint=zo.LEFT_TOP,this.popoverPoint=zo.RIGHT_TOP;break;case"left-bottom":this.anchorPoint=zo.LEFT_BOTTOM,this.popoverPoint=zo.RIGHT_BOTTOM;break;default:this.anchorPoint=zo.BOTTOM_LEFT,this.popoverPoint=zo.LEFT_TOP}},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){var e=this;this.focusHandler.container=this.el.nativeElement,this.items.changes.subscribe((function(){return e.focusHandler.addChildren(e.items.toArray())})),this.items.notifyOnChanges()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.focusHandler.resetChildren()},t}(Zo);qo.decorators=[{type:t.Component,args:[{selector:"clr-dropdown-menu",template:" <ng-content></ng-content> ",host:{"[class.dropdown-menu]":"true","[attr.role]":'"menu"'}}]}],qo.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef,decorators:[{type:t.Optional},{type:t.Inject,args:[xn]}]},{type:qo,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:Lo}]},qo.propDecorators={position:[{type:t.Input,args:["clrPosition"]}],items:[{type:t.ContentChildren,args:[In]}]};var Xo=function(){function e(e,t,n,r){this.toggleService=t,this.isRootLevelToggle=!0,e.parent&&(this.isRootLevelToggle=!1),r.trigger=n.nativeElement}return Object.defineProperty(e.prototype,"active",{get:function(){return this.toggleService.open},enumerable:!1,configurable:!0}),e.prototype.onDropdownTriggerClick=function(e){this.toggleService.toggleWithEvent(e)},e}();Xo.decorators=[{type:t.Directive,args:[{selector:"[clrDropdownTrigger],[clrDropdownToggle]",host:{"[class.dropdown-toggle]":"isRootLevelToggle","[class.dropdown-item]":"!isRootLevelToggle","[class.expandable]":"!isRootLevelToggle","[class.active]":"active","[attr.aria-haspopup]":'"menu"',"[attr.aria-expanded]":"active"}}]}],Xo.ctorParameters=function(){return[{type:Vo},{type:v},{type:t.ElementRef},{type:Lo}]},Xo.propDecorators={onDropdownTriggerClick:[{type:t.HostListener,args:["click",["$event"]]}]};var $o=[Vo,qo,Xo,Go],Jo=function(){};Jo.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[$o],exports:[$o,nt,y]}]}];var Qo=["info","warning","danger","success"],es=function(){function e(e){this.commonStrings=e,this.defaultIconShape="info-circle",this._alertIconShape="",this._alertType="info"}return Object.defineProperty(e.prototype,"alertType",{get:function(){return this._alertType},set:function(e){Qo.indexOf(e)>-1&&(this._alertType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alertIconShape",{get:function(){return""===this._alertIconShape?this.iconInfoFromType(this._alertType).shape:this._alertIconShape},set:function(e){e?e!==this._alertIconShape&&(this._alertIconShape=e):this._alertIconShape=""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alertIconTitle",{get:function(){return this.iconInfoFromType(this._alertType).title},enumerable:!1,configurable:!0}),e.prototype.iconInfoFromType=function(e){var t={shape:"",cssClass:"",title:""};switch(e){case"warning":t.shape="exclamation-triangle",t.cssClass="alert-warning",t.title=this.commonStrings.keys.warning;break;case"danger":t.shape="exclamation-circle",t.cssClass="alert-danger",t.title=this.commonStrings.keys.danger;break;case"success":t.shape="check-circle",t.cssClass="alert-success",t.title=this.commonStrings.keys.success;break;default:t.shape=this.defaultIconShape,t.cssClass="alert-info",t.title=this.commonStrings.keys.info}return t},e}();es.decorators=[{type:t.Injectable}],es.ctorParameters=function(){return[{type:H}]};var ts=function(){function e(){this._change=new i.Subject}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){e!==this._current&&(this._current=e,this._change.next(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeAlerts",{get:function(){return this.allAlerts&&this.allAlerts.filter((function(e){return!e._closed}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlert",{get:function(){return this.activeAlerts&&this.activeAlerts[this.current]},set:function(e){this.current=this.activeAlerts.indexOf(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.activeAlerts&&this.activeAlerts.length||0},enumerable:!1,configurable:!0}),e.prototype.manage=function(e){var t=this;this.subscription&&this.subscription.unsubscribe(),this.allAlerts=e,this.current="number"==typeof this._current?this._current:0,this._change.next(this.current),this.subscription=this.allAlerts.changes.subscribe((function(){t.current>=t.allAlerts.length&&(t.current=Math.max(0,t.allAlerts.length-1))}))},e.prototype.next=function(){this.current=this.current===this.activeAlerts.length-1?0:this.current+1},e.prototype.previous=function(){0!==this.activeAlerts.length&&(this.current=0===this.current?this.activeAlerts.length-1:this.current-1)},e.prototype.close=function(){this.previous()},e.prototype.destroy=function(){this.subscription&&this.subscription.unsubscribe()},e}();ts.decorators=[{type:t.Injectable}];var ns=function(){function e(e,n,r,i){this.iconService=e,this.cdr=n,this.multiAlertService=r,this.commonStrings=i,this.subscriptions=[],this.isSmall=!1,this.closable=!0,this.isAppLevel=!1,this.clrCloseButtonAriaLabel=this.commonStrings.keys.alertCloseButtonAriaLabel,this._closed=!1,this._closedChanged=new t.EventEmitter(!1)}return e.prototype.ngOnInit=function(){var e=this;this.multiAlertService&&this.subscriptions.push(this.multiAlertService.changes.subscribe((function(){e.hidden=e.multiAlertService.currentAlert!==e})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(e.prototype,"alertType",{get:function(){return this.iconService.alertType},set:function(e){this.iconService.alertType=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alertIconShape",{set:function(e){this.iconService.alertIconShape=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alertClass",{get:function(){return this.iconService.iconInfoFromType(this.iconService.alertType).cssClass},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(e){e!==this._hidden&&(this._hidden=e,this.cdr.detectChanges())},enumerable:!1,configurable:!0}),e.prototype.close=function(){this.closable&&(this._closed=!0,this.multiAlertService&&this.multiAlertService.close(),this._closedChanged.emit(!0))},e.prototype.open=function(){this._closed=!1,this._closedChanged.emit(!1)},e}();ns.decorators=[{type:t.Component,args:[{selector:"clr-alert",providers:[es],template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div\n *ngIf="!_closed"\n class="alert"\n [ngClass]="alertClass"\n [class.alert-hidden]="hidden"\n [class.alert-sm]="isSmall"\n [class.alert-app-level]="isAppLevel"\n>\n <div class="alert-items">\n <ng-content></ng-content>\n </div>\n <button type="button" class="close" *ngIf="closable" (click)="close()" [attr.aria-label]="clrCloseButtonAriaLabel">\n <cds-icon shape="window-close"></cds-icon>\n </button>\n</div>\n',styles:[":host { display: block; }"]}]}],ns.ctorParameters=function(){return[{type:es},{type:t.ChangeDetectorRef},{type:ts,decorators:[{type:t.Optional}]},{type:H}]},ns.propDecorators={isSmall:[{type:t.Input,args:["clrAlertSizeSmall"]}],closable:[{type:t.Input,args:["clrAlertClosable"]}],isAppLevel:[{type:t.Input,args:["clrAlertAppLevel"]}],clrCloseButtonAriaLabel:[{type:t.Input}],_closed:[{type:t.Input,args:["clrAlertClosed"]}],_closedChanged:[{type:t.Output,args:["clrAlertClosedChange"]}],alertType:[{type:t.Input,args:["clrAlertType"]}],alertIconShape:[{type:t.Input,args:["clrAlertIcon"]}]};var rs=function(e){this.iconService=e};rs.decorators=[{type:t.Component,args:[{selector:"clr-alert-item",template:'\n <div class="alert-icon-wrapper">\n <cds-icon\n class="alert-icon"\n [attr.shape]="iconService.alertIconShape"\n [attr.title]="iconService.alertIconTitle"\n ></cds-icon>\n </div>\n <ng-content></ng-content>\n ',host:{class:"alert-item"}}]}],rs.ctorParameters=function(){return[{type:es}]};var is=function(){function e(e){this.multiAlertService=e,this.subscriptions=[],this.currentAlertIndexChange=new t.EventEmitter(!1),this.currentAlertChange=new t.EventEmitter(!1)}return Object.defineProperty(e.prototype,"allAlerts",{set:function(e){this.multiAlertService.manage(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_inputCurrentIndex",{set:function(e){Number.isInteger(e)&&e>=0&&(this.multiAlertService.current=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlertIndex",{get:function(){return this.multiAlertService.current},set:function(e){this.multiAlertService.current=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlert",{get:function(){return this.multiAlertService.currentAlert},set:function(e){e&&(this.multiAlertService.currentAlert=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alerts",{get:function(){return this.allAlerts.filter((function(e){return!1===e.hidden}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlertType",{get:function(){return this.multiAlertService.currentAlert?this.multiAlertService.currentAlert.alertType:""},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.subscriptions.push(this.multiAlertService.changes.subscribe((function(t){e.currentAlertIndexChange.next(t),e.currentAlertChange.next(e.multiAlertService.currentAlert)})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.multiAlertService.destroy()},e}();is.decorators=[{type:t.Component,args:[{selector:"clr-alerts",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<clr-alerts-pager *ngIf="multiAlertService.count > 1" [clrCurrentAlertIndex]="currentAlertIndex"> </clr-alerts-pager>\n<ng-content select="clr-alert"></ng-content>\n',providers:[ts],host:{"[class.alerts]":"true","[class.alert-danger]":"this.currentAlertType == 'danger'","[class.alert-info]":"this.currentAlertType == 'info'","[class.alert-success]":"this.currentAlertType == 'success'","[class.alert-warning]":"this.currentAlertType == 'warning'"},styles:[":host { display: block }"]}]}],is.ctorParameters=function(){return[{type:ts}]},is.propDecorators={allAlerts:[{type:t.ContentChildren,args:[ns]}],_inputCurrentIndex:[{type:t.Input,args:["clrCurrentAlertIndex"]}],currentAlertIndexChange:[{type:t.Output,args:["clrCurrentAlertIndexChange"]}],currentAlert:[{type:t.Input,args:["clrCurrentAlert"]}],currentAlertChange:[{type:t.Output,args:["clrCurrentAlertChange"]}]};var os=function(){function e(e,n){this.multiAlertService=e,this.commonStrings=n,this.currentAlertChange=new t.EventEmitter(!1),this.currentAlertIndexChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"currentAlert",{get:function(){return this.multiAlertService.currentAlert},set:function(e){e&&(this.multiAlertService.currentAlert=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlertIndex",{get:function(){return this.multiAlertService.current},set:function(e){this.multiAlertService.current=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.multiAlertServiceChanges=this.multiAlertService.changes.subscribe((function(t){e.currentAlertIndexChange.emit(t),e.currentAlertChange.emit(e.multiAlertService.activeAlerts[t])}))},e.prototype.pageUp=function(){this.multiAlertService.next()},e.prototype.pageDown=function(){this.multiAlertService.previous()},e.prototype.ngOnDestroy=function(){this.multiAlertServiceChanges.unsubscribe()},e}();os.decorators=[{type:t.Component,args:[{selector:"clr-alerts-pager",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div class="alerts-pager-control">\n <div class="alerts-page-down">\n <button class="alerts-pager-button" (click)="pageDown()">\n <cds-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.previous"></cds-icon>\n </button>\n </div>\n <div class="alerts-pager-text">{{this.multiAlertService.current+1}} / {{this.multiAlertService.count}}</div>\n <div class="alerts-page-up">\n <button class="alerts-pager-button" (click)="pageUp()">\n <cds-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.next"></cds-icon>\n </button>\n </div>\n</div>\n',host:{"[class.alerts-pager]":"true"}}]}],os.ctorParameters=function(){return[{type:ts},{type:H}]},os.propDecorators={currentAlert:[{type:t.Input,args:["clrCurrentAlert"]}],currentAlertChange:[{type:t.Output,args:["clrCurrentAlertChange"]}],currentAlertIndex:[{type:t.Input,args:["clrCurrentAlertIndex"]}],currentAlertIndexChange:[{type:t.Output,args:["clrCurrentAlertIndexChange"]}]};var ss=function(){};ss.decorators=[{type:t.Directive,args:[{selector:".alert-text"}]}];var as=[ns,rs,is,os,ss],cs=function(){n.ClarityIcons.addIcons(n.checkCircleIcon,n.infoCircleIcon,n.exclamationCircleIcon,n.exclamationTriangleIcon,n.windowCloseIcon)};cs.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,Jo],declarations:[as],exports:[as]}]}],cs.ctorParameters=function(){return[]};var ls=function(){};ls.decorators=[{type:t.NgModule,args:[{exports:[cs]}]}];var ps=function(){};ps.NAV_LEVEL_1=1,ps.NAV_LEVEL_2=2,ps.NAV_CLOSE_ALL="NAV_CLOSE_ALL",ps.NAV_OPEN="NAV_OPEN",ps.NAV_CLOSE="NAV_CLOSE",ps.NAV_TOGGLE="NAV_TOGGLE",ps.NAV_CLASS_HAMBURGER_MENU="open-hamburger-menu",ps.NAV_CLASS_OVERFLOW_MENU="open-overflow-menu",ps.NAV_CLASS_TRIGGER_1="header-hamburger-trigger",ps.NAV_CLASS_TRIGGER_2="header-overflow-trigger",ps.NAV_CLASS_LEVEL_1="clr-nav-level-1",ps.NAV_CLASS_LEVEL_2="clr-nav-level-2";var us=function(){function e(e,t){this._controlCode=e,this._navLevel=t}return Object.defineProperty(e.prototype,"controlCode",{get:function(){return this._controlCode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navLevel",{get:function(){return this._navLevel},enumerable:!1,configurable:!0}),e}(),ds=function(){function e(){this.responsiveNavList=[],this.registerNavSubject=new i.ReplaySubject,this.controlNavSubject=new i.Subject,this.closeAllNavs()}return Object.defineProperty(e.prototype,"registeredNavs",{get:function(){return this.registerNavSubject.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navControl",{get:function(){return this.controlNavSubject.asObservable()},enumerable:!1,configurable:!0}),e.prototype.registerNav=function(e){e&&!this.isNavRegistered(e)&&(this.responsiveNavList.push(e),this.registerNavSubject.next(this.responsiveNavList))},e.prototype.isNavRegistered=function(e){return this.responsiveNavList.indexOf(e)>-1&&(console.error("Multiple clr-nav-level "+e+" attributes found. Please make sure that only one exists"),!0)},e.prototype.unregisterNav=function(e){var t=this.responsiveNavList.indexOf(e);t>-1&&(this.responsiveNavList.splice(t,1),this.registerNavSubject.next(this.responsiveNavList))},e.prototype.sendControlMessage=function(e,t){var n=new us(e,t);this.controlNavSubject.next(n)},e.prototype.closeAllNavs=function(){var e=new us(ps.NAV_CLOSE_ALL,-999);this.controlNavSubject.next(e)},e}();ds.ɵprov=l.ɵɵdefineInjectable({factory:function(){return new ds},token:ds,providedIn:"root"}),ds.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],ds.ctorParameters=function(){return[]};var hs=function(){function e(e,t){this.elRef=e,this.responsiveNavService=t}return e.prototype.ngOnInit=function(){var e=this;this._classList=this.elRef.nativeElement.classList,this._subscription=this.responsiveNavService.navControl.subscribe({next:function(t){e.processMessage(t)}})},e.prototype.processMessage=function(e){var t=ps.NAV_CLASS_HAMBURGER_MENU;e.controlCode===ps.NAV_CLOSE_ALL?(this._classList.remove(ps.NAV_CLASS_HAMBURGER_MENU),this._classList.remove(ps.NAV_CLASS_OVERFLOW_MENU)):e.navLevel===ps.NAV_LEVEL_1?this.controlNav(e.controlCode,t):e.navLevel===ps.NAV_LEVEL_2&&(t=ps.NAV_CLASS_OVERFLOW_MENU,this.controlNav(e.controlCode,t))},e.prototype.controlNav=function(e,t){e===ps.NAV_OPEN?this._classList.add(t):e===ps.NAV_CLOSE?this._classList.remove(t):e===ps.NAV_TOGGLE&&this._classList.toggle(t)},e.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},e}();hs.decorators=[{type:t.Directive,args:[{selector:"clr-main-container",host:{"[class.main-container]":"true"}}]}],hs.ctorParameters=function(){return[{type:t.ElementRef},{type:ds}]};var gs=[hs],fs=function(){};fs.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y],declarations:[gs],exports:[gs]}]}];var ys=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t}(zr);ys.decorators=[{type:t.Directive,args:[{selector:"clr-main-container"}]}];var bs=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-header should only be used inside of a clr-main-container");return(i=e.call(this,t,n)||this).responsiveNavService=r,i}return oe(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.responsiveNavService.responsiveNavList.reduce((function(e,t){return e+t}),0)},enumerable:!1,configurable:!0}),t}(Hr);bs.decorators=[{type:t.Directive,args:[{selector:"clr-header"}]}],bs.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:ys,decorators:[{type:t.Optional}]},{type:ds}]};var ms=function(){function e(e,t){var n=this;this.responsiveNavService=e,this.commonStrings=t,this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1,this.openNavLevel=null,this.responsiveNavCodes=ps,this._subscription=this.responsiveNavService.registeredNavs.subscribe({next:function(e){n.initializeNavTriggers(e)}})}return e.prototype.resetNavTriggers=function(){this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1},e.prototype.initializeNavTriggers=function(e){var t=this;this.resetNavTriggers(),e.length>2?console.error("More than 2 Nav Levels detected."):e.forEach((function(e){e===ps.NAV_LEVEL_1?t.isNavLevel1OnPage=!0:e===ps.NAV_LEVEL_2&&(t.isNavLevel2OnPage=!0)}))},e.prototype.closeOpenNav=function(){this.responsiveNavService.closeAllNavs()},e.prototype.toggleNav=function(e){this.openNavLevel=this.openNavLevel===e?null:e,this.responsiveNavService.sendControlMessage(ps.NAV_TOGGLE,e)},e.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},e}();ms.decorators=[{type:t.Component,args:[{selector:"clr-header",template:'\n <button\n type="button"\n *ngIf="isNavLevel1OnPage"\n class="header-hamburger-trigger"\n [attr.aria-label]="\n openNavLevel !== responsiveNavCodes.NAV_LEVEL_1 ? commonStrings.keys.open : commonStrings.keys.close\n "\n (click)="toggleNav(responsiveNavCodes.NAV_LEVEL_1)"\n >\n <span></span>\n </button>\n <ng-content></ng-content>\n <button\n type="button"\n *ngIf="isNavLevel2OnPage"\n class="header-overflow-trigger"\n [attr.aria-label]="\n openNavLevel !== responsiveNavCodes.NAV_LEVEL_2 ? commonStrings.keys.open : commonStrings.keys.close\n "\n (click)="toggleNav(responsiveNavCodes.NAV_LEVEL_2)"\n >\n <span></span>\n </button>\n <div class="header-backdrop" (click)="closeOpenNav()"></div>\n ',host:{"[class.header]":"true"}}]}],ms.ctorParameters=function(){return[{type:ds},{type:H}]};var vs=function(){function e(e,t){this.responsiveNavService=e,this.elementRef=t}return e.prototype.ngOnInit=function(){this.level===ps.NAV_LEVEL_1||this.level===ps.NAV_LEVEL_2?(this.responsiveNavService.registerNav(this.level),this.addNavClass(this.level)):console.error("Nav Level can only be 1 or 2")},e.prototype.addNavClass=function(e){var t=this.elementRef.nativeElement.classList;e===ps.NAV_LEVEL_1?t.add(ps.NAV_CLASS_LEVEL_1):e===ps.NAV_LEVEL_2&&t.add(ps.NAV_CLASS_LEVEL_2)},Object.defineProperty(e.prototype,"level",{get:function(){return this._level},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveNavCodes",{get:function(){return ps},enumerable:!1,configurable:!0}),e.prototype.open=function(){this.responsiveNavService.sendControlMessage(ps.NAV_OPEN,this.level)},e.prototype.close=function(){this.responsiveNavService.sendControlMessage(ps.NAV_CLOSE,this.level)},e.prototype.onMouseClick=function(e){for(var t=e,n=this.elementRef.nativeElement;t;){if(t===n)return;if(t.classList.contains("nav-link"))return void this.close();t=t.parentNode}},e.prototype.ngOnDestroy=function(){this.responsiveNavService.unregisterNav(this.level)},e}();vs.decorators=[{type:t.Directive,args:[{selector:"[clr-nav-level]"}]}],vs.ctorParameters=function(){return[{type:ds},{type:t.ElementRef}]},vs.propDecorators={_level:[{type:t.Input,args:["clr-nav-level"]}],onMouseClick:[{type:t.HostListener,args:["click",["$event.target"]]}]};var Cs=[ms,vs,bs,ys],Ss=function(){};Ss.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,Jo],declarations:[Cs],exports:[Cs]}]}];var Is=function(){};Is.decorators=[{type:t.Component,args:[{template:"\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n "}]}],Is.propDecorators={template:[{type:t.ViewChild,args:[t.TemplateRef]}]};var Os=[Is],Es=function(){};Es.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Os],entryComponents:[Os],exports:[Os]}]}];var ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t}(zr);ws.decorators=[{type:t.Directive,args:[{selector:"clr-tabs"}]}];var _s,Ps=function(e){function t(t,n,r,i){var o=this;if(!n)throw new Error("clrTabLink and clr-tab-content should only be used inside of a clr-tabs");return(o=e.call(this,t,n)||this).ifActive=i,o.id=r,o}return oe(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.ifActive.current===this.id},enumerable:!1,configurable:!0}),t}(Hr);Ps.decorators=[{type:t.Directive,args:[{selector:"[clrTabLink], clr-tab-content"}]}],Ps.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:ws,decorators:[{type:t.Optional}]},{type:Number,decorators:[{type:t.Inject,args:[Ke]}]},{type:Xe}]},function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(_s||(_s={}));var Ds=function(){function e(){this._children=[],this.layout=_s.HORIZONTAL}return e.prototype.register=function(e){this._children.push(e)},Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeTab",{get:function(){return this.children.find((function(e){return e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflowTabs",{get:function(){return this.layout===_s.VERTICAL?[]:this.children.filter((function(e){return!0===e.tabLink.inOverflow}))},enumerable:!1,configurable:!0}),e.prototype.unregister=function(e){var t=this.children.indexOf(e);t>-1&&this.children.splice(t,1)},e}();Ds.decorators=[{type:t.Injectable}];var Ts=0,xs=function(){function e(e,t,n,r){this.ifActiveService=e,this.id=t,this.ariaService=n,this.tabsService=r,this.tabContentId||(this.tabContentId="clr-tab-content-"+Ts++)}return Object.defineProperty(e.prototype,"templateRef",{set:function(e){this.viewRef=this.tabsService.tabContentViewContainer.createEmbeddedView(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabelledBy",{get:function(){return this.ariaService.ariaLabelledBy},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabContentId",{get:function(){return this.ariaService.ariaControls},set:function(e){this.ariaService.ariaControls=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){var e=this.tabsService.tabContentViewContainer.indexOf(this.viewRef);e>-1&&this.tabsService.tabContentViewContainer.remove(e)},e}();xs.decorators=[{type:t.Component,args:[{selector:"clr-tab-content",template:'\n <ng-template #tabContentProjectedRef>\n <section\n [id]="tabContentId"\n role="tabpanel"\n class="tab-content"\n [class.active]="active"\n [hidden]="!active"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-expanded]="active"\n [attr.aria-hidden]="!active"\n >\n <ng-content></ng-content>\n </section>\n </ng-template>\n '}]}],xs.ctorParameters=function(){return[{type:Xe},{type:Number,decorators:[{type:t.Inject,args:[Ke]}]},{type:An},{type:Ds}]},xs.propDecorators={templateRef:[{type:t.ViewChild,args:["tabContentProjectedRef",{static:!0}]}],tabContentId:[{type:t.Input,args:["id"]}]};var As=0,ks=new t.InjectionToken("TABS_ID");function Rs(){return"clr-tabs-"+As++}var Ls={provide:ks,useFactory:Rs},js=0,Ns=function(){function e(e,t,n,r,i,o,s,a){this.ifActiveService=e,this.id=t,this.ariaService=n,this.el=r,this.cfr=i,this.viewContainerRef=o,this.tabsService=s,this.tabsId=a,this.tabLinkId||(this.tabLinkId="clr-tab-link-"+js++);var c=this.cfr.resolveComponentFactory(Is);this.templateRefContainer=this.viewContainerRef.createComponent(c,void 0,void 0,[[this.el.nativeElement]]).instance}return Object.defineProperty(e.prototype,"inOverflow",{get:function(){return this._inOverflow&&this.tabsService.layout!==_s.VERTICAL},set:function(e){this._inOverflow=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"addLinkClasses",{get:function(){return!this.inOverflow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaControls",{get:function(){return this.ariaService.ariaControls},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabLinkId",{get:function(){return this.ariaService.ariaLabelledBy},set:function(e){this.ariaService.ariaLabelledBy=e},enumerable:!1,configurable:!0}),e.prototype.activate=function(){this.ifActiveService.current=this.id},Object.defineProperty(e.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.active?0:-1},enumerable:!1,configurable:!0}),e}();Ns.decorators=[{type:t.Directive,args:[{selector:"[clrTabLink]",host:{"[attr.aria-hidden]":"false","[class.btn]":"true",role:"tab",type:"button"}}]}],Ns.ctorParameters=function(){return[{type:Xe},{type:Number,decorators:[{type:t.Inject,args:[Ke]}]},{type:An},{type:t.ElementRef},{type:t.ComponentFactoryResolver},{type:t.ViewContainerRef},{type:Ds},{type:Number,decorators:[{type:t.Inject,args:[ks]}]}]},Ns.propDecorators={inOverflow:[{type:t.Input,args:["clrTabLinkInOverflow"]}],addLinkClasses:[{type:t.HostBinding,args:["class.btn-link"]},{type:t.HostBinding,args:["class.nav-link"]}],ariaControls:[{type:t.HostBinding,args:["attr.aria-controls"]}],tabLinkId:[{type:t.HostBinding,args:["id"]},{type:t.Input,args:["id"]}],activate:[{type:t.HostListener,args:["click"]}],active:[{type:t.HostBinding,args:["class.active"]},{type:t.HostBinding,args:["attr.aria-selected"]}],tabindex:[{type:t.HostBinding,args:["attr.tabindex"]}]};var Fs=function(){function e(e,t,n){this.ifActiveService=e,this.id=t,this.tabsService=n,n.register(this)}return e.prototype.ngOnDestroy=function(){this.tabsService.unregister(this)},Object.defineProperty(e.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!1,configurable:!0}),e}();Fs.decorators=[{type:t.Component,args:[{selector:"clr-tab",template:" <ng-content></ng-content> ",providers:[qe,An]}]}],Fs.ctorParameters=function(){return[{type:Xe},{type:Number,decorators:[{type:t.Inject,args:[Ke]}]},{type:Ds}]},Fs.propDecorators={tabLink:[{type:t.ContentChild,args:[Ns,{static:!0}]}],tabContent:[{type:t.ContentChild,args:[xs,{static:!0}]}]};var Ms=function(){};Ms.decorators=[{type:t.Component,args:[{selector:"clr-tab-overflow-content",template:" <ng-content></ng-content> ",host:{"[class.dropdown-menu]":"true"}}]}];var Vs=function(){function e(e,t,n,r,i){this.ifActiveService=e,this.toggleService=t,this.tabsService=n,this.tabsId=r,this.commonStrings=i,this.subscriptions=[],this._tabLinkDirectives=[],this.tabLinkElements=[],this._mousedown=!1}return Object.defineProperty(e.prototype,"overflowPosition",{get:function(){return this._tabLinkDirectives.filter((function(e){return!e.inOverflow})).length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabContentViewContainer",{set:function(e){this.tabsService.tabContentViewContainer=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this.tabsService.layout},set:function(e){Object.keys(_s).map((function(e){return _s[e]})).indexOf(e)>=0&&(this.tabsService.layout=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabLinkDirectives",{get:function(){return this._tabLinkDirectives},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeTabInOverflow",{get:function(){return this.tabsService.overflowTabs.indexOf(this.tabsService.activeTab)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeTabPosition",{get:function(){return this._tabLinkDirectives.findIndex((function(e){return e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIds",{get:function(){return this.tabsService.children.map((function(e){return e.tabLink.tabLinkId})).join(" ")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCurrentInOverflow",{get:function(){return this.keyFocus.current>=this.overflowPosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVertical",{get:function(){return this.layout===_s.VERTICAL},enumerable:!1,configurable:!0}),e.prototype.toggleOverflowOnPosition=function(e){this.toggleService.open=e>=this.overflowPosition},Object.defineProperty(e.prototype,"tabOverflowEl",{set:function(e){this._tabOverflowEl=e&&e.nativeElement,this.toggleService.open&&e&&this.keyFocus.focusCurrent()},enumerable:!1,configurable:!0}),e.prototype.resetKeyFocusCurrentToActive=function(e){this.keyFocus.nativeElement.contains(e.relatedTarget)||this.keyFocus.current===this.activeTabPosition||(this.keyFocus.current=this.activeTabPosition)},e.prototype.toggleOverflowOnClick=function(){this.isCurrentInOverflow&&this.toggleService.open?this.keyFocus.moveTo(this.overflowPosition-1):this.keyFocus.moveTo(this.overflowPosition),this._mousedown=!1},e.prototype.openOverflowOnFocus=function(){this._mousedown||this.toggleService.open||this.keyFocus.moveTo(this.activeTabPosition)},e.prototype.closeOnFocusOut=function(e){this._tabOverflowEl.contains(e.relatedTarget)||!this.toggleService.open||this._mousedown||(this.toggleService.open=!1,this.tabLinkElements[this.activeTabPosition]===e.relatedTarget&&(this.keyFocus.current=this.activeTabPosition))},e.prototype.closeOnEscapeKey=function(){this.keyFocus.moveTo(this.overflowPosition-1)},e.prototype.closeOnOutsideClick=function(e,t){e.target===t||t.contains(e.target)||!this._tabOverflowEl.contains(e.target)&&this.isCurrentInOverflow&&this.keyFocus.moveTo(this.overflowPosition-1)},e.prototype.listenForTabLinkChanges=function(){var e=this;return this.tabs.changes.pipe(o.startWith(this.tabs.map((function(e){return e.tabLink})))).subscribe((function(){e._tabLinkDirectives=e.tabs.map((function(e){return e.tabLink})),e.tabLinkElements=e._tabLinkDirectives.map((function(e){return e.el.nativeElement}))}))},e.prototype.ngAfterContentInit=function(){this.subscriptions.push(this.listenForTabLinkChanges()),void 0===this.ifActiveService.current&&this.tabLinkDirectives[0]&&this.tabLinkDirectives[0].activate(),this.keyFocus.current=this.activeTabPosition},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){e.unsubscribe()}))},e}();Vs.decorators=[{type:t.Component,args:[{selector:"clr-tabs",template:'\n <ul\n class="nav"\n role="tablist"\n [attr.aria-owns]="tabIds"\n [clrKeyFocus]="tabLinkElements"\n clrDirection="both"\n (clrFocusChange)="toggleOverflowOnPosition($event)"\n (focusout)="resetKeyFocusCurrentToActive($event)"\n >\n \x3c!--tab links--\x3e\n <ng-container *ngFor="let link of tabLinkDirectives">\n <ng-container *ngIf="link.tabsId === tabsId && !link.inOverflow">\n <li role="presentation" class="nav-item">\n <ng-container [ngTemplateOutlet]="link.templateRefContainer.template"></ng-container>\n </li>\n </ng-container>\n </ng-container>\n <ng-container *ngIf="tabsService.overflowTabs.length > 0">\n <div class="tabs-overflow bottom-right" role="presentation" [class.open]="toggleService.open">\n <li role="application" class="nav-item">\n <button\n #tabOverflowTrigger\n class="btn btn-link nav-link dropdown-toggle"\n type="button"\n aria-hidden="true"\n [attr.tabindex]="activeTabInOverflow && !toggleService.open ? 0 : -1"\n [class.active]="activeTabInOverflow"\n [class.open]="toggleService.open"\n (mousedown)="_mousedown = true"\n (focus)="openOverflowOnFocus()"\n (click)="toggleOverflowOnClick()"\n [attr.title]="commonStrings.keys.more"\n >\n <cds-icon\n shape="ellipsis-horizontal"\n status="toggleService.open ? \'info\' : null"\n [attr.title]="commonStrings.keys.more"\n ></cds-icon>\n </button>\n </li>\n \x3c!--tab links in overflow menu--\x3e\n <clr-tab-overflow-content\n *ngIf="toggleService.open"\n (document:keydown.esc)="closeOnEscapeKey()"\n (document:click)="closeOnOutsideClick($event, tabOverflowTrigger)"\n (focusout)="closeOnFocusOut($event)"\n >\n <ng-container *ngFor="let link of tabLinkDirectives">\n <ng-container\n *ngIf="link.tabsId === tabsId && link.inOverflow"\n [ngTemplateOutlet]="link.templateRefContainer.template"\n >\n </ng-container>\n </ng-container>\n </clr-tab-overflow-content>\n </div>\n </ng-container>\n </ul>\n <ng-container #tabContentViewContainer></ng-container>\n ',providers:[Xe,v,Ds,Ls]}]}],Vs.ctorParameters=function(){return[{type:Xe},{type:v},{type:Ds},{type:Number,decorators:[{type:t.Inject,args:[ks]}]},{type:H}]},Vs.propDecorators={tabContentViewContainer:[{type:t.ViewChild,args:["tabContentViewContainer",{static:!0,read:t.ViewContainerRef}]}],layout:[{type:t.Input,args:["clrLayout"]}],tabs:[{type:t.ContentChildren,args:[Fs]}],keyFocus:[{type:t.ViewChild,args:[Kn,{static:!0}]}],isVertical:[{type:t.HostBinding,args:["class.tabs-vertical"]}],tabOverflowEl:[{type:t.ViewChild,args:[Ms,{read:t.ElementRef}]}]};var Bs=[xs,Fs,Vs,Ms,Ns,ws,Ps],zs=function(){n.ClarityIcons.addIcons(n.ellipsisHorizontalIcon)};zs.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,nt,y,Es,Xn],declarations:[Bs],exports:[Bs,nt]}]}],zs.ctorParameters=function(){return[]};var Hs=function(){function e(){this.navGroupCount=0}return e.prototype.registerNavGroup=function(){this.navGroupCount++},e.prototype.unregisterNavGroup=function(){this.navGroupCount--},e}();Hs.decorators=[{type:t.Injectable}];var Gs=function(){function e(){this._icons=0}return Object.defineProperty(e.prototype,"hasIcons",{get:function(){return this._icons>0},enumerable:!1,configurable:!0}),e.prototype.registerIcon=function(){this._icons++},e.prototype.unregisterIcon=function(){this._icons--},e}();Gs.decorators=[{type:t.Injectable}];var Ws=function(){function e(){this._animateOnCollapsed=new i.Subject,this._collapsedChanged=new i.Subject,this._collapsed=!1,this._collapsible=!1}return Object.defineProperty(e.prototype,"animateOnCollapsed",{get:function(){return this._animateOnCollapsed.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsedChanged",{get:function(){return this._collapsedChanged.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this._collapsed},set:function(e){e=!!e,this.collapsible&&this._collapsed!==e&&this.updateCollapseBehavior(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this._collapsible},set:function(e){e=!!e,this._collapsible!==e&&(!e&&this.collapsed&&this.updateCollapseBehavior(!1),this._collapsible=e)},enumerable:!1,configurable:!0}),e.prototype.updateCollapseBehavior=function(e){this._animateOnCollapsed.next(e),this._collapsed=e,this._collapsedChanged.next(e)},e}();Ws.decorators=[{type:t.Injectable}];var Us=function(){function e(e,n,r,i){var o=this;this._navService=e,this._navIconService=n,this._navGroupRegistrationService=r,this.commonStrings=i,this._collapsedChanged=new t.EventEmitter(!0),this._sub=this._navService.collapsedChanged.subscribe((function(e){o._collapsedChanged.emit(e)}))}return Object.defineProperty(e.prototype,"collapsible",{get:function(){return this._navService.collapsible},set:function(e){this._navService.collapsible=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this._navService.collapsed},set:function(e){this._navService.collapsed=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNavGroups",{get:function(){return this._navGroupRegistrationService.navGroupCount>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasIcons",{get:function(){return this._navIconService.hasIcons},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.collapsible?this.collapsed?"false":"true":null},enumerable:!1,configurable:!0}),e.prototype.toggleByButton=function(){this.collapsed=!this.collapsed},e.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},e}();Us.decorators=[{type:t.Component,args:[{selector:"clr-vertical-nav",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<button\n type="button"\n class="nav-trigger"\n [class.on-collapse]="collapsed"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-label]="commonStrings.keys.verticalNavToggle"\n (click)="toggleByButton()"\n *ngIf="collapsible"\n>\n <cds-icon\n shape="angle-double"\n class="nav-trigger-icon"\n [attr.direction]="(this.collapsed) ? \'right\' : \'left\'"\n [attr.title]="(this.collapsed) ? commonStrings.keys.expand : commonStrings.keys.collapse"\n ></cds-icon>\n</button>\n\x3c!-- Click handler on .nav-content is bad but required :-( --\x3e\n<div class="nav-content">\n <ng-content></ng-content>\n <button\n (click)="collapsed = false"\n class="nav-btn"\n aria-hidden="true"\n tabindex="-1"\n [attr.aria-label]="commonStrings.keys.verticalNavToggle"\n *ngIf="collapsible && collapsed"\n ></button>\n</div>\n',providers:[Ws,Gs,Hs],host:{class:"clr-vertical-nav","[class.is-collapsed]":"collapsed","[class.has-nav-groups]":"hasNavGroups","[class.has-icons]":"hasIcons"}}]}],Us.ctorParameters=function(){return[{type:Ws},{type:Gs},{type:Hs},{type:H}]},Us.propDecorators={collapsible:[{type:t.Input,args:["clrVerticalNavCollapsible"]}],collapsed:[{type:t.Input,args:["clrVerticalNavCollapsed"]}],_collapsedChanged:[{type:t.Output,args:["clrVerticalNavCollapsedChange"]}]};var Ys=function(){function e(){this._expandChange=new i.Subject}return Object.defineProperty(e.prototype,"expandChange",{get:function(){return this._expandChange.asObservable()},enumerable:!1,configurable:!0}),e.prototype.expand=function(){this._expandChange.next(!0)},e}();Ys.decorators=[{type:t.Injectable}];var Ks="expanded",Zs="collapsed",qs=function(){function e(e,n,r,i,o){var s=this;this._itemExpand=e,this._navGroupRegistrationService=n,this._navGroupService=r,this._navService=i,this.commonStrings=o,this.wasExpanded=!1,this.expandedChange=new t.EventEmitter(!0),this._subscriptions=[],this._expandAnimationState=Zs,this._navGroupRegistrationService.registerNavGroup(),this._subscriptions.push(this._itemExpand.expandChange.subscribe((function(e){e&&s.expandAnimationState===Zs?(s._navService.collapsed&&(s._navService.collapsed=!1),s.expandAnimationState=Ks):e||s.expandAnimationState!==Ks||(s.expandAnimationState=Zs)}))),this._subscriptions.push(this._navService.animateOnCollapsed.subscribe((function(e){e&&s.expanded?(s.wasExpanded=!0,s.expandAnimationState=Zs):!e&&s.wasExpanded&&(s.expandGroup(),s.wasExpanded=!1)}))),this._subscriptions.push(this._navGroupService.expandChange.subscribe((function(e){e&&!s.expanded&&s.expandGroup()})))}return Object.defineProperty(e.prototype,"expanded",{get:function(){return this._itemExpand.expanded},set:function(e){this._itemExpand.expanded!==e&&(this._itemExpand.expanded=e,this.expandedChange.emit(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userExpandedInput",{set:function(e){e=!!e,this.expanded!==e&&this.toggleExpand()},enumerable:!1,configurable:!0}),e.prototype.expandGroup=function(){this.expanded=!0,this.expandAnimationState=Ks},e.prototype.collapseGroup=function(){this.expandAnimationState=Zs},e.prototype.expandAnimationDone=function(e){e.toState===Zs&&(this.expanded=!1)},Object.defineProperty(e.prototype,"expandAnimationState",{get:function(){return this._expandAnimationState},set:function(e){e!==this._expandAnimationState&&(this._expandAnimationState=e)},enumerable:!1,configurable:!0}),e.prototype.toggleExpand=function(){this.expanded?this.collapseGroup():(this._navService.collapsed&&(this._navService.collapsed=!1),this.expandGroup())},e.prototype.ngAfterContentInit=function(){this._navService.collapsed&&this.expanded&&(this.wasExpanded=!0,this.expandAnimationState=Zs)},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._navGroupRegistrationService.unregisterNavGroup()},e}();qs.decorators=[{type:t.Component,args:[{selector:"clr-vertical-nav-group",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div class="nav-group-content">\n <ng-content select="[clrVerticalNavLink]"></ng-content>\n <button\n class="nav-group-trigger"\n type="button"\n [attr.aria-expanded]="expanded"\n [attr.aria-label]="commonStrings.keys.verticalNavGroupToggle"\n (click)="toggleExpand()"\n >\n <ng-content select="[clrVerticalNavIcon]"></ng-content>\n <div class="nav-group-text">\n <ng-content></ng-content>\n </div>\n <cds-icon\n shape="angle"\n class="nav-group-trigger-icon"\n [attr.direction]="(this.expanded) ? \'down\' : \'right\'"\n [attr.title]="(this.expanded) ? commonStrings.keys.collapse : commonStrings.keys.expand"\n >\n </cds-icon>\n </button>\n</div>\n\x3c!--TODO: This animation needs to be added to the clr-vertical-nav-group-children component--\x3e\n<div class="nav-group-children" [@clrExpand]="expandAnimationState" (@clrExpand.done)="expandAnimationDone($event)">\n <ng-content select="[clrIfExpanded], clr-vertical-nav-group-children"></ng-content>\n</div>\n',providers:[Qe,Ys],animations:[s.trigger("clrExpand",[s.state(Ks,s.style({height:"*"})),s.state(Zs,s.style({height:0,"overflow-y":"hidden",visibility:"hidden"})),s.transition("expanded <=> collapsed",s.animate("0.2s ease-in-out"))])],host:{class:"nav-group"}}]}],qs.ctorParameters=function(){return[{type:Qe},{type:Hs},{type:Ys},{type:Ws},{type:H}]},qs.propDecorators={expanded:[{type:t.HostBinding,args:["class.is-expanded"]}],userExpandedInput:[{type:t.Input,args:["clrVerticalNavGroupExpanded"]}],expandedChange:[{type:t.Output,args:["clrVerticalNavGroupExpandedChange"]}]};var Xs=function(){};Xs.decorators=[{type:t.Component,args:[{selector:"clr-vertical-nav-group-children",template:" <ng-content></ng-content> "}]}];var $s=function(){function e(e){this._verticalNavIconService=e,this._verticalNavIconService.registerIcon()}return e.prototype.ngOnDestroy=function(){this._verticalNavIconService.unregisterIcon()},e}();$s.decorators=[{type:t.Directive,args:[{selector:"[clrVerticalNavIcon]",host:{class:"nav-icon"}}]}],$s.ctorParameters=function(){return[{type:Gs}]};var Js=function(){function e(e){this._navGroupService=e}return e.prototype.expandParentNavGroup=function(){this._navGroupService&&this._navGroupService.expand()},e}();Js.decorators=[{type:t.Component,args:[{selector:"[clrVerticalNavLink]",template:'\n <ng-content select="[clrVerticalNavIcon]"></ng-content>\n <span class="nav-text">\n <ng-content></ng-content>\n </span>\n ',host:{class:"nav-link"}}]}],Js.ctorParameters=function(){return[{type:Ys,decorators:[{type:t.Optional}]}]},Js.propDecorators={expandParentNavGroup:[{type:t.HostListener,args:["click"]}]};var Qs=[Us,Js,qs,Xs,$s],ea=function(){n.ClarityIcons.addIcons(n.angleIcon,n.angleDoubleIcon)};ea.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,nt,_r],declarations:[Qs],exports:[Qs,nt,y,_r]}]}],ea.ctorParameters=function(){return[]};var ta=function(){};ta.decorators=[{type:t.NgModule,args:[{exports:[fs,Ss,zs,ea]}]}];var na=function(){function e(e){this._document=e}return e.prototype.stopScrolling=function(){this._document.body.classList.add("no-scrolling")},e.prototype.resumeScrolling=function(){this._document.body.classList.contains("no-scrolling")&&this._document.body.classList.remove("no-scrolling")},e}();na.decorators=[{type:t.Injectable}],na.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]};var ra=function(){function e(e,n,r){this._scrollingService=e,this.commonStrings=n,this.modalId=r,this._open=!1,this._openChanged=new t.EventEmitter(!1),this.closable=!0,this.staticBackdrop=!0,this.skipAnimation="false",this.bypassScrollService=!1,this.stopClose=!1,this.altClose=new t.EventEmitter(!1)}return e.prototype.ngOnChanges=function(e){!this.bypassScrollService&&e&&e.hasOwnProperty("_open")&&(e._open.currentValue?this._scrollingService.stopScrolling():this._scrollingService.resumeScrolling())},e.prototype.ngOnDestroy=function(){this._scrollingService.resumeScrolling()},e.prototype.open=function(){this._open||(this._open=!0,this._openChanged.emit(!0))},e.prototype.close=function(){this.stopClose?this.altClose.emit(!1):this.closable&&this._open&&(this._open=!1,this.focusTrap.setPreviousFocus())},e.prototype.fadeDone=function(e){"void"===e.toState&&this._openChanged.emit(!1)},e}();ra.decorators=[{type:t.Component,args:[{selector:"clr-modal",viewProviders:[na],template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div clrFocusTrap class="modal" *ngIf="_open">\n \x3c!--fixme: revisit when ngClass works with exit animation--\x3e\n <div\n [@fadeDown]="skipAnimation"\n (@fadeDown.done)="fadeDone($event)"\n class="modal-dialog"\n [class.modal-sm]="size == \'sm\'"\n [class.modal-lg]="size == \'lg\'"\n [class.modal-xl]="size == \'xl\'"\n role="dialog"\n aria-modal="true"\n [attr.aria-hidden]="!_open"\n [attr.aria-labelledby]="modalId"\n >\n <div class="clr-sr-only">{{commonStrings.keys.modalContentStart}}</div>\n <div class="modal-content-wrapper">\n \x3c!-- only used in wizards --\x3e\n <ng-content select=".modal-nav"></ng-content>\n\n <div class="modal-content">\n <div class="modal-header--accessible">\n <div class="modal-title-wrapper" id="{{modalId}}" clrFocusOnViewInit>\n <ng-content select=".modal-title"></ng-content>\n </div>\n <button\n type="button"\n [attr.aria-label]="commonStrings.keys.close"\n class="close"\n *ngIf="closable"\n (click)="close()"\n >\n <cds-icon shape="window-close"></cds-icon>\n </button>\n </div>\n <ng-content select=".modal-body"></ng-content>\n <ng-content select=".modal-footer"></ng-content>\n </div>\n </div>\n <div class="clr-sr-only">{{commonStrings.keys.modalContentEnd}}</div>\n </div>\n\n <div [@fade] class="modal-backdrop" aria-hidden="true" (click)="staticBackdrop || close()"></div>\n</div>\n',animations:[s.trigger("fadeDown",[s.transition("* => false",[s.style({opacity:0,transform:"translate(0, -25%)"}),s.animate("0.2s ease-in-out")]),s.transition("false => *",[s.animate("0.2s ease-in-out",s.style({opacity:0,transform:"translate(0, -25%)"}))])]),s.trigger("fade",[s.transition("void => *",[s.style({opacity:0}),s.animate("0.2s ease-in-out",s.style({opacity:.85}))]),s.transition("* => void",[s.animate("0.2s ease-in-out",s.style({opacity:0}))])])],providers:[K],styles:["\n :host {\n display: none;\n }\n :host.open {\n display: inline;\n }\n "]}]}],ra.ctorParameters=function(){return[{type:na},{type:H},{type:String,decorators:[{type:t.Inject,args:[W]}]}]},ra.propDecorators={focusTrap:[{type:t.ViewChild,args:[it]}],_open:[{type:t.HostBinding,args:["class.open"]},{type:t.Input,args:["clrModalOpen"]}],_openChanged:[{type:t.Output,args:["clrModalOpenChange"]}],closable:[{type:t.Input,args:["clrModalClosable"]}],size:[{type:t.Input,args:["clrModalSize"]}],staticBackdrop:[{type:t.Input,args:["clrModalStaticBackdrop"]}],skipAnimation:[{type:t.Input,args:["clrModalSkipAnimation"]}],bypassScrollService:[{type:t.Input,args:["clrModalOverrideScrollService"]}],stopClose:[{type:t.Input,args:["clrModalPreventClose"]}],altClose:[{type:t.Output,args:["clrModalAlternateClose"]}],close:[{type:t.HostListener,args:["body:keyup.escape"]}]};var ia=function(){function e(e,t,n){var r=this;this.tabindex="0",this.unlisteners=[],t.setAttribute(n.nativeElement,"tabindex",this.tabindex),e.runOutsideAngular((function(){r.unlisteners.push(t.listen(n.nativeElement,"mouseup",(function(){t.setAttribute(n.nativeElement,"tabindex",r.tabindex)})),t.listen(n.nativeElement,"mousedown",(function(){t.removeAttribute(n.nativeElement,"tabindex")})))}))}return e.prototype.ngOnDestroy=function(){for(;this.unlisteners.length;)this.unlisteners.pop()()},e}();ia.decorators=[{type:t.Directive,args:[{selector:".modal-body"}]}],ia.ctorParameters=function(){return[{type:t.NgZone},{type:t.Renderer2},{type:t.ElementRef}]};var oa=[ra,ia],sa=function(){n.ClarityIcons.addIcons(n.windowCloseIcon)};sa.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,st,_r],declarations:[oa],exports:[oa,y,_r]}]}],sa.ctorParameters=function(){return[]};var aa={"top-left":{anchorPoint:zo.TOP_CENTER,popoverPoint:zo.BOTTOM_RIGHT,offsetY:-10,offsetX:0},"top-middle":{anchorPoint:zo.TOP_CENTER,popoverPoint:zo.BOTTOM_CENTER,offsetY:-10,offsetX:0},"top-right":{anchorPoint:zo.TOP_CENTER,popoverPoint:zo.BOTTOM_LEFT,offsetY:-10,offsetX:0},"right-top":{anchorPoint:zo.RIGHT_CENTER,popoverPoint:zo.LEFT_BOTTOM,offsetY:2,offsetX:14},"right-middle":{anchorPoint:zo.RIGHT_CENTER,popoverPoint:zo.LEFT_CENTER,offsetY:6,offsetX:14},"right-bottom":{anchorPoint:zo.RIGHT_CENTER,popoverPoint:zo.LEFT_TOP,offsetY:-1,offsetX:14},"bottom-right":{anchorPoint:zo.BOTTOM_CENTER,popoverPoint:zo.TOP_LEFT,offsetY:9,offsetX:-1},"bottom-middle":{anchorPoint:zo.BOTTOM_CENTER,popoverPoint:zo.TOP_CENTER,offsetY:9,offsetX:12},"bottom-left":{anchorPoint:zo.BOTTOM_CENTER,popoverPoint:zo.TOP_RIGHT,offsetY:9,offsetX:0},"left-bottom":{anchorPoint:zo.LEFT_CENTER,popoverPoint:zo.RIGHT_TOP,offsetY:0,offsetX:-14},"left-middle":{anchorPoint:zo.LEFT_CENTER,popoverPoint:zo.RIGHT_CENTER,offsetY:4,offsetX:-14},"left-top":{anchorPoint:zo.LEFT_CENTER,popoverPoint:zo.RIGHT_BOTTOM,offsetY:0,offsetX:-14},default:{anchorPoint:zo.RIGHT_CENTER,popoverPoint:zo.LEFT_CENTER,offsetY:6,offsetX:14}},ca=["top-left","top-middle","top-right","right-top","right-middle","right-bottom","bottom-right","bottom-middle","bottom-left","left-bottom","left-middle","left-top"],la=function(e){function t(t,n,r,i,o,s,a,c){var l=e.call(this,t,n)||this;if(l.commonStrings=r,l.signpostContentId=i,l.signpostIdService=o,l.signpostFocusManager=s,l.platformId=a,!n)throw new Error("clr-signpost-content should only be used inside of a clr-signpost");return l.position="right-middle",l.closeOnOutsideClick=!0,l.signpostIdService.setId(i),l.document=c,l}return oe(t,e),t.prototype.close=function(){this.toggleService.open=!1},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){this.renderer.removeClass(this.el.nativeElement,this.position),e&&ca.indexOf(e)>-1?this._position=e:this._position="right-middle",this.renderer.addClass(this.el.nativeElement,this.position);var t=aa[this.position];this.anchorPoint=t.anchorPoint,this.popoverPoint=t.popoverPoint,this.popoverOptions.offsetY=t.offsetY,this.popoverOptions.offsetX=t.offsetX},enumerable:!1,configurable:!0}),t.prototype.ngOnDestroy=function(){r.isPlatformBrowser(this.platformId)&&this.el.nativeElement.contains(this.document.activeElement)&&this.signpostFocusManager.focusTrigger()},t}(Zo);la.decorators=[{type:t.Component,args:[{selector:"clr-signpost-content",template:'\n <div class="signpost-wrap">\n <div class="popover-pointer"></div>\n <div class="signpost-content-header">\n <button\n type="button"\n [attr.aria-label]="commonStrings.keys.signpostClose"\n class="signpost-action close"\n (click)="close()"\n [attr.aria-controls]="signpostContentId"\n >\n <cds-icon shape="window-close" [attr.title]="commonStrings.keys.close"></cds-icon>\n </button>\n </div>\n <div class="signpost-content-body">\n <ng-content></ng-content>\n </div>\n </div>\n ',host:{"[class.signpost-content]":"true","[id]":"signpostContentId"},providers:[K]}]}],la.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef,decorators:[{type:t.Optional},{type:t.Inject,args:[xn]}]},{type:H},{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:ii},{type:ri},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]},la.propDecorators={position:[{type:t.Input,args:["clrPosition"]}]};var pa=[si,la,oi],ua=function(){n.ClarityIcons.addIcons(n.windowCloseIcon,n.infoCircleIcon)};ua.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,_r],declarations:[pa],exports:[pa,nt]}]}],ua.ctorParameters=function(){return[]};var da=function(){function e(){this._id=new i.Subject}return e.prototype.updateId=function(e){this._id.next(e)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id.asObservable()},enumerable:!1,configurable:!0}),e}();da.decorators=[{type:t.Injectable}];var ha=function(){};ha.decorators=[{type:t.Component,args:[{selector:"clr-tooltip",template:" <ng-content></ng-content> ",host:{"[class.tooltip]":"true"},providers:[v,{provide:xn,useExisting:t.ElementRef},K,da]}]}];var ga=["bottom-left","bottom-right","top-left","top-right","right","left"],fa=["xs","sm","md","lg"],ya=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;if(o.uniqueId=r,o.tooltipIdService=i,!n)throw new Error("clr-tooltip-content should only be used inside of a clr-tooltip");return o.position="right",o.size="sm",o.updateId(r),o}return oe(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this.updateId(e||"")},enumerable:!1,configurable:!0}),t.prototype.updateId=function(e){this._id=e,this.tooltipIdService.updateId(e)},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){switch(this.renderer.removeClass(this.el.nativeElement,"tooltip-"+this.position),e&&ga.indexOf(e)>-1?this._position=e:this._position="right",this.renderer.addClass(this.el.nativeElement,"tooltip-"+this.position),e){case"top-right":this.anchorPoint=zo.TOP_CENTER,this.popoverPoint=zo.LEFT_BOTTOM;break;case"top-left":this.anchorPoint=zo.TOP_CENTER,this.popoverPoint=zo.RIGHT_BOTTOM;break;case"bottom-right":this.anchorPoint=zo.BOTTOM_CENTER,this.popoverPoint=zo.LEFT_TOP;break;case"bottom-left":this.anchorPoint=zo.BOTTOM_CENTER,this.popoverPoint=zo.RIGHT_TOP;break;case"right":this.anchorPoint=zo.RIGHT_CENTER,this.popoverPoint=zo.LEFT_TOP;break;case"left":this.anchorPoint=zo.LEFT_CENTER,this.popoverPoint=zo.RIGHT_TOP;break;default:this.anchorPoint=zo.RIGHT_CENTER,this.popoverPoint=zo.LEFT_TOP}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.el.nativeElement,"tooltip-"+this.size),e&&fa.indexOf(e)>-1?this._size=e:this._size="sm",this.renderer.addClass(this.el.nativeElement,"tooltip-"+this.size)},enumerable:!1,configurable:!0}),t}(Zo);ya.decorators=[{type:t.Component,args:[{selector:"clr-tooltip-content",template:" <ng-content></ng-content> ",host:{"[class.tooltip-content]":"true","[style.opacity]":"1","[attr.role]":'"tooltip"',"[id]":"id"}}]}],ya.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef,decorators:[{type:t.Optional},{type:t.Inject,args:[xn]}]},{type:String,decorators:[{type:t.Inject,args:[W]}]},{type:da}]},ya.propDecorators={id:[{type:t.Input}],position:[{type:t.Input,args:["clrPosition"]}],size:[{type:t.Input,args:["clrSize"]}]};var ba=function(){function e(e,t){var n=this;this.toggleService=e,this.tooltipIdService=t,this.subs=[],this.subs.push(this.tooltipIdService.id.subscribe((function(e){return n.ariaDescribedBy=e})))}return e.prototype.showTooltip=function(){this.toggleService.open=!0},e.prototype.hideTooltip=function(){this.toggleService.open=!1},e.prototype.ngOnDestroy=function(){this.subs.forEach((function(e){return e.unsubscribe()}))},e}();ba.decorators=[{type:t.Directive,args:[{selector:"[clrTooltipTrigger]",host:{tabindex:"0","[class.tooltip-trigger]":"true","[attr.aria-describedby]":"ariaDescribedBy","[attr.role]":'"button"'}}]}],ba.ctorParameters=function(){return[{type:v},{type:da}]},ba.propDecorators={showTooltip:[{type:t.HostListener,args:["mouseenter"]},{type:t.HostListener,args:["focus"]}],hideTooltip:[{type:t.HostListener,args:["mouseleave"]},{type:t.HostListener,args:["blur"]}]};var ma=[ha,ba,ya],va=function(){};va.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[ma],exports:[ma,nt,y]}]}];var Ca=function(){};Ca.decorators=[{type:t.NgModule,args:[{exports:[Jo,ua,va]}]}];var Sa=function(){function e(){this.buttonsReady=!1,this._previousBtnClicked=new i.Subject,this._nextBtnClicked=new i.Subject,this._dangerBtnClicked=new i.Subject,this._cancelBtnClicked=new i.Subject,this._finishBtnClicked=new i.Subject,this._customBtnClicked=new i.Subject}return Object.defineProperty(e.prototype,"previousBtnClicked",{get:function(){return this._previousBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextBtnClicked",{get:function(){return this._nextBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dangerBtnClicked",{get:function(){return this._dangerBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancelBtnClicked",{get:function(){return this._cancelBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finishBtnClicked",{get:function(){return this._finishBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"customBtnClicked",{get:function(){return this._customBtnClicked.asObservable()},enumerable:!1,configurable:!0}),e.prototype.buttonClicked=function(e){"previous"===e?this._previousBtnClicked.next():"next"===e?this._nextBtnClicked.next():"finish"===e?this._finishBtnClicked.next():"danger"===e?this._dangerBtnClicked.next():"cancel"===e?this._cancelBtnClicked.next():this._customBtnClicked.next(e)},e}();Sa.decorators=[{type:t.Injectable}];var Ia=function(){function e(){this._pagesReset=new i.Subject}return Object.defineProperty(e.prototype,"pagesAsArray",{get:function(){return this.pages?this.pages.toArray():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pagesCount",{get:function(){return this.pages?this.pages.length:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"penultimatePage",{get:function(){var e=this.pagesCount;return e<2?null:this.pagesAsArray[e-2]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastPage",{get:function(){var e=this.pagesCount;return e<1?null:this.pagesAsArray[e-1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstPage",{get:function(){return this.pagesCount?this.pagesAsArray[0]:null},enumerable:!1,configurable:!0}),e.prototype.getPageById=function(e){var t=this.pages.filter((function(t){return e===t.id}));return this.checkResults(t,e)},e.prototype.getPageByIndex=function(e){var t=this.pagesCount,n=t>1?t-1:0;if(e<0)throw new Error("Cannot retrieve page with index of "+e);if(e>n)throw new Error("Page index is greater than length of pages array.");return this.pagesAsArray[e]},e.prototype.getPageIndex=function(e){var t=this.pagesAsArray.indexOf(e);if(t<0)throw new Error("Requested page cannot be found in collection of pages.");return t},e.prototype.checkResults=function(e,t){var n=e.length||0;if(n>1)throw new Error("More than one page has the requested id "+t+".");if(n<1)throw new Error("No page can be found with the id "+t+".");return e[0]},e.prototype.pageRange=function(e,t){var n=[];return e<0||t<0||null==e||isNaN(e)||null==t||isNaN(t)?[]:(t>this.pagesCount&&(t=this.pagesCount),n=this.pagesAsArray,t-e==0?[this.getPageByIndex(e)]:(t+=1,n.slice(e,t)))},e.prototype.getPageRangeFromPages=function(e,t){var n,r,i=this.getPageIndex(e),o=this.getPageIndex(t);return i<=o?(n=i,r=o):(n=o,r=i),this.pageRange(n,r)},e.prototype.getPreviousPage=function(e){var t=this.getPageIndex(e)-1;return t<0?null:this.getPageByIndex(t)},e.prototype.previousPageIsCompleted=function(e){if(!e)return!1;var t=this.getPreviousPage(e);return null===t||t.completed},e.prototype.getNextPage=function(e){var t=this.getPageIndex(e)+1;return t>=this.pagesAsArray.length?null:this.getPageByIndex(t)},e.prototype.getStepItemIdForPage=function(e){var t=e.id.split("-").reverse();return t[1]="step",t.reverse().join("-")},e.prototype.commitPage=function(e){var t=e.stopNext||e.preventDefault;e.completed=!0,t||e.onCommit.emit(e.id)},Object.defineProperty(e.prototype,"pagesReset",{get:function(){return this._pagesReset.asObservable()},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.pagesAsArray.forEach((function(e){e.completed=!1})),this._pagesReset.next(!0)},e.prototype.updateCompletedStates=function(){var e=this.findFirstIncompletePageIndex();e!==this.pagesAsArray.length-1&&this.pagesAsArray.forEach((function(t,n){n>e&&(t.completed=!1)}))},e.prototype.findFirstIncompletePageIndex=function(){var e=null;return this.pagesAsArray.forEach((function(t,n){null===e&&!1===t.completed&&(e=n)})),null===e&&(e=this.pagesCount-1),e},e.prototype.findFirstIncompletePage=function(){var e=this.findFirstIncompletePageIndex();return this.pagesAsArray[e]},e}();Ia.decorators=[{type:t.Injectable}];var Oa=function(){function e(e,t){var n=this;this.pageCollection=e,this.buttonService=t,this._currentChanged=new i.Subject,this.navServiceLoaded=!1,this.forceForwardNavigation=!1,this._movedToNextPage=new i.Subject,this._wizardFinished=new i.Subject,this._movedToPreviousPage=new i.Subject,this._cancelWizard=new i.Subject,this.wizardHasAltCancel=!1,this.wizardHasAltNext=!1,this.wizardStopNavigation=!1,this.wizardDisableStepnav=!1,this.previousButtonSubscription=this.buttonService.previousBtnClicked.subscribe((function(){var e=n.currentPage;n.currentPageIsFirst||e.previousStepDisabled||(e.previousButtonClicked.emit(e),e.preventDefault||n.previous())})),this.nextButtonSubscription=this.buttonService.nextBtnClicked.subscribe((function(){n.checkAndCommitCurrentPage("next")})),this.dangerButtonSubscription=this.buttonService.dangerBtnClicked.subscribe((function(){n.checkAndCommitCurrentPage("danger")})),this.finishButtonSubscription=this.buttonService.finishBtnClicked.subscribe((function(){n.checkAndCommitCurrentPage("finish")})),this.customButtonSubscription=this.buttonService.customBtnClicked.subscribe((function(e){n.wizardStopNavigation||n.currentPage.customButtonClicked.emit(e)})),this.cancelButtonSubscription=this.buttonService.cancelBtnClicked.subscribe((function(){n.wizardStopNavigation||(n.currentPage.preventDefault?n.currentPage.pageOnCancel.emit(n.currentPage):n.cancel())})),this.pagesResetSubscription=this.pageCollection.pagesReset.subscribe((function(){n.setFirstPageCurrent()}))}return e.prototype.ngOnDestroy=function(){this.previousButtonSubscription.unsubscribe(),this.nextButtonSubscription.unsubscribe(),this.dangerButtonSubscription.unsubscribe(),this.finishButtonSubscription.unsubscribe(),this.customButtonSubscription.unsubscribe(),this.cancelButtonSubscription.unsubscribe(),this.pagesResetSubscription.unsubscribe()},Object.defineProperty(e.prototype,"currentPageChanged",{get:function(){return this._currentChanged.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageTitle",{get:function(){return this.currentPage?this.currentPage.title:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageIsFirst",{get:function(){return this.pageCollection.firstPage===this.currentPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageIsLast",{get:function(){return this.pageCollection.lastPage===this.currentPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPage",{get:function(){return this._currentPage?this._currentPage:null},set:function(e){this._currentPage===e||this.wizardStopNavigation||(this._currentPage=e,e.onLoad.emit(e.id),this._currentChanged.next(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movedToNextPage",{get:function(){return this._movedToNextPage.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wizardFinished",{get:function(){return this._wizardFinished.asObservable()},enumerable:!1,configurable:!0}),e.prototype.next=function(){this.currentPageIsLast?this.checkAndCommitCurrentPage("finish"):this.checkAndCommitCurrentPage("next")},e.prototype.forceNext=function(){var e=this.currentPage,t=this.pageCollection.getNextPage(e);if(!t)throw new Error("The wizard has no next page to go to.");this.wizardStopNavigation||(e.completed||this.pageCollection.commitPage(e),this.currentPage=t)},e.prototype.checkAndCommitCurrentPage=function(e){var t=this.currentPage;if(t.readyToComplete&&!this.wizardStopNavigation){var n=this.currentPageIsLast,r="next"===e,i="danger"===e,o=i&&!n,s="finish"===e||i&&n;if(!s||n)if(t.primaryButtonClicked.emit(e),s?t.finishButtonClicked.emit(t):i?t.dangerButtonClicked.emit():r&&t.nextButtonClicked.emit(),t.stopNext||t.preventDefault)t.onCommit.emit(t.id);else{if(s&&(this.wizardHasAltNext||this.pageCollection.commitPage(t),this._wizardFinished.next()),this.wizardHasAltNext)return this.pageCollection.commitPage(t),void((r||o)&&this._movedToNextPage.next(!0));(r||o)&&this.forceNext(),this.wizardHasAltNext||this.wizardStopNavigation||this._movedToNextPage.next(!0)}}},e.prototype.finish=function(){this.checkAndCommitCurrentPage("finish")},Object.defineProperty(e.prototype,"movedToPreviousPage",{get:function(){return this._movedToPreviousPage.asObservable()},enumerable:!1,configurable:!0}),e.prototype.previous=function(){if(!this.currentPageIsFirst&&!this.wizardStopNavigation){var e=this.pageCollection.getPreviousPage(this.currentPage);e&&(this._movedToPreviousPage.next(!0),this.forceForwardNavigation&&(this.currentPage.completed=!1),this.currentPage=e)}},Object.defineProperty(e.prototype,"notifyWizardCancel",{get:function(){return this._cancelWizard.asObservable()},enumerable:!1,configurable:!0}),e.prototype.cancel=function(){this._cancelWizard.next()},e.prototype.goTo=function(e,t){void 0===t&&(t=!1);var n=this.pageCollection,r="string"==typeof e?n.getPageById(e):e,i=this.currentPage;if(r!==i&&!this.wizardStopNavigation){var o=n.getPageIndex(i),s=n.getPageIndex(r)>o,a=n.getPageRangeFromPages(this.currentPage,r);(t||this.canGoTo(a))&&(s&&t?a.forEach((function(e){e!==r&&(e.completed=!0)})):!s&&this.forceForwardNavigation&&a.forEach((function(e){e.completed=!1})),this.currentPage=r)}},e.prototype.canGoTo=function(e){var t,n=!0,r=this.pageCollection;return!(!e||e.length<1)&&(e.forEach((function(e){if(n&&!e.completed){var i=r.getPageIndex(e)>0?r.getPreviousPage(e):null;t=null===i||!0===i.completed,e.current||t||(n=!1)}})),n)},e.prototype.setLastEnabledPageCurrent=function(){var e=this.pageCollection.pagesAsArray,t=null;e.forEach((function(e,n){e.completed&&(t=n)})),null===t?t=0:t+1<e.length&&(t+=1),this.currentPage=e[t]},e.prototype.setFirstPageCurrent=function(){this.currentPage=this.pageCollection.pagesAsArray[0]},e.prototype.updateNavigation=function(){var e;this.pageCollection.updateCompletedStates(),this.pageCollection.pagesAsArray.indexOf(this.currentPage)<0&&(e=this.pageCollection.findFirstIncompletePage(),this.currentPage=e)},e}();Oa.decorators=[{type:t.Injectable}],Oa.ctorParameters=function(){return[{type:Ia},{type:Sa}]};var Ea=function(){function e(e){this.navService=e}return Object.defineProperty(e.prototype,"wizardHasHeaderActions",{get:function(){var e=this.wizardHeaderActions;return!!e&&e.toArray().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageHasHeaderActions",{get:function(){return!!this.navService.currentPage&&this.navService.currentPage.hasHeaderActions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showWizardHeaderActions",{get:function(){return!this.currentPageHasHeaderActions&&this.wizardHasHeaderActions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayHeaderActionsWrapper",{get:function(){return this.currentPageHasHeaderActions||this.wizardHasHeaderActions},enumerable:!1,configurable:!0}),e}();Ea.decorators=[{type:t.Injectable}],Ea.ctorParameters=function(){return[{type:Oa}]};var wa=0,_a=function(){function e(){this.title="",this._id=(wa++).toString(),this.disabled=!1,this.headerActionClicked=new t.EventEmitter(!1)}return Object.defineProperty(e.prototype,"id",{get:function(){return"clr-wizard-header-action-"+this._id},enumerable:!1,configurable:!0}),e.prototype.click=function(){this.disabled||this.headerActionClicked.emit(this._id)},e}();_a.decorators=[{type:t.Component,args:[{selector:"clr-wizard-header-action",template:'\n <button\n type="button"\n class="btn clr-wizard-header-action btn-link"\n [id]="id"\n [class.disabled]="disabled"\n (click)="click()"\n [title]="title"\n >\n <ng-content></ng-content>\n </button>\n ',host:{class:"clr-wizard-header-action-wrapper"}}]}],_a.propDecorators={title:[{type:t.Input,args:["title"]}],_id:[{type:t.Input,args:["id"]}],disabled:[{type:t.Input,args:["clrWizardHeaderActionDisabled"]}],headerActionClicked:[{type:t.Output,args:["actionClicked"]}]};var Pa=function(e){this.pageButtonsTemplateRef=e};Pa.decorators=[{type:t.Directive,args:[{selector:"[clrPageButtons]"}]}],Pa.ctorParameters=function(){return[{type:t.TemplateRef}]};var Da=function(e){this.pageHeaderActionsTemplateRef=e};Da.decorators=[{type:t.Directive,args:[{selector:"[clrPageHeaderActions]"}]}],Da.ctorParameters=function(){return[{type:t.TemplateRef}]};var Ta=function(e){this.pageNavTitleTemplateRef=e};Ta.decorators=[{type:t.Directive,args:[{selector:"[clrPageNavTitle]"}]}],Ta.ctorParameters=function(){return[{type:t.TemplateRef}]};var xa=function(e){this.pageTitleTemplateRef=e};xa.decorators=[{type:t.Directive,args:[{selector:"[clrPageTitle]"}]}],xa.ctorParameters=function(){return[{type:t.TemplateRef}]};var Aa=0,ka=function(){function e(e,n,r){this.navService=e,this.pageCollection=n,this.buttonService=r,this._nextStepDisabled=!1,this.nextStepDisabledChange=new t.EventEmitter,this._previousStepDisabled=!1,this.previousStepDisabledChange=new t.EventEmitter,this._hasError=!1,this.preventDefault=!1,this._stopCancel=!1,this.stopCancelChange=new t.EventEmitter,this._stopNext=!1,this.onCommit=new t.EventEmitter(!1),this.onLoad=new t.EventEmitter,this.pageOnCancel=new t.EventEmitter,this.finishButtonClicked=new t.EventEmitter,this.previousButtonClicked=new t.EventEmitter,this.nextButtonClicked=new t.EventEmitter,this.dangerButtonClicked=new t.EventEmitter,this.primaryButtonClicked=new t.EventEmitter,this.customButtonClicked=new t.EventEmitter,this._id=(Aa++).toString(),this._complete=!1}return Object.defineProperty(e.prototype,"nextStepDisabled",{get:function(){return this._nextStepDisabled},set:function(e){var t=!!e;t!==this._nextStepDisabled&&(this._nextStepDisabled=t,this.nextStepDisabledChange.emit(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousStepDisabled",{get:function(){return this._previousStepDisabled},set:function(e){var t=!!e;t!==this._previousStepDisabled&&(this._previousStepDisabled=t,this.previousStepDisabledChange.emit(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasError",{get:function(){return this._hasError},set:function(e){var t=!!e;t!==this._hasError&&(this._hasError=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopCancel",{get:function(){return this._stopCancel},set:function(e){var t=!!e;t!==this._stopCancel&&(this._stopCancel=t,this.stopCancelChange.emit(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopNext",{get:function(){return this._stopNext},set:function(e){var t=!!e;t!==this._stopNext&&(this._stopNext=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return(!this._id&&0!==this._id||this._id<0)&&(this._id=(Aa++).toString()),"clr-wizard-page-"+this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readyToComplete",{get:function(){return!this.nextStepDisabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"completed",{get:function(){return this._complete&&this.readyToComplete},set:function(e){this._complete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.navService.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.current||this.completed||this.previousCompleted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousCompleted",{get:function(){var e=this.pageCollection.getPreviousPage(this);return!e||e.completed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.pageTitle.pageTitleTemplateRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navTitle",{get:function(){return this.pageNavTitle?this.pageNavTitle.pageNavTitleTemplateRef:this.pageTitle.pageTitleTemplateRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerActions",{get:function(){if(this._headerActions)return this._headerActions.pageHeaderActionsTemplateRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasHeaderActions",{get:function(){return!!this._headerActions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buttons",{get:function(){if(this._buttons)return this._buttons.pageButtonsTemplateRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasButtons",{get:function(){return!!this._buttons},enumerable:!1,configurable:!0}),e.prototype.makeCurrent=function(){this.navService.currentPage=this},e.prototype.ngOnInit=function(){var e=this.navService;e.currentPage||e.navServiceLoaded||(this.makeCurrent(),this.navService.navServiceLoaded=!0)},Object.defineProperty(e.prototype,"stepItemId",{get:function(){return this.pageCollection.getStepItemIdForPage(this)},enumerable:!1,configurable:!0}),e}();ka.decorators=[{type:t.Component,args:[{selector:"clr-wizard-page",template:"<ng-content></ng-content>",host:{"[id]":"id","[attr.aria-hidden]":"!current","[attr.aria-labelledby]":"stepItemId","[class.active]":"current","[class.clr-wizard-page]":"true"}}]}],ka.ctorParameters=function(){return[{type:Oa},{type:Ia},{type:Sa}]},ka.propDecorators={pageTitle:[{type:t.ContentChild,args:[xa,{static:!0}]}],pageNavTitle:[{type:t.ContentChild,args:[Ta,{static:!0}]}],_buttons:[{type:t.ContentChild,args:[Pa,{static:!0}]}],_headerActions:[{type:t.ContentChild,args:[Da,{static:!0}]}],nextStepDisabled:[{type:t.Input,args:["clrWizardPageNextDisabled"]}],nextStepDisabledChange:[{type:t.Output,args:["clrWizardPageNextDisabledChange"]}],previousStepDisabled:[{type:t.Input,args:["clrWizardPagePreviousDisabled"]}],previousStepDisabledChange:[{type:t.Output,args:["clrWizardPagePreviousDisabledChange"]}],hasError:[{type:t.Input,args:["clrWizardPageHasError"]}],preventDefault:[{type:t.Input,args:["clrWizardPagePreventDefault"]}],stopCancel:[{type:t.Input,args:["clrWizardPagePreventDefaultCancel"]}],stopCancelChange:[{type:t.Output,args:["clrWizardPagePreventDefaultCancelChange"]}],stopNext:[{type:t.Input,args:["clrWizardPagePreventDefaultNext"]}],onCommit:[{type:t.Output,args:["clrWizardPageOnCommit"]}],onLoad:[{type:t.Output,args:["clrWizardPageOnLoad"]}],pageOnCancel:[{type:t.Output,args:["clrWizardPageOnCancel"]}],finishButtonClicked:[{type:t.Output,args:["clrWizardPageFinish"]}],previousButtonClicked:[{type:t.Output,args:["clrWizardPagePrevious"]}],nextButtonClicked:[{type:t.Output,args:["clrWizardPageNext"]}],dangerButtonClicked:[{type:t.Output,args:["clrWizardPageDanger"]}],primaryButtonClicked:[{type:t.Output,args:["clrWizardPagePrimary"]}],customButtonClicked:[{type:t.Output,args:["clrWizardPageCustomButton"]}],_id:[{type:t.Input,args:["id"]}]};var Ra=function(){function e(e,n,r,i,o,s,a){this.platformId=e,this.navService=n,this.pageCollection=r,this.buttonService=i,this.headerActionService=o,this.elementRef=s,this.size="xl",this.closable=!0,this._forceForward=!1,this._open=!1,this._stopNext=!1,this._stopCancel=!1,this._stopNavigation=!1,this._disableStepnav=!1,this._stopModalAnimations=!1,this._openChanged=new t.EventEmitter(!1),this.onCancel=new t.EventEmitter(!1),this.wizardFinished=new t.EventEmitter(!1),this.onReset=new t.EventEmitter(!1),this.currentPageChanged=new t.EventEmitter(!1),this.onMoveNext=new t.EventEmitter(!1),this.onMovePrevious=new t.EventEmitter(!1),this.subscriptions=[],this.subscriptions.push(this.listenForNextPageChanges(),this.listenForPreviousPageChanges(),this.listenForCancelChanges(),this.listenForFinishedChanges(),this.listenForPageChanges()),this.differ=a.find([]).create(null)}return Object.defineProperty(e.prototype,"forceForward",{get:function(){return this._forceForward},set:function(e){this._forceForward=!!e,this.navService.forceForwardNavigation=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrWizardOpen",{set:function(e){e&&(this.buttonService.buttonsReady=!0),this._open=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopNext",{get:function(){return this._stopNext},set:function(e){this._stopNext=!!e,this.navService.wizardHasAltNext=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopCancel",{get:function(){return this._stopCancel},set:function(e){this._stopCancel=!!e,this.navService.wizardHasAltCancel=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopNavigation",{get:function(){return this._stopNavigation},set:function(e){this._stopNavigation=!!e,this.navService.wizardStopNavigation=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disableStepnav",{get:function(){return this._disableStepnav},set:function(e){this._disableStepnav=!!e,this.navService.wizardDisableStepnav=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopModalAnimations",{get:function(){return this._stopModalAnimations?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.navService.currentPage},set:function(e){this.navService.goTo(e,!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLast",{get:function(){return this.navService.currentPageIsLast},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirst",{get:function(){return this.navService.currentPageIsFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStatic",{get:function(){return this.elementRef.nativeElement.classList.contains("clr-wizard--inline")},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.pageCollection.pages=this.pages,this.headerActionService.wizardHeaderActions=this.headerActions,this.initializeButtons()},e.prototype.ngDoCheck=function(){this.updateNavOnPageChanges()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.finish=function(e){void 0===e&&(e=!0),e?this.forceFinish():this.navService.finish()},e.prototype.forceFinish=function(){this.stopNavigation||this.close()},e.prototype.open=function(){this._open=!0,this.currentPage||this.navService.setFirstPageCurrent(),this.buttonService.buttonsReady=!0,this._openChanged.emit(!0)},e.prototype.close=function(){this.stopNavigation||(this._open=!1,this._openChanged.emit(!1))},e.prototype.toggle=function(e){e?this.open():this.close()},e.prototype.previous=function(){this.navService.previous()},e.prototype.next=function(e){void 0===e&&(e=!0),e?this.forceNext():this.navService.next()},e.prototype.forceNext=function(){this.navService.forceNext()},e.prototype.cancel=function(){this.navService.cancel()},e.prototype.modalCancel=function(){this.closable&&this.checkAndCancel()},e.prototype.checkAndCancel=function(){var e=this.currentPage,t=e.stopCancel||e.preventDefault;this.stopNavigation||(e.pageOnCancel.emit(),t||this.onCancel.emit(),this.stopCancel||t||this.close())},e.prototype.goTo=function(e){e&&this.navService.goTo(e)},e.prototype.reset=function(){this.pageCollection.reset(),this.onReset.next()},e.prototype.listenForNextPageChanges=function(){var e=this;return this.navService.movedToNextPage.pipe(o.filter((function(){return r.isPlatformBrowser(e.platformId)}))).subscribe((function(){e.onMoveNext.emit(),e.wizardTitle.nativeElement.focus()}))},e.prototype.listenForPreviousPageChanges=function(){var e=this;return this.navService.movedToPreviousPage.pipe(o.filter((function(){return r.isPlatformBrowser(e.platformId)}))).subscribe((function(){e.onMovePrevious.emit(),e.wizardTitle.nativeElement.focus()}))},e.prototype.listenForCancelChanges=function(){var e=this;return this.navService.notifyWizardCancel.subscribe((function(){return e.checkAndCancel()}))},e.prototype.listenForFinishedChanges=function(){var e=this;return this.navService.wizardFinished.subscribe((function(){return e.emitWizardFinished()}))},e.prototype.listenForPageChanges=function(){var e=this;return this.navService.currentPageChanged.subscribe((function(){return e.currentPageChanged.emit()}))},e.prototype.updateNavOnPageChanges=function(){var e=this,t=this.differ.diff(this.pages);t&&(t.forEachAddedItem((function(){return e.navService.updateNavigation()})),t.forEachRemovedItem((function(){return e.navService.updateNavigation()})))},e.prototype.initializeButtons=function(){this._open&&(this.buttonService.buttonsReady=!0)},e.prototype.emitWizardFinished=function(){this.stopNext||this.forceFinish(),this.wizardFinished.emit()},e}();Ra.decorators=[{type:t.Component,args:[{selector:"clr-wizard",providers:[Oa,Ia,Sa,Ea],template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<clr-modal\n [clrModalOpen]="_open"\n [clrModalSize]="size"\n [clrModalClosable]="closable"\n [clrModalStaticBackdrop]="true"\n [clrModalSkipAnimation]="stopModalAnimations"\n [clrModalOverrideScrollService]="isStatic"\n [clrModalPreventClose]="true"\n (clrModalAlternateClose)="modalCancel()"\n>\n <nav class="modal-nav clr-wizard-stepnav-wrapper">\n <h1 class="clr-wizard-title"><ng-content select="clr-wizard-title"></ng-content></h1>\n <clr-wizard-stepnav></clr-wizard-stepnav>\n </nav>\n\n <h2 class="modal-title">\n <span tabindex="-1" #wizardTitle class="modal-title-text">\n <ng-template [ngTemplateOutlet]="navService.currentPageTitle"></ng-template>\n </span>\n\n <div class="modal-header-actions-wrapper" *ngIf="headerActionService.displayHeaderActionsWrapper">\n <div *ngIf="headerActionService.showWizardHeaderActions">\n <ng-content select="clr-wizard-header-action"></ng-content>\n </div>\n <div *ngIf="headerActionService.currentPageHasHeaderActions">\n <ng-template [ngTemplateOutlet]="navService.currentPage.headerActions"></ng-template>\n </div>\n </div>\n </h2>\n\n <div class="modal-body">\n <main clr-wizard-pages-wrapper class="clr-wizard-content">\n <ng-content></ng-content>\n </main>\n </div>\n <div class="modal-footer clr-wizard-footer">\n <div class="clr-wizard-footer-buttons">\n <div\n *ngIf="navService.currentPage && !navService.currentPage.hasButtons"\n class="clr-wizard-footer-buttons-wrapper"\n >\n <ng-content select="clr-wizard-button"></ng-content>\n </div>\n <div\n *ngIf="navService.currentPage && navService.currentPage.hasButtons"\n class="clr-wizard-footer-buttons-wrapper"\n >\n <ng-template [ngTemplateOutlet]="navService.currentPage.buttons"></ng-template>\n </div>\n </div>\n </div>\n</clr-modal>\n',host:{"[class.clr-wizard]":"true","[class.wizard-md]":"size == 'md'","[class.wizard-lg]":"size == 'lg'","[class.wizard-xl]":"size == 'xl'","[class.lastPage]":"navService.currentPageIsLast"}}]}],Ra.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:Oa},{type:Ia},{type:Sa},{type:Ea},{type:t.ElementRef},{type:t.IterableDiffers}]},Ra.propDecorators={size:[{type:t.Input,args:["clrWizardSize"]}],closable:[{type:t.Input,args:["clrWizardClosable"]}],forceForward:[{type:t.Input,args:["clrWizardForceForwardNavigation"]}],clrWizardOpen:[{type:t.Input,args:["clrWizardOpen"]}],stopNext:[{type:t.Input,args:["clrWizardPreventDefaultNext"]}],stopCancel:[{type:t.Input,args:["clrWizardPreventDefaultCancel"]}],stopNavigation:[{type:t.Input,args:["clrWizardPreventNavigation"]}],disableStepnav:[{type:t.Input,args:["clrWizardDisableStepnav"]}],_stopModalAnimations:[{type:t.Input,args:["clrWizardPreventModalAnimation"]}],_openChanged:[{type:t.Output,args:["clrWizardOpenChange"]}],onCancel:[{type:t.Output,args:["clrWizardOnCancel"]}],wizardFinished:[{type:t.Output,args:["clrWizardOnFinish"]}],onReset:[{type:t.Output,args:["clrWizardOnReset"]}],currentPageChanged:[{type:t.Output,args:["clrWizardCurrentPageChanged"]}],onMoveNext:[{type:t.Output,args:["clrWizardOnNext"]}],onMovePrevious:[{type:t.Output,args:["clrWizardOnPrevious"]}],pages:[{type:t.ContentChildren,args:[ka,{descendants:!0}]}],headerActions:[{type:t.ContentChildren,args:[_a]}],wizardTitle:[{type:t.ViewChild,args:["wizardTitle"]}]};var La={cancel:"cancel",previous:"previous",next:"next",finish:"finish",danger:"danger"},ja={cancel:"custom-cancel",previous:"custom-previous",next:"custom-next",finish:"custom-finish",danger:"custom-danger"},Na=function(){function e(e,n){this.navService=e,this.buttonService=n,this.type="",this.disabled=!1,this.hidden=!1,this.wasClicked=new t.EventEmitter(!1)}return e.prototype.checkDefaultAndCustomType=function(e,t){return void 0===e&&(e=""),La[t]===e||ja[t]===e},Object.defineProperty(e.prototype,"isCancel",{get:function(){return this.checkDefaultAndCustomType(this.type,"cancel")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNext",{get:function(){return this.checkDefaultAndCustomType(this.type,"next")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPrevious",{get:function(){return this.checkDefaultAndCustomType(this.type,"previous")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFinish",{get:function(){return this.checkDefaultAndCustomType(this.type,"finish")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDanger",{get:function(){return this.checkDefaultAndCustomType(this.type,"danger")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPrimaryAction",{get:function(){return this.isNext||this.isDanger||this.isFinish},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_disabledAttribute",{get:function(){return this.isDisabled?"":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){var e=!0,t=this.navService,n=this.navService.currentPage;return!!this.buttonService.buttonsReady&&(!(!this.disabled&&!t.wizardStopNavigation&&n)||!this.isCancel&&(this.isPrevious&&(t.currentPageIsFirst||n.previousStepDisabled)||this.isDanger&&!n.readyToComplete?e:!this.isNext||!t.currentPageIsLast&&n.readyToComplete?!(!this.isFinish||t.currentPageIsLast&&n.readyToComplete)&&e:e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){var e=!0,t=this.navService;return!!this.buttonService.buttonsReady&&(!!this.hidden||!this.isCancel&&((this.isPrevious&&t.currentPageIsFirst||this.isNext&&t.currentPageIsLast||!(!this.isFinish||t.currentPageIsLast))&&e))},enumerable:!1,configurable:!0}),e.prototype.click=function(){this.isDisabled||(this.wasClicked.emit(this.type),this.buttonService.buttonClicked(this.type))},e}();Na.decorators=[{type:t.Component,args:[{selector:"clr-wizard-button",template:'\n <button\n type="button"\n class="btn clr-wizard-btn"\n [class.btn-link]="isCancel"\n [class.clr-wizard-btn--tertiary]="isCancel"\n [class.btn-outline]="isPrevious"\n [class.clr-wizard-btn--secondary]="isPrevious"\n [class.btn-primary]="isPrimaryAction"\n [class.clr-wizard-btn--primary]="isPrimaryAction"\n [class.btn-success]="isFinish"\n [class.btn-danger]="isDanger"\n [class.disabled]="isDisabled"\n [attr.disabled]="_disabledAttribute"\n (click)="click()"\n >\n <ng-content></ng-content>\n </button>\n ',host:{class:"clr-wizard-btn-wrapper","[attr.aria-hidden]":"isHidden"}}]}],Na.ctorParameters=function(){return[{type:Oa},{type:Sa}]},Na.propDecorators={type:[{type:t.Input,args:["type"]}],disabled:[{type:t.Input,args:["clrWizardButtonDisabled"]}],hidden:[{type:t.Input,args:["clrWizardButtonHidden"]}],wasClicked:[{type:t.Output,args:["clrWizardButtonClicked"]}]};var Fa=function(){};Fa.decorators=[{type:t.Directive,args:[{selector:"clr-wizard-title, clr-wizard-pagetitle"}]}];var Ma=function(e){this.pageService=e};Ma.decorators=[{type:t.Component,args:[{selector:"clr-wizard-stepnav",template:'\n <div class="clr-wizard-stepnav-list">\n <div\n *ngFor="let page of pageService.pages; let i = index"\n clr-wizard-stepnav-item\n [page]="page"\n class="clr-wizard-stepnav-item"\n >\n {{ i + 1 }}\n </div>\n </div>\n ',host:{class:"clr-wizard-stepnav"}}]}],Ma.ctorParameters=function(){return[{type:Ia}]};var Va=function(){function e(e,t){this.navService=e,this.pageCollection=t}return e.prototype.pageGuard=function(){if(!this.page)throw new Error("Wizard stepnav item is not associated with a wizard page.")},Object.defineProperty(e.prototype,"id",{get:function(){return this.pageGuard(),this.pageCollection.getStepItemIdForPage(this.page)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stepAriaCurrent",{get:function(){return this.isCurrent&&"step"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.pageGuard(),this.page.disabled||this.navService.wizardStopNavigation||this.navService.wizardDisableStepnav},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCurrent",{get:function(){return this.pageGuard(),this.page.current},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.pageGuard(),this.page.completed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasError",{get:function(){return this.pageGuard(),this.page.hasError&&this.isComplete},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canNavigate",{get:function(){return this.pageGuard(),this.pageCollection.previousPageIsCompleted(this.page)},enumerable:!1,configurable:!0}),e.prototype.click=function(){this.pageGuard(),this.isDisabled||this.isCurrent||this.navService.goTo(this.page)},e}();Va.decorators=[{type:t.Component,args:[{selector:"[clr-wizard-stepnav-item]",template:'\n <button\n type="button"\n class="btn btn-link clr-wizard-stepnav-link"\n (click)="click()"\n [attr.disabled]="isDisabled ? \'\' : null"\n >\n <span class="clr-wizard-stepnav-link-suffix">\n <cds-icon\n shape="error-standard"\n status="danger"\n class="clr-wizard-stepnav-item-error-icon"\n *ngIf="hasError"\n ></cds-icon>\n <ng-content *ngIf="!hasError"></ng-content>\n </span>\n <span class="clr-wizard-stepnav-link-title">\n <ng-template [ngTemplateOutlet]="page.navTitle"></ng-template>\n </span>\n </button>\n ',host:{"[id]":"id","[attr.aria-current]":"stepAriaCurrent","[attr.aria-controls]":"id","[class.clr-nav-link]":"true","[class.nav-item]":"true","[class.active]":"isCurrent","[class.disabled]":"isDisabled","[class.no-click]":"!canNavigate","[class.complete]":"isComplete","[class.error]":"hasError"}}]}],Va.ctorParameters=function(){return[{type:Oa},{type:Ia}]},Va.propDecorators={page:[{type:t.Input,args:["page"]}]};var Ba,za,Ha=[Ra,ka,Ma,Va,Na,_a,Fa,xa,Ta,Pa,Da],Ga=function(){n.ClarityIcons.addIcons(n.errorStandardIcon)};Ga.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,sa,cs],declarations:[Ha],exports:[Ha]}]}],Ga.ctorParameters=function(){return[]},function(e){e.Default="default",e.Multi="multi"}(Ba||(Ba={})),function(e){e.Inactive="inactive",e.Error="error",e.Complete="complete"}(za||(za={}));var Wa=0,Ua=function(e,t){this.id=e,this.accordionId=t,this.status=za.Inactive,this.index=null,this.disabled=!1,this.open=!1,this.templateId=this.id+"-"+this.accordionId},Ya=function(){function e(){this.strategy=Ba.Default,this.accordionCount=Wa++,this._panels={}}return Object.defineProperty(e.prototype,"panels",{get:function(){var e=this;return Object.keys(this._panels).map((function(t){return e._panels[t]}))},enumerable:!1,configurable:!0}),e.prototype.setStrategy=function(e){this.strategy=e},e.prototype.updatePanelOrder=function(e){var t=this;e.forEach((function(e,n){return t._panels[e].index=n})),this.removeOldPanels(e)},e.prototype.addPanel=function(e,t){void 0===t&&(t=!1),this._panels[e]=new Ua(e,this.accordionCount),this._panels[e].open=t},e.prototype.togglePanel=function(e,t){var n=this._panels[e].open;this.strategy===Ba.Default&&this.closeAllPanels(),this._panels[e].open=void 0!==t?t:!n},e.prototype.disablePanel=function(e,t){this._panels[e].disabled=t},e.prototype.closeAllPanels=function(){var e=this;this.panels.forEach((function(t){return e._panels[t.id].open=!1}))},e.prototype.removeOldPanels=function(e){var t=this;this.panels.filter((function(t){return void 0===e.find((function(e){return e===t.id}))})).forEach((function(e){return delete t._panels[e.id]}))},e}(),Ka=function(){function e(){this.accordion=new Ya,this._panelsChanges=new i.BehaviorSubject(this.accordion.panels)}return e.prototype.getPanelChanges=function(e){return this._panelsChanges.pipe(o.map((function(t){return t.find((function(t){return t.id===e}))})))},e.prototype.setStrategy=function(e){this.accordion.setStrategy(e)},e.prototype.addPanel=function(e,t){void 0===t&&(t=!1),this.accordion.addPanel(e,t),this.emitUpdatedPanels()},e.prototype.togglePanel=function(e,t){this.accordion.togglePanel(e,t),this.emitUpdatedPanels()},e.prototype.disablePanel=function(e,t){this.accordion.disablePanel(e,t),this.emitUpdatedPanels()},e.prototype.updatePanelOrder=function(e){this.accordion.updatePanelOrder(e),this.emitUpdatedPanels()},e.prototype.emitUpdatedPanels=function(){this._panelsChanges.next(this.accordion.panels)},e}();Ka.decorators=[{type:t.Injectable}];var Za="0.2s ease-in-out",qa=[s.trigger("skipInitialRender",[s.transition(":enter",[])]),s.trigger("toggle",[s.transition("void => *",[s.style({display:"block",height:0}),s.animate(Za,s.style({height:"*"}))])])],Xa=[s.trigger("skipInitialRender",[s.transition(":enter",[])]),s.trigger("toggle",[s.transition("void => *",[s.style({display:"block",height:0}),s.animate(Za,s.style({height:"*"}))]),s.transition("* => void",[s.style({display:"block"}),s.animate(Za,s.style({height:0,display:"none"}))])])],$a=function(){};$a.decorators=[{type:t.Component,args:[{selector:"clr-accordion-description, clr-step-description",template:"<ng-content></ng-content>",host:{"[class.clr-accordion-description]":"true"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}];var Ja=function(){function e(e,n,r,i){this.commonStrings=e,this.accordionService=n,this.ifExpandService=r,this._id=i,this.disabled=!1,this.panelOpen=!1,this.panelOpenChange=new t.EventEmitter,this.AccordionStatus=za,this.isAccordion=!0}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.panel=this.accordionService.getPanelChanges(this.id).pipe(o.tap((function(t){return e.emitPanelChange(t)}))),this.accordionService.addPanel(this.id,this.panelOpen),this.accordionService.togglePanel(this.id,this.panelOpen),this.accordionService.disablePanel(this.id,this.disabled)},e.prototype.ngOnChanges=function(e){this.panel&&e.panelOpen&&e.panelOpen.currentValue!==e.panelOpen.previousValue&&this.accordionService.togglePanel(this.id,e.panelOpen.currentValue),this.panel&&e.disabled&&e.disabled.currentValue!==e.disabled.previousValue&&this.accordionService.disablePanel(this.id,e.disabled.currentValue)},e.prototype.togglePanel=function(){this.accordionService.togglePanel(this.id)},e.prototype.collapsePanelOnAnimationDone=function(e){e.open||(this.ifExpandService.expanded=!1)},e.prototype.getPanelStateClasses=function(e){return"clr-accordion-panel-"+e.status+" "+(e.open?"clr-accordion-panel-open":"")},e.prototype.getAccordionContentId=function(e){return"clr-accordion-content-"+e+"'"},e.prototype.getAccordionHeaderId=function(e){return"clr-accordion-header-"+e},e.prototype.emitPanelChange=function(e){e.open!==this.panelOpen&&this.panelOpenChange.emit(e.open),e.open&&(this.ifExpandService.expanded=!0)},e}();Ja.decorators=[{type:t.Component,args:[{selector:"clr-accordion-panel",template:'<ng-container *ngIf="panel | async; let panel">\n <div *ngIf="panel.status !== AccordionStatus.Inactive" aria-live="assertive" class="clr-sr-only">\n <ng-container *ngIf="panel.status === AccordionStatus.Error">{{commonStrings.keys.danger}}</ng-container>\n </div>\n\n <div role="group" [ngClass]="getPanelStateClasses(panel)">\n <div class="clr-accordion-header">\n <button\n type="button"\n class="clr-accordion-header-button"\n (click)="togglePanel()"\n [id]="getAccordionHeaderId(panel.templateId)"\n [disabled]="isAccordion && panel.disabled"\n [attr.aria-disabled]="!isAccordion && panel.disabled"\n [attr.aria-controls]="getAccordionContentId(panel.templateId)"\n [attr.aria-expanded]="panel.open"\n [class.clr-accordion-header-has-description]="(accordionDescription.changes | async)?.length || accordionDescription.length"\n #headerButton\n >\n <span class="clr-sr-only">\n <ng-container *ngIf="panel.status === AccordionStatus.Error">{{commonStrings.keys.danger}}</ng-container>\n <ng-container *ngIf="panel.status === AccordionStatus.Complete">{{commonStrings.keys.success}}</ng-container>\n </span>\n <span class="clr-accordion-status">\n <cds-icon shape="angle" direction="right" class="clr-accordion-angle"></cds-icon>\n <span class="clr-accordion-number"></span>\n <cds-icon status="danger" shape="exclamation-circle" class="clr-accordion-error-icon"></cds-icon>\n <cds-icon status="success" shape="check-circle" class="clr-accordion-complete-icon"></cds-icon>\n </span>\n <ng-content select="clr-accordion-title, clr-step-title"></ng-content>\n <ng-content select="clr-accordion-description, clr-step-description"></ng-content>\n </button>\n </div>\n <div\n @skipInitialRender\n role="region"\n [id]="getAccordionContentId(panel.templateId)"\n [attr.aria-hidden]="!panel.open"\n [attr.aria-labelledby]="getAccordionHeaderId(panel.templateId)"\n >\n <div\n *ngIf="panel.open"\n @toggle\n (@toggle.done)="collapsePanelOnAnimationDone(panel)"\n class="clr-accordion-content"\n >\n <div class="clr-accordion-inner-content">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n',host:{"[class.clr-accordion-panel]":"true"},changeDetection:t.ChangeDetectionStrategy.OnPush,animations:qa,providers:[Qe,K]}]}],Ja.ctorParameters=function(){return[{type:H},{type:Ka},{type:Qe},{type:String,decorators:[{type:t.Inject,args:[W]}]}]},Ja.propDecorators={disabled:[{type:t.Input,args:["clrAccordionPanelDisabled"]}],panelOpen:[{type:t.Input,args:["clrAccordionPanelOpen"]}],panelOpenChange:[{type:t.Output,args:["clrAccordionPanelOpenChange"]}],accordionDescription:[{type:t.ContentChildren,args:[$a]}]};var Qa=function(){};Qa.decorators=[{type:t.Component,args:[{selector:"clr-accordion-title, clr-step-title",template:"<ng-content></ng-content>",host:{"[class.clr-accordion-title]":"true"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}];var ec=function(){function e(e){this.accordionService=e,this.multiPanel=!1,this.subscriptions=[]}return e.prototype.ngOnInit=function(){this.setAccordionStrategy()},e.prototype.ngOnChanges=function(e){e.multiPanel.currentValue!==e.multiPanel.previousValue&&this.setAccordionStrategy()},e.prototype.ngAfterViewInit=function(){this.subscriptions.push(this.listenForDOMChanges())},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.setAccordionStrategy=function(){var e=this.multiPanel?Ba.Multi:Ba.Default;this.accordionService.setStrategy(e)},e.prototype.listenForDOMChanges=function(){var e=this;return this.panels.changes.pipe(o.startWith(this.panels)).subscribe((function(t){return e.accordionService.updatePanelOrder(t.toArray().map((function(e){return e.id})))}))},e}();ec.decorators=[{type:t.Component,args:[{selector:"clr-accordion",template:"<ng-content></ng-content>",host:{"[class.clr-accordion]":"true"},providers:[Ka],changeDetection:t.ChangeDetectionStrategy.OnPush}]}],ec.ctorParameters=function(){return[{type:Ka}]},ec.propDecorators={multiPanel:[{type:t.Input,args:["clrAccordionMultiPanel"]}],panels:[{type:t.ContentChildren,args:[Ja,{descendants:!0}]}]};var tc=function(){};tc.decorators=[{type:t.Component,args:[{selector:"clr-accordion-content, clr-step-content",template:"<ng-content></ng-content>",changeDetection:t.ChangeDetectionStrategy.OnPush}]}];var nc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t}(zr);nc.decorators=[{type:t.Directive,args:[{selector:"clr-accordion"}]}];var rc=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-accordion-panel should only be used inside of clr-accordion");return(i=e.call(this,t,n)||this).expand=r,i}return oe(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.expand.expanded},enumerable:!1,configurable:!0}),t}(Hr);rc.decorators=[{type:t.Directive,args:[{selector:"clr-accordion-panel"}]}],rc.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:nc,decorators:[{type:t.Optional}]},{type:Qe}]};var ic=[ec,Ja,Qa,$a,tc,rc,nc],oc=function(){n.ClarityIcons.addIcons(n.angleIcon,n.exclamationCircleIcon,n.checkCircleIcon)};oc.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y],declarations:ce(ic),exports:ce(ic)}]}],oc.ctorParameters=function(){return[]};var sc=function(e){function t(){var t=e.apply(this,ce(arguments))||this;return t.stepperModelInitialize=!1,t}return oe(t,e),Object.defineProperty(t.prototype,"allPanelsCompleted",{get:function(){return this.panels.length&&0===this.getNumberOfIncompletePanels()&&0===this.getNumberOfOpenPanels()},enumerable:!1,configurable:!0}),t.prototype.addPanel=function(t,n){void 0===n&&(n=!1),e.prototype.addPanel.call(this,t,n),this._panels[t].disabled=!0},t.prototype.updatePanelOrder=function(t){e.prototype.updatePanelOrder.call(this,t),!1===this.stepperModelInitialize&&this.openFirstPanel()},t.prototype.togglePanel=function(e){this._panels[e].status===za.Complete&&(this._panels[e].open=!this._panels[e].open)},t.prototype.navigateToNextPanel=function(e,t){void 0===t&&(t=!0),t?(this.completePanel(e),this.openNextPanel(this._panels[e].id)):this.setPanelError(e)},t.prototype.overrideInitialPanel=function(e){var t=this;this.panels.filter((function(){return void 0!==t._panels[e]})).forEach((function(n){n.index<t._panels[e].index?t.completePanel(n.id):n.id===e?t._panels[n.id].open=!0:t._panels[n.id].open=!1}))},t.prototype.setPanelsWithErrors=function(e){var t=this;e.forEach((function(e){return t.setPanelError(e)}))},t.prototype.resetPanels=function(){var e=this;this.stepperModelInitialize=!1,this.panels.forEach((function(t){return e.resetPanel(t.id)})),this.openFirstPanel()},t.prototype.getNextPanel=function(e){var t=this;return this.panels.find((function(n){return n.index===t._panels[e].index+1}))},t.prototype.resetAllFuturePanels=function(e){var t=this;this.panels.filter((function(n){return n.index>=t._panels[e].index})).forEach((function(e){return t.resetPanel(e.id)}))},t.prototype.resetPanel=function(e){this._panels[e].status=za.Inactive,this._panels[e].open=!1,this._panels[e].disabled=!0},t.prototype.openFirstPanel=function(){var e=this.getFirstPanel();e&&(this._panels[e.id].open=!0,this._panels[e.id].disabled=!0,this.stepperModelInitialize=!0)},t.prototype.completePanel=function(e){this._panels[e].status=za.Complete,this._panels[e].disabled=!1,this._panels[e].open=!1},t.prototype.openNextPanel=function(e){var t=this.getNextPanel(e);t&&(this.resetAllFuturePanels(t.id),this._panels[t.id].open=!0,this._panels[t.id].disabled=!0)},t.prototype.setPanelError=function(e){this.resetAllFuturePanels(e),this._panels[e].open=!0,this._panels[e].status=za.Error},t.prototype.getFirstPanel=function(){return this.panels.find((function(e){return 0===e.index}))},t.prototype.getNumberOfIncompletePanels=function(){return this.panels.reduce((function(e,t){return t.status!==za.Complete?e+1:e}),0)},t.prototype.getNumberOfOpenPanels=function(){return this.panels.reduce((function(e,t){return!1!==t.open?e+1:e}),0)},t}(Ya),ac=function(e){function t(){var t=e.apply(this,ce(arguments))||this;return t.panelsCompleted=t.getAllCompletedPanelChanges(),t.accordion=new sc,t._activeStepChanges=new i.Subject,t.activeStep=t._activeStepChanges.asObservable(),t}return oe(t,e),t.prototype.resetPanels=function(){this.accordion.resetPanels(),this.emitUpdatedPanels()},t.prototype.setPanelsWithErrors=function(e){this.accordion.setPanelsWithErrors(e),this.emitUpdatedPanels()},t.prototype.navigateToNextPanel=function(e,t){void 0===t&&(t=!0),this.accordion.navigateToNextPanel(e,t),this.updateNextStep(e,t),this.emitUpdatedPanels()},t.prototype.overrideInitialPanel=function(e){this.accordion.overrideInitialPanel(e),this.emitUpdatedPanels()},t.prototype.updateNextStep=function(e,t){var n=this.accordion.getNextPanel(e);t&&n?this._activeStepChanges.next(n.id):t&&this._activeStepChanges.next(e)},t.prototype.getAllCompletedPanelChanges=function(){var e=this;return this._panelsChanges.pipe(o.map((function(){return e.accordion.allPanelsCompleted})),o.distinctUntilChanged())},t}(Ka);function cc(e){Object.keys(e.controls).forEach((function(t){var n=e.get(t);n instanceof a.FormControl?(n.markAsTouched(),n.markAsDirty(),n.updateValueAndValidity()):n instanceof a.FormGroup&&cc(n)}))}ac.decorators=[{type:t.Injectable}];var lc,pc=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,n,o,s,a)||this;return c.platformId=t,c.commonStrings=n,c.formGroupName=r,c.ngModelGroup=i,c.stepperService=o,c.isAccordion=!1,c.subscriptions=[],c}return oe(t,e),Object.defineProperty(t.prototype,"formGroup",{get:function(){return this.formGroupName?this.formGroupName.control:this.ngModelGroup.control},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.formGroupName?this.formGroupName.name.toString():this.ngModelGroup.name},set:function(e){},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.panel=this.panel.pipe(o.tap((function(e){return t.triggerAllFormControlValidationIfError(e)}))),this.stepperService.disablePanel(this.id,!0),this.listenToFocusChanges(),this.formGroup&&this.subscriptions.push(this.formGroup.statusChanges.pipe(o.pairwise()).subscribe((function(e){var n=ae(e,2),r=n[0],i=n[1];"VALID"===r&&"INVALID"===i&&t.stepperService.navigateToNextPanel(t.id,t.formGroup.valid)})))},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},t.prototype.listenToFocusChanges=function(){var e=this;this.subscriptions.push(this.stepperService.activeStep.pipe(o.filter((function(t){return r.isPlatformBrowser(e.platformId)&&t===e.id}))).subscribe((function(){return e.headerButton.nativeElement.focus()})))},t.prototype.triggerAllFormControlValidationIfError=function(e){e.status===za.Error&&cc(this.formGroup)},t}(Ja);pc.decorators=[{type:t.Component,args:[{selector:"clr-stepper-panel",template:'<ng-container *ngIf="panel | async; let panel">\n <div *ngIf="panel.status !== AccordionStatus.Inactive" aria-live="assertive" class="clr-sr-only">\n <ng-container *ngIf="panel.status === AccordionStatus.Error">{{commonStrings.keys.danger}}</ng-container>\n </div>\n\n <div role="group" [ngClass]="getPanelStateClasses(panel)">\n <div class="clr-accordion-header">\n <button\n type="button"\n class="clr-accordion-header-button"\n (click)="togglePanel()"\n [id]="getAccordionHeaderId(panel.templateId)"\n [disabled]="isAccordion && panel.disabled"\n [attr.aria-disabled]="!isAccordion && panel.disabled"\n [attr.aria-controls]="getAccordionContentId(panel.templateId)"\n [attr.aria-expanded]="panel.open"\n [class.clr-accordion-header-has-description]="(accordionDescription.changes | async)?.length || accordionDescription.length"\n #headerButton\n >\n <span class="clr-sr-only">\n <ng-container *ngIf="panel.status === AccordionStatus.Error">{{commonStrings.keys.danger}}</ng-container>\n <ng-container *ngIf="panel.status === AccordionStatus.Complete">{{commonStrings.keys.success}}</ng-container>\n </span>\n <span class="clr-accordion-status">\n <cds-icon shape="angle" direction="right" class="clr-accordion-angle"></cds-icon>\n <span class="clr-accordion-number"></span>\n <cds-icon status="danger" shape="exclamation-circle" class="clr-accordion-error-icon"></cds-icon>\n <cds-icon status="success" shape="check-circle" class="clr-accordion-complete-icon"></cds-icon>\n </span>\n <ng-content select="clr-accordion-title, clr-step-title"></ng-content>\n <ng-content select="clr-accordion-description, clr-step-description"></ng-content>\n </button>\n </div>\n <div\n @skipInitialRender\n role="region"\n [id]="getAccordionContentId(panel.templateId)"\n [attr.aria-hidden]="!panel.open"\n [attr.aria-labelledby]="getAccordionHeaderId(panel.templateId)"\n >\n <div\n *ngIf="panel.open"\n @toggle\n (@toggle.done)="collapsePanelOnAnimationDone(panel)"\n class="clr-accordion-content"\n >\n <div class="clr-accordion-inner-content">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n',host:{"[class.clr-accordion-panel]":"true"},changeDetection:t.ChangeDetectionStrategy.OnPush,animations:Xa,providers:[Qe,K]}]}],pc.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:H},{type:a.FormGroupName,decorators:[{type:t.Optional}]},{type:a.NgModelGroup,decorators:[{type:t.Optional}]},{type:ac},{type:Qe},{type:String,decorators:[{type:t.Inject,args:[W]}]}]},pc.propDecorators={headerButton:[{type:t.ViewChild,args:["headerButton"]}]},e.ClrStepButtonType=void 0,(lc=e.ClrStepButtonType||(e.ClrStepButtonType={})).Next="next",lc.Submit="submit";var uc=function(){function t(t,n){this.clrStep=t,this.stepperService=n,this.type=e.ClrStepButtonType.Next,this.submitButton=!1}return t.prototype.ngOnInit=function(){this.submitButton=this.type===e.ClrStepButtonType.Submit},t.prototype.navigateToNextPanel=function(){this.stepperService.navigateToNextPanel(this.clrStep.id,this.clrStep.formGroup.valid)},t}();uc.decorators=[{type:t.Directive,args:[{selector:"[clrStepButton]",host:{"[class.clr-step-button]":"true","[class.btn]":"true","[type]":"'button'"}}]}],uc.ctorParameters=function(){return[{type:pc},{type:ac}]},uc.propDecorators={type:[{type:t.Input,args:["clrStepButton"]}],submitButton:[{type:t.HostBinding,args:["class.btn-primary"]}],navigateToNextPanel:[{type:t.HostListener,args:["click"]}]};var dc=function(){function e(e,t,n){this.formGroup=e,this.ngForm=t,this.stepperService=n,this.subscriptions=[]}return e.prototype.ngOnInit=function(){if(!this.formGroup&&!this.ngForm)throw new Error("To use stepper a Reactive or Template Form is required.");this.form=this.formGroup?this.formGroup:this.ngForm,this.subscriptions.push(this.listenForPanelsCompleted()),this.subscriptions.push(this.listenForFormResetChanges())},e.prototype.ngOnChanges=function(e){e.initialPanel.currentValue!==e.initialPanel.previousValue&&this.stepperService.overrideInitialPanel(this.initialPanel)},e.prototype.ngAfterViewInit=function(){this.subscriptions.push(this.listenForDOMChanges())},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.listenForFormResetChanges=function(){var e=this;return this.form.statusChanges.pipe(o.filter((function(){return e.form.pristine}))).subscribe((function(){return e.stepperService.resetPanels()}))},e.prototype.listenForPanelsCompleted=function(){var e=this;return this.stepperService.panelsCompleted.subscribe((function(t){t&&e.form.valid?e.form.ngSubmit.emit():!e.form.valid&&e.form.touched&&e.setPanelsWithFormErrors()}))},e.prototype.setPanelsWithFormErrors=function(){var e=this.panels.reduce((function(e,t){return t.formGroup.invalid?ce(e,[t.id]):e}),[]);this.stepperService.setPanelsWithErrors(e)},e.prototype.listenForDOMChanges=function(){var e=this;return this.panels.changes.pipe(o.startWith(this.panels)).subscribe((function(t){e.stepperService.updatePanelOrder(t.toArray().map((function(e){return e.id}))),e.initialPanel&&e.stepperService.overrideInitialPanel(e.initialPanel)}))},e}();dc.decorators=[{type:t.Component,args:[{selector:"form[clrStepper]",template:"<ng-content></ng-content>",host:{"[class.clr-accordion]":"true","[class.clr-stepper-forms]":"true"},providers:[ac,{provide:Ka,useExisting:ac}],changeDetection:t.ChangeDetectionStrategy.OnPush}]}],dc.ctorParameters=function(){return[{type:a.FormGroupDirective,decorators:[{type:t.Optional}]},{type:a.NgForm,decorators:[{type:t.Optional}]},{type:ac}]},dc.propDecorators={initialPanel:[{type:t.Input,args:["clrInitialStep"]}],panels:[{type:t.ContentChildren,args:[pc,{descendants:!0}]}]};var hc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t}(zr);hc.decorators=[{type:t.Directive,args:[{selector:"form[clrStepper]"}]}];var gc=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-stepper-panel should only be used inside of clrStepper");return(i=e.call(this,t,n)||this).expand=r,i}return oe(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.expand.expanded},enumerable:!1,configurable:!0}),t}(Hr);gc.decorators=[{type:t.Directive,args:[{selector:"clr-stepper-panel, [clrStepButton]"}]}],gc.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:hc,decorators:[{type:t.Optional}]},{type:Qe}]};var fc=[dc,uc,pc,gc,hc],yc=function(){};yc.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,oc],declarations:ce(fc),exports:ce(fc,[oc])}]}];var bc=function(){function e(){this.externalId="",this.max=100,this._value=0}return Object.defineProperty(e.prototype,"id",{get:function(){return this._ID},set:function(e){this._ID=e,this.externalId=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progressClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labeledClass",{get:function(){return this._labeled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrLabeled",{set:function(e){this._labeled=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fadeClass",{get:function(){return this._fade},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrFade",{set:function(e){this._fade=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopClass",{get:function(){return this._loop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrLoop",{set:function(e){this._loop=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"successClass",{get:function(){return this._success},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrSuccess",{set:function(e){this._success=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dangerClass",{get:function(){return this._danger},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDanger",{set:function(e){this._danger=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flashClass",{get:function(){return this._flash},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrFlash",{set:function(e){this._flash=Lt(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flashDangerClass",{get:function(){return this._flashDanger},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrFlashDanger",{set:function(e){this._flashDanger=Lt(e)},enumerable:!1,configurable:!0}),e.prototype.displayStringValue=function(){return this._labeled},Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.displayval?this.displayval:(this.value||0)+"%"},enumerable:!1,configurable:!0}),e}();bc.decorators=[{type:t.Component,args:[{selector:"clr-progress-bar",template:'\n <progress [id]="id" [attr.max]="max" [attr.value]="value" [attr.data-displayval]="displayValue"></progress>\n <span *ngIf="displayStringValue()">{{ displayValue }}</span>\n '}]}],bc.propDecorators={externalId:[{type:t.HostBinding,args:["attr.id"]}],id:[{type:t.Input}],max:[{type:t.Input,args:["clrMax"]}],displayval:[{type:t.Input,args:["clrDisplayval"]}],value:[{type:t.Input,args:["clrValue"]}],progressClass:[{type:t.HostBinding,args:["class.progress"]}],labeledClass:[{type:t.HostBinding,args:["class.labeled"]}],clrLabeled:[{type:t.Input,args:["clrLabeled"]}],fadeClass:[{type:t.HostBinding,args:["class.progress-fade"]}],clrFade:[{type:t.Input,args:["clrFade"]}],loopClass:[{type:t.HostBinding,args:["class.loop"]}],clrLoop:[{type:t.Input,args:["clrLoop"]}],successClass:[{type:t.HostBinding,args:["class.success"]}],clrSuccess:[{type:t.Input,args:["clrSuccess"]}],dangerClass:[{type:t.HostBinding,args:["class.danger"]}],clrDanger:[{type:t.Input,args:["clrDanger"]}],flashClass:[{type:t.HostBinding,args:["class.flash"]}],clrFlash:[{type:t.Input,args:["clrFlash"]}],flashDangerClass:[{type:t.HostBinding,args:["class.flash-danger"]}],clrFlashDanger:[{type:t.Input,args:["clrFlashDanger"]}]};var mc,vc,Cc=[bc],Sc=function(){};Sc.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Cc],exports:[Cc]}]}],e.ClrTimelineLayout=void 0,(mc=e.ClrTimelineLayout||(e.ClrTimelineLayout={})).HORIZONTAL="horizontal",mc.VERTICAL="vertical",e.ClrTimelineStepState=void 0,(vc=e.ClrTimelineStepState||(e.ClrTimelineStepState={})).NOT_STARTED="not-started",vc.CURRENT="current",vc.PROCESSING="processing",vc.SUCCESS="success",vc.ERROR="error";var Ic=function(){function t(t){this.attributeMap=new Map,this.attributeMap.set(e.ClrTimelineStepState.NOT_STARTED,{iconShape:"circle",iconStatus:null,ariaLabel:t.keys.timelineStepNotStarted}),this.attributeMap.set(e.ClrTimelineStepState.CURRENT,{iconShape:"dot-circle",iconStatus:"info",ariaLabel:t.keys.timelineStepCurrent}),this.attributeMap.set(e.ClrTimelineStepState.PROCESSING,{iconShape:void 0,iconStatus:null,ariaLabel:t.keys.timelineStepProcessing}),this.attributeMap.set(e.ClrTimelineStepState.SUCCESS,{iconShape:"success-standard",iconStatus:"success",ariaLabel:t.keys.timelineStepSuccess}),this.attributeMap.set(e.ClrTimelineStepState.ERROR,{iconShape:"error-standard",iconStatus:"danger",ariaLabel:t.keys.timelineStepError})}return t.prototype.getAriaLabel=function(e){return this.attributeMap.get(e).ariaLabel},t.prototype.getIconShape=function(e){return this.attributeMap.get(e).iconShape},t.prototype.getIconStatus=function(e){return this.attributeMap.get(e).iconStatus},t}();Ic.decorators=[{type:t.Injectable}],Ic.ctorParameters=function(){return[{type:H}]};var Oc=function(){function t(){this.layout=e.ClrTimelineLayout.HORIZONTAL}return Object.defineProperty(t.prototype,"isVertical",{get:function(){return this.layout===e.ClrTimelineLayout.VERTICAL},enumerable:!1,configurable:!0}),t}();Oc.decorators=[{type:t.Component,args:[{selector:"clr-timeline",template:" <ng-content></ng-content> ",host:{"[class.clr-timeline]":"true"},providers:[Ic]}]}],Oc.propDecorators={layout:[{type:t.Input,args:["clrLayout"]}],isVertical:[{type:t.HostBinding,args:["class.clr-timeline-vertical"]}]};var Ec=function(){};Ec.decorators=[{type:t.Component,args:[{selector:"clr-timeline-step-title",template:" <ng-content></ng-content> ",host:{"[class.clr-timeline-step-title]":"true","[attr.aria-hidden]":"true"}}]}];var wc=function(){function t(t,n){this.iconAttributeService=t,this.platformId=n,this.state=e.ClrTimelineStepState.NOT_STARTED}return t.prototype.ngAfterContentInit=function(){this.stepTitle&&r.isPlatformBrowser(this.platformId)&&(this.stepTitleText=this.stepTitle.nativeElement.innerText)},Object.defineProperty(t.prototype,"iconAriaCurrent",{get:function(){return this.state===e.ClrTimelineStepState.CURRENT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconAriaLabel",{get:function(){return this.iconAttributeService.getAriaLabel(this.state)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconShape",{get:function(){return this.iconAttributeService.getIconShape(this.state)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconStatus",{get:function(){return this.iconAttributeService.getIconStatus(this.state)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProcessing",{get:function(){return this.state===e.ClrTimelineStepState.PROCESSING},enumerable:!1,configurable:!0}),t}();wc.decorators=[{type:t.Component,args:[{selector:"clr-timeline-step",template:'\n <ng-content select="clr-timeline-step-header"></ng-content>\n <span class="clr-sr-only">{{ stepTitleText }}</span>\n <ng-container *ngIf="!isProcessing; else processing">\n <cds-icon\n [attr.status]="iconStatus"\n [attr.shape]="iconShape"\n [attr.aria-label]="iconAriaLabel"\n [attr.aria-current]="iconAriaCurrent"\n >\n </cds-icon>\n </ng-container>\n <div class="clr-timeline-step-body">\n <ng-content select="clr-timeline-step-title"></ng-content>\n <ng-content select="clr-timeline-step-description"></ng-content>\n </div>\n\n <ng-template #processing>\n <clr-spinner clrMedium [attr.aria-label]="iconAriaLabel"></clr-spinner>\n </ng-template>\n ',host:{"[class.clr-timeline-step]":"true"}}]}],wc.ctorParameters=function(){return[{type:Ic},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},wc.propDecorators={state:[{type:t.Input,args:["clrState"]}],stepTitle:[{type:t.ContentChild,args:[Ec,{read:t.ElementRef}]}]};var _c=function(){};_c.decorators=[{type:t.Component,args:[{selector:"clr-timeline-step-description",template:" <ng-content></ng-content> ",host:{"[class.clr-timeline-step-description]":"true"}}]}];var Pc=function(){};Pc.decorators=[{type:t.Component,args:[{selector:"clr-timeline-step-header",template:" <ng-content></ng-content> ",host:{"[class.clr-timeline-step-header]":"true"}}]}];var Dc=[Oc,wc,_c,Pc,Ec],Tc=function(){n.ClarityIcons.addIcons(n.circleIcon,n.dotCircleIcon,n.errorStandardIcon,n.successStandardIcon)};Tc.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,y,Un],exports:ce(Dc,[y,Un]),declarations:[Dc]}]}],Tc.ctorParameters=function(){return[]};var xc=function(){};xc.decorators=[{type:t.NgModule,args:[{exports:[ls,Ao,y,sa,er,nt,st,_r,te,Jn,ta,Ca,Ga,mr,yc,Un,Sc,j,Tc]}]}];var Ac;e.ClrAriaLivePoliteness=void 0,(Ac=e.ClrAriaLivePoliteness||(e.ClrAriaLivePoliteness={})).off="off",Ac.polite="polite",Ac.assertive="assertive";var kc=function(){function t(e,t,n){this.ngZone=e,this.platformId=n,this._id="clr-aria-live-element-"+U(),this.document=t}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.announce=function(t,n){var i=this;void 0===n&&(n=e.ClrAriaLivePoliteness.polite),n!==e.ClrAriaLivePoliteness.off&&(!this.ariaLiveElement&&r.isPlatformBrowser(this.platformId)&&(this.ariaLiveElement=this.createContainer()),(t="string"!=typeof t&&r.isPlatformBrowser(this.platformId)?t.textContent:t)&&(this.ariaLiveElement.setAttribute("aria-live",n),this.ngZone.runOutsideAngular((function(){clearTimeout(i.previousTimeout),i.previousTimeout=setTimeout((function(){i.ariaLiveElement.textContent=t}),100)}))))},t.prototype.ngOnDestroy=function(){clearTimeout(this.previousTimeout),r.isPlatformBrowser(this.platformId)&&this.ariaLiveElement&&(this.document.body.removeChild(this.ariaLiveElement),this.ariaLiveElement=null)},t.prototype.createContainer=function(){var t=this.document.createElement("div");return t.setAttribute("id",this.id),t.classList.add("clr-sr-only"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live",e.ClrAriaLivePoliteness.polite),this.document.body.appendChild(t),t},t}();kc.ɵprov=l.ɵɵdefineInjectable({factory:function(){return new kc(l.ɵɵinject(l.NgZone),l.ɵɵinject(p.DOCUMENT),l.ɵɵinject(l.PLATFORM_ID))},token:kc,providedIn:"root"}),kc.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],kc.ctorParameters=function(){return[{type:t.NgZone},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},e.CLR_ALERT_DIRECTIVES=as,e.CLR_BUTTON_GROUP_DIRECTIVES=X,e.CLR_DATAGRID_DIRECTIVES=ro,e.CLR_DATEPICKER_DIRECTIVES=Ht,e.CLR_DRAG_AND_DROP_DIRECTIVES=br,e.CLR_DROPDOWN_DIRECTIVES=$o,e.CLR_ICON_DIRECTIVES=f,e.CLR_LAYOUT_DIRECTIVES=gs,e.CLR_LOADING_BUTTON_DIRECTIVES=Q,e.CLR_LOADING_DIRECTIVES=Qn,e.CLR_MENU_POSITIONS=["bottom-left","bottom-right","top-left","top-right","left-bottom","left-top","right-bottom","right-top"],e.CLR_MODAL_DIRECTIVES=oa,e.CLR_NAVIGATION_DIRECTIVES=Cs,e.CLR_PROGRESS_BAR_DIRECTIVES=Cc,e.CLR_SIGNPOST_DIRECTIVES=pa,e.CLR_SPINNER_DIRECTIVES=Wn,e.CLR_STACK_VIEW_DIRECTIVES=fo,e.CLR_TABS_DIRECTIVES=Bs,e.CLR_TOOLTIP_DIRECTIVES=ma,e.CLR_TREE_VIEW_DIRECTIVES=To,e.CLR_VERTICAL_NAV_DIRECTIVES=Qs,e.CLR_WIZARD_DIRECTIVES=Ha,e.CONDITIONAL_DIRECTIVES=tt,e.CUSTOM_BUTTON_TYPES=ja,e.CdsIconCustomTag=d,e.ClarityModule=xc,e.ClrAbstractContainer=xe,e.ClrAccordion=ec,e.ClrAccordionContent=tc,e.ClrAccordionDescription=$a,e.ClrAccordionModule=oc,e.ClrAccordionPanel=Ja,e.ClrAccordionTitle=Qa,e.ClrAlert=ns,e.ClrAlertItem=rs,e.ClrAlertModule=cs,e.ClrAlertText=ss,e.ClrAlerts=is,e.ClrAlertsPager=os,e.ClrAriaLiveService=kc,e.ClrButton=B,e.ClrButtonGroup=q,e.ClrButtonGroupModule=$,e.ClrButtonModule=te,e.ClrCalendar=Dt,e.ClrCheckbox=Ge,e.ClrCheckboxContainer=We,e.ClrCheckboxModule=Ue,e.ClrCheckboxWrapper=He,e.ClrCombobox=Bn,e.ClrComboboxContainer=jn,e.ClrComboboxModule=$n,e.ClrCommonFormsModule=Me,e.ClrCommonStringsService=H,e.ClrConditionalModule=nt,e.ClrControl=ke,e.ClrControlContainer=Ae,e.ClrControlError=De,e.ClrControlHelper=Te,e.ClrControlSuccess=Pe,e.ClrDataModule=Ao,e.ClrDatagrid=_i,e.ClrDatagridActionBar=Pi,e.ClrDatagridActionOverflow=Ti,e.ClrDatagridCell=pi,e.ClrDatagridColumn=Qr,e.ClrDatagridColumnSeparator=Ai,e.ClrDatagridColumnToggle=Li,e.ClrDatagridColumnToggleButton=Ri,e.ClrDatagridColumnToggleTitle=ki,e.ClrDatagridDetail=Fi,e.ClrDatagridDetailBody=Vi,e.ClrDatagridDetailHeader=Ni,e.ClrDatagridFilter=Rr,e.ClrDatagridFooter=Bi,e.ClrDatagridHideableColumn=Wi,e.ClrDatagridItems=ti,e.ClrDatagridItemsTrackBy=Ui,e.ClrDatagridModule=io,e.ClrDatagridPageSize=Yi,e.ClrDatagridPagination=Ki,e.ClrDatagridPlaceholder=ni,e.ClrDatagridRow=Ci,e.ClrDatagridRowDetail=Zi,e.ClrDatalist=bn,e.ClrDatalistContainer=fn,e.ClrDatalistInput=yn,e.ClrDatalistModule=mn,e.ClrDateContainer=Rt,e.ClrDateInput=jt,e.ClrDatepickerModule=Gt,e.ClrDatepickerViewManager=Nt,e.ClrDay=Ft,e.ClrDaypicker=Mt,e.ClrDragAndDropModule=mr,e.ClrDragEvent=sr,e.ClrDragHandle=yr,e.ClrDraggable=gr,e.ClrDraggableGhost=pr,e.ClrDropdown=Vo,e.ClrDropdownItem=Go,e.ClrDropdownMenu=qo,e.ClrDropdownModule=Jo,e.ClrDropdownTrigger=Xo,e.ClrDroppable=fr,e.ClrEmphasisModule=ls,e.ClrExpandableAnimation=vr,e.ClrFocusOnViewInit=Er,e.ClrFocusOnViewInitModule=_r,e.ClrForm=Re,e.ClrFormsModule=Jn,e.ClrHeader=ms,e.ClrIconCustomTag=u,e.ClrIconModule=y,e.ClrIfActive=$e,e.ClrIfDetail=Mi,e.ClrIfDragged=ur,e.ClrIfError=je,e.ClrIfExpanded=et,e.ClrIfOpen=Je,e.ClrIfSuccess=Ne,e.ClrInput=Ut,e.ClrInputContainer=Wt,e.ClrInputModule=Yt,e.ClrLabel=_e,e.ClrLayout=Fe,e.ClrLayoutModule=ta,e.ClrLoading=M,e.ClrLoadingButton=J,e.ClrLoadingButtonModule=ee,e.ClrLoadingModule=er,e.ClrMainContainer=hs,e.ClrMainContainerModule=fs,e.ClrModal=ra,e.ClrModalBody=ia,e.ClrModalModule=sa,e.ClrMonthpicker=Vt,e.ClrNavLevel=vs,e.ClrNavigationModule=Ss,e.ClrOption=Tn,e.ClrOptionItems=zn,e.ClrOptionSelected=Nn,e.ClrOptions=Rn,e.ClrPassword=$t,e.ClrPasswordContainer=Xt,e.ClrPasswordModule=Jt,e.ClrPopoverAnchor=L,e.ClrPopoverContent=A,e.ClrPopoverEventsService=I,e.ClrPopoverModule=Ca,e.ClrPopoverPositionService=x,e.ClrPopoverToggleService=v,e.ClrProgressBar=bc,e.ClrProgressBarModule=Sc,e.ClrRadio=en,e.ClrRadioContainer=tn,e.ClrRadioModule=nn,e.ClrRadioWrapper=Qt,e.ClrRange=un,e.ClrRangeContainer=pn,e.ClrRangeModule=dn,e.ClrRecursiveForOf=Po,e.ClrSelect=on,e.ClrSelectContainer=rn,e.ClrSelectModule=sn,e.ClrSignpost=si,e.ClrSignpostContent=la,e.ClrSignpostModule=ua,e.ClrSignpostTrigger=oi,e.ClrSpinner=Hn,e.ClrSpinnerModule=Un,e.ClrStackBlock=oo,e.ClrStackContentInput=ho,e.ClrStackHeader=ao,e.ClrStackInput=lo,e.ClrStackSelect=po,e.ClrStackView=so,e.ClrStackViewCustomTags=uo,e.ClrStackViewModule=yo,e.ClrStepButton=uc,e.ClrStepper=dc,e.ClrStepperModule=yc,e.ClrStepperPanel=pc,e.ClrTab=Fs,e.ClrTabContent=xs,e.ClrTabLink=Ns,e.ClrTabOverflowContent=Ms,e.ClrTabs=Vs,e.ClrTabsModule=zs,e.ClrTextarea=cn,e.ClrTextareaContainer=an,e.ClrTextareaModule=ln,e.ClrTimeline=Oc,e.ClrTimelineModule=Tc,e.ClrTimelineStep=wc,e.ClrTimelineStepDescription=_c,e.ClrTimelineStepHeader=Pc,e.ClrTimelineStepTitle=Ec,e.ClrTooltip=ha,e.ClrTooltipContent=ya,e.ClrTooltipModule=va,e.ClrTooltipTrigger=ba,e.ClrTree=wo,e.ClrTreeNode=Eo,e.ClrTreeNodeLink=Oo,e.ClrTreeViewModule=xo,e.ClrVerticalNav=Us,e.ClrVerticalNavGroup=qs,e.ClrVerticalNavGroupChildren=Xs,e.ClrVerticalNavIcon=$s,e.ClrVerticalNavLink=Js,e.ClrVerticalNavModule=ea,e.ClrWizard=Ra,e.ClrWizardButton=Na,e.ClrWizardCustomTags=Fa,e.ClrWizardHeaderAction=_a,e.ClrWizardModule=Ga,e.ClrWizardPage=ka,e.ClrWizardPageButtons=Pa,e.ClrWizardPageHeaderActions=Da,e.ClrWizardPageNavTitle=Ta,e.ClrWizardPageTitle=xa,e.ClrWizardStepnav=Ma,e.ClrWizardStepnavItem=Va,e.ClrYearpicker=zt,e.DEFAULT_BUTTON_TYPES=La,e.DatagridNumericFilter=Br,e.DatagridPropertyComparator=Xr,e.DatagridPropertyNumericFilter=Mr,e.DatagridPropertyStringFilter=jr,e.DatagridStringFilter=Fr,e.EXPANDABLE_ANIMATION_DIRECTIVES=Cr,e.FOCUS_ON_VIEW_INIT=Ir,e.FOCUS_ON_VIEW_INIT_DIRECTIVES=wr,e.IS_TOGGLE=Ve,e.IS_TOGGLE_PROVIDER=ze,e.LoadingListener=F,e.MainContainerWillyWonka=ys,e.NavDetectionOompaLoompa=bs,e.TOGGLE_SERVICE=Kt,e.TOGGLE_SERVICE_PROVIDER=qt,e.ToggleServiceFactory=Zt,e.WrappedFormControl=we,e.collapse=function(){return[s.state("true",s.style({height:0,"overflow-y":"hidden"})),s.transition("true => false",[s.animate(Za,s.style({height:"*","overflow-y":"hidden"}))]),s.transition("false => true",[s.style({height:"*","overflow-y":"hidden"}),s.animate(Za)])]},e.commonStringsDefault=z,e.fade=function(e){return void 0===e&&(e=1),[s.transition("void => *",[s.style({opacity:0}),s.animate(Za,s.style({opacity:e}))]),s.transition("* => void",[s.animate(Za,s.style({opacity:0}))])]},e.fadeSlide=function(e){var t=null;if("up"===e)t="translate(0, 25%)";else if("down"===e)t="translate(0, -25%)";else if("left"===e)t="translate(25%, 0)";else{if("right"!==e)throw new Error("Unknown direction "+e+" for slide animation.");t="translate(-25%, 0)"}return[s.transition("void => *",[s.style({opacity:0,transform:t}),s.animate(Za)]),s.transition("* => void",[s.animate(Za,s.style({opacity:0,transform:t}))])]},e.isToggleFactory=Be,e.slide=function(e){var t=null;if("up"===e)t="translate(0, 25%)";else if("down"===e)t="translate(0, -25%)";else if("left"===e)t="translate(25%, 0)";else{if("right"!==e)throw new Error("Unknown direction "+e+" for slide animation.");t="translate(-25%, 0)"}return[s.transition("void => *",[s.style({transform:t}),s.animate(Za)]),s.transition("* => void",[s.animate(Za,s.style({transform:t}))])]},e.ÇlrAccordionOompaLoompa=rc,e.ÇlrAccordionWillyWonka=nc,e.ÇlrActionableOompaLoompa=Ur,e.ÇlrActiveOompaLoompa=Ps,e.ÇlrClrFocusTrapModule=st,e.ÇlrClrPopoverCloseButton=R,e.ÇlrClrPopoverModuleNext=j,e.ÇlrClrPopoverOpenCloseButton=k,e.ÇlrDatagridCellRenderer=$i,e.ÇlrDatagridDetailRegisterer=ji,e.ÇlrDatagridHeaderRenderer=Ji,e.ÇlrDatagridMainRenderer=no,e.ÇlrDatagridRowRenderer=eo,e.ÇlrDatagridWillyWonka=Wr,e.ÇlrExpandableOompaLoompa=Zr,e.ÇlrFocusTrapDirective=it,e.ÇlrFocusTrapTracker=rt,e.ÇlrStepperOompaLoompa=gc,e.ÇlrStepperWillyWonka=hc,e.ÇlrTabsWillyWonka=ws,e.ÇlrWrappedCell=ai,e.ÇlrWrappedColumn=Jr,e.ÇlrWrappedRow=yi,e.ɵa=to,e.ɵb=fe,e.ɵba=es,e.ɵbb=ts,e.ɵbc=ue,e.ɵbd=he,e.ɵbe=Ee,e.ɵbf=Ce,e.ɵbg=Le,e.ɵbh=ye,e.ɵbi=me,e.ɵbj=be,e.ɵbk=re,e.ɵbl=ne,e.ɵbm=Xn,e.ɵbn=Kn,e.ɵbo=Yn,e.ɵbp=Zn,e.ɵbq=Cn,e.ɵbr=An,e.ɵbs=_n,e.ɵbt=Pn,e.ɵbu=Ln,e.ɵbv=Et,e.ɵbw=xt,e.ɵbx=_t,e.ɵby=Tt,e.ɵbz=Pt,e.ɵc=Or,e.ɵca=At,e.ɵcb=kt,e.ɵcc=wt,e.ɵcd=gn,e.ɵce=rr,e.ɵcf=nr,e.ɵcg=tr,e.ɵch=Sr,e.ɵci=ir,e.ɵcj=cr,e.ɵck=ar,e.ɵcl=dr,e.ɵcm=lr,e.ɵcn=hr,e.ɵco=fi,e.ɵcp=ei,e.ɵcq=xr,e.ɵcr=Tr,e.ɵcs=Dr,e.ɵct=$r,e.ɵcu=ui,e.ɵcv=Gr,e.ɵcw=Kr,e.ɵcx=Yr,e.ɵcy=Si,e.ɵcz=Oi,e.ɵd=ot,e.ɵda=wi,e.ɵdb=hi,e.ɵdc=kr,e.ɵdd=Pr,e.ɵde=mi,e.ɵdf=ri,e.ɵdg=ii,e.ɵdh=xi,e.ɵdi=zi,e.ɵdj=Hi,e.ɵdk=Gi,e.ɵdm=zr,e.ɵdn=Hr,e.ɵdo=co,e.ɵdp=vo,e.ɵdq=Co,e.ɵdr=So,e.ɵds=Io,e.ɵdt=Do,e.ɵdu=na,e.ɵdv=V,e.ɵdw=ds,e.ɵdx=Es,e.ɵdy=Os,e.ɵdz=Is,e.ɵe=No,e.ɵea=Ds,e.ɵeb=ks,e.ɵec=Rs,e.ɵed=Ls,e.ɵee=Ws,e.ɵef=Gs,e.ɵeg=Hs,e.ɵeh=Ys,e.ɵei=da,e.ɵej=Oa,e.ɵek=Ia,e.ɵel=Sa,e.ɵem=Ea,e.ɵen=Ka,e.ɵeo=qa,e.ɵep=Xa,e.ɵeq=Za,e.ɵer=ac,e.ɵes=Ic,e.ɵf=Fo,e.ɵg=Mo,e.ɵh=xn,e.ɵi=Fn,e.ɵj=Mn,e.ɵk=Vn,e.ɵl=Lo,e.ɵm=jo,e.ɵn=On,e.ɵo=W,e.ɵp=U,e.ɵq=K,e.ɵr=In,e.ɵs=Zo,e.ɵt=Bo,e.ɵu=Ho,e.ɵv=Ke,e.ɵw=Ze,e.ɵx=qe,e.ɵy=Xe,e.ɵz=Qe,Object.defineProperty(e,"__esModule",{value:!0})}));
16
+ var te=function(e,t){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ne(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function re(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function oe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ie(arguments[t]));return e}Object.create;var se=function(){function e(e,n,r){if(void 0===r&&(r=0),this.injector=n.injector,!this.injector.get(e,null)){var i=this.injector.get(t.ComponentFactoryResolver),o=this.injector.get(t.ElementRef);n.createComponent(i.resolveComponentFactory(Q));var s=i.resolveComponentFactory(e),a=[];a[r]=[o.nativeElement];var c=n.createComponent(s,void 0,void 0,a);n.remove(0),c.instance._dynamic=!0,this.injector=c.injector}}return e.prototype.get=function(e,t){return this.injector.get(e,t)},e}(),ae=0,ce=function(){function e(){this._id="clr-form-control-"+ ++ae,this._idChange=new i.BehaviorSubject(this._id)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this._idChange.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"idChange",{get:function(){return this._idChange.asObservable()},enumerable:!1,configurable:!0}),e}();ce.decorators=[{type:t.Injectable}];var le,pe=function(){function e(){this._controlChanges=new i.Subject,this._helpers=new i.Subject}return Object.defineProperty(e.prototype,"controlChanges",{get:function(){return this._controlChanges.asObservable()},enumerable:!1,configurable:!0}),e.prototype.setControl=function(e){this._controlChanges.next(e)},Object.defineProperty(e.prototype,"helpersChange",{get:function(){return this._helpers.asObservable()},enumerable:!1,configurable:!0}),e.prototype.setHelpers=function(e){this._helpers.next(e)},e}();pe.decorators=[{type:t.Injectable}],(le=e.ClrFormLayout||(e.ClrFormLayout={})).VERTICAL="vertical",le.HORIZONTAL="horizontal",le.COMPACT="compact";var ue,de=function(){function t(){this.minLabelSize=1,this.maxLabelSize=12,this.layout=e.ClrFormLayout.HORIZONTAL,this.layoutValues=Object.keys(e.ClrFormLayout).map((function(t){return e.ClrFormLayout[t]})),this._labelSize=2}return Object.defineProperty(t.prototype,"labelSize",{get:function(){return this._labelSize},set:function(e){this.labelSizeIsValid(e)&&(this._labelSize=e)},enumerable:!1,configurable:!0}),t.prototype.isVertical=function(){return this.layout===e.ClrFormLayout.VERTICAL},t.prototype.isHorizontal=function(){return this.layout===e.ClrFormLayout.HORIZONTAL},t.prototype.isCompact=function(){return this.layout===e.ClrFormLayout.COMPACT},Object.defineProperty(t.prototype,"layoutClass",{get:function(){return"clr-form-"+this.layout},enumerable:!1,configurable:!0}),t.prototype.isValid=function(e){return this.layoutValues.indexOf(e)>-1},t.prototype.labelSizeIsValid=function(e){return Number.isInteger(e)&&e>=this.minLabelSize&&e<=this.maxLabelSize},t}();de.decorators=[{type:t.Injectable}],function(e){e.NONE="NONE",e.VALID="VALID",e.INVALID="INVALID"}(ue||(ue={}));var he=function(){function e(e){var t=this;this.ngControlService=e,this.subscriptions=[],this._statusChanges=new i.BehaviorSubject(ue.NONE),this.subscriptions.push(this.ngControlService.controlChanges.subscribe((function(e){e&&(t.control=e,t.subscriptions.push(t.control.statusChanges.subscribe((function(){t.triggerStatusChange()}))))})))}return Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this._statusChanges.asObservable()},enumerable:!1,configurable:!0}),e.prototype.triggerStatusChange=function(){if(this.control){var e=ue[this.control.status];this._statusChanges.next(this.control.touched&&["VALID","INVALID"].includes(e)?e:ue.NONE)}},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();he.decorators=[{type:t.Injectable}],he.ctorParameters=function(){return[{type:pe}]};var ge=function(){function e(e){this.layoutService=e,this.className=""}return e.prototype.controlClass=function(e,t,n){void 0===e&&(e=ue.NONE),void 0===t&&(t=!1),void 0===n&&(n="");var r=[this.className,n];switch(e){case ue.VALID:r.push("clr-success");break;case ue.INVALID:r.push("clr-error")}return t&&this.layoutService&&-1===this.className.indexOf("clr-col")&&r.push("clr-col-md-"+(this.layoutService.maxLabelSize-this.layoutService.labelSize)+" clr-col-12"),r.join(" ").trim()},e.prototype.initControlClass=function(e,t){t&&t.className&&(this.className=t.className,t.className.split(" ").forEach((function(n){n.startsWith("clr-col")&&e.removeClass(t,n)})))},e}();ge.decorators=[{type:t.Injectable}],ge.ctorParameters=function(){return[{type:de,decorators:[{type:t.Optional}]}]};var fe=function(){function e(){this._touched=new i.Subject}return Object.defineProperty(e.prototype,"touchedChange",{get:function(){return this._touched.asObservable()},enumerable:!1,configurable:!0}),e.prototype.markAsTouched=function(){this._touched.next()},e}();fe.decorators=[{type:t.Injectable}];var ye=0,be=function(){function e(){this._id="clr-form-container-"+ ++ye,this._idChange=new i.BehaviorSubject(this._id)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this._idChange.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"idChange",{get:function(){return this._idChange.asObservable()},enumerable:!1,configurable:!0}),e}();be.decorators=[{type:t.Injectable}];var me="helper",ve="error",Ce="success",Se=function(){function e(e,t){this.controlIdService=e,this.containerIdService=t,this.controlIdSuffix="abstract"}return Object.defineProperty(e.prototype,"id",{get:function(){return this.containerIdService?this.containerIdService.id+"-"+this.controlIdSuffix:this.controlIdService?this.controlIdService.id+"-"+this.controlIdSuffix:null},enumerable:!1,configurable:!0}),e}();Se.decorators=[{type:t.Directive}],Se.ctorParameters=function(){return[{type:ce,decorators:[{type:t.Optional}]},{type:be,decorators:[{type:t.Optional}]}]};var Ie=function(){function e(e,t,n,r,i,o){var s=this;this.vcr=e,this.wrapperType=t,this.ngControl=r,this.subscriptions=[],this.index=0,this.renderer=i,this.el=o;try{this.ngControlService=n.get(pe),this.ifControlStateService=n.get(he),this.controlClassService=n.get(ge),this.markControlService=n.get(fe)}catch(e){}this.controlClassService&&this.controlClassService.initControlClass(i,o.nativeElement),this.markControlService&&this.subscriptions.push(this.markControlService.touchedChange.subscribe((function(){s.markAsTouched()}))),this.ngControlService&&this.subscriptions.push(this.ngControlService.helpersChange.subscribe((function(e){s.setAriaDescribedBy(e)})))}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this.controlIdService&&(this.controlIdService.id=e)},enumerable:!1,configurable:!0}),e.prototype.triggerValidation=function(){this.ifControlStateService&&(this.ngControl&&!this.ngControl.touched&&this.markAsTouched(),this.ifControlStateService.triggerStatusChange())},e.prototype.markAsTouched=function(){this.ngControl.control.markAsTouched(),this.ngControl.control.updateValueAndValidity()},e.prototype.getProviderFromContainer=function(e,t){try{return this._containerInjector.get(e,t)}catch(e){return t}},e.prototype.ngOnInit=function(){this._containerInjector=new se(this.wrapperType,this.vcr,this.index),this.controlIdService=this._containerInjector.get(ce);try{this.containerIdService=this._containerInjector.get(be)}catch(e){}this._id?this.controlIdService.id=this._id:this._id=this.controlIdService.id,this.ngControlService&&this.ngControlService.setControl(this.ngControl)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.setAriaDescribedBy=function(e){if(e.show){var t=this.getAriaDescribedById(e);if(null!==t)return void this.renderer.setAttribute(this.el.nativeElement,"aria-describedby",t)}this.renderer.removeAttribute(this.el.nativeElement,"aria-describedby")},e.prototype.getAriaDescribedById=function(e){var t=me;return e.showInvalid?t=ve:e.showValid&&(t=Ce),this.containerIdService?this.containerIdService.id.concat("-",t):this.controlIdService?this.controlIdService.id.concat("-",t):null},e}();Ie.decorators=[{type:t.Directive}],Ie.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Type},{type:t.Injector},{type:a.NgControl},{type:t.Renderer2},{type:t.ElementRef}]},Ie.propDecorators={id:[{type:t.HostBinding},{type:t.Input}],triggerValidation:[{type:t.HostListener,args:["blur"]}]};var Oe=function(){function e(e,t,n,r,i){this.controlIdService=e,this.layoutService=t,this.ngControlService=n,this.renderer=r,this.el=i,this.subscriptions=[],this.enableGrid=!0}return Object.defineProperty(e.prototype,"labelText",{get:function(){return this.el.nativeElement&&this.el.nativeElement.textContent},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;(this.controlIdService||this.ngControlService)&&this.renderer.addClass(this.el.nativeElement,"clr-control-label"),this.enableGrid&&this.layoutService&&!this.layoutService.isVertical()&&this.el.nativeElement&&this.el.nativeElement.className.indexOf("clr-col")<0&&(this.renderer.addClass(this.el.nativeElement,"clr-col-12"),this.renderer.addClass(this.el.nativeElement,"clr-col-md-"+this.layoutService.labelSize)),this.controlIdService&&!this.forAttr&&this.subscriptions.push(this.controlIdService.idChange.subscribe((function(t){return e.forAttr=t})))},e.prototype.disableGrid=function(){this.enableGrid=!1},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();Oe.decorators=[{type:t.Directive,args:[{selector:"label"}]}],Oe.ctorParameters=function(){return[{type:ce,decorators:[{type:t.Optional}]},{type:de,decorators:[{type:t.Optional}]},{type:pe,decorators:[{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]},Oe.propDecorators={forAttr:[{type:t.HostBinding,args:["attr.for"]},{type:t.Input,args:["for"]}]};var Ee=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.controlIdService=t,r.containerIdService=n,r.controlIdSuffix=Ce,r}return ne(t,e),t}(Se);Ee.decorators=[{type:t.Component,args:[{selector:"clr-control-success",template:" <ng-content></ng-content> ",host:{"[class.clr-subtext]":"true","[attr.id]":"id"}}]}],Ee.ctorParameters=function(){return[{type:ce,decorators:[{type:t.Optional}]},{type:be,decorators:[{type:t.Optional}]}]};var we=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.controlIdService=t,r.containerIdService=n,r.controlIdSuffix=ve,r}return ne(t,e),t}(Se);we.decorators=[{type:t.Component,args:[{selector:"clr-control-error",template:" <ng-content></ng-content> ",host:{"[class.clr-subtext]":"true","[attr.id]":"id"}}]}],we.ctorParameters=function(){return[{type:ce,decorators:[{type:t.Optional}]},{type:be,decorators:[{type:t.Optional}]}]};var _e=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.controlIdService=t,r.containerIdService=n,r.controlIdSuffix=me,r}return ne(t,e),t}(Se);_e.decorators=[{type:t.Component,args:[{selector:"clr-control-helper",template:" <ng-content></ng-content> ",host:{"[class.clr-subtext]":"true","[attr.id]":"id"}}]}],_e.ctorParameters=function(){return[{type:ce,decorators:[{type:t.Optional}]},{type:be,decorators:[{type:t.Optional}]}]};var Pe=function(){function e(e,t,n,r){var i=this;this.ifControlStateService=e,this.layoutService=t,this.controlClassService=n,this.ngControlService=r,this.subscriptions=[],this._dynamic=!1,this.subscriptions.push(this.ifControlStateService.statusChanges.subscribe((function(e){i.state=e,i.updateHelpers()}))),this.subscriptions.push(this.ngControlService.controlChanges.subscribe((function(e){i.control=e})))}return Object.defineProperty(e.prototype,"showHelper",{get:function(){return!1!=!!this.controlHelperComponent&&(!!this.controlHelperComponent&&this.state===ue.NONE||!1==!!this.controlSuccessComponent&&this.state===ue.VALID||!1==!!this.controlErrorComponent&&this.state===ue.INVALID)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showValid",{get:function(){return this.state===ue.VALID&&!!this.controlSuccessComponent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInvalid",{get:function(){return this.state===ue.INVALID&&!!this.controlErrorComponent},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.updateHelpers()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.controlClass=function(){return this.controlSuccessComponent||this.state!==ue.VALID?this.controlClassService.controlClass(this.state,this.addGrid()):this.controlClassService.controlClass(ue.NONE,this.addGrid())},e.prototype.addGrid=function(){return this.layoutService&&!this.layoutService.isVertical()},e.prototype.updateHelpers=function(){this.ngControlService&&this.ngControlService.setHelpers({show:this.showInvalid||this.showHelper||this.showValid,showInvalid:this.showInvalid,showHelper:this.showHelper,showValid:this.showValid})},e}();Pe.decorators=[{type:t.Directive}],Pe.ctorParameters=function(){return[{type:he},{type:de,decorators:[{type:t.Optional}]},{type:ge},{type:pe}]},Pe.propDecorators={label:[{type:t.ContentChild,args:[Oe,{static:!1}]}],controlSuccessComponent:[{type:t.ContentChild,args:[Ee]}],controlErrorComponent:[{type:t.ContentChild,args:[we]}],controlHelperComponent:[{type:t.ContentChild,args:[_e]}]};var De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t}(Pe);De.decorators=[{type:t.Component,args:[{selector:"clr-control-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper">\n <ng-content></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[he,pe,ce,ge]}]}];var Te=function(e){function t(t,n,r,i,o){var s=e.call(this,t,De,n,r,i,o)||this;return s.index=1,s}return ne(t,e),t}(Ie);Te.decorators=[{type:t.Directive,args:[{selector:"[clrControl]",host:{"[class.clr-input]":"true"}}]}],Te.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var xe=function(){function e(e,t){this.layoutService=e,this.markControlService=t}return Object.defineProperty(e.prototype,"labelSize",{set:function(e){var t=parseInt(e,10)||2;this.layoutService.labelSize=t},enumerable:!1,configurable:!0}),e.prototype.markAsTouched=function(){this.markControlService.markAsTouched()},e.prototype.onFormSubmit=function(){this.markAsTouched()},e}();xe.decorators=[{type:t.Directive,args:[{selector:"[clrForm]",providers:[de,fe],host:{"[class.clr-form]":"true","[class.clr-form-horizontal]":"layoutService.isHorizontal()","[class.clr-form-compact]":"layoutService.isCompact()"}}]}],xe.ctorParameters=function(){return[{type:de},{type:fe}]},xe.propDecorators={labelSize:[{type:t.Input,args:["clrLabelSize"]}],labels:[{type:t.ContentChildren,args:[Oe,{descendants:!0}]}],onFormSubmit:[{type:t.HostListener,args:["submit"]}]};var Ae=function(){function e(e,t){var n=this;this.ifControlStateService=e,this.ngControlService=t,this.subscriptions=[],this.displayedContent=!1,t&&this.subscriptions.push(this.ngControlService.controlChanges.subscribe((function(e){n.control=e}))),e&&this.subscriptions.push(this.ifControlStateService.statusChanges.subscribe((function(e){n.handleState(e)})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.handleState=function(e){},e}();Ae.decorators=[{type:t.Directive}],Ae.ctorParameters=function(){return[{type:he,decorators:[{type:t.Optional}]},{type:pe,decorators:[{type:t.Optional}]}]};var ke=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;if(o.template=r,o.container=i,!o.ifControlStateService)throw new Error("clrIfError can only be used within a form control container element like clr-input-container");return o}return ne(t,e),t.prototype.handleState=function(e){this.error&&this.control?this.displayError(this.control.hasError(this.error)):this.displayError(ue.INVALID===e)},t.prototype.displayError=function(e){this.container&&(e?!1===this.displayedContent?(this.embeddedViewRef=this.container.createEmbeddedView(this.template,{error:this.control.getError(this.error)}),this.displayedContent=!0):this.embeddedViewRef&&this.embeddedViewRef.context&&(this.embeddedViewRef.context.error=this.control.getError(this.error)):(this.container.clear(),this.displayedContent=!1))},t}(Ae);ke.decorators=[{type:t.Directive,args:[{selector:"[clrIfError]"}]}],ke.ctorParameters=function(){return[{type:he,decorators:[{type:t.Optional}]},{type:pe,decorators:[{type:t.Optional}]},{type:t.TemplateRef},{type:t.ViewContainerRef}]},ke.propDecorators={error:[{type:t.Input,args:["clrIfError"]}]};var Re=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;if(o.template=r,o.container=i,!t)throw new Error("ClrIfSuccess can only be used within a form control container element like clr-input-container");return o}return ne(t,e),t.prototype.handleState=function(e){var t=ue.VALID===e;t&&!this.displayedContent?this.container.createEmbeddedView(this.template):!t&&this.container&&this.container.clear(),this.displayedContent=t},t}(Ae);Re.decorators=[{type:t.Directive,args:[{selector:"[clrIfSuccess]"}]}],Re.ctorParameters=function(){return[{type:he,decorators:[{type:t.Optional}]},{type:pe,decorators:[{type:t.Optional}]},{type:t.TemplateRef},{type:t.ViewContainerRef}]};var Le=function(){function e(e){this.layoutService=e}return e.prototype.ngOnInit=function(){this.layout&&this.layoutService.isValid(this.layout)&&(this.layoutService.layout=this.layout)},e}();Le.decorators=[{type:t.Directive,args:[{selector:"[clrForm][clrLayout]"}]}],Le.ctorParameters=function(){return[{type:de}]},Le.propDecorators={layout:[{type:t.Input,args:["clrLayout"]}]};var je=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};je.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h],declarations:[Oe,we,Ee,_e,ke,Re,xe,Le,De,Te],exports:[Oe,we,Ee,_e,ke,Re,xe,Le,De,Te],entryComponents:[De]}]}],je.ctorParameters=function(){return[]};var Ne=new t.InjectionToken("IS_TOGGLE");function Fe(){return new i.BehaviorSubject(!1)}var Me={provide:Ne,useFactory:Fe},Ve=function(){function e(e){var t=this;this._dynamic=!1,this.toggle=!1,this.subscriptions=[],this.subscriptions.push(e.subscribe((function(e){t.toggle=e})))}return e.prototype.ngOnInit=function(){this.label&&this.label.disableGrid()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();Ve.decorators=[{type:t.Component,args:[{selector:"clr-checkbox-wrapper,clr-toggle-wrapper",template:'\n <ng-content select="[clrCheckbox],[clrToggle]"></ng-content>\n <ng-content select="label"></ng-content>\n <label *ngIf="!label"></label>\n ',host:{"[class.clr-checkbox-wrapper]":"!toggle","[class.clr-toggle-wrapper]":"toggle"},providers:[ce,Me]}]}],Ve.ctorParameters=function(){return[{type:i.BehaviorSubject,decorators:[{type:t.Inject,args:[Ne]}]}]},Ve.propDecorators={label:[{type:t.ContentChild,args:[Oe,{static:!0}]}]};var Be=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,Ve,n,r,i,o)||this;return a.toggle=s,a}return ne(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this);var t=this.getProviderFromContainer(Ne,null);t&&null!==this.toggle&&t.next(!0)},t}(Ie);Be.decorators=[{type:t.Directive,args:[{selector:"[clrCheckbox],[clrToggle]"}]}],Be.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef},{type:String,decorators:[{type:t.Attribute,args:["clrToggle"]}]}]};var ze=function(e){function t(t,n,r,i){var o=e.call(this,i,t,n,r)||this;return o.layoutService=t,o.controlClassService=n,o.ngControlService=r,o.ifControlStateService=i,o.inline=!1,o}return ne(t,e),Object.defineProperty(t.prototype,"clrInline",{get:function(){return this.inline},set:function(e){this.inline="string"==typeof e?"false"!==e:!!e},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.setAriaRoles()},t.prototype.setAriaRoles=function(){this.role=this.checkboxes.length?"group":null},t}(Pe);ze.decorators=[{type:t.Component,args:[{selector:"clr-checkbox-container,clr-toggle-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [class.clr-control-inline]="clrInline" [ngClass]="controlClass()">\n <ng-content select="clr-checkbox-wrapper,clr-toggle-wrapper"></ng-content>\n <div class="clr-subtext-wrapper">\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n status="success"\n shape="check-circle"\n aria-hidden="true"\n ></cds-icon>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()","[attr.role]":"role"},providers:[he,pe,ge,be]}]}],ze.ctorParameters=function(){return[{type:de,decorators:[{type:t.Optional}]},{type:ge},{type:pe},{type:he}]},ze.propDecorators={checkboxes:[{type:t.ContentChildren,args:[Be,{descendants:!0}]}],clrInline:[{type:t.Input}]};var He=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};He.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,je,ee],declarations:[Be,ze,Ve],exports:[je,Be,ze,Ve],entryComponents:[Ve]}]}],He.ctorParameters=function(){return[]};var Ge=0,We=new t.InjectionToken("IF_ACTIVE_ID");function Ue(){return++Ge}var Ye={provide:We,useFactory:Ue},Ke=function(){function e(){this._currentChange=new i.Subject}return Object.defineProperty(e.prototype,"currentChange",{get:function(){return this._currentChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current!==e&&(this._current=e,this._currentChange.next(e))},enumerable:!1,configurable:!0}),e}();Ke.decorators=[{type:t.Injectable}];var Ze=function(){function e(e,n,r,i){var o=this;this.ifActiveService=e,this.id=n,this.template=r,this.container=i,this.wasActive=!1,this.activeChange=new t.EventEmitter(!1),this.checkAndUpdateView(e.current),this.subscription=this.ifActiveService.currentChange.subscribe((function(e){o.checkAndUpdateView(e)}))}return e.prototype.checkAndUpdateView=function(e){var t=e===this.id;t!==this.wasActive&&(this.updateView(t),this.activeChange.emit(t),this.wasActive=t)},Object.defineProperty(e.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},set:function(e){e&&(this.ifActiveService.current=this.id)},enumerable:!1,configurable:!0}),e.prototype.updateView=function(e){e?this.container.createEmbeddedView(this.template):this.container.clear()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}();Ze.decorators=[{type:t.Directive,args:[{selector:"[clrIfActive]"}]}],Ze.ctorParameters=function(){return[{type:Ke},{type:Number,decorators:[{type:t.Inject,args:[We]}]},{type:t.TemplateRef},{type:t.ViewContainerRef}]},Ze.propDecorators={active:[{type:t.Input,args:["clrIfActive"]}],activeChange:[{type:t.Output,args:["clrIfActiveChange"]}]};var qe=function(){function e(e,n,r){var i=this;this.toggleService=e,this.template=n,this.container=r,this.openChange=new t.EventEmitter(!1),this.subscription=this.toggleService.openChange.subscribe((function(e){i.updateView(e),i.openChange.emit(e)}))}return Object.defineProperty(e.prototype,"open",{get:function(){return this.toggleService.open},set:function(e){this.toggleService.open=e},enumerable:!1,configurable:!0}),e.prototype.updateView=function(e){e?this.container.createEmbeddedView(this.template):this.container.clear()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}();qe.decorators=[{type:t.Directive,args:[{selector:"[clrIfOpen]"}]}],qe.ctorParameters=function(){return[{type:y},{type:t.TemplateRef},{type:t.ViewContainerRef}]},qe.propDecorators={open:[{type:t.Input,args:["clrIfOpen"]}],openChange:[{type:t.Output,args:["clrIfOpenChange"]}]};var Xe=function(){function t(){this.expandable=0,this._loading=!1,this._expanded=!1,this._expandChange=new i.Subject}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(e){(e=!!e)!==this._loading&&(this._loading=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(e){(e=!!e)!==this._expanded&&(this._expanded=e,this._expandChange.next(e))},enumerable:!1,configurable:!0}),t.prototype.toggle=function(){this.expanded=!this._expanded},Object.defineProperty(t.prototype,"expandChange",{get:function(){return this._expandChange.asObservable()},enumerable:!1,configurable:!0}),t.prototype.loadingStateChange=function(t){switch(t){case e.ClrLoadingState.LOADING:this.loading=!0;break;default:this.loading=!1}},t}();Xe.decorators=[{type:t.Injectable}];var $e=function(){function e(e,n,r,i,o){var s=this;this.template=e,this.container=n,this.el=r,this.renderer=i,this.expand=o,this._expanded=!1,this.expandedChange=new t.EventEmitter(!0),this._subscriptions=[],this._subscriptions.push(o.expandChange.subscribe((function(){s.updateView(),s.expandedChange.emit(s.expand.expanded)})))}return Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){"boolean"==typeof e&&(this.expand.expanded=e,this._expanded=e)},enumerable:!1,configurable:!0}),e.prototype.updateView=function(){if(!this.expand.expanded||0===this.container.length)if(this.template)this.expand.expanded?this.container.createEmbeddedView(this.template):this.container.clear();else try{this.expand.expanded?this.renderer.setStyle(this.el.nativeElement,"display",null):this.renderer.setStyle(this.el.nativeElement,"display","none")}catch(e){}},e.prototype.ngOnInit=function(){this.expand.expandable++,this.updateView()},e.prototype.ngOnDestroy=function(){this.expand.expandable--,this._subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();$e.decorators=[{type:t.Directive,args:[{selector:"[clrIfExpanded]"}]}],$e.ctorParameters=function(){return[{type:t.TemplateRef,decorators:[{type:t.Optional}]},{type:t.ViewContainerRef},{type:t.ElementRef},{type:t.Renderer2},{type:Xe}]},$e.propDecorators={expanded:[{type:t.Input,args:["clrIfExpanded"]}],expandedChange:[{type:t.Output,args:["clrIfExpandedChange"]}]};var Je=[Ze,qe,$e],Qe=function(){};Qe.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Je],exports:[Je]}]}];var et=function(){function e(){this._previousFocusTraps=[]}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._previousFocusTraps.push(this._current),this._current=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nbFocusTrappers",{get:function(){return this._previousFocusTraps.length},enumerable:!1,configurable:!0}),e.prototype.activatePreviousTrapper=function(){this._current=this._previousFocusTraps.pop()},e}();et.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new et},token:et,providedIn:"root"}),et.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var tt=function(){function e(e,t,n,i,o){this.el=e,this.injector=t,this.focusTrapsTracker=n,this.renderer=i,this.platformId=o,this.localFocusEscaped=!1,this._config={strict:!0},this.document=this.injector.get(r.DOCUMENT),this.focusTrapsTracker.current=this}return Object.defineProperty(e.prototype,"config",{set:function(e){this._config=Object.assign(this._config,""===e?{}:e)},enumerable:!1,configurable:!0}),e.prototype.onFocusIn=function(e){var t=this.el.nativeElement;this.focusTrapsTracker.current!==this||!r.isPlatformBrowser(this.platformId)||this.localFocusEscaped||t.contains(e.target)||(e.target===this.topReboundEl&&t.contains(e.relatedTarget)?(this.focusLastFocusable(),this.focusTrapElIfOutside()):e.target===this.bottomReboundEl&&t.contains(e.relatedTarget)?(this.focusFirstFocusable(),this.focusTrapElIfOutside()):this._config.strict?this.el.nativeElement.focus():this.localFocusEscaped=!0)},e.prototype.createFocusableOffScreenEl=function(){var e=this.document.createElement("span");return this.renderer.setAttribute(e,"tabindex","0"),this.renderer.addClass(e,"offscreen-focus-rebounder"),e},e.prototype.addReboundEls=function(){if(r.isPlatformBrowser(this.platformId)){this.topReboundEl=this.createFocusableOffScreenEl(),this.bottomReboundEl=this.createFocusableOffScreenEl();var e=this.el.nativeElement;this.renderer.insertBefore(e.parentElement,this.topReboundEl,e),e.nextSibling?this.renderer.insertBefore(e.parentNode,this.bottomReboundEl,e.nextSibling):this.renderer.appendChild(e.parentNode,this.bottomReboundEl)}},e.prototype.removeReboundEls=function(){r.isPlatformBrowser(this.platformId)&&this.topReboundEl&&this.bottomReboundEl&&(this.parentElement.removeChild(this.topReboundEl),this.parentElement.removeChild(this.bottomReboundEl),delete this.topReboundEl,delete this.bottomReboundEl)},e.prototype.setPreviousFocus=function(){this.previousActiveElement&&this.previousActiveElement.focus&&this.previousActiveElement.focus()},e.prototype.ngOnInit=function(){r.isPlatformBrowser(this.platformId)&&(this.renderer.setAttribute(this.el.nativeElement,"tabindex","-1"),this.el.nativeElement.focus())},e.prototype.ngAfterViewInit=function(){r.isPlatformBrowser(this.platformId)&&(this.previousActiveElement=this.document.activeElement,this.parentElement=this.el.nativeElement.parentElement),this.addReboundEls()},Object.defineProperty(e.prototype,"potentiallyFocusableEls",{get:function(){return oe(this.el.nativeElement.querySelectorAll('[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), [contenteditable="true"]:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]) '))},enumerable:!1,configurable:!0}),e.prototype.focusFirstFocusable=function(){for(var e=0;e<this.potentiallyFocusableEls.length&&(this.firstFocusableEl=this.focusElement(this.potentiallyFocusableEls[e]),!this.firstFocusableEl);e++);},e.prototype.focusLastFocusable=function(){for(var e=this.potentiallyFocusableEls.length-1;e>=0&&(this.lastFocusableEl=this.focusElement(this.potentiallyFocusableEls[e]),!this.lastFocusableEl);e--);},e.prototype.focusTrapElIfOutside=function(){this.el.nativeElement.contains(document.activeElement)||this.el.nativeElement.focus()},e.prototype.focusElement=function(e){return e&&e.focus&&(e.focus(),document.activeElement===e)?e:null},e.prototype.ngOnDestroy=function(){this.removeReboundEls(),this.setPreviousFocus(),this.focusTrapsTracker.activatePreviousTrapper()},e}();tt.decorators=[{type:t.Directive,args:[{selector:"[clrFocusTrap]"}]}],tt.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Injector},{type:et},{type:t.Renderer2},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},tt.propDecorators={config:[{type:t.Input,args:["clrFocusTrap"]}],onFocusIn:[{type:t.HostListener,args:["document:focusin",["$event"]]}]};var nt=[tt],rt=function(){};rt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[nt],exports:[nt]}]}];var it=/d+.+m+.+y+/i,ot=/m+.+d+.+y+/i,st=/d+|m+|y+/i,at=/\d+/g,ct=/Mobi/i,lt=/\u200f/g,pt="YYYY",ut="MM",dt="DD",ht={name:"LITTLE_ENDIAN",format:[dt,ut,pt]},gt={name:"MIDDLE_ENDIAN",format:[ut,dt,pt]},ft={name:"BIG_ENDIAN",format:[pt,ut,dt]};function yt(e,t){return new Date(e,t+1,0).getDate()}var bt=function(){function e(e,t,n,r,i,o){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===o&&(o=!1),this.dayModel=e,this.isTodaysDate=t,this.isExcluded=n,this.isDisabled=r,this.isSelected=i,this.isFocusable=o}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.isFocusable?0:-1},enumerable:!1,configurable:!0}),e}(),mt=function(){function e(e,t,n){this.year=e,this.month=t,this.date=n}return e.prototype.isEqual=function(e){return!!e&&(this.year===e.year&&this.month===e.month&&this.date===e.date)},e.prototype.toDate=function(){return new Date(this.year,this.month,this.date)},e.prototype.incrementBy=function(t){var n=new Date(this.year,this.month,this.date+t);return new e(n.getFullYear(),n.getMonth(),n.getDate())},e.prototype.clone=function(){return new e(this.year,this.month,this.date)},e.prototype.toComparisonString=function(){return""+this.year+this.pad(this.month)+this.pad(this.date)},e.prototype.pad=function(e){return e<10?"0"+e:""+e},e.prototype.toDateString=function(){return this.toDate().toLocaleDateString()},e}(),vt=function(){function e(e,t,n,r,i,o){this.calendar=e,this.selectedDay=t,this.focusableDay=n,this.today=r,this.firstDayOfWeek=i,this.excludedDates=o,this.currMonthDayViews=[],this.initializeCalendarView()}return Object.defineProperty(e.prototype,"calendarView",{get:function(){return this._calendarView},enumerable:!1,configurable:!0}),e.prototype.initializeCalendarView=function(){var e=this.calendar.previousMonth(),t=this.calendar.nextMonth(),n=this.numDaysFromPrevMonthInCalView(this.calendar.year,this.calendar.month),r=42-(this.calendar.days.length+n),i=[],o=[];n>0&&(i=this.generateDayViewModels(e.days.slice(-1*n),!0,!1)),this.currMonthDayViews=this.generateDayViewModels(this.calendar.days,!1,!0),r>0&&(o=this.generateDayViewModels(t.days.slice(0,r),!0,!1)),this._calendarView=this.generateCalendarView(i,this.currMonthDayViews,o),this.initializeSelectedDay(),this.initializeFocusableDay()},e.prototype.isDateExcluded=function(e){var t=this.excludedDates,n=t.minDate,r=t.maxDate,i=n.toComparisonString(),o=r.toComparisonString(),s=e.toComparisonString();return!(s>=i&&s<=o)},e.prototype.generateDayViewModels=function(e,t,n){var r=this,i=e.map((function(e){return new bt(e,!1,t,r.isDateExcluded(e),!1,!1)}));return n&&this.calendar.isDayInCalendar(this.today)&&(i[this.today.date-1].isTodaysDate=!0),i},e.prototype.numDaysFromPrevMonthInCalView=function(e,t){var n=new Date(e,t,1).getDay();return n>=this.firstDayOfWeek?n-this.firstDayOfWeek:7+n-this.firstDayOfWeek},e.prototype.isDayInCalendarView=function(e){return!!this.calendar.isDayInCalendar(e)},e.prototype.generateCalendarView=function(e,t,n){for(var r=oe(e,t,n),i=[],o=0;o<6;o++)i[o]=r.slice(7*o,7*(o+1));return i},e.prototype.initializeSelectedDay=function(){this.selectedDay&&this.isDayInCalendarView(this.selectedDay)&&(this.currMonthDayViews[this.selectedDay.date-1].isSelected=!0)},e.prototype.initializeFocusableDay=function(){this.focusableDay&&this.isDayInCalendarView(this.focusableDay)?this.setFocusableFlag(this.focusableDay,!0):this.selectedDay&&this.isDayInCalendarView(this.selectedDay)?(this.setFocusableFlag(this.selectedDay,!0),this.focusableDay=this.selectedDay.clone()):this.isDayInCalendarView(this.today)?(this.setFocusableFlag(this.today,!0),this.focusableDay=this.today.clone()):(this.focusableDay=new mt(this.calendar.year,this.calendar.month,15),this.setFocusableFlag(this.focusableDay,!0))},e.prototype.setFocusableFlag=function(e,t){e&&(this.currMonthDayViews[e.date-1].isFocusable=t)},e.prototype.updateFocusableDay=function(e){this.setFocusableFlag(this.focusableDay,!1),this.setFocusableFlag(e,!0),this.focusableDay=e},e}(),Ct=function(){function e(e,t){this.year=e,this.month=t,this.initializeDaysInCalendar()}return e.prototype.initializeDaysInCalendar=function(){var e=this,t=yt(this.year,this.month);this.days=Array(t).fill(null).map((function(t,n){return new mt(e.year,e.month,n+1)}))},e.prototype.isEqual=function(e){return!!e&&(this.year===e.year&&this.month===e.month)},e.prototype.isDayInCalendar=function(e){return!!e&&(this.year===e.year&&this.month===e.month)},e.prototype.previousMonth=function(){return 0===this.month?new e(this.year-1,11):new e(this.year,this.month-1)},e.prototype.nextMonth=function(){return 11===this.month?new e(this.year+1,0):new e(this.year,this.month+1)},e}(),St=function(){function e(){this._todaysFullDate=new Date,this._selectedDayChange=new i.Subject,this._displayedCalendarChange=new i.Subject,this._focusOnCalendarChange=new i.Subject,this._focusedDayChange=new i.Subject}return Object.defineProperty(e.prototype,"displayedCalendar",{get:function(){return this._displayedCalendar},enumerable:!1,configurable:!0}),e.prototype.setDisplayedCalendar=function(e){this._displayedCalendar.isEqual(e)||(this._displayedCalendar=e,this._displayedCalendarChange.next())},e.prototype.initializeTodaysDate=function(){this._todaysFullDate=new Date,this._today=new mt(this._todaysFullDate.getFullYear(),this._todaysFullDate.getMonth(),this._todaysFullDate.getDate())},Object.defineProperty(e.prototype,"today",{get:function(){return this._today},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedDayChange",{get:function(){return this._selectedDayChange.asObservable()},enumerable:!1,configurable:!0}),e.prototype.notifySelectedDayChanged=function(e){this.selectedDay=e,this._selectedDayChange.next(e)},e.prototype.initializeCalendar=function(){this.focusedDay=null,this.initializeTodaysDate(),this.selectedDay?this._displayedCalendar=new Ct(this.selectedDay.year,this.selectedDay.month):this._displayedCalendar=new Ct(this.today.year,this.today.month)},e.prototype.changeMonth=function(e){this.setDisplayedCalendar(new Ct(this._displayedCalendar.year,e))},e.prototype.changeYear=function(e){this.setDisplayedCalendar(new Ct(e,this._displayedCalendar.month))},e.prototype.moveToNextMonth=function(){this.setDisplayedCalendar(this._displayedCalendar.nextMonth())},e.prototype.moveToPreviousMonth=function(){this.setDisplayedCalendar(this._displayedCalendar.previousMonth())},e.prototype.moveToCurrentMonth=function(){this.displayedCalendar.isDayInCalendar(this.today)||this.setDisplayedCalendar(new Ct(this.today.year,this.today.month)),this._focusOnCalendarChange.next()},e.prototype.incrementFocusDay=function(e){this.focusedDay=this.focusedDay.incrementBy(e),this._displayedCalendar.isDayInCalendar(this.focusedDay)?this._focusedDayChange.next(this.focusedDay):this.setDisplayedCalendar(new Ct(this.focusedDay.year,this.focusedDay.month)),this._focusOnCalendarChange.next()},Object.defineProperty(e.prototype,"displayedCalendarChange",{get:function(){return this._displayedCalendarChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusOnCalendarChange",{get:function(){return this._focusOnCalendarChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusedDayChange",{get:function(){return this._focusedDayChange.asObservable()},enumerable:!1,configurable:!0}),e}();St.decorators=[{type:t.Injectable}];var It=function(){function e(e,t){this._ngZone=e,this.platformId=t}return e.prototype.focusCell=function(e){var t=this;this._ngZone.runOutsideAngular((function(){t.ngZoneIsStableInBrowser().subscribe((function(){var t=e.nativeElement.querySelector('[tabindex="0"]');t&&t.focus()}))}))},e.prototype.focusInput=function(e){var t=this;this._ngZone.runOutsideAngular((function(){return t.ngZoneIsStableInBrowser().subscribe((function(){return e.focus()}))}))},e.prototype.elementIsFocused=function(e){return r.isPlatformBrowser(this.platformId)&&document.activeElement===e},e.prototype.ngZoneIsStableInBrowser=function(){var e=this;return this._ngZone.onStable.asObservable().pipe(o.first(),o.filter((function(){return r.isPlatformBrowser(e.platformId)})))},e}();It.decorators=[{type:t.Injectable}],It.ctorParameters=function(){return[{type:t.NgZone},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var Ot=function(){function e(e){this.locale=e,this._firstDayOfWeek=0,this.initializeLocaleData()}return Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeDays",{get:function(){return this._localeDays},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeDaysNarrow",{get:function(){return this._localeDays.map((function(e){return e.narrow}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeMonthsAbbreviated",{get:function(){return this._localeMonthsAbbreviated},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeMonthsWide",{get:function(){return this._localeMonthsWide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeDateFormat",{get:function(){return this._localeDateFormat},enumerable:!1,configurable:!0}),e.prototype.initializeLocaleData=function(){this.initializeFirstDayOfWeek(),this.initializeLocaleDateFormat(),this.initializeLocaleMonthsAbbreviated(),this.initializeLocaleMonthsWide(),this.initializeLocaleDays()},e.prototype.initializeLocaleDays=function(){for(var e=[],t=r.getLocaleDayNames(this.locale,r.FormStyle.Standalone,r.TranslationWidth.Wide).slice(),n=r.getLocaleDayNames(this.locale,r.FormStyle.Standalone,r.TranslationWidth.Narrow).slice(),i=this.firstDayOfWeek,o=0;o<7;o++)e.push({day:t[o],narrow:n[o]});if(i>0){var s=e.splice(0,i);e.push.apply(e,oe(s))}this._localeDays=e},e.prototype.initializeLocaleMonthsAbbreviated=function(){this._localeMonthsAbbreviated=r.getLocaleMonthNames(this.locale,r.FormStyle.Standalone,r.TranslationWidth.Abbreviated).slice()},e.prototype.initializeLocaleMonthsWide=function(){this._localeMonthsWide=r.getLocaleMonthNames(this.locale,r.FormStyle.Standalone,r.TranslationWidth.Wide).slice()},e.prototype.initializeFirstDayOfWeek=function(){this._firstDayOfWeek=r.getLocaleFirstDayOfWeek(this.locale)},e.prototype.initializeLocaleDateFormat=function(){this._localeDateFormat=r.getLocaleDateFormat(this.locale,r.FormatWidth.Short)},e}();Ot.decorators=[{type:t.Injectable}],Ot.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]};var Et=function(){function e(e){this._localeHelperService=e,this.disabledDates={minDate:new mt(0,0,1),maxDate:new mt(9999,11,31)},this.cldrLocaleDateFormat="dd/MM/y",this.localeDisplayFormat=ht,this.delimiters=["/","/"],this.cldrLocaleDateFormat=this._localeHelperService.localeDateFormat,this.initializeLocaleDisplayFormat()}return e.prototype.setMinDate=function(e){if(e){var t=ie(e.split("-").map((function(e){return parseInt(e,10)})),3),n=t[0],r=t[1],i=t[2];this.disabledDates.minDate=new mt(n,r-1,i)}else this.disabledDates.minDate=new mt(0,0,1)},e.prototype.setMaxDate=function(e){if(e){var t=ie(e.split("-").map((function(e){return parseInt(e,10)})),3),n=t[0],r=t[1],i=t[2];this.disabledDates.maxDate=new mt(n,r-1,i)}else this.disabledDates.maxDate=new mt(9999,11,31)},e.prototype.initializeLocaleDisplayFormat=function(){var e=this.cldrLocaleDateFormat.toLocaleLowerCase();it.test(e)?this.localeDisplayFormat=ht:ot.test(e)?this.localeDisplayFormat=gt:this.localeDisplayFormat=ft,this.extractDelimiters()},e.prototype.extractDelimiters=function(){if(this.cldrLocaleDateFormat){var e=this.cldrLocaleDateFormat.replace(lt,"").split(st);e&&4===e.length?this.delimiters=[e[1],e[2]]:console.error("Unexpected date format received. Delimiters extracted: ",e)}},e.prototype.toLocaleDisplayFormatString=function(e){if(e){if(isNaN(e.getTime()))return"";var t=e.getDate(),n=e.getMonth()+1,r=t>9?t.toString():"0"+t,i=n>9?n.toString():"0"+n;return this.localeDisplayFormat===ht?r+this.delimiters[0]+i+this.delimiters[1]+e.getFullYear():this.localeDisplayFormat===gt?i+this.delimiters[0]+r+this.delimiters[1]+e.getFullYear():e.getFullYear()+this.delimiters[0]+i+this.delimiters[1]+r}return""},Object.defineProperty(e.prototype,"placeholderText",{get:function(){var e=this.localeDisplayFormat.format;return e[0]+this.delimiters[0]+e[1]+this.delimiters[1]+e[2]},enumerable:!1,configurable:!0}),e.prototype.isValidMonth=function(e){return e>-1&&e<12},e.prototype.isValidDate=function(e,t,n){return n>0&&n<=yt(e,t)},e.prototype.validateAndGetDate=function(e,t,n){var r=+e,i=+t-1,o=+n;if(!this.isValidMonth(i)||!this.isValidDate(r,i,o))return null;var s=function(e){if(e>9999||e>100&&e<999||e<10)return-1;if(e>999)return e;var t=(new Date).getFullYear(),n=e+100*Math.floor(t/100);return n>t+20&&(n-=100),n}(r);return-1!==s?new Date(s,i,o):null},e.prototype.getDateValueFromDateString=function(e){if(!e)return null;var t=e.match(at);if(!t||3!==t.length)return null;var n=ie(t,3),r=n[0],i=n[1],o=n[2];return this.localeDisplayFormat===ht?this.validateAndGetDate(o,i,r):this.localeDisplayFormat===gt?this.validateAndGetDate(o,r,i):this.validateAndGetDate(r,i,o)},e}();Et.decorators=[{type:t.Injectable}],Et.ctorParameters=function(){return[{type:Ot}]};var wt=function(){function e(e,t,n,r,i){this._localeHelperService=e,this._dateNavigationService=t,this._datepickerFocusService=n,this._dateIOService=r,this._elRef=i,this._subs=[],this.generateCalendarView(),this.initializeSubscriptions()}return Object.defineProperty(e.prototype,"localeDays",{get:function(){return this._localeHelperService.localeDays},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this._dateNavigationService.displayedCalendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedDay",{get:function(){return this._dateNavigationService.selectedDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusedDay",{get:function(){return this._dateNavigationService.focusedDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"today",{get:function(){return this._dateNavigationService.today},enumerable:!1,configurable:!0}),e.prototype.initializeSubscriptions=function(){var e=this;this._subs.push(this._dateNavigationService.displayedCalendarChange.subscribe((function(){e.generateCalendarView()}))),this._subs.push(this._dateNavigationService.focusedDayChange.subscribe((function(t){e.calendarViewModel.updateFocusableDay(t)}))),this._subs.push(this._dateNavigationService.focusOnCalendarChange.subscribe((function(){e._datepickerFocusService.focusCell(e._elRef)})))},e.prototype.generateCalendarView=function(){this.calendarViewModel=new vt(this.calendar,this.selectedDay,this.focusedDay,this.today,this._localeHelperService.firstDayOfWeek,this._dateIOService.disabledDates)},e.prototype.onKeyDown=function(e){if(e&&this.focusedDay)switch(e.keyCode){case 38:e.preventDefault(),this._dateNavigationService.incrementFocusDay(-7);break;case 40:e.preventDefault(),this._dateNavigationService.incrementFocusDay(7);break;case 37:e.preventDefault(),this._dateNavigationService.incrementFocusDay(-1);break;case 39:e.preventDefault(),this._dateNavigationService.incrementFocusDay(1)}},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e.prototype.ngOnDestroy=function(){this._subs.forEach((function(e){return e.unsubscribe()}))},e}();wt.decorators=[{type:t.Component,args:[{selector:"clr-calendar",template:'<table class="calendar-table">\n <tr class="calendar-row weekdays">\n <td *ngFor="let day of localeDays" class="calendar-cell weekday" role="heading" [attr.aria-label]="day.day">\n {{day.narrow}}\n </td>\n </tr>\n <tr class="calendar-row" *ngFor="let row of calendarViewModel.calendarView">\n <td *ngFor="let dayView of row" class="calendar-cell">\n <clr-day [clrDayView]="dayView"></clr-day>\n </td>\n </tr>\n</table>\n'}]}],wt.ctorParameters=function(){return[{type:Ot},{type:St},{type:It},{type:Et},{type:t.ElementRef}]},wt.propDecorators={onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var _t=function(){function e(){this._focused=new i.BehaviorSubject(!1)}return Object.defineProperty(e.prototype,"focusChange",{get:function(){return this._focused.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focused",{set:function(e){this._focused.next(e)},enumerable:!1,configurable:!0}),e}();_t.decorators=[{type:t.Injectable}];var Pt=function(){function e(){this._touchedChange=new i.Subject,this._dirtyChange=new i.Subject}return Object.defineProperty(e.prototype,"touchedChange",{get:function(){return this._touchedChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtyChange",{get:function(){return this._dirtyChange.asObservable()},enumerable:!1,configurable:!0}),e.prototype.markAsTouched=function(){this._touchedChange.next()},e.prototype.markAsDirty=function(){this._dirtyChange.next()},e.prototype.setDisabled=function(e){this.disabled=e},e}();Pt.decorators=[{type:t.Injectable}];var Dt=function(){function e(e){this._document=e,this._isUserAgentMobile=!1,this._document&&(this._isUserAgentMobile=ct.test(e.defaultView.navigator.userAgent),this._innerWidth=e.defaultView.innerWidth)}return Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!(this._document&&this._innerWidth<768&&this._isUserAgentMobile)},enumerable:!1,configurable:!0}),e}();Dt.decorators=[{type:t.Injectable}],Dt.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]};var Tt=function(){function e(){this._currentView="DAYVIEW",this.position=U["bottom-left"]}return Object.defineProperty(e.prototype,"isDayView",{get:function(){return"DAYVIEW"===this._currentView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isYearView",{get:function(){return"YEARVIEW"===this._currentView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMonthView",{get:function(){return"MONTHVIEW"===this._currentView},enumerable:!1,configurable:!0}),e.prototype.changeToMonthView=function(){this._currentView="MONTHVIEW"},e.prototype.changeToYearView=function(){this._currentView="YEARVIEW"},e.prototype.changeToDayView=function(){this._currentView="DAYVIEW"},e}();Tt.decorators=[{type:t.Injectable}];var xt=function(e){function t(t,n,r,i,o,s,a,c,l,p,u){var d=e.call(this,u,l,c,p)||this;return d.toggleService=t,d.dateNavigationService=n,d.datepickerEnabledService=r,d.dateFormControlService=i,d.commonStrings=o,d.focusService=s,d.viewManagerService=a,d.controlClassService=c,d.layoutService=l,d.ngControlService=p,d.ifControlStateService=u,d.focus=!1,d.subscriptions.push(d.focusService.focusChange.subscribe((function(e){d.focus=e}))),d.subscriptions.push(d.toggleService.openChange.subscribe((function(){d.dateFormControlService.markAsTouched()}))),d}return ne(t,e),Object.defineProperty(t.prototype,"clrPosition",{set:function(e){e&&U[e]&&(this.viewManagerService.position=U[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popoverPosition",{get:function(){return this.viewManagerService.position},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"open",{get:function(){return this.toggleService.open},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionButton",{set:function(e){this.toggleButton=e},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this;this.subscriptions.push(this.toggleService.openChange.subscribe((function(t){t?e.initializeCalendar():e.toggleButton.nativeElement.focus()})))},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.datepickerEnabledService.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputDateDisabled",{get:function(){return this.control&&this.control.disabled||this.dateFormControlService&&this.dateFormControlService.disabled},enumerable:!1,configurable:!0}),t.prototype.initializeCalendar=function(){this.dateNavigationService.initializeCalendar()},t}(Pe);function At(e){return null!==e&&("string"==typeof e?e.length>=0:"boolean"==typeof e&&e)}xt.decorators=[{type:t.Component,args:[{selector:"clr-date-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper" clrPopoverAnchor>\n <div class="clr-input-group" [class.clr-focus]="focus">\n <ng-content select="[clrDate]"></ng-content>\n <button\n #actionButton\n type="button"\n clrPopoverOpenCloseButton\n class="clr-input-group-icon-action"\n [attr.title]="commonStrings.keys.datepickerToggle"\n [attr.aria-label]="commonStrings.keys.datepickerToggle"\n [disabled]="isInputDateDisabled"\n *ngIf="isEnabled"\n >\n <cds-icon status="info" shape="calendar"></cds-icon>\n </button>\n <clr-datepicker-view-manager\n *clrPopoverContent="open; at: popoverPosition; outsideClickToClose: true; scrollToClose: true"\n clrFocusTrap\n ></clr-datepicker-view-manager>\n </div>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',providers:[ce,y,v,P,Ot,ge,_t,pe,Et,St,Dt,Pt,Tt,he],host:{"[class.clr-date-container]":"true","[class.clr-form-control-disabled]":"isInputDateDisabled","[class.clr-form-control]":"true","[class.clr-row]":"addGrid()"}}]}],xt.ctorParameters=function(){return[{type:y},{type:St},{type:Dt},{type:Pt},{type:V},{type:_t},{type:Tt},{type:ge},{type:de,decorators:[{type:t.Optional}]},{type:pe},{type:he}]},xt.propDecorators={clrPosition:[{type:t.Input,args:["clrPosition"]}],actionButton:[{type:t.ViewChild,args:["actionButton"]}]};var kt=function(e){function n(n,r,i,o,s,a,c,l,p,u,d,h,g){var f=e.call(this,n,xt,r,s,o,i)||this;return f.el=i,f.renderer=o,f.control=s,f.container=a,f.dateIOService=c,f.dateNavigationService=l,f.datepickerEnabledService=p,f.dateFormControlService=u,f.platformId=d,f.focusService=h,f.datepickerFocusService=g,f.dateChange=new t.EventEmitter(!1),f.index=1,f}return ne(n,e),Object.defineProperty(n.prototype,"date",{set:function(e){this.previousDateChange!==e&&this.updateDate(this.getValidDateValueFromDate(e)),this.initialClrDateInputValue||(this.initialClrDateInputValue=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"min",{set:function(e){this.dateIOService.setMinDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"max",{set:function(e){this.dateIOService.setMaxDate(e)},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.populateServicesFromContainerComponent(),this.subscriptions.push(this.listenForUserSelectedDayChanges(),this.listenForControlValueChanges(),this.listenForTouchChanges(),this.listenForDirtyChanges(),this.listenForInputRefocus())},n.prototype.ngAfterViewInit=function(){this.processInitialInputs()},n.prototype.setFocusStates=function(){this.setFocus(!0)},n.prototype.triggerValidation=function(){e.prototype.triggerValidation.call(this),this.setFocus(!1)},Object.defineProperty(n.prototype,"placeholderText",{get:function(){return this.placeholder?this.placeholder:this.dateIOService.placeholderText},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"inputType",{get:function(){return r.isPlatformBrowser(this.platformId)&&this.usingNativeDatepicker()?"date":"text"},enumerable:!1,configurable:!0}),n.prototype.onValueChange=function(e){var t=this.dateIOService.getDateValueFromDateString(e.value);if(this.usingClarityDatepicker()&&t)this.updateDate(t,!0);else if(this.usingNativeDatepicker()){var n=ie(e.value.split("-"),3),r=n[0],i=n[1],o=n[2];this.updateDate(new Date(+r,+i-1,+o),!0)}else this.emitDateOutput(null)},Object.defineProperty(n.prototype,"disabled",{get:function(){return this.dateFormControlService?this.dateFormControlService.disabled:null},set:function(e){this.dateFormControlService&&this.dateFormControlService.setDisabled(At(e))},enumerable:!1,configurable:!0}),n.prototype.usingClarityDatepicker=function(){return this.datepickerEnabledService.isEnabled},n.prototype.usingNativeDatepicker=function(){return!this.datepickerEnabledService.isEnabled},n.prototype.setFocus=function(e){this.focusService&&(this.focusService.focused=e)},n.prototype.populateServicesFromContainerComponent=function(){this.container||(this.dateIOService=this.getProviderFromContainer(Et),this.dateNavigationService=this.getProviderFromContainer(St),this.datepickerEnabledService=this.getProviderFromContainer(Dt),this.dateFormControlService=this.getProviderFromContainer(Pt))},n.prototype.processInitialInputs=function(){this.datepickerHasFormControl()?this.updateDate(this.dateIOService.getDateValueFromDateString(this.control.value)):this.updateDate(this.initialClrDateInputValue)},n.prototype.updateDate=function(e,t){void 0===t&&(t=!1);var n=this.getValidDateValueFromDate(e);t?this.emitDateOutput(n):this.previousDateChange=n,this.dateNavigationService&&(this.dateNavigationService.selectedDay=n?new mt(n.getFullYear(),n.getMonth(),n.getDate()):null),this.updateInput(n)},n.prototype.updateInput=function(e){if(e){var t=this.dateIOService.toLocaleDisplayFormatString(e);this.usingNativeDatepicker()?(e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),this.renderer.setProperty(this.el.nativeElement,"valueAsDate",e)):this.datepickerHasFormControl()&&t!==this.control.value?this.control.control.setValue(t):this.renderer.setProperty(this.el.nativeElement,"value",t)}else this.renderer.setProperty(this.el.nativeElement,"value","")},n.prototype.getValidDateValueFromDate=function(e){if(this.dateIOService){var t=this.dateIOService.toLocaleDisplayFormatString(e);return this.dateIOService.getDateValueFromDateString(t)}return null},n.prototype.emitDateOutput=function(e){var t,n;t=e,n=this.previousDateChange,t instanceof Date&&n instanceof Date&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()?!e&&this.previousDateChange&&(this.dateChange.emit(null),this.previousDateChange=null):(this.dateChange.emit(e),this.previousDateChange=e)},n.prototype.datepickerHasFormControl=function(){return!!this.control},n.prototype.listenForControlValueChanges=function(){var e=this;return i.of(this.datepickerHasFormControl()).pipe(o.filter((function(e){return e})),o.switchMap((function(){return e.control.valueChanges})),o.filter((function(){return!e.datepickerFocusService.elementIsFocused(e.el.nativeElement)}))).subscribe((function(t){return e.updateDate(e.dateIOService.getDateValueFromDateString(t))}))},n.prototype.listenForUserSelectedDayChanges=function(){var e=this;return this.dateNavigationService.selectedDayChange.subscribe((function(t){return e.updateDate(t.toDate(),!0)}))},n.prototype.listenForTouchChanges=function(){var e=this;return this.dateFormControlService.touchedChange.pipe(o.filter((function(){return e.datepickerHasFormControl()}))).subscribe((function(){return e.control.control.markAsTouched()}))},n.prototype.listenForDirtyChanges=function(){var e=this;return this.dateFormControlService.dirtyChange.pipe(o.filter((function(){return e.datepickerHasFormControl()}))).subscribe((function(){return e.control.control.markAsDirty()}))},n.prototype.listenForInputRefocus=function(){var e=this;return this.dateNavigationService.selectedDayChange.pipe(o.filter((function(e){return!!e}))).subscribe((function(){return e.datepickerFocusService.focusInput(e.el.nativeElement)}))},n}(Ie);kt.decorators=[{type:t.Directive,args:[{selector:"[clrDate]",host:{"[class.clr-input]":"true"},providers:[It]}]}],kt.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:t.ElementRef},{type:t.Renderer2},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:xt,decorators:[{type:t.Optional}]},{type:Et,decorators:[{type:t.Optional}]},{type:St,decorators:[{type:t.Optional}]},{type:Dt,decorators:[{type:t.Optional}]},{type:Pt,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:_t,decorators:[{type:t.Optional}]},{type:It}]},kt.propDecorators={placeholder:[{type:t.Input}],dateChange:[{type:t.Output,args:["clrDateChange"]}],date:[{type:t.Input,args:["clrDate"]}],min:[{type:t.Input}],max:[{type:t.Input}],setFocusStates:[{type:t.HostListener,args:["focus"]}],triggerValidation:[{type:t.HostListener,args:["blur"]}],placeholderText:[{type:t.HostBinding,args:["attr.placeholder"]}],inputType:[{type:t.HostBinding,args:["attr.type"]}],onValueChange:[{type:t.HostListener,args:["change",["$event.target"]]}],disabled:[{type:t.HostBinding,args:["disabled"]},{type:t.Input,args:["disabled"]}]};var Rt=function(){function e(e){this.viewManagerService=e}return Object.defineProperty(e.prototype,"isMonthView",{get:function(){return this.viewManagerService.isMonthView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isYearView",{get:function(){return this.viewManagerService.isYearView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDayView",{get:function(){return this.viewManagerService.isDayView},enumerable:!1,configurable:!0}),e}();Rt.decorators=[{type:t.Component,args:[{selector:"clr-datepicker-view-manager",template:'\x3c!--\n* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n* This software is released under MIT license.\n* The full license information can be found in LICENSE in the root directory of this project.\n--\x3e\n\n<clr-monthpicker *ngIf="isMonthView"></clr-monthpicker>\n<clr-yearpicker *ngIf="isYearView"></clr-yearpicker>\n<clr-daypicker *ngIf="isDayView"></clr-daypicker>\n',providers:[It],host:{"[class.datepicker]":"true","[attr.aria-modal]":"true"}}]}],Rt.ctorParameters=function(){return[{type:Tt}]};var Lt=function(){function e(e,t,n){this._dateNavigationService=e,this._toggleService=t,this.dateFormControlService=n}return Object.defineProperty(e.prototype,"dayView",{get:function(){return this._dayView},set:function(e){this._dayView=e,this.dayString=this._dayView.dayModel.toDateString()},enumerable:!1,configurable:!0}),e.prototype.onDayViewFocus=function(){this._dateNavigationService.focusedDay=this.dayView.dayModel},e.prototype.selectDay=function(){var e=this.dayView.dayModel;this._dateNavigationService.notifySelectedDayChanged(e),this.dateFormControlService.markAsDirty(),this._toggleService.open=!1},e}();Lt.decorators=[{type:t.Component,args:[{selector:"clr-day",template:'\n <button\n class="day-btn"\n type="button"\n [class.is-today]="dayView.isTodaysDate"\n [class.is-excluded]="dayView.isExcluded"\n [class.is-disabled]="dayView.isDisabled"\n [class.is-selected]="dayView.isSelected"\n [attr.tabindex]="dayView.tabIndex"\n (click)="selectDay()"\n (focus)="onDayViewFocus()"\n [attr.aria-label]="dayString"\n >\n {{ dayView.dayModel.date }}\n </button>\n ',host:{"[class.day]":"true"}}]}],Lt.ctorParameters=function(){return[{type:St},{type:y},{type:Pt}]},Lt.propDecorators={dayView:[{type:t.Input,args:["clrDayView"]}]};var jt=function(){function e(e,t,n,r){this._viewManagerService=e,this._dateNavigationService=t,this._localeHelperService=n,this.commonStrings=r}return Object.defineProperty(e.prototype,"monthAttrString",{get:function(){return this.commonStrings.parse(this.commonStrings.keys.datepickerSelectMonthText,{CALENDAR_MONTH:this.calendarMonth})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearAttrString",{get:function(){return this.commonStrings.parse(this.commonStrings.keys.datepickerSelectYearText,{CALENDAR_YEAR:this.calendarYear.toString()})},enumerable:!1,configurable:!0}),e.prototype.changeToMonthView=function(){this._viewManagerService.changeToMonthView()},e.prototype.changeToYearView=function(){this._viewManagerService.changeToYearView()},Object.defineProperty(e.prototype,"calendarMonth",{get:function(){return this._localeHelperService.localeMonthsAbbreviated[this._dateNavigationService.displayedCalendar.month]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendarYear",{get:function(){return this._dateNavigationService.displayedCalendar.year},enumerable:!1,configurable:!0}),e.prototype.nextMonth=function(){this._dateNavigationService.moveToNextMonth()},e.prototype.previousMonth=function(){this._dateNavigationService.moveToPreviousMonth()},e.prototype.currentMonth=function(){this._dateNavigationService.moveToCurrentMonth()},e}();jt.decorators=[{type:t.Component,args:[{selector:"clr-daypicker",template:'<div class="clr-sr-only">{{commonStrings.keys.modalContentStart}}</div>\n<div class="calendar-header">\n <div class="calendar-pickers">\n <button\n class="calendar-btn monthpicker-trigger"\n type="button"\n (click)="changeToMonthView()"\n [attr.aria-label]="monthAttrString"\n [attr.title]="monthAttrString"\n >\n {{calendarMonth}}\n </button>\n <button\n class="calendar-btn yearpicker-trigger"\n type="button"\n (click)="changeToYearView()"\n [attr.aria-label]="yearAttrString"\n [attr.title]="yearAttrString"\n >\n {{calendarYear}}\n </button>\n </div>\n <div class="calendar-switchers">\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="previousMonth()"\n [attr.aria-label]="commonStrings.keys.datepickerPreviousMonth"\n >\n <cds-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.datepickerPreviousMonth"></cds-icon>\n </button>\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="currentMonth()"\n [attr.aria-label]="commonStrings.keys.datepickerCurrentMonth"\n >\n <cds-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentMonth"></cds-icon>\n </button>\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="nextMonth()"\n [attr.aria-label]="commonStrings.keys.datepickerNextMonth"\n >\n <cds-icon shape="angle" direction="right"></cds-icon>\n </button>\n </div>\n</div>\n<clr-calendar></clr-calendar>\n<div class="clr-sr-only">{{commonStrings.keys.modalContentEnd}}</div>\n',host:{"[class.daypicker]":"true"}}]}],jt.ctorParameters=function(){return[{type:Tt},{type:St},{type:Ot},{type:V}]};var Nt=function(){function e(e,t,n,r,i){this._viewManagerService=e,this._localeHelperService=t,this._dateNavigationService=n,this._datepickerFocusService=r,this._elRef=i,this._focusedMonthIndex=this.calendarMonthIndex}return Object.defineProperty(e.prototype,"monthNames",{get:function(){return this._localeHelperService.localeMonthsWide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendarMonthIndex",{get:function(){return this._dateNavigationService.displayedCalendar.month},enumerable:!1,configurable:!0}),e.prototype.changeMonth=function(e){this._dateNavigationService.changeMonth(e),this._viewManagerService.changeToDayView()},e.prototype.getTabIndex=function(e){return e===this._focusedMonthIndex?0:-1},e.prototype.onKeyDown=function(e){if(e){var t=e.keyCode;38===t&&this._focusedMonthIndex>0?(e.preventDefault(),this._focusedMonthIndex--,this._datepickerFocusService.focusCell(this._elRef)):40===t&&this._focusedMonthIndex<11?(e.preventDefault(),this._focusedMonthIndex++,this._datepickerFocusService.focusCell(this._elRef)):39===t&&this._focusedMonthIndex<6?(e.preventDefault(),this._focusedMonthIndex=this._focusedMonthIndex+6,this._datepickerFocusService.focusCell(this._elRef)):37===t&&this._focusedMonthIndex>5&&(e.preventDefault(),this._focusedMonthIndex=this._focusedMonthIndex-6,this._datepickerFocusService.focusCell(this._elRef))}},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e}();Nt.decorators=[{type:t.Component,args:[{selector:"clr-monthpicker",template:'\n <button\n type="button"\n class="calendar-btn month"\n *ngFor="let month of monthNames; let monthIndex = index"\n (click)="changeMonth(monthIndex)"\n [class.is-selected]="monthIndex === calendarMonthIndex"\n [attr.tabindex]="getTabIndex(monthIndex)"\n >\n {{ month }}\n </button>\n ',host:{"[class.monthpicker]":"true"}}]}],Nt.ctorParameters=function(){return[{type:Tt},{type:Ot},{type:St},{type:It},{type:t.ElementRef}]},Nt.propDecorators={onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var Ft=function(){function e(e){this.year=e,this.yearRange=[],this.generateYearRange()}return Object.defineProperty(e.prototype,"middleYear",{get:function(){return this.yearRange[Math.floor(this.yearRange.length/2)]},enumerable:!1,configurable:!0}),e.prototype.generateYearRange=function(){var e=this.year%10,t=this.year-e,n=t+10;this.yearRange=this.generateRange(t,n)},e.prototype.generateRange=function(e,t){return Array.from({length:t-e},(function(t,n){return n+e}))},e.prototype.nextDecade=function(){return new e(this.year+10)},e.prototype.previousDecade=function(){return new e(this.year-10)},e.prototype.currentDecade=function(){return new e((new Date).getFullYear())},e.prototype.inRange=function(e){return this.yearRange.indexOf(e)>-1},e}(),Mt=function(){function e(e,t,n,r,i){this._dateNavigationService=e,this._viewManagerService=t,this._datepickerFocusService=n,this._elRef=r,this.commonStrings=i,this.yearRangeModel=new Ft(this.calendarYear),this._focusedYear=this.calendarYear,this.updateRange(this.yearRangeModel)}return Object.defineProperty(e.prototype,"calendarYear",{get:function(){return this._dateNavigationService.displayedCalendar.year},enumerable:!1,configurable:!0}),e.prototype.incrementFocusYearBy=function(e){this._focusedYear=this._focusedYear+e,this.yearRangeModel.inRange(this._focusedYear)||(this.yearRangeModel=e>0?this.yearRangeModel.nextDecade():this.yearRangeModel.previousDecade()),this._datepickerFocusService.focusCell(this._elRef)},e.prototype.changeYear=function(e){this._dateNavigationService.changeYear(e),this._viewManagerService.changeToDayView()},e.prototype.previousDecade=function(){this.yearRangeModel=this.yearRangeModel.previousDecade(),this.updateRange(this.yearRangeModel)},e.prototype.currentDecade=function(){this.yearRangeModel.inRange(this._dateNavigationService.today.year)||(this.yearRangeModel=this.yearRangeModel.currentDecade()),this._datepickerFocusService.focusCell(this._elRef),this.updateRange(this.yearRangeModel)},e.prototype.nextDecade=function(){this.yearRangeModel=this.yearRangeModel.nextDecade(),this.updateRange(this.yearRangeModel)},e.prototype.getTabIndex=function(e){return this.yearRangeModel.inRange(this._focusedYear)||(this.yearRangeModel.inRange(this.calendarYear)?this._focusedYear=this.calendarYear:this._focusedYear=this.yearRangeModel.middleYear),this._focusedYear===e?0:-1},e.prototype.onKeyDown=function(e){if(e){var t=e.keyCode;38===t?(e.preventDefault(),this.incrementFocusYearBy(-1)):40===t?(e.preventDefault(),this.incrementFocusYearBy(1)):39===t?(e.preventDefault(),this.incrementFocusYearBy(5)):37===t&&(e.preventDefault(),this.incrementFocusYearBy(-5))}},e.prototype.updateRange=function(e){var t=e.yearRange[0],n=e.yearRange[e.yearRange.length-1];this.decadeRange=t+" to "+n},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e}();Mt.decorators=[{type:t.Component,args:[{selector:"clr-yearpicker",template:'\n <div class="year-switchers">\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="previousDecade()"\n [attr.aria-label]="commonStrings.keys.datepickerPreviousDecade"\n >\n <cds-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.datepickerPreviousDecade"></cds-icon>\n </button>\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="currentDecade()"\n [attr.aria-label]="commonStrings.keys.datepickerCurrentDecade"\n >\n <cds-icon shape="event" [attr.title]="commonStrings.keys.datepickerCurrentDecade"></cds-icon>\n </button>\n <button\n class="calendar-btn switcher"\n type="button"\n (click)="nextDecade()"\n [attr.aria-label]="commonStrings.keys.datepickerNextDecade"\n >\n <cds-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.datepickerNextDecade"></cds-icon>\n </button>\n </div>\n <div class="years">\n <button\n *ngFor="let year of yearRangeModel.yearRange"\n type="button"\n class="calendar-btn year"\n [attr.tabindex]="getTabIndex(year)"\n [class.is-selected]="year === calendarYear"\n (click)="changeYear(year)"\n >\n {{ year }}\n </button>\n </div>\n ',host:{"[class.yearpicker]":"true"}}]}],Mt.ctorParameters=function(){return[{type:St},{type:Tt},{type:It},{type:t.ElementRef},{type:V}]},Mt.propDecorators={onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var Vt=[Lt,xt,kt,Rt,Nt,Mt,jt,wt],Bt=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon,n.angleIcon,n.eventIcon,n.calendarIcon)};Bt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,ee,Qe,k,h,rt,je],declarations:[Vt],exports:[Vt],entryComponents:[xt]}]}],Bt.ctorParameters=function(){return[]};var zt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t}(Pe);zt.decorators=[{type:t.Component,args:[{selector:"clr-input-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper">\n <ng-content select="[clrInput]"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[he,pe,ce,ge]}]}];var Ht=function(e){function t(t,n,r,i,o){var s=e.call(this,t,zt,n,r,i,o)||this;return s.index=1,s}return ne(t,e),t}(Ie);Ht.decorators=[{type:t.Directive,args:[{selector:"[clrInput]",host:{"[class.clr-input]":"true"}}]}],Ht.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var Gt=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};Gt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,h,je],declarations:[Ht,zt],exports:[je,Ht,zt],entryComponents:[zt]}]}],Gt.ctorParameters=function(){return[]};var Wt=new t.InjectionToken(void 0);function Ut(){return new i.BehaviorSubject(!1)}var Yt={provide:Wt,useFactory:Ut},Kt=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,t,n,r,i)||this;return c.focusService=o,c.toggleService=s,c.commonStrings=a,c.show=!1,c.focus=!1,c._toggle=!0,c.subscriptions.push(c.focusService.focusChange.subscribe((function(e){c.focus=e}))),c}return ne(t,e),Object.defineProperty(t.prototype,"clrToggle",{get:function(){return this._toggle},set:function(e){this._toggle=e,e||(this.show=!1)},enumerable:!1,configurable:!0}),t.prototype.toggle=function(){this.show=!this.show,this.toggleService.next(this.show)},t}(Pe);Kt.decorators=[{type:t.Component,args:[{selector:"clr-password-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper">\n <div class="clr-input-group" [class.clr-focus]="focus">\n <ng-content select="[clrPassword]"></ng-content>\n <button\n *ngIf="clrToggle"\n (click)="toggle()"\n [disabled]="control?.disabled"\n class="clr-input-group-icon-action"\n type="button"\n >\n <cds-icon\n status="info"\n [attr.shape]="show ? \'eye-hide\' : \'eye\'"\n [attr.title]="show ? commonStrings.keys.hide : commonStrings.keys.show"\n ></cds-icon>\n </button>\n </div>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[pe,ce,ge,_t,Yt,he]}]}],Kt.ctorParameters=function(){return[{type:he},{type:de,decorators:[{type:t.Optional}]},{type:ge},{type:pe},{type:_t},{type:i.BehaviorSubject,decorators:[{type:t.Inject,args:[Wt]}]},{type:V}]},Kt.propDecorators={clrToggle:[{type:t.Input,args:["clrToggle"]}]};var Zt=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,t,Kt,n,r,i,o)||this;if(c.focusService=s,c.toggleService=a,c.index=1,!c.focusService)throw new Error("clrPassword requires being wrapped in <clr-password-container>");return c.subscriptions.push(c.toggleService.subscribe((function(e){i.setProperty(o.nativeElement,"type",e?"text":"password")}))),c}return ne(t,e),t.prototype.triggerFocus=function(){this.focusService&&(this.focusService.focused=!0)},t.prototype.triggerValidation=function(){e.prototype.triggerValidation.call(this),this.focusService&&(this.focusService.focused=!1)},t}(Ie);Zt.decorators=[{type:t.Directive,args:[{selector:"[clrPassword]",host:{"[class.clr-input]":"true"}}]}],Zt.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef},{type:_t,decorators:[{type:t.Optional}]},{type:i.BehaviorSubject,decorators:[{type:t.Optional},{type:t.Inject,args:[Wt]}]}]},Zt.propDecorators={triggerFocus:[{type:t.HostListener,args:["focus"]}],triggerValidation:[{type:t.HostListener,args:["blur"]}]};var qt=function(){n.ClarityIcons.addIcons(n.eyeHideIcon,n.eyeIcon,n.exclamationCircleIcon,n.checkCircleIcon)};qt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,h,je],declarations:[Zt,Kt],exports:[je,Zt,Kt],entryComponents:[Kt]}]}],qt.ctorParameters=function(){return[]};var Xt=function(){function e(){this._dynamic=!1}return e.prototype.ngOnInit=function(){this.label&&this.label.disableGrid()},e}();Xt.decorators=[{type:t.Component,args:[{selector:"clr-radio-wrapper",template:'\n <ng-content select="[clrRadio]"></ng-content>\n <ng-content select="label"></ng-content>\n <label *ngIf="!label"></label>\n ',host:{"[class.clr-radio-wrapper]":"true"},providers:[ce]}]}],Xt.propDecorators={label:[{type:t.ContentChild,args:[Oe,{static:!0}]}]};var $t=function(e){function t(t,n,r,i,o){return e.call(this,t,Xt,n,r,i,o)||this}return ne(t,e),t}(Ie);$t.decorators=[{type:t.Directive,args:[{selector:"[clrRadio]"}]}],$t.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var Jt=function(e){function t(t,n,r,i){var o=e.call(this,i,t,n,r)||this;return o.layoutService=t,o.controlClassService=n,o.ngControlService=r,o.ifControlStateService=i,o.inline=!1,o}return ne(t,e),Object.defineProperty(t.prototype,"clrInline",{get:function(){return this.inline},set:function(e){this.inline="string"==typeof e?"false"!==e:!!e},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.setAriaRoles()},t.prototype.setAriaRoles=function(){this.role=this.radios.length?"group":null},t}(Pe);Jt.decorators=[{type:t.Component,args:[{selector:"clr-radio-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [class.clr-control-inline]="clrInline" [ngClass]="controlClass()">\n <ng-content select="clr-radio-wrapper"></ng-content>\n <div class="clr-subtext-wrapper">\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()","[attr.role]":"role"},providers:[pe,he,ge,be]}]}],Jt.ctorParameters=function(){return[{type:de,decorators:[{type:t.Optional}]},{type:ge},{type:pe},{type:he}]},Jt.propDecorators={radios:[{type:t.ContentChildren,args:[$t,{descendants:!0}]}],clrInline:[{type:t.Input}]};var Qt=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};Qt.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,je,ee,h],declarations:[$t,Jt,Xt],exports:[je,$t,Jt,Xt],entryComponents:[Xt]}]}],Qt.ctorParameters=function(){return[]};var en=function(e){function t(t,n,r,i){var o=e.call(this,i,t,n,r)||this;return o.layoutService=t,o.controlClassService=n,o.ngControlService=r,o.ifControlStateService=i,o.multi=!1,o}return ne(t,e),t.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.ngControlService.controlChanges.subscribe((function(t){t&&(e.multi=t.valueAccessor instanceof a.SelectMultipleControlValueAccessor,e.control=t)})))},t.prototype.wrapperClass=function(){return this.multi?"clr-multiselect-wrapper":"clr-select-wrapper"},t}(Pe);en.decorators=[{type:t.Component,args:[{selector:"clr-select-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div [ngClass]="wrapperClass()">\n <ng-content select="[clrSelect]"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[he,pe,ce,ge]}]}],en.ctorParameters=function(){return[{type:de,decorators:[{type:t.Optional}]},{type:ge},{type:pe},{type:he}]},en.propDecorators={multiple:[{type:t.ContentChild,args:[a.SelectMultipleControlValueAccessor,{static:!1}]}]};var tn=function(e){function t(t,n,r,i,o){var s=e.call(this,t,en,n,r,i,o)||this;return s.index=1,s}return ne(t,e),t}(Ie);tn.decorators=[{type:t.Directive,args:[{selector:"[clrSelect]",host:{"[class.clr-select]":"true"}}]}],tn.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var nn=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};nn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,h,je],declarations:[tn,en],exports:[je,tn,en],entryComponents:[en]}]}],nn.ctorParameters=function(){return[]};var rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t}(Pe);rn.decorators=[{type:t.Component,args:[{selector:"clr-textarea-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-textarea-wrapper">\n <ng-content select="[clrTextarea]"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[he,pe,ce,ge]}]}];var on=function(e){function t(t,n,r,i,o){var s=e.call(this,t,rn,n,r,i,o)||this;return s.index=1,s}return ne(t,e),t}(Ie);on.decorators=[{type:t.Directive,args:[{selector:"[clrTextarea]",host:{"[class.clr-textarea]":"true"}}]}],on.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var sn=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};sn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,h,je],declarations:[on,rn],exports:[je,on,rn],entryComponents:[rn]}]}],sn.ctorParameters=function(){return[]};var an=function(e){function t(t,n,r,i,o,s){var a=e.call(this,s,t,n,r)||this;return a.renderer=i,a.idService=o,a.ifControlStateService=s,a._hasProgress=!1,a}return ne(t,e),Object.defineProperty(t.prototype,"hasProgress",{get:function(){return this._hasProgress},set:function(e){var t=!!e;t!==this._hasProgress&&(this._hasProgress=t)},enumerable:!1,configurable:!0}),t.prototype.getRangeProgressFillWidth=function(){var e=this.renderer.selectRootElement("[clrRange]#"+this.idService.id),t=e.offsetWidth,n=+e.min,r=+e.max;0===n&&0===r&&(r=100);var i=(n+r)/2;return 100*((this.control&&void 0!==this.control.value?this.control.value:i)-n)/(r-n)*t/100+"px"},t}(Pe);an.decorators=[{type:t.Component,args:[{selector:"clr-range-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-range-wrapper" [class.progress-fill]="hasProgress">\n <ng-content select="[clrRange]"></ng-content>\n <span *ngIf="hasProgress" class="fill-input" [style.width]="getRangeProgressFillWidth()"></span>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[he,pe,ce,ge]}]}],an.ctorParameters=function(){return[{type:de,decorators:[{type:t.Optional}]},{type:ge},{type:pe},{type:t.Renderer2},{type:ce},{type:he}]},an.propDecorators={hasProgress:[{type:t.Input,args:["clrRangeHasProgress"]}]};var cn=function(e){function t(t,n,r,i,o){return e.call(this,t,an,n,r,i,o)||this}return ne(t,e),t}(Ie);cn.decorators=[{type:t.Directive,args:[{selector:"[clrRange]",host:{"[class.clr-range]":"true"}}]}],cn.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef}]};var ln=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};ln.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,je,ee,h],declarations:[cn,an],exports:[je,cn,an],entryComponents:[an]}]}],ln.ctorParameters=function(){return[]};var pn=0,un=function(){function e(){this._id="clr-datalist-"+ ++pn,this._idChange=new i.BehaviorSubject(this._id)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this._idChange.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"idChange",{get:function(){return this._idChange.asObservable()},enumerable:!1,configurable:!0}),e}();un.decorators=[{type:t.Injectable}];var dn=function(e){function t(t,n,r,i,o){var s=e.call(this,o,n,t,r)||this;return s.focusService=i,s.ifControlStateService=o,s.focus=!1,s.subscriptions.push(s.focusService.focusChange.subscribe((function(e){return s.focus=e}))),s}return ne(t,e),t}(Pe);dn.decorators=[{type:t.Component,args:[{selector:"clr-datalist-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()">\n <div class="clr-input-wrapper">\n <div class="clr-input-group" [class.clr-focus]="focus">\n <ng-content select="[clrDatalistInput]"></ng-content>\n <ng-content select="datalist"></ng-content>\n </div>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n shape="check-circle"\n status="success"\n aria-hidden="true"\n ></cds-icon>\n </div>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[ge,de,ce,_t,pe,un,he]}]}],dn.ctorParameters=function(){return[{type:ge},{type:de,decorators:[{type:t.Optional}]},{type:pe},{type:_t},{type:he}]};var hn=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,n,dn,r,i,o,s)||this;if(c.focusService=t,c.datalistIdService=a,!c.focusService)throw new Error("clrDatalist requires being wrapped in <clr-datalist-container>");return c}return ne(t,e),t.prototype.ngAfterContentInit=function(){var e=this;this.subscriptions.push(this.datalistIdService.idChange.subscribe((function(t){return e.listValue=t})))},t.prototype.triggerFocus=function(){this.focusService&&(this.focusService.focused=!0)},t.prototype.triggerValidation=function(){e.prototype.triggerValidation.call(this),this.focusService&&(this.focusService.focused=!1)},t}(Ie);hn.decorators=[{type:t.Directive,args:[{selector:"[clrDatalistInput]",host:{"[class.clr-input]":"true","[attr.list]":"listValue"}}]}],hn.ctorParameters=function(){return[{type:_t,decorators:[{type:t.Optional}]},{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef},{type:un}]},hn.propDecorators={triggerFocus:[{type:t.HostListener,args:["focus"]}],triggerValidation:[{type:t.HostListener,args:["blur"]}]};var gn=function(){function e(e){this.datalistIdService=e,this.subscriptions=[]}return e.prototype.ngAfterContentInit=function(){var e=this;this.datalistIdService&&this.subscriptions.push(this.datalistIdService.idChange.subscribe((function(t){return e.datalistId=t})))},Object.defineProperty(e.prototype,"id",{set:function(e){e&&this.datalistIdService?(this.datalistId=e,this.datalistIdService.id=e):e&&(this.datalistId=e)},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();gn.decorators=[{type:t.Directive,args:[{selector:"datalist",host:{"[id]":"datalistId"}}]}],gn.ctorParameters=function(){return[{type:un,decorators:[{type:t.Optional}]}]},gn.propDecorators={id:[{type:t.Input}]};var fn=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon)};fn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,Gt,h],declarations:[gn,hn,dn],exports:[gn,hn,dn]}]}],fn.ctorParameters=function(){return[]};var yn=function(){function e(){}return e.prototype.containsItem=function(e){return!!this.model&&this.model.includes(e)},e.prototype.select=function(e){this.addItem(e)},e.prototype.unselect=function(e){this.removeItem(e)},e.prototype.isEmpty=function(){return!(this.model&&this.model.length>0)},e.prototype.pop=function(){var e;return this.model&&this.model.length>0&&(e=this.model[this.model.length-1],this.removeItem(e)),e},e.prototype.toString=function(e,t){void 0===t&&(t=-1);var n="";return this.model&&(t>-1?this.model[t]&&(e&&this.model[t][e]?n+=this.model[t][e]:n+=this.model[t].toString()):this.model.forEach((function(t){e&&t[e]?n+=t[e]:n+=t.toString(),n+=" "}))),n.trim()},e.prototype.addItem=function(e){this.containsItem(e)||(this.model=this.model||[],this.model.push(e))},e.prototype.removeItem=function(e){if(null!==this.model&&void 0!==this.model){var t=this.model.indexOf(e);t>-1&&this.model.splice(t,1),0===this.model.length&&(this.model=null)}},e}(),bn=function(){function e(){this.loading=!1,this._currentInput="",this._inputChanged=new i.BehaviorSubject(""),this.inputChanged=this._inputChanged.asObservable(),this._selectionChanged=new i.ReplaySubject(1)}return Object.defineProperty(e.prototype,"currentInput",{get:function(){return this._currentInput},set:function(e){e||this.multiselectable||this.setSelectionValue(null),this._currentInput=e,this._inputChanged.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionChanged",{get:function(){return this._selectionChanged.asObservable()},enumerable:!1,configurable:!0}),e.prototype.select=function(e){e&&!this.selectionModel.containsItem(e)&&(this.selectionModel.select(e),this._selectionChanged.next(this.selectionModel))},e.prototype.toggle=function(e){e&&(this.selectionModel.containsItem(e)?this.selectionModel.unselect(e):this.selectionModel.select(e),this._selectionChanged.next(this.selectionModel))},e.prototype.unselect=function(e){e&&this.selectionModel.containsItem(e)&&(this.selectionModel.unselect(e),this._selectionChanged.next(this.selectionModel))},Object.defineProperty(e.prototype,"multiselectable",{get:function(){return this.selectionModel instanceof yn},enumerable:!1,configurable:!0}),e.prototype.setSelectionValue=function(e){this.selectionModel&&this.selectionModel.model!==e&&(this.selectionModel.model||e)&&(this.selectionModel.model=e,this._selectionChanged.next(this.selectionModel))},e}();bn.decorators=[{type:t.Injectable}];var mn,vn=function(){};function Cn(e){return[W,e,{provide:vn,useExisting:e}]}!function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right"}(mn||(mn={}));var Sn=function(){function e(){}return e.prototype.containsItem=function(e){return this.model===e},e.prototype.select=function(e){this.model=e},e.prototype.unselect=function(e){this.containsItem(e)&&(this.model=null)},e.prototype.isEmpty=function(){return!this.model},e.prototype.pop=function(){var e=this.model;return this.model=null,e},e.prototype.toString=function(e){return this.model?e&&this.model[e]?this.model[e]:this.model.toString():""},e}(),In=function(e){function t(){var t=e.apply(this,oe(arguments))||this;return t._focusChanged=new i.BehaviorSubject(null),t}return ne(t,e),Object.defineProperty(t.prototype,"focusChanged",{get:function(){return this._focusChanged.asObservable()},enumerable:!1,configurable:!0}),t.prototype.select=function(e){this.model!==e&&(this.model=e,this._focusChanged.next(e))},t}(Sn),On=function(){function e(e,t,n,r,i){this.id=e,this.toggleService=n,this.selectionService=r,this.platformId=i,this.pseudoFocus=new In,this.optionData=[],this.handleFocusSubscription(),this.renderer=t.createRenderer(null,null)}return e.prototype.handleFocusSubscription=function(){var e=this;this.toggleService.openChange.subscribe((function(t){t||(e.pseudoFocus.model=null)}))},Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger},set:function(e){this._trigger=e,this.addFocusOnBlurListener(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listbox",{get:function(){return this._listbox},set:function(e){this._listbox=e,this.addFocusOnBlurListener(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textInput",{get:function(){return this._textInput},set:function(e){var t=this;this._textInput=e,this.renderer.listen(e,"keydown",(function(e){return!t.handleTextInput(e)})),this.addFocusOnBlurListener(e)},enumerable:!1,configurable:!0}),e.prototype.moveFocusTo=function(e){var t=this,n=this.optionData.findIndex((function(e){return e.equals(t.pseudoFocus.model)}));e===mn.UP?-1===n||0===n?n=this.optionData.length-1:n--:e===mn.DOWN&&(-1===n||n===this.optionData.length-1?n=0:n++),this.pseudoFocus.select(this.optionData[n]),this.pseudoFocus.model&&this.pseudoFocus.model.el&&this.pseudoFocus.model.el.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},e.prototype.openAndMoveTo=function(e){var t=this;this.toggleService.open?this.moveFocusTo(e):(this.toggleService.openChange.pipe(o.take(1)).subscribe((function(n){n&&t.moveFocusTo(e)})),this.toggleService.open=!0)},e.prototype.handleTextInput=function(e){var t=!1,n=g(e.key);if(e)switch(n){case p.Enter:this.toggleService.open&&this.pseudoFocus.model&&(this.selectionService.multiselectable?this.selectionService.toggle(this.pseudoFocus.model.value):this.selectionService.select(this.pseudoFocus.model.value),t=!0);break;case p.Space:this.toggleService.open||(this.toggleService.open=!0,t=!0);break;case p.ArrowUp:this.preventViewportScrolling(e),this.openAndMoveTo(mn.UP),t=!0;break;case p.ArrowDown:this.preventViewportScrolling(e),this.openAndMoveTo(mn.DOWN),t=!0;break;default:e.key===p.Tab||this.selectionService.multiselectable&&e.key===p.Backspace||e.key===p.Escape||this.toggleService.open||(this.toggleService.open=!0)}return t},e.prototype.preventViewportScrolling=function(e){e.preventDefault(),e.stopImmediatePropagation()},e.prototype.focusInput=function(){this.textInput&&r.isPlatformBrowser(this.platformId)&&this.textInput.focus()},e.prototype.addFocusOnBlurListener=function(e){var t=this;r.isPlatformBrowser(this.platformId)&&this.renderer.listen(e,"blur",(function(e){t.focusOutOfComponent(e)&&(t.toggleService.open=!1,t.componentCdRef&&t.componentCdRef.detectChanges())}))},e.prototype.focusOutOfComponent=function(e){var t=e.relatedTarget||document.activeElement;return!(this.textInput.contains(t)||this.trigger.contains(t)||this.listbox.contains(t))},e.prototype.focusFirstActive=function(){if(this.optionData.length>0)if(this.selectionService.selectionModel.isEmpty())this.pseudoFocus.select(this.optionData[0]);else{var e;e=this.selectionService.multiselectable?this.selectionService.selectionModel.model[0]:this.selectionService.selectionModel.model;var t=this.optionData.find((function(t){return t.value===e}));this.pseudoFocus.select(t)}},e.prototype.addOptionValues=function(e){this.optionData=e},e}();On.decorators=[{type:t.Injectable}],On.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:t.RendererFactory2},{type:y},{type:bn},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var En=Cn(On),wn=function(){function e(e,t){this.id=e,this.value=t}return e.prototype.equals=function(e){return!!e&&(this.id===e.id&&this.value===e.value)},e}(),_n=function(){function e(e,t,n,r,i){this.elRef=e,this.commonStrings=t,this.focusHandler=n,this.optionSelectionService=r,this.autoId=i,this.optionProxy=new wn(null,null),this.optionProxy.el=this.elRef.nativeElement}return Object.defineProperty(e.prototype,"optionId",{get:function(){return this._id},set:function(e){this._id=e,this.optionProxy.id=this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.optionProxy.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.optionSelectionService.selectionModel&&this.optionSelectionService.selectionModel.containsItem(this.value)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._id||(this._id="clr-option-"+this.autoId,this.optionProxy.id=this._id)},e.prototype.onClick=function(){this.optionSelectionService.multiselectable?this.optionSelectionService.toggle(this.value):this.optionSelectionService.select(this.value),this.focusHandler.focusInput()},Object.defineProperty(e.prototype,"focusClass",{get:function(){return this.focusHandler.pseudoFocus.containsItem(this.optionProxy)},enumerable:!1,configurable:!0}),e}();_n.decorators=[{type:t.Component,args:[{selector:"clr-option",template:'<ng-content></ng-content>\n <span *ngIf="selected" class="clr-sr-only"> {{ commonStrings.keys.comboboxSelected }} </span> ',providers:[W],host:{"[class.clr-combobox-option]":"true","[attr.role]":'"option"',"[attr.tabindex]":"-1","[attr.id]":"optionId"}}]}],_n.ctorParameters=function(){return[{type:t.ElementRef},{type:V},{type:On},{type:bn},{type:String,decorators:[{type:t.Inject,args:[z]}]}]},_n.propDecorators={optionId:[{type:t.Input,args:["id"]}],value:[{type:t.Input,args:["clrValue"]}],selected:[{type:t.HostBinding,args:["class.active"]}],onClick:[{type:t.HostListener,args:["click"]}],focusClass:[{type:t.HostBinding,args:["class.clr-focus"]}]};var Pn=new t.InjectionToken("POPOVER_HOST_ANCHOR"),Dn=function(){};Dn.decorators=[{type:t.Injectable}];var Tn=0,xn=function(){function t(e,t,n,r,i,o,s,a,c){if(this.optionSelectionService=e,this.id=t,this.ariaService=n,this.el=r,this.commonStrings=i,this.focusHandler=o,this.toggleService=s,this.document=c,this.loading=!1,this.subscriptions=[],!a)throw new Error("clr-options should only be used inside of a clr-combobox");this.optionsId||(this.optionsId="clr-options-"+Tn++)}return t.prototype.searchText=function(e){return this.commonStrings.parse(this.commonStrings.keys.comboboxSearching,{INPUT:e})},Object.defineProperty(t.prototype,"emptyOptions",{get:function(){return!this.optionSelectionService.loading&&0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsId",{get:function(){return this.ariaService.ariaControls},set:function(e){this.ariaService.ariaControls=e,this.ariaService.ariaOwns=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this.focusHandler.addOptionValues(this._items.map((function(e){return e.optionProxy})))},enumerable:!1,configurable:!0}),t.prototype.loadingStateChange=function(t){this.loading=t===e.ClrLoadingState.LOADING},t.prototype.ngAfterViewInit=function(){var e=this;this.focusHandler.listbox=this.el.nativeElement,this.subscriptions.push(i.fromEvent(this.document,"scroll",{capture:!0}).subscribe((function(t){e.toggleService.open&&t.target!==e.el.nativeElement&&t.target!==e.focusHandler.textInput&&(e.toggleService.open=!1)})))},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},t}();xn.decorators=[{type:t.Component,args:[{selector:"clr-options",template:'\n <div *ngIf="optionSelectionService.loading" class="clr-combobox-options-loading">\n <clr-spinner clrInline>\n {{ commonStrings.keys.loading }}\n </clr-spinner>\n <span class="clr-combobox-options-text">\n {{ searchText(optionSelectionService.currentInput) }}\n </span>\n </div>\n\n \x3c!-- Rendered if data set is empty --\x3e\n <div *ngIf="emptyOptions">\n <span class="clr-combobox-options-empty-text">\n {{ commonStrings.keys.comboboxNoResults }}\n </span>\n </div>\n\n \x3c!--Option Groups and Options will be projected here--\x3e\n <ng-content></ng-content>\n ',providers:[{provide:L,useExisting:xn}],host:{"[class.clr-combobox-options]":"true","[attr.role]":'"listbox"',"[id]":"optionsId"}}]}],xn.ctorParameters=function(){return[{type:bn},{type:Number,decorators:[{type:t.Inject,args:[We]}]},{type:Dn},{type:t.ElementRef},{type:V},{type:On},{type:y},{type:t.ElementRef,decorators:[{type:t.Optional},{type:t.Inject,args:[Pn]}]},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]},xn.propDecorators={optionsId:[{type:t.Input,args:["id"]}],items:[{type:t.ContentChildren,args:[_n]}]};var An=function(){this.labelOffset=0};An.decorators=[{type:t.Injectable}];var kn=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,r,i)||this;return a.containerService=o,a.el=s,a}return ne(t,e),t.prototype.ngAfterContentInit=function(){this.label&&(this.containerService.labelText=this.label.labelText)},t.prototype.ngAfterViewInit=function(){this.containerService.labelOffset=this.controlContainer.nativeElement.offsetHeight-this.el.nativeElement.offsetHeight},t}(Pe);kn.decorators=[{type:t.Component,args:[{selector:"clr-combobox-container",template:'\n <ng-content select="label"></ng-content>\n <label *ngIf="!label && addGrid()"></label>\n <div class="clr-control-container" [ngClass]="controlClass()" #controlContainer>\n <ng-content select="clr-combobox"></ng-content>\n <cds-icon\n *ngIf="showInvalid"\n class="clr-validate-icon"\n status="danger"\n shape="exclamation-circle"\n aria-hidden="true"\n ></cds-icon>\n <cds-icon\n *ngIf="showValid"\n class="clr-validate-icon"\n status="success"\n shape="check-circle"\n aria-hidden="true"\n ></cds-icon>\n <ng-content select="clr-control-helper" *ngIf="showHelper"></ng-content>\n <ng-content select="clr-control-error" *ngIf="showInvalid"></ng-content>\n <ng-content select="clr-control-success" *ngIf="showValid"></ng-content>\n </div>\n ',host:{"[class.clr-form-control]":"true","[class.clr-combobox-form-control]":"true","[class.clr-form-control-disabled]":"control?.disabled","[class.clr-row]":"addGrid()"},providers:[he,pe,ce,ge,An]}]}],kn.ctorParameters=function(){return[{type:he},{type:de,decorators:[{type:t.Optional}]},{type:ge},{type:pe},{type:An},{type:t.ElementRef}]},kn.propDecorators={controlContainer:[{type:t.ViewChild,args:["controlContainer"]}],label:[{type:t.ContentChild,args:[Oe]}]};var Rn=function(e){this.template=e};Rn.decorators=[{type:t.Directive,args:[{selector:"[clrOptionSelected]"}]}],Rn.ctorParameters=function(){return[{type:t.TemplateRef}]},Rn.propDecorators={selected:[{type:t.Input,args:["clrOptionSelected"]}]};var Ln=function(){function e(e){this.renderer=e,this._unlistenFuncs=[]}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),e.prototype.reset=function(e){this._current=e},e.prototype.listenToArrowKeys=function(e){var t=this;this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowup",(function(){return!t.move(mn.UP)}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowdown",(function(){return!t.move(mn.DOWN)}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowleft",(function(){return!t.move(mn.LEFT)}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowright",(function(){return!t.move(mn.RIGHT)})))},e.prototype.registerContainer=function(e){var t=this;this.renderer.setAttribute(e,"tabindex","0"),this.listenToArrowKeys(e),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.space",(function(){return!t.activateCurrent()}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.enter",(function(){return!t.activateCurrent()})))},e.prototype.moveTo=function(e){void 0!==e&&(this.current&&this.current.blur(),e.focus(),this._current=e)},e.prototype.move=function(e){var t=this,n=!1;if(this.current){var r=this.current[e];if(r)(i.isObservable(r)?r:i.of(r)).subscribe((function(e){e&&(t.moveTo(e),n=!0)}))}return n},e.prototype.activateCurrent=function(){return!(!this.current||!this.current.activate)&&(this.current.activate(),!0)},e.prototype.detachListeners=function(){this._unlistenFuncs.forEach((function(e){return e()}))},e}();function jn(e,t){return e||new Ln(t)}Ln.decorators=[{type:t.Injectable}],Ln.ctorParameters=function(){return[{type:t.Renderer2}]};var Nn={provide:Ln,useFactory:jn,deps:[[new t.Optional,new t.SkipSelf,Ln],t.Renderer2]},Fn=function(n){function i(r,i,o,s,a,c,l,p,u,d,h,g,f,y,b){var m=n.call(this,r,kn,i,o,s,a)||this;return m.control=o,m.renderer=s,m.el=a,m.optionSelectionService=c,m.commonStrings=l,m.toggleService=p,m.positionService=u,m.controlStateService=d,m.containerService=h,m.platformId=g,m.ariaService=f,m.focusHandler=y,m.cdr=b,m.index=1,m.invalid=!1,m.focused=!1,m._searchText="",m.smartPosition={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START},m.placeholder="",m.clrInputChange=new t.EventEmitter(!1),m.clrOpenChange=m.toggleService.openChange,m.clrSelectionChange=m.optionSelectionService.selectionChanged,o&&(o.valueAccessor=m),m.optionSelectionService.selectionModel=new Sn,m.updateControlValue(),m}return ne(i,n),Object.defineProperty(i.prototype,"id",{get:function(){return this.controlIdService.id+"-combobox"},set:function(e){n.prototype.id=e},enumerable:!1,configurable:!0}),i.prototype.inputId=function(){return this.controlIdService.id},Object.defineProperty(i.prototype,"openState",{get:function(){return this.toggleService.open},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"searchText",{get:function(){return this._searchText},set:function(e){e!==this._searchText&&(this._searchText=e,this.clrInputChange.emit(this.searchText),this.optionSelectionService.currentInput=this.searchText)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"multiSelectModel",{get:function(){if(!this.multiSelect)throw Error("multiSelectModel is not available in single selection context");return this.optionSelectionService.selectionModel.model},enumerable:!1,configurable:!0}),i.prototype.loadingStateChange=function(t){var n=this;this.optionSelectionService.loading=t===e.ClrLoadingState.LOADING,this.positionService.realign(),t!==e.ClrLoadingState.LOADING&&r.isPlatformBrowser(this.platformId)&&setTimeout((function(){n.focusFirstActive()}))},Object.defineProperty(i.prototype,"disabled",{get:function(){return this.control&&this.control.disabled},enumerable:!1,configurable:!0}),i.prototype.unselect=function(e){this.disabled||this.optionSelectionService.unselect(e)},Object.defineProperty(i.prototype,"multiSelect",{get:function(){return this.optionSelectionService.multiselectable},set:function(e){this.optionSelectionService.selectionModel=e?new yn:new Sn,this.updateControlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaControls",{get:function(){return this.ariaService.ariaControls},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaOwns",{get:function(){return this.ariaService.ariaOwns},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaDescribedBySelection",{get:function(){return"selection-"+this.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"displayField",{get:function(){return this.optionSelectionService.displayField},enumerable:!1,configurable:!0}),i.prototype.onBlur=function(){this.onTouchedCallback(),"blur"===this.control.control.updateOn&&this.control.control.updateValueAndValidity(),this.focused=!1},i.prototype.onFocus=function(){this.focused=!0},i.prototype.getSelectionAriaLabel=function(){return this.containerService&&this.containerService.labelText?this.containerService.labelText+" "+this.commonStrings.keys.comboboxSelection:this.commonStrings.keys.comboboxSelection},i.prototype.onKeyUp=function(e){if(8===e.keyCode&&this.multiSelect&&0===this._searchText.length){var t=this.optionSelectionService.selectionModel.model;if(t&&t.length>0){var n=t[t.length-1];this.control.control.markAsTouched(),this.optionSelectionService.unselect(n)}}},i.prototype.initializeSubscriptions=function(){var e=this;this.subscriptions.push(this.optionSelectionService.selectionChanged.subscribe((function(t){e.updateInputValue(t),e.multiSelect&&e.positionService.realign(),e.multiSelect||!t||t.isEmpty()||(e.toggleService.open=!1),e.updateControlValue()}))),this.subscriptions.push(this.toggleService.openChange.subscribe((function(t){t&&e.focusFirstActive(),e.multiSelect?e.searchText="":e.searchText=e.getDisplayNames(e.optionSelectionService.selectionModel.model)[0]||""}))),this.subscriptions.push(this.toggleService.popoverAligned.subscribe((function(t){if(e.containerService){var n=t;n.getBoundingClientRect().top<e.el.nativeElement.getBoundingClientRect().top&&e.renderer.setStyle(t,"top",n.offsetTop+e.containerService.labelOffset+"px")}}))),this.controlStateService&&this.subscriptions.push(this.controlStateService.statusChanges.subscribe((function(t){e.invalid=t===ue.INVALID})))},i.prototype.focusFirstActive=function(){this.focusHandler.focusFirstActive()},i.prototype.updateInputValue=function(e){this.multiSelect||(this.searchText=e.model?this.getDisplayNames(e.model)[0]:"",this.searchText&&(this.optionSelectionService.currentInput=this.searchText))},i.prototype.updateControlValue=function(){this.onChangeCallback&&this.onChangeCallback(this.optionSelectionService.selectionModel.model)},i.prototype.writeValue=function(e){this.optionSelectionService.selectionModel.model=e,this.updateInputValue(this.optionSelectionService.selectionModel)},i.prototype.registerOnChange=function(e){this.onChangeCallback=e},i.prototype.getActiveDescendant=function(){var e=this.focusHandler.pseudoFocus.model;return e?e.id:null},i.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},i.prototype.setDisabledState=function(){},i.prototype.focusInput=function(){this.focusHandler.focusInput()},i.prototype.getDisplayNames=function(e){var t=this;return this.displayField?(Array.isArray(e)||(e=[e]),e.map((function(e){return e?e[t.displayField]:null}))):[this.optionSelectionService.selectionModel.model]},i.prototype.ngAfterContentInit=function(){this.initializeSubscriptions(),this.optionSelectionService.selectionModel.isEmpty()||this.updateInputValue(this.optionSelectionService.selectionModel)},i.prototype.ngAfterViewInit=function(){this.focusHandler.componentCdRef=this.cdr,this.focusHandler.textInput=this.textbox.nativeElement,this.focusHandler.trigger=this.trigger.nativeElement,this.el=this.textbox},i.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},i}(Ie);Fn.decorators=[{type:t.Component,args:[{selector:"clr-combobox",template:'\x3c!--\n* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n* This software is released under MIT license.\n* The full license information can be found in LICENSE in the root directory of this project.\n--\x3e\n\n\x3c!-- The (click) handler is needed to auto-focus on input field which can not currently occupy the whole\n width of the component, after being wrapped to a new line --\x3e\n<div\n class="clr-combobox-wrapper"\n clrPopoverAnchor\n (click)="focusInput()"\n [class.multi]="multiSelect"\n [class.invalid]="invalid"\n>\n <span\n *ngIf="multiSelect && optionSelectionService.selectionModel.model"\n role="grid"\n clrRovingTabindex\n [clrRovingTabindexDisabled]="control?.disabled"\n clrDirection="both"\n [attr.aria-label]="getSelectionAriaLabel()"\n [attr.aria-disabled]="control?.disabled? true: null"\n >\n <span *ngFor="let item of multiSelectModel; let i = index" class="label label-combobox-pill" role="row">\n <span role="gridcell">\n <span class="clr-combobox-pill-content" clrKeyFocusItem>\n <ng-container\n *ngIf="optionSelected"\n [ngTemplateOutlet]="optionSelected.template"\n [ngTemplateOutletContext]="{$implicit: optionSelectionService.selectionModel.model[i]}"\n >\n </ng-container>\n </span>\n </span>\n <span role="gridcell">\n <button\n clrKeyFocusItem\n type="button"\n class="clr-combobox-remove-btn"\n [disabled]="control?.disabled? true: null"\n [attr.aria-label]="commonStrings.keys.comboboxDelete + \' \' + optionSelectionService.selectionModel.toString(displayField, i)"\n (click)="unselect(item)"\n >\n <cds-icon shape="window-close" size="12"></cds-icon>\n </button>\n </span>\n </span>\n </span>\n\n <span class="clr-combobox-input-wrapper">\n <input\n #textboxInput\n type="text"\n [id]="inputId()"\n role="combobox"\n class="clr-input clr-combobox-input"\n [(ngModel)]="searchText"\n (blur)="onBlur()"\n (focus)="onFocus()"\n [attr.aria-expanded]="openState"\n [attr.aria-owns]="ariaOwns"\n aria-haspopup="listbox"\n aria-autocomplete="list"\n autocomplete="off"\n [attr.aria-invalid]="control?.invalid? true: null"\n [disabled]="control?.disabled? true: null"\n [attr.aria-activedescendant]="getActiveDescendant()"\n [attr.placeholder]="placeholder"\n aria-multiline="false"\n />\n </span>\n\n \x3c!-- No click handler, as it uses the handler on the .clr-combobox-wrapper --\x3e\n <button\n clrPopoverOpenCloseButton\n #trigger\n type="button"\n class="clr-combobox-trigger"\n tabindex="-1"\n [disabled]="control?.disabled || null"\n [attr.aria-label]="commonStrings.keys.comboboxOpen"\n >\n <cds-icon shape="angle" direction="down" size="12"></cds-icon>\n </button>\n\n <div class="clr-focus-indicator" [class.clr-focus]="focused"></div>\n</div>\n\n\x3c!-- Both close handlers are handled manually due to issues in Edge browser.\n Additionally \'outsideClickToClose\' has complex handling that\'s necessary\n to be manual due to the component architecture --\x3e\n<div role="dialog" *clrPopoverContent="openState at smartPosition; outsideClickToClose: false; scrollToClose: false">\n <ng-content></ng-content>\n</div>\n',providers:[y,{provide:Pn,useExisting:t.ElementRef},bn,{provide:L,useExisting:Fn},Ye,Dn,Nn,En,y,v,P],host:{"[class.aria-required]":"true","[class.clr-combobox]":"true","[class.clr-combobox-disabled]":"control?.disabled"}}]}],Fn.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.Injector},{type:a.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:t.Renderer2},{type:t.ElementRef},{type:bn},{type:V},{type:y},{type:P},{type:he,decorators:[{type:t.Optional}]},{type:An,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:Dn},{type:On},{type:t.ChangeDetectorRef}]},Fn.propDecorators={textbox:[{type:t.ViewChild,args:["textboxInput"]}],trigger:[{type:t.ViewChild,args:["trigger"]}],optionSelected:[{type:t.ContentChild,args:[Rn]}],placeholder:[{type:t.Input,args:["placeholder"]}],multiSelect:[{type:t.Input,args:["clrMulti"]}],onKeyUp:[{type:t.HostListener,args:["keydown",["$event"]]}],clrInputChange:[{type:t.Output,args:["clrInputChange"]}],clrOpenChange:[{type:t.Output,args:["clrOpenChange"]}],clrSelectionChange:[{type:t.Output,args:["clrSelectionChange"]}]};var Mn=function(){function e(e,t,n,i,o){var s=this;this.template=e,this.differs=t,this.optionService=n,this.positionService=i,this.vcr=o,this.subscriptions=[],this.filter="",this.differ=null,this.iterableProxy=new r.NgForOf(this.vcr,this.template,this.differs),this.subscriptions.push(n.inputChanged.subscribe((function(e){s.filter=e,s.updateItems()})))}return Object.defineProperty(e.prototype,"rawItems",{set:function(e){this._rawItems=e||[],this.updateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackBy",{set:function(e){this.iterableProxy.ngForTrackBy=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"field",{set:function(e){this._filterField=e,this.optionService.displayField=e},enumerable:!1,configurable:!0}),e.prototype.updateItems=function(){var e=this;this._rawItems&&void 0!==this.filter&&null!==this.filter&&(this._filterField?this.filteredItems=this._rawItems.filter((function(t){var n=t[e._filterField];return!!n&&n.toString().toLowerCase().indexOf(e.filter.toLowerCase().toString())>-1})):this.filteredItems=this._rawItems.filter((function(t){return"object"!=typeof t?t.toString().toLowerCase().indexOf(e.filter.toString().toLowerCase())>-1:Object.values(t).filter((function(t){return!!t&&t.toString().toLowerCase().indexOf(e.filter.toString().toLowerCase())>-1})).length>0})),this.iterableProxy.ngForOf=this.filteredItems)},e.prototype.ngDoCheck=function(){(this.differ||(this.differ=this.differs.find(this.filteredItems).create(this.iterableProxy.ngForTrackBy)),this.differ)&&(this.differ.diff(this.filteredItems)&&(this.iterableProxy.ngDoCheck(),this.positionService.realign()))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();Mn.decorators=[{type:t.Directive,args:[{selector:"[clrOptionItems][clrOptionItemsOf]"}]}],Mn.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.IterableDiffers},{type:bn},{type:P},{type:t.ViewContainerRef}]},Mn.propDecorators={rawItems:[{type:t.Input,args:["clrOptionItemsOf"]}],trackBy:[{type:t.Input,args:["clrOptionItemsTrackBy"]}],field:[{type:t.Input,args:["clrOptionItemsField"]}]};var Vn=function(){function e(){}return Object.defineProperty(e.prototype,"spinnerClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inlineClass",{get:function(){return this._inline},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrInline",{set:function(e){this._inline=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inverseClass",{get:function(){return this._inverse},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrInverse",{set:function(e){this._inverse=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"smallClass",{get:function(){return this._small},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrSmall",{set:function(e){this._small=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediumClass",{get:function(){return!this._small&&this._medium},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrMedium",{set:function(e){this._medium=At(e)},enumerable:!1,configurable:!0}),e}();Vn.decorators=[{type:t.Component,args:[{selector:"clr-spinner",template:" <ng-content></ng-content> ",host:{"[attr.aria-busy]":"true"}}]}],Vn.propDecorators={spinnerClass:[{type:t.HostBinding,args:["class.spinner"]}],inlineClass:[{type:t.HostBinding,args:["class.spinner-inline"]}],clrInline:[{type:t.Input,args:["clrInline"]}],inverseClass:[{type:t.HostBinding,args:["class.spinner-inverse"]}],clrInverse:[{type:t.Input,args:["clrInverse"]}],smallClass:[{type:t.HostBinding,args:["class.spinner-sm"]}],clrSmall:[{type:t.Input,args:["clrSmall"]}],mediumClass:[{type:t.HostBinding,args:["class.spinner-md"]}],clrMedium:[{type:t.Input,args:["clrMedium"]}]};var Bn,zn=[Vn],Hn=function(){};Hn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[zn],exports:[zn]}]}],function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e.BOTH="both"}(Bn||(Bn={}));var Gn=function(){function e(e,t){this.elementRef=e,this.platformId=t}return Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),e.prototype.focus=function(){r.isPlatformBrowser(this.platformId)&&this.elementRef.nativeElement.focus()},e}();Gn.decorators=[{type:t.Directive,args:[{selector:"[clrKeyFocusItem]"}]}],Gn.ctorParameters=function(){return[{type:t.ElementRef},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var Wn=function(){function e(e){this.elementRef=e,this.direction=Bn.VERTICAL,this.focusOnLoad=!1,this.focusChange=new t.EventEmitter,this._current=0,this.subscriptions=[]}return Object.defineProperty(e.prototype,"focusableItems",{get:function(){return this._focusableItems?this._focusableItems:this.clrKeyFocusItems?this.clrKeyFocusItems.toArray():[]},set:function(e){Array.isArray(e)&&e.length&&(this._focusableItems=e,this.initializeFocus())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current!==e&&(this._current=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentItem",{get:function(){return this.focusableItems[this._current]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentItemElement",{get:function(){return this.currentItem.nativeElement?this.currentItem.nativeElement:this.currentItem},enumerable:!1,configurable:!0}),e.prototype.focusCurrent=function(){this.currentItem.focus(),this.focusChange.next(this._current)},e.prototype.moveTo=function(e){this.positionInRange(e)&&(this.current=e,this.focusCurrent())},e.prototype.ngAfterContentInit=function(){this.subscriptions.push(this.listenForItemUpdates()),this.initializeFocus()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.handleKeyboardEvent=function(e){if(this.currentItemElement!==e.target){var t=this.getItemPosition(e.target);this.positionInRange(t)&&(this.current=t)}this.prevKeyPressed(e)&&this.currentFocusIsNotFirstItem()?this.moveTo(this.current-1):this.nextKeyPressed(e)&&this.currentFocusIsNotLastItem()?this.moveTo(this.current+1):e.code===p.Home?this.moveTo(0):e.code===p.End&&this.moveTo(this.focusableItems.length-1),f(e)},e.prototype.setClickedItemCurrent=function(e){var t=this.getItemPosition(e.target);t>-1&&this.moveTo(t)},e.prototype.getItemPosition=function(e){return this._focusableItems?this.focusableItems.indexOf(e):this.focusableItems.map((function(e){return e.nativeElement})).indexOf(e)},e.prototype.positionInRange=function(e){return e>=0&&e<this.focusableItems.length},e.prototype.currentFocusIsNotFirstItem=function(){return this._current-1>=0},e.prototype.currentFocusIsNotLastItem=function(){return this._current+1<this.focusableItems.length},e.prototype.initializeFocus=function(){this.focusableItems&&this.focusableItems.length&&(this._current>=this.focusableItems.length&&(this._current=this.focusableItems.length-1),this.focusOnLoad&&(this.currentItem.focus(),this.focusChange.next()))},e.prototype.listenForItemUpdates=function(){var e=this;return this.clrKeyFocusItems.changes.subscribe((function(){e.initializeFocus()}))},e.prototype.nextKeyPressed=function(e){var t=g(e.key);switch(this.direction){case Bn.VERTICAL:return t===p.ArrowDown;case Bn.HORIZONTAL:return t===p.ArrowRight;case Bn.BOTH:return t===p.ArrowDown||t===p.ArrowRight;default:return!1}},e.prototype.prevKeyPressed=function(e){var t=g(e.key);switch(this.direction){case Bn.VERTICAL:return t===p.ArrowUp;case Bn.HORIZONTAL:return t===p.ArrowLeft;case Bn.BOTH:return t===p.ArrowUp||t===p.ArrowLeft;default:return!1}},e}();Wn.decorators=[{type:t.Component,args:[{selector:"[clrKeyFocus]",template:"<ng-content></ng-content>"}]}],Wn.ctorParameters=function(){return[{type:t.ElementRef}]},Wn.propDecorators={direction:[{type:t.Input,args:["clrDirection"]}],focusOnLoad:[{type:t.Input,args:["clrFocusOnLoad"]}],focusChange:[{type:t.Output,args:["clrFocusChange"]}],clrKeyFocusItems:[{type:t.ContentChildren,args:[Gn,{descendants:!0}]}],focusableItems:[{type:t.Input,args:["clrKeyFocus"]}],handleKeyboardEvent:[{type:t.HostListener,args:["keydown",["$event"]]}],setClickedItemCurrent:[{type:t.HostListener,args:["click",["$event"]]}]};var Un=function(e){function t(t,n){var r=e.call(this,t)||this;return r.renderer=n,r.disabled=!1,r}return ne(t,e),Object.defineProperty(t.prototype,"rovingIndexItems",{get:function(){return this.focusableItems},set:function(e){this.focusableItems=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rovingTabindexDisabled",{set:function(e){this.disabled=e,this.currentItem&&this.setTabindex(this.currentItem,e?-1:0)},enumerable:!1,configurable:!0}),t.prototype.handleKeyboardEvent=function(t){this.prevKeyPressed(t)&&this.currentFocusIsNotFirstItem()?this.updateTabindex(this.current-1):this.nextKeyPressed(t)&&this.currentFocusIsNotLastItem()?this.updateTabindex(this.current+1):t.code===p.Home?this.updateTabindex(0):t.code===p.End&&this.updateTabindex(this.focusableItems.length-1),e.prototype.handleKeyboardEvent.call(this,t)},t.prototype.setClickedItemCurrent=function(t){var n;(n=this.focusableItems[0].nativeElement?this.focusableItems.map((function(e){return e.nativeElement})).indexOf(t.target):this.focusableItems.indexOf(t.target))>-1&&this.updateTabindex(n),e.prototype.setClickedItemCurrent.call(this,t)},t.prototype.initializeFocus=function(){var t=this;this.focusableItems&&this.focusableItems.length&&(this.focusableItems.forEach((function(e){t.setTabindex(e,-1)})),this.current>=this.focusableItems.length&&(this.current=this.focusableItems.length-1),!this.disabled&&this.currentItem&&this.setTabindex(this.currentItem,0)),e.prototype.initializeFocus.call(this)},t.prototype.updateTabindex=function(e){this.setTabindex(this.currentItem,-1),this.setTabindex(this.focusableItems[e],0)},t.prototype.setTabindex=function(e,t){e instanceof HTMLElement?this.renderer.setAttribute(e,"tabindex",t.toString()):this.renderer.setAttribute(e.nativeElement,"tabindex",t.toString())},t}(Wn);Un.decorators=[{type:t.Component,args:[{selector:"[clrRovingTabindex]",template:"<ng-content></ng-content>"}]}],Un.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},Un.propDecorators={rovingIndexItems:[{type:t.Input,args:["clrRovingTabindex"]}],rovingTabindexDisabled:[{type:t.Input,args:["clrRovingTabindexDisabled"]}]};var Yn=[Wn,Un,Gn],Kn=function(){};Kn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Yn],exports:[Yn]}]}];var Zn=function(){n.ClarityIcons.addIcons(n.exclamationCircleIcon,n.checkCircleIcon,n.angleIcon,n.windowCloseIcon)};Zn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,h,Kn,je,Qe,k,Hn],declarations:[Fn,kn,xn,_n,Rn,Mn],exports:[je,Fn,kn,xn,_n,Rn,Qe,Mn]}]}],Zn.ctorParameters=function(){return[]};var qn=function(){};qn.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],exports:[je,He,Zn,Bt,Gt,qt,Qt,nn,sn,ln,fn]}]}];var Xn=[j],$n=function(){};$n.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Xn],exports:[Xn]}]}];var Jn=function(){function e(e,n,r){var i=this;this.strict=!1,this.outsideClick=new t.EventEmitter(!1),r.runOutsideAngular((function(){i.documentClickListener=n.listen("document","click",(function(t){e.nativeElement!==t.target&&(!i.strict&&e.nativeElement.contains(t.target)||r.run((function(){i.outsideClick.emit(t)})))}))}))}return e.prototype.ngOnDestroy=function(){this.documentClickListener()},e}();Jn.decorators=[{type:t.Directive,args:[{selector:"[clrOutsideClick]"}]}],Jn.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:t.NgZone}]},Jn.propDecorators={strict:[{type:t.Input,args:["clrStrict"]}],outsideClick:[{type:t.Output,args:["clrOutsideClick"]}]};var Qn=[Jn],er=function(){};er.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Qn],exports:[Qn]}]}];var tr=function(){function e(){}return e.prototype.userDefinedWidth=function(e){e.classList.add("datagrid-cell-width-zero");var t=this.clientRect(e).width;return e.classList.remove("datagrid-cell-width-zero"),t},e.prototype.scrollBarWidth=function(e){return e.offsetWidth-e.clientWidth},e.prototype.scrollWidth=function(e){return e.scrollWidth||0},e.prototype.computedHeight=function(e){return parseInt(getComputedStyle(e).getPropertyValue("height"),10)},e.prototype.clientRect=function(e){var t=e.getBoundingClientRect();return{top:parseInt(t.top,10),bottom:parseInt(t.bottom,10),left:parseInt(t.left,10),right:parseInt(t.right,10),width:parseInt(t.width,10),height:parseInt(t.height,10)}},e.prototype.minWidth=function(e){return parseInt(getComputedStyle(e).getPropertyValue("min-width"),10)},e.prototype.focus=function(e){e.focus()},e}();tr.decorators=[{type:t.Injectable}];var nr,rr=function(e){this.dragPosition=e.dragPosition,this.group=e.group,this.dragDataTransfer=e.dragDataTransfer,this.dropPointPosition=e.dropPointPosition};!function(e){e[e.DRAG_START=0]="DRAG_START",e[e.DRAG_MOVE=1]="DRAG_MOVE",e[e.DRAG_END=2]="DRAG_END",e[e.DRAG_ENTER=3]="DRAG_ENTER",e[e.DRAG_LEAVE=4]="DRAG_LEAVE",e[e.DROP=5]="DROP"}(nr||(nr={}));var ir=function(){function e(){this.dragStart=new i.Subject,this.dragMove=new i.Subject,this.dragEnd=new i.Subject,this.drop=new i.Subject}return Object.defineProperty(e.prototype,"dragStarted",{get:function(){return this.dragStart.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragMoved",{get:function(){return this.dragMove.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragEnded",{get:function(){return this.dragEnd.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropped",{get:function(){return this.drop.asObservable()},enumerable:!1,configurable:!0}),e.prototype.broadcast=function(e){switch(e.type){case nr.DRAG_START:this.dragStart.next(e);break;case nr.DRAG_MOVE:this.dragMove.next(e);break;case nr.DRAG_END:this.dragEnd.next(e);break;case nr.DROP:this.drop.next(e)}},e}();ir.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new ir},token:ir,providedIn:"root"}),ir.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var or=function(){function e(e,t,n){this.ngZone=e,this.renderer=t,this.eventBus=n,this.listeners=[],this.dragStart=new i.Subject,this.dragMove=new i.Subject,this.dragEnd=new i.Subject,this.hasDragStarted=!1,this.dragStartDelay=0}return Object.defineProperty(e.prototype,"dragStarted",{get:function(){return this.dragStart.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragMoved",{get:function(){return this.dragMove.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragEnded",{get:function(){return this.dragEnd.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragStartPosition",{get:function(){return this.initialPosition},enumerable:!1,configurable:!0}),e.prototype.attachDragListeners=function(e){this.draggableEl=e,this.listeners.push(this.customDragEvent(this.draggableEl,"mousedown","mousemove","mouseup")),this.listeners.push(this.customDragEvent(this.draggableEl,"touchstart","touchmove","touchend"))},e.prototype.detachDragListeners=function(){this.listeners&&this.listeners.map((function(e){return e()})),this.nestedListeners&&this.nestedListeners.map((function(e){return e()})),this.checkDragStartBoundaryListener&&this.checkDragStartBoundaryListener()},e.prototype.getNativeEventObject=function(e){return e.hasOwnProperty("changedTouches")?e.changedTouches[0]:e},e.prototype.customDragEvent=function(e,t,n,r){var i=this;return this.renderer.listen(e,t,(function(e){i.initialPosition={pageX:i.getNativeEventObject(e).pageX,pageY:i.getNativeEventObject(e).pageY},i.nestedListeners=[],i.nestedListeners.push(i.renderer.listen("document","selectstart",(function(e){e.preventDefault(),e.stopImmediatePropagation()}))),i.ngZone.runOutsideAngular((function(){i.checkDragStartBoundary(n),i.dragStartDelayTimeout=setTimeout((function(){i.checkDragStartBoundaryListener&&i.checkDragStartBoundaryListener(),i.hasDragStarted=!0,i.broadcast(e,nr.DRAG_START),i.nestedListeners.push(i.renderer.listen("document",n,(function(e){e.stopImmediatePropagation(),i.hasDragStarted&&i.broadcast(e,nr.DRAG_MOVE)})))}),i.dragStartDelay)})),i.nestedListeners.push(i.renderer.listen("document",r,(function(e){i.hasDragStarted&&(i.hasDragStarted=!1,i.broadcast(e,nr.DRAG_END)),clearTimeout(i.dragStartDelayTimeout),i.nestedListeners.map((function(e){return e()})),i.checkDragStartBoundaryListener&&i.checkDragStartBoundaryListener()})))}))},e.prototype.checkDragStartBoundary=function(e){var t=this;this.checkDragStartBoundaryListener=this.renderer.listen("document",e,(function(e){var n=Math.abs(t.getNativeEventObject(e).pageX-t.initialPosition.pageX),r=Math.abs(t.getNativeEventObject(e).pageY-t.initialPosition.pageY);(n>1||r>1)&&(clearTimeout(t.dragStartDelayTimeout),t.checkDragStartBoundaryListener&&t.checkDragStartBoundaryListener())}))},e.prototype.broadcast=function(e,t){var n=this.generateDragEvent(e,t);switch(n.type){case nr.DRAG_START:this.dragStart.next(n);break;case nr.DRAG_MOVE:this.dragMove.next(n);break;case nr.DRAG_END:this.dragEnd.next(n)}n.ghostElement=this.ghostElement,n.dropPointPosition=this.dropPointPosition,this.eventBus.broadcast(n)},e.prototype.generateDragEvent=function(e,t){var n=this.getNativeEventObject(e);return{type:t,dragPosition:{pageX:n.pageX,pageY:n.pageY,moveX:n.pageX-this.initialPosition.pageX,moveY:n.pageY-this.initialPosition.pageY},group:this.group,dragDataTransfer:this.dragDataTransfer,ghostElement:this.ghostElement}},e}();or.decorators=[{type:t.Injectable}],or.ctorParameters=function(){return[{type:t.NgZone},{type:t.Renderer2},{type:ir}]};var sr=function(){function e(e){this.domAdapter=e}return e.prototype.capture=function(e,t){this.draggableElClientRect=this.domAdapter.clientRect(e),this.snapshotDragEvent=t},e.prototype.discard=function(){delete this.draggableElClientRect,delete this.snapshotDragEvent},Object.defineProperty(e.prototype,"hasDraggableState",{get:function(){return!!this.snapshotDragEvent&&!!this.draggableElClientRect},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientRect",{get:function(){return this.draggableElClientRect},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragEvent",{get:function(){return this.snapshotDragEvent},enumerable:!1,configurable:!0}),e}();sr.decorators=[{type:t.Injectable}],sr.ctorParameters=function(){return[{type:tr}]};var ar=function(){function e(e,t,n,r,i){var o=this;if(this.el=e,this.dragEventListener=t,this.draggableSnapshot=n,this.renderer=r,this.ngZone=i,this.subscriptions=[],this.leaveAnimConfig={value:0,params:{top:"0px",left:"0px"}},!this.dragEventListener||!this.draggableSnapshot)throw new Error("The clr-draggable-ghost component can only be used inside of a clrDraggable directive.");this.draggableGhostEl=this.el.nativeElement,this.renderer.addClass(this.draggableGhostEl,"draggable-ghost"),this.dragEventListener.ghostElement=this.draggableGhostEl,this.setDefaultGhostSize(this.draggableGhostEl);var s={top:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageY-this.draggableSnapshot.clientRect.top:0,left:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageX-this.draggableSnapshot.clientRect.left:0},a=!1;this.subscriptions.push(this.dragEventListener.dragMoved.subscribe((function(e){a||(o.draggableSnapshot.hasDraggableState?o.animateToOnLeave(o.draggableSnapshot.clientRect.top+"px",o.draggableSnapshot.clientRect.left+"px"):o.animateToOnLeave(o.dragEventListener.dragStartPosition.pageY+"px",o.dragEventListener.dragStartPosition.pageY+"px"),a=!0);var t=o.findTopLeftPosition(e.dragPosition,s);o.setPositionStyle(o.draggableGhostEl,t.pageX,t.pageY),o.dragEventListener.dropPointPosition=o.findDropPointPosition(t)})))}return e.prototype.setDefaultGhostSize=function(e){this.draggableSnapshot.hasDraggableState&&this.setSizeStyle(e,this.draggableSnapshot.clientRect.width,this.draggableSnapshot.clientRect.height)},e.prototype.animateToOnLeave=function(e,t){var n=this;this.ngZone.run((function(){n.leaveAnimConfig={value:0,params:{top:e,left:t}}}))},e.prototype.findTopLeftPosition=function(e,t){return{pageX:e.pageX-t.left,pageY:e.pageY-t.top}},e.prototype.findDropPointPosition=function(e){return this.draggableSnapshot.hasDraggableState?{pageX:e.pageX+this.draggableSnapshot.clientRect.width/2,pageY:e.pageY+this.draggableSnapshot.clientRect.height/2}:e},e.prototype.setSizeStyle=function(e,t,n){this.renderer.setStyle(e,"width",t+"px"),this.renderer.setStyle(e,"height",n+"px")},e.prototype.setPositionStyle=function(e,t,n){this.renderer.setStyle(e,"left",t+"px"),this.renderer.setStyle(e,"top",n+"px"),this.renderer.setStyle(e,"visibility","visible")},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();ar.decorators=[{type:t.Component,args:[{selector:"clr-draggable-ghost",template:"<ng-content></ng-content>",animations:[s.trigger("leaveAnimation",[s.transition(":leave",[s.style({left:"*",top:"*"}),s.animate("0.2s ease-in-out",s.style({top:"{{top}}",left:"{{left}}"}))])])]}]}],ar.ctorParameters=function(){return[{type:t.ElementRef},{type:or,decorators:[{type:t.Optional}]},{type:sr,decorators:[{type:t.Optional}]},{type:t.Renderer2},{type:t.NgZone}]},ar.propDecorators={leaveAnimConfig:[{type:t.HostBinding,args:["@leaveAnimation"]}]};var cr=function(){function e(e,t,n){var r=this;if(this.template=e,this.container=t,this.dragEventListener=n,this.subscriptions=[],!this.dragEventListener||!this.container)throw new Error("The *clrIfDragged directive can only be used inside of a clrDraggable directive.");this.subscriptions.push(this.dragEventListener.dragStarted.subscribe((function(){r.container.createEmbeddedView(r.template)}))),this.subscriptions.push(this.dragEventListener.dragEnded.subscribe((function(){r.container.clear()})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();cr.decorators=[{type:t.Directive,args:[{selector:"[clrIfDragged]"}]}],cr.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:or,decorators:[{type:t.Optional}]}]};var lr=function(){function e(e,t){this.dragEventListener=e,this.renderer=t}return Object.defineProperty(e.prototype,"defaultHandleEl",{get:function(){return this._defaultHandleEl},set:function(e){this._defaultHandleEl=e,this._customHandleEl||this.makeElementHandle(this._defaultHandleEl)},enumerable:!1,configurable:!0}),e.prototype.makeElementHandle=function(e){this._defaultHandleEl&&this._defaultHandleEl!==e&&this.renderer.removeClass(this._defaultHandleEl,"drag-handle"),this.dragEventListener.attachDragListeners(e),this.renderer.addClass(e,"drag-handle")},Object.defineProperty(e.prototype,"customHandleEl",{get:function(){return this._customHandleEl},enumerable:!1,configurable:!0}),e.prototype.registerCustomHandle=function(e){this.dragEventListener.detachDragListeners(),this._customHandleEl=e,this.makeElementHandle(this._customHandleEl)},e.prototype.unregisterCustomHandle=function(){this.dragEventListener.detachDragListeners(),this.renderer.removeClass(this._customHandleEl,"drag-handle"),delete this._customHandleEl,this._defaultHandleEl&&this.makeElementHandle(this._defaultHandleEl)},e}();lr.decorators=[{type:t.Injectable}],lr.ctorParameters=function(){return[{type:or},{type:t.Renderer2}]};var pr=function(){function e(e){this.renderer=e}return e.prototype.enter=function(){this.renderer.addClass(document.body,"in-drag")},e.prototype.exit=function(){this.renderer.removeClass(document.body,"in-drag")},e}();pr.decorators=[{type:t.Injectable}],pr.ctorParameters=function(){return[{type:t.Renderer2}]};var ur=function(){function e(e,n,r,i,o,s,a,c){this.el=e,this.dragEventListener=n,this.dragHandleRegistrar=r,this.viewContainerRef=i,this.cfr=o,this.injector=s,this.draggableSnapshot=a,this.globalDragMode=c,this.subscriptions=[],this.dragOn=!1,this.dragStartEmitter=new t.EventEmitter,this.dragMoveEmitter=new t.EventEmitter,this.dragEndEmitter=new t.EventEmitter,this.draggableEl=this.el.nativeElement,this.componentFactory=this.cfr.resolveComponentFactory(ar)}return Object.defineProperty(e.prototype,"dataTransfer",{set:function(e){this.dragEventListener.dragDataTransfer=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"group",{set:function(e){this.dragEventListener.group=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dragStartDelay",{set:function(e){"number"==typeof e?this.dragEventListener.dragStartDelay=e:"string"==typeof e&&(this.dragEventListener.dragStartDelay=parseInt(e,10)||0)},enumerable:!1,configurable:!0}),e.prototype.createDefaultGhost=function(e){this.draggableSnapshot.capture(this.draggableEl,e),this.viewContainerRef.createComponent(this.componentFactory,0,this.injector,[[this.draggableEl.cloneNode(!0)]])},e.prototype.destroyDefaultGhost=function(){this.viewContainerRef.clear(),this.draggableSnapshot.discard()},e.prototype.ngAfterContentInit=function(){var e=this;this.dragHandleRegistrar.defaultHandleEl=this.draggableEl,this.subscriptions.push(this.dragEventListener.dragStarted.subscribe((function(t){e.globalDragMode.enter(),e.dragOn=!0,e.customGhost||e.createDefaultGhost(t),e.dragStartEmitter.emit(new rr(t))}))),this.subscriptions.push(this.dragEventListener.dragMoved.subscribe((function(t){e.dragMoveEmitter.emit(new rr(t))}))),this.subscriptions.push(this.dragEventListener.dragEnded.subscribe((function(t){e.globalDragMode.exit(),e.dragOn=!1,e.customGhost||e.destroyDefaultGhost(),e.dragEndEmitter.emit(new rr(t))})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.dragEventListener.detachDragListeners()},e}();ur.decorators=[{type:t.Directive,args:[{selector:"[clrDraggable]",providers:[or,lr,sr,pr,tr],host:{"[class.draggable]":"true","[class.being-dragged]":"dragOn"}}]}],ur.ctorParameters=function(){return[{type:t.ElementRef},{type:or},{type:lr},{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:sr},{type:pr}]},ur.propDecorators={customGhost:[{type:t.ContentChild,args:[cr]}],dataTransfer:[{type:t.Input,args:["clrDraggable"]}],group:[{type:t.Input,args:["clrGroup"]}],dragStartDelay:[{type:t.Input,args:["clrDragStartDelay"]}],dragStartEmitter:[{type:t.Output,args:["clrDragStart"]}],dragMoveEmitter:[{type:t.Output,args:["clrDragMove"]}],dragEndEmitter:[{type:t.Output,args:["clrDragEnd"]}]};var dr=function(){function e(e,n,r,i){this.el=e,this.eventBus=n,this.domAdapter=r,this.renderer=i,this.isDraggableMatch=!1,this._isDraggableOver=!1,this._dropTolerance={top:0,right:0,bottom:0,left:0},this.dragStartEmitter=new t.EventEmitter,this.dragMoveEmitter=new t.EventEmitter,this.dragEndEmitter=new t.EventEmitter,this.dragLeaveEmitter=new t.EventEmitter,this.dragEnterEmitter=new t.EventEmitter,this.dropEmitter=new t.EventEmitter,this.droppableEl=this.el.nativeElement}return Object.defineProperty(e.prototype,"isDraggableOver",{set:function(e){e?this.renderer.addClass(this.droppableEl,"draggable-over"):this.renderer.removeClass(this.droppableEl,"draggable-over"),this._isDraggableOver=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"group",{set:function(e){this._group=e},enumerable:!1,configurable:!0}),e.prototype.dropToleranceGenerator=function(e,t,n,r){return void 0===e&&(e=0),void 0===t&&(t=e),void 0===n&&(n=e),void 0===r&&(r=t),{top:e,right:t,bottom:n,left:r}},Object.defineProperty(e.prototype,"dropTolerance",{set:function(e){if("number"==typeof e)this._dropTolerance=this.dropToleranceGenerator(e);else if("string"==typeof e){var t=e.trim().split(/\s+/).map((function(e){return parseInt(e,10)}));this._dropTolerance=this.dropToleranceGenerator.apply(this,oe(t))}else e&&(this._dropTolerance=Object.assign(Object.assign({},this.dropToleranceGenerator(0)),e))},enumerable:!1,configurable:!0}),e.prototype.unsubscribeFrom=function(e){e&&e.unsubscribe()},e.prototype.checkGroupMatch=function(e){return!(!e&&this._group)&&(!(!this._group&&e)&&(!this._group&&!e||("string"==typeof e?"string"==typeof this._group?this._group===e:this._group.indexOf(e)>-1:"string"==typeof this._group?e.indexOf(this._group)>-1:this._group.some((function(t){return e.indexOf(t)>-1})))))},e.prototype.isInDropArea=function(e){return!!e&&(this.clientRect||(this.clientRect=this.domAdapter.clientRect(this.droppableEl)),e.pageX>=this.clientRect.left-this._dropTolerance.left&&e.pageX<=this.clientRect.right+this._dropTolerance.right&&e.pageY>=this.clientRect.top-this._dropTolerance.top&&e.pageY<=this.clientRect.bottom+this._dropTolerance.bottom)},e.prototype.onDragStart=function(e){var t=this;this.isDraggableMatch=this.checkGroupMatch(e.group),this.isDraggableMatch&&(this.dragStartEmitter.emit(new rr(e)),this.dragMoveSubscription=this.eventBus.dragMoved.subscribe((function(e){t.onDragMove(e)})),this.dragEndSubscription=this.eventBus.dragEnded.subscribe((function(e){t.onDragEnd(e)})))},e.prototype.onDragMove=function(e){var t=this.isInDropArea(e.dropPointPosition);if(!this._isDraggableOver&&t){this.isDraggableOver=!0;var n=Object.assign(Object.assign({},e),{type:nr.DRAG_ENTER});this.eventBus.broadcast(n),this.dragEnterEmitter.emit(new rr(n))}else if(this._isDraggableOver&&!t){this.isDraggableOver=!1;var r=Object.assign(Object.assign({},e),{type:nr.DRAG_LEAVE});this.eventBus.broadcast(r),this.dragLeaveEmitter.emit(new rr(r))}this.dragMoveEmitter.emit(new rr(e))},e.prototype.onDragEnd=function(e){if(this._isDraggableOver){e.ghostElement&&this.renderer.addClass(e.ghostElement,"dropped");var t=Object.assign(Object.assign({},e),{type:nr.DROP});this.eventBus.broadcast(t),this.dropEmitter.emit(new rr(t)),this.isDraggableOver=!1}this.dragEndEmitter.emit(new rr(e)),this.unsubscribeFrom(this.dragMoveSubscription),this.unsubscribeFrom(this.dragEndSubscription),this.isDraggableMatch=!1,delete this.clientRect},e.prototype.ngOnInit=function(){var e=this;this.dragStartSubscription=this.eventBus.dragStarted.subscribe((function(t){e.onDragStart(t)}))},e.prototype.ngOnDestroy=function(){this.unsubscribeFrom(this.dragStartSubscription),this.unsubscribeFrom(this.dragMoveSubscription),this.unsubscribeFrom(this.dragEndSubscription)},e}();dr.decorators=[{type:t.Directive,args:[{selector:"[clrDroppable]",providers:[tr],host:{"[class.droppable]":"true","[class.draggable-match]":"isDraggableMatch"}}]}],dr.ctorParameters=function(){return[{type:t.ElementRef},{type:ir},{type:tr},{type:t.Renderer2}]},dr.propDecorators={group:[{type:t.Input,args:["clrGroup"]}],dropTolerance:[{type:t.Input,args:["clrDropTolerance"]}],dragStartEmitter:[{type:t.Output,args:["clrDragStart"]}],dragMoveEmitter:[{type:t.Output,args:["clrDragMove"]}],dragEndEmitter:[{type:t.Output,args:["clrDragEnd"]}],dragLeaveEmitter:[{type:t.Output,args:["clrDragLeave"]}],dragEnterEmitter:[{type:t.Output,args:["clrDragEnter"]}],dropEmitter:[{type:t.Output,args:["clrDrop"]}]};var hr=function(){function e(e,t){if(this.el=e,this.dragHandleRegistrar=t,!this.dragHandleRegistrar)throw new Error("The clrDragHandle directive can only be used inside of a clrDraggable directive.");this.dragHandleRegistrar.registerCustomHandle(this.el.nativeElement)}return e.prototype.ngOnDestroy=function(){this.dragHandleRegistrar.unregisterCustomHandle()},e}();hr.decorators=[{type:t.Directive,args:[{selector:"[clrDragHandle]",host:{"[class.drag-handle]":"true"}}]}],hr.ctorParameters=function(){return[{type:t.ElementRef},{type:lr,decorators:[{type:t.Optional}]}]};var gr=[ur,dr,cr,hr,ar],fr=function(){};fr.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[gr],entryComponents:[ar],exports:[gr]}]}];var yr=function(){function e(e,t){this.element=e,this.domAdapter=t,this.startHeight=0}return Object.defineProperty(e.prototype,"expandAnimation",{get:function(){return{value:this.clrExpandTrigger,params:{startHeight:this.startHeight}}},enumerable:!1,configurable:!0}),e.prototype.animationDone=function(){this.updateStartHeight()},e.prototype.updateStartHeight=function(){this.startHeight=this.domAdapter.computedHeight(this.element.nativeElement)||0},e}();yr.decorators=[{type:t.Component,args:[{selector:"clr-expandable-animation",template:" <ng-content></ng-content> ",animations:[s.trigger("expandAnimation",[s.transition("true <=> false",[s.style({height:"{{startHeight}}px",overflow:"hidden"}),s.animate("0.2s ease-in-out",s.style({height:"*"}))])])],providers:[tr],styles:["\n :host {\n display: block;\n }\n "]}]}],yr.ctorParameters=function(){return[{type:t.ElementRef},{type:tr}]},yr.propDecorators={clrExpandTrigger:[{type:t.Input}],expandAnimation:[{type:t.HostBinding,args:["@expandAnimation"]}],animationDone:[{type:t.HostListener,args:["@expandAnimation.done"]}]};var br=[yr],mr=function(){};mr.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[br],exports:[br]}]}];var vr=new t.InjectionToken("FOCUS_ON_VIEW_INIT"),Cr={provide:vr,useValue:!0},Sr=function(){function e(e,t,n,r,i){this.el=e,this.platformId=t,this.focusOnViewInit=n,this.renderer=i,this.directFocus=!0,this._isEnabled=this.focusOnViewInit,this.document=r}return e.prototype.onFocusout=function(){this.directFocus||(this.renderer.removeAttribute(this.el.nativeElement,"tabindex"),this.renderer.setStyle(this.el.nativeElement,"outline",null))},Object.defineProperty(e.prototype,"isEnabled",{set:function(e){this.focusOnViewInit&&"boolean"==typeof e&&(this._isEnabled=e)},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.focus()},e.prototype.focus=function(){r.isPlatformBrowser(this.platformId)&&this._isEnabled&&this.document&&this.document.activeElement!==this.el.nativeElement&&(this.el.nativeElement.focus(),this.document.activeElement!==this.el.nativeElement&&(this.directFocus=!1,this.renderer.setAttribute(this.el.nativeElement,"tabindex","-1"),this.renderer.setStyle(this.el.nativeElement,"outline","none"),this.el.nativeElement.focus()))},e}();Sr.decorators=[{type:t.Directive,args:[{selector:"[clrFocusOnViewInit]"}]}],Sr.ctorParameters=function(){return[{type:t.ElementRef},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:Boolean,decorators:[{type:t.Inject,args:[vr]}]},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:t.Renderer2}]},Sr.propDecorators={onFocusout:[{type:t.HostListener,args:["focusout"]}],isEnabled:[{type:t.Input,args:["clrFocusOnViewInit"]}]};var Ir=[Sr],Or=function(){};Or.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Ir],providers:[Cr],exports:[Ir]}]}];var Er=function(){},wr=function(){function e(){this._change=new i.Subject,this.nbChanges=0}return Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.changeStart=function(){this.nbChanges++},e.prototype.changeDone=function(){0==--this.nbChanges&&this._change.next()},e}();wr.decorators=[{type:t.Injectable}];var _r=function(){function e(e){this.stateDebouncer=e,this.preventEmit=!1,this.activated=!1,this._size=0,this._change=new i.Subject,this._sizeChange=new i.Subject,this._current=1}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){var t=this._size;e!==t&&(this.preventEmit||this.stateDebouncer.changeStart(),this._size=e,this._current=0===e?1:Math.floor(t/e*(this._current-1))+1,this.preventEmit||(this._change.next(this._current),this._sizeChange.next(this._size),this.stateDebouncer.changeDone())),this.preventEmit=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalItems",{get:function(){return this._totalItems||0},set:function(e){this._totalItems=e,this.current>this.last&&(this.current=this.last)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._last?this._last:this.size>0&&this.totalItems?Math.ceil(this.totalItems/this.size):1},set:function(e){this._last=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeChange",{get:function(){return this._sizeChange.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){e!==this._current&&(this.stateDebouncer.changeStart(),this._current=e,this._change.next(e),this.stateDebouncer.changeDone())},enumerable:!1,configurable:!0}),e.prototype.previous=function(){this.current>1&&this.current--},e.prototype.next=function(){this.current<this.last&&this.current++},Object.defineProperty(e.prototype,"firstItem",{get:function(){return 0===this._totalItems?-1:0===this.size?0:(this.current-1)*this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastItem",{get:function(){if(0===this._totalItems)return-1;if(0===this.size)return this.totalItems-1;var e=this.current*this.size-1;return this.totalItems&&(e=Math.min(e,this.totalItems-1)),e},enumerable:!1,configurable:!0}),e.prototype.resetPageSize=function(e){void 0===e&&(e=!1),this.preventEmit=e,this.size=0},e}();_r.decorators=[{type:t.Injectable}],_r.ctorParameters=function(){return[{type:wr}]};var Pr=function(){function e(e,t){this._page=e,this.stateDebouncer=t,this._change=new i.Subject,this._all=[]}return Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.hasActiveFilters=function(){var e,t;try{for(var n=re(this._all),r=n.next();!r.done;r=n.next()){var i=r.value.filter;if(i&&i.isActive())return!0}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!1},e.prototype.getActiveFilters=function(){var e,t,n=[];try{for(var r=re(this._all),i=r.next();!i.done;i=r.next()){var o=i.value.filter;o&&o.isActive()&&n.push(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.add=function(e){var t=this,n=e.changes.subscribe((function(){return t.resetPageAndEmitFilterChange([e])})),r=!1,i=new Dr(e,(function(){if(!r){n.unsubscribe();var i=t._all.findIndex((function(t){return t.filter===e}));i>=0&&t._all.splice(i,1),e.isActive()&&t.resetPageAndEmitFilterChange([]),r=!0}}));return this._all.push(i),e.isActive()&&this.resetPageAndEmitFilterChange([e]),i},e.prototype.accepts=function(e){var t,n;try{for(var r=re(this._all),i=r.next();!i.done;i=r.next()){var o=i.value.filter;if(o&&o.isActive()&&!o.accepts(e))return!1}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!0},e.prototype.resetPageAndEmitFilterChange=function(e){this.stateDebouncer.changeStart(),this._page.current=1,this._change.next(e),this.stateDebouncer.changeDone()},e}();Pr.decorators=[{type:t.Injectable}],Pr.ctorParameters=function(){return[{type:_r},{type:wr}]};var Dr=function(e,t){this.filter=e,this.unregister=t},Tr=function(){function e(e){this.filters=e}return Object.defineProperty(e.prototype,"filter",{get:function(){return this.registered&&this.registered.filter},enumerable:!1,configurable:!0}),e.prototype.setFilter=function(e){this.deleteFilter(),e instanceof Dr?this.registered=e:e&&(this.registered=this.filters.add(e))},e.prototype.deleteFilter=function(){this.registered&&(this.registered.unregister(),delete this.registered)},e.prototype.ngOnDestroy=function(){this.deleteFilter()},e}();Tr.decorators=[{type:t.Directive}],Tr.ctorParameters=function(){return[{type:Pr}]};var xr=function(n){function i(r,i,o,s,a){var c=n.call(this,r)||this;return c.commonStrings=i,c.smartToggleService=o,c.platformId=s,c.popoverId=a,c.subs=[],c.ariaExpanded=!1,c.smartPosition={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.END,content:e.ClrAlignment.END},c._open=!1,c.openChange=new t.EventEmitter(!1),c.subs.push(o.openChange.subscribe((function(e){c.open=e,c.ariaExpanded=e}))),c}return ne(i,n),Object.defineProperty(i.prototype,"open",{get:function(){return this._open},set:function(e){e=!!e,this.open!==e&&(this.smartToggleService.open=e,this.openChange.emit(e),!e&&r.isPlatformBrowser(this.platformId)&&this.anchor.nativeElement.focus(),this._open=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"customFilter",{set:function(e){this.setFilter(e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"active",{get:function(){return!!this.filter&&this.filter.isActive()},enumerable:!1,configurable:!0}),i.prototype.ngOnDestroy=function(){n.prototype.ngOnDestroy.call(this),this.subs.forEach((function(e){return e.unsubscribe()}))},i}(Tr);xr.decorators=[{type:t.Component,args:[{selector:"clr-dg-filter",providers:[{provide:Er,useExisting:xr},W],template:'\n <button\n class="datagrid-filter-toggle"\n type="button"\n #anchor\n [attr.aria-label]="commonStrings.keys.datagridFilterAriaLabel"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-controls]="popoverId"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [class.datagrid-filter-open]="open"\n [class.datagrid-filtered]="active"\n >\n <cds-icon\n [attr.status]="active ? \'info\' : null"\n [attr.shape]="active ? \'filter-grid-circle\' : \'filter-grid\'"\n solid\n ></cds-icon>\n </button>\n\n <div\n class="datagrid-filter"\n [id]="popoverId"\n clrFocusTrap\n *clrPopoverContent="open; at: smartPosition; outsideClickToClose: true; scrollToClose: true"\n >\n <div class="datagrid-filter-close-wrapper">\n <button type="button" class="close" clrPopoverCloseButton>\n <cds-icon shape="window-close" [attr.title]="commonStrings.keys.close"></cds-icon>\n </button>\n </div>\n\n <ng-content></ng-content>\n </div>\n '}]}],xr.ctorParameters=function(){return[{type:Pr},{type:V},{type:y},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:String,decorators:[{type:t.Inject,args:[z]}]}]},xr.propDecorators={anchor:[{type:t.ViewChild,args:["anchor",{read:t.ElementRef}]}],open:[{type:t.Input,args:["clrDgFilterOpen"]}],openChange:[{type:t.Output,args:["clrDgFilterOpenChange"]}],customFilter:[{type:t.Input,args:["clrDgFilter"]}]};var Ar=function(){function e(e){this.prop=e,e.indexOf(".")>=0&&(this.splitProp=e.split("."))}return e.prototype.getPropValue=function(e){var t,n;if(this.splitProp){var r=e;try{for(var i=re(this.splitProp),o=i.next();!o.done;o=i.next()){var s=o.value;if(null==r||void 0===r[s])return;r=r[s]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}return e[this.prop]},e}(),kr=function(){function e(e,t){void 0===t&&(t=!1),this.prop=e,this.exact=t,this.nestedProp=new Ar(e)}return e.prototype.accepts=function(e,t){var n=this.nestedProp.getPropValue(e);return void 0!==n&&(this.exact?(""+n).toLowerCase()===t:(""+n).toLowerCase().indexOf(t)>=0)},e}(),Rr=function(){function e(e){this.filterFn=e,this._changes=new i.Subject,this._lowerCaseValue="",this._rawValue=""}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowerCaseValue",{get:function(){return this._lowerCaseValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._rawValue},set:function(e){e||(e=""),e!==this._rawValue&&(this._rawValue=e,this._lowerCaseValue=e.toLowerCase().trim(),this._changes.next(e))},enumerable:!1,configurable:!0}),e.prototype.isActive=function(){return!!this.value},e.prototype.accepts=function(e){return this.filterFn.accepts(e,this.lowerCaseValue)},Object.defineProperty(e.prototype,"state",{get:function(){return this.filterFn instanceof kr?{property:this.filterFn.prop,value:this.value}:this},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return t instanceof e&&(t.filterFn instanceof kr?this.filterFn instanceof kr&&t.filterFn.prop===this.filterFn.prop&&t.value===this.value:t===this)},e}(),Lr=function(e){function n(n,r,i,o){var s=e.call(this,n)||this;return s.domAdapter=r,s.commonStrings=i,s.smartToggleService=o,s.subs=[],s.open=!1,s.filterValueChange=new t.EventEmitter,s}return ne(n,e),Object.defineProperty(n.prototype,"customStringFilter",{set:function(e){e instanceof Dr?this.setFilter(e):this.setFilter(new Rr(e)),this.initFilterValue&&(this.value=this.initFilterValue,delete this.initFilterValue)},enumerable:!1,configurable:!0}),n.prototype.ngAfterViewInit=function(){var e=this;this.subs.push(this.smartToggleService.openChange.subscribe((function(t){e.open=t,setTimeout((function(){e.domAdapter.focus(e.input.nativeElement)}))})))},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.subs.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(n.prototype,"value",{get:function(){return this.filter.value},set:function(e){this.filter&&"string"==typeof e?(e||(e=""),e!==this.filter.value&&(this.filter.value=e,this.filterValueChange.emit(e))):this.initFilterValue=e},enumerable:!1,configurable:!0}),n}(Tr);Lr.decorators=[{type:t.Component,args:[{selector:"clr-dg-string-filter",providers:[{provide:Er,useExisting:Lr}],template:'\n <clr-dg-filter [clrDgFilter]="registered" [(clrDgFilterOpen)]="open">\n <input\n #input\n type="text"\n name="search"\n [(ngModel)]="value"\n class="clr-input"\n [attr.aria-label]="commonStrings.keys.filterItems"\n />\n </clr-dg-filter>\n '}]}],Lr.ctorParameters=function(){return[{type:Pr},{type:tr},{type:V},{type:y}]},Lr.propDecorators={customStringFilter:[{type:t.Input,args:["clrDgStringFilter"]}],input:[{type:t.ViewChild,args:["input"]}],filterContainer:[{type:t.ViewChild,args:[xr]}],value:[{type:t.Input,args:["clrFilterValue"]}],filterValueChange:[{type:t.Output,args:["clrFilterValueChange"]}]};var jr=function(){function e(e,t){void 0===t&&(t=!1),this.prop=e,this.exact=t,this.nestedProp=new Ar(e)}return e.prototype.accepts=function(e,t,n){var r=this.nestedProp.getPropValue(e);return!(null!==t&&r<t)&&!(null!==n&&r>n)},e}(),Nr=function(){function e(e){this.filterFn=e,this._changes=new i.Subject,this._low=null,this._high=null}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return[this._low,this._high]},set:function(e){var t=e[0],n=e[1];t===this._low&&n===this._high||(this._low=t,this._high=n,this._changes.next([this._low,this._high]))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"low",{get:function(){return this._low},set:function(e){e!==this._low&&(this._low=e,this._changes.next([this._low,this._high]))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"high",{get:function(){return this._high},set:function(e){e!==this._high&&(this._high=e,this._changes.next([this._low,this._high]))},enumerable:!1,configurable:!0}),e.prototype.isActive=function(){return null!==this._low||null!==this.high},e.prototype.accepts=function(e){return this.filterFn.accepts(e,this._low,this._high)},Object.defineProperty(e.prototype,"state",{get:function(){return this.filterFn instanceof jr?{property:this.filterFn.prop,low:this._low,high:this._high}:this},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return t instanceof e&&(t.filterFn instanceof jr?this.filterFn instanceof jr&&t.filterFn.prop===this.filterFn.prop&&t.low===this._low&&t.high===this._high:t===this)},e}(),Fr=function(e){function n(n,r,i,o){var s=e.call(this,n)||this;return s.domAdapter=r,s.commonStrings=i,s.popoverToggleService=o,s.subscriptions=[],s.open=!1,s.filterValueChange=new t.EventEmitter,s}return ne(n,e),n.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){e.unsubscribe()}))},Object.defineProperty(n.prototype,"customNumericFilter",{set:function(e){e instanceof Dr?this.setFilter(e):this.setFilter(new Nr(e)),this.initFilterValues&&(this.value=this.initFilterValues,delete this.initFilterValues)},enumerable:!1,configurable:!0}),n.prototype.ngAfterViewInit=function(){var e=this;this.subscriptions.push(this.popoverToggleService.openChange.subscribe((function(t){e.open=t,setTimeout((function(){e.domAdapter.focus(e.input.nativeElement)}))})))},Object.defineProperty(n.prototype,"value",{get:function(){return[this.filter.low,this.filter.high]},set:function(e){this.filter&&Array.isArray(e)?!e||e[0]===this.filter.low&&e[1]===this.filter.high||("number"==typeof e[0]?this.filter.low=e[0]:this.filter.low=null,"number"==typeof e[1]?this.filter.high=e[1]:this.filter.high=null,this.filterValueChange.emit(e)):this.initFilterValues=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"low",{get:function(){return"number"==typeof this.filter.low&&isFinite(this.filter.low)?this.filter.low:null},set:function(e){"number"==typeof e&&e!==this.filter.low?(this.filter.low=e,this.filterValueChange.emit([this.filter.low,this.filter.high])):"number"!=typeof e&&(this.filter.low=null,this.filterValueChange.emit([this.filter.low,this.filter.high]))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"high",{get:function(){return"number"==typeof this.filter.high&&isFinite(this.filter.high)?this.filter.high:null},set:function(e){"number"==typeof e&&e!==this.filter.high?(this.filter.high=e,this.filterValueChange.emit([this.filter.low,this.filter.high])):"number"!=typeof e&&(this.filter.high=null,this.filterValueChange.emit([this.filter.low,this.filter.high]))},enumerable:!1,configurable:!0}),n}(Tr);Fr.decorators=[{type:t.Component,args:[{selector:"clr-dg-numeric-filter",providers:[{provide:Er,useExisting:Fr}],template:'\n <clr-dg-filter [clrDgFilter]="registered" [(clrDgFilterOpen)]="open">\n <input\n class="datagrid-numeric-filter-input"\n #input_low\n type="number"\n name="low"\n [(ngModel)]="low"\n [placeholder]="commonStrings.keys.minValue"\n [attr.aria-label]="commonStrings.keys.minValue"\n />\n <span class="datagrid-filter-input-spacer"></span>\n <input\n class="datagrid-numeric-filter-input"\n #input_high\n type="number"\n name="high"\n [(ngModel)]="high"\n [placeholder]="commonStrings.keys.maxValue"\n [attr.aria-label]="commonStrings.keys.maxValue"\n />\n </clr-dg-filter>\n '}]}],Fr.ctorParameters=function(){return[{type:Pr},{type:tr},{type:V},{type:y}]},Fr.propDecorators={customNumericFilter:[{type:t.Input,args:["clrDgNumericFilter"]}],input:[{type:t.ViewChild,args:["input_low"]}],filterContainer:[{type:t.ViewChild,args:[xr]}],value:[{type:t.Input,args:["clrFilterValue"]}],filterValueChange:[{type:t.Output,args:["clrFilterValueChange"]}]};var Mr=function(){function e(){this._chocolate=new i.Subject,this.disableChocolateCheck=!1}return Object.defineProperty(e.prototype,"chocolate",{get:function(){return this._chocolate.asObservable()},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewChecked=function(){this.disableChocolateCheck||this._chocolate.next()},e}();Mr.decorators=[{type:t.Directive}];var Vr=function(){function e(e,t){var n=this;this.subscription=t.chocolate.subscribe((function(){n.latestFlavor!==n.flavor&&(t.disableChocolateCheck=!0,e.detectChanges(),t.disableChocolateCheck=!1)}))}return e.prototype.ngAfterContentChecked=function(){this.latestFlavor=this.flavor},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}();Vr.decorators=[{type:t.Directive}],Vr.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Mr}]};var Br=function(){function e(){this.actionableCount=0}return e.prototype.register=function(){this.actionableCount++},e.prototype.unregister=function(){this.actionableCount--},Object.defineProperty(e.prototype,"hasActionableRow",{get:function(){return this.actionableCount>0},enumerable:!1,configurable:!0}),e}();Br.decorators=[{type:t.Injectable}];var zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t}(Mr);zr.decorators=[{type:t.Directive,args:[{selector:"clr-datagrid"}]}];var Hr=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");return(i=e.call(this,t,n)||this).rowActions=r,i}return ne(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.rowActions.hasActionableRow},enumerable:!1,configurable:!0}),t}(Vr);Hr.decorators=[{type:t.Directive,args:[{selector:"clr-datagrid, clr-dg-row"}]}],Hr.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:zr,decorators:[{type:t.Optional}]},{type:Br}]};var Gr=function(){function e(){this.toggleState=!1,this._state=new i.BehaviorSubject(this.toggleState),this._enabled=!1}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stateChange",{get:function(){return this._state.asObservable()},enumerable:!1,configurable:!0}),e.prototype.close=function(){this.toggleState=!1,this._state.next(this.toggleState),this.button&&(this.button.focus(),this.button=null)},e.prototype.open=function(e,t){this.cache=e,this.button=t,this.toggleState=!0,this._state.next(this.toggleState)},e.prototype.toggle=function(e,t){this.isRowOpen(e)||!e?this.close():this.open(e,t)},Object.defineProperty(e.prototype,"state",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e.prototype.isRowOpen=function(e){return!(!this.toggleState||this.cache!==e)},Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0===this.toggleState},enumerable:!1,configurable:!0}),e}();Gr.decorators=[{type:t.Injectable}];var Wr=function(){function e(e){this.detailService=e,this.expandableCount=0}return e.prototype.register=function(){this.expandableCount++},e.prototype.unregister=function(){this.expandableCount--},Object.defineProperty(e.prototype,"hasExpandableRow",{get:function(){return!this.detailService.enabled&&this.expandableCount>0},enumerable:!1,configurable:!0}),e}();Wr.decorators=[{type:t.Injectable}],Wr.ctorParameters=function(){return[{type:Gr}]};var Ur=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-dg-row should only be used inside of a clr-datagrid");return(i=e.call(this,t,n)||this).expandableCount=r,i}return ne(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.expandableCount.hasExpandableRow},enumerable:!1,configurable:!0}),t}(Vr);Ur.decorators=[{type:t.Directive,args:[{selector:"clr-datagrid, clr-dg-row"}]}],Ur.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:zr,decorators:[{type:t.Optional}]},{type:Wr}]};var Yr,Kr=function(){function e(e){this.prop=e,this.nestedProp=new Ar(e)}return e.prototype.compare=function(e,t){var n=this.nestedProp.getPropValue(e),r=this.nestedProp.getPropValue(t);return"string"==typeof n&&(n=n.toLowerCase()),"string"==typeof r&&(r=r.toLowerCase()),null==n?null==r?0:1:null==r||n<r?-1:n>r?1:0},e}();(Yr=e.ClrDatagridSortOrder||(e.ClrDatagridSortOrder={}))[Yr.UNSORTED=0]="UNSORTED",Yr[Yr.ASC=1]="ASC",Yr[Yr.DESC=-1]="DESC";var Zr=function(){function e(e){this.stateDebouncer=e,this._reverse=!1,this._change=new i.Subject}return Object.defineProperty(e.prototype,"comparator",{get:function(){return this._comparator},set:function(e){this.stateDebouncer.changeStart(),this._comparator=e,this.emitChange(),this.stateDebouncer.changeDone()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reverse",{get:function(){return this._reverse},set:function(e){this.stateDebouncer.changeStart(),this._reverse=e,this.emitChange(),this.stateDebouncer.changeDone()},enumerable:!1,configurable:!0}),e.prototype.emitChange=function(){this._change.next(this)},Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.toggle=function(e,t){this.stateDebouncer.changeStart(),this.comparator===e?this._reverse=void 0!==t&&t||!this._reverse:(this._comparator=e,this._reverse=void 0!==t&&t),this.emitChange(),this.stateDebouncer.changeDone()},e.prototype.clear=function(){this.comparator=null},e.prototype.compare=function(e,t){return(this.reverse?-1:1)*this.comparator.compare(e,t)},e}();Zr.decorators=[{type:t.Injectable}],Zr.ctorParameters=function(){return[{type:wr}]};var qr=function(){function e(){this._dynamic=!1}return e.prototype.ngAfterViewInit=function(){this.columnView=this.templateRef.createEmbeddedView(null)},e.prototype.ngOnDestroy=function(){this.columnView.destroy()},e}();qr.decorators=[{type:t.Component,args:[{selector:"dg-wrapped-column",template:"\n <ng-template #columnPortal>\n <ng-content></ng-content>\n </ng-template>\n "}]}],qr.propDecorators={templateRef:[{type:t.ViewChild,args:["columnPortal"]}]};var Xr=function(n){function r(r,i,o,s,a,c){var l=n.call(this,i)||this;return l._sort=r,l.vcr=o,l.detailService=s,l.changeDetectorRef=a,l.commonStrings=c,l.showSeparator=!0,l.subscriptions=[],l._colType="string",l._sorted=!1,l.sortedChange=new t.EventEmitter,l._sortOrder=e.ClrDatagridSortOrder.UNSORTED,l.sortOrderChange=new t.EventEmitter,l.customFilter=!1,l.filterValueChange=new t.EventEmitter,l.subscriptions.push(l.listenForSortingChanges()),l.subscriptions.push(l.listenForDetailPaneChanges()),l}return ne(r,n),r.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},r.prototype.listenForDetailPaneChanges=function(){var e=this;return this.detailService.stateChange.subscribe((function(t){e.showSeparator!==!t&&(e.showSeparator=!t,e.changeDetectorRef.markForCheck())}))},r.prototype.listenForSortingChanges=function(){var t=this;return this._sort.change.subscribe((function(n){t.changeDetectorRef.markForCheck(),t.sortOrder!==e.ClrDatagridSortOrder.UNSORTED&&n.comparator!==t._sortBy&&(t._sortOrder=e.ClrDatagridSortOrder.UNSORTED,t.sortOrderChange.emit(t._sortOrder),t.sortIcon=null,t._sortDirection=null),t.sorted&&n.comparator!==t._sortBy&&(t._sorted=!1,t.sortedChange.emit(!1))}))},Object.defineProperty(r.prototype,"colType",{get:function(){return this._colType},set:function(e){this._colType=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"field",{get:function(){return this._field},set:function(e){"string"==typeof e&&(this._field=e,this._sortBy||(this._sortBy=new Kr(e)))},enumerable:!1,configurable:!0}),r.prototype.setupDefaultFilter=function(e,t){"number"===t?this.setFilter(new Nr(new jr(e))):"string"===t&&this.setFilter(new Rr(new kr(e))),this.filter&&this.initFilterValue&&(this.updateFilterValue=this.initFilterValue,delete this.initFilterValue)},r.prototype.ngOnChanges=function(e){e.colType&&e.colType.currentValue&&e.colType.currentValue!==e.colType.previousValue&&!this.customFilter&&!this.filter&&this.colType&&this.field&&this.setupDefaultFilter(this.field,this.colType),e.field&&e.field.currentValue&&e.field.currentValue!==e.field.previousValue&&!this.customFilter&&this.colType&&this.setupDefaultFilter(this.field,this.colType)},Object.defineProperty(r.prototype,"sortBy",{get:function(){return this._sortBy},set:function(e){"string"==typeof e?this._sortBy=new Kr(e):e?this._sortBy=e:this.field?this._sortBy=new Kr(this.field):delete this._sortBy},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sortable",{get:function(){return!!this._sortBy},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sorted",{get:function(){return this._sorted},set:function(e){!e&&this.sorted?(this._sorted=!1,this._sort.clear()):e&&!this.sorted&&this.sort()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sortOrder",{get:function(){return this._sortOrder},set:function(t){if(void 0!==t&&this._sortOrder!==t)switch(t){default:case e.ClrDatagridSortOrder.UNSORTED:this._sort.clear();break;case e.ClrDatagridSortOrder.ASC:this.sort(!1);break;case e.ClrDatagridSortOrder.DESC:this.sort(!0)}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ariaSort",{get:function(){switch(this._sortOrder){default:case e.ClrDatagridSortOrder.UNSORTED:return"none";case e.ClrDatagridSortOrder.ASC:return"ascending";case e.ClrDatagridSortOrder.DESC:return"descending"}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sortDirection",{get:function(){return this._sortDirection},enumerable:!1,configurable:!0}),r.prototype.sort=function(t){this.sortable&&(this._sort.toggle(this._sortBy,t),this._sortOrder=this._sort.reverse?e.ClrDatagridSortOrder.DESC:e.ClrDatagridSortOrder.ASC,this._sortDirection=this._sortOrder===e.ClrDatagridSortOrder.DESC?"down":"up",this.sortIcon=this._sortOrder===e.ClrDatagridSortOrder.DESC?"arrow down":"arrow",this.sortOrderChange.emit(this._sortOrder),this._sorted=!0,this.sortedChange.emit(!0))},Object.defineProperty(r.prototype,"projectedFilter",{set:function(e){e&&(this.deleteFilter(),this.customFilter=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"updateFilterValue",{set:function(e){this.filter?this.filter instanceof Rr?(e&&"string"==typeof e||(e=""),e!==this.filter.value&&(this.filter.value=e)):this.filter instanceof Nr&&(e&&e instanceof Array||(e=[null,null]),2!==e.length||e[0]===this.filter.value[0]&&e[1]===this.filter.value[1]||(this.filter.value=e)):this.initFilterValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filterValue",{get:function(){return this.filter instanceof Rr||this.filter instanceof Nr?this.filter.value:null},set:function(e){(this.filter instanceof Rr||this.filter instanceof Nr)&&(this.updateFilterValue=e,this.filterValueChange.emit(this.filter.value))},enumerable:!1,configurable:!0}),r.prototype.ngOnInit=function(){this.wrappedInjector=new se(qr,this.vcr)},Object.defineProperty(r.prototype,"_view",{get:function(){return this.wrappedInjector.get(qr,this.vcr).columnView},enumerable:!1,configurable:!0}),r}(Tr);Xr.decorators=[{type:t.Component,args:[{selector:"clr-dg-column",template:'\n <div class="datagrid-column-flex">\n <button class="datagrid-column-title" *ngIf="sortable" (click)="sort()" type="button">\n <ng-container *ngTemplateOutlet="columnTitle"></ng-container>\n <cds-icon\n *ngIf="sortDirection"\n shape="arrow"\n [attr.direction]="sortDirection"\n aria-hidden="true"\n class="sort-icon"\n ></cds-icon>\n </button>\n \x3c!-- I\'m really not happy with that select since it\'s not very scalable --\x3e\n <ng-content select="clr-dg-filter, clr-dg-string-filter, clr-dg-numeric-filter"></ng-content>\n\n <clr-dg-string-filter\n *ngIf="field && !customFilter && colType == \'string\'"\n [clrDgStringFilter]="registered"\n [(clrFilterValue)]="filterValue"\n ></clr-dg-string-filter>\n\n <clr-dg-numeric-filter\n *ngIf="field && !customFilter && colType == \'number\'"\n [clrDgNumericFilter]="registered"\n [(clrFilterValue)]="filterValue"\n ></clr-dg-numeric-filter>\n\n <ng-template #columnTitle>\n <ng-content></ng-content>\n </ng-template>\n\n <span class="datagrid-column-title" *ngIf="!sortable">\n <ng-container *ngTemplateOutlet="columnTitle"></ng-container>\n </span>\n\n <clr-dg-column-separator *ngIf="showSeparator"></clr-dg-column-separator>\n </div>\n ',providers:[P,v,y],host:{"[class.datagrid-column]":"true","[attr.aria-sort]":"ariaSort",role:"columnheader"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}],Xr.ctorParameters=function(){return[{type:Zr},{type:Pr},{type:t.ViewContainerRef},{type:Gr},{type:t.ChangeDetectorRef},{type:V}]},Xr.propDecorators={colType:[{type:t.Input,args:["clrDgColType"]}],field:[{type:t.Input,args:["clrDgField"]}],sortBy:[{type:t.Input,args:["clrDgSortBy"]}],sorted:[{type:t.Input,args:["clrDgSorted"]}],sortedChange:[{type:t.Output,args:["clrDgSortedChange"]}],sortOrder:[{type:t.Input,args:["clrDgSortOrder"]}],sortOrderChange:[{type:t.Output,args:["clrDgSortOrderChange"]}],projectedFilter:[{type:t.ContentChild,args:[Er]}],updateFilterValue:[{type:t.Input,args:["clrFilterValue"]}],filterValueChange:[{type:t.Output,args:["clrFilterValueChange"]}]};var $r=function(){function e(e,t,n){this._filters=e,this._sort=t,this._page=n,this.loading=!1,this.trackBy=function(e,t){return t},this._smart=!1,this._displayed=[],this._change=new i.Subject,this._allChanges=new i.Subject}return e.prototype.destroy=function(){this._filtersSub&&this._filtersSub.unsubscribe(),this._sortSub&&this._sortSub.unsubscribe(),this._pageSub&&this._pageSub.unsubscribe()},Object.defineProperty(e.prototype,"smart",{get:function(){return this._smart},enumerable:!1,configurable:!0}),e.prototype.smartenUp=function(){var e=this;this._smart=!0,this._filtersSub=this._filters.change.subscribe((function(){return e._filterItems()})),this._sortSub=this._sort.change.subscribe((function(){e._sort.comparator?e._sortItems():e._filterItems()})),this._pageSub=this._page.change.subscribe((function(){return e._changePage()}))},Object.defineProperty(e.prototype,"all",{get:function(){return this._all},set:function(e){this._all=e,this.emitAllChanges(e),this.smart?this._filterItems():(this._displayed=e,this.emitChange())},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){this.smart&&this._filterItems()},Object.defineProperty(e.prototype,"displayed",{get:function(){return this._displayed},enumerable:!1,configurable:!0}),e.prototype.emitChange=function(){this._change.next(this.displayed)},Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.emitAllChanges=function(e){this._allChanges.next(e)},Object.defineProperty(e.prototype,"allChanges",{get:function(){return this._allChanges.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uninitialized",{get:function(){return!this._all},enumerable:!1,configurable:!0}),e.prototype._filterItems=function(){var e=this;this.uninitialized||(this._filters.hasActiveFilters()?this._filtered=this._all.filter((function(t){return e._filters.accepts(t)})):this._filtered=this._all.slice(),this._page.totalItems=this._filtered.length,this._sortItems())},e.prototype._sortItems=function(){var e=this;this.uninitialized||(this._sort.comparator&&this._filtered.sort((function(t,n){return e._sort.compare(t,n)})),this._changePage())},e.prototype._changePage=function(){this.uninitialized||this._page.activated&&0===this._page.size||(this._page.size>0?this._displayed=this._filtered.slice(this._page.firstItem,this._page.lastItem+1):this._displayed=this._filtered,this.emitChange())},e}();$r.decorators=[{type:t.Injectable}],$r.ctorParameters=function(){return[{type:Pr},{type:Zr},{type:_r}]};var Jr=function(){function e(e,t,n,i){var o=this;this.template=e,this.differs=t,this.items=n,this.vcr=i,this.differ=null,this.subscriptions=[],n.smartenUp(),this.iterableProxy=new r.NgForOf(this.vcr,this.template,this.differs),this.subscriptions.push(n.change.subscribe((function(e){o.iterableProxy.ngForOf=e,o.iterableProxy.ngDoCheck()})))}return Object.defineProperty(e.prototype,"rawItems",{set:function(e){this._rawItems=e||[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackBy",{set:function(e){this.items.trackBy=e,this.iterableProxy.ngForTrackBy=e},enumerable:!1,configurable:!0}),e.prototype.ngDoCheck=function(){(this.differ||(this.differ=this.differs.find(this._rawItems).create(this.iterableProxy.ngForTrackBy)),this.differ)&&(this.differ.diff(this._rawItems)&&(this.items.all=this._rawItems))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();Jr.decorators=[{type:t.Directive,args:[{selector:"[clrDgItems][clrDgItemsOf]"}]}],Jr.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.IterableDiffers},{type:$r},{type:t.ViewContainerRef}]},Jr.propDecorators={rawItems:[{type:t.Input,args:["clrDgItemsOf"]}],trackBy:[{type:t.Input,args:["clrDgItemsTrackBy"]}]};var Qr=function(){function e(e){this.items=e}return Object.defineProperty(e.prototype,"emptyDatagrid",{get:function(){return!(this.items.loading||this.items.displayed&&0!==this.items.displayed.length)},enumerable:!1,configurable:!0}),e}();Qr.decorators=[{type:t.Component,args:[{selector:"clr-dg-placeholder",template:'\n <div class="datagrid-placeholder" [class.datagrid-empty]="emptyDatagrid" role="row">\n <div class="datagrid-placeholder-image" *ngIf="emptyDatagrid"></div>\n <span role="gridcell"><ng-content *ngIf="emptyDatagrid"></ng-content></span>\n </div>\n ',host:{"[class.datagrid-placeholder-container]":"true"}}]}],Qr.ctorParameters=function(){return[{type:$r}]};var ei=function(){function e(){}return Object.defineProperty(e.prototype,"triggerEl",{set:function(e){this._triggerEl=e},enumerable:!1,configurable:!0}),e.prototype.focusTrigger=function(){this._triggerEl&&this._triggerEl.focus()},e}();ei.decorators=[{type:t.Injectable}];var ti=function(){function e(){this._id=new i.Subject}return e.prototype.setId=function(e){this._id.next(e)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id.asObservable()},enumerable:!1,configurable:!0}),e}();ti.decorators=[{type:t.Injectable}];var ni=function(){function e(e,t,n,r,i,o,s){this.toggleService=e,this.el=t,this.commonStrings=n,this.signpostIdService=r,this.signpostFocusManager=i,this.platformId=s,this.subscriptions=[],this.document=o}return e.prototype.ngOnInit=function(){var e=this;this.signpostFocusManager.triggerEl=this.el.nativeElement,this.subscriptions.push(this.toggleService.openChange.subscribe((function(t){e.ariaExpanded=t;var n=e.isOpen;e.isOpen=t,!e.isOpen&&n&&e.focusOnClose()})),this.signpostIdService.id.subscribe((function(t){return e.ariaControl=t})))},e.prototype.focusOnClose=function(){r.isPlatformBrowser(this.platformId)&&(this.isOpen||this.document.activeElement!==this.document.body||this.signpostFocusManager.focusTrigger())},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.onSignpostTriggerClick=function(e){this.toggleService.toggleWithEvent(e)},e}();ni.decorators=[{type:t.Directive,args:[{selector:"[clrSignpostTrigger]",host:{class:"signpost-trigger","[attr.aria-label]":"commonStrings.keys.signpostToggle","[attr.aria-expanded]":"ariaExpanded","[attr.aria-controls]":"ariaControl","[class.active]":"isOpen"}}]}],ni.ctorParameters=function(){return[{type:y},{type:t.ElementRef},{type:V},{type:ti},{type:ei},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},ni.propDecorators={onSignpostTriggerClick:[{type:t.HostListener,args:["click",["$event"]]}]};var ri=function(){function e(e){this.commonStrings=e,this.useCustomTrigger=!1}return Object.defineProperty(e.prototype,"customTrigger",{set:function(e){this.useCustomTrigger=!!e},enumerable:!1,configurable:!0}),e}();ri.decorators=[{type:t.Component,args:[{selector:"clr-signpost",template:'\n <ng-container *ngIf="!useCustomTrigger">\n <button type="button" class="signpost-action btn btn-small btn-link" clrSignpostTrigger>\n <cds-icon shape="info-circle" [attr.title]="commonStrings.keys.info"></cds-icon>\n </button>\n </ng-container>\n\n <ng-content></ng-content>\n ',host:{"[class.signpost]":"true"},providers:[y,ei,{provide:Pn,useExisting:t.ElementRef},ti]}]}],ri.ctorParameters=function(){return[{type:V}]},ri.propDecorators={customTrigger:[{type:t.ContentChild,args:[ni]}]};var ii=function(){function e(){this._dynamic=!1}return e.prototype.ngAfterViewInit=function(){this.cellView=this.templateRef.createEmbeddedView(null)},e.prototype.ngOnDestroy=function(){this.cellView.destroy()},e}();ii.decorators=[{type:t.Component,args:[{selector:"dg-wrapped-cell",template:"\n <ng-template #cellPortal>\n <ng-content></ng-content>\n </ng-template>\n "}]}],ii.propDecorators={templateRef:[{type:t.ViewChild,args:["cellPortal"]}]};var oi,si,ai=function(){function e(e){this.vcr=e}return e.prototype.ngOnInit=function(){this.wrappedInjector=new se(ii,this.vcr)},Object.defineProperty(e.prototype,"_view",{get:function(){return this.wrappedInjector.get(ii,this.vcr).cellView},enumerable:!1,configurable:!0}),e}();ai.decorators=[{type:t.Component,args:[{selector:"clr-dg-cell",template:" <ng-content></ng-content> ",host:{"[class.datagrid-cell]":"true","[class.datagrid-signpost-trigger]":"signpost.length > 0",role:"gridcell"}}]}],ai.ctorParameters=function(){return[{type:t.ViewContainerRef}]},ai.propDecorators={signpost:[{type:t.ContentChildren,args:[ri]}]},function(e){e[e.DISPLAY=0]="DISPLAY",e[e.CALCULATE=1]="CALCULATE"}(oi||(oi={})),function(e){e[e.ALIGN_COLUMNS=0]="ALIGN_COLUMNS",e[e.CALCULATE_MODE_ON=1]="CALCULATE_MODE_ON",e[e.CALCULATE_MODE_OFF=2]="CALCULATE_MODE_OFF",e[e.CLEAR_WIDTHS=3]="CLEAR_WIDTHS",e[e.COMPUTE_COLUMN_WIDTHS=4]="COMPUTE_COLUMN_WIDTHS"}(si||(si={}));var ci=function(){function e(){this._renderStep=new i.Subject,this.alreadySized=!1}return Object.defineProperty(e.prototype,"renderStep",{get:function(){return this._renderStep.asObservable()},enumerable:!1,configurable:!0}),e.prototype.filterRenderSteps=function(e){return this.renderStep.pipe(o.filter((function(t){return e===t})))},e.prototype.resize=function(){this._renderStep.next(si.CALCULATE_MODE_ON),this.alreadySized&&this._renderStep.next(si.CLEAR_WIDTHS),this._renderStep.next(si.COMPUTE_COLUMN_WIDTHS),this._renderStep.next(si.ALIGN_COLUMNS),this.alreadySized=!0,this._renderStep.next(si.CALCULATE_MODE_OFF)},e}();ci.decorators=[{type:t.Injectable}];var li,pi=function(){function e(e){var t=this;this.subscriptions=[],this._view=new i.BehaviorSubject(oi.DISPLAY),this.subscriptions.push(e.filterRenderSteps(si.CALCULATE_MODE_ON).subscribe((function(){return t._view.next(oi.CALCULATE)}))),this.subscriptions.push(e.filterRenderSteps(si.CALCULATE_MODE_OFF).subscribe((function(){return t._view.next(oi.DISPLAY)})))}return Object.defineProperty(e.prototype,"view",{get:function(){return this._view.asObservable()},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();pi.decorators=[{type:t.Injectable}],pi.ctorParameters=function(){return[{type:ci}]},function(e){e[e.None=0]="None",e[e.Single=1]="Single",e[e.Multi=2]="Multi"}(li||(li={}));var ui=0,di=function(){function e(e,t,n){var r=this;this._items=e,this._filters=t,this._zone=n,this.preserveSelection=!1,this.prevSelectionRefs=[],this.lockedRefs=[],this._selectionType=li.None,this.rowSelectionMode=!1,this.subscriptions=[],this.valueCollector=new i.Subject,this._change=new i.Subject,this.id="clr-dg-selection"+ui++,this.subscriptions.push(this._filters.change.subscribe((function(){r._selectable&&!r.preserveSelection&&r.clearSelection()}))),this.subscriptions.push(this._items.allChanges.subscribe((function(e){var t=[];switch(r.selectionType){case li.None:break;case li.Single:var n,i=r._items.trackBy,o=!1;if(r.currentSingle&&!r.prevSingleSelectionRef&&r._items.all&&r._items.trackBy){var s=r._items.all.findIndex((function(e){return e===r.currentSingle}));r.prevSingleSelectionRef=r._items.trackBy(s,r.currentSingle)}e.forEach((function(e,s){var a=i(s,e);r.prevSingleSelectionRef===a&&(n=e,o=!0),r.lockedRefs.indexOf(a)>-1&&t.push(a)})),r._items.smart&&!n&&(o=!0),setTimeout((function(){o&&(r.currentSingle=n)}),0);break;case li.Multi:var a=r.current.slice(),c=r._items.trackBy,l=!1;r.current.length>0&&r.prevSelectionRefs.length!==r.current.length&&r._items.all&&r._items.trackBy&&(r.prevSelectionRefs=[],r.current.forEach((function(e){var t=r._items.all.findIndex((function(t){return t===e}));r.prevSelectionRefs.push(r._items.trackBy(t,e))}))),e.forEach((function(e,n){var i=c(n,e);r.lockedRefs.indexOf(i)>-1&&t.push(i)})),a.length>0&&(e.forEach((function(e,t){var n=c(t,e),i=r.prevSelectionRefs.indexOf(n);i>-1&&(a[i]=e,l=!0)})),r._items.smart&&(a=a.filter((function(t){return e.indexOf(t)>-1})),r.current.length!==a.length&&(l=!0)),setTimeout((function(){l&&(r.current=a)}),0))}r.lockedRefs=t}))),this.subscriptions.push(this.valueCollector.pipe(o.debounceTime(0)).subscribe((function(){return r.emitChange()})))}return e.prototype.clearSelection=function(){this._current=[],this.prevSelectionRefs=[],this.prevSingleSelectionRef=null,this._currentSingle=null,this.emitChange()},Object.defineProperty(e.prototype,"selectionType",{get:function(){return this._selectionType},set:function(e){e!==this.selectionType&&(this._selectionType=e,e===li.None?delete this.current:this.updateCurrent([],!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_selectable",{get:function(){return this._selectionType===li.Multi||this._selectionType===li.Single},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(e.prototype,"currentSingle",{get:function(){return this._currentSingle},set:function(e){if(e!==this._currentSingle){if(this._currentSingle=e,this._items.all&&this._items.trackBy&&e){var t=this._items.all.findIndex((function(t){return t===e}));this.prevSingleSelectionRef=this._items.trackBy(t,e)}this.emitChange()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this.updateCurrent(e,!0)},enumerable:!1,configurable:!0}),e.prototype.updateCurrent=function(e,t){this._current=e,t&&this.valueCollector.next(e)},e.prototype.emitChange=function(){this._selectionType===li.Single?this._change.next(this.currentSingle):this._selectionType===li.Multi&&this._change.next(this.current)},Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),e.prototype.isSelected=function(e){return this._selectionType===li.Single?this.currentSingle===e:this._selectionType===li.Multi&&this.current.indexOf(e)>=0},e.prototype.selectItem=function(e){if(this.current=this.current.concat(e),this._items.trackBy&&this._items.all){var t=this._items.all.findIndex((function(t){return t===e}));this.prevSelectionRefs.push(this._items.trackBy(t,e))}},e.prototype.deselectItem=function(e){if(this.current=this.current.slice(0,e).concat(this.current.slice(e+1)),this._items.trackBy&&e<this.prevSelectionRefs.length){var t=this.prevSelectionRefs.splice(e,1);this.lockedRefs=this.lockedRefs.filter((function(e){return e!==t[0]}))}},e.prototype.setSelected=function(e,t){var n=this.current?this.current.indexOf(e):-1;switch(this._selectionType){case li.None:case li.Single:break;case li.Multi:n>=0&&!t?this.deselectItem(n):n<0&&t&&this.selectItem(e)}},e.prototype.isAllSelected=function(){var e=this;if(this._selectionType!==li.Multi||!this._items.displayed)return!1;var t=this._items.displayed.filter((function(t){return!1===e.isLocked(t)}));return!(t.length<1)&&t.filter((function(t){return e.current.indexOf(t)>-1})).length===t.length},e.prototype.canItBeLocked=function(){return this._selectionType!==li.None&&Array.isArray(this._items.all)},e.prototype.lockItem=function(e,t){if(this.canItBeLocked()){var n=this._items.trackBy(this._items.all.findIndex((function(t){return t===e})),e);!0===t?this.lockedRefs.push(n):this.lockedRefs=this.lockedRefs.filter((function(e){return n!==e}))}},e.prototype.isLocked=function(e){if(this.canItBeLocked()){var t=this._items.trackBy(this._items.all.findIndex((function(t){return t===e})),e);return this.lockedRefs.indexOf(t)>-1}return!1},e.prototype.toggleAll=function(){var e=this;this._selectionType!==li.None&&this._selectionType!==li.Single&&(this.isAllSelected()?this._items.displayed.forEach((function(t){var n=e.current.indexOf(t);n>-1&&!1===e.isLocked(t)&&e.deselectItem(n)})):this._items.displayed.forEach((function(t){e.current.indexOf(t)<0&&!1===e.isLocked(t)&&e.selectItem(t)})))},e}();di.decorators=[{type:t.Injectable}],di.ctorParameters=function(){return[{type:$r},{type:Pr},{type:t.NgZone}]};var hi=function(){function e(){this._dynamic=!1}return e.prototype.ngAfterViewInit=function(){this.rowView=this.templateRef.createEmbeddedView(null)},e.prototype.ngOnDestroy=function(){this.rowView.destroy()},e}();hi.decorators=[{type:t.Component,args:[{selector:"dg-wrapped-row",template:"\n <ng-template #rowPortal>\n <ng-content></ng-content>\n </ng-template>\n "}]}],hi.propDecorators={templateRef:[{type:t.ViewChild,args:["rowPortal"]}]};var gi=0,fi=function(t){function n(){var e=t.call(this)||this;return e.expandableId="",e._replace=new i.BehaviorSubject(!1),e._animate=new i.Subject,gi++,e.expandableId="clr-dg-expandable-row-"+gi,e}return ne(n,t),Object.defineProperty(n.prototype,"expanded",{get:function(){return this._expanded},set:function(e){(e=!!e)!==this._expanded&&(this._expanded=e,this._animate.next(),this._expandChange.next(e))},enumerable:!1,configurable:!0}),n.prototype.loadingStateChange=function(n){t.prototype.loadingStateChange.call(this,n),n!==e.ClrLoadingState.LOADING&&this._animate.next()},Object.defineProperty(n.prototype,"replace",{get:function(){return this._replace.asObservable()},enumerable:!1,configurable:!0}),n.prototype.setReplace=function(e){this._replace.next(e)},Object.defineProperty(n.prototype,"animate",{get:function(){return this._animate.asObservable()},enumerable:!1,configurable:!0}),n}(Xe);fi.decorators=[{type:t.Injectable}],fi.ctorParameters=function(){return[]};var yi=0,bi=function(){function e(e,n,r,o,s,a,c,l,p,u){var d=this;this.selection=e,this.rowActionService=n,this.globalExpandable=r,this.expand=o,this.detailService=s,this.displayMode=a,this.vcr=c,this.renderer=l,this.el=p,this.commonStrings=u,this.SELECTION_TYPE=li,this.expandAnimationTrigger=!1,this._selected=!1,this.selectedChanged=new t.EventEmitter(!1),this.expandedChange=new t.EventEmitter(!1),this._detailOpenLabel="",this._detailCloseLabel="",this.subscriptions=[],this.displayCells=!1,yi++,this.id="clr-dg-row"+yi,this.radioId="clr-dg-row-rd"+yi,this.checkboxId="clr-dg-row-cb"+yi,this.expandableId=o.expandableId,this.subscriptions.push(i.combineLatest(this.expand.replace,this.expand.expandChange).subscribe((function(e){var t=ie(e,2),n=t[0],r=t[1];n&&r?(d.replaced=!0,d.renderer.addClass(d.el.nativeElement,"datagrid-row-replaced")):(d.replaced=!1,d.renderer.removeClass(d.el.nativeElement,"datagrid-row-replaced"))})))}return Object.defineProperty(e.prototype,"selected",{get:function(){return this.selection.selectionType===li.None?this._selected:this.selection.isSelected(this.item)},set:function(e){this.selection.selectionType===li.None?this._selected=e:this.selection.setSelected(this.item,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDgSelectable",{get:function(){return!this.selection.isLocked(this.item)},set:function(e){this.selection.lockItem(this.item,!1===e)},enumerable:!1,configurable:!0}),e.prototype.toggle=function(e){void 0===e&&(e=!this.selected),e!==this.selected&&(this.selected=e,this.selectedChanged.emit(e))},Object.defineProperty(e.prototype,"expanded",{get:function(){return this.expand.expanded},set:function(e){this.expand.expanded=e},enumerable:!1,configurable:!0}),e.prototype.toggleExpand=function(){this.expand.expandable&&(this.expandAnimation.updateStartHeight(),this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))},Object.defineProperty(e.prototype,"clrDgDetailOpenLabel",{get:function(){return this._detailOpenLabel?this._detailOpenLabel:this.commonStrings.keys.open},set:function(e){this._detailOpenLabel=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDgDetailCloseLabel",{get:function(){return this._detailCloseLabel?this._detailCloseLabel:this.commonStrings.keys.close},set:function(e){this._detailCloseLabel=e},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.dgCells.changes.subscribe((function(){e.dgCells.forEach((function(t){t._view.destroyed||e._scrollableCells.insert(t._view)}))}))},e.prototype.ngAfterViewInit=function(){var e=this;this.subscriptions.push(this.displayMode.view.subscribe((function(t){for(var n=e._scrollableCells.length;n>0;n--)e._scrollableCells.detach();for(n=e._calculatedCells.length;n>0;n--)e._calculatedCells.detach();t===oi.CALCULATE?(e.displayCells=!1,e.dgCells.forEach((function(t){t._view.destroyed||e._calculatedCells.insert(t._view)}))):(e.displayCells=!0,e.dgCells.forEach((function(t){t._view.destroyed||e._scrollableCells.insert(t._view)})))})),this.expand.animate.subscribe((function(){e.expandAnimationTrigger=!e.expandAnimationTrigger})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.ngOnInit=function(){this.wrappedInjector=new se(hi,this.vcr),this.selection.lockItem(this.item,!1===this.clrDgSelectable)},Object.defineProperty(e.prototype,"_view",{get:function(){return this.wrappedInjector.get(hi,this.vcr).rowView},enumerable:!1,configurable:!0}),e}();bi.decorators=[{type:t.Component,args:[{selector:"clr-dg-row",template:'\x3c!--\n We need to wrap the #rowContent in label element if we are in rowSelectionMode.\n Clicking of that wrapper label will equate to clicking on the whole row, which triggers the checkbox to toggle.\n--\x3e\n<label class="datagrid-row-clickable" *ngIf="selection.rowSelectionMode">\n <clr-expandable-animation [clrExpandTrigger]="expandAnimationTrigger" *ngIf="expand.expandable">\n <ng-template [ngTemplateOutlet]="rowContent"></ng-template>\n </clr-expandable-animation>\n <ng-template [ngTemplateOutlet]="rowContent" *ngIf="!expand.expandable"></ng-template>\n</label>\n\n<clr-expandable-animation\n *ngIf="!selection.rowSelectionMode && expand.expandable"\n [clrExpandTrigger]="expandAnimationTrigger"\n>\n <ng-template [ngTemplateOutlet]="rowContent"></ng-template>\n</clr-expandable-animation>\n\n<ng-template *ngIf="!selection.rowSelectionMode && !expand.expandable" [ngTemplateOutlet]="rowContent"></ng-template>\n\n\x3c!--\n We need the "project into template" hacks because we need this in 2 different places\n depending on whether the details replace the row or not.\n--\x3e\n<ng-template #detail>\n <ng-content select="clr-dg-row-detail"></ng-content>\n</ng-template>\n\n<ng-template #rowContent>\n <div\n role="row"\n [id]="id"\n class="datagrid-row-master datagrid-row-flex"\n [class.datagrid-row-detail-open]="detailService.isRowOpen(item)"\n >\n <div class="datagrid-row-sticky">\n \x3c!-- Sticky elements here --\x3e\n <ng-container #stickyCells>\n <div\n *ngIf="selection.selectionType === SELECTION_TYPE.Multi"\n class="datagrid-select datagrid-fixed-column datagrid-cell"\n [ngClass]="{ \'clr-form-control-disabled\': !clrDgSelectable }"\n role="gridcell"\n >\n <div class="clr-checkbox-wrapper">\n <input\n type="checkbox"\n [ngModel]="selected"\n (ngModelChange)="toggle($event)"\n [id]="checkboxId"\n [attr.disabled]="clrDgSelectable ? null : true"\n [attr.aria-disabled]="clrDgSelectable ? null : true"\n [attr.aria-label]="commonStrings.keys.select"\n />\n \x3c!-- Usage of class clr-col-null here prevents clr-col-* classes from being added when a datagrid is wrapped inside clrForm --\x3e\n <label [for]="checkboxId" class="clr-control-label clr-col-null">\n <span class="clr-sr-only">{{commonStrings.keys.select}}</span>\n </label>\n </div>\n </div>\n <div\n *ngIf="selection.selectionType === SELECTION_TYPE.Single"\n class="datagrid-select datagrid-fixed-column datagrid-cell"\n role="gridcell"\n [ngClass]="{ \'clr-form-control-disabled\': !clrDgSelectable }"\n >\n \x3c!-- TODO: it would be better if in addition to the generic "Select" label, we could add aria-labelledby\n to label the radio by the first cell in the row (typically an id or name).\n It\'s pretty easy to label it with the whole row since we already have an id for it, but in most\n cases the row is far too long to serve as a label, the screenreader reads every single cell content. --\x3e\n <input\n type="radio"\n clrRadio\n [id]="radioId"\n [name]="selection.id + \'-radio\'"\n [value]="item"\n [(ngModel)]="selection.currentSingle"\n [checked]="selection.currentSingle === item"\n [attr.disabled]="clrDgSelectable ? null : true"\n [attr.aria-disabled]="clrDgSelectable ? null : true"\n [attr.aria-label]="commonStrings.keys.select"\n />\n </div>\n <div\n *ngIf="rowActionService.hasActionableRow"\n class="datagrid-row-actions datagrid-fixed-column datagrid-cell"\n role="gridcell"\n >\n <ng-content select="clr-dg-action-overflow"></ng-content>\n </div>\n <div\n *ngIf="globalExpandable.hasExpandableRow"\n class="datagrid-expandable-caret datagrid-fixed-column datagrid-cell"\n role="gridcell"\n >\n <ng-container *ngIf="expand.expandable">\n <button\n *ngIf="!expand.loading"\n (click)="toggleExpand()"\n type="button"\n class="datagrid-expandable-caret-button"\n [attr.aria-expanded]="expand.expanded"\n [attr.aria-label]="expand.expanded ? clrDgDetailCloseLabel : clrDgDetailOpenLabel"\n [attr.aria-controls]="expandableId"\n >\n <cds-icon\n shape="angle"\n class="datagrid-expandable-caret-icon"\n [attr.direction]="expand.expanded ? \'down\' : \'right\'"\n [attr.title]="expand.expanded ? commonStrings.keys.collapse : commonStrings.keys.expand"\n ></cds-icon>\n </button>\n <clr-spinner *ngIf="expand.loading" clrSmall>{{ commonStrings.keys.loading }}</clr-spinner>\n </ng-container>\n </div>\n <div *ngIf="detailService.enabled" class="datagrid-detail-caret datagrid-fixed-column datagrid-cell">\n <button\n (click)="detailService.toggle(item, detailButton)"\n type="button"\n #detailButton\n class="datagrid-detail-caret-button"\n [class.is-open]="detailService.isRowOpen(item)"\n [attr.aria-label]="detailService.isOpen ? clrDgDetailCloseLabel : clrDgDetailOpenLabel"\n [attr.aria-expanded]="detailService.isOpen"\n [attr.aria-controls]="detailService.id"\n aria-haspopup="dialog"\n >\n <cds-icon\n shape="angle-double"\n [attr.direction]="detailService.isRowOpen(item) ? \'left\' : \'right\'"\n class="datagrid-detail-caret-icon"\n [attr.title]="detailService.isRowOpen(item) ? commonStrings.keys.close: commonStrings.keys.open"\n ></cds-icon>\n </button>\n </div>\n </ng-container>\n \x3c!-- placeholder for projecting other sticky cells as pinned--\x3e\n </div>\n <div class="datagrid-row-scrollable" [ngClass]="{\'is-replaced\': replaced && expanded}">\n <div class="datagrid-scrolling-cells">\n <ng-content select="clr-dg-cell"></ng-content>\n <ng-container #scrollableCells></ng-container>\n </div>\n \x3c!-- details here when replace, re-visit when sticky container is used for pinned cells --\x3e\n <ng-template *ngIf="replaced && !expand.loading" [ngTemplateOutlet]="detail"></ng-template>\n <ng-template *ngIf="!replaced && !expand.loading" [ngTemplateOutlet]="detail"></ng-template>\n </div>\n </div>\n</ng-template>\n\n<ng-container #calculatedCells></ng-container>\n',host:{"[class.datagrid-row]":"true","[class.datagrid-selected]":"selected","[attr.aria-owns]":"id",role:"rowgroup"},providers:[fi,{provide:Xe,useExisting:fi},{provide:L,useExisting:fi}]}]}],bi.ctorParameters=function(){return[{type:di},{type:Br},{type:Wr},{type:fi},{type:Gr},{type:pi},{type:t.ViewContainerRef},{type:t.Renderer2},{type:t.ElementRef},{type:V}]},bi.propDecorators={expandAnimation:[{type:t.ViewChild,args:[yr]}],item:[{type:t.Input,args:["clrDgItem"]}],selected:[{type:t.Input,args:["clrDgSelected"]}],clrDgSelectable:[{type:t.Input,args:["clrDgSelectable"]}],selectedChanged:[{type:t.Output,args:["clrDgSelectedChange"]}],expanded:[{type:t.Input,args:["clrDgExpanded"]}],expandedChange:[{type:t.Output,args:["clrDgExpandedChange"]}],detailButton:[{type:t.ViewChild,args:["detailButton"]}],clrDgDetailOpenLabel:[{type:t.Input}],clrDgDetailCloseLabel:[{type:t.Input}],dgCells:[{type:t.ContentChildren,args:[ai]}],_stickyCells:[{type:t.ViewChild,args:["stickyCells",{read:t.ViewContainerRef}]}],_scrollableCells:[{type:t.ViewChild,args:["scrollableCells",{read:t.ViewContainerRef}]}],_calculatedCells:[{type:t.ViewChild,args:["calculatedCells",{read:t.ViewContainerRef}]}]};var mi=function(){function e(e,t,n,r){var i=this;this.filters=e,this.sort=t,this.page=n,this.debouncer=r,this.change=this.debouncer.change.pipe(o.map((function(){return i.state})))}return Object.defineProperty(e.prototype,"state",{get:function(){var e,t,n={};this.page.size>0&&(n.page={from:this.page.firstItem,to:this.page.lastItem,size:this.page.size,current:this.page.current}),this.sort.comparator&&(this.sort.comparator instanceof Kr?n.sort={by:this.sort.comparator.prop,reverse:this.sort.reverse}:n.sort={by:this.sort.comparator,reverse:this.sort.reverse});var r=this.filters.getActiveFilters();if(r.length>0){n.filters=[];try{for(var i=re(r),o=i.next();!o.done;o=i.next()){var s=o.value;s.state?n.filters.push(s.state):n.filters.push(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}return n},enumerable:!1,configurable:!0}),e}();mi.decorators=[{type:t.Injectable}],mi.ctorParameters=function(){return[{type:Pr},{type:Zr},{type:_r},{type:wr}]};var vi,Ci=function(){function e(e){this.platformId=e}return Object.defineProperty(e.prototype,"tableRef",{get:function(){return this._tableRef},set:function(e){this._tableRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"table",{set:function(e){r.isPlatformBrowser(this.platformId)&&e.nativeElement&&(this.tableRef=e.nativeElement.querySelector(".datagrid-table"))},enumerable:!1,configurable:!0}),e.prototype.getColumnDragHeight=function(){return this.tableRef?this.tableRef.clientHeight+"px":null},e}();Ci.decorators=[{type:t.Injectable}],Ci.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},function(e){e[e.WIDTH=0]="WIDTH",e[e.HIDDEN=1]="HIDDEN"}(vi||(vi={}));var Si=Object.keys(vi).map((function(e){return vi[e]})).filter((function(e){return e===parseInt(e,10)})),Ii=function(){function e(){this.columns=[],this._cache=[]}return e.prototype.cache=function(){this._cache=this.columns.map((function(e){var t=Object.assign({},e.value);return delete t.changes,t}))},e.prototype.hasCache=function(){return!!this._cache.length},e.prototype.resetToLastCache=function(){var e=this;this._cache.forEach((function(t,n){e.columns[n].next(Object.assign(Object.assign({},t),{changes:Si}))})),this._cache=[]},Object.defineProperty(e.prototype,"columnStates",{get:function(){return this.columns.map((function(e){return e.value}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasHideableColumns",{get:function(){return this.columnStates.filter((function(e){return e.hideable})).length>0},enumerable:!1,configurable:!0}),e.prototype.emitStateChangeAt=function(e,t){this.columns[e]&&this.emitStateChange(this.columns[e],t)},e.prototype.emitStateChange=function(e,t){e.next(Object.assign(Object.assign({},e.value),t))},e}();Ii.decorators=[{type:t.Injectable}];var Oi=function(){function e(e,n,r,i,o,s,a,c,l,p,u,d,h){this.organizer=e,this.items=n,this.expandableRows=r,this.selection=i,this.rowActionService=o,this.stateProvider=s,this.displayMode=a,this.renderer=c,this.detailService=l,this.el=u,this.page=d,this.commonStrings=h,this.SELECTION_TYPE=li,this.refresh=new t.EventEmitter(!1),this.selectedChanged=new t.EventEmitter(!1),this.singleSelectedChanged=new t.EventEmitter(!1),this.clrDgSingleSelectionAriaLabel=this.commonStrings.keys.singleSelectionAriaLabel,this.clrDgSingleActionableAriaLabel=this.commonStrings.keys.singleActionableAriaLabel,this.clrDetailExpandableAriaLabel=this.commonStrings.keys.detailExpandableAriaLabel,this.clrDgDisablePageFocus=!1,this._subscriptions=[],this.selectAllId="clr-dg-select-all-"+p,this.detailService.id=p}return Object.defineProperty(e.prototype,"loading",{get:function(){return this.items.loading},set:function(e){this.items.loading=e},enumerable:!1,configurable:!0}),e.prototype.dataChanged=function(){this.items.refresh()},Object.defineProperty(e.prototype,"selected",{set:function(e){this.selection.selectionType=e?li.Multi:li.None,this.selection.updateCurrent(e,!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"singleSelected",{set:function(e){this.selection.selectionType=li.Single,e?this.selection.currentSingle=e:this.selection.currentSingle&&(this.selection.currentSingle=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDgPreserveSelection",{set:function(e){this.selection.preserveSelection=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowSelectionMode",{set:function(e){this.selection.rowSelectionMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allSelected",{get:function(){return this.selection.isAllSelected()},set:function(e){this.selection.toggleAll()},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.items.smart||(this.items.all=this.rows.map((function(e){return e.item}))),this._subscriptions.push(this.rows.changes.subscribe((function(){e.items.smart||(e.items.all=e.rows.map((function(e){return e.item})));for(var t=e._displayedRows.length-1;t>=0;t--)e._displayedRows.get(t).destroyed&&e._displayedRows.remove(t);if(e.rows.forEach((function(t){e._displayedRows.insert(t._view)})),e.detailService.state&&e.detailService.isOpen){var n=e.rows.find((function(t,n){return e.items.trackBy(n,t.item)===e.items.trackBy(n,e.detailService.state)}));n?e.detailService.open(n.item,n.detailButton.nativeElement):e.detailService.close()}})))},e.prototype.ngAfterViewInit=function(){var e=this;this.refresh.emit(this.stateProvider.state),this._subscriptions.push(this.stateProvider.change.subscribe((function(t){return e.refresh.emit(t)})),this.selection.change.subscribe((function(t){e.selection.selectionType===li.Single?e.singleSelectedChanged.emit(t):e.selection.selectionType===li.Multi&&e.selectedChanged.emit(t)})),this.page.change.subscribe((function(){e.clrDgDisablePageFocus||e.datagridTable.nativeElement.focus()})),this.displayMode.view.subscribe((function(t){for(var n=e._projectedDisplayColumns.length;n>0;n--)e._projectedDisplayColumns.detach();for(n=e._projectedCalculationColumns.length;n>0;n--)e._projectedCalculationColumns.detach();for(n=e._calculationRows.length;n>0;n--)e._calculationRows.detach();for(n=e._displayedRows.length;n>0;n--)e._displayedRows.detach();t===oi.DISPLAY?(e.renderer.removeClass(e.el.nativeElement,"datagrid-calculate-mode"),e.columns.forEach((function(t){e._projectedDisplayColumns.insert(t._view)})),e.rows.forEach((function(t){e._displayedRows.insert(t._view)}))):(e.renderer.addClass(e.el.nativeElement,"datagrid-calculate-mode"),e.columns.forEach((function(t){e._projectedCalculationColumns.insert(t._view)})),e.rows.forEach((function(t){e._calculationRows.insert(t._view)})))})))},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.resize=function(){this.organizer.resize()},e}();Oi.decorators=[{type:t.Component,args:[{selector:"clr-datagrid",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<ng-content select="clr-dg-action-bar"></ng-content>\n<div class="datagrid-outer-wrapper">\n <div class="datagrid-inner-wrapper">\n <div class="datagrid" #datagrid [attr.aria-hidden]="detailService.isOpen ? true : null">\n <div class="datagrid-table-wrapper">\n <div role="grid" class="datagrid-table" tabindex="-1" #datagridTable>\n <div role="rowgroup" class="datagrid-header">\n <div role="row" class="datagrid-row">\n <div class="datagrid-row-master datagrid-row-flex">\n <div class="datagrid-row-sticky">\n \x3c!--header for datagrid where you can select multiple rows --\x3e\n <div\n role="columnheader"\n class="datagrid-column datagrid-select datagrid-fixed-column"\n *ngIf="selection.selectionType === SELECTION_TYPE.Multi"\n >\n <div class="clr-checkbox-wrapper">\n <input\n type="checkbox"\n [id]="selectAllId"\n [(ngModel)]="allSelected"\n [attr.aria-label]="commonStrings.keys.selectAll"\n />\n \x3c!-- Usage of class clr-col-null here prevents clr-col-* classes from being added when a datagrid is wrapped inside clrForm --\x3e\n <label [for]="selectAllId" class="clr-control-label clr-col-null">\n <span class="clr-sr-only">{{commonStrings.keys.selectAll}}</span>\n </label>\n </div>\n\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for datagrid where you can select one row only --\x3e\n <div\n role="columnheader"\n class="datagrid-column datagrid-select datagrid-fixed-column"\n *ngIf="selection.selectionType === SELECTION_TYPE.Single"\n [attr.aria-label]="clrDgSingleSelectionAriaLabel"\n >\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for single row action; only displayType if we have at least one actionable row in datagrid --\x3e\n <div\n role="columnheader"\n class="datagrid-column datagrid-row-actions datagrid-fixed-column"\n *ngIf="rowActionService.hasActionableRow"\n [attr.aria-label]="clrDgSingleActionableAriaLabel"\n >\n <div class="datagrid-column-separator"></div>\n </div>\n \x3c!-- header for carets; only displayType if we have at least one expandable row in datagrid --\x3e\n <div\n role="columnheader"\n class="datagrid-column datagrid-expandable-caret datagrid-fixed-column"\n *ngIf="expandableRows.hasExpandableRow || detailService.enabled"\n [attr.aria-label]="clrDetailExpandableAriaLabel"\n >\n <div class="datagrid-column-separator"></div>\n </div>\n </div>\n <div class="datagrid-row-scrollable">\n <ng-container #projectedDisplayColumns></ng-container>\n </div>\n </div>\n </div>\n </div>\n <ng-container #displayedRows></ng-container>\n \x3c!-- Custom placeholder overrides the default empty one --\x3e\n <ng-content select="clr-dg-placeholder"></ng-content>\n <clr-dg-placeholder *ngIf="!placeholder"></clr-dg-placeholder>\n </div>\n </div>\n </div>\n <ng-content select="clr-dg-footer"></ng-content>\n <div class="datagrid-spinner" *ngIf="loading">\n <clr-spinner clrMedium>Loading</clr-spinner>\n </div>\n </div>\n <ng-content select="[clrIfDetail],clr-dg-detail"></ng-content>\n</div>\n\n<div class="datagrid-calculation-table">\n <div class="datagrid-calculation-header">\n <ng-container #projectedCalculationColumns></ng-container>\n </div>\n <ng-container #calculationRows></ng-container>\n</div>\n',providers:[di,Zr,Pr,_r,$r,ci,Br,Wr,wr,Gr,W,mi,Ci,Ii,pi],host:{"[class.datagrid-host]":"true","[class.datagrid-detail-open]":"detailService.isOpen"}}]}],Oi.ctorParameters=function(){return[{type:ci},{type:$r},{type:Wr},{type:di},{type:Br},{type:mi},{type:pi},{type:t.Renderer2},{type:Gr},{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:t.ElementRef},{type:_r},{type:V}]},Oi.propDecorators={loading:[{type:t.Input,args:["clrDgLoading"]}],refresh:[{type:t.Output,args:["clrDgRefresh"]}],iterator:[{type:t.ContentChild,args:[Jr]}],selected:[{type:t.Input,args:["clrDgSelected"]}],selectedChanged:[{type:t.Output,args:["clrDgSelectedChange"]}],singleSelected:[{type:t.Input,args:["clrDgSingleSelected"]}],singleSelectedChanged:[{type:t.Output,args:["clrDgSingleSelectedChange"]}],clrDgSingleSelectionAriaLabel:[{type:t.Input}],clrDgSingleActionableAriaLabel:[{type:t.Input}],clrDetailExpandableAriaLabel:[{type:t.Input}],clrDgDisablePageFocus:[{type:t.Input}],clrDgPreserveSelection:[{type:t.Input}],rowSelectionMode:[{type:t.Input,args:["clrDgRowSelection"]}],placeholder:[{type:t.ContentChild,args:[Qr]}],columns:[{type:t.ContentChildren,args:[Xr]}],rows:[{type:t.ContentChildren,args:[bi]}],scrollableColumns:[{type:t.ViewChild,args:["scrollableColumns",{read:t.ViewContainerRef}]}],datagridTable:[{type:t.ViewChild,args:["datagridTable",{read:t.ElementRef}]}],_projectedDisplayColumns:[{type:t.ViewChild,args:["projectedDisplayColumns",{read:t.ViewContainerRef}]}],_projectedCalculationColumns:[{type:t.ViewChild,args:["projectedCalculationColumns",{read:t.ViewContainerRef}]}],_displayedRows:[{type:t.ViewChild,args:["displayedRows",{read:t.ViewContainerRef}]}],_calculationRows:[{type:t.ViewChild,args:["calculationRows",{read:t.ViewContainerRef}]}]};var Ei=function(){};Ei.decorators=[{type:t.Component,args:[{selector:"clr-dg-action-bar",template:" <ng-content></ng-content> ",host:{"[class.datagrid-action-bar]":"true"}}]}];var wi=0,_i=function(){function n(n,r,i,o,s,a){var c=this;this.rowActionService=n,this.commonStrings=r,this.platformId=i,this.zone=o,this.smartToggleService=s,this.popoverId=a,this.subscriptions=[],this.smartPosition={axis:e.ClrAxis.HORIZONTAL,side:e.ClrSide.AFTER,anchor:e.ClrAlignment.CENTER,content:e.ClrAlignment.CENTER},this._open=!1,this.openChange=new t.EventEmitter(!1),this.rowActionService.register(),this.subscriptions.push(this.smartToggleService.openChange.subscribe((function(e){c.open=e,e&&c.focusFirstButton()}))),this.popoverId="clr-action-menu"+wi++}return n.prototype.ngOnDestroy=function(){this.rowActionService.unregister(),this.subscriptions.forEach((function(e){return e.unsubscribe()}))},n.prototype.closeOverflowContent=function(e){this.smartToggleService.toggleWithEvent(e)},n.prototype.focusFirstButton=function(){r.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((function(){setTimeout((function(){var e=document.querySelector("button.action-item");e&&e.focus()}))}))},Object.defineProperty(n.prototype,"open",{get:function(){return this._open},set:function(e){var t=!!e;!!t!==this.open&&(this.smartToggleService.open=t,this.openChange.emit(t),this._open=t)},enumerable:!1,configurable:!0}),n}();_i.decorators=[{type:t.Component,args:[{selector:"clr-dg-action-overflow",providers:[W,y,v,P],template:'\n <button\n class="datagrid-action-toggle"\n type="button"\n role="button"\n aria-haspopup="true"\n #anchor\n [attr.aria-controls]="popoverId"\n [attr.aria-expanded]="open"\n [attr.aria-label]="commonStrings.keys.rowActions"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n >\n <cds-icon shape="ellipsis-vertical" [attr.title]="commonStrings.keys.rowActions"></cds-icon>\n </button>\n\n <div\n class="datagrid-action-overflow"\n role="menu"\n [id]="popoverId"\n [attr.aria-hidden]="!open"\n [attr.id]="popoverId"\n clrFocusTrap\n (click)="closeOverflowContent($event)"\n *clrPopoverContent="open; at: smartPosition; outsideClickToClose: true; scrollToClose: true"\n >\n <ng-content></ng-content>\n </div>\n '}]}],_i.ctorParameters=function(){return[{type:Br},{type:V},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:t.NgZone},{type:y},{type:String,decorators:[{type:t.Inject,args:[z]}]}]},_i.propDecorators={open:[{type:t.Input,args:["clrDgActionOverflowOpen"]}],openChange:[{type:t.Output,args:["clrDgActionOverflowOpenChange"]}]};var Pi=function(){function e(e,t,n){this.el=e,this.domAdapter=t,this.organizer=n,this._resizedBy=0}return Object.defineProperty(e.prototype,"resizedBy",{get:function(){return this._resizedBy},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minColumnWidth",{get:function(){return this.domAdapter.minWidth(this.el.nativeElement)||96},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxResizeRange",{get:function(){return this.widthBeforeResize-this.minColumnWidth},enumerable:!1,configurable:!0}),e.prototype.startResize=function(){this._resizedBy=0,this.isWithinMaxResizeRange=!0,this.widthBeforeResize=this.domAdapter.clientRect(this.el.nativeElement).width},e.prototype.endResize=function(){this.organizer.resize()},Object.defineProperty(e.prototype,"widthAfterResize",{get:function(){return this.widthBeforeResize+this._resizedBy},enumerable:!1,configurable:!0}),e.prototype.calculateResize=function(e){e<-this.maxResizeRange?(this._resizedBy=-this.maxResizeRange,this.isWithinMaxResizeRange=!1):(this._resizedBy=e,this.isWithinMaxResizeRange=!0)},e}();Pi.decorators=[{type:t.Injectable}],Pi.ctorParameters=function(){return[{type:t.ElementRef},{type:tr},{type:ci}]};var Di=function(){function e(e,t,n,r,i,o,s){this.columnResizerService=e,this.renderer=t,this.ngZone=n,this.tableSizeService=r,this.commonString=i,this.document=o,this.columnSeparatorId=s,this.resizeStartedOnKeyDown=!1,this.unlisteners=[]}return Object.defineProperty(e.prototype,"resizeTrackerEl",{get:function(){return this.resizeTrackerRef.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnHandleEl",{get:function(){return this.columnHandleRef.nativeElement},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.unlisteners.push(e.renderer.listen(e.columnHandleEl,"keydown",(function(t){e.showTrackerOnFirstKeyDown(t),e.moveTrackerOnKeyDown(t)}))),e.unlisteners.push(e.renderer.listen(e.columnHandleEl,"keyup",(function(t){e.hideTrackerOnKeyUp(t)})))}))},Object.defineProperty(e.prototype,"descriptionId",{get:function(){return this.columnSeparatorId+"-aria-describedby"},enumerable:!1,configurable:!0}),e.prototype.showTracker=function(){this.columnResizerService.startResize();var e=this.tableSizeService.getColumnDragHeight();this.renderer.setStyle(this.resizeTrackerEl,"height",e),this.renderer.setStyle(this.resizeTrackerEl,"display","block")},e.prototype.moveTracker=function(e){this.columnResizerService.calculateResize(e),this.renderer.setStyle(this.resizeTrackerEl,"transform","translateX("+this.columnResizerService.resizedBy+"px)"),this.renderer.setStyle(this.document.body,"cursor","col-resize"),this.redFlagTracker()},e.prototype.hideTracker=function(){this.columnResizerService.endResize(),this.renderer.setStyle(this.resizeTrackerEl,"display","none"),this.renderer.setStyle(this.resizeTrackerEl,"transform","translateX(0px)"),this.renderer.setStyle(this.document.body,"cursor","auto")},e.prototype.showTrackerOnFirstKeyDown=function(e){this.resizeStartedOnKeyDown||!this.isArrowLeftKeyEvent(e)&&!this.isArrowRightKeyEvent(e)||(this.resizeStartedOnKeyDown=!0,this.renderer.addClass(this.resizeTrackerEl,"on-arrow-key-resize"),this.showTracker())},e.prototype.moveTrackerOnKeyDown=function(e){this.isArrowLeftKeyEvent(e)?this.moveTracker(this.columnResizerService.resizedBy-12):this.isArrowRightKeyEvent(e)&&this.moveTracker(this.columnResizerService.resizedBy+12)},e.prototype.hideTrackerOnKeyUp=function(e){this.resizeStartedOnKeyDown&&(this.isArrowLeftKeyEvent(e)||this.isArrowRightKeyEvent(e))&&(this.resizeStartedOnKeyDown=!1,this.renderer.removeClass(this.resizeTrackerEl,"on-arrow-key-resize"),this.hideTracker(),this.columnHandleEl.focus())},e.prototype.redFlagTracker=function(){this.isWithinMaxResizeRange!==this.columnResizerService.isWithinMaxResizeRange&&(this.isWithinMaxResizeRange=this.columnResizerService.isWithinMaxResizeRange,this.isWithinMaxResizeRange?this.renderer.removeClass(this.resizeTrackerEl,"exceeded-max"):this.renderer.addClass(this.resizeTrackerEl,"exceeded-max"))},e.prototype.isArrowLeftKeyEvent=function(e){return e.key===p.ArrowLeft||e.key===u.ArrowLeft},e.prototype.isArrowRightKeyEvent=function(e){return e.key===p.ArrowRight||e.key===u.ArrowRight},e.prototype.ngOnDestroy=function(){this.unlisteners.forEach((function(e){return e()}))},e}();Di.decorators=[{type:t.Component,args:[{selector:"clr-dg-column-separator",template:'\n <button\n type="button"\n class="datagrid-column-handle"\n [attr.aria-label]="commonString.keys.columnSeparatorAriaLabel"\n [attr.aria-describedby]="descriptionId"\n clrDraggable\n [clrGroup]="columnSeparatorId"\n (clrDragStart)="showTracker()"\n (clrDragMove)="moveTracker($event.dragPosition.moveX)"\n (clrDragEnd)="hideTracker()"\n #columnHandle\n ></button>\n <span class="clr-sr-only" [attr.id]="descriptionId">\n {{ commonString.keys.columnSeparatorDescription }}\n </span>\n <div class="datagrid-column-resize-tracker" #resizeTracker></div>\n ',host:{"[class.datagrid-column-separator]":"true"},providers:[W]}]}],Di.ctorParameters=function(){return[{type:Pi},{type:t.Renderer2},{type:t.NgZone},{type:Ci},{type:V},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:String,decorators:[{type:t.Inject,args:[z]}]}]},Di.propDecorators={resizeTrackerRef:[{type:t.ViewChild,args:["resizeTracker"]}],columnHandleRef:[{type:t.ViewChild,args:["columnHandle"]}]};var Ti=function(){};Ti.decorators=[{type:t.Component,args:[{selector:"clr-dg-column-toggle-title",template:"<ng-content></ng-content>"}]}];var xi=function(){function e(e){this.columnsService=e,this.allSelected=new t.EventEmitter}return Object.defineProperty(e.prototype,"clrAllSelected",{get:function(){return this.allSelected.asObservable()},enumerable:!1,configurable:!0}),e.prototype.hideableColumns=function(){return this.columnsService.columns.filter((function(e){return e.value.hideable}))},Object.defineProperty(e.prototype,"allHideablesVisible",{get:function(){return 0===this.hideableColumns().filter((function(e){return e.value.hidden})).length},enumerable:!1,configurable:!0}),e.prototype.selectAll=function(){var e=this;this.hideableColumns().forEach((function(t){return e.columnsService.emitStateChange(t,{hidden:!1,changes:[vi.HIDDEN]})})),this.allSelected.next(!0)},e}();xi.decorators=[{type:t.Component,args:[{selector:"clr-dg-column-toggle-button",template:'\n <button\n class="btn btn-sm btn-link switch-button"\n (click)="selectAll()"\n [disabled]="allHideablesVisible"\n type="button"\n >\n <ng-content></ng-content>\n </button>\n '}]}],xi.ctorParameters=function(){return[{type:Ii}]},xi.propDecorators={clrAllSelected:[{type:t.Output,args:["clrAllSelected"]}]};var Ai=function(){function t(t,n,r,i,o,s){this.commonStrings=t,this.columnsService=n,this.columnSwitchId=r,this.platformId=i,this.zone=o,this.popoverId=s,this.smartPosition={axis:e.ClrAxis.VERTICAL,side:e.ClrSide.BEFORE,anchor:e.ClrAlignment.START,content:e.ClrAlignment.START}}return Object.defineProperty(t.prototype,"allColumnsVisible",{get:function(){return this._allColumnsVisible},set:function(e){this._allColumnsVisible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideableColumnStates",{get:function(){return this.columnsService.columns.filter((function(e){return e.value.hideable})).map((function(e){return e.value}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOnlyOneVisibleColumn",{get:function(){return 0===this.columnsService.columns.length-this.hideableColumnStates.length&&1===this.hideableColumnStates.filter((function(e){return!e.hidden})).length},enumerable:!1,configurable:!0}),t.prototype.toggleColumnState=function(e,t){var n=this.columnsService.columns.filter((function(t){return t.value===e}))[0];this.columnsService.emitStateChange(n,{hidden:t,changes:[vi.HIDDEN]})},t.prototype.toggleSwitchPanel=function(){this.openState=!this.openState},t.prototype.allColumnsSelected=function(){this.allSelectedElement.nativeElement.focus()},t.prototype.trackByFn=function(e){return e},t}();Ai.decorators=[{type:t.Component,args:[{selector:"clr-dg-column-toggle",template:'\n <button\n role="button"\n type="button"\n class="btn btn-sm btn-link column-toggle--action"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [attr.aria-controls]="popoverId"\n [attr.aria-owns]="popoverId"\n [attr.title]="commonStrings.keys.pickColumns"\n >\n <cds-icon shape="view-columns" aria-hidden="true" [attr.title]="commonStrings.keys.pickColumns"></cds-icon>\n </button>\n <div\n class="column-switch"\n role="dialog"\n [attr.aria-label]="commonStrings.keys.showColumnsMenuDescription"\n [id]="popoverId"\n clrFocusTrap\n *clrPopoverContent="openState; at: smartPosition; outsideClickToClose: true; scrollToClose: true"\n >\n <div class="switch-header">\n <div class="clr-sr-only" tabindex="-1" #allSelected>{{ commonStrings.keys.allColumnsSelected }}</div>\n <ng-container *ngIf="!customToggleTitle">{{ commonStrings.keys.showColumns }}</ng-container>\n <ng-content select="clr-dg-column-toggle-title"></ng-content>\n <button\n class="btn btn-sm btn-link toggle-switch-close-button"\n clrPopoverCloseButton\n type="button"\n [attr.aria-label]="commonStrings.keys.close"\n [attr.title]="commonStrings.keys.close"\n >\n <cds-icon shape="window-close" aria-hidden="true" [attr.title]="commonStrings.keys.close"></cds-icon>\n </button>\n </div>\n <ul class="switch-content list-unstyled">\n <li *ngFor="let columnState of hideableColumnStates; trackBy: trackByFn">\n <clr-checkbox-wrapper>\n <input\n clrCheckbox\n type="checkbox"\n [disabled]="hasOnlyOneVisibleColumn && !columnState.hidden"\n [ngModel]="!columnState.hidden"\n (ngModelChange)="toggleColumnState(columnState, !$event)"\n />\n <label>\n <ng-template [ngTemplateOutlet]="columnState.titleTemplateRef"></ng-template>\n </label>\n </clr-checkbox-wrapper>\n </li>\n </ul>\n <div class="switch-footer">\n <ng-content select="clr-dg-column-toggle-button"></ng-content>\n <clr-dg-column-toggle-button *ngIf="!customToggleButton" (clrAllSelected)="allColumnsSelected()">\n {{ commonStrings.keys.selectAll }}\n </clr-dg-column-toggle-button>\n </div>\n </div>\n ',host:{"[class.column-switch-wrapper]":"true","[class.active]":"openState"},providers:[W,v,P,y]}]}],Ai.ctorParameters=function(){return[{type:V},{type:Ii},{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:t.NgZone},{type:String,decorators:[{type:t.Inject,args:[z]}]}]},Ai.propDecorators={customToggleTitle:[{type:t.ContentChild,args:[Ti]}],customToggleButton:[{type:t.ContentChild,args:[xi]}],allSelectedElement:[{type:t.ViewChild,args:["allSelected",{read:t.ElementRef}]}]};var ki=function(){function e(e){this.expandableRowsCount=e,this.expandableRowsCount&&this.expandableRowsCount.register()}return e.prototype.ngOnDestroy=function(){this.expandableRowsCount&&this.expandableRowsCount.unregister()},e}();ki.decorators=[{type:t.Directive,args:[{selector:"[clrIfExpanded]"}]}],ki.ctorParameters=function(){return[{type:Wr,decorators:[{type:t.Optional}]}]};var Ri=function(){function e(e,t){this.detailService=e,this.commonStrings=t}return Object.defineProperty(e.prototype,"titleId",{get:function(){return this.detailService.id+"-title"},enumerable:!1,configurable:!0}),e}();Ri.decorators=[{type:t.Component,args:[{selector:"clr-dg-detail-header",host:{"[class.datagrid-detail-header]":"true"},template:'\n <div class="datagrid-detail-header-title" clrFocusOnViewInit [id]="titleId">\n <ng-content></ng-content>\n </div>\n <div class="datagrid-detail-pane-close">\n <button\n type="button"\n class="btn btn-link"\n (click)="detailService.close()"\n [attr.aria-label]="commonStrings.keys.close"\n >\n <cds-icon size="24" shape="times"></cds-icon>\n </button>\n </div>\n '}]}],Ri.ctorParameters=function(){return[{type:Gr},{type:V}]};var Li=function(){function e(e,t){this.detailService=e,this.commonStrings=t}return e.prototype.closeCheck=function(){this.detailService.close()},e}();Li.decorators=[{type:t.Component,args:[{selector:"clr-dg-detail",host:{"[class.datagrid-detail-pane]":"true"},template:'\n <div\n [clrFocusTrap]="{ strict: false }"\n class="datagrid-detail-pane-content"\n *ngIf="detailService.isOpen"\n role="dialog"\n [id]="detailService.id"\n aria-modal="true"\n [attr.aria-describedby]="header ? header.titleId : \'\'"\n >\n <div class="clr-sr-only">{{ commonStrings.keys.detailPaneStart }}</div>\n <ng-content></ng-content>\n <div class="clr-sr-only">{{ commonStrings.keys.detailPaneEnd }}</div>\n </div>\n '}]}],Li.ctorParameters=function(){return[{type:Gr},{type:V}]},Li.propDecorators={header:[{type:t.ContentChild,args:[Ri]}],closeCheck:[{type:t.HostListener,args:["document:keyup.esc"]}]};var ji=function(){function e(e,n,r){this.templateRef=e,this.viewContainer=n,this.detailService=r,this.subscriptions=[],this.skip=!1,this.stateChange=new t.EventEmitter(null),this.detailService.enabled=!0}return Object.defineProperty(e.prototype,"state",{set:function(e){this.skip||this.detailService.toggle(e),this.skip=!1},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.detailService.stateChange.subscribe((function(t){!0===t?e.togglePanel(!0):e.togglePanel(!1)})))},e.prototype.togglePanel=function(e){var t=null;this.viewContainer.clear(),!0===e&&(this.viewContainer.createEmbeddedView(this.templateRef,{$implicit:this.detailService.state}),this.skip=!0,t=this.detailService.state),this.stateChange.emit(t)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();ji.decorators=[{type:t.Directive,args:[{selector:"[clrIfDetail]"}]}],ji.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:Gr}]},ji.propDecorators={state:[{type:t.Input,args:["clrIfDetail"]}],stateChange:[{type:t.Output,args:["clrIfDetailChange"]}]};var Ni=function(){};Ni.decorators=[{type:t.Component,args:[{selector:"clr-dg-detail-body",template:'\n <div class="clr-dg-detail-body-wrapper">\n <ng-content></ng-content>\n </div>\n ',host:{"[class.datagrid-detail-body]":"true"}}]}];var Fi=function(){function e(e,t,n){this.selection=e,this.detailService=t,this.columnsService=n,this.SELECTION_TYPE=li}return Object.defineProperty(e.prototype,"hasHideableColumns",{get:function(){return this.columnsService.hasHideableColumns},enumerable:!1,configurable:!0}),e}();Fi.decorators=[{type:t.Component,args:[{selector:"clr-dg-footer",template:'\n <ng-container *ngIf="selection.selectionType === SELECTION_TYPE.Multi && selection.current.length > 0">\n <div class="clr-form-control-disabled">\n <clr-checkbox-wrapper class="datagrid-footer-select">\n <input clrCheckbox type="checkbox" checked="checked" disabled />\n <label>{{ selection.current.length }}</label>\n </clr-checkbox-wrapper>\n </div>\n </ng-container>\n <ng-container *ngIf="!detailService.isOpen">\n <ng-content select="clr-dg-column-toggle"></ng-content>\n <clr-dg-column-toggle *ngIf="hasHideableColumns && !toggle"></clr-dg-column-toggle>\n <div class="datagrid-footer-description">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <ng-content select="clr-dg-pagination"></ng-content>\n ',host:{"[class.datagrid-footer]":"true"}}]}],Fi.ctorParameters=function(){return[{type:di},{type:Gr},{type:Ii}]},Fi.propDecorators={toggle:[{type:t.ContentChild,args:[Ai]}]};var Mi=new t.InjectionToken("COLUMN_STATE");function Vi(){return new i.BehaviorSubject({changes:[]})}var Bi={provide:Mi,useFactory:Vi},zi=function(){function e(e,n,r,i){if(this.titleTemplateRef=e,this.viewContainerRef=n,this.columnsService=r,this.columnState=i,this.hiddenChange=new t.EventEmitter,this.subscriptions=[],this.viewContainerRef.createEmbeddedView(this.titleTemplateRef),!this.columnState)throw new Error("The *clrDgHideableColumn directive can only be used inside of a clr-dg-column component.")}return Object.defineProperty(e.prototype,"clrDgHideableColumn",{set:function(e){this.clrDgHidden="string"!=typeof e&&(!(!e||!e.hidden)&&e.hidden)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDgHidden",{set:function(e){this._hidden=e||!1,this.columnsService.emitStateChange(this.columnState,{hidden:this._hidden,changes:[vi.HIDDEN]})},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.columnsService.emitStateChange(this.columnState,{hideable:!0,titleTemplateRef:this.titleTemplateRef,hidden:this._hidden,changes:[vi.HIDDEN]}),this.subscriptions.push(this.columnState.subscribe((function(t){t.changes&&t.changes.indexOf(vi.HIDDEN)>-1&&e.hiddenChange.emit(t.hidden)})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();zi.decorators=[{type:t.Directive,args:[{selector:"[clrDgHideableColumn]"}]}],zi.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:Ii},{type:i.BehaviorSubject,decorators:[{type:t.Optional},{type:t.Inject,args:[Mi]}]}]},zi.propDecorators={clrDgHideableColumn:[{type:t.Input,args:["clrDgHideableColumn"]}],clrDgHidden:[{type:t.Input,args:["clrDgHidden"]}],hiddenChange:[{type:t.Output,args:["clrDgHiddenChange"]}]};var Hi=function(){function e(e){this._items=e}return Object.defineProperty(e.prototype,"trackBy",{set:function(e){this._items&&(this._items.trackBy=e)},enumerable:!1,configurable:!0}),e}();Hi.decorators=[{type:t.Directive,args:[{selector:"[ngForTrackBy]"}]}],Hi.ctorParameters=function(){return[{type:$r,decorators:[{type:t.Optional}]}]},Hi.propDecorators={trackBy:[{type:t.Input,args:["ngForTrackBy"]}]};var Gi=function(){function e(e){this.page=e}return e.prototype.ngOnInit=function(){this.pageSizeOptions&&0!==this.pageSizeOptions.length||(this.pageSizeOptions=[this.page.size])},e}();Gi.decorators=[{type:t.Component,args:[{selector:"clr-dg-page-size",template:'\n <ng-content></ng-content>\n <div class="clr-select-wrapper">\n <select [class.clr-page-size-select]="true" [(ngModel)]="page.size">\n <option *ngFor="let option of pageSizeOptions" [ngValue]="option">{{ option }}</option>\n </select>\n </div>\n '}]}],Gi.ctorParameters=function(){return[{type:_r}]},Gi.propDecorators={pageSizeOptions:[{type:t.Input,args:["clrPageSizeOptions"]}]};var Wi=function(){function e(e,n,r){this.page=e,this.commonStrings=n,this.detailService=r,this.currentChanged=new t.EventEmitter(!1),this.page.activated=!0}return e.prototype.ngOnInit=function(){var e=this;this.page.size||(this.page.size=10),this._pageSubscription=this.page.change.subscribe((function(t){return e.currentChanged.emit(t)}))},e.prototype.ngOnDestroy=function(){this.page.resetPageSize(!0),this._pageSubscription&&this._pageSubscription.unsubscribe()},Object.defineProperty(e.prototype,"pageSize",{get:function(){return this.page.size},set:function(e){"number"==typeof e&&(this.page.size=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalItems",{get:function(){return this.page.totalItems},set:function(e){"number"==typeof e&&(this.page.totalItems=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastPage",{get:function(){return this.page.last},set:function(e){"number"==typeof e&&(this.page.last=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.page.current},set:function(e){"number"==typeof e&&(this.page.current=e)},enumerable:!1,configurable:!0}),e.prototype.previous=function(){this.page.previous()},e.prototype.next=function(){this.page.next()},Object.defineProperty(e.prototype,"firstItem",{get:function(){return this.page.firstItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastItem",{get:function(){return this.page.lastItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"middlePages",{get:function(){var e=[];return this.page.current>1&&e.push(this.page.current-1),e.push(this.page.current),this.page.current<this.page.last&&e.push(this.page.current+1),e},enumerable:!1,configurable:!0}),e.prototype.updateCurrentPage=function(e){var t=parseInt(e.target.value,10);isNaN(t)||(t<1?this.page.current=1:t>this.page.last?this.page.current=this.page.last:this.page.current=t),this.currentPageInputRef.nativeElement.value=this.page.current},e}();Wi.decorators=[{type:t.Component,args:[{selector:"clr-dg-pagination",template:'\n <ng-container *ngIf="!detailService.isOpen">\n <div class="pagination-size" *ngIf="_pageSizeComponent">\n <ng-content select="clr-dg-page-size"></ng-content>\n </div>\n <div class="pagination-description">\n <ng-content></ng-content>\n </div>\n <div class="pagination-list" *ngIf="page.last > 1">\n <button\n type="button"\n class="pagination-first"\n [disabled]="page.current <= 1"\n (click)="page.current = 1"\n [attr.aria-label]="commonStrings.keys.firstPage"\n >\n <cds-icon shape="step-forward-2" direction="down"></cds-icon>\n </button>\n <button\n type="button"\n class="pagination-previous"\n [disabled]="page.current <= 1"\n (click)="page.current = page.current - 1"\n [attr.aria-label]="commonStrings.keys.previousPage"\n >\n <cds-icon shape="angle" direction="left"></cds-icon>\n </button>\n <input\n *ngIf="!disableCurrentPageInput; else readOnly"\n #currentPageInput\n type="text"\n class="pagination-current clr-input"\n [size]="page.last.toString().length"\n [value]="page.current"\n (keydown.enter)="updateCurrentPage($event)"\n (blur)="updateCurrentPage($event)"\n [attr.aria-label]="commonStrings.keys.currentPage"\n />\n <ng-template #readOnly>\n <span>{{ page.current }}</span>\n </ng-template>\n\n &nbsp;/&nbsp;<span [attr.aria-label]="commonStrings.keys.totalPages">{{ page.last }}</span>\n <button\n type="button"\n class="pagination-next"\n [disabled]="page.current >= page.last"\n (click)="page.current = page.current + 1"\n [attr.aria-label]="commonStrings.keys.nextPage"\n >\n <cds-icon shape="angle" direction="right"></cds-icon>\n </button>\n <button\n type="button"\n class="pagination-last"\n [disabled]="page.current >= page.last"\n (click)="page.current = page.last"\n [attr.aria-label]="commonStrings.keys.lastPage"\n >\n <cds-icon shape="step-forward-2" direction="up"></cds-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf="detailService.isOpen">\n <div class="pagination-description-compact">\n {{ page.firstItem + 1 }}-{{ page.lastItem + 1 }} / {{ page.totalItems }}\n </div>\n <div class="pagination-list">\n <button\n type="button"\n class="pagination-previous"\n [disabled]="page.current <= 1"\n (click)="page.current = page.current - 1"\n [attr.aria-label]="commonStrings.keys.previousPage"\n >\n <cds-icon shape="angle" direction="left"></cds-icon>\n </button>\n <span>{{ page.current }}</span>\n <button\n type="button"\n class="pagination-next"\n [disabled]="page.current >= page.last"\n (click)="page.current = page.current + 1"\n [attr.aria-label]="commonStrings.keys.nextPage"\n >\n <cds-icon shape="angle" direction="right"></cds-icon>\n </button>\n </div>\n </ng-container>\n ',host:{"[class.pagination]":"true"}}]}],Wi.ctorParameters=function(){return[{type:_r},{type:V},{type:Gr}]},Wi.propDecorators={_pageSizeComponent:[{type:t.ContentChild,args:[Gi]}],currentPageInputRef:[{type:t.ViewChild,args:["currentPageInput"]}],disableCurrentPageInput:[{type:t.Input,args:["clrDgPageInputDisabled"]}],pageSize:[{type:t.Input,args:["clrDgPageSize"]}],totalItems:[{type:t.Input,args:["clrDgTotalItems"]}],lastPage:[{type:t.Input,args:["clrDgLastPage"]}],currentPage:[{type:t.Input,args:["clrDgPage"]}],currentChanged:[{type:t.Output,args:["clrDgPageChange"]}]};var Ui=function(){function e(e,t,n,r,i){this.selection=e,this.rowActionService=t,this.expand=n,this.expandableRows=r,this.commonStrings=i,this.SELECTION_TYPE=li,this.subscriptions=[],this.replacedRow=!1}return Object.defineProperty(e.prototype,"replace",{set:function(e){this.expand.setReplace(!!e)},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.subscriptions.push(this.expand.replace.subscribe((function(t){e.replacedRow=t})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(e.prototype,"beginningOfExpandableContentAriaText",{get:function(){return this._beginningOfExpandableContentAriaText||this.commonStrings.keys.dategridExpandableBeginningOf+" "+this.commonStrings.keys.dategridExpandableRowContent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endOfExpandableContentAriaText",{get:function(){return this._endOfExpandableContentAriaText||this.commonStrings.keys.dategridExpandableEndOf+" "+this.commonStrings.keys.dategridExpandableRowContent},enumerable:!1,configurable:!0}),e}();Ui.decorators=[{type:t.Component,args:[{selector:"clr-dg-row-detail",template:'\n <div class="clr-sr-only">\n {{ beginningOfExpandableContentAriaText }} {{ commonStrings.keys.dategridExpandableRowsHelperText }}\n </div>\n <ng-content></ng-content>\n <div class="clr-sr-only">{{ endOfExpandableContentAriaText }}</div>\n ',host:{"[class.datagrid-row-flex]":"true","[class.datagrid-row-detail]":"true","[class.datagrid-container]":"cells.length === 0","[attr.id]":"expand.expandableId"}}]}],Ui.ctorParameters=function(){return[{type:di},{type:Br},{type:fi},{type:Wr},{type:V}]},Ui.propDecorators={cells:[{type:t.ContentChildren,args:[ai]}],replace:[{type:t.Input,args:["clrDgReplace"]}],_beginningOfExpandableContentAriaText:[{type:t.Input,args:["clrRowDetailBeginningAriaText"]}],_endOfExpandableContentAriaText:[{type:t.Input,args:["clrRowDetailEndAriaText"]}]};var Yi="datagrid-fixed-width",Ki="datagrid-hidden-column",Zi=function(){function e(e,t,n){var r=this;this.el=e,this.renderer=t,this.subscriptions=[],this.subscriptions.push(n.filterRenderSteps(si.CLEAR_WIDTHS).subscribe((function(){return r.clearWidth()})))}return Object.defineProperty(e.prototype,"columnState",{set:function(e){var t=this;this.stateSubscription&&this.stateSubscription.unsubscribe(),this.runAllChanges=Si,this.stateSubscription=e.subscribe((function(e){return t.stateChanges(e)}))},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.stateChanges=function(e){var t=this;this.runAllChanges&&(e.changes=this.runAllChanges,delete this.runAllChanges),e.changes&&e.changes.length&&e.changes.forEach((function(n){switch(n){case vi.WIDTH:t.setWidth(e);break;case vi.HIDDEN:t.setHidden(e)}}))},e.prototype.clearWidth=function(){this.renderer.removeClass(this.el.nativeElement,Yi),this.renderer.setStyle(this.el.nativeElement,"width",null)},e.prototype.setWidth=function(e){e.strictWidth?this.renderer.addClass(this.el.nativeElement,Yi):this.renderer.removeClass(this.el.nativeElement,Yi),this.renderer.setStyle(this.el.nativeElement,"width",e.width+"px")},e.prototype.setHidden=function(e){e.hidden?this.renderer.addClass(this.el.nativeElement,Ki):this.renderer.removeClass(this.el.nativeElement,Ki)},e}();Zi.decorators=[{type:t.Directive,args:[{selector:"clr-dg-cell"}]}],Zi.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:ci}]};var qi=function(){function e(e,n,r,i,o,s,a){var c=this;this.el=e,this.renderer=n,this.organizer=r,this.domAdapter=i,this.columnResizerService=o,this.columnsService=s,this.columnState=a,this.resizeEmitter=new t.EventEmitter,this.widthSet=!1,this.autoSet=!1,this.subscriptions=[],this.subscriptions.push(this.organizer.filterRenderSteps(si.CLEAR_WIDTHS).subscribe((function(){return c.clearWidth()}))),this.subscriptions.push(a.subscribe((function(e){return c.stateChanges(e)})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.stateChanges=function(e){var t=this;e.changes&&e.changes.length&&e.changes.forEach((function(n){switch(n){case vi.WIDTH:t.setWidth(e);break;case vi.HIDDEN:t.setHidden(e)}}))},e.prototype.clearWidth=function(){this.widthSet&&!this.columnResizerService.resizedBy&&this.renderer.setStyle(this.el.nativeElement,"width",null),this.autoSet&&this.renderer.removeClass(this.el.nativeElement,Yi)},e.prototype.detectStrictWidth=function(){return this.columnResizerService.resizedBy?this.columnResizerService.widthAfterResize:this.autoSet?0:this.domAdapter.userDefinedWidth(this.el.nativeElement)},e.prototype.computeWidth=function(e){var t=e;return t||(t=this.domAdapter.scrollWidth(this.el.nativeElement)),t},e.prototype.getColumnWidthState=function(){var e=this.detectStrictWidth();return{width:this.computeWidth(e),strictWidth:e}},e.prototype.setColumnState=function(e){this.columnsService.columns[e]=this.columnState},e.prototype.setWidth=function(e){e.strictWidth?(this.columnResizerService.resizedBy&&(this.resizeEmitter.emit(e.width),this.renderer.setStyle(this.el.nativeElement,"width",e.width+"px"),this.widthSet=!1),this.renderer.addClass(this.el.nativeElement,Yi),this.autoSet=!1):(this.renderer.removeClass(this.el.nativeElement,Yi),this.renderer.setStyle(this.el.nativeElement,"width",e.width+"px"),this.widthSet=!0,this.autoSet=!0)},e.prototype.setHidden=function(e){e.hidden?this.renderer.addClass(this.el.nativeElement,Ki):this.renderer.removeClass(this.el.nativeElement,Ki)},e}();qi.decorators=[{type:t.Directive,args:[{selector:"clr-dg-column",providers:[Pi,Bi]}]}],qi.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:ci},{type:tr},{type:Pi},{type:Ii},{type:i.BehaviorSubject,decorators:[{type:t.Inject,args:[Mi]}]}]},qi.propDecorators={resizeEmitter:[{type:t.Output,args:["clrDgColumnResize"]}]};var Xi=function(){function e(){}return e.prototype.userDefinedWidth=function(e){return 0},e.prototype.scrollBarWidth=function(e){return 0},e.prototype.scrollWidth=function(e){return 0},e.prototype.computedHeight=function(e){return 0},e.prototype.clientRect=function(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}},e.prototype.minWidth=function(e){return 0},e.prototype.focus=function(e){},e}();Xi.decorators=[{type:t.Injectable}];var $i=function(){function e(e){this.columnsService=e,this.subscriptions=[]}return e.prototype.ngAfterContentInit=function(){var e=this;this.setColumnState(),this.subscriptions.push(this.cells.changes.subscribe((function(){e.setColumnState()})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.setColumnState=function(){var e=this;this.cells.length===this.columnsService.columns.length&&this.cells.forEach((function(t,n){e.columnsService.columns[n]&&(t.columnState=e.columnsService.columns[n])}))},e}();$i.decorators=[{type:t.Directive,args:[{selector:"clr-dg-row, clr-dg-row-detail"}]}],$i.ctorParameters=function(){return[{type:Ii}]},$i.propDecorators={cells:[{type:t.ContentChildren,args:[Zi]}]};var Ji=function(e){return r.isPlatformBrowser(e)?new tr:new Xi},Qi=function(){function e(e,t,n,r,i,o,s,a,c){var l=this;this.organizer=e,this.items=t,this.page=n,this.domAdapter=r,this.el=i,this.renderer=o,this.detailService=s,this.tableSizeService=a,this.columnsService=c,this._heightSet=!1,this.subscriptions=[],this.columnsSizesStable=!1,this.shouldStabilizeColumns=!0,this.subscriptions.push(this.organizer.filterRenderSteps(si.COMPUTE_COLUMN_WIDTHS).subscribe((function(){return l.computeHeadersWidth()}))),this.subscriptions.push(this.page.sizeChange.subscribe((function(){l._heightSet&&l.resetDatagridHeight()}))),this.subscriptions.push(this.detailService.stateChange.subscribe((function(e){return l.toggleDetailPane(e)}))),this.subscriptions.push(this.items.change.subscribe((function(){return l.shouldStabilizeColumns=!0})))}return e.prototype.ngAfterContentInit=function(){var e=this;this.setupColumns(),this.subscriptions.push(this.headers.changes.subscribe((function(){e.setupColumns(),e.columnsSizesStable=!1,e.stabilizeColumns()})))},e.prototype.ngAfterViewInit=function(){this.tableSizeService.table=this.el},e.prototype.ngAfterViewChecked=function(){var e=this;this.shouldStabilizeColumns&&this.stabilizeColumns(),this.shouldComputeHeight()&&setTimeout((function(){e.computeDatagridHeight()}))},e.prototype.setupColumns=function(){this.headers.forEach((function(e,t){return e.setColumnState(t)})),this.columnsService.columns.splice(this.headers.length),this.rows.forEach((function(e){return e.setColumnState()}))},e.prototype.shouldComputeHeight=function(){return!this._heightSet&&this.page.size>0&&this.items.displayed.length===this.page.size},e.prototype.toggleDetailPane=function(e){var t=this;this.headers&&(e&&!this.columnsService.hasCache()?(this.columnsService.cache(),this.headers.forEach((function(n,r){r>0&&t.columnsService.emitStateChangeAt(r,{changes:[vi.HIDDEN],hidden:e})}))):e||this.columnsService.resetToLastCache())},e.prototype.computeDatagridHeight=function(){var e=this.domAdapter.clientRect(this.el.nativeElement).height;this.renderer.setStyle(this.el.nativeElement,"height",e+"px"),this._heightSet=!0},e.prototype.resetDatagridHeight=function(){this.renderer.setStyle(this.el.nativeElement,"height",""),this._heightSet=!1},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.computeHeadersWidth=function(){var e=this,t=this.headers.length,n=!0;this.headers.forEach((function(r,i){var o=Object.assign({changes:[vi.WIDTH]},r.getColumnWidthState());o.strictWidth||(n=!1),t===i+1&&n&&(o.strictWidth=0),e.columnsService.emitStateChangeAt(i,o)}))},e.prototype.stabilizeColumns=function(){this.shouldStabilizeColumns=!1,this.columnsSizesStable||this.items.displayed.length>0&&(this.organizer.resize(),this.columnsSizesStable=!0)},e}();Qi.decorators=[{type:t.Directive,args:[{selector:"clr-datagrid",providers:[{provide:tr,useFactory:Ji,deps:[t.PLATFORM_ID]}]}]}],Qi.ctorParameters=function(){return[{type:ci},{type:$r},{type:_r},{type:tr},{type:t.ElementRef},{type:t.Renderer2},{type:Gr},{type:Ci},{type:Ii}]},Qi.propDecorators={headers:[{type:t.ContentChildren,args:[qi]}],rows:[{type:t.ContentChildren,args:[$i,{descendants:!0}]}]};var eo=[Oi,Ei,_i,Xr,Di,Ai,zi,xr,Jr,Hi,bi,Ui,ki,ai,Fi,Wi,Gi,Qr,xi,Ti,Li,ji,Ri,Ni,ii,qr,hi,Qi,qi,$i,Zi,zr,Hr,Ur,Lr,Fr],to=function(){n.ClarityIcons.addIcons(n.ellipsisVerticalIcon,n.viewColumnsIcon,n.windowCloseIcon,n.arrowIcon,n.timesIcon,n.stepForward2Icon,n.angleDoubleIcon,n.filterGridCircleIcon,n.filterGridIcon)};to.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,qn,a.FormsModule,$n,Qe,er,mr,fr,Hn,k,rt,Or],declarations:[eo],exports:[eo],entryComponents:[ii,qr,hi]}]}],to.ctorParameters=function(){return[]};var no=function(){function e(e,n,r){this.parent=e,this.uniqueId=n,this.commonStrings=r,this.expanded=!1,this.expandedChange=new t.EventEmitter(!1),this.expandable=!1,this.focused=!1,this._changedChildren=0,this._fullyInitialized=!1,this._changed=!1,e&&e.addChild()}return Object.defineProperty(e.prototype,"getChangedValue",{get:function(){return this._changed||this._changedChildren>0&&!this.expanded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setChangedValue",{set:function(e){this._changed=e,this.parent&&this._fullyInitialized&&(e?this.parent._changedChildren++:this.parent._changedChildren--)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._fullyInitialized=!0},e.prototype.addChild=function(){this.expandable=!0},e.prototype.toggleExpand=function(){this.expandable&&(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))},Object.defineProperty(e.prototype,"caretDirection",{get:function(){return this.expanded?"down":"right"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.expandable?"button":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.expandable?"0":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onStackLabelFocus",{get:function(){return this.expandable&&!this.expanded&&this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.expandable?this.expanded?"true":"false":null},enumerable:!1,configurable:!0}),e.prototype.getStackChildrenId=function(){return this.expanded?"clr-stack-children-"+this.uniqueId:null},e}();no.decorators=[{type:t.Component,args:[{selector:"clr-stack-block",template:'\n <div\n class="stack-block-label"\n (click)="toggleExpand()"\n (keyup.enter)="toggleExpand()"\n (keyup.space)="toggleExpand()"\n (focus)="focused = true"\n (blur)="focused = false"\n [id]="uniqueId"\n [attr.role]="role"\n [attr.tabindex]="tabIndex"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-controls]="getStackChildrenId()"\n [attr.aria-posinset]="ariaPosinset"\n [attr.aria-level]="ariaLevel"\n [attr.aria-setsize]="ariaSetsize"\n >\n <cds-icon shape="angle" class="stack-block-caret" *ngIf="expandable" [attr.direction]="caretDirection"></cds-icon>\n <span class="clr-sr-only" *ngIf="getChangedValue">{{ commonStrings.keys.stackViewChanged }}</span>\n <div class="stack-view-key">\n \x3c!-- This structure changed to fix #3567 and the a11y request was to move away from dl\'s --\x3e\n \x3c!-- I added the key class to update css targets for the original component style --\x3e\n <ng-content select="clr-stack-label"></ng-content>\n </div>\n <div class="stack-block-content">\n <ng-content></ng-content>\n </div>\n </div>\n\n <clr-expandable-animation [clrExpandTrigger]="expanded" class="stack-children" [attr.id]="getStackChildrenId()">\n <div [style.height]="expanded ? \'auto\' : 0" role="region" *ngIf="expanded">\n <ng-content select="clr-stack-block"></ng-content>\n </div>\n </clr-expandable-animation>\n ',host:{"[class.stack-block]":"true"},providers:[W],styles:["\n :host {\n display: block;\n }\n "]}]}],no.ctorParameters=function(){return[{type:no,decorators:[{type:t.SkipSelf},{type:t.Optional}]},{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:V}]},no.propDecorators={expanded:[{type:t.HostBinding,args:["class.stack-block-expanded"]},{type:t.Input,args:["clrSbExpanded"]}],expandedChange:[{type:t.Output,args:["clrSbExpandedChange"]}],expandable:[{type:t.HostBinding,args:["class.stack-block-expandable"]},{type:t.Input,args:["clrSbExpandable"]}],getChangedValue:[{type:t.HostBinding,args:["class.stack-block-changed"]}],setChangedValue:[{type:t.Input,args:["clrSbNotifyChange"]}],ariaLevel:[{type:t.Input,args:["clrStackViewLevel"]}],ariaSetsize:[{type:t.Input,args:["clrStackViewSetsize"]}],ariaPosinset:[{type:t.Input,args:["clrStackViewPosinset"]}],onStackLabelFocus:[{type:t.HostBinding,args:["class.on-focus"]}]};var ro=function(){function e(){this.editable=!1,this.save=new t.EventEmitter(!1),this._editMode=!1,this.editingChange=new t.EventEmitter(!1)}return Object.defineProperty(e.prototype,"editing",{get:function(){return this.editable&&this._editMode},set:function(e){this.editable&&(this._editMode=e,this.editingChange.emit(e),e||this.save.emit(null))},enumerable:!1,configurable:!0}),e}();ro.decorators=[{type:t.Component,args:[{selector:"clr-stack-view",template:'\n <ng-content select="clr-stack-header"></ng-content>\n <div class="stack-view"><ng-content></ng-content></div>\n ',styles:["\n :host {\n display: block;\n }\n "]}]}],ro.propDecorators={save:[{type:t.Output,args:["clrStackSave"]}]};var io=function(e){this.stackView=e};io.decorators=[{type:t.Component,args:[{selector:"clr-stack-header",template:'\n <h4 class="stack-header">\n <span class="stack-title"><ng-content></ng-content></span>\n\n <span class="stack-actions">\n <ng-content select=".stack-action"></ng-content>\n \x3c!-- Undocumented experimental feature: inline editing. --\x3e\n <button\n *ngIf="stackView.editable"\n class="stack-action btn btn-sm btn-link"\n (click)="stackView.editing = !stackView.editing"\n type="button"\n >\n Edit\n </button>\n \x3c!-- End of undocumented experimental feature. --\x3e\n </span>\n </h4>\n ',styles:["\n :host {\n display: block;\n }\n "]}]}],io.ctorParameters=function(){return[{type:ro}]};var oo=function(e){var n=this;this.stackView=e,this.modelChange=new t.EventEmitter(!1),this.stackView.editable=!0,this.stackView.editingChange.subscribe((function(e){e||n.modelChange.emit(n.model)}))},so=function(e){function t(t){var n=e.call(this,t)||this;return n.stackView=t,n.type="text",n}return ne(t,e),t}(oo);so.decorators=[{type:t.Component,args:[{selector:"clr-stack-input",inputs:["model: clrModel","type"],outputs:["modelChange: clrModelChange"],template:'\n <span *ngIf="!stackView.editing">{{ model }}</span>\n <input [type]="type" *ngIf="stackView.editing" [(ngModel)]="model" />\n '}]}],so.ctorParameters=function(){return[{type:ro}]};var ao=function(e){function t(t){var n=e.call(this,t)||this;return n.stackView=t,n}return ne(t,e),t}(oo);ao.decorators=[{type:t.Component,args:[{selector:"clr-stack-select",inputs:["model: clrModel"],outputs:["modelChange: clrModelChange"],template:'\n <span *ngIf="!stackView.editing">{{ model }}</span>\n <div class="select" *ngIf="stackView.editing">\n <select [(ngModel)]="model">\n <ng-content></ng-content>\n </select>\n </div>\n '}]}],ao.ctorParameters=function(){return[{type:ro}]};var co=function(){};co.decorators=[{type:t.Directive,args:[{selector:"clr-stack-label, clr-stack-content"}]}];var lo=function(e){this.uniqueId=e};lo.decorators=[{type:t.Directive,args:[{selector:"[clrStackInput]",host:{"[class.clr-input]":"true","[attr.aria-labelledby]":"uniqueId"}}]}],lo.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[z]}]}]};var po,uo=[ro,io,no,lo,co,so,ao],ho=function(){n.ClarityIcons.addIcons(n.angleIcon)};ho.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,a.FormsModule,h,mr],declarations:[uo],exports:[uo]}]}],ho.ctorParameters=function(){return[]},(po=e.ClrSelectedState||(e.ClrSelectedState={}))[po.UNSELECTED=0]="UNSELECTED",po[po.SELECTED=1]="SELECTED",po[po.INDETERMINATE=2]="INDETERMINATE";var go=function(){function t(){this.selected=new i.BehaviorSubject(e.ClrSelectedState.UNSELECTED),this._loading=!1,this.loading$=new i.BehaviorSubject(!1)}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.loading$.next(e)},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.selected.complete()},t.prototype.setSelected=function(t,n,r){t!==this.selected.value&&(this.selected.next(t),r&&t!==e.ClrSelectedState.INDETERMINATE&&this.children&&this.children.forEach((function(e){return e.setSelected(t,!1,!0)})),n&&this.parent&&this.parent._updateSelectionFromChildren())},t.prototype.toggleSelection=function(t){var n=this.selected.value===e.ClrSelectedState.SELECTED?e.ClrSelectedState.UNSELECTED:e.ClrSelectedState.SELECTED;this.setSelected(n,!0,t)},t.prototype.computeSelectionStateFromChildren=function(){var t,n,r=!1,i=!1;try{for(var o=re(this.children),s=o.next();!s.done;s=o.next()){switch(s.value.selected.value){case e.ClrSelectedState.INDETERMINATE:return e.ClrSelectedState.INDETERMINATE;case e.ClrSelectedState.SELECTED:if(r=!0,i)return e.ClrSelectedState.INDETERMINATE;break;case e.ClrSelectedState.UNSELECTED:default:if(i=!0,r)return e.ClrSelectedState.INDETERMINATE}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r?i?e.ClrSelectedState.UNSELECTED:e.ClrSelectedState.SELECTED:e.ClrSelectedState.UNSELECTED},t.prototype._updateSelectionFromChildren=function(){var e=this.computeSelectionStateFromChildren();e!==this.selected.value&&(this.selected.next(e),this.parent&&this.parent._updateSelectionFromChildren())},t}(),fo=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t&&t._addChild(n),n.children=[],n}return ne(t,e),t.prototype._addChild=function(e){this.children.push(e)},t.prototype._removeChild=function(e){var t=this.children.indexOf(e);t>-1&&this.children.splice(t,1)},t.prototype.destroy=function(){this.parent&&this.parent._removeChild(this),e.prototype.destroy.call(this)},t}(go),yo=function(){this.selectable=!1,this.eager=!0,this.childrenFetched=new i.Subject};function bo(e){return e||new yo}yo.decorators=[{type:t.Injectable}];var mo={provide:yo,useFactory:bo,deps:[[new t.Optional,new t.SkipSelf,yo]]},vo=function(){function e(){this._focusRequest=new i.Subject,this._focusChange=new i.Subject}return Object.defineProperty(e.prototype,"focusRequest",{get:function(){return this._focusRequest.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusChange",{get:function(){return this._focusChange.asObservable()},enumerable:!1,configurable:!0}),e.prototype.findSiblings=function(e){return e.parent?e.parent.children:this.rootNodeModels},e.prototype.findLastVisibleInNode=function(e){if(!e)return null;if(e.expanded&&e.children.length>0){var t=e.children,n=t[t.length-1];return this.findLastVisibleInNode(n)}return e},e.prototype.findNextFocusable=function(e){if(!e)return null;var t=this.findSiblings(e),n=t.indexOf(e);return n<t.length-1?t[n+1]:n===t.length-1?this.findNextFocusable(e.parent):null},e.prototype.findLastVisibleInTree=function(){var e=this.rootNodeModels&&this.rootNodeModels.length&&this.rootNodeModels[this.rootNodeModels.length-1];return this.findLastVisibleInNode(e)},e.prototype.findNodeAbove=function(e){if(!e)return null;var t=this.findSiblings(e),n=t.indexOf(e);return 0===n?e.parent:n>0?this.findLastVisibleInNode(t[n-1]):null},e.prototype.findNodeBelow=function(e){return e?e.expanded&&e.children.length>0?e.children[0]:this.findNextFocusable(e):null},e.prototype.focusNode=function(e){e&&this._focusRequest.next(e.nodeId)},e.prototype.broadcastFocusedNode=function(e){this.focusedNodeId!==e&&(this.focusedNodeId=e,this._focusChange.next(e))},e.prototype.focusParent=function(e){e&&this.focusNode(e.parent)},e.prototype.focusFirstVisibleNode=function(){var e=this.rootNodeModels&&this.rootNodeModels[0];this.focusNode(e)},e.prototype.focusLastVisibleNode=function(){this.focusNode(this.findLastVisibleInTree())},e.prototype.focusNodeAbove=function(e){this.focusNode(this.findNodeAbove(e))},e.prototype.focusNodeBelow=function(e){this.focusNode(this.findNodeBelow(e))},e}();vo.decorators=[{type:t.Injectable}];var Co=function(){function e(e){this.el=e}return e.prototype.activate=function(){this.el.nativeElement&&this.el.nativeElement.click&&this.el.nativeElement.click()},e}();Co.decorators=[{type:t.Directive,args:[{selector:".clr-treenode-link"}]}],Co.ctorParameters=function(){return[{type:t.ElementRef}]};var So=function(){function n(n,r,i,o,s,a,c,l){this.nodeId=n,this.platformId=r,this.featuresService=o,this.expandService=s,this.commonStrings=a,this.focusManager=c,this.STATES=e.ClrSelectedState,this.skipEmitChange=!1,this.isModelLoading=!1,this.selectedChange=new t.EventEmitter(!1),this.expandedChange=new t.EventEmitter,this.subscriptions=[],this.contentContainerTabindex=-1,this.featuresService.recursion?l.view?this._model=l.view.context.clrModel:this._model=l._lView[8].clrModel:this._model=new fo(i?i._model:null),this._model.nodeId=this.nodeId}return n.prototype.isExpandable=function(){return void 0!==this.expandable?this.expandable:!!this.expandService.expandable||this._model.children&&this._model.children.length>0},Object.defineProperty(n.prototype,"selected",{get:function(){return this._model.selected.value},set:function(t){this.featuresService.selectable=!0,null==t&&(t=e.ClrSelectedState.UNSELECTED),"boolean"==typeof t&&(t=t?e.ClrSelectedState.SELECTED:e.ClrSelectedState.UNSELECTED),this.skipEmitChange=!0,this._model.setSelected(t,this.featuresService.eager,this.featuresService.eager),this.skipEmitChange=!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ariaSelected",{get:function(){return this.featuresService.selectable?this._model.selected.value===e.ClrSelectedState.SELECTED:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"expanded",{get:function(){return this.expandService.expanded},set:function(e){this.expandService.expanded=e},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){var e=this;this._model.expanded=this.expanded,this.subscriptions.push(this._model.selected.pipe(o.filter((function(){return!e.skipEmitChange}))).subscribe((function(t){e.selectedChange.emit(t)}))),this.subscriptions.push(this.expandService.expandChange.subscribe((function(t){e.expandedChange.emit(t),e._model.expanded=t}))),this.subscriptions.push(this.focusManager.focusRequest.subscribe((function(t){e.nodeId===t&&e.focusTreeNode()})),this.focusManager.focusChange.subscribe((function(t){e.checkTabIndex(t)}))),this.subscriptions.push(this._model.loading$.pipe(o.debounceTime(0)).subscribe((function(t){return e.isModelLoading=t})))},n.prototype.ngOnDestroy=function(){this._model.destroy(),this.subscriptions.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(n.prototype,"treeNodeLink",{get:function(){return this.treeNodeLinkList&&this.treeNodeLinkList.first},enumerable:!1,configurable:!0}),n.prototype.setTabIndex=function(e){this.contentContainerTabindex=e,this.contentContainer.nativeElement.setAttribute("tabindex",e)},n.prototype.checkTabIndex=function(e){r.isPlatformBrowser(this.platformId)&&this.nodeId!==e&&-1!==this.contentContainerTabindex&&this.setTabIndex(-1)},n.prototype.focusTreeNode=function(){r.isPlatformBrowser(this.platformId)&&document.activeElement!==this.contentContainer.nativeElement&&(this.setTabIndex(0),this.contentContainer.nativeElement.focus())},n.prototype.broadcastFocusOnContainer=function(){this.focusManager.broadcastFocusedNode(this.nodeId)},n.prototype.onKeyDown=function(e){switch(f(e),g(e.key)){case p.ArrowUp:this.focusManager.focusNodeAbove(this._model);break;case p.ArrowDown:this.focusManager.focusNodeBelow(this._model);break;case p.ArrowRight:this.expandOrFocusFirstChild();break;case p.ArrowLeft:this.collapseOrFocusParent();break;case p.Home:this.focusManager.focusFirstVisibleNode();break;case p.End:this.focusManager.focusLastVisibleNode();break;case p.Enter:this.triggerDefaultAction();break;case p.Space:e.preventDefault(),this.triggerDefaultAction()}},n.prototype.expandOrFocusFirstChild=function(){this.expanded?this._model.children.length>0&&this.focusManager.focusNodeBelow(this._model):this.isExpandable()&&(this.expandService.expanded=!0)},n.prototype.collapseOrFocusParent=function(){this.expanded?this.expandService.expanded=!1:this.focusManager.focusParent(this._model)},n.prototype.triggerDefaultAction=function(){this.treeNodeLink?this.treeNodeLink.activate():this.featuresService.selectable&&this._model.toggleSelection(this.featuresService.eager)},n}();So.decorators=[{type:t.Component,args:[{selector:"clr-tree-node",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div\n #contentContainer\n role="treeitem"\n class="clr-tree-node-content-container"\n tabindex="-1"\n [attr.aria-expanded]="isExpandable() ? expanded : null"\n [attr.aria-selected]="ariaSelected"\n (keydown)="onKeyDown($event)"\n (focus)="broadcastFocusOnContainer()"\n>\n <button\n *ngIf="isExpandable() && !isModelLoading && !expandService.loading"\n aria-hidden="true"\n type="button"\n tabindex="-1"\n class="clr-treenode-caret"\n (click)="expandService.toggle();"\n (focus)="focusTreeNode()"\n >\n <cds-icon\n class="clr-treenode-caret-icon"\n shape="angle"\n [attr.direction]="expandService.expanded ? \'down\' : \'right\'"\n ></cds-icon>\n </button>\n <div class="clr-treenode-spinner-container" *ngIf="expandService.loading || isModelLoading">\n <span class="clr-treenode-spinner spinner"></span>\n </div>\n <div class="clr-checkbox-wrapper clr-treenode-checkbox" *ngIf="featuresService.selectable">\n <input\n aria-hidden="true"\n type="checkbox"\n id="{{nodeId}}-check"\n class="clr-checkbox"\n [checked]="_model.selected.value === STATES.SELECTED"\n [indeterminate]="_model.selected.value === STATES.INDETERMINATE"\n (change)="_model.toggleSelection(featuresService.eager)"\n (focus)="focusTreeNode()"\n tabindex="-1"\n />\n <label for="{{nodeId}}-check" class="clr-control-label"></label>\n </div>\n <div class="clr-treenode-content" (mousedown)="focusTreeNode()">\n <ng-content></ng-content>\n <div class="clr-sr-only" *ngIf="featuresService.selectable">\n <span *ngIf="ariaSelected"> selected </span>\n <span *ngIf="!ariaSelected"> unselected </span>\n </div>\n </div>\n</div>\n<div\n class="clr-treenode-children"\n [@toggleChildrenAnim]="expandService.expanded ? \'expanded\' : \'collapsed\'"\n [attr.role]="isExpandable() && !featuresService.recursion ? \'group\' : null"\n>\n <ng-content select="clr-tree-node"></ng-content>\n <ng-content select="[clrIfExpanded]"></ng-content>\n <clr-recursive-children [parent]="_model"></clr-recursive-children>\n</div>\n',providers:[W,mo,Xe,{provide:L,useExisting:Xe}],animations:[s.trigger("toggleChildrenAnim",[s.transition("collapsed => expanded",[s.style({height:0}),s.animate(200,s.style({height:"*"}))]),s.transition("expanded => collapsed",[s.style({height:"*"}),s.animate(200,s.style({height:0}))]),s.state("expanded",s.style({height:"*","overflow-y":"visible"})),s.state("collapsed",s.style({height:0}))])],host:{"[attr.role]":'"treeitem"',"[class.clr-tree-node]":"true"}}]}],So.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:So,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:yo},{type:Xe},{type:V},{type:vo},{type:t.Injector}]},So.propDecorators={selected:[{type:t.Input,args:["clrSelected"]}],selectedChange:[{type:t.Output,args:["clrSelectedChange"]}],expandable:[{type:t.Input,args:["clrExpandable"]}],expanded:[{type:t.Input,args:["clrExpanded"]}],expandedChange:[{type:t.Output,args:["clrExpandedChange"]}],contentContainer:[{type:t.ViewChild,args:["contentContainer",{read:t.ElementRef,static:!0}]}],treeNodeLinkList:[{type:t.ContentChildren,args:[Co,{descendants:!1}]}]};var Io=function(){function e(e,t,n){this.featuresService=e,this.focusManagerService=t,this.el=n,this.subscriptions=[],this.tabindex=0}return Object.defineProperty(e.prototype,"lazy",{set:function(e){this.featuresService.eager=!e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMultiSelectable",{get:function(){return this.featuresService.selectable&&this.rootNodes.length>0},enumerable:!1,configurable:!0}),e.prototype.onFocusIn=function(e){e.target===this.el.nativeElement&&(this.focusManagerService.focusFirstVisibleNode(),delete this.tabindex)},e.prototype.ngAfterContentInit=function(){var e=this;this.setRootNodes(),this.subscriptions.push(this.rootNodes.changes.subscribe((function(){e.setRootNodes()})))},e.prototype.setRootNodes=function(){this.focusManagerService.rootNodeModels=this.rootNodes.map((function(e){return e._model})).filter((function(e){return!e.parent}))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();Io.decorators=[{type:t.Component,args:[{selector:"clr-tree",template:'\n <ng-content></ng-content>\n <clr-recursive-children\n *ngIf="featuresService.recursion"\n [children]="featuresService.recursion.root"\n ></clr-recursive-children>\n ',providers:[mo,vo],host:{"[attr.tabindex]":"tabindex","[attr.role]":'"tree"',"[attr.aria-multiselectable]":"isMultiSelectable"}}]}],Io.ctorParameters=function(){return[{type:yo},{type:vo},{type:t.ElementRef}]},Io.propDecorators={lazy:[{type:t.Input,args:["clrLazy"]}],onFocusIn:[{type:t.HostListener,args:["focusin",["$event"]]}],rootNodes:[{type:t.ContentChildren,args:[So]}]};var Oo=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.getChildren=r,o.featuresService=i,o.childrenFetched=!1,o._children=[],o.model=t,o.parent=n,o}return ne(t,e),t.prototype.clearChildren=function(){this._children.forEach((function(e){return e.destroy()})),delete this._children,this.childrenFetched=!1},t.prototype.fetchChildren=function(){var e=this;if(!this.childrenFetched){var t,n=this.getChildren(this.model);(t=n)&&"function"==typeof t.then?(this.loading=!0,n.then((function(t){e._children=e.wrapChildren(t),e.loading=!1}))):i.isObservable(n)?(this.loading=!0,this.subscription=n.subscribe((function(t){e._children=e.wrapChildren(t),e.loading=!1}))):this._children=n?this.wrapChildren(n):[],this.childrenFetched=!0,this.featuresService&&this.featuresService.childrenFetched.next()}},t.prototype.wrapChildren=function(e){var n=this;return e.map((function(e){return new t(e,n,n.getChildren,n.featuresService)}))},Object.defineProperty(t.prototype,"children",{get:function(){return this.fetchChildren(),this._children},set:function(e){this._children=e},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.subscription&&this.subscription.unsubscribe(),e.prototype.destroy.call(this)},t}(go),Eo=function(){function e(e,t,n){this.template=e,this.featuresService=t,this.cdr=n}return e.prototype.ngOnChanges=function(){var e,t=this;e=Array.isArray(this.nodes)?this.nodes.map((function(e){return new Oo(e,null,t.getChildren,t.featuresService)})):[new Oo(this.nodes,null,this.getChildren,this.featuresService)],this.childrenFetchSubscription||(this.childrenFetchSubscription=this.featuresService.childrenFetched.pipe(o.debounceTime(0)).subscribe((function(){t.cdr.detectChanges()}))),this.featuresService.recursion={template:this.template,root:e}},e.prototype.ngOnDestroy=function(){this.childrenFetchSubscription&&this.childrenFetchSubscription.unsubscribe()},e}();Eo.decorators=[{type:t.Directive,args:[{selector:"[clrRecursiveFor][clrRecursiveForOf]"}]}],Eo.ctorParameters=function(){return[{type:t.TemplateRef},{type:yo},{type:t.ChangeDetectorRef}]},Eo.propDecorators={nodes:[{type:t.Input,args:["clrRecursiveForOf"]}],getChildren:[{type:t.Input,args:["clrRecursiveForGetChildren"]}]};var wo=function(){function e(e,t){var n=this;this.featuresService=e,this.expandService=t,t&&(this.subscription=this.expandService.expandChange.subscribe((function(e){!e&&n.parent&&!n.featuresService.eager&&n.featuresService.recursion&&n.parent.clearChildren()})))}return e.prototype.shouldRender=function(){return this.featuresService.recursion&&(this.featuresService.eager||!this.expandService||this.expandService.expanded)},e.prototype.getContext=function(e){return{$implicit:e.model,clrModel:e}},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}();wo.decorators=[{type:t.Component,args:[{selector:"clr-recursive-children",template:'\n <ng-container *ngIf="shouldRender()">\n <ng-container *ngFor="let child of parent?.children || children">\n <ng-container *ngTemplateOutlet="featuresService.recursion.template; context: getContext(child)"></ng-container>\n </ng-container>\n </ng-container>\n ',host:{"[attr.role]":'"group"'}}]}],wo.ctorParameters=function(){return[{type:yo},{type:Xe,decorators:[{type:t.Optional}]}]},wo.propDecorators={parent:[{type:t.Input,args:["parent"]}],children:[{type:t.Input,args:["children"]}]};var _o=[Io,So,Eo,Co],Po=function(){n.ClarityIcons.addIcons(n.angleIcon)};Po.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,$n],declarations:[_o,wo],exports:[_o]}]}],Po.ctorParameters=function(){return[]};var Do=function(){};Do.decorators=[{type:t.NgModule,args:[{exports:[to,ho,Po]}]}];var To=function(){function e(){}return e.linkParent=function(e,t,n){e.forEach((function(e){return e[n]=t}))},e.linkVertical=function(e,t){void 0===t&&(t=!0),e.forEach((function(t,n){n>0&&(t.up=e[n-1]),n<e.length-1&&(t.down=e[n+1])})),t&&e.length>1&&(e[0].up=e[e.length-1],e[e.length-1].down=e[0])},e}();function xo(e,t,n){return i.Observable.create((function(r){t(r);var i=e.subscribe(r);return function(){i.unsubscribe(),n&&n(r)}}))}var Ao=function(){function e(e,t,n,r,i,o){this.id=e,this.renderer=t,this.parent=n,this.toggleService=r,this.focusService=i,this.platformId=o,this._unlistenFuncs=[],this.focusBackOnTrigger=!1,this.resetChildren(),this.moveToFirstItemWhenOpen(),this.parent||this.handleRootFocus()}return e.prototype.moveToFirstItemWhenOpen=function(){var e=this;this.toggleService.openChange.subscribe((function(t){t&&e.toggleService.originalEvent&&setTimeout((function(){e.focusService.moveTo(e),e.parent?e.focusService.move(mn.RIGHT):e.focusService.move(mn.DOWN)}))}))},e.prototype.handleRootFocus=function(){var e=this;this.toggleService.openChange.subscribe((function(t){t||(e.focusService.reset(e),e.focusBackOnTrigger&&e.focus()),e.focusBackOnTrigger=t}))},Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger},set:function(e){var t=this;this._trigger=e,this.parent?this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowright",(function(e){return t.toggleService.toggleWithEvent(e)}))):(this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowup",(function(e){return t.toggleService.toggleWithEvent(e)}))),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.arrowdown",(function(e){return t.toggleService.toggleWithEvent(e)}))),this.focusService.listenToArrowKeys(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(e){var t=this;this._container=e,this._unlistenFuncs.push(this.renderer.listen(e,"keydown.tab",(function(e){return t.toggleService.toggleWithEvent(e)}))),this.parent?this._unlistenFuncs.push(this.renderer.listen(e,"keydown.esc",(function(e){t.focusService.move(mn.LEFT),e.stopPropagation()}))):(this.focusService.registerContainer(e),this._unlistenFuncs.push(this.renderer.listen(e,"keydown.esc",(function(e){return t.toggleService.toggleWithEvent(e)}))),this._unlistenFuncs.push(this.renderer.listen(e,"blur",(function(n){t.children.pipe(o.take(1)).subscribe((function(e){return e.forEach((function(e){return e.blur()}))}));var i=n.relatedTarget||document.activeElement;i&&r.isPlatformBrowser(t.platformId)&&(e.contains(i)||i===t.trigger)||(t.focusBackOnTrigger=!1,t.toggleService.open=!1)}))))},enumerable:!1,configurable:!0}),e.prototype.focus=function(){this.trigger&&r.isPlatformBrowser(this.platformId)&&this.trigger.focus()},e.prototype.blur=function(){this.trigger&&r.isPlatformBrowser(this.platformId)&&this.trigger.blur()},e.prototype.activate=function(){r.isPlatformBrowser(this.platformId)&&this.trigger.click()},e.prototype.openAndGetChildren=function(){var e=this;return xo(this.children,(function(){return e.toggleService.open=!0}))},e.prototype.closeAndGetThis=function(){var e=this;return xo(i.of(this),(function(){return e.toggleService.open=!1}))},e.prototype.resetChildren=function(){this.children=new i.ReplaySubject(1),this.parent?this.right=this.openAndGetChildren().pipe(o.map((function(e){return e[0]}))):(this.down=this.openAndGetChildren().pipe(o.map((function(e){return e[0]}))),this.up=this.openAndGetChildren().pipe(o.map((function(e){return e[e.length-1]}))))},e.prototype.addChildren=function(e){To.linkVertical(e),this.parent&&To.linkParent(e,this.closeAndGetThis(),mn.LEFT),this.children.next(e)},e.prototype.ngOnDestroy=function(){this._unlistenFuncs.forEach((function(e){return e()})),this.focusService.detachListeners()},e}();Ao.decorators=[{type:t.Injectable}],Ao.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:t.Renderer2},{type:Ao,decorators:[{type:t.SkipSelf},{type:t.Optional}]},{type:y},{type:Ln},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var ko=Cn(Ao),Ro=function(){function e(){this._changes=new i.Subject}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!1,configurable:!0}),e.prototype.closeMenus=function(){this._changes.next(!1)},e}();function Lo(e){return e||new Ro}Ro.decorators=[{type:t.Injectable}];var jo={provide:Ro,useFactory:Lo,deps:[[new t.Optional,new t.SkipSelf,Ro]]},No=function(){function e(e,t,n,r){var i=this;this.parent=e,this.toggleService=t,this.cdr=n,this.subscriptions=[],this.isMenuClosable=!0,this.subscriptions.push(r.changes.subscribe((function(e){return i.toggleService.open=e}))),this.subscriptions.push(t.openChange.subscribe((function(){return i.cdr.markForCheck()})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e}();No.decorators=[{type:t.Component,args:[{selector:"clr-dropdown",template:"<ng-content></ng-content>",host:{"[class.dropdown]":"true","[class.open]":"toggleService.open"},providers:[jo,{provide:Pn,useExisting:t.ElementRef},Nn,y,ko]}]}],No.ctorParameters=function(){return[{type:No,decorators:[{type:t.SkipSelf},{type:t.Optional}]},{type:y},{type:t.ChangeDetectorRef},{type:Ro}]},No.propDecorators={isMenuClosable:[{type:t.Input,args:["clrCloseMenuOnItemClick"]}]};var Fo=function(){function e(e,t,n,r){this.id=e,this.el=t,this.renderer=n,this.platformId=r,this.disabled=!1,n.setAttribute(t.nativeElement,"id",e),n.setAttribute(t.nativeElement,"tabindex","-1")}return e.prototype.focus=function(){r.isPlatformBrowser(this.platformId)&&(this.renderer.setAttribute(this.el.nativeElement,"tabindex","0"),this.el.nativeElement.focus(),this.el.nativeElement.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},e.prototype.blur=function(){r.isPlatformBrowser(this.platformId)&&(this.renderer.setAttribute(this.el.nativeElement,"tabindex","-1"),this.el.nativeElement.blur())},e.prototype.activate=function(){r.isPlatformBrowser(this.platformId)&&this.el.nativeElement.click()},e}();Fo.decorators=[{type:t.Injectable}],Fo.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:t.ElementRef},{type:t.Renderer2},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]};var Mo,Vo=[W,{provide:vn,useClass:Fo}],Bo=function(){function e(e,t,n,r,i){this.dropdown=e,this.el=t,this._dropdownService=n,this.renderer=r,this.focusableItem=i,this.setByDeprecatedDisabled=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this.focusableItem.disabled},set:function(e){this.focusableItem.disabled=!!e||""===e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabledDeprecated",{get:function(){return this.focusableItem.disabled},set:function(e){this.focusableItem.disabled=!!e||""===e,this.setByDeprecatedDisabled=!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropdownItemId",{get:function(){return this.focusableItem.id},set:function(e){this.focusableItem.id=e},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.unlisten=this.renderer.listen(this.el.nativeElement,"click",(function(){return e.onDropdownItemClick()}))},e.prototype.onDropdownItemClick=function(){this.dropdown.isMenuClosable&&!this.el.nativeElement.classList.contains("disabled")&&this._dropdownService.closeMenus()},e.prototype.ngOnDestroy=function(){this.unlisten&&this.unlisten()},e}();Bo.decorators=[{type:t.Directive,args:[{selector:"[clrDropdownItem]",host:{"[class.disabled]":"disabled","[class.dropdown-item]":"true","[attr.role]":'"menuitem"',"[attr.aria-disabled]":"disabled","[attr.disabled]":"(disabled && setByDeprecatedDisabled)? '' : null","[attr.id]":"dropdownItemId"},providers:[Vo]}]}],Bo.ctorParameters=function(){return[{type:No},{type:t.ElementRef},{type:Ro},{type:t.Renderer2},{type:vn}]},Bo.propDecorators={disabled:[{type:t.Input,args:["clrDisabled"]}],disabledDeprecated:[{type:t.Input,args:["disabled"]}],dropdownItemId:[{type:t.Input,args:["id"]}]},function(e){e[e.RIGHT_CENTER=0]="RIGHT_CENTER",e[e.RIGHT_TOP=1]="RIGHT_TOP",e[e.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",e[e.TOP_CENTER=3]="TOP_CENTER",e[e.TOP_RIGHT=4]="TOP_RIGHT",e[e.TOP_LEFT=5]="TOP_LEFT",e[e.BOTTOM_CENTER=6]="BOTTOM_CENTER",e[e.BOTTOM_RIGHT=7]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=8]="BOTTOM_LEFT",e[e.LEFT_CENTER=9]="LEFT_CENTER",e[e.LEFT_TOP=10]="LEFT_TOP",e[e.LEFT_BOTTOM=11]="LEFT_BOTTOM"}(Mo||(Mo={}));var zo="absolute",Ho="scroll",Go="auto",Wo=function(){function e(e){this.element=e,this.scrollableElements=[],this.boundOnScrollListener=this.emitScrollEvent.bind(this),e.style.position=zo,e.style.top=0,e.style.bottom="auto",e.style.left=0,e.style.right="auto"}return e.prototype.anchor=function(e,t,n,r){var i=void 0===r?{}:r,o=i.offsetX,s=void 0===o?0:o,a=i.offsetY,c=void 0===a?0:a,l=i.useAnchorParent,p=void 0!==l&&l;this.addScrollEventListeners(e),p&&(e=e.parentNode),e.style.position="static";var u=e.getBoundingClientRect(),d=this.element.getBoundingClientRect(),h=u.left-d.left+s,g=u.top-d.top+c;switch(t){case Mo.LEFT_TOP:case Mo.TOP_LEFT:break;case Mo.TOP_CENTER:h+=u.width/2;break;case Mo.TOP_RIGHT:case Mo.RIGHT_TOP:h+=u.width;break;case Mo.LEFT_BOTTOM:case Mo.BOTTOM_LEFT:g+=u.height;break;case Mo.BOTTOM_CENTER:g+=u.height,h+=u.width/2;break;case Mo.BOTTOM_RIGHT:case Mo.RIGHT_BOTTOM:g+=u.height,h+=u.width;break;case Mo.LEFT_CENTER:g+=u.height/2;break;case Mo.RIGHT_CENTER:g+=u.height/2,h+=u.width}switch(n){case Mo.LEFT_TOP:case Mo.TOP_LEFT:break;case Mo.TOP_CENTER:h-=d.width/2;break;case Mo.TOP_RIGHT:case Mo.RIGHT_TOP:h-=d.width;break;case Mo.LEFT_BOTTOM:case Mo.BOTTOM_LEFT:g-=d.height;break;case Mo.BOTTOM_CENTER:g-=d.height,h-=d.width/2;break;case Mo.BOTTOM_RIGHT:case Mo.RIGHT_BOTTOM:g-=d.height,h-=d.width;break;case Mo.LEFT_CENTER:g-=d.height/2;break;case Mo.RIGHT_CENTER:g-=d.height/2,h-=d.width}var f=getComputedStyle(this.element),y=parseInt(f.marginLeft,10),b=parseInt(f.marginRight,10),m=parseInt(f.marginTop,10),v=parseInt(f.marginBottom,10);switch(t){case Mo.LEFT_TOP:case Mo.TOP_LEFT:case Mo.TOP_RIGHT:case Mo.RIGHT_TOP:n!==Mo.BOTTOM_RIGHT&&n!==Mo.RIGHT_BOTTOM||(g-=v,h-=b),n!==Mo.BOTTOM_LEFT&&n!==Mo.LEFT_BOTTOM||(g-=m,h+=y),n!==Mo.TOP_LEFT&&n!==Mo.LEFT_TOP||(g+=m,h+=y),n!==Mo.TOP_RIGHT&&n!==Mo.RIGHT_TOP||(g+=m,h-=b);break;case Mo.LEFT_BOTTOM:case Mo.BOTTOM_LEFT:case Mo.BOTTOM_RIGHT:case Mo.RIGHT_BOTTOM:n!==Mo.BOTTOM_LEFT&&n!==Mo.LEFT_BOTTOM||(g-=v,h+=y),n!==Mo.BOTTOM_RIGHT&&n!==Mo.RIGHT_BOTTOM||(g-=v,h-=b),n!==Mo.TOP_LEFT&&n!==Mo.LEFT_TOP||(g+=m,h+=y),n!==Mo.TOP_RIGHT&&n!==Mo.RIGHT_TOP||(g+=m,h-=b);break;case Mo.TOP_CENTER:g-=v,h+=y,h-=b;break;case Mo.BOTTOM_CENTER:g+=m,h+=y,h-=b;break;case Mo.LEFT_CENTER:g+=m,g-=v,h-=b;break;case Mo.RIGHT_CENTER:g+=m,g-=v,h+=y}return this.element.style.transform="translateX("+Math.round(h)+"px) translateY("+Math.round(g)+"px)",this._scroll.asObservable()},e.prototype.release=function(){this.element.style.transform="",this.removeScrollEventListeners()},e.prototype.isPositioned=function(e){var t=getComputedStyle(e).position;return"relative"===t||t===zo||"fixed"===t},e.prototype.emitScrollEvent=function(){this._scroll.next()},e.prototype.addScrollEventListeners=function(e){this._scroll=new i.Subject;for(var t=e,n=e;n&&n!==document&&(this.scrolls(n)&&(n.addEventListener("scroll",this.boundOnScrollListener),this.scrollableElements.push(n)),n===t||!this.isPositioned(n));)n=n.parentNode},e.prototype.removeScrollEventListeners=function(){var e,t;try{for(var n=re(this.scrollableElements),r=n.next();!r.done;r=n.next()){r.value.removeEventListener("scroll",this.boundOnScrollListener)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.scrollableElements.length=0,this._scroll&&(this._scroll.complete(),delete this._scroll)},e.prototype.scrolls=function(e){var t=getComputedStyle(e);return t.overflowX===Ho||t.overflowX===Go||t.overflowY===Ho||t.overflowY===Go},e}(),Uo=function(){function e(e,n){var r=this;this.parentHost=n,this.updateAnchor=!1,this.popoverOptions={},this.closeOnOutsideClick=!1,this.el=e.get(t.ElementRef),this.toggleService=e.get(y),this.renderer=e.get(t.Renderer2),this.anchorElem=n.nativeElement,this.popoverInstance=new Wo(this.el.nativeElement),this.subscription=this.toggleService.openChange.subscribe((function(e){e?(r.anchor(),r.attachESCListener()):(r.release(),r.detachESCListener())})),this.toggleService.open&&(this.anchor(),this.attachESCListener())}return e.prototype.anchor=function(){this.updateAnchor=!0,this.ignore=this.toggleService.originalEvent},e.prototype.release=function(){this.detachOutsideClickListener(),this.popoverInstance.release()},e.prototype.ngAfterViewChecked=function(){var e=this;this.updateAnchor&&(this.updateAnchor=!1,this.popoverInstance.anchor(this.anchorElem,this.anchorPoint,this.popoverPoint,this.popoverOptions).subscribe((function(){e.toggleService.open=!1})),this.attachOutsideClickListener())},e.prototype.ngOnDestroy=function(){this.release(),this.detachESCListener(),this.subscription.unsubscribe()},Object.defineProperty(e.prototype,"isOffScreen",{get:function(){return!this.toggleService.open},enumerable:!1,configurable:!0}),e.prototype.attachESCListener=function(){var e=this;this.popoverOptions.ignoreGlobalESCListener||(this.documentESCListener=this.renderer.listen("document","keydown",(function(t){t&&t.key&&("Escape"!==t.key&&"Esc"!==t.key||(e.toggleService.open=!1))})))},e.prototype.detachESCListener=function(){this.documentESCListener&&(this.documentESCListener(),delete this.documentESCListener)},e.prototype.attachOutsideClickListener=function(){var e=this;this.closeOnOutsideClick&&(this.hostClickListener=this.renderer.listen(this.el.nativeElement,"click",(function(t){return e.ignore=t})),this.ignoredElement&&(this.ignoredElementClickListener=this.renderer.listen(this.ignoredElement,"click",(function(t){return e.ignore=t}))),this.documentClickListener=this.renderer.listen("document","click",(function(t){t===e.ignore?delete e.ignore:e.toggleService.open=!1})))},e.prototype.detachOutsideClickListener=function(){this.closeOnOutsideClick&&(this.hostClickListener&&(this.hostClickListener(),delete this.hostClickListener),this.ignoredElementClickListener&&(this.ignoredElementClickListener(),delete this.ignoredElementClickListener),this.documentClickListener&&(this.documentClickListener(),delete this.documentClickListener))},e}();Uo.decorators=[{type:t.Directive}],Uo.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef,decorators:[{type:t.SkipSelf}]}]},Uo.propDecorators={isOffScreen:[{type:t.HostBinding,args:["class.is-off-screen"]}]};var Yo=function(e){function t(t,n,r,i){var o=this;if(!n)throw new Error("clr-dropdown-menu should only be used inside of a clr-dropdown");return o=e.call(this,t,n)||this,r?(o.anchorPoint=Mo.RIGHT_TOP,o.popoverPoint=Mo.LEFT_TOP):(o.anchorPoint=Mo.BOTTOM_LEFT,o.popoverPoint=Mo.LEFT_TOP),o.popoverOptions.allowMultipleOpen=!0,o.popoverOptions.ignoreGlobalESCListener=!0,o.closeOnOutsideClick=!0,o.focusHandler=i,o}return ne(t,e),Object.defineProperty(t.prototype,"position",{set:function(e){switch(e){case"top-right":this.anchorPoint=Mo.TOP_RIGHT,this.popoverPoint=Mo.RIGHT_BOTTOM;break;case"top-left":this.anchorPoint=Mo.TOP_LEFT,this.popoverPoint=Mo.LEFT_BOTTOM;break;case"bottom-right":this.anchorPoint=Mo.BOTTOM_RIGHT,this.popoverPoint=Mo.RIGHT_TOP;break;case"bottom-left":this.anchorPoint=Mo.BOTTOM_LEFT,this.popoverPoint=Mo.LEFT_TOP;break;case"right-top":this.anchorPoint=Mo.RIGHT_TOP,this.popoverPoint=Mo.LEFT_TOP;break;case"right-bottom":this.anchorPoint=Mo.RIGHT_BOTTOM,this.popoverPoint=Mo.LEFT_BOTTOM;break;case"left-top":this.anchorPoint=Mo.LEFT_TOP,this.popoverPoint=Mo.RIGHT_TOP;break;case"left-bottom":this.anchorPoint=Mo.LEFT_BOTTOM,this.popoverPoint=Mo.RIGHT_BOTTOM;break;default:this.anchorPoint=Mo.BOTTOM_LEFT,this.popoverPoint=Mo.LEFT_TOP}},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){var e=this;this.focusHandler.container=this.el.nativeElement,this.items.changes.subscribe((function(){return e.focusHandler.addChildren(e.items.toArray())})),this.items.notifyOnChanges()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.focusHandler.resetChildren()},t}(Uo);Yo.decorators=[{type:t.Component,args:[{selector:"clr-dropdown-menu",template:" <ng-content></ng-content> ",host:{"[class.dropdown-menu]":"true","[attr.role]":'"menu"'}}]}],Yo.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef,decorators:[{type:t.Optional},{type:t.Inject,args:[Pn]}]},{type:Yo,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:Ao}]},Yo.propDecorators={position:[{type:t.Input,args:["clrPosition"]}],items:[{type:t.ContentChildren,args:[vn]}]};var Ko=function(){function e(e,t,n,r){this.toggleService=t,this.isRootLevelToggle=!0,e.parent&&(this.isRootLevelToggle=!1),r.trigger=n.nativeElement}return Object.defineProperty(e.prototype,"active",{get:function(){return this.toggleService.open},enumerable:!1,configurable:!0}),e.prototype.onDropdownTriggerClick=function(e){this.toggleService.toggleWithEvent(e)},e}();Ko.decorators=[{type:t.Directive,args:[{selector:"[clrDropdownTrigger],[clrDropdownToggle]",host:{"[class.dropdown-toggle]":"isRootLevelToggle","[class.dropdown-item]":"!isRootLevelToggle","[class.expandable]":"!isRootLevelToggle","[class.active]":"active","[attr.aria-haspopup]":'"menu"',"[attr.aria-expanded]":"active"}}]}],Ko.ctorParameters=function(){return[{type:No},{type:y},{type:t.ElementRef},{type:Ao}]},Ko.propDecorators={onDropdownTriggerClick:[{type:t.HostListener,args:["click",["$event"]]}]};var Zo=[No,Yo,Ko,Bo],qo=function(){};qo.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Zo],exports:[Zo,Qe,h]}]}];var Xo=["info","warning","danger","success"],$o=function(){function e(e){this.commonStrings=e,this.defaultIconShape="info-circle",this._alertIconShape="",this._alertType="info"}return Object.defineProperty(e.prototype,"alertType",{get:function(){return this._alertType},set:function(e){Xo.indexOf(e)>-1&&(this._alertType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alertIconShape",{get:function(){return""===this._alertIconShape?this.iconInfoFromType(this._alertType).shape:this._alertIconShape},set:function(e){e?e!==this._alertIconShape&&(this._alertIconShape=e):this._alertIconShape=""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alertIconTitle",{get:function(){return this.iconInfoFromType(this._alertType).title},enumerable:!1,configurable:!0}),e.prototype.iconInfoFromType=function(e){var t={shape:"",cssClass:"",title:""};switch(e){case"warning":t.shape="exclamation-triangle",t.cssClass="alert-warning",t.title=this.commonStrings.keys.warning;break;case"danger":t.shape="exclamation-circle",t.cssClass="alert-danger",t.title=this.commonStrings.keys.danger;break;case"success":t.shape="check-circle",t.cssClass="alert-success",t.title=this.commonStrings.keys.success;break;default:t.shape=this.defaultIconShape,t.cssClass="alert-info",t.title=this.commonStrings.keys.info}return t},e}();$o.decorators=[{type:t.Injectable}],$o.ctorParameters=function(){return[{type:V}]};var Jo=function(){function e(){this._change=new i.Subject}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._change.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){e!==this._current&&(this._current=e,this._change.next(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeAlerts",{get:function(){return this.allAlerts&&this.allAlerts.filter((function(e){return!e._closed}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlert",{get:function(){return this.activeAlerts&&this.activeAlerts[this.current]},set:function(e){this.current=this.activeAlerts.indexOf(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.activeAlerts&&this.activeAlerts.length||0},enumerable:!1,configurable:!0}),e.prototype.manage=function(e){var t=this;this.subscription&&this.subscription.unsubscribe(),this.allAlerts=e,this.current="number"==typeof this._current?this._current:0,this._change.next(this.current),this.subscription=this.allAlerts.changes.subscribe((function(){t.current>=t.allAlerts.length&&(t.current=Math.max(0,t.allAlerts.length-1))}))},e.prototype.next=function(){this.current=this.current===this.activeAlerts.length-1?0:this.current+1},e.prototype.previous=function(){0!==this.activeAlerts.length&&(this.current=0===this.current?this.activeAlerts.length-1:this.current-1)},e.prototype.close=function(){this.previous()},e.prototype.destroy=function(){this.subscription&&this.subscription.unsubscribe()},e}();Jo.decorators=[{type:t.Injectable}];var Qo=function(){function e(e,n,r,i){this.iconService=e,this.cdr=n,this.multiAlertService=r,this.commonStrings=i,this.subscriptions=[],this.isSmall=!1,this.closable=!0,this.isAppLevel=!1,this.clrCloseButtonAriaLabel=this.commonStrings.keys.alertCloseButtonAriaLabel,this._closed=!1,this._closedChanged=new t.EventEmitter(!1)}return e.prototype.ngOnInit=function(){var e=this;this.multiAlertService&&this.subscriptions.push(this.multiAlertService.changes.subscribe((function(){e.hidden=e.multiAlertService.currentAlert!==e})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},Object.defineProperty(e.prototype,"alertType",{get:function(){return this.iconService.alertType},set:function(e){this.iconService.alertType=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alertIconShape",{set:function(e){this.iconService.alertIconShape=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alertClass",{get:function(){return this.iconService.iconInfoFromType(this.iconService.alertType).cssClass},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(e){e!==this._hidden&&(this._hidden=e,this.cdr.detectChanges())},enumerable:!1,configurable:!0}),e.prototype.close=function(){this.closable&&(this._closed=!0,this.multiAlertService&&this.multiAlertService.close(),this._closedChanged.emit(!0))},e.prototype.open=function(){this._closed=!1,this._closedChanged.emit(!1)},e}();Qo.decorators=[{type:t.Component,args:[{selector:"clr-alert",providers:[$o],template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div\n *ngIf="!_closed"\n class="alert"\n [ngClass]="alertClass"\n [class.alert-hidden]="hidden"\n [class.alert-sm]="isSmall"\n [class.alert-app-level]="isAppLevel"\n>\n <div class="alert-items">\n <ng-content></ng-content>\n </div>\n <button type="button" class="close" *ngIf="closable" (click)="close()" [attr.aria-label]="clrCloseButtonAriaLabel">\n <cds-icon shape="window-close"></cds-icon>\n </button>\n</div>\n',styles:[":host { display: block; }"]}]}],Qo.ctorParameters=function(){return[{type:$o},{type:t.ChangeDetectorRef},{type:Jo,decorators:[{type:t.Optional}]},{type:V}]},Qo.propDecorators={isSmall:[{type:t.Input,args:["clrAlertSizeSmall"]}],closable:[{type:t.Input,args:["clrAlertClosable"]}],isAppLevel:[{type:t.Input,args:["clrAlertAppLevel"]}],clrCloseButtonAriaLabel:[{type:t.Input}],_closed:[{type:t.Input,args:["clrAlertClosed"]}],_closedChanged:[{type:t.Output,args:["clrAlertClosedChange"]}],alertType:[{type:t.Input,args:["clrAlertType"]}],alertIconShape:[{type:t.Input,args:["clrAlertIcon"]}]};var es=function(e){this.iconService=e};es.decorators=[{type:t.Component,args:[{selector:"clr-alert-item",template:'\n <div class="alert-icon-wrapper">\n <cds-icon\n class="alert-icon"\n [attr.shape]="iconService.alertIconShape"\n [attr.title]="iconService.alertIconTitle"\n ></cds-icon>\n </div>\n <ng-content></ng-content>\n ',host:{class:"alert-item"}}]}],es.ctorParameters=function(){return[{type:$o}]};var ts=function(){function e(e){this.multiAlertService=e,this.subscriptions=[],this.currentAlertIndexChange=new t.EventEmitter(!1),this.currentAlertChange=new t.EventEmitter(!1)}return Object.defineProperty(e.prototype,"allAlerts",{set:function(e){this.multiAlertService.manage(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_inputCurrentIndex",{set:function(e){Number.isInteger(e)&&e>=0&&(this.multiAlertService.current=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlertIndex",{get:function(){return this.multiAlertService.current},set:function(e){this.multiAlertService.current=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlert",{get:function(){return this.multiAlertService.currentAlert},set:function(e){e&&(this.multiAlertService.currentAlert=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alerts",{get:function(){return this.allAlerts.filter((function(e){return!1===e.hidden}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlertType",{get:function(){return this.multiAlertService.currentAlert?this.multiAlertService.currentAlert.alertType:""},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.subscriptions.push(this.multiAlertService.changes.subscribe((function(t){e.currentAlertIndexChange.next(t),e.currentAlertChange.next(e.multiAlertService.currentAlert)})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.multiAlertService.destroy()},e}();ts.decorators=[{type:t.Component,args:[{selector:"clr-alerts",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<clr-alerts-pager *ngIf="multiAlertService.count > 1" [clrCurrentAlertIndex]="currentAlertIndex"> </clr-alerts-pager>\n<ng-content select="clr-alert"></ng-content>\n',providers:[Jo],host:{"[class.alerts]":"true","[class.alert-danger]":"this.currentAlertType == 'danger'","[class.alert-info]":"this.currentAlertType == 'info'","[class.alert-success]":"this.currentAlertType == 'success'","[class.alert-warning]":"this.currentAlertType == 'warning'"},styles:[":host { display: block }"]}]}],ts.ctorParameters=function(){return[{type:Jo}]},ts.propDecorators={allAlerts:[{type:t.ContentChildren,args:[Qo]}],_inputCurrentIndex:[{type:t.Input,args:["clrCurrentAlertIndex"]}],currentAlertIndexChange:[{type:t.Output,args:["clrCurrentAlertIndexChange"]}],currentAlert:[{type:t.Input,args:["clrCurrentAlert"]}],currentAlertChange:[{type:t.Output,args:["clrCurrentAlertChange"]}]};var ns=function(){function e(e,n){this.multiAlertService=e,this.commonStrings=n,this.currentAlertChange=new t.EventEmitter(!1),this.currentAlertIndexChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"currentAlert",{get:function(){return this.multiAlertService.currentAlert},set:function(e){e&&(this.multiAlertService.currentAlert=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAlertIndex",{get:function(){return this.multiAlertService.current},set:function(e){this.multiAlertService.current=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.multiAlertServiceChanges=this.multiAlertService.changes.subscribe((function(t){e.currentAlertIndexChange.emit(t),e.currentAlertChange.emit(e.multiAlertService.activeAlerts[t])}))},e.prototype.pageUp=function(){this.multiAlertService.next()},e.prototype.pageDown=function(){this.multiAlertService.previous()},e.prototype.ngOnDestroy=function(){this.multiAlertServiceChanges.unsubscribe()},e}();ns.decorators=[{type:t.Component,args:[{selector:"clr-alerts-pager",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div class="alerts-pager-control">\n <div class="alerts-page-down">\n <button class="alerts-pager-button" (click)="pageDown()">\n <cds-icon shape="angle" direction="left" [attr.title]="commonStrings.keys.previous"></cds-icon>\n </button>\n </div>\n <div class="alerts-pager-text">{{this.multiAlertService.current+1}} / {{this.multiAlertService.count}}</div>\n <div class="alerts-page-up">\n <button class="alerts-pager-button" (click)="pageUp()">\n <cds-icon shape="angle" direction="right" [attr.title]="commonStrings.keys.next"></cds-icon>\n </button>\n </div>\n</div>\n',host:{"[class.alerts-pager]":"true"}}]}],ns.ctorParameters=function(){return[{type:Jo},{type:V}]},ns.propDecorators={currentAlert:[{type:t.Input,args:["clrCurrentAlert"]}],currentAlertChange:[{type:t.Output,args:["clrCurrentAlertChange"]}],currentAlertIndex:[{type:t.Input,args:["clrCurrentAlertIndex"]}],currentAlertIndexChange:[{type:t.Output,args:["clrCurrentAlertIndexChange"]}]};var rs=function(){};rs.decorators=[{type:t.Directive,args:[{selector:".alert-text"}]}];var is=[Qo,es,ts,ns,rs],os=function(){n.ClarityIcons.addIcons(n.checkCircleIcon,n.infoCircleIcon,n.exclamationCircleIcon,n.exclamationTriangleIcon,n.windowCloseIcon)};os.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,qo],declarations:[is],exports:[is]}]}],os.ctorParameters=function(){return[]};var ss=function(){};ss.decorators=[{type:t.NgModule,args:[{exports:[os]}]}];var as=function(){};as.NAV_LEVEL_1=1,as.NAV_LEVEL_2=2,as.NAV_CLOSE_ALL="NAV_CLOSE_ALL",as.NAV_OPEN="NAV_OPEN",as.NAV_CLOSE="NAV_CLOSE",as.NAV_TOGGLE="NAV_TOGGLE",as.NAV_CLASS_HAMBURGER_MENU="open-hamburger-menu",as.NAV_CLASS_OVERFLOW_MENU="open-overflow-menu",as.NAV_CLASS_TRIGGER_1="header-hamburger-trigger",as.NAV_CLASS_TRIGGER_2="header-overflow-trigger",as.NAV_CLASS_LEVEL_1="clr-nav-level-1",as.NAV_CLASS_LEVEL_2="clr-nav-level-2";var cs=function(){function e(e,t){this._controlCode=e,this._navLevel=t}return Object.defineProperty(e.prototype,"controlCode",{get:function(){return this._controlCode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navLevel",{get:function(){return this._navLevel},enumerable:!1,configurable:!0}),e}(),ls=function(){function e(){this.responsiveNavList=[],this.registerNavSubject=new i.ReplaySubject,this.controlNavSubject=new i.Subject,this.closeAllNavs()}return Object.defineProperty(e.prototype,"registeredNavs",{get:function(){return this.registerNavSubject.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navControl",{get:function(){return this.controlNavSubject.asObservable()},enumerable:!1,configurable:!0}),e.prototype.registerNav=function(e){e&&!this.isNavRegistered(e)&&(this.responsiveNavList.push(e),this.registerNavSubject.next(this.responsiveNavList))},e.prototype.isNavRegistered=function(e){return this.responsiveNavList.indexOf(e)>-1&&(console.error("Multiple clr-nav-level "+e+" attributes found. Please make sure that only one exists"),!0)},e.prototype.unregisterNav=function(e){var t=this.responsiveNavList.indexOf(e);t>-1&&(this.responsiveNavList.splice(t,1),this.registerNavSubject.next(this.responsiveNavList))},e.prototype.sendControlMessage=function(e,t){var n=new cs(e,t);this.controlNavSubject.next(n)},e.prototype.closeAllNavs=function(){var e=new cs(as.NAV_CLOSE_ALL,-999);this.controlNavSubject.next(e)},e}();ls.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new ls},token:ls,providedIn:"root"}),ls.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],ls.ctorParameters=function(){return[]};var ps=function(){function e(e,t){this.elRef=e,this.responsiveNavService=t}return e.prototype.ngOnInit=function(){var e=this;this._classList=this.elRef.nativeElement.classList,this._subscription=this.responsiveNavService.navControl.subscribe({next:function(t){e.processMessage(t)}})},e.prototype.processMessage=function(e){var t=as.NAV_CLASS_HAMBURGER_MENU;e.controlCode===as.NAV_CLOSE_ALL?(this._classList.remove(as.NAV_CLASS_HAMBURGER_MENU),this._classList.remove(as.NAV_CLASS_OVERFLOW_MENU)):e.navLevel===as.NAV_LEVEL_1?this.controlNav(e.controlCode,t):e.navLevel===as.NAV_LEVEL_2&&(t=as.NAV_CLASS_OVERFLOW_MENU,this.controlNav(e.controlCode,t))},e.prototype.controlNav=function(e,t){e===as.NAV_OPEN?this._classList.add(t):e===as.NAV_CLOSE?this._classList.remove(t):e===as.NAV_TOGGLE&&this._classList.toggle(t)},e.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},e}();ps.decorators=[{type:t.Directive,args:[{selector:"clr-main-container",host:{"[class.main-container]":"true"}}]}],ps.ctorParameters=function(){return[{type:t.ElementRef},{type:ls}]};var us=[ps],ds=function(){};ds.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h],declarations:[us],exports:[us]}]}];var hs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t}(Mr);hs.decorators=[{type:t.Directive,args:[{selector:"clr-main-container"}]}];var gs=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-header should only be used inside of a clr-main-container");return(i=e.call(this,t,n)||this).responsiveNavService=r,i}return ne(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.responsiveNavService.responsiveNavList.reduce((function(e,t){return e+t}),0)},enumerable:!1,configurable:!0}),t}(Vr);gs.decorators=[{type:t.Directive,args:[{selector:"clr-header"}]}],gs.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:hs,decorators:[{type:t.Optional}]},{type:ls}]};var fs=function(){function e(e,t){var n=this;this.responsiveNavService=e,this.commonStrings=t,this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1,this.openNavLevel=null,this.responsiveNavCodes=as,this._subscription=this.responsiveNavService.registeredNavs.subscribe({next:function(e){n.initializeNavTriggers(e)}})}return e.prototype.resetNavTriggers=function(){this.isNavLevel1OnPage=!1,this.isNavLevel2OnPage=!1},e.prototype.initializeNavTriggers=function(e){var t=this;this.resetNavTriggers(),e.length>2?console.error("More than 2 Nav Levels detected."):e.forEach((function(e){e===as.NAV_LEVEL_1?t.isNavLevel1OnPage=!0:e===as.NAV_LEVEL_2&&(t.isNavLevel2OnPage=!0)}))},e.prototype.closeOpenNav=function(){this.responsiveNavService.closeAllNavs()},e.prototype.toggleNav=function(e){this.openNavLevel=this.openNavLevel===e?null:e,this.responsiveNavService.sendControlMessage(as.NAV_TOGGLE,e)},e.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},e}();fs.decorators=[{type:t.Component,args:[{selector:"clr-header",template:'\n <button\n type="button"\n *ngIf="isNavLevel1OnPage"\n class="header-hamburger-trigger"\n [attr.aria-label]="\n openNavLevel !== responsiveNavCodes.NAV_LEVEL_1 ? commonStrings.keys.open : commonStrings.keys.close\n "\n (click)="toggleNav(responsiveNavCodes.NAV_LEVEL_1)"\n >\n <span></span>\n </button>\n <ng-content></ng-content>\n <button\n type="button"\n *ngIf="isNavLevel2OnPage"\n class="header-overflow-trigger"\n [attr.aria-label]="\n openNavLevel !== responsiveNavCodes.NAV_LEVEL_2 ? commonStrings.keys.open : commonStrings.keys.close\n "\n (click)="toggleNav(responsiveNavCodes.NAV_LEVEL_2)"\n >\n <span></span>\n </button>\n <div class="header-backdrop" (click)="closeOpenNav()"></div>\n ',host:{"[class.header]":"true"}}]}],fs.ctorParameters=function(){return[{type:ls},{type:V}]};var ys=function(){function e(e,t){this.responsiveNavService=e,this.elementRef=t}return e.prototype.ngOnInit=function(){this.level===as.NAV_LEVEL_1||this.level===as.NAV_LEVEL_2?(this.responsiveNavService.registerNav(this.level),this.addNavClass(this.level)):console.error("Nav Level can only be 1 or 2")},e.prototype.addNavClass=function(e){var t=this.elementRef.nativeElement.classList;e===as.NAV_LEVEL_1?t.add(as.NAV_CLASS_LEVEL_1):e===as.NAV_LEVEL_2&&t.add(as.NAV_CLASS_LEVEL_2)},Object.defineProperty(e.prototype,"level",{get:function(){return this._level},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveNavCodes",{get:function(){return as},enumerable:!1,configurable:!0}),e.prototype.open=function(){this.responsiveNavService.sendControlMessage(as.NAV_OPEN,this.level)},e.prototype.close=function(){this.responsiveNavService.sendControlMessage(as.NAV_CLOSE,this.level)},e.prototype.onMouseClick=function(e){for(var t=e,n=this.elementRef.nativeElement;t;){if(t===n)return;if(t.classList.contains("nav-link"))return void this.close();t=t.parentNode}},e.prototype.ngOnDestroy=function(){this.responsiveNavService.unregisterNav(this.level)},e}();ys.decorators=[{type:t.Directive,args:[{selector:"[clr-nav-level]"}]}],ys.ctorParameters=function(){return[{type:ls},{type:t.ElementRef}]},ys.propDecorators={_level:[{type:t.Input,args:["clr-nav-level"]}],onMouseClick:[{type:t.HostListener,args:["click",["$event.target"]]}]};var bs=[fs,ys,gs,hs],ms=function(){};ms.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,qo],declarations:[bs],exports:[bs]}]}];var vs=function(){};vs.decorators=[{type:t.Component,args:[{template:"\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n "}]}],vs.propDecorators={template:[{type:t.ViewChild,args:[t.TemplateRef]}]};var Cs=[vs],Ss=function(){};Ss.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[Cs],entryComponents:[Cs],exports:[Cs]}]}];var Is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t}(Mr);Is.decorators=[{type:t.Directive,args:[{selector:"clr-tabs"}]}];var Os,Es=function(e){function t(t,n,r,i){var o=this;if(!n)throw new Error("clrTabLink and clr-tab-content should only be used inside of a clr-tabs");return(o=e.call(this,t,n)||this).ifActive=i,o.id=r,o}return ne(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.ifActive.current===this.id},enumerable:!1,configurable:!0}),t}(Vr);Es.decorators=[{type:t.Directive,args:[{selector:"[clrTabLink], clr-tab-content"}]}],Es.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Is,decorators:[{type:t.Optional}]},{type:Number,decorators:[{type:t.Inject,args:[We]}]},{type:Ke}]},function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Os||(Os={}));var ws=function(){function e(){this._children=[],this.layout=Os.HORIZONTAL}return e.prototype.register=function(e){this._children.push(e)},Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeTab",{get:function(){return this.children.find((function(e){return e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflowTabs",{get:function(){return this.layout===Os.VERTICAL?[]:this.children.filter((function(e){return!0===e.tabLink.inOverflow}))},enumerable:!1,configurable:!0}),e.prototype.unregister=function(e){var t=this.children.indexOf(e);t>-1&&this.children.splice(t,1)},e}();ws.decorators=[{type:t.Injectable}];var _s=0,Ps=function(){function e(e,t,n,r){this.ifActiveService=e,this.id=t,this.ariaService=n,this.tabsService=r,this.tabContentId||(this.tabContentId="clr-tab-content-"+_s++)}return Object.defineProperty(e.prototype,"templateRef",{set:function(e){this.viewRef=this.tabsService.tabContentViewContainer.createEmbeddedView(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabelledBy",{get:function(){return this.ariaService.ariaLabelledBy},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabContentId",{get:function(){return this.ariaService.ariaControls},set:function(e){this.ariaService.ariaControls=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){var e=this.tabsService.tabContentViewContainer.indexOf(this.viewRef);e>-1&&this.tabsService.tabContentViewContainer.remove(e)},e}();Ps.decorators=[{type:t.Component,args:[{selector:"clr-tab-content",template:'\n <ng-template #tabContentProjectedRef>\n <section\n [id]="tabContentId"\n role="tabpanel"\n class="tab-content"\n [class.active]="active"\n [hidden]="!active"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-expanded]="active"\n [attr.aria-hidden]="!active"\n >\n <ng-content></ng-content>\n </section>\n </ng-template>\n '}]}],Ps.ctorParameters=function(){return[{type:Ke},{type:Number,decorators:[{type:t.Inject,args:[We]}]},{type:Dn},{type:ws}]},Ps.propDecorators={templateRef:[{type:t.ViewChild,args:["tabContentProjectedRef",{static:!0}]}],tabContentId:[{type:t.Input,args:["id"]}]};var Ds=0,Ts=new t.InjectionToken("TABS_ID");function xs(){return"clr-tabs-"+Ds++}var As={provide:Ts,useFactory:xs},ks=0,Rs=function(){function e(e,t,n,r,i,o,s,a){this.ifActiveService=e,this.id=t,this.ariaService=n,this.el=r,this.cfr=i,this.viewContainerRef=o,this.tabsService=s,this.tabsId=a,this.tabLinkId||(this.tabLinkId="clr-tab-link-"+ks++);var c=this.cfr.resolveComponentFactory(vs);this.templateRefContainer=this.viewContainerRef.createComponent(c,void 0,void 0,[[this.el.nativeElement]]).instance}return Object.defineProperty(e.prototype,"inOverflow",{get:function(){return this._inOverflow&&this.tabsService.layout!==Os.VERTICAL},set:function(e){this._inOverflow=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"addLinkClasses",{get:function(){return!this.inOverflow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaControls",{get:function(){return this.ariaService.ariaControls},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabLinkId",{get:function(){return this.ariaService.ariaLabelledBy},set:function(e){this.ariaService.ariaLabelledBy=e},enumerable:!1,configurable:!0}),e.prototype.activate=function(){this.ifActiveService.current=this.id},Object.defineProperty(e.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.active?0:-1},enumerable:!1,configurable:!0}),e}();Rs.decorators=[{type:t.Directive,args:[{selector:"[clrTabLink]",host:{"[attr.aria-hidden]":"false","[class.btn]":"true",role:"tab",type:"button"}}]}],Rs.ctorParameters=function(){return[{type:Ke},{type:Number,decorators:[{type:t.Inject,args:[We]}]},{type:Dn},{type:t.ElementRef},{type:t.ComponentFactoryResolver},{type:t.ViewContainerRef},{type:ws},{type:Number,decorators:[{type:t.Inject,args:[Ts]}]}]},Rs.propDecorators={inOverflow:[{type:t.Input,args:["clrTabLinkInOverflow"]}],addLinkClasses:[{type:t.HostBinding,args:["class.btn-link"]},{type:t.HostBinding,args:["class.nav-link"]}],ariaControls:[{type:t.HostBinding,args:["attr.aria-controls"]}],tabLinkId:[{type:t.HostBinding,args:["id"]},{type:t.Input,args:["id"]}],activate:[{type:t.HostListener,args:["click"]}],active:[{type:t.HostBinding,args:["class.active"]},{type:t.HostBinding,args:["attr.aria-selected"]}],tabindex:[{type:t.HostBinding,args:["attr.tabindex"]}]};var Ls=function(){function e(e,t,n){this.ifActiveService=e,this.id=t,this.tabsService=n,n.register(this)}return e.prototype.ngOnDestroy=function(){this.tabsService.unregister(this)},Object.defineProperty(e.prototype,"active",{get:function(){return this.ifActiveService.current===this.id},enumerable:!1,configurable:!0}),e}();Ls.decorators=[{type:t.Component,args:[{selector:"clr-tab",template:" <ng-content></ng-content> ",providers:[Ye,Dn]}]}],Ls.ctorParameters=function(){return[{type:Ke},{type:Number,decorators:[{type:t.Inject,args:[We]}]},{type:ws}]},Ls.propDecorators={tabLink:[{type:t.ContentChild,args:[Rs,{static:!0}]}],tabContent:[{type:t.ContentChild,args:[Ps,{static:!0}]}]};var js=function(){};js.decorators=[{type:t.Component,args:[{selector:"clr-tab-overflow-content",template:" <ng-content></ng-content> ",host:{"[class.dropdown-menu]":"true"}}]}];var Ns=function(){function e(e,t,n,r,i){this.ifActiveService=e,this.toggleService=t,this.tabsService=n,this.tabsId=r,this.commonStrings=i,this.subscriptions=[],this._tabLinkDirectives=[],this.tabLinkElements=[],this._mousedown=!1}return Object.defineProperty(e.prototype,"overflowPosition",{get:function(){return this._tabLinkDirectives.filter((function(e){return!e.inOverflow})).length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabContentViewContainer",{set:function(e){this.tabsService.tabContentViewContainer=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this.tabsService.layout},set:function(e){Object.keys(Os).map((function(e){return Os[e]})).indexOf(e)>=0&&(this.tabsService.layout=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabLinkDirectives",{get:function(){return this._tabLinkDirectives},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeTabInOverflow",{get:function(){return this.tabsService.overflowTabs.indexOf(this.tabsService.activeTab)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeTabPosition",{get:function(){return this._tabLinkDirectives.findIndex((function(e){return e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIds",{get:function(){return this.tabsService.children.map((function(e){return e.tabLink.tabLinkId})).join(" ")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCurrentInOverflow",{get:function(){return this.keyFocus.current>=this.overflowPosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVertical",{get:function(){return this.layout===Os.VERTICAL},enumerable:!1,configurable:!0}),e.prototype.toggleOverflowOnPosition=function(e){this.toggleService.open=e>=this.overflowPosition},Object.defineProperty(e.prototype,"tabOverflowEl",{set:function(e){this._tabOverflowEl=e&&e.nativeElement,this.toggleService.open&&e&&this.keyFocus.focusCurrent()},enumerable:!1,configurable:!0}),e.prototype.resetKeyFocusCurrentToActive=function(e){this.keyFocus.nativeElement.contains(e.relatedTarget)||this.keyFocus.current===this.activeTabPosition||(this.keyFocus.current=this.activeTabPosition)},e.prototype.toggleOverflowOnClick=function(){this.isCurrentInOverflow&&this.toggleService.open?this.keyFocus.moveTo(this.overflowPosition-1):this.keyFocus.moveTo(this.overflowPosition),this._mousedown=!1},e.prototype.openOverflowOnFocus=function(){this._mousedown||this.toggleService.open||this.keyFocus.moveTo(this.activeTabPosition)},e.prototype.closeOnFocusOut=function(e){this._tabOverflowEl.contains(e.relatedTarget)||!this.toggleService.open||this._mousedown||(this.toggleService.open=!1,this.tabLinkElements[this.activeTabPosition]===e.relatedTarget&&(this.keyFocus.current=this.activeTabPosition))},e.prototype.closeOnEscapeKey=function(){this.keyFocus.moveTo(this.overflowPosition-1)},e.prototype.closeOnOutsideClick=function(e,t){e.target===t||t.contains(e.target)||!this._tabOverflowEl.contains(e.target)&&this.isCurrentInOverflow&&this.keyFocus.moveTo(this.overflowPosition-1)},e.prototype.listenForTabLinkChanges=function(){var e=this;return this.tabs.changes.pipe(o.startWith(this.tabs.map((function(e){return e.tabLink})))).subscribe((function(){e._tabLinkDirectives=e.tabs.map((function(e){return e.tabLink})),e.tabLinkElements=e._tabLinkDirectives.map((function(e){return e.el.nativeElement}))}))},e.prototype.ngAfterContentInit=function(){this.subscriptions.push(this.listenForTabLinkChanges()),void 0===this.ifActiveService.current&&this.tabLinkDirectives[0]&&this.tabLinkDirectives[0].activate(),this.keyFocus.current=this.activeTabPosition},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){e.unsubscribe()}))},e}();Ns.decorators=[{type:t.Component,args:[{selector:"clr-tabs",template:'\n <ul\n class="nav"\n role="tablist"\n [attr.aria-owns]="tabIds"\n [clrKeyFocus]="tabLinkElements"\n clrDirection="both"\n (clrFocusChange)="toggleOverflowOnPosition($event)"\n (focusout)="resetKeyFocusCurrentToActive($event)"\n >\n \x3c!--tab links--\x3e\n <ng-container *ngFor="let link of tabLinkDirectives">\n <ng-container *ngIf="link.tabsId === tabsId && !link.inOverflow">\n <li role="presentation" class="nav-item">\n <ng-container [ngTemplateOutlet]="link.templateRefContainer.template"></ng-container>\n </li>\n </ng-container>\n </ng-container>\n <ng-container *ngIf="tabsService.overflowTabs.length > 0">\n <div class="tabs-overflow bottom-right" role="presentation" [class.open]="toggleService.open">\n <li role="application" class="nav-item">\n <button\n #tabOverflowTrigger\n class="btn btn-link nav-link dropdown-toggle"\n type="button"\n aria-hidden="true"\n [attr.tabindex]="activeTabInOverflow && !toggleService.open ? 0 : -1"\n [class.active]="activeTabInOverflow"\n [class.open]="toggleService.open"\n (mousedown)="_mousedown = true"\n (focus)="openOverflowOnFocus()"\n (click)="toggleOverflowOnClick()"\n [attr.title]="commonStrings.keys.more"\n >\n <cds-icon\n shape="ellipsis-horizontal"\n status="toggleService.open ? \'info\' : null"\n [attr.title]="commonStrings.keys.more"\n ></cds-icon>\n </button>\n </li>\n \x3c!--tab links in overflow menu--\x3e\n <clr-tab-overflow-content\n *ngIf="toggleService.open"\n (document:keydown.esc)="closeOnEscapeKey()"\n (document:click)="closeOnOutsideClick($event, tabOverflowTrigger)"\n (focusout)="closeOnFocusOut($event)"\n >\n <ng-container *ngFor="let link of tabLinkDirectives">\n <ng-container\n *ngIf="link.tabsId === tabsId && link.inOverflow"\n [ngTemplateOutlet]="link.templateRefContainer.template"\n >\n </ng-container>\n </ng-container>\n </clr-tab-overflow-content>\n </div>\n </ng-container>\n </ul>\n <ng-container #tabContentViewContainer></ng-container>\n ',providers:[Ke,y,ws,As]}]}],Ns.ctorParameters=function(){return[{type:Ke},{type:y},{type:ws},{type:Number,decorators:[{type:t.Inject,args:[Ts]}]},{type:V}]},Ns.propDecorators={tabContentViewContainer:[{type:t.ViewChild,args:["tabContentViewContainer",{static:!0,read:t.ViewContainerRef}]}],layout:[{type:t.Input,args:["clrLayout"]}],tabs:[{type:t.ContentChildren,args:[Ls]}],keyFocus:[{type:t.ViewChild,args:[Wn,{static:!0}]}],isVertical:[{type:t.HostBinding,args:["class.tabs-vertical"]}],tabOverflowEl:[{type:t.ViewChild,args:[js,{read:t.ElementRef}]}]};var Fs=[Ps,Ls,Ns,js,Rs,Is,Es],Ms=function(){n.ClarityIcons.addIcons(n.ellipsisHorizontalIcon)};Ms.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,Qe,h,Ss,Kn],declarations:[Fs],exports:[Fs,Qe]}]}],Ms.ctorParameters=function(){return[]};var Vs=function(){function e(){this.navGroupCount=0}return e.prototype.registerNavGroup=function(){this.navGroupCount++},e.prototype.unregisterNavGroup=function(){this.navGroupCount--},e}();Vs.decorators=[{type:t.Injectable}];var Bs=function(){function e(){this._icons=0}return Object.defineProperty(e.prototype,"hasIcons",{get:function(){return this._icons>0},enumerable:!1,configurable:!0}),e.prototype.registerIcon=function(){this._icons++},e.prototype.unregisterIcon=function(){this._icons--},e}();Bs.decorators=[{type:t.Injectable}];var zs=function(){function e(){this._animateOnCollapsed=new i.Subject,this._collapsedChanged=new i.Subject,this._collapsed=!1,this._collapsible=!1}return Object.defineProperty(e.prototype,"animateOnCollapsed",{get:function(){return this._animateOnCollapsed.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsedChanged",{get:function(){return this._collapsedChanged.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this._collapsed},set:function(e){e=!!e,this.collapsible&&this._collapsed!==e&&this.updateCollapseBehavior(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this._collapsible},set:function(e){e=!!e,this._collapsible!==e&&(!e&&this.collapsed&&this.updateCollapseBehavior(!1),this._collapsible=e)},enumerable:!1,configurable:!0}),e.prototype.updateCollapseBehavior=function(e){this._animateOnCollapsed.next(e),this._collapsed=e,this._collapsedChanged.next(e)},e}();zs.decorators=[{type:t.Injectable}];var Hs=function(){function e(e,n,r,i){var o=this;this._navService=e,this._navIconService=n,this._navGroupRegistrationService=r,this.commonStrings=i,this._collapsedChanged=new t.EventEmitter(!0),this._sub=this._navService.collapsedChanged.subscribe((function(e){o._collapsedChanged.emit(e)}))}return Object.defineProperty(e.prototype,"collapsible",{get:function(){return this._navService.collapsible},set:function(e){this._navService.collapsible=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this._navService.collapsed},set:function(e){this._navService.collapsed=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNavGroups",{get:function(){return this._navGroupRegistrationService.navGroupCount>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasIcons",{get:function(){return this._navIconService.hasIcons},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.collapsible?this.collapsed?"false":"true":null},enumerable:!1,configurable:!0}),e.prototype.toggleByButton=function(){this.collapsed=!this.collapsed},e.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},e}();Hs.decorators=[{type:t.Component,args:[{selector:"clr-vertical-nav",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<button\n type="button"\n class="nav-trigger"\n [class.on-collapse]="collapsed"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-label]="commonStrings.keys.verticalNavToggle"\n (click)="toggleByButton()"\n *ngIf="collapsible"\n>\n <cds-icon\n shape="angle-double"\n class="nav-trigger-icon"\n [attr.direction]="(this.collapsed) ? \'right\' : \'left\'"\n [attr.title]="(this.collapsed) ? commonStrings.keys.expand : commonStrings.keys.collapse"\n ></cds-icon>\n</button>\n\x3c!-- Click handler on .nav-content is bad but required :-( --\x3e\n<div class="nav-content">\n <ng-content></ng-content>\n <button\n (click)="collapsed = false"\n class="nav-btn"\n aria-hidden="true"\n tabindex="-1"\n [attr.aria-label]="commonStrings.keys.verticalNavToggle"\n *ngIf="collapsible && collapsed"\n ></button>\n</div>\n',providers:[zs,Bs,Vs],host:{class:"clr-vertical-nav","[class.is-collapsed]":"collapsed","[class.has-nav-groups]":"hasNavGroups","[class.has-icons]":"hasIcons"}}]}],Hs.ctorParameters=function(){return[{type:zs},{type:Bs},{type:Vs},{type:V}]},Hs.propDecorators={collapsible:[{type:t.Input,args:["clrVerticalNavCollapsible"]}],collapsed:[{type:t.Input,args:["clrVerticalNavCollapsed"]}],_collapsedChanged:[{type:t.Output,args:["clrVerticalNavCollapsedChange"]}]};var Gs=function(){function e(){this._expandChange=new i.Subject}return Object.defineProperty(e.prototype,"expandChange",{get:function(){return this._expandChange.asObservable()},enumerable:!1,configurable:!0}),e.prototype.expand=function(){this._expandChange.next(!0)},e}();Gs.decorators=[{type:t.Injectable}];var Ws="expanded",Us="collapsed",Ys=function(){function e(e,n,r,i,o){var s=this;this._itemExpand=e,this._navGroupRegistrationService=n,this._navGroupService=r,this._navService=i,this.commonStrings=o,this.wasExpanded=!1,this.expandedChange=new t.EventEmitter(!0),this._subscriptions=[],this._expandAnimationState=Us,this._navGroupRegistrationService.registerNavGroup(),this._subscriptions.push(this._itemExpand.expandChange.subscribe((function(e){e&&s.expandAnimationState===Us?(s._navService.collapsed&&(s._navService.collapsed=!1),s.expandAnimationState=Ws):e||s.expandAnimationState!==Ws||(s.expandAnimationState=Us)}))),this._subscriptions.push(this._navService.animateOnCollapsed.subscribe((function(e){e&&s.expanded?(s.wasExpanded=!0,s.expandAnimationState=Us):!e&&s.wasExpanded&&(s.expandGroup(),s.wasExpanded=!1)}))),this._subscriptions.push(this._navGroupService.expandChange.subscribe((function(e){e&&!s.expanded&&s.expandGroup()})))}return Object.defineProperty(e.prototype,"expanded",{get:function(){return this._itemExpand.expanded},set:function(e){this._itemExpand.expanded!==e&&(this._itemExpand.expanded=e,this.expandedChange.emit(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userExpandedInput",{set:function(e){e=!!e,this.expanded!==e&&this.toggleExpand()},enumerable:!1,configurable:!0}),e.prototype.expandGroup=function(){this.expanded=!0,this.expandAnimationState=Ws},e.prototype.collapseGroup=function(){this.expandAnimationState=Us},e.prototype.expandAnimationDone=function(e){e.toState===Us&&(this.expanded=!1)},Object.defineProperty(e.prototype,"expandAnimationState",{get:function(){return this._expandAnimationState},set:function(e){e!==this._expandAnimationState&&(this._expandAnimationState=e)},enumerable:!1,configurable:!0}),e.prototype.toggleExpand=function(){this.expanded?this.collapseGroup():(this._navService.collapsed&&(this._navService.collapsed=!1),this.expandGroup())},e.prototype.ngAfterContentInit=function(){this._navService.collapsed&&this.expanded&&(this.wasExpanded=!0,this.expandAnimationState=Us)},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._navGroupRegistrationService.unregisterNavGroup()},e}();Ys.decorators=[{type:t.Component,args:[{selector:"clr-vertical-nav-group",template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div class="nav-group-content">\n <ng-content select="[clrVerticalNavLink]"></ng-content>\n <button\n class="nav-group-trigger"\n type="button"\n [attr.aria-expanded]="expanded"\n [attr.aria-label]="commonStrings.keys.verticalNavGroupToggle"\n (click)="toggleExpand()"\n >\n <ng-content select="[clrVerticalNavIcon]"></ng-content>\n <div class="nav-group-text">\n <ng-content></ng-content>\n </div>\n <cds-icon\n shape="angle"\n class="nav-group-trigger-icon"\n [attr.direction]="(this.expanded) ? \'down\' : \'right\'"\n [attr.title]="(this.expanded) ? commonStrings.keys.collapse : commonStrings.keys.expand"\n >\n </cds-icon>\n </button>\n</div>\n\x3c!--TODO: This animation needs to be added to the clr-vertical-nav-group-children component--\x3e\n<div class="nav-group-children" [@clrExpand]="expandAnimationState" (@clrExpand.done)="expandAnimationDone($event)">\n <ng-content select="[clrIfExpanded], clr-vertical-nav-group-children"></ng-content>\n</div>\n',providers:[Xe,Gs],animations:[s.trigger("clrExpand",[s.state(Ws,s.style({height:"*"})),s.state(Us,s.style({height:0,"overflow-y":"hidden",visibility:"hidden"})),s.transition("expanded <=> collapsed",s.animate("0.2s ease-in-out"))])],host:{class:"nav-group"}}]}],Ys.ctorParameters=function(){return[{type:Xe},{type:Vs},{type:Gs},{type:zs},{type:V}]},Ys.propDecorators={expanded:[{type:t.HostBinding,args:["class.is-expanded"]}],userExpandedInput:[{type:t.Input,args:["clrVerticalNavGroupExpanded"]}],expandedChange:[{type:t.Output,args:["clrVerticalNavGroupExpandedChange"]}]};var Ks=function(){};Ks.decorators=[{type:t.Component,args:[{selector:"clr-vertical-nav-group-children",template:" <ng-content></ng-content> "}]}];var Zs=function(){function e(e){this._verticalNavIconService=e,this._verticalNavIconService.registerIcon()}return e.prototype.ngOnDestroy=function(){this._verticalNavIconService.unregisterIcon()},e}();Zs.decorators=[{type:t.Directive,args:[{selector:"[clrVerticalNavIcon]",host:{class:"nav-icon"}}]}],Zs.ctorParameters=function(){return[{type:Bs}]};var qs=function(){function e(e){this._navGroupService=e}return e.prototype.expandParentNavGroup=function(){this._navGroupService&&this._navGroupService.expand()},e}();qs.decorators=[{type:t.Component,args:[{selector:"[clrVerticalNavLink]",template:'\n <ng-content select="[clrVerticalNavIcon]"></ng-content>\n <span class="nav-text">\n <ng-content></ng-content>\n </span>\n ',host:{class:"nav-link"}}]}],qs.ctorParameters=function(){return[{type:Gs,decorators:[{type:t.Optional}]}]},qs.propDecorators={expandParentNavGroup:[{type:t.HostListener,args:["click"]}]};var Xs=[Hs,qs,Ys,Ks,Zs],$s=function(){n.ClarityIcons.addIcons(n.angleIcon,n.angleDoubleIcon)};$s.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,Qe,Or],declarations:[Xs],exports:[Xs,Qe,h,Or]}]}],$s.ctorParameters=function(){return[]};var Js=function(){};Js.decorators=[{type:t.NgModule,args:[{exports:[ds,ms,Ms,$s]}]}];var Qs=function(){function e(e){this._document=e}return e.prototype.stopScrolling=function(){this._document.body.classList.add("no-scrolling")},e.prototype.resumeScrolling=function(){this._document.body.classList.contains("no-scrolling")&&this._document.body.classList.remove("no-scrolling")},e}();Qs.decorators=[{type:t.Injectable}],Qs.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]};var ea=function(){function e(e,n,r){this._scrollingService=e,this.commonStrings=n,this.modalId=r,this._open=!1,this._openChanged=new t.EventEmitter(!1),this.closable=!0,this.staticBackdrop=!0,this.skipAnimation="false",this.bypassScrollService=!1,this.stopClose=!1,this.altClose=new t.EventEmitter(!1)}return e.prototype.ngOnChanges=function(e){!this.bypassScrollService&&e&&e.hasOwnProperty("_open")&&(e._open.currentValue?this._scrollingService.stopScrolling():this._scrollingService.resumeScrolling())},e.prototype.ngOnDestroy=function(){this._scrollingService.resumeScrolling()},e.prototype.open=function(){this._open||(this._open=!0,this._openChanged.emit(!0))},e.prototype.close=function(){this.stopClose?this.altClose.emit(!1):this.closable&&this._open&&(this._open=!1,this.focusTrap.setPreviousFocus())},e.prototype.fadeDone=function(e){"void"===e.toState&&this._openChanged.emit(!1)},e}();ea.decorators=[{type:t.Component,args:[{selector:"clr-modal",viewProviders:[Qs],template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<div clrFocusTrap class="modal" *ngIf="_open">\n \x3c!--fixme: revisit when ngClass works with exit animation--\x3e\n <div\n [@fadeDown]="skipAnimation"\n (@fadeDown.done)="fadeDone($event)"\n class="modal-dialog"\n [class.modal-sm]="size == \'sm\'"\n [class.modal-lg]="size == \'lg\'"\n [class.modal-xl]="size == \'xl\'"\n role="dialog"\n aria-modal="true"\n [attr.aria-hidden]="!_open"\n [attr.aria-labelledby]="modalId"\n >\n <div class="clr-sr-only">{{commonStrings.keys.modalContentStart}}</div>\n <div class="modal-content-wrapper">\n \x3c!-- only used in wizards --\x3e\n <ng-content select=".modal-nav"></ng-content>\n\n <div class="modal-content">\n <div class="modal-header--accessible">\n <div class="modal-title-wrapper" id="{{modalId}}" clrFocusOnViewInit>\n <ng-content select=".modal-title"></ng-content>\n </div>\n <button\n type="button"\n [attr.aria-label]="commonStrings.keys.close"\n class="close"\n *ngIf="closable"\n (click)="close()"\n >\n <cds-icon shape="window-close"></cds-icon>\n </button>\n </div>\n <ng-content select=".modal-body"></ng-content>\n <ng-content select=".modal-footer"></ng-content>\n </div>\n </div>\n <div class="clr-sr-only">{{commonStrings.keys.modalContentEnd}}</div>\n </div>\n\n <div [@fade] class="modal-backdrop" aria-hidden="true" (click)="staticBackdrop || close()"></div>\n</div>\n',animations:[s.trigger("fadeDown",[s.transition("* => false",[s.style({opacity:0,transform:"translate(0, -25%)"}),s.animate("0.2s ease-in-out")]),s.transition("false => *",[s.animate("0.2s ease-in-out",s.style({opacity:0,transform:"translate(0, -25%)"}))])]),s.trigger("fade",[s.transition("void => *",[s.style({opacity:0}),s.animate("0.2s ease-in-out",s.style({opacity:.85}))]),s.transition("* => void",[s.animate("0.2s ease-in-out",s.style({opacity:0}))])])],providers:[W],styles:["\n :host {\n display: none;\n }\n :host.open {\n display: inline;\n }\n "]}]}],ea.ctorParameters=function(){return[{type:Qs},{type:V},{type:String,decorators:[{type:t.Inject,args:[z]}]}]},ea.propDecorators={focusTrap:[{type:t.ViewChild,args:[tt]}],_open:[{type:t.HostBinding,args:["class.open"]},{type:t.Input,args:["clrModalOpen"]}],_openChanged:[{type:t.Output,args:["clrModalOpenChange"]}],closable:[{type:t.Input,args:["clrModalClosable"]}],size:[{type:t.Input,args:["clrModalSize"]}],staticBackdrop:[{type:t.Input,args:["clrModalStaticBackdrop"]}],skipAnimation:[{type:t.Input,args:["clrModalSkipAnimation"]}],bypassScrollService:[{type:t.Input,args:["clrModalOverrideScrollService"]}],stopClose:[{type:t.Input,args:["clrModalPreventClose"]}],altClose:[{type:t.Output,args:["clrModalAlternateClose"]}],close:[{type:t.HostListener,args:["body:keyup.escape"]}]};var ta=function(){function e(e,t,n){var r=this;this.tabindex="0",this.unlisteners=[],t.setAttribute(n.nativeElement,"tabindex",this.tabindex),e.runOutsideAngular((function(){r.unlisteners.push(t.listen(n.nativeElement,"mouseup",(function(){t.setAttribute(n.nativeElement,"tabindex",r.tabindex)})),t.listen(n.nativeElement,"mousedown",(function(){t.removeAttribute(n.nativeElement,"tabindex")})))}))}return e.prototype.ngOnDestroy=function(){for(;this.unlisteners.length;)this.unlisteners.pop()()},e}();ta.decorators=[{type:t.Directive,args:[{selector:".modal-body"}]}],ta.ctorParameters=function(){return[{type:t.NgZone},{type:t.Renderer2},{type:t.ElementRef}]};var na=[ea,ta],ra=function(){n.ClarityIcons.addIcons(n.windowCloseIcon)};ra.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,rt,Or],declarations:[na],exports:[na,h,Or]}]}],ra.ctorParameters=function(){return[]};var ia={"top-left":{anchorPoint:Mo.TOP_CENTER,popoverPoint:Mo.BOTTOM_RIGHT,offsetY:-10,offsetX:0},"top-middle":{anchorPoint:Mo.TOP_CENTER,popoverPoint:Mo.BOTTOM_CENTER,offsetY:-10,offsetX:0},"top-right":{anchorPoint:Mo.TOP_CENTER,popoverPoint:Mo.BOTTOM_LEFT,offsetY:-10,offsetX:0},"right-top":{anchorPoint:Mo.RIGHT_CENTER,popoverPoint:Mo.LEFT_BOTTOM,offsetY:2,offsetX:14},"right-middle":{anchorPoint:Mo.RIGHT_CENTER,popoverPoint:Mo.LEFT_CENTER,offsetY:6,offsetX:14},"right-bottom":{anchorPoint:Mo.RIGHT_CENTER,popoverPoint:Mo.LEFT_TOP,offsetY:-1,offsetX:14},"bottom-right":{anchorPoint:Mo.BOTTOM_CENTER,popoverPoint:Mo.TOP_LEFT,offsetY:9,offsetX:-1},"bottom-middle":{anchorPoint:Mo.BOTTOM_CENTER,popoverPoint:Mo.TOP_CENTER,offsetY:9,offsetX:12},"bottom-left":{anchorPoint:Mo.BOTTOM_CENTER,popoverPoint:Mo.TOP_RIGHT,offsetY:9,offsetX:0},"left-bottom":{anchorPoint:Mo.LEFT_CENTER,popoverPoint:Mo.RIGHT_TOP,offsetY:0,offsetX:-14},"left-middle":{anchorPoint:Mo.LEFT_CENTER,popoverPoint:Mo.RIGHT_CENTER,offsetY:4,offsetX:-14},"left-top":{anchorPoint:Mo.LEFT_CENTER,popoverPoint:Mo.RIGHT_BOTTOM,offsetY:0,offsetX:-14},default:{anchorPoint:Mo.RIGHT_CENTER,popoverPoint:Mo.LEFT_CENTER,offsetY:6,offsetX:14}},oa=["top-left","top-middle","top-right","right-top","right-middle","right-bottom","bottom-right","bottom-middle","bottom-left","left-bottom","left-middle","left-top"],sa=function(e){function t(t,n,r,i,o,s,a,c){var l=e.call(this,t,n)||this;if(l.commonStrings=r,l.signpostContentId=i,l.signpostIdService=o,l.signpostFocusManager=s,l.platformId=a,!n)throw new Error("clr-signpost-content should only be used inside of a clr-signpost");return l.position="right-middle",l.closeOnOutsideClick=!0,l.signpostIdService.setId(i),l.document=c,l}return ne(t,e),t.prototype.close=function(){this.toggleService.open=!1},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){this.renderer.removeClass(this.el.nativeElement,this.position),e&&oa.indexOf(e)>-1?this._position=e:this._position="right-middle",this.renderer.addClass(this.el.nativeElement,this.position);var t=ia[this.position];this.anchorPoint=t.anchorPoint,this.popoverPoint=t.popoverPoint,this.popoverOptions.offsetY=t.offsetY,this.popoverOptions.offsetX=t.offsetX},enumerable:!1,configurable:!0}),t.prototype.ngOnDestroy=function(){r.isPlatformBrowser(this.platformId)&&this.el.nativeElement.contains(this.document.activeElement)&&this.signpostFocusManager.focusTrigger()},t}(Uo);sa.decorators=[{type:t.Component,args:[{selector:"clr-signpost-content",template:'\n <div class="signpost-wrap">\n <div class="popover-pointer"></div>\n <div class="signpost-content-header">\n <button\n type="button"\n [attr.aria-label]="commonStrings.keys.signpostClose"\n class="signpost-action close"\n (click)="close()"\n [attr.aria-controls]="signpostContentId"\n >\n <cds-icon shape="window-close" [attr.title]="commonStrings.keys.close"></cds-icon>\n </button>\n </div>\n <div class="signpost-content-body">\n <ng-content></ng-content>\n </div>\n </div>\n ',host:{"[class.signpost-content]":"true","[id]":"signpostContentId"},providers:[W]}]}],sa.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef,decorators:[{type:t.Optional},{type:t.Inject,args:[Pn]}]},{type:V},{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:ti},{type:ei},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]}]},sa.propDecorators={position:[{type:t.Input,args:["clrPosition"]}]};var aa=[ri,sa,ni],ca=function(){n.ClarityIcons.addIcons(n.windowCloseIcon,n.infoCircleIcon)};ca.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,Or],declarations:[aa],exports:[aa,Qe]}]}],ca.ctorParameters=function(){return[]};var la=function(){function e(){this._id=new i.Subject}return e.prototype.updateId=function(e){this._id.next(e)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id.asObservable()},enumerable:!1,configurable:!0}),e}();la.decorators=[{type:t.Injectable}];var pa=function(){};pa.decorators=[{type:t.Component,args:[{selector:"clr-tooltip",template:" <ng-content></ng-content> ",host:{"[class.tooltip]":"true"},providers:[y,{provide:Pn,useExisting:t.ElementRef},W,la]}]}];var ua=["bottom-left","bottom-right","top-left","top-right","right","left"],da=["xs","sm","md","lg"],ha=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;if(o.uniqueId=r,o.tooltipIdService=i,!n)throw new Error("clr-tooltip-content should only be used inside of a clr-tooltip");return o.position="right",o.size="sm",o.updateId(r),o}return ne(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this.updateId(e||"")},enumerable:!1,configurable:!0}),t.prototype.updateId=function(e){this._id=e,this.tooltipIdService.updateId(e)},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){switch(this.renderer.removeClass(this.el.nativeElement,"tooltip-"+this.position),e&&ua.indexOf(e)>-1?this._position=e:this._position="right",this.renderer.addClass(this.el.nativeElement,"tooltip-"+this.position),e){case"top-right":this.anchorPoint=Mo.TOP_CENTER,this.popoverPoint=Mo.LEFT_BOTTOM;break;case"top-left":this.anchorPoint=Mo.TOP_CENTER,this.popoverPoint=Mo.RIGHT_BOTTOM;break;case"bottom-right":this.anchorPoint=Mo.BOTTOM_CENTER,this.popoverPoint=Mo.LEFT_TOP;break;case"bottom-left":this.anchorPoint=Mo.BOTTOM_CENTER,this.popoverPoint=Mo.RIGHT_TOP;break;case"right":this.anchorPoint=Mo.RIGHT_CENTER,this.popoverPoint=Mo.LEFT_TOP;break;case"left":this.anchorPoint=Mo.LEFT_CENTER,this.popoverPoint=Mo.RIGHT_TOP;break;default:this.anchorPoint=Mo.RIGHT_CENTER,this.popoverPoint=Mo.LEFT_TOP}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.el.nativeElement,"tooltip-"+this.size),e&&da.indexOf(e)>-1?this._size=e:this._size="sm",this.renderer.addClass(this.el.nativeElement,"tooltip-"+this.size)},enumerable:!1,configurable:!0}),t}(Uo);ha.decorators=[{type:t.Component,args:[{selector:"clr-tooltip-content",template:" <ng-content></ng-content> ",host:{"[class.tooltip-content]":"true","[style.opacity]":"1","[attr.role]":'"tooltip"',"[id]":"id"}}]}],ha.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef,decorators:[{type:t.Optional},{type:t.Inject,args:[Pn]}]},{type:String,decorators:[{type:t.Inject,args:[z]}]},{type:la}]},ha.propDecorators={id:[{type:t.Input}],position:[{type:t.Input,args:["clrPosition"]}],size:[{type:t.Input,args:["clrSize"]}]};var ga=function(){function e(e,t){var n=this;this.toggleService=e,this.tooltipIdService=t,this.subs=[],this.subs.push(this.tooltipIdService.id.subscribe((function(e){return n.ariaDescribedBy=e})))}return e.prototype.showTooltip=function(){this.toggleService.open=!0},e.prototype.hideTooltip=function(){this.toggleService.open=!1},e.prototype.ngOnDestroy=function(){this.subs.forEach((function(e){return e.unsubscribe()}))},e}();ga.decorators=[{type:t.Directive,args:[{selector:"[clrTooltipTrigger]",host:{tabindex:"0","[class.tooltip-trigger]":"true","[attr.aria-describedby]":"ariaDescribedBy","[attr.role]":'"button"'}}]}],ga.ctorParameters=function(){return[{type:y},{type:la}]},ga.propDecorators={showTooltip:[{type:t.HostListener,args:["mouseenter"]},{type:t.HostListener,args:["focus"]}],hideTooltip:[{type:t.HostListener,args:["mouseleave"]},{type:t.HostListener,args:["blur"]}]};var fa=[pa,ga,ha],ya=function(){};ya.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[fa],exports:[fa,Qe,h]}]}];var ba=function(){};ba.decorators=[{type:t.NgModule,args:[{exports:[qo,ca,ya]}]}];var ma=function(){function e(){this.buttonsReady=!1,this._previousBtnClicked=new i.Subject,this._nextBtnClicked=new i.Subject,this._dangerBtnClicked=new i.Subject,this._cancelBtnClicked=new i.Subject,this._finishBtnClicked=new i.Subject,this._customBtnClicked=new i.Subject}return Object.defineProperty(e.prototype,"previousBtnClicked",{get:function(){return this._previousBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextBtnClicked",{get:function(){return this._nextBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dangerBtnClicked",{get:function(){return this._dangerBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancelBtnClicked",{get:function(){return this._cancelBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finishBtnClicked",{get:function(){return this._finishBtnClicked.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"customBtnClicked",{get:function(){return this._customBtnClicked.asObservable()},enumerable:!1,configurable:!0}),e.prototype.buttonClicked=function(e){"previous"===e?this._previousBtnClicked.next():"next"===e?this._nextBtnClicked.next():"finish"===e?this._finishBtnClicked.next():"danger"===e?this._dangerBtnClicked.next():"cancel"===e?this._cancelBtnClicked.next():this._customBtnClicked.next(e)},e}();ma.decorators=[{type:t.Injectable}];var va=function(){function e(){this._pagesReset=new i.Subject}return Object.defineProperty(e.prototype,"pagesAsArray",{get:function(){return this.pages?this.pages.toArray():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pagesCount",{get:function(){return this.pages?this.pages.length:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"penultimatePage",{get:function(){var e=this.pagesCount;return e<2?null:this.pagesAsArray[e-2]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastPage",{get:function(){var e=this.pagesCount;return e<1?null:this.pagesAsArray[e-1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstPage",{get:function(){return this.pagesCount?this.pagesAsArray[0]:null},enumerable:!1,configurable:!0}),e.prototype.getPageById=function(e){var t=this.pages.filter((function(t){return e===t.id}));return this.checkResults(t,e)},e.prototype.getPageByIndex=function(e){var t=this.pagesCount,n=t>1?t-1:0;if(e<0)throw new Error("Cannot retrieve page with index of "+e);if(e>n)throw new Error("Page index is greater than length of pages array.");return this.pagesAsArray[e]},e.prototype.getPageIndex=function(e){var t=this.pagesAsArray.indexOf(e);if(t<0)throw new Error("Requested page cannot be found in collection of pages.");return t},e.prototype.checkResults=function(e,t){var n=e.length||0;if(n>1)throw new Error("More than one page has the requested id "+t+".");if(n<1)throw new Error("No page can be found with the id "+t+".");return e[0]},e.prototype.pageRange=function(e,t){var n=[];return e<0||t<0||null==e||isNaN(e)||null==t||isNaN(t)?[]:(t>this.pagesCount&&(t=this.pagesCount),n=this.pagesAsArray,t-e==0?[this.getPageByIndex(e)]:(t+=1,n.slice(e,t)))},e.prototype.getPageRangeFromPages=function(e,t){var n,r,i=this.getPageIndex(e),o=this.getPageIndex(t);return i<=o?(n=i,r=o):(n=o,r=i),this.pageRange(n,r)},e.prototype.getPreviousPage=function(e){var t=this.getPageIndex(e)-1;return t<0?null:this.getPageByIndex(t)},e.prototype.previousPageIsCompleted=function(e){if(!e)return!1;var t=this.getPreviousPage(e);return null===t||t.completed},e.prototype.getNextPage=function(e){var t=this.getPageIndex(e)+1;return t>=this.pagesAsArray.length?null:this.getPageByIndex(t)},e.prototype.getStepItemIdForPage=function(e){var t=e.id.split("-").reverse();return t[1]="step",t.reverse().join("-")},e.prototype.commitPage=function(e){var t=e.stopNext||e.preventDefault;e.completed=!0,t||e.onCommit.emit(e.id)},Object.defineProperty(e.prototype,"pagesReset",{get:function(){return this._pagesReset.asObservable()},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.pagesAsArray.forEach((function(e){e.completed=!1})),this._pagesReset.next(!0)},e.prototype.updateCompletedStates=function(){var e=this.findFirstIncompletePageIndex();e!==this.pagesAsArray.length-1&&this.pagesAsArray.forEach((function(t,n){n>e&&(t.completed=!1)}))},e.prototype.findFirstIncompletePageIndex=function(){var e=null;return this.pagesAsArray.forEach((function(t,n){null===e&&!1===t.completed&&(e=n)})),null===e&&(e=this.pagesCount-1),e},e.prototype.findFirstIncompletePage=function(){var e=this.findFirstIncompletePageIndex();return this.pagesAsArray[e]},e}();va.decorators=[{type:t.Injectable}];var Ca=function(){function e(e,t){var n=this;this.pageCollection=e,this.buttonService=t,this._currentChanged=new i.Subject,this.navServiceLoaded=!1,this.forceForwardNavigation=!1,this._movedToNextPage=new i.Subject,this._wizardFinished=new i.Subject,this._movedToPreviousPage=new i.Subject,this._cancelWizard=new i.Subject,this.wizardHasAltCancel=!1,this.wizardHasAltNext=!1,this.wizardStopNavigation=!1,this.wizardDisableStepnav=!1,this.previousButtonSubscription=this.buttonService.previousBtnClicked.subscribe((function(){var e=n.currentPage;n.currentPageIsFirst||e.previousStepDisabled||(e.previousButtonClicked.emit(e),e.preventDefault||n.previous())})),this.nextButtonSubscription=this.buttonService.nextBtnClicked.subscribe((function(){n.checkAndCommitCurrentPage("next")})),this.dangerButtonSubscription=this.buttonService.dangerBtnClicked.subscribe((function(){n.checkAndCommitCurrentPage("danger")})),this.finishButtonSubscription=this.buttonService.finishBtnClicked.subscribe((function(){n.checkAndCommitCurrentPage("finish")})),this.customButtonSubscription=this.buttonService.customBtnClicked.subscribe((function(e){n.wizardStopNavigation||n.currentPage.customButtonClicked.emit(e)})),this.cancelButtonSubscription=this.buttonService.cancelBtnClicked.subscribe((function(){n.wizardStopNavigation||(n.currentPage.preventDefault?n.currentPage.pageOnCancel.emit(n.currentPage):n.cancel())})),this.pagesResetSubscription=this.pageCollection.pagesReset.subscribe((function(){n.setFirstPageCurrent()}))}return e.prototype.ngOnDestroy=function(){this.previousButtonSubscription.unsubscribe(),this.nextButtonSubscription.unsubscribe(),this.dangerButtonSubscription.unsubscribe(),this.finishButtonSubscription.unsubscribe(),this.customButtonSubscription.unsubscribe(),this.cancelButtonSubscription.unsubscribe(),this.pagesResetSubscription.unsubscribe()},Object.defineProperty(e.prototype,"currentPageChanged",{get:function(){return this._currentChanged.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageTitle",{get:function(){return this.currentPage?this.currentPage.title:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageIsFirst",{get:function(){return this.pageCollection.firstPage===this.currentPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageIsLast",{get:function(){return this.pageCollection.lastPage===this.currentPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPage",{get:function(){return this._currentPage?this._currentPage:null},set:function(e){this._currentPage===e||this.wizardStopNavigation||(this._currentPage=e,e.onLoad.emit(e.id),this._currentChanged.next(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movedToNextPage",{get:function(){return this._movedToNextPage.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wizardFinished",{get:function(){return this._wizardFinished.asObservable()},enumerable:!1,configurable:!0}),e.prototype.next=function(){this.currentPageIsLast?this.checkAndCommitCurrentPage("finish"):this.checkAndCommitCurrentPage("next")},e.prototype.forceNext=function(){var e=this.currentPage,t=this.pageCollection.getNextPage(e);if(!t)throw new Error("The wizard has no next page to go to.");this.wizardStopNavigation||(e.completed||this.pageCollection.commitPage(e),this.currentPage=t)},e.prototype.checkAndCommitCurrentPage=function(e){var t=this.currentPage;if(t.readyToComplete&&!this.wizardStopNavigation){var n=this.currentPageIsLast,r="next"===e,i="danger"===e,o=i&&!n,s="finish"===e||i&&n;if(!s||n)if(t.primaryButtonClicked.emit(e),s?t.finishButtonClicked.emit(t):i?t.dangerButtonClicked.emit():r&&t.nextButtonClicked.emit(),t.stopNext||t.preventDefault)t.onCommit.emit(t.id);else{if(s&&(this.wizardHasAltNext||this.pageCollection.commitPage(t),this._wizardFinished.next()),this.wizardHasAltNext)return this.pageCollection.commitPage(t),void((r||o)&&this._movedToNextPage.next(!0));(r||o)&&this.forceNext(),this.wizardHasAltNext||this.wizardStopNavigation||this._movedToNextPage.next(!0)}}},e.prototype.finish=function(){this.checkAndCommitCurrentPage("finish")},Object.defineProperty(e.prototype,"movedToPreviousPage",{get:function(){return this._movedToPreviousPage.asObservable()},enumerable:!1,configurable:!0}),e.prototype.previous=function(){if(!this.currentPageIsFirst&&!this.wizardStopNavigation){var e=this.pageCollection.getPreviousPage(this.currentPage);e&&(this._movedToPreviousPage.next(!0),this.forceForwardNavigation&&(this.currentPage.completed=!1),this.currentPage=e)}},Object.defineProperty(e.prototype,"notifyWizardCancel",{get:function(){return this._cancelWizard.asObservable()},enumerable:!1,configurable:!0}),e.prototype.cancel=function(){this._cancelWizard.next()},e.prototype.goTo=function(e,t){void 0===t&&(t=!1);var n=this.pageCollection,r="string"==typeof e?n.getPageById(e):e,i=this.currentPage;if(r!==i&&!this.wizardStopNavigation){var o=n.getPageIndex(i),s=n.getPageIndex(r)>o,a=n.getPageRangeFromPages(this.currentPage,r);(t||this.canGoTo(a))&&(s&&t?a.forEach((function(e){e!==r&&(e.completed=!0)})):!s&&this.forceForwardNavigation&&a.forEach((function(e){e.completed=!1})),this.currentPage=r)}},e.prototype.canGoTo=function(e){var t,n=!0,r=this.pageCollection;return!(!e||e.length<1)&&(e.forEach((function(e){if(n&&!e.completed){var i=r.getPageIndex(e)>0?r.getPreviousPage(e):null;t=null===i||!0===i.completed,e.current||t||(n=!1)}})),n)},e.prototype.setLastEnabledPageCurrent=function(){var e=this.pageCollection.pagesAsArray,t=null;e.forEach((function(e,n){e.completed&&(t=n)})),null===t?t=0:t+1<e.length&&(t+=1),this.currentPage=e[t]},e.prototype.setFirstPageCurrent=function(){this.currentPage=this.pageCollection.pagesAsArray[0]},e.prototype.updateNavigation=function(){var e;this.pageCollection.updateCompletedStates(),this.pageCollection.pagesAsArray.indexOf(this.currentPage)<0&&(e=this.pageCollection.findFirstIncompletePage(),this.currentPage=e)},e}();Ca.decorators=[{type:t.Injectable}],Ca.ctorParameters=function(){return[{type:va},{type:ma}]};var Sa=function(){function e(e){this.navService=e}return Object.defineProperty(e.prototype,"wizardHasHeaderActions",{get:function(){var e=this.wizardHeaderActions;return!!e&&e.toArray().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageHasHeaderActions",{get:function(){return!!this.navService.currentPage&&this.navService.currentPage.hasHeaderActions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showWizardHeaderActions",{get:function(){return!this.currentPageHasHeaderActions&&this.wizardHasHeaderActions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayHeaderActionsWrapper",{get:function(){return this.currentPageHasHeaderActions||this.wizardHasHeaderActions},enumerable:!1,configurable:!0}),e}();Sa.decorators=[{type:t.Injectable}],Sa.ctorParameters=function(){return[{type:Ca}]};var Ia=0,Oa=function(){function e(){this.title="",this._id=(Ia++).toString(),this.disabled=!1,this.headerActionClicked=new t.EventEmitter(!1)}return Object.defineProperty(e.prototype,"id",{get:function(){return"clr-wizard-header-action-"+this._id},enumerable:!1,configurable:!0}),e.prototype.click=function(){this.disabled||this.headerActionClicked.emit(this._id)},e}();Oa.decorators=[{type:t.Component,args:[{selector:"clr-wizard-header-action",template:'\n <button\n type="button"\n class="btn clr-wizard-header-action btn-link"\n [id]="id"\n [class.disabled]="disabled"\n (click)="click()"\n [title]="title"\n >\n <ng-content></ng-content>\n </button>\n ',host:{class:"clr-wizard-header-action-wrapper"}}]}],Oa.propDecorators={title:[{type:t.Input,args:["title"]}],_id:[{type:t.Input,args:["id"]}],disabled:[{type:t.Input,args:["clrWizardHeaderActionDisabled"]}],headerActionClicked:[{type:t.Output,args:["actionClicked"]}]};var Ea=function(e){this.pageButtonsTemplateRef=e};Ea.decorators=[{type:t.Directive,args:[{selector:"[clrPageButtons]"}]}],Ea.ctorParameters=function(){return[{type:t.TemplateRef}]};var wa=function(e){this.pageHeaderActionsTemplateRef=e};wa.decorators=[{type:t.Directive,args:[{selector:"[clrPageHeaderActions]"}]}],wa.ctorParameters=function(){return[{type:t.TemplateRef}]};var _a=function(e){this.pageNavTitleTemplateRef=e};_a.decorators=[{type:t.Directive,args:[{selector:"[clrPageNavTitle]"}]}],_a.ctorParameters=function(){return[{type:t.TemplateRef}]};var Pa=function(e){this.pageTitleTemplateRef=e};Pa.decorators=[{type:t.Directive,args:[{selector:"[clrPageTitle]"}]}],Pa.ctorParameters=function(){return[{type:t.TemplateRef}]};var Da=0,Ta=function(){function e(e,n,r){this.navService=e,this.pageCollection=n,this.buttonService=r,this._nextStepDisabled=!1,this.nextStepDisabledChange=new t.EventEmitter,this._previousStepDisabled=!1,this.previousStepDisabledChange=new t.EventEmitter,this._hasError=!1,this.preventDefault=!1,this._stopCancel=!1,this.stopCancelChange=new t.EventEmitter,this._stopNext=!1,this.onCommit=new t.EventEmitter(!1),this.onLoad=new t.EventEmitter,this.pageOnCancel=new t.EventEmitter,this.finishButtonClicked=new t.EventEmitter,this.previousButtonClicked=new t.EventEmitter,this.nextButtonClicked=new t.EventEmitter,this.dangerButtonClicked=new t.EventEmitter,this.primaryButtonClicked=new t.EventEmitter,this.customButtonClicked=new t.EventEmitter,this._id=(Da++).toString(),this._complete=!1}return Object.defineProperty(e.prototype,"nextStepDisabled",{get:function(){return this._nextStepDisabled},set:function(e){var t=!!e;t!==this._nextStepDisabled&&(this._nextStepDisabled=t,this.nextStepDisabledChange.emit(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousStepDisabled",{get:function(){return this._previousStepDisabled},set:function(e){var t=!!e;t!==this._previousStepDisabled&&(this._previousStepDisabled=t,this.previousStepDisabledChange.emit(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasError",{get:function(){return this._hasError},set:function(e){var t=!!e;t!==this._hasError&&(this._hasError=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopCancel",{get:function(){return this._stopCancel},set:function(e){var t=!!e;t!==this._stopCancel&&(this._stopCancel=t,this.stopCancelChange.emit(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopNext",{get:function(){return this._stopNext},set:function(e){var t=!!e;t!==this._stopNext&&(this._stopNext=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return(!this._id&&0!==this._id||this._id<0)&&(this._id=(Da++).toString()),"clr-wizard-page-"+this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readyToComplete",{get:function(){return!this.nextStepDisabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"completed",{get:function(){return this._complete&&this.readyToComplete},set:function(e){this._complete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.navService.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.current||this.completed||this.previousCompleted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousCompleted",{get:function(){var e=this.pageCollection.getPreviousPage(this);return!e||e.completed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.pageTitle.pageTitleTemplateRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navTitle",{get:function(){return this.pageNavTitle?this.pageNavTitle.pageNavTitleTemplateRef:this.pageTitle.pageTitleTemplateRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerActions",{get:function(){if(this._headerActions)return this._headerActions.pageHeaderActionsTemplateRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasHeaderActions",{get:function(){return!!this._headerActions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buttons",{get:function(){if(this._buttons)return this._buttons.pageButtonsTemplateRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasButtons",{get:function(){return!!this._buttons},enumerable:!1,configurable:!0}),e.prototype.makeCurrent=function(){this.navService.currentPage=this},e.prototype.ngOnInit=function(){var e=this.navService;e.currentPage||e.navServiceLoaded||(this.makeCurrent(),this.navService.navServiceLoaded=!0)},Object.defineProperty(e.prototype,"stepItemId",{get:function(){return this.pageCollection.getStepItemIdForPage(this)},enumerable:!1,configurable:!0}),e}();Ta.decorators=[{type:t.Component,args:[{selector:"clr-wizard-page",template:"<ng-content></ng-content>",host:{"[id]":"id","[attr.aria-hidden]":"!current","[attr.aria-labelledby]":"stepItemId","[class.active]":"current","[class.clr-wizard-page]":"true"}}]}],Ta.ctorParameters=function(){return[{type:Ca},{type:va},{type:ma}]},Ta.propDecorators={pageTitle:[{type:t.ContentChild,args:[Pa,{static:!0}]}],pageNavTitle:[{type:t.ContentChild,args:[_a,{static:!0}]}],_buttons:[{type:t.ContentChild,args:[Ea,{static:!0}]}],_headerActions:[{type:t.ContentChild,args:[wa,{static:!0}]}],nextStepDisabled:[{type:t.Input,args:["clrWizardPageNextDisabled"]}],nextStepDisabledChange:[{type:t.Output,args:["clrWizardPageNextDisabledChange"]}],previousStepDisabled:[{type:t.Input,args:["clrWizardPagePreviousDisabled"]}],previousStepDisabledChange:[{type:t.Output,args:["clrWizardPagePreviousDisabledChange"]}],hasError:[{type:t.Input,args:["clrWizardPageHasError"]}],preventDefault:[{type:t.Input,args:["clrWizardPagePreventDefault"]}],stopCancel:[{type:t.Input,args:["clrWizardPagePreventDefaultCancel"]}],stopCancelChange:[{type:t.Output,args:["clrWizardPagePreventDefaultCancelChange"]}],stopNext:[{type:t.Input,args:["clrWizardPagePreventDefaultNext"]}],onCommit:[{type:t.Output,args:["clrWizardPageOnCommit"]}],onLoad:[{type:t.Output,args:["clrWizardPageOnLoad"]}],pageOnCancel:[{type:t.Output,args:["clrWizardPageOnCancel"]}],finishButtonClicked:[{type:t.Output,args:["clrWizardPageFinish"]}],previousButtonClicked:[{type:t.Output,args:["clrWizardPagePrevious"]}],nextButtonClicked:[{type:t.Output,args:["clrWizardPageNext"]}],dangerButtonClicked:[{type:t.Output,args:["clrWizardPageDanger"]}],primaryButtonClicked:[{type:t.Output,args:["clrWizardPagePrimary"]}],customButtonClicked:[{type:t.Output,args:["clrWizardPageCustomButton"]}],_id:[{type:t.Input,args:["id"]}]};var xa=function(){function e(e,n,r,i,o,s,a){this.platformId=e,this.navService=n,this.pageCollection=r,this.buttonService=i,this.headerActionService=o,this.elementRef=s,this.size="xl",this.closable=!0,this._forceForward=!1,this._open=!1,this._stopNext=!1,this._stopCancel=!1,this._stopNavigation=!1,this._disableStepnav=!1,this._stopModalAnimations=!1,this._openChanged=new t.EventEmitter(!1),this.onCancel=new t.EventEmitter(!1),this.wizardFinished=new t.EventEmitter(!1),this.onReset=new t.EventEmitter(!1),this.currentPageChanged=new t.EventEmitter(!1),this.onMoveNext=new t.EventEmitter(!1),this.onMovePrevious=new t.EventEmitter(!1),this.subscriptions=[],this.subscriptions.push(this.listenForNextPageChanges(),this.listenForPreviousPageChanges(),this.listenForCancelChanges(),this.listenForFinishedChanges(),this.listenForPageChanges()),this.differ=a.find([]).create(null)}return Object.defineProperty(e.prototype,"forceForward",{get:function(){return this._forceForward},set:function(e){this._forceForward=!!e,this.navService.forceForwardNavigation=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrWizardOpen",{set:function(e){e&&(this.buttonService.buttonsReady=!0),this._open=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopNext",{get:function(){return this._stopNext},set:function(e){this._stopNext=!!e,this.navService.wizardHasAltNext=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopCancel",{get:function(){return this._stopCancel},set:function(e){this._stopCancel=!!e,this.navService.wizardHasAltCancel=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopNavigation",{get:function(){return this._stopNavigation},set:function(e){this._stopNavigation=!!e,this.navService.wizardStopNavigation=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disableStepnav",{get:function(){return this._disableStepnav},set:function(e){this._disableStepnav=!!e,this.navService.wizardDisableStepnav=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopModalAnimations",{get:function(){return this._stopModalAnimations?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.navService.currentPage},set:function(e){this.navService.goTo(e,!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLast",{get:function(){return this.navService.currentPageIsLast},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirst",{get:function(){return this.navService.currentPageIsFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStatic",{get:function(){return this.elementRef.nativeElement.classList.contains("clr-wizard--inline")},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.pageCollection.pages=this.pages,this.headerActionService.wizardHeaderActions=this.headerActions,this.initializeButtons()},e.prototype.ngDoCheck=function(){this.updateNavOnPageChanges()},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.finish=function(e){void 0===e&&(e=!0),e?this.forceFinish():this.navService.finish()},e.prototype.forceFinish=function(){this.stopNavigation||this.close()},e.prototype.open=function(){this._open=!0,this.currentPage||this.navService.setFirstPageCurrent(),this.buttonService.buttonsReady=!0,this._openChanged.emit(!0)},e.prototype.close=function(){this.stopNavigation||(this._open=!1,this._openChanged.emit(!1))},e.prototype.toggle=function(e){e?this.open():this.close()},e.prototype.previous=function(){this.navService.previous()},e.prototype.next=function(e){void 0===e&&(e=!0),e?this.forceNext():this.navService.next()},e.prototype.forceNext=function(){this.navService.forceNext()},e.prototype.cancel=function(){this.navService.cancel()},e.prototype.modalCancel=function(){this.closable&&this.checkAndCancel()},e.prototype.checkAndCancel=function(){var e=this.currentPage,t=e.stopCancel||e.preventDefault;this.stopNavigation||(e.pageOnCancel.emit(),t||this.onCancel.emit(),this.stopCancel||t||this.close())},e.prototype.goTo=function(e){e&&this.navService.goTo(e)},e.prototype.reset=function(){this.pageCollection.reset(),this.onReset.next()},e.prototype.listenForNextPageChanges=function(){var e=this;return this.navService.movedToNextPage.pipe(o.filter((function(){return r.isPlatformBrowser(e.platformId)}))).subscribe((function(){e.onMoveNext.emit(),e.wizardTitle.nativeElement.focus()}))},e.prototype.listenForPreviousPageChanges=function(){var e=this;return this.navService.movedToPreviousPage.pipe(o.filter((function(){return r.isPlatformBrowser(e.platformId)}))).subscribe((function(){e.onMovePrevious.emit(),e.wizardTitle.nativeElement.focus()}))},e.prototype.listenForCancelChanges=function(){var e=this;return this.navService.notifyWizardCancel.subscribe((function(){return e.checkAndCancel()}))},e.prototype.listenForFinishedChanges=function(){var e=this;return this.navService.wizardFinished.subscribe((function(){return e.emitWizardFinished()}))},e.prototype.listenForPageChanges=function(){var e=this;return this.navService.currentPageChanged.subscribe((function(){return e.currentPageChanged.emit()}))},e.prototype.updateNavOnPageChanges=function(){var e=this,t=this.differ.diff(this.pages);t&&(t.forEachAddedItem((function(){return e.navService.updateNavigation()})),t.forEachRemovedItem((function(){return e.navService.updateNavigation()})))},e.prototype.initializeButtons=function(){this._open&&(this.buttonService.buttonsReady=!0)},e.prototype.emitWizardFinished=function(){this.stopNext||this.forceFinish(),this.wizardFinished.emit()},e}();xa.decorators=[{type:t.Component,args:[{selector:"clr-wizard",providers:[Ca,va,ma,Sa],template:'\x3c!--\n ~ Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n --\x3e\n\n<clr-modal\n [clrModalOpen]="_open"\n [clrModalSize]="size"\n [clrModalClosable]="closable"\n [clrModalStaticBackdrop]="true"\n [clrModalSkipAnimation]="stopModalAnimations"\n [clrModalOverrideScrollService]="isStatic"\n [clrModalPreventClose]="true"\n (clrModalAlternateClose)="modalCancel()"\n>\n <nav class="modal-nav clr-wizard-stepnav-wrapper">\n <h1 class="clr-wizard-title"><ng-content select="clr-wizard-title"></ng-content></h1>\n <clr-wizard-stepnav></clr-wizard-stepnav>\n </nav>\n\n <h2 class="modal-title">\n <span tabindex="-1" #wizardTitle class="modal-title-text">\n <ng-template [ngTemplateOutlet]="navService.currentPageTitle"></ng-template>\n </span>\n\n <div class="modal-header-actions-wrapper" *ngIf="headerActionService.displayHeaderActionsWrapper">\n <div *ngIf="headerActionService.showWizardHeaderActions">\n <ng-content select="clr-wizard-header-action"></ng-content>\n </div>\n <div *ngIf="headerActionService.currentPageHasHeaderActions">\n <ng-template [ngTemplateOutlet]="navService.currentPage.headerActions"></ng-template>\n </div>\n </div>\n </h2>\n\n <div class="modal-body">\n <main clr-wizard-pages-wrapper class="clr-wizard-content">\n <ng-content></ng-content>\n </main>\n </div>\n <div class="modal-footer clr-wizard-footer">\n <div class="clr-wizard-footer-buttons">\n <div\n *ngIf="navService.currentPage && !navService.currentPage.hasButtons"\n class="clr-wizard-footer-buttons-wrapper"\n >\n <ng-content select="clr-wizard-button"></ng-content>\n </div>\n <div\n *ngIf="navService.currentPage && navService.currentPage.hasButtons"\n class="clr-wizard-footer-buttons-wrapper"\n >\n <ng-template [ngTemplateOutlet]="navService.currentPage.buttons"></ng-template>\n </div>\n </div>\n </div>\n</clr-modal>\n',host:{"[class.clr-wizard]":"true","[class.wizard-md]":"size == 'md'","[class.wizard-lg]":"size == 'lg'","[class.wizard-xl]":"size == 'xl'","[class.lastPage]":"navService.currentPageIsLast"}}]}],xa.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:Ca},{type:va},{type:ma},{type:Sa},{type:t.ElementRef},{type:t.IterableDiffers}]},xa.propDecorators={size:[{type:t.Input,args:["clrWizardSize"]}],closable:[{type:t.Input,args:["clrWizardClosable"]}],forceForward:[{type:t.Input,args:["clrWizardForceForwardNavigation"]}],clrWizardOpen:[{type:t.Input,args:["clrWizardOpen"]}],stopNext:[{type:t.Input,args:["clrWizardPreventDefaultNext"]}],stopCancel:[{type:t.Input,args:["clrWizardPreventDefaultCancel"]}],stopNavigation:[{type:t.Input,args:["clrWizardPreventNavigation"]}],disableStepnav:[{type:t.Input,args:["clrWizardDisableStepnav"]}],_stopModalAnimations:[{type:t.Input,args:["clrWizardPreventModalAnimation"]}],_openChanged:[{type:t.Output,args:["clrWizardOpenChange"]}],onCancel:[{type:t.Output,args:["clrWizardOnCancel"]}],wizardFinished:[{type:t.Output,args:["clrWizardOnFinish"]}],onReset:[{type:t.Output,args:["clrWizardOnReset"]}],currentPageChanged:[{type:t.Output,args:["clrWizardCurrentPageChanged"]}],onMoveNext:[{type:t.Output,args:["clrWizardOnNext"]}],onMovePrevious:[{type:t.Output,args:["clrWizardOnPrevious"]}],pages:[{type:t.ContentChildren,args:[Ta,{descendants:!0}]}],headerActions:[{type:t.ContentChildren,args:[Oa]}],wizardTitle:[{type:t.ViewChild,args:["wizardTitle"]}]};var Aa={cancel:"cancel",previous:"previous",next:"next",finish:"finish",danger:"danger"},ka={cancel:"custom-cancel",previous:"custom-previous",next:"custom-next",finish:"custom-finish",danger:"custom-danger"},Ra=function(){function e(e,n){this.navService=e,this.buttonService=n,this.type="",this.disabled=!1,this.hidden=!1,this.wasClicked=new t.EventEmitter(!1)}return e.prototype.checkDefaultAndCustomType=function(e,t){return void 0===e&&(e=""),Aa[t]===e||ka[t]===e},Object.defineProperty(e.prototype,"isCancel",{get:function(){return this.checkDefaultAndCustomType(this.type,"cancel")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNext",{get:function(){return this.checkDefaultAndCustomType(this.type,"next")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPrevious",{get:function(){return this.checkDefaultAndCustomType(this.type,"previous")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFinish",{get:function(){return this.checkDefaultAndCustomType(this.type,"finish")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDanger",{get:function(){return this.checkDefaultAndCustomType(this.type,"danger")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPrimaryAction",{get:function(){return this.isNext||this.isDanger||this.isFinish},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_disabledAttribute",{get:function(){return this.isDisabled?"":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){var e=!0,t=this.navService,n=this.navService.currentPage;return!!this.buttonService.buttonsReady&&(!(!this.disabled&&!t.wizardStopNavigation&&n)||!this.isCancel&&(this.isPrevious&&(t.currentPageIsFirst||n.previousStepDisabled)||this.isDanger&&!n.readyToComplete?e:!this.isNext||!t.currentPageIsLast&&n.readyToComplete?!(!this.isFinish||t.currentPageIsLast&&n.readyToComplete)&&e:e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){var e=!0,t=this.navService;return!!this.buttonService.buttonsReady&&(!!this.hidden||!this.isCancel&&((this.isPrevious&&t.currentPageIsFirst||this.isNext&&t.currentPageIsLast||!(!this.isFinish||t.currentPageIsLast))&&e))},enumerable:!1,configurable:!0}),e.prototype.click=function(){this.isDisabled||(this.wasClicked.emit(this.type),this.buttonService.buttonClicked(this.type))},e}();Ra.decorators=[{type:t.Component,args:[{selector:"clr-wizard-button",template:'\n <button\n type="button"\n class="btn clr-wizard-btn"\n [class.btn-link]="isCancel"\n [class.clr-wizard-btn--tertiary]="isCancel"\n [class.btn-outline]="isPrevious"\n [class.clr-wizard-btn--secondary]="isPrevious"\n [class.btn-primary]="isPrimaryAction"\n [class.clr-wizard-btn--primary]="isPrimaryAction"\n [class.btn-success]="isFinish"\n [class.btn-danger]="isDanger"\n [class.disabled]="isDisabled"\n [attr.disabled]="_disabledAttribute"\n (click)="click()"\n >\n <ng-content></ng-content>\n </button>\n ',host:{class:"clr-wizard-btn-wrapper","[attr.aria-hidden]":"isHidden"}}]}],Ra.ctorParameters=function(){return[{type:Ca},{type:ma}]},Ra.propDecorators={type:[{type:t.Input,args:["type"]}],disabled:[{type:t.Input,args:["clrWizardButtonDisabled"]}],hidden:[{type:t.Input,args:["clrWizardButtonHidden"]}],wasClicked:[{type:t.Output,args:["clrWizardButtonClicked"]}]};var La=function(){};La.decorators=[{type:t.Directive,args:[{selector:"clr-wizard-title, clr-wizard-pagetitle"}]}];var ja=function(e){this.pageService=e};ja.decorators=[{type:t.Component,args:[{selector:"clr-wizard-stepnav",template:'\n <div class="clr-wizard-stepnav-list">\n <div\n *ngFor="let page of pageService.pages; let i = index"\n clr-wizard-stepnav-item\n [page]="page"\n class="clr-wizard-stepnav-item"\n >\n {{ i + 1 }}\n </div>\n </div>\n ',host:{class:"clr-wizard-stepnav"}}]}],ja.ctorParameters=function(){return[{type:va}]};var Na=function(){function e(e,t){this.navService=e,this.pageCollection=t}return e.prototype.pageGuard=function(){if(!this.page)throw new Error("Wizard stepnav item is not associated with a wizard page.")},Object.defineProperty(e.prototype,"id",{get:function(){return this.pageGuard(),this.pageCollection.getStepItemIdForPage(this.page)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stepAriaCurrent",{get:function(){return this.isCurrent&&"step"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.pageGuard(),this.page.disabled||this.navService.wizardStopNavigation||this.navService.wizardDisableStepnav},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCurrent",{get:function(){return this.pageGuard(),this.page.current},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.pageGuard(),this.page.completed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasError",{get:function(){return this.pageGuard(),this.page.hasError&&this.isComplete},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canNavigate",{get:function(){return this.pageGuard(),this.pageCollection.previousPageIsCompleted(this.page)},enumerable:!1,configurable:!0}),e.prototype.click=function(){this.pageGuard(),this.isDisabled||this.isCurrent||this.navService.goTo(this.page)},e}();Na.decorators=[{type:t.Component,args:[{selector:"[clr-wizard-stepnav-item]",template:'\n <button\n type="button"\n class="btn btn-link clr-wizard-stepnav-link"\n (click)="click()"\n [attr.disabled]="isDisabled ? \'\' : null"\n >\n <span class="clr-wizard-stepnav-link-suffix">\n <cds-icon\n shape="error-standard"\n status="danger"\n class="clr-wizard-stepnav-item-error-icon"\n *ngIf="hasError"\n ></cds-icon>\n <ng-content *ngIf="!hasError"></ng-content>\n </span>\n <span class="clr-wizard-stepnav-link-title">\n <ng-template [ngTemplateOutlet]="page.navTitle"></ng-template>\n </span>\n </button>\n ',host:{"[id]":"id","[attr.aria-current]":"stepAriaCurrent","[attr.aria-controls]":"id","[class.clr-nav-link]":"true","[class.nav-item]":"true","[class.active]":"isCurrent","[class.disabled]":"isDisabled","[class.no-click]":"!canNavigate","[class.complete]":"isComplete","[class.error]":"hasError"}}]}],Na.ctorParameters=function(){return[{type:Ca},{type:va}]},Na.propDecorators={page:[{type:t.Input,args:["page"]}]};var Fa,Ma,Va=[xa,Ta,ja,Na,Ra,Oa,La,Pa,_a,Ea,wa],Ba=function(){n.ClarityIcons.addIcons(n.errorStandardIcon)};Ba.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,ra,os],declarations:[Va],exports:[Va]}]}],Ba.ctorParameters=function(){return[]},function(e){e.Default="default",e.Multi="multi"}(Fa||(Fa={})),function(e){e.Inactive="inactive",e.Error="error",e.Complete="complete"}(Ma||(Ma={}));var za=0,Ha=function(e,t){this.id=e,this.accordionId=t,this.status=Ma.Inactive,this.index=null,this.disabled=!1,this.open=!1,this.templateId=this.id+"-"+this.accordionId},Ga=function(){function e(){this.strategy=Fa.Default,this.accordionCount=za++,this._panels={}}return Object.defineProperty(e.prototype,"panels",{get:function(){var e=this;return Object.keys(this._panels).map((function(t){return e._panels[t]}))},enumerable:!1,configurable:!0}),e.prototype.setStrategy=function(e){this.strategy=e},e.prototype.updatePanelOrder=function(e){var t=this;e.forEach((function(e,n){return t._panels[e].index=n})),this.removeOldPanels(e)},e.prototype.addPanel=function(e,t){void 0===t&&(t=!1),this._panels[e]=new Ha(e,this.accordionCount),this._panels[e].open=t},e.prototype.togglePanel=function(e,t){var n=this._panels[e].open;this.strategy===Fa.Default&&this.closeAllPanels(),this._panels[e].open=void 0!==t?t:!n},e.prototype.disablePanel=function(e,t){this._panels[e].disabled=t},e.prototype.closeAllPanels=function(){var e=this;this.panels.forEach((function(t){return e._panels[t.id].open=!1}))},e.prototype.removeOldPanels=function(e){var t=this;this.panels.filter((function(t){return void 0===e.find((function(e){return e===t.id}))})).forEach((function(e){return delete t._panels[e.id]}))},e}(),Wa=function(){function e(){this.accordion=new Ga,this._panelsChanges=new i.BehaviorSubject(this.accordion.panels)}return e.prototype.getPanelChanges=function(e){return this._panelsChanges.pipe(o.map((function(t){return t.find((function(t){return t.id===e}))})))},e.prototype.setStrategy=function(e){this.accordion.setStrategy(e)},e.prototype.addPanel=function(e,t){void 0===t&&(t=!1),this.accordion.addPanel(e,t),this.emitUpdatedPanels()},e.prototype.togglePanel=function(e,t){this.accordion.togglePanel(e,t),this.emitUpdatedPanels()},e.prototype.disablePanel=function(e,t){this.accordion.disablePanel(e,t),this.emitUpdatedPanels()},e.prototype.updatePanelOrder=function(e){this.accordion.updatePanelOrder(e),this.emitUpdatedPanels()},e.prototype.emitUpdatedPanels=function(){this._panelsChanges.next(this.accordion.panels)},e}();Wa.decorators=[{type:t.Injectable}];var Ua="0.2s ease-in-out",Ya=[s.trigger("skipInitialRender",[s.transition(":enter",[])]),s.trigger("toggle",[s.transition("void => *",[s.style({display:"block",height:0}),s.animate(Ua,s.style({height:"*"}))])])],Ka=[s.trigger("skipInitialRender",[s.transition(":enter",[])]),s.trigger("toggle",[s.transition("void => *",[s.style({display:"block",height:0}),s.animate(Ua,s.style({height:"*"}))]),s.transition("* => void",[s.style({display:"block"}),s.animate(Ua,s.style({height:0,display:"none"}))])])],Za=function(){};Za.decorators=[{type:t.Component,args:[{selector:"clr-accordion-description, clr-step-description",template:"<ng-content></ng-content>",host:{"[class.clr-accordion-description]":"true"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}];var qa=function(){function e(e,n,r,i){this.commonStrings=e,this.accordionService=n,this.ifExpandService=r,this._id=i,this.disabled=!1,this.panelOpen=!1,this.panelOpenChange=new t.EventEmitter,this.AccordionStatus=Ma,this.isAccordion=!0}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.panel=this.accordionService.getPanelChanges(this.id).pipe(o.tap((function(t){return e.emitPanelChange(t)}))),this.accordionService.addPanel(this.id,this.panelOpen),this.accordionService.togglePanel(this.id,this.panelOpen),this.accordionService.disablePanel(this.id,this.disabled)},e.prototype.ngOnChanges=function(e){this.panel&&e.panelOpen&&e.panelOpen.currentValue!==e.panelOpen.previousValue&&this.accordionService.togglePanel(this.id,e.panelOpen.currentValue),this.panel&&e.disabled&&e.disabled.currentValue!==e.disabled.previousValue&&this.accordionService.disablePanel(this.id,e.disabled.currentValue)},e.prototype.togglePanel=function(){this.accordionService.togglePanel(this.id)},e.prototype.collapsePanelOnAnimationDone=function(e){e.open||(this.ifExpandService.expanded=!1)},e.prototype.getPanelStateClasses=function(e){return"clr-accordion-panel-"+e.status+" "+(e.open?"clr-accordion-panel-open":"")},e.prototype.getAccordionContentId=function(e){return"clr-accordion-content-"+e+"'"},e.prototype.getAccordionHeaderId=function(e){return"clr-accordion-header-"+e},e.prototype.emitPanelChange=function(e){e.open!==this.panelOpen&&(this.panelOpenChange.emit(e.open),this.panelOpen=e.open),e.open&&(this.ifExpandService.expanded=!0)},e}();qa.decorators=[{type:t.Component,args:[{selector:"clr-accordion-panel",template:'<ng-container *ngIf="panel | async; let panel">\n <div *ngIf="panel.status !== AccordionStatus.Inactive" aria-live="assertive" class="clr-sr-only">\n <ng-container *ngIf="panel.status === AccordionStatus.Error">{{commonStrings.keys.danger}}</ng-container>\n </div>\n\n <div role="group" [ngClass]="getPanelStateClasses(panel)">\n <div class="clr-accordion-header">\n <button\n type="button"\n class="clr-accordion-header-button"\n (click)="togglePanel()"\n [id]="getAccordionHeaderId(panel.templateId)"\n [disabled]="isAccordion && panel.disabled"\n [attr.aria-disabled]="!isAccordion && panel.disabled"\n [attr.aria-controls]="getAccordionContentId(panel.templateId)"\n [attr.aria-expanded]="panel.open"\n [class.clr-accordion-header-has-description]="(accordionDescription.changes | async)?.length || accordionDescription.length"\n #headerButton\n >\n <span class="clr-sr-only">\n <ng-container *ngIf="panel.status === AccordionStatus.Error">{{commonStrings.keys.danger}}</ng-container>\n <ng-container *ngIf="panel.status === AccordionStatus.Complete">{{commonStrings.keys.success}}</ng-container>\n </span>\n <span class="clr-accordion-status">\n <cds-icon shape="angle" direction="right" class="clr-accordion-angle"></cds-icon>\n <span class="clr-accordion-number"></span>\n <cds-icon status="danger" shape="exclamation-circle" class="clr-accordion-error-icon"></cds-icon>\n <cds-icon status="success" shape="check-circle" class="clr-accordion-complete-icon"></cds-icon>\n </span>\n <ng-content select="clr-accordion-title, clr-step-title"></ng-content>\n <ng-content select="clr-accordion-description, clr-step-description"></ng-content>\n </button>\n </div>\n <div\n @skipInitialRender\n role="region"\n [id]="getAccordionContentId(panel.templateId)"\n [attr.aria-hidden]="!panel.open"\n [attr.aria-labelledby]="getAccordionHeaderId(panel.templateId)"\n >\n <div\n *ngIf="panel.open"\n @toggle\n (@toggle.done)="collapsePanelOnAnimationDone(panel)"\n class="clr-accordion-content"\n >\n <div class="clr-accordion-inner-content">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n',host:{"[class.clr-accordion-panel]":"true"},changeDetection:t.ChangeDetectionStrategy.OnPush,animations:Ya,providers:[Xe,W]}]}],qa.ctorParameters=function(){return[{type:V},{type:Wa},{type:Xe},{type:String,decorators:[{type:t.Inject,args:[z]}]}]},qa.propDecorators={disabled:[{type:t.Input,args:["clrAccordionPanelDisabled"]}],panelOpen:[{type:t.Input,args:["clrAccordionPanelOpen"]}],panelOpenChange:[{type:t.Output,args:["clrAccordionPanelOpenChange"]}],accordionDescription:[{type:t.ContentChildren,args:[Za]}]};var Xa=function(){};Xa.decorators=[{type:t.Component,args:[{selector:"clr-accordion-title, clr-step-title",template:"<ng-content></ng-content>",host:{"[class.clr-accordion-title]":"true"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}];var $a=function(){function e(e){this.accordionService=e,this.multiPanel=!1,this.subscriptions=[]}return e.prototype.ngOnInit=function(){this.setAccordionStrategy()},e.prototype.ngOnChanges=function(e){e.multiPanel.currentValue!==e.multiPanel.previousValue&&this.setAccordionStrategy()},e.prototype.ngAfterViewInit=function(){this.subscriptions.push(this.listenForDOMChanges())},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.setAccordionStrategy=function(){var e=this.multiPanel?Fa.Multi:Fa.Default;this.accordionService.setStrategy(e)},e.prototype.listenForDOMChanges=function(){var e=this;return this.panels.changes.pipe(o.startWith(this.panels)).subscribe((function(t){return e.accordionService.updatePanelOrder(t.toArray().map((function(e){return e.id})))}))},e}();$a.decorators=[{type:t.Component,args:[{selector:"clr-accordion",template:"<ng-content></ng-content>",host:{"[class.clr-accordion]":"true"},providers:[Wa],changeDetection:t.ChangeDetectionStrategy.OnPush}]}],$a.ctorParameters=function(){return[{type:Wa}]},$a.propDecorators={multiPanel:[{type:t.Input,args:["clrAccordionMultiPanel"]}],panels:[{type:t.ContentChildren,args:[qa,{descendants:!0}]}]};var Ja=function(){};Ja.decorators=[{type:t.Component,args:[{selector:"clr-accordion-content, clr-step-content",template:"<ng-content></ng-content>",changeDetection:t.ChangeDetectionStrategy.OnPush}]}];var Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t}(Mr);Qa.decorators=[{type:t.Directive,args:[{selector:"clr-accordion"}]}];var ec=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-accordion-panel should only be used inside of clr-accordion");return(i=e.call(this,t,n)||this).expand=r,i}return ne(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.expand.expanded},enumerable:!1,configurable:!0}),t}(Vr);ec.decorators=[{type:t.Directive,args:[{selector:"clr-accordion-panel"}]}],ec.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Qa,decorators:[{type:t.Optional}]},{type:Xe}]};var tc=[$a,qa,Xa,Za,Ja,ec,Qa],nc=function(){n.ClarityIcons.addIcons(n.angleIcon,n.exclamationCircleIcon,n.checkCircleIcon)};nc.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h],declarations:oe(tc),exports:oe(tc)}]}],nc.ctorParameters=function(){return[]};var rc=function(e){function t(){var t=e.apply(this,oe(arguments))||this;return t.stepperModelInitialize=!1,t}return ne(t,e),Object.defineProperty(t.prototype,"allPanelsCompleted",{get:function(){return this.panels.length&&0===this.getNumberOfIncompletePanels()&&0===this.getNumberOfOpenPanels()},enumerable:!1,configurable:!0}),t.prototype.addPanel=function(t,n){void 0===n&&(n=!1),e.prototype.addPanel.call(this,t,n),this._panels[t].disabled=!0},t.prototype.updatePanelOrder=function(t){e.prototype.updatePanelOrder.call(this,t),!1===this.stepperModelInitialize&&this.openFirstPanel()},t.prototype.togglePanel=function(e){this._panels[e].status===Ma.Complete&&(this._panels[e].open=!this._panels[e].open)},t.prototype.navigateToNextPanel=function(e,t){void 0===t&&(t=!0),t?(this.completePanel(e),this.openNextPanel(this._panels[e].id)):this.setPanelError(e)},t.prototype.overrideInitialPanel=function(e){var t=this;this.panels.filter((function(){return void 0!==t._panels[e]})).forEach((function(n){n.index<t._panels[e].index?t.completePanel(n.id):n.id===e?t._panels[n.id].open=!0:t._panels[n.id].open=!1}))},t.prototype.setPanelsWithErrors=function(e){var t=this;e.forEach((function(e){return t.setPanelError(e)}))},t.prototype.resetPanels=function(){var e=this;this.stepperModelInitialize=!1,this.panels.forEach((function(t){return e.resetPanel(t.id)})),this.openFirstPanel()},t.prototype.getNextPanel=function(e){var t=this;return this.panels.find((function(n){return n.index===t._panels[e].index+1}))},t.prototype.resetAllFuturePanels=function(e){var t=this;this.panels.filter((function(n){return n.index>=t._panels[e].index})).forEach((function(e){return t.resetPanel(e.id)}))},t.prototype.resetPanel=function(e){this._panels[e].status=Ma.Inactive,this._panels[e].open=!1,this._panels[e].disabled=!0},t.prototype.openFirstPanel=function(){var e=this.getFirstPanel();e&&(this._panels[e.id].open=!0,this._panels[e.id].disabled=!0,this.stepperModelInitialize=!0)},t.prototype.completePanel=function(e){this._panels[e].status=Ma.Complete,this._panels[e].disabled=!1,this._panels[e].open=!1},t.prototype.openNextPanel=function(e){var t=this.getNextPanel(e);t&&(this.resetAllFuturePanels(t.id),this._panels[t.id].open=!0,this._panels[t.id].disabled=!0)},t.prototype.setPanelError=function(e){this.resetAllFuturePanels(e),this._panels[e].open=!0,this._panels[e].status=Ma.Error},t.prototype.getFirstPanel=function(){return this.panels.find((function(e){return 0===e.index}))},t.prototype.getNumberOfIncompletePanels=function(){return this.panels.reduce((function(e,t){return t.status!==Ma.Complete?e+1:e}),0)},t.prototype.getNumberOfOpenPanels=function(){return this.panels.reduce((function(e,t){return!1!==t.open?e+1:e}),0)},t}(Ga),ic=function(e){function t(){var t=e.apply(this,oe(arguments))||this;return t.panelsCompleted=t.getAllCompletedPanelChanges(),t.accordion=new rc,t._activeStepChanges=new i.Subject,t.activeStep=t._activeStepChanges.asObservable(),t}return ne(t,e),t.prototype.resetPanels=function(){this.accordion.resetPanels(),this.emitUpdatedPanels()},t.prototype.setPanelsWithErrors=function(e){this.accordion.setPanelsWithErrors(e),this.emitUpdatedPanels()},t.prototype.navigateToNextPanel=function(e,t){void 0===t&&(t=!0),this.accordion.navigateToNextPanel(e,t),this.updateNextStep(e,t),this.emitUpdatedPanels()},t.prototype.overrideInitialPanel=function(e){this.accordion.overrideInitialPanel(e),this.emitUpdatedPanels()},t.prototype.updateNextStep=function(e,t){var n=this.accordion.getNextPanel(e);t&&n?this._activeStepChanges.next(n.id):t&&this._activeStepChanges.next(e)},t.prototype.getAllCompletedPanelChanges=function(){var e=this;return this._panelsChanges.pipe(o.map((function(){return e.accordion.allPanelsCompleted})),o.distinctUntilChanged())},t}(Wa);function oc(e){Object.keys(e.controls).forEach((function(t){var n=e.get(t);n instanceof a.FormControl?(n.markAsTouched(),n.markAsDirty(),n.updateValueAndValidity()):n instanceof a.FormGroup&&oc(n)}))}ic.decorators=[{type:t.Injectable}];var sc,ac=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,n,o,s,a)||this;return c.platformId=t,c.commonStrings=n,c.formGroupName=r,c.ngModelGroup=i,c.stepperService=o,c.isAccordion=!1,c.subscriptions=[],c}return ne(t,e),Object.defineProperty(t.prototype,"formGroup",{get:function(){return this.formGroupName?this.formGroupName.control:this.ngModelGroup.control},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.formGroupName?this.formGroupName.name.toString():this.ngModelGroup.name},set:function(e){},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.panel=this.panel.pipe(o.tap((function(e){return t.triggerAllFormControlValidationIfError(e)}))),this.stepperService.disablePanel(this.id,!0),this.listenToFocusChanges(),this.formGroup&&this.subscriptions.push(this.formGroup.statusChanges.pipe(o.pairwise()).subscribe((function(e){var n=ie(e,2),r=n[0],i=n[1];"VALID"===r&&"INVALID"===i&&t.stepperService.navigateToNextPanel(t.id,t.formGroup.valid)})))},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},t.prototype.listenToFocusChanges=function(){var e=this;this.subscriptions.push(this.stepperService.activeStep.pipe(o.filter((function(t){return r.isPlatformBrowser(e.platformId)&&t===e.id}))).subscribe((function(){return e.headerButton.nativeElement.focus()})))},t.prototype.triggerAllFormControlValidationIfError=function(e){e.status===Ma.Error&&oc(this.formGroup)},t}(qa);ac.decorators=[{type:t.Component,args:[{selector:"clr-stepper-panel",template:'<ng-container *ngIf="panel | async; let panel">\n <div *ngIf="panel.status !== AccordionStatus.Inactive" aria-live="assertive" class="clr-sr-only">\n <ng-container *ngIf="panel.status === AccordionStatus.Error">{{commonStrings.keys.danger}}</ng-container>\n </div>\n\n <div role="group" [ngClass]="getPanelStateClasses(panel)">\n <div class="clr-accordion-header">\n <button\n type="button"\n class="clr-accordion-header-button"\n (click)="togglePanel()"\n [id]="getAccordionHeaderId(panel.templateId)"\n [disabled]="isAccordion && panel.disabled"\n [attr.aria-disabled]="!isAccordion && panel.disabled"\n [attr.aria-controls]="getAccordionContentId(panel.templateId)"\n [attr.aria-expanded]="panel.open"\n [class.clr-accordion-header-has-description]="(accordionDescription.changes | async)?.length || accordionDescription.length"\n #headerButton\n >\n <span class="clr-sr-only">\n <ng-container *ngIf="panel.status === AccordionStatus.Error">{{commonStrings.keys.danger}}</ng-container>\n <ng-container *ngIf="panel.status === AccordionStatus.Complete">{{commonStrings.keys.success}}</ng-container>\n </span>\n <span class="clr-accordion-status">\n <cds-icon shape="angle" direction="right" class="clr-accordion-angle"></cds-icon>\n <span class="clr-accordion-number"></span>\n <cds-icon status="danger" shape="exclamation-circle" class="clr-accordion-error-icon"></cds-icon>\n <cds-icon status="success" shape="check-circle" class="clr-accordion-complete-icon"></cds-icon>\n </span>\n <ng-content select="clr-accordion-title, clr-step-title"></ng-content>\n <ng-content select="clr-accordion-description, clr-step-description"></ng-content>\n </button>\n </div>\n <div\n @skipInitialRender\n role="region"\n [id]="getAccordionContentId(panel.templateId)"\n [attr.aria-hidden]="!panel.open"\n [attr.aria-labelledby]="getAccordionHeaderId(panel.templateId)"\n >\n <div\n *ngIf="panel.open"\n @toggle\n (@toggle.done)="collapsePanelOnAnimationDone(panel)"\n class="clr-accordion-content"\n >\n <div class="clr-accordion-inner-content">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n',host:{"[class.clr-accordion-panel]":"true"},changeDetection:t.ChangeDetectionStrategy.OnPush,animations:Ka,providers:[Xe,W]}]}],ac.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:V},{type:a.FormGroupName,decorators:[{type:t.Optional}]},{type:a.NgModelGroup,decorators:[{type:t.Optional}]},{type:ic},{type:Xe},{type:String,decorators:[{type:t.Inject,args:[z]}]}]},ac.propDecorators={headerButton:[{type:t.ViewChild,args:["headerButton"]}]},(sc=e.ClrStepButtonType||(e.ClrStepButtonType={})).Next="next",sc.Submit="submit";var cc=function(){function t(t,n){this.clrStep=t,this.stepperService=n,this.type=e.ClrStepButtonType.Next,this.submitButton=!1}return t.prototype.ngOnInit=function(){this.submitButton=this.type===e.ClrStepButtonType.Submit},t.prototype.navigateToNextPanel=function(){this.stepperService.navigateToNextPanel(this.clrStep.id,this.clrStep.formGroup.valid)},t}();cc.decorators=[{type:t.Directive,args:[{selector:"[clrStepButton]",host:{"[class.clr-step-button]":"true","[class.btn]":"true","[type]":"'button'"}}]}],cc.ctorParameters=function(){return[{type:ac},{type:ic}]},cc.propDecorators={type:[{type:t.Input,args:["clrStepButton"]}],submitButton:[{type:t.HostBinding,args:["class.btn-primary"]}],navigateToNextPanel:[{type:t.HostListener,args:["click"]}]};var lc=function(){function e(e,t,n){this.formGroup=e,this.ngForm=t,this.stepperService=n,this.subscriptions=[]}return e.prototype.ngOnInit=function(){if(!this.formGroup&&!this.ngForm)throw new Error("To use stepper a Reactive or Template Form is required.");this.form=this.formGroup?this.formGroup:this.ngForm,this.subscriptions.push(this.listenForPanelsCompleted()),this.subscriptions.push(this.listenForFormResetChanges())},e.prototype.ngOnChanges=function(e){e.initialPanel.currentValue!==e.initialPanel.previousValue&&this.stepperService.overrideInitialPanel(this.initialPanel)},e.prototype.ngAfterViewInit=function(){this.subscriptions.push(this.listenForDOMChanges())},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.listenForFormResetChanges=function(){var e=this;return this.form.statusChanges.pipe(o.filter((function(){return e.form.pristine}))).subscribe((function(){return e.stepperService.resetPanels()}))},e.prototype.listenForPanelsCompleted=function(){var e=this;return this.stepperService.panelsCompleted.subscribe((function(t){t&&e.form.valid?e.form.ngSubmit.emit():!e.form.valid&&e.form.touched&&e.setPanelsWithFormErrors()}))},e.prototype.setPanelsWithFormErrors=function(){var e=this.panels.reduce((function(e,t){return t.formGroup.invalid?oe(e,[t.id]):e}),[]);this.stepperService.setPanelsWithErrors(e)},e.prototype.listenForDOMChanges=function(){var e=this;return this.panels.changes.pipe(o.startWith(this.panels)).subscribe((function(t){e.stepperService.updatePanelOrder(t.toArray().map((function(e){return e.id}))),e.initialPanel&&e.stepperService.overrideInitialPanel(e.initialPanel)}))},e}();lc.decorators=[{type:t.Component,args:[{selector:"form[clrStepper]",template:"<ng-content></ng-content>",host:{"[class.clr-accordion]":"true","[class.clr-stepper-forms]":"true"},providers:[ic,{provide:Wa,useExisting:ic}],changeDetection:t.ChangeDetectionStrategy.OnPush}]}],lc.ctorParameters=function(){return[{type:a.FormGroupDirective,decorators:[{type:t.Optional}]},{type:a.NgForm,decorators:[{type:t.Optional}]},{type:ic}]},lc.propDecorators={initialPanel:[{type:t.Input,args:["clrInitialStep"]}],panels:[{type:t.ContentChildren,args:[ac,{descendants:!0}]}]};var pc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t}(Mr);pc.decorators=[{type:t.Directive,args:[{selector:"form[clrStepper]"}]}];var uc=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-stepper-panel should only be used inside of clrStepper");return(i=e.call(this,t,n)||this).expand=r,i}return ne(t,e),Object.defineProperty(t.prototype,"flavor",{get:function(){return this.expand.expanded},enumerable:!1,configurable:!0}),t}(Vr);uc.decorators=[{type:t.Directive,args:[{selector:"clr-stepper-panel, [clrStepButton]"}]}],uc.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:pc,decorators:[{type:t.Optional}]},{type:Xe}]};var dc=[lc,cc,ac,uc,pc],hc=function(){};hc.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,nc],declarations:oe(dc),exports:oe(dc,[nc])}]}];var gc=function(){function e(){this.externalId="",this.max=100,this._value=0}return Object.defineProperty(e.prototype,"id",{get:function(){return this._ID},set:function(e){this._ID=e,this.externalId=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progressClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labeledClass",{get:function(){return this._labeled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrLabeled",{set:function(e){this._labeled=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fadeClass",{get:function(){return this._fade},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrFade",{set:function(e){this._fade=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopClass",{get:function(){return this._loop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrLoop",{set:function(e){this._loop=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"successClass",{get:function(){return this._success},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrSuccess",{set:function(e){this._success=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dangerClass",{get:function(){return this._danger},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrDanger",{set:function(e){this._danger=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flashClass",{get:function(){return this._flash},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrFlash",{set:function(e){this._flash=At(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flashDangerClass",{get:function(){return this._flashDanger},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clrFlashDanger",{set:function(e){this._flashDanger=At(e)},enumerable:!1,configurable:!0}),e.prototype.displayStringValue=function(){return this._labeled},Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.displayval?this.displayval:(this.value||0)+"%"},enumerable:!1,configurable:!0}),e}();gc.decorators=[{type:t.Component,args:[{selector:"clr-progress-bar",template:'\n <progress [id]="id" [attr.max]="max" [attr.value]="value" [attr.data-displayval]="displayValue"></progress>\n <span *ngIf="displayStringValue()">{{ displayValue }}</span>\n '}]}],gc.propDecorators={externalId:[{type:t.HostBinding,args:["attr.id"]}],id:[{type:t.Input}],max:[{type:t.Input,args:["clrMax"]}],displayval:[{type:t.Input,args:["clrDisplayval"]}],value:[{type:t.Input,args:["clrValue"]}],progressClass:[{type:t.HostBinding,args:["class.progress"]}],labeledClass:[{type:t.HostBinding,args:["class.labeled"]}],clrLabeled:[{type:t.Input,args:["clrLabeled"]}],fadeClass:[{type:t.HostBinding,args:["class.progress-fade"]}],clrFade:[{type:t.Input,args:["clrFade"]}],loopClass:[{type:t.HostBinding,args:["class.loop"]}],clrLoop:[{type:t.Input,args:["clrLoop"]}],successClass:[{type:t.HostBinding,args:["class.success"]}],clrSuccess:[{type:t.Input,args:["clrSuccess"]}],dangerClass:[{type:t.HostBinding,args:["class.danger"]}],clrDanger:[{type:t.Input,args:["clrDanger"]}],flashClass:[{type:t.HostBinding,args:["class.flash"]}],clrFlash:[{type:t.Input,args:["clrFlash"]}],flashDangerClass:[{type:t.HostBinding,args:["class.flash-danger"]}],clrFlashDanger:[{type:t.Input,args:["clrFlashDanger"]}]};var fc,yc,bc=[gc],mc=function(){};mc.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[bc],exports:[bc]}]}],(fc=e.ClrTimelineLayout||(e.ClrTimelineLayout={})).HORIZONTAL="horizontal",fc.VERTICAL="vertical",(yc=e.ClrTimelineStepState||(e.ClrTimelineStepState={})).NOT_STARTED="not-started",yc.CURRENT="current",yc.PROCESSING="processing",yc.SUCCESS="success",yc.ERROR="error";var vc=function(){function t(t){this.attributeMap=new Map,this.attributeMap.set(e.ClrTimelineStepState.NOT_STARTED,{iconShape:"circle",iconStatus:null,ariaLabel:t.keys.timelineStepNotStarted}),this.attributeMap.set(e.ClrTimelineStepState.CURRENT,{iconShape:"dot-circle",iconStatus:"info",ariaLabel:t.keys.timelineStepCurrent}),this.attributeMap.set(e.ClrTimelineStepState.PROCESSING,{iconShape:void 0,iconStatus:null,ariaLabel:t.keys.timelineStepProcessing}),this.attributeMap.set(e.ClrTimelineStepState.SUCCESS,{iconShape:"success-standard",iconStatus:"success",ariaLabel:t.keys.timelineStepSuccess}),this.attributeMap.set(e.ClrTimelineStepState.ERROR,{iconShape:"error-standard",iconStatus:"danger",ariaLabel:t.keys.timelineStepError})}return t.prototype.getAriaLabel=function(e){return this.attributeMap.get(e).ariaLabel},t.prototype.getIconShape=function(e){return this.attributeMap.get(e).iconShape},t.prototype.getIconStatus=function(e){return this.attributeMap.get(e).iconStatus},t}();vc.decorators=[{type:t.Injectable}],vc.ctorParameters=function(){return[{type:V}]};var Cc=function(){function t(){this.layout=e.ClrTimelineLayout.HORIZONTAL}return Object.defineProperty(t.prototype,"isVertical",{get:function(){return this.layout===e.ClrTimelineLayout.VERTICAL},enumerable:!1,configurable:!0}),t}();Cc.decorators=[{type:t.Component,args:[{selector:"clr-timeline",template:" <ng-content></ng-content> ",host:{"[class.clr-timeline]":"true"},providers:[vc]}]}],Cc.propDecorators={layout:[{type:t.Input,args:["clrLayout"]}],isVertical:[{type:t.HostBinding,args:["class.clr-timeline-vertical"]}]};var Sc=function(){};Sc.decorators=[{type:t.Component,args:[{selector:"clr-timeline-step-title",template:" <ng-content></ng-content> ",host:{"[class.clr-timeline-step-title]":"true","[attr.aria-hidden]":"true"}}]}];var Ic=function(){function t(t,n){this.iconAttributeService=t,this.platformId=n,this.state=e.ClrTimelineStepState.NOT_STARTED}return t.prototype.ngAfterContentInit=function(){this.stepTitle&&r.isPlatformBrowser(this.platformId)&&(this.stepTitleText=this.stepTitle.nativeElement.innerText)},Object.defineProperty(t.prototype,"iconAriaCurrent",{get:function(){return this.state===e.ClrTimelineStepState.CURRENT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconAriaLabel",{get:function(){return this.iconAttributeService.getAriaLabel(this.state)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconShape",{get:function(){return this.iconAttributeService.getIconShape(this.state)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconStatus",{get:function(){return this.iconAttributeService.getIconStatus(this.state)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProcessing",{get:function(){return this.state===e.ClrTimelineStepState.PROCESSING},enumerable:!1,configurable:!0}),t}();Ic.decorators=[{type:t.Component,args:[{selector:"clr-timeline-step",template:'\n <ng-content select="clr-timeline-step-header"></ng-content>\n <span class="clr-sr-only">{{ stepTitleText }}</span>\n <ng-container *ngIf="!isProcessing; else processing">\n <cds-icon\n [attr.status]="iconStatus"\n [attr.shape]="iconShape"\n [attr.aria-label]="iconAriaLabel"\n [attr.aria-current]="iconAriaCurrent"\n >\n </cds-icon>\n </ng-container>\n <div class="clr-timeline-step-body">\n <ng-content select="clr-timeline-step-title"></ng-content>\n <ng-content select="clr-timeline-step-description"></ng-content>\n </div>\n\n <ng-template #processing>\n <clr-spinner clrMedium [attr.aria-label]="iconAriaLabel"></clr-spinner>\n </ng-template>\n ',host:{"[class.clr-timeline-step]":"true"}}]}],Ic.ctorParameters=function(){return[{type:vc},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},Ic.propDecorators={state:[{type:t.Input,args:["clrState"]}],stepTitle:[{type:t.ContentChild,args:[Sc,{read:t.ElementRef}]}]};var Oc=function(){};Oc.decorators=[{type:t.Component,args:[{selector:"clr-timeline-step-description",template:" <ng-content></ng-content> ",host:{"[class.clr-timeline-step-description]":"true"}}]}];var Ec=function(){};Ec.decorators=[{type:t.Component,args:[{selector:"clr-timeline-step-header",template:" <ng-content></ng-content> ",host:{"[class.clr-timeline-step-header]":"true"}}]}];var wc=[Cc,Ic,Oc,Ec,Sc],_c=function(){n.ClarityIcons.addIcons(n.circleIcon,n.dotCircleIcon,n.errorStandardIcon,n.successStandardIcon)};_c.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,h,Hn],exports:oe(wc,[h,Hn]),declarations:[wc]}]}],_c.ctorParameters=function(){return[]};var Pc=function(){};Pc.decorators=[{type:t.NgModule,args:[{exports:[ss,Do,h,ra,$n,Qe,rt,Or,J,qn,Js,ba,Ba,fr,hc,Hn,mc,k,_c]}]}];var Dc;(Dc=e.ClrAriaLivePoliteness||(e.ClrAriaLivePoliteness={})).off="off",Dc.polite="polite",Dc.assertive="assertive";var Tc=function(){function t(e,t,n){this.ngZone=e,this.platformId=n,this._id="clr-aria-live-element-"+H(),this.document=t}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.announce=function(t,n){var i=this;void 0===n&&(n=e.ClrAriaLivePoliteness.polite),n!==e.ClrAriaLivePoliteness.off&&(!this.ariaLiveElement&&r.isPlatformBrowser(this.platformId)&&(this.ariaLiveElement=this.createContainer()),(t="string"!=typeof t&&r.isPlatformBrowser(this.platformId)?t.textContent:t)&&(this.ariaLiveElement.setAttribute("aria-live",n),this.ngZone.runOutsideAngular((function(){clearTimeout(i.previousTimeout),i.previousTimeout=setTimeout((function(){i.ariaLiveElement.textContent=t}),100)}))))},t.prototype.ngOnDestroy=function(){clearTimeout(this.previousTimeout),r.isPlatformBrowser(this.platformId)&&this.ariaLiveElement&&(this.document.body.removeChild(this.ariaLiveElement),this.ariaLiveElement=null)},t.prototype.createContainer=function(){var t=this.document.createElement("div");return t.setAttribute("id",this.id),t.classList.add("clr-sr-only"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live",e.ClrAriaLivePoliteness.polite),this.document.body.appendChild(t),t},t}();Tc.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new Tc(t.ɵɵinject(t.NgZone),t.ɵɵinject(r.DOCUMENT),t.ɵɵinject(t.PLATFORM_ID))},token:Tc,providedIn:"root"}),Tc.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Tc.ctorParameters=function(){return[{type:t.NgZone},{type:void 0,decorators:[{type:t.Inject,args:[r.DOCUMENT]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},e.CLR_ALERT_DIRECTIVES=is,e.CLR_BUTTON_GROUP_DIRECTIVES=K,e.CLR_DATAGRID_DIRECTIVES=eo,e.CLR_DATEPICKER_DIRECTIVES=Vt,e.CLR_DRAG_AND_DROP_DIRECTIVES=gr,e.CLR_DROPDOWN_DIRECTIVES=Zo,e.CLR_ICON_DIRECTIVES=d,e.CLR_LAYOUT_DIRECTIVES=us,e.CLR_LOADING_BUTTON_DIRECTIVES=X,e.CLR_LOADING_DIRECTIVES=Xn,e.CLR_MENU_POSITIONS=["bottom-left","bottom-right","top-left","top-right","left-bottom","left-top","right-bottom","right-top"],e.CLR_MODAL_DIRECTIVES=na,e.CLR_NAVIGATION_DIRECTIVES=bs,e.CLR_PROGRESS_BAR_DIRECTIVES=bc,e.CLR_SIGNPOST_DIRECTIVES=aa,e.CLR_SPINNER_DIRECTIVES=zn,e.CLR_STACK_VIEW_DIRECTIVES=uo,e.CLR_TABS_DIRECTIVES=Fs,e.CLR_TOOLTIP_DIRECTIVES=fa,e.CLR_TREE_VIEW_DIRECTIVES=_o,e.CLR_VERTICAL_NAV_DIRECTIVES=Xs,e.CLR_WIZARD_DIRECTIVES=Va,e.CONDITIONAL_DIRECTIVES=Je,e.CUSTOM_BUTTON_TYPES=ka,e.CdsIconCustomTag=l,e.ClarityModule=Pc,e.ClrAbstractContainer=Pe,e.ClrAccordion=$a,e.ClrAccordionContent=Ja,e.ClrAccordionDescription=Za,e.ClrAccordionModule=nc,e.ClrAccordionPanel=qa,e.ClrAccordionTitle=Xa,e.ClrAlert=Qo,e.ClrAlertItem=es,e.ClrAlertModule=os,e.ClrAlertText=rs,e.ClrAlerts=ts,e.ClrAlertsPager=ns,e.ClrAriaLiveService=Tc,e.ClrButton=F,e.ClrButtonGroup=Y,e.ClrButtonGroupModule=Z,e.ClrButtonModule=J,e.ClrCalendar=wt,e.ClrCheckbox=Be,e.ClrCheckboxContainer=ze,e.ClrCheckboxModule=He,e.ClrCheckboxWrapper=Ve,e.ClrCombobox=Fn,e.ClrComboboxContainer=kn,e.ClrComboboxModule=Zn,e.ClrCommonFormsModule=je,e.ClrCommonStringsService=V,e.ClrConditionalModule=Qe,e.ClrControl=Te,e.ClrControlContainer=De,e.ClrControlError=we,e.ClrControlHelper=_e,e.ClrControlSuccess=Ee,e.ClrDataModule=Do,e.ClrDatagrid=Oi,e.ClrDatagridActionBar=Ei,e.ClrDatagridActionOverflow=_i,e.ClrDatagridCell=ai,e.ClrDatagridColumn=Xr,e.ClrDatagridColumnSeparator=Di,e.ClrDatagridColumnToggle=Ai,e.ClrDatagridColumnToggleButton=xi,e.ClrDatagridColumnToggleTitle=Ti,e.ClrDatagridDetail=Li,e.ClrDatagridDetailBody=Ni,e.ClrDatagridDetailHeader=Ri,e.ClrDatagridFilter=xr,e.ClrDatagridFooter=Fi,e.ClrDatagridHideableColumn=zi,e.ClrDatagridItems=Jr,e.ClrDatagridItemsTrackBy=Hi,e.ClrDatagridModule=to,e.ClrDatagridPageSize=Gi,e.ClrDatagridPagination=Wi,e.ClrDatagridPlaceholder=Qr,e.ClrDatagridRow=bi,e.ClrDatagridRowDetail=Ui,e.ClrDatalist=gn,e.ClrDatalistContainer=dn,e.ClrDatalistInput=hn,e.ClrDatalistModule=fn,e.ClrDateContainer=xt,e.ClrDateInput=kt,e.ClrDatepickerModule=Bt,e.ClrDatepickerViewManager=Rt,e.ClrDay=Lt,e.ClrDaypicker=jt,e.ClrDragAndDropModule=fr,e.ClrDragEvent=rr,e.ClrDragHandle=hr,e.ClrDraggable=ur,e.ClrDraggableGhost=ar,e.ClrDropdown=No,e.ClrDropdownItem=Bo,e.ClrDropdownMenu=Yo,e.ClrDropdownModule=qo,e.ClrDropdownTrigger=Ko,e.ClrDroppable=dr,e.ClrEmphasisModule=ss,e.ClrExpandableAnimation=yr,e.ClrFocusOnViewInit=Sr,e.ClrFocusOnViewInitModule=Or,e.ClrForm=xe,e.ClrFormsModule=qn,e.ClrHeader=fs,e.ClrIconCustomTag=c,e.ClrIconModule=h,e.ClrIfActive=Ze,e.ClrIfDetail=ji,e.ClrIfDragged=cr,e.ClrIfError=ke,e.ClrIfExpanded=$e,e.ClrIfOpen=qe,e.ClrIfSuccess=Re,e.ClrInput=Ht,e.ClrInputContainer=zt,e.ClrInputModule=Gt,e.ClrLabel=Oe,e.ClrLayout=Le,e.ClrLayoutModule=Js,e.ClrLoading=j,e.ClrLoadingButton=q,e.ClrLoadingButtonModule=$,e.ClrLoadingModule=$n,e.ClrMainContainer=ps,e.ClrMainContainerModule=ds,e.ClrModal=ea,e.ClrModalBody=ta,e.ClrModalModule=ra,e.ClrMonthpicker=Nt,e.ClrNavLevel=ys,e.ClrNavigationModule=ms,e.ClrOption=_n,e.ClrOptionItems=Mn,e.ClrOptionSelected=Rn,e.ClrOptions=xn,e.ClrPassword=Zt,e.ClrPasswordContainer=Kt,e.ClrPasswordModule=qt,e.ClrPopoverAnchor=A,e.ClrPopoverContent=D,e.ClrPopoverEventsService=v,e.ClrPopoverModule=ba,e.ClrPopoverPositionService=P,e.ClrPopoverToggleService=y,e.ClrProgressBar=gc,e.ClrProgressBarModule=mc,e.ClrRadio=$t,e.ClrRadioContainer=Jt,e.ClrRadioModule=Qt,e.ClrRadioWrapper=Xt,e.ClrRange=cn,e.ClrRangeContainer=an,e.ClrRangeModule=ln,e.ClrRecursiveForOf=Eo,e.ClrSelect=tn,e.ClrSelectContainer=en,e.ClrSelectModule=nn,e.ClrSignpost=ri,e.ClrSignpostContent=sa,e.ClrSignpostModule=ca,e.ClrSignpostTrigger=ni,e.ClrSpinner=Vn,e.ClrSpinnerModule=Hn,e.ClrStackBlock=no,e.ClrStackContentInput=lo,e.ClrStackHeader=io,e.ClrStackInput=so,e.ClrStackSelect=ao,e.ClrStackView=ro,e.ClrStackViewCustomTags=co,e.ClrStackViewModule=ho,e.ClrStepButton=cc,e.ClrStepper=lc,e.ClrStepperModule=hc,e.ClrStepperPanel=ac,e.ClrTab=Ls,e.ClrTabContent=Ps,e.ClrTabLink=Rs,e.ClrTabOverflowContent=js,e.ClrTabs=Ns,e.ClrTabsModule=Ms,e.ClrTextarea=on,e.ClrTextareaContainer=rn,e.ClrTextareaModule=sn,e.ClrTimeline=Cc,e.ClrTimelineModule=_c,e.ClrTimelineStep=Ic,e.ClrTimelineStepDescription=Oc,e.ClrTimelineStepHeader=Ec,e.ClrTimelineStepTitle=Sc,e.ClrTooltip=pa,e.ClrTooltipContent=ha,e.ClrTooltipModule=ya,e.ClrTooltipTrigger=ga,e.ClrTree=Io,e.ClrTreeNode=So,e.ClrTreeNodeLink=Co,e.ClrTreeViewModule=Po,e.ClrVerticalNav=Hs,e.ClrVerticalNavGroup=Ys,e.ClrVerticalNavGroupChildren=Ks,e.ClrVerticalNavIcon=Zs,e.ClrVerticalNavLink=qs,e.ClrVerticalNavModule=$s,e.ClrWizard=xa,e.ClrWizardButton=Ra,e.ClrWizardCustomTags=La,e.ClrWizardHeaderAction=Oa,e.ClrWizardModule=Ba,e.ClrWizardPage=Ta,e.ClrWizardPageButtons=Ea,e.ClrWizardPageHeaderActions=wa,e.ClrWizardPageNavTitle=_a,e.ClrWizardPageTitle=Pa,e.ClrWizardStepnav=ja,e.ClrWizardStepnavItem=Na,e.ClrYearpicker=Mt,e.DEFAULT_BUTTON_TYPES=Aa,e.DatagridNumericFilter=Fr,e.DatagridPropertyComparator=Kr,e.DatagridPropertyNumericFilter=jr,e.DatagridPropertyStringFilter=kr,e.DatagridStringFilter=Lr,e.EXPANDABLE_ANIMATION_DIRECTIVES=br,e.FOCUS_ON_VIEW_INIT=vr,e.FOCUS_ON_VIEW_INIT_DIRECTIVES=Ir,e.IS_TOGGLE=Ne,e.IS_TOGGLE_PROVIDER=Me,e.LoadingListener=L,e.MainContainerWillyWonka=hs,e.NavDetectionOompaLoompa=gs,e.TOGGLE_SERVICE=Wt,e.TOGGLE_SERVICE_PROVIDER=Yt,e.ToggleServiceFactory=Ut,e.WrappedFormControl=Ie,e.collapse=function(){return[s.state("true",s.style({height:0,"overflow-y":"hidden"})),s.transition("true => false",[s.animate(Ua,s.style({height:"*","overflow-y":"hidden"}))]),s.transition("false => true",[s.style({height:"*","overflow-y":"hidden"}),s.animate(Ua)])]},e.commonStringsDefault=M,e.fade=function(e){return void 0===e&&(e=1),[s.transition("void => *",[s.style({opacity:0}),s.animate(Ua,s.style({opacity:e}))]),s.transition("* => void",[s.animate(Ua,s.style({opacity:0}))])]},e.fadeSlide=function(e){var t=null;if("up"===e)t="translate(0, 25%)";else if("down"===e)t="translate(0, -25%)";else if("left"===e)t="translate(25%, 0)";else{if("right"!==e)throw new Error("Unknown direction "+e+" for slide animation.");t="translate(-25%, 0)"}return[s.transition("void => *",[s.style({opacity:0,transform:t}),s.animate(Ua)]),s.transition("* => void",[s.animate(Ua,s.style({opacity:0,transform:t}))])]},e.isToggleFactory=Fe,e.slide=function(e){var t=null;if("up"===e)t="translate(0, 25%)";else if("down"===e)t="translate(0, -25%)";else if("left"===e)t="translate(25%, 0)";else{if("right"!==e)throw new Error("Unknown direction "+e+" for slide animation.");t="translate(-25%, 0)"}return[s.transition("void => *",[s.style({transform:t}),s.animate(Ua)]),s.transition("* => void",[s.animate(Ua,s.style({transform:t}))])]},e.ÇlrAccordionOompaLoompa=ec,e.ÇlrAccordionWillyWonka=Qa,e.ÇlrActionableOompaLoompa=Hr,e.ÇlrActiveOompaLoompa=Es,e.ÇlrClrFocusTrapModule=rt,e.ÇlrClrPopoverCloseButton=x,e.ÇlrClrPopoverModuleNext=k,e.ÇlrClrPopoverOpenCloseButton=T,e.ÇlrDatagridCellRenderer=Zi,e.ÇlrDatagridDetailRegisterer=ki,e.ÇlrDatagridHeaderRenderer=qi,e.ÇlrDatagridMainRenderer=Qi,e.ÇlrDatagridRowRenderer=$i,e.ÇlrDatagridWillyWonka=zr,e.ÇlrExpandableOompaLoompa=Ur,e.ÇlrFocusTrapDirective=tt,e.ÇlrFocusTrapTracker=et,e.ÇlrStepperOompaLoompa=uc,e.ÇlrStepperWillyWonka=pc,e.ÇlrTabsWillyWonka=Is,e.ÇlrWrappedCell=ii,e.ÇlrWrappedColumn=qr,e.ÇlrWrappedRow=hi,e.ɵa=Ji,e.ɵb=de,e.ɵba=$o,e.ɵbb=Jo,e.ɵbc=ce,e.ɵbd=pe,e.ɵbe=Se,e.ɵbf=be,e.ɵbg=Ae,e.ɵbh=he,e.ɵbi=fe,e.ɵbj=ge,e.ɵbk=ee,e.ɵbl=Q,e.ɵbm=Kn,e.ɵbn=Wn,e.ɵbo=Gn,e.ɵbp=Un,e.ɵbq=bn,e.ɵbr=Dn,e.ɵbs=On,e.ɵbt=En,e.ɵbu=An,e.ɵbv=St,e.ɵbw=Pt,e.ɵbx=Ot,e.ɵby=_t,e.ɵbz=Et,e.ɵc=Cr,e.ɵca=Dt,e.ɵcb=Tt,e.ɵcc=It,e.ɵcd=un,e.ɵce=er,e.ɵcf=Qn,e.ɵcg=Jn,e.ɵch=mr,e.ɵci=tr,e.ɵcj=or,e.ɵck=ir,e.ɵcl=lr,e.ɵcm=sr,e.ɵcn=pr,e.ɵco=di,e.ɵcp=$r,e.ɵcq=Pr,e.ɵcr=_r,e.ɵcs=wr,e.ɵct=Zr,e.ɵcu=ci,e.ɵcv=Br,e.ɵcw=Wr,e.ɵcx=Gr,e.ɵcy=mi,e.ɵcz=Ci,e.ɵd=nt,e.ɵda=Ii,e.ɵdb=pi,e.ɵdc=Tr,e.ɵdd=Er,e.ɵde=fi,e.ɵdf=ei,e.ɵdg=ti,e.ɵdh=Pi,e.ɵdi=Mi,e.ɵdj=Vi,e.ɵdk=Bi,e.ɵdm=Mr,e.ɵdn=Vr,e.ɵdo=oo,e.ɵdp=yo,e.ɵdq=bo,e.ɵdr=mo,e.ɵds=vo,e.ɵdt=wo,e.ɵdu=Qs,e.ɵdv=N,e.ɵdw=ls,e.ɵdx=Ss,e.ɵdy=Cs,e.ɵdz=vs,e.ɵe=Ro,e.ɵea=ws,e.ɵeb=Ts,e.ɵec=xs,e.ɵed=As,e.ɵee=zs,e.ɵef=Bs,e.ɵeg=Vs,e.ɵeh=Gs,e.ɵei=la,e.ɵej=Ca,e.ɵek=va,e.ɵel=ma,e.ɵem=Sa,e.ɵen=Wa,e.ɵeo=Ya,e.ɵep=Ka,e.ɵeq=Ua,e.ɵer=ic,e.ɵes=vc,e.ɵf=Lo,e.ɵg=jo,e.ɵh=Pn,e.ɵi=Ln,e.ɵj=jn,e.ɵk=Nn,e.ɵl=Ao,e.ɵm=ko,e.ɵn=Cn,e.ɵo=z,e.ɵp=H,e.ɵq=W,e.ɵr=vn,e.ɵs=Uo,e.ɵt=Fo,e.ɵu=Vo,e.ɵv=We,e.ɵw=Ue,e.ɵx=Ye,e.ɵy=Ke,e.ɵz=Xe,Object.defineProperty(e,"__esModule",{value:!0})}));
17
17
  //# sourceMappingURL=clr-angular.umd.min.js.map