@coolon/angular-ui-powerups 2.0.0-alpha.20 → 2.0.0-alpha.21
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.
- package/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +4 -7
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/table-model.js +3 -5
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.js +1 -1
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +3 -6
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table.component.js +1 -1
- package/esm5/lib/components/table/table.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +4 -6
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +4 -7
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/table-model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
var j=function(t,e){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function L(t,e){function n(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var V=function(){return(V=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function N(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function U(t,e){return function(n,o){e(n,o,t)}}function H(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function B(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function q(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function z(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function G(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(z(arguments[e]));return t}var W=function(t){function e(e){var n=t.call(this)||this;return n.elementRef=e,n._commandEnabled=(new b.DelegatingValueModel).withDefault(!1),n._commandParameterProvided=!1,n}return L(e,t),Object.defineProperty(e.prototype,"pectinCommand",{get:function(){return this._command},set:function(t){this._command=t,this._commandEnabled.setDelegate(t?t.enabled:null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"commandParameter",{get:function(){return this._commandParameter},set:function(t){this._commandParameterProvided=!0,this._commandParameter=t},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){b.assert.notNil(this.pectinCommand),this.pectinCommand instanceof b.UnaryCommand?this._commandParameterProvided||b.lang.illegalState("UnaryCommands require the command parameter to be specified."):this._commandParameterProvided&&b.lang.illegalState("command parameters are only supported by UnaryCommands")},e.prototype.ngAfterViewInit=function(){var t=this;b.Dsl.disposeWith(this).when.valueOf(this._commandEnabled).changes((function(e){e?(t.elementRef.nativeElement.removeAttribute("disabled"),"A"===t.elementRef.nativeElement.tagName&&t.elementRef.nativeElement.setAttribute("href","javascript:void")):(t.elementRef.nativeElement.setAttribute("disabled","disabled"),"A"===t.elementRef.nativeElement.tagName&&t.elementRef.nativeElement.removeAttribute("href"))}),{initialValue:"triggerChange"})},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.notifyClick=function(t){t.preventDefault(),t.stopPropagation(),this.pectinCommand.enabled.value?this.pectinCommand instanceof b.UnaryCommand?this.pectinCommand.withContext({event:t}).execute(this.commandParameter):this.pectinCommand.withContext({event:t}).execute():console.warn("disabled command clicked, ignoring.")},e.ctorParameters=function(){return[{type:n.ElementRef,decorators:[{type:n.Inject,args:[n.ElementRef]}]}]},N([n.Input(),H("design:type",Object),H("design:paramtypes",[Object])],e.prototype,"pectinCommand",null),N([n.Input(),H("design:type",Object),H("design:paramtypes",[Object])],e.prototype,"commandParameter",null),N([n.HostListener("click",["$event"]),H("design:type",Function),H("design:paramtypes",[Event]),H("design:returntype",void 0)],e.prototype,"notifyClick",null),e=N([n.Directive({selector:"[pectinCommand]"}),U(0,n.Inject(n.ElementRef)),H("design:paramtypes",[n.ElementRef])],e)}(b.GarbageCollector),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.ngOnDestroy=function(){this.dispose()},e=N([n.Directive()],e)}(b.GarbageCollector),X=function(t){function o(e,n,o,i){var r=t.call(this)||this;return r.focusTargetElement=e,r.ngZone=n,r.focusContext=i,r.document=o,b.Dsl.disposeWith(r).when.valueOf(r.focusContext.focused).changes((function(t){t&&!r.alreadyHasFocus()&&r.tryAndFocus()}),{initialValue:"triggerChangeUnlessNil"}),r}return L(o,t),o.prototype.onFocusIn=function(){this.focusContext.notifyFocusIn()},o.prototype.onFocusOut=function(){this.focusContext.notifyFocusOut()},o.prototype.alreadyHasFocus=function(){return this.isElementFocused(this.focusTarget)},o.prototype.isElementFocused=function(t){return this.document.activeElement===t},o.prototype.tryAndFocus=function(t){var e=this;void 0===t&&(t=5),this.modelShouldStillHaveFocus()&&this.canFocus()&&(this.alreadyHasFocus()||this.focusTarget.focus(),this.alreadyHasFocus()||(b.Logger.get(this).log("focus failed, trying "+t+" more times"),t>0?requestAnimationFrame((function(){e.tryAndFocus(t-1)})):b.Logger.get(this).warn("Tried to focus but gave up as the component wasn't enabled or visible.")))},Object.defineProperty(o.prototype,"focusTarget",{get:function(){return this.focusTargetElement},enumerable:!0,configurable:!0}),o.prototype.modelShouldStillHaveFocus=function(){return this.focusContext.focused.value},o.prototype.canFocus=function(){var t=this.focusTarget.getBoundingClientRect();return t.height>=0&&t.height>=0&&!this.focusTarget.disabled},o=N([U(1,n.Inject(n.NgZone)),U(2,n.Inject(e.DOCUMENT)),H("design:paramtypes",[HTMLElement,n.NgZone,Object,Object])],o)}(b.GarbageCollector),$=function(){function t(t,e){this.ngZone=t,this.document=e}return t.prototype.createBinding=function(t,e){return new X(t,this.ngZone,this.document,e)},t.ctorParameters=function(){return[{type:n.NgZone,decorators:[{type:n.Inject,args:[n.NgZone]}]},{type:void 0,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]}]},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(n.NgZone),n.ɵɵinject(e.DOCUMENT))},token:t,providedIn:"root"}),t=N([n.Injectable({providedIn:"root"}),U(0,n.Inject(n.NgZone)),U(1,n.Inject(e.DOCUMENT)),H("design:paramtypes",[n.NgZone,Object])],t)}(),Y=function(t){function e(e,n){var o=t.call(this)||this;return o.el=e,o.focusBindingFactory=n,o}return L(e,t),e.prototype.onFocusIn=function(){this.hasBinding()&&this.pectinFocusBinding.notifyFocusIn()},e.prototype.onFocusOut=function(){this.hasBinding()&&this.pectinFocusBinding.notifyFocusOut()},e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.hasBinding()?this.registerDisposable(this.focusBindingFactory.createBinding(this.focusTarget,this.pectinFocusBinding)):b.Logger.get(this).warn("pectinFocusBinding was nil")},e.prototype.hasBinding=function(){return!!this.pectinFocusBinding&&!!this.pectinFocusBinding},Object.defineProperty(e.prototype,"focusTarget",{get:function(){return this.focusBindingTarget||this.el.nativeElement},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:n.ElementRef,decorators:[{type:n.Inject,args:[n.ElementRef]}]},{type:$}]},N([n.Input(),H("design:type",Object)],e.prototype,"pectinFocusBinding",void 0),N([n.Input(),H("design:type",HTMLElement)],e.prototype,"focusBindingTarget",void 0),N([n.HostListener("focusin"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"onFocusIn",null),N([n.HostListener("focusout"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"onFocusOut",null),e=N([n.Directive({selector:"[pectinFocusBinding]"}),U(0,n.Inject(n.ElementRef)),H("design:paramtypes",[n.ElementRef,$])],e)}(K),Z=function(){function t(){}return t=N([n.NgModule({declarations:[W,Y],imports:[e.CommonModule,l.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule],exports:[W,Y]})],t)}(),J=function(t){function e(){return t.call(this)||this}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"addCardCommand",void 0),N([n.ContentChild("addCardTemplate"),H("design:type",n.TemplateRef)],e.prototype,"addCardTemplate",void 0),e=N([n.Component({selector:"aup-card-container",template:'<div class="card-container">\n <ng-content></ng-content>\n\n <div class="add-card-container" *ngIf="addCardCommand.enabled.value" [pectinCommand]="addCardCommand">\n <aup-icon icon="mat:add"></aup-icon>\n </div>\n\n <div class="add-card-template" *ngIf="addCardTemplate">\n <ng-container [ngTemplateOutlet]="addCardTemplate"></ng-container>\n </div>\n\n</div>\n',styles:[":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]}),H("design:paramtypes",[])],e)}(K),Q=function(t){function e(e){var n=t.call(this)||this;return n.focusManager=e,n.restoreFocusCommand=b.Command.create((function(){n.restoreFocus()})),n.tabIndex=-1,n}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.restoreFocus=function(){this.focusManager.restoreFocus()},e.ctorParameters=function(){return[{type:b.FocusManager,decorators:[{type:n.Self}]}]},N([n.HostBinding("attr.tabindex"),H("design:type",Object)],e.prototype,"tabIndex",void 0),e=N([n.Component({selector:"aup-focus-container",template:"<ng-content></ng-content>\n",providers:[{provide:b.FocusManager}],styles:[":host{display:block}"]}),U(0,n.Self()),H("design:paramtypes",[b.FocusManager])],e)}(K),tt=function(t){function e(e,n,o){var i=t.call(this)||this;i.el=e,i.focusManager=n;var r=b.Dsl.disposeWith(i);r.chain,r.valueOf,r.before,r.when,r.after,r.observe,r.switchOn;return i.focusManager&&(i._focusContext=i.focusManager.registerFocusable(i),i.registerDisposable(i._focusContext),i.registerDisposable(o.createBinding(e.nativeElement,i.focusContext))),i}return L(e,t),Object.defineProperty(e.prototype,"focusable",{get:function(){return this.focusContext?0:void 0},enumerable:!0,configurable:!0}),e.prototype.onFocus=function(){var t;null===(t=this.focusContext)||void 0===t||t.notifyFocusIn()},e.prototype.onBlur=function(){var t;null===(t=this.focusContext)||void 0===t||t.notifyFocusOut()},Object.defineProperty(e.prototype,"focusContext",{get:function(){return this._focusContext},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:n.ElementRef},{type:b.FocusManager},{type:$}]},N([n.HostBinding("attr.tabindex"),H("design:type",Object),H("design:paramtypes",[])],e.prototype,"focusable",null),N([n.HostListener("focus"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"onFocus",null),N([n.HostListener("blur"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"onBlur",null),e=N([n.Component({template:""}),H("design:paramtypes",[n.ElementRef,b.FocusManager,$])],e)}(K),et=function(t){function e(){var e=t.call(this)||this;e.onValueEditedListeners=new b.EventListenerList,e.dense=!1,e.focus=new n.EventEmitter,e.blur=new n.EventEmitter,e.enterKey=new n.EventEmitter,e.escapeKey=new n.EventEmitter,e.baseClassName="aup-input-component";var o=e;return e.errorStateMatcher={isErrorState:function(t,e){return o.hasErrors()}},e}return L(e,t),e.prototype.notifyClick=function(){this.safelyInvoke(this.clickCommand)},e.prototype.notifyFocusIn=function(){this.safelyInvoke(this.focusCommand),this.focus.emit()},e.prototype.notifyFocusOut=function(){this.safelyInvoke(this.blurCommand),this.blur.emit()},e.prototype.notifyEnterKey=function(){this.safelyInvoke(this.enterCommand),this.enterKey.emit()},e.prototype.notifyEscapeKey=function(){this.safelyInvoke(this.escapeCommand),this.escapeKey.emit()},e.prototype.safelyInvoke=function(t){t&&t.enabled.value&&t.execute()},e.prototype.ngOnInit=function(){},e.prototype.isEnabled=function(){return this.enabled.value},Object.defineProperty(e.prototype,"enabled",{get:function(){return this.formValueModel.enabled},enumerable:!0,configurable:!0}),e.prototype.hasErrors=function(){return!this.errorList.query().isEmpty()},Object.defineProperty(e.prototype,"errorList",{get:function(){return this.formValueModel.errorList},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstError",{get:function(){return this.hasErrors()?this.errorList.value[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusContext",{get:function(){return this.formValueModel.focusContext},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return this.dense?"never":this.userFloatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showHint",{get:function(){return!this.dense&&!!this.hint},enumerable:!0,configurable:!0}),e.prototype.onValueEdited=function(t){return this.onValueEditedListeners.add(t)},N([n.Input(),H("design:type",String)],e.prototype,"label",void 0),N([n.Input("floatLabel"),H("design:type",String)],e.prototype,"userFloatLabel",void 0),N([n.Input(),H("design:type",String)],e.prototype,"hint",void 0),N([n.Input(),H("design:type",String)],e.prototype,"placeholder",void 0),N([n.HostBinding("class.dense"),n.Input(),H("design:type",Object)],e.prototype,"dense",void 0),N([n.Input("command.focus"),H("design:type",b.Command)],e.prototype,"focusCommand",void 0),N([n.Input("command.blur"),H("design:type",b.Command)],e.prototype,"blurCommand",void 0),N([n.Input("command.enter"),H("design:type",b.Command)],e.prototype,"enterCommand",void 0),N([n.Input("command.escape"),H("design:type",b.Command)],e.prototype,"escapeCommand",void 0),N([n.Input("command.click"),H("design:type",b.Command)],e.prototype,"clickCommand",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"focus",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"blur",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"enterKey",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"escapeKey",void 0),N([n.HostBinding("class"),H("design:type",Object)],e.prototype,"baseClassName",void 0),N([n.HostListener("click"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"notifyClick",null),N([n.HostListener("focusin"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"notifyFocusIn",null),N([n.HostListener("focusout"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"notifyFocusOut",null),e=N([n.Component({template:""}),H("design:paramtypes",[])],e)}(K),nt=function(t){function e(){var e=t.call(this)||this;e.formValueModel=e.registerDisposable(new b.Form.DelegatingListModel),e.componentListModel=new b.MutableListModel,e.setValueIsInProgress=new b.Guard,e.valueChange=new n.EventEmitter;var o=b.Dsl.disposeWith(e),i=o.when,r=o.valueOf,a=o.chain,s=new b.Binding.Identity(e.formValueModel,e.componentListModel),l=r.any(e.setValueIsInProgress,a(s.direction).equals(b.Binding.Direction.RIGHT)).areTruthy();return i(e.componentListModel).changes((function(t,n){e.valueChange.emit(t),e.onValueEditedListeners.fire((function(e){return e(t,n)}))}),{initialValue:"ignore",unless:l}),b.DebugContext.tag(e.formValueModel,e.constructor.name+".formValueModel"),e}return L(e,t),Object.defineProperty(e.prototype,"value",{set:function(t){var e=this;this.setValueIsInProgress.whileTrue((function(){e.listHolder?e.listHolder.value=t:(e.listHolder=new b.MutableListModel(t),e.listModel=e.listHolder)}))},enumerable:!0,configurable:!0}),N([n.Input(),b.TrackExternal({delegateTo:"formValueModel"}),H("design:type",Object)],e.prototype,"listModel",void 0),N([n.Input(),H("design:type",Array),H("design:paramtypes",[Array])],e.prototype,"value",null),N([n.Output(),H("design:type",Object)],e.prototype,"valueChange",void 0),e=N([n.Component({template:""}),H("design:paramtypes",[])],e)}(et),ot=function(t){function e(){var e=t.call(this)||this;e.formValueModel=e.registerDisposable(new b.Form.DelegatingValueModel),e.setValueInProgress=new b.Guard,e.componentValueModel=new b.MutableValueModel,e.valueChange=new n.EventEmitter;var o=b.Dsl.disposeWith(e),i=o.when,r=o.chain,a=o.valueOf,s=new b.Binding.Identity(e.formValueModel,e.componentValueModel),l=a.any(e.setValueInProgress,r(s.direction).equals(b.Binding.Direction.RIGHT)).areTruthy();return i(e.componentValueModel).changes((function(t,n){e.valueChange.emit(t),e.onValueEditedListeners.fire((function(e){return e(t,n)}))}),{initialValue:"ignore",unless:l}),b.DebugContext.tag(e.formValueModel,e.constructor.name+".formValueModel"),e}return L(e,t),Object.defineProperty(e.prototype,"value",{set:function(t){var e=this;this.setValueInProgress.whileTrue((function(){e.plainValueHolder?e.plainValueHolder.value=t:(e.plainValueHolder=new b.MutableValueModel(t),e.valueModel=e.plainValueHolder)}))},enumerable:!0,configurable:!0}),N([n.Input(),b.TrackExternal({delegateTo:"formValueModel"}),H("design:type",Object)],e.prototype,"valueModel",void 0),N([n.Input(),H("design:type",Object),H("design:paramtypes",[Object])],e.prototype,"value",null),N([n.Output(),H("design:type",Object)],e.prototype,"valueChange",void 0),e=N([n.Component({template:""}),H("design:paramtypes",[])],e)}(et),it=function(t){function e(){var e=t.call(this)||this;e.filterValue=new b.MutableValueModel,e.optionLabelFormat=function(t){return t&&e.optionLabel?t[e.optionLabel]:t};var n=b.Dsl.disposeWith(e),o=n.chain,i=(n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn,o(e.filterValue).map((function(t){return _.isString(t)?t.toLowerCase():""})));return e.filteredOptions=o(e.optionsModel).select((function(t){return _.isEmpty(e.filterValue.value)||e.optionLabelFormat(t).toString().toLowerCase().includes(i.value)}),{dependsOn:i}),e}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.formatOption=function(t){return this.optionLabelFormat(t)},e.prototype.updateFilter=function(t){this.filterValue.value=t},e.prototype.onSelect=function(t){this.valueModel.value=t.option.value},N([n.Input(),b.TrackExternal(),H("design:type",b.ListModel)],e.prototype,"optionsModel",void 0),N([n.Input(),b.StoreInListModel("optionsModel"),H("design:type",Array)],e.prototype,"options",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"optionLabel",void 0),N([n.Input(),H("design:type",Boolean)],e.prototype,"allowNil",void 0),N([n.ContentChild("nilOptionTemplate"),H("design:type",n.TemplateRef)],e.prototype,"nilOptionTemplateRef",void 0),N([n.Input(),H("design:type",Function)],e.prototype,"optionLabelFormat",void 0),e=N([n.Component({selector:"aup-autocomplete-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <input type="string"\n matInput\n [matAutocomplete]="autocomplete"\n placeholder="{{placeholder}}"\n [ngModel]="componentValueModel.value"\n (ngModelChange)="updateFilter($event)"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-autocomplete #autocomplete [displayWith]="optionLabelFormat" [autoActiveFirstOption]="true" (optionSelected)="onSelect($event)">\n <mat-option *ngFor="let option of filteredOptions.value; let i = index"\n [value]="option"\n >{{formatOption(option)}}</mat-option>\n <mat-option *ngIf="allowNil">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n',styles:[":host{display:inline-block}mat-form-field{width:100%}"]}),H("design:paramtypes",[])],e)}(ot),rt=function(t){function e(){var e=t.call(this)||this;return e.color="accent",e.labelPosition="after",e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),H("design:type",String)],e.prototype,"color",void 0),N([n.Input(),H("design:type",String)],e.prototype,"labelPosition",void 0),e=N([n.Component({selector:"aup-checkbox-input",template:'\x3c!-- TODO: add focus binding --\x3e\n<mat-checkbox\n [(ngModel)]="componentValueModel.value"\n [color]="color"\n [labelPosition]="labelPosition"\n [disabled]="!isEnabled()"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n<mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n',styles:[":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-error,mat-hint{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}"]}),H("design:paramtypes",[])],e)}(ot),at=function(t){function e(){var e=t.call(this)||this;return e.optionLabelFormat=function(t){return t&&e.optionLabel?t[e.optionLabel]:t},e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal(),H("design:type",b.ListModel)],e.prototype,"optionsModel",void 0),N([n.Input(),b.StoreInListModel("optionsModel"),H("design:type",Array)],e.prototype,"options",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"optionLabel",void 0),N([n.ContentChild("optionTemplate"),H("design:type",n.TemplateRef)],e.prototype,"optionTemplateRef",void 0),N([n.Input(),H("design:type",Function)],e.prototype,"optionLabelFormat",void 0),e=N([n.Component({selector:"aup-multiple-select-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <mat-select placeholder="{{placeholder}}"\n multiple\n [(ngModel)]="componentListModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-option *ngFor="let option of optionsModel.value; let i = index" [value]="option">\n <ng-container *ngIf="!optionTemplateRef">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf="optionTemplateRef"\n [ngTemplateOutlet]="optionTemplateRef"\n [ngTemplateOutletContext]="{ $implicit: option, index: i }"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n',styles:[":host{display:inline-block}mat-form-field{width:100%}"]}),H("design:paramtypes",[])],e)}(nt),st=function(t){function e(){var e=t.call(this)||this;return e.min=Number.MIN_SAFE_INTEGER,e.max=Number.MAX_SAFE_INTEGER,e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),H("design:type",Object)],e.prototype,"min",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"max",void 0),e=N([n.Component({selector:"aup-number-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <input type="number"\n matInput\n placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n [min]="min"\n [max]="max"\n >\n <mat-hint *ngIf="hint && !dense" >{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n',styles:[""]}),H("design:paramtypes",[])],e)}(ot),lt=function(t){function e(){return t.call(this)||this}return L(e,t),e.prototype.ngOnInit=function(){},e=N([n.Component({selector:"aup-password-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <input type="password"\n matInput\n placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n\n',styles:[""]}),H("design:paramtypes",[])],e)}(ot),ct=function(t){function e(){var e=t.call(this)||this;return e.optionLabelFormat=function(t){return t&&e.optionLabel?t[e.optionLabel]:t},e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal(),H("design:type",b.ListModel)],e.prototype,"optionsModel",void 0),N([n.Input(),b.StoreInListModel("optionsModel"),H("design:type",Array)],e.prototype,"options",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"optionLabel",void 0),N([n.Input(),H("design:type",Boolean)],e.prototype,"allowNil",void 0),N([n.ContentChild("optionTemplate"),H("design:type",n.TemplateRef)],e.prototype,"optionTemplateRef",void 0),N([n.ContentChild("nilOptionTemplate"),H("design:type",n.TemplateRef)],e.prototype,"nilOptionTemplateRef",void 0),N([n.Input(),H("design:type",Function)],e.prototype,"optionLabelFormat",void 0),e=N([n.Component({selector:"aup-select-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <mat-select placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-option *ngIf="allowNil">\n <ng-container *ngIf="!nilOptionTemplateRef">{{placeholder}}</ng-container>\n <ng-container *ngIf="nilOptionTemplateRef" [ngTemplateOutlet]="nilOptionTemplateRef"></ng-container>\n </mat-option>\n <mat-option *ngFor="let option of optionsModel.value; let i = index" [value]="option">\n <ng-container *ngIf="!optionTemplateRef">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf="optionTemplateRef"\n [ngTemplateOutlet]="optionTemplateRef"\n [ngTemplateOutletContext]="{ $implicit: option, index: i }"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n',styles:[":host{display:inline-block}mat-form-field{width:100%}"]}),H("design:paramtypes",[])],e)}(ot),ut=function(t){function e(){var e=t.call(this)||this,n=b.Dsl.disposeWith(e),o=n.chain;n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn;return e.clearCommand=b.Command.create((function(){e.componentValueModel.value=null})),e.clearCommand.disableWhile(o.stringValue(e.componentValueModel).isBlank()),e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal({defaultValue:!1}),H("design:type",b.ValueModel)],e.prototype,"enableClearModel",void 0),N([n.Input(),b.StoreInValueModel("enableClearModel"),H("design:type",Boolean)],e.prototype,"enableClear",void 0),e=N([n.Component({selector:"aup-string-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <input matInput\n placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf="enableClear" [pectinCommand]="clearCommand">\n <aup-icon icon="mat:close"></aup-icon>\n </button>\n</mat-form-field>\n\n',styles:["button[disabled]{visibility:hidden}"]}),H("design:paramtypes",[])],e)}(ot),pt=function(t){function e(){var e=t.call(this)||this;return e.rows=2,e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),H("design:type",Object)],e.prototype,"rows",void 0),N([n.Input(),H("design:type",Number)],e.prototype,"cols",void 0),e=N([n.Component({selector:"aup-text-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <textarea matInput\n placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n [rows]="rows"\n [cols]="cols"\n >\n </textarea>\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n\n',styles:["button[disabled]{visibility:hidden}textarea{overflow:auto}"]}),H("design:paramtypes",[])],e)}(ot),dt=function(){function t(){}return Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){if(this._icon=t,!t)return this.errorMessage="icon is nil",void(this.prefix=void 0);var e=t.indexOf(":");e>0&&(this.prefix=this.icon.slice(0,e),this.suffix=this.icon.slice(e+1)),this.prefix&&(this.errorMessage='Unknown icon "'+t+'"'),this.errorMessage='Unknown icon prefix "'+this.prefix+'"'},enumerable:!0,configurable:!0}),N([n.Input(),H("design:type",String),H("design:paramtypes",[String])],t.prototype,"icon",null),t=N([n.Component({selector:"aup-icon",template:'<ng-container [ngSwitch]="prefix">\n\n <mat-icon *ngSwitchCase="\'svg\'"\n [svgIcon]="suffix"\n class="svgIcon">\n </mat-icon>\n\n <mat-icon *ngSwitchCase="\'mat\'">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase="\'fab\'"\n class="faIconWrapper">\n <fa-icon [icon]="suffix">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]="errorMessage">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n',styles:[":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center;width:24px;height:24px}.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]})],t)}(),ft=function(){function t(){}return t=N([n.Component({selector:"aup-noop",template:"",styles:[":host{display:block}"]}),H("design:paramtypes",[])],t)}(),ht=function(){function t(){}return t.prototype.ngOnInit=function(){},t=N([n.Component({selector:"aup-scroll-container",template:'<div class="container" cdkScrollable>\n <ng-content></ng-content>\n</div>\n',styles:[":host{display:flex;flex-direction:column;min-height:0;align-items:stretch}.container{display:flex;flex-direction:column;flex:1;flex-basis:0;overflow-y:scroll;align-items:stretch}"]}),H("design:paramtypes",[])],t)}(),mt=function(){function t(){this.underline=!1}return t.prototype.ngOnInit=function(){},N([n.Input(),n.HostBinding("class.underline"),H("design:type",Object)],t.prototype,"underline",void 0),t=N([n.Component({selector:"aup-section-header",template:"<ng-content></ng-content>\n",styles:[":host{--def-border-bottom-color:var(--border-bottom-color, rgba(0, 0, 0, 0.07));display:block;padding:8px 16px;font-size:12px;line-height:12px;color:rgba(0,0,0,.5)}:host.underline{border-bottom:1px solid var(--def-border-bottom-color)}"]}),H("design:paramtypes",[])],t)}(),gt=function(){function t(t){this.templateRef=t}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.name},enumerable:!0,configurable:!0}),t}(),yt=function(t){function e(e){var n=t.call(this,e)||this;return n.isDefault=!1,n}var o;return L(e,t),o=e,e.prototype.matches=function(t){return this.aupSwitchCaseWhen===t},e.ctorParameters=function(){return[{type:n.TemplateRef}]},N([n.Input(),H("design:type",Object)],e.prototype,"aupSwitchCaseWhen",void 0),e=o=N([n.Directive({selector:"[aupSwitchCaseWhen]",providers:[{provide:gt,useExisting:o}]}),H("design:paramtypes",[n.TemplateRef])],e)}(gt),vt=function(t){function e(e){var n=t.call(this,e)||this;return n.isDefault=!0,n}var o;return L(e,t),o=e,e.prototype.matches=function(t){return!1},e.ctorParameters=function(){return[{type:n.TemplateRef}]},e=o=N([n.Directive({selector:"[aupSwitchCaseDefault]",providers:[{provide:gt,useExisting:o}]}),H("design:paramtypes",[n.TemplateRef])],e)}(gt),bt=function(t){function e(e){var n=t.call(this)||this;return n.cdr=e,n.selectedIndex=0,n}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){var t=this,e=this.switchCaseOptions.changes.subscribe((function(e){return t.updateSelection()}));this.onDispose((function(){return e.unsubscribe()}));var n=b.Dsl.disposeWith(this);n.chain;n.when.valueOf(this.switchModel).changes((function(){return t.updateSelection()}),{initialValue:"triggerChange"}),this.cdr.detectChanges()},e.prototype.updateSelection=function(){var t=this,e=[];this.switchCaseOptions.forEach((function(n,o){n.matches(t.switchModel.value)&&e.push(o)})),e.length>1&&console.warn("found "+e.length+" matching case values, displaying the first."),0===e.length&&(this.switchCaseOptions.forEach((function(t,n){e.push(n)})),e.length>1&&console.warn("found "+e.length+" default case values, displaying the first.")),e.length>0?this.selectedIndex=e[0]:(console.warn("found no matching or default case values."),this.selectedIndex=-1)},e.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},N([n.Input(),b.TrackExternal(),H("design:type",b.ValueModel)],e.prototype,"switchModel",void 0),N([n.Input(),b.StoreInValueModel("switchModel"),H("design:type",Object)],e.prototype,"switch",void 0),N([n.ContentChildren(gt),H("design:type",n.QueryList)],e.prototype,"switchCaseOptions",void 0),e=N([n.Component({selector:"aup-switch-case",template:'<mat-tab-group class="content-wrapper" no-tab-header full-height-tabs [selectedIndex]="selectedIndex">\n <mat-tab *ngFor="let option of switchCaseOptions">\n <ng-template [ngTemplateOutlet]="option.templateRef"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n',styles:[":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}"]}),H("design:paramtypes",[n.ChangeDetectorRef])],e)}(K),Ct=Symbol("aup-cell-header-renderer-component-ref"),It=Symbol("aup-cell-renderer-component-ref"),wt=Symbol("aup-cell-editor-component-ref"),Rt=Symbol("aup-cell-renderer-portal-component"),xt=Symbol("aup-cell-editor-portal-component"),Pt=function(){},St=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.initialiseHeader=n,o}return L(e,t),e.prototype.initialiseHost=function(t,e){I.assert.isTruthy(t),t[Ct]=new c.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){this.initialiseHeader(e,t.column)},e}(Pt),Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e}(Pt),Ot=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.updateComponent=n,o}return L(e,t),e.prototype.initialiseHost=function(t,e){t[It]=new c.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){t[Rt]=e,this.updateComponent(e,t.getRowData(),!0)},e.prototype.pushState=function(t){t[Rt]&&this.updateComponent(t[Rt],t.getRowData(),!1)},e}(Mt),At=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.initialiseEditorSession=n,o}return L(e,t),e.prototype.initialiseHost=function(t,e){I.assert.isTruthy(t),t[wt]=new c.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){t[xt]=e,this.initialiseEditorSession(e,t.editSession)},e}(Pt),Tt=function(t){function e(){return t.call(this)||this}return L(e,t),e.prototype.registerPortal=function(t,e,n,o){this.templateRef=t,this.viewContainer=e,this.fillCell=n,this.padChild=o},e.prototype.initialiseHost=function(t,e){I.assert.isTruthy(t)},e.prototype.onPortalAttached=function(t,e){},e.prototype.pushState=function(t){t[It]=this.createPortal(t.getRowData()),t.fillCell=this.fillCell,t.padChild=this.padChild},e.prototype.createPortal=function(t){return new c.TemplatePortal(this.templateRef,this.viewContainer,V(V({},t),{$implicit:t.row}))},e}(Mt),Dt=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),N([n.Input(),H("design:type",Object),H("design:paramtypes",[Object])],t.prototype,"value",null),t=N([n.Component({selector:"aup-default-cell-renderer",template:"{{value}}\n",styles:[""]}),H("design:paramtypes",[])],t)}(),Et=function(){function t(){}return N([n.Input(),H("design:type",String)],t.prototype,"headerText",void 0),t=N([n.Component({selector:"aup-default-header-renderer",template:"{{headerText}}\n",styles:[""]}),H("design:paramtypes",[])],t)}(),Ft=function(t){function e(e,n,o,i){var r=t.call(this)||this;return r.rowId=e,r.form=o,r.saveCommand=i,r._liveRowValue=new b.MutableValueModel,r.liveRowValue=r._liveRowValue.readonly,r.form.load(n),r._liveRowValue.value=n,r.form.onEdit((function(){r._liveRowValue.value=R(r._liveRowValue.value,(function(t){r.form.writeDirtyStateTo(t)}))})),r}return L(e,t),e}(b.GarbageCollector),kt=function(t){function e(){var e=t.call(this)||this;return e.saveCommand=b.Command.create((function(){e.editSession.saveCommand.execute(e.editSession.form).then((function(t){t&&e.editSession.dispose()}))})),e.cancelCommand=b.Command.create((function(){e.editSession.dispose()})),e}return L(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"form",{get:function(){var t;return null===(t=this.editSession)||void 0===t?void 0:t.form},enumerable:!0,configurable:!0}),N([n.Input(),H("design:type",Object)],e.prototype,"row",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"editRowCommand",void 0),N([n.Input(),H("design:type",Ft)],e.prototype,"editSession",void 0),e=N([n.Component({selector:"aup-row-editor-controls",template:'<button *ngIf="!editSession" mat-icon-button [pectinCommand]="editRowCommand" class="edit-button"><aup-icon icon="mat:edit"></aup-icon></button>\n<button *ngIf="editSession" mat-icon-button [pectinCommand]="saveCommand"><aup-icon icon="mat:done"></aup-icon></button>\n<button *ngIf="editSession" mat-icon-button [pectinCommand]="cancelCommand"><aup-icon icon="mat:clear"></aup-icon></button>\n',styles:[":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}"]}),H("design:paramtypes",[])],e)}(K),_t=function(t){function e(){var e=t.call(this)||this;return e.selectCommand=b.Command.create((function(){e.selectionModel.selectCommand.execute(e.row)})),e}return L(e,t),e.prototype.isSelected=function(){return this.selectionModel.isSelected(this.row)},N([n.Input(),H("design:type",Object)],e.prototype,"row",void 0),e=N([n.Component({selector:"aup-select-cell-renderer",template:'<mat-checkbox [pectinCommand]="selectCommand" [checked]="isSelected()"></mat-checkbox>\n',styles:[""]}),H("design:paramtypes",[])],e)}(K),jt=function(t){function e(){var e=t.call(this)||this;return e.selectCommand=b.Command.create((function(){e.selectionModel.toggleAllCommand.execute()})),e}return L(e,t),e.prototype.isSelected=function(){var t;return(null===(t=this.selectionModel)||void 0===t?void 0:t.allSelected.value)||!1},e.prototype.isIntermediate=function(){var t;return(null===(t=this.selectionModel)||void 0===t?void 0:t.someSelected.value)||!1},e=N([n.Component({selector:"aup-select-header-cell-renderer",template:'<mat-checkbox *ngIf="enableHeaderControls" [pectinCommand]="selectCommand" [checked]="isSelected()" [indeterminate]="this.isIntermediate()"></mat-checkbox>\n',styles:[""]}),H("design:paramtypes",[])],e)}(K),Lt=function(){},Vt=Symbol("aup-cell-renderer:row-data-cache"),Nt=function(){function t(t,e){this.columnId=t,this.defaults=e,this._selectRowOnClick=void 0,this.cellHeaderRenderer(Et,(function(t,e){t.headerText=e.getHeaderText()}))}return t.prototype.getHeaderText=function(){var t;return(null===(t=this.getColumnTextProperties())||void 0===t?void 0:t.headerText())||this.getDefaultHeaderText()},t.prototype.getDefaultHeaderText=function(){return this.columnId},t.prototype.getColumnTextProperties=function(){return this._columnTextProperties||this.defaults.getColumnTextProperties(this)},t.prototype.textProperties=function(t){return this._columnTextProperties=t,this},t.prototype.configureHeaderRenderer=function(t){this._columnHeaderPortalRef=t},t.prototype.configureCellRenderer=function(t){this._cellRendererPortalRef=t},t.prototype.configureCellEditor=function(t){this._cellEditorPortalRef=t},t.prototype.cellHeaderRenderer=function(t,e){return this.configureHeaderRenderer(new St(t,e)),this},t.prototype.hasEditorPortal=function(){return!!this._cellEditorPortalRef},t.prototype.attachHeaderCell=function(t){this._columnHeaderPortalRef.initialiseHost(t,this)},t.prototype.attachCell=function(t){this._cellRendererPortalRef.initialiseHost(t,this),this.hasEditorPortal()&&this._cellEditorPortalRef.initialiseHost(t,this)},t.prototype.onHeaderAttached=function(t,e){this._columnHeaderPortalRef.onPortalAttached(t,e)},t.prototype.onRendererAttached=function(t,e){this._cellRendererPortalRef.onPortalAttached(t,e)},t.prototype.onEditorAttached=function(t,e){this._cellEditorPortalRef.onPortalAttached(t,e)},t.prototype.updatePortalContent=function(t){this._cellRendererPortalRef.pushState(t)},t.prototype.selectRowOnClick=function(t){return this._selectRowOnClick=t,this},t.prototype.isRowSelectionEnabled=function(){return this._selectRowOnClick},t.prototype.isRowSelectionExplicitlyEnabled=function(){return!0===this._selectRowOnClick},t.prototype.isRowSelectionExplicitlyDisabled=function(){return!1===this._selectRowOnClick},N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",String)],t.prototype,"getHeaderText",null),N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",Object)],t.prototype,"getColumnTextProperties",null),t}(),Ut=function(t){function e(e,n,o){var i=t.call(this,e,o)||this;return i.property=n,i._format=function(t){return t},i.cellRenderer(Dt),i}return L(e,t),e.prototype.cellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Ot(t,(function(t,o,i){i&&(_.isFunction(e)?e(t):_.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t)),t.value=n._format(o.row[n.property]),!_.isFunction(e)&&_.isFunction(null==e?void 0:e.onRowUpdate)&&e.onRowUpdate(t,o.row)}))),this},e.prototype.mutableCellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Ot(t,(function(t,o,i){t[Vt]=o.row;var r=!1;i&&(_.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t),t.onValueEdited((function(n,o){r||e.onValueEdit(t[Vt],n,o)}))),r=!0,t.value=o.row[n.property],r=!1,!_.isFunction(e)&&_.isFunction(null==e?void 0:e.onRowUpdate)&&e.onRowUpdate(t,o.row)}))),this},e.prototype.cellEditor=function(t,e,n){var o=this,i=Array.isArray(e)?e:void 0,r=_.isFunction(e)?e:n;return this.configureCellEditor(new At(t,(function(t,e){var n=e.form.pluck(o.property);i&&n.validateUsing(i),t.valueModel=n,r&&r(t)}))),this},e.prototype.format=function(t){return I.assert.isFunction(t),this._format=t,this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(Nt),Ht=function(t){function e(e,n,o){var i=t.call(this,e,o)||this;return i.property=n,i._format=function(t){return t.map((function(t){return null==t?void 0:t.toString()})).join(", ")},i.cellRenderer(Dt),i}return L(e,t),e.prototype.cellRenderer=function(t){var e=this;return this.configureCellRenderer(new Ot(t,(function(t,n){t.value=e._format(n.row[e.property])}))),this},e.prototype.cellEditor=function(t,e,n){var o=this,i=Array.isArray(e)?e:void 0,r=_.isFunction(e)?e:n;return this.configureCellEditor(new At(t,(function(t,e){var n=e.form.pluckList(o.property);i&&n.validateUsing(i),t.listModel=n,r&&r(t)}))),this},e.prototype.format=function(t){return I.assert.isFunction(t),this._format=t,this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(Nt),Bt=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.getValue=o,i.cellRenderer(Dt),i}return L(e,t),e.prototype.cellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Ot(t,(function(t,o,i){i&&(_.isFunction(e)?e(t):_.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t)),t.value=n.getValue(o.row),!_.isFunction(e)&&_.isFunction(null==e?void 0:e.onRowUpdate)&&e.onRowUpdate(t,o.row)}))),this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(Nt),qt=function(t){function e(e,n,o){var i=t.call(this,e,o)||this;return i.cellRenderer(kt),i}return L(e,t),e.prototype.cellRenderer=function(t){return this.configureCellRenderer(new Ot(t,(function(t,e){t.row=e.row,t.editSession=e.editSession,t.editRowCommand=e.editRowCommand}))),this},e.prototype.getDefaultHeaderText=function(){return""},e}(Nt),zt=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.config=new Tt,o.configureCellRenderer(o.config),o}return L(e,t),e.prototype.setTemplate=function(t,e,n,o){this.config.registerPortal(t,e,n,o)},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(Nt),Gt=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.selectionModel=o,i._enableHeaderControls=!0,i.selectOnRowClick(!1),o instanceof b.MultipleSelectionModel&&i.cellHeaderRenderer(jt,(function(t){t.selectionModel=o,t.enableHeaderControls=i._enableHeaderControls})),i.configureCellRenderer(new Ot(_t,(function(t,e){t.row=e.row,t.selectionModel=o}))),i}return L(e,t),e.prototype.getDefaultHeaderText=function(){return""},e.prototype.isRowSelectionEnabledByDefault=function(){return this.isRowSelectionExplicitlyEnabled()},e.prototype.selectOnRowClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e.prototype.enableHeaderControls=function(t){return this._enableHeaderControls=t,this},e.prototype.selectRow=function(t){this.selectionModel.selectCommand.execute(t)},e}(Nt),Wt=function(t,e){this.className=t,this.matches=e},Kt=function(){function t(t){var e=this;this.sourceOfTruth=t,this._garbage=new b.GarbageCollector,this._columns=new b.MutableListModel,this._editorSessions=new b.MutableListModel,this.rowClassNamePredicates=[],this._createForm=function(t){return new b.DirtyTrackingForm},this.identityOf=t.identityOf;var n=b.Dsl.disposeWith(this._garbage),o=n.chain;n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn;this._columnsById=o(this._columns).indexBy("columnId"),this._rowsBeingEdited=new b.MutableListModel([],{identifiedWith:this.identityOf}),this._editorSessionByRowId=o(this._editorSessions).indexBy("rowId"),this.editing=o(this._editorSessions).count().isGreaterThan(0),this.dataSource=o(this.sourceOfTruth).replaceAll(this.rowsBeingEdited),this.firstEditableColumn=o(this.columns).select((function(t){return t.hasEditorPortal()})).first(),this.hasColumnsWithRowSelectionExplicitlyEnabled=o(this._columns).findIndex((function(t){return t.isRowSelectionExplicitlyEnabled()})).isGreaterThanOrEqualTo(0),this.addRowClass("enable-hover",(function(){return e.isRowSelectionEnabled()}))}var e;return e=t,t.fromList=function(t,n){var o=new e(t);return n(o),o},Object.defineProperty(t.prototype,"rowsBeingEdited",{get:function(){return this._rowsBeingEdited.readonly},enumerable:!0,configurable:!0}),t.prototype.getTrackByFunction=function(){var t=this;return function(e,n){return t.identityOf?t.identityOf(n):e}},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns.readonly},enumerable:!0,configurable:!0}),t.prototype.pluck=function(t,e){return this.addColumn(new Ut((null==e?void 0:e.columnId)||t.toString(),t,this))},t.prototype.pluckList=function(t,e){return this.addColumn(new Ht((null==e?void 0:e.columnId)||t.toString(),t,this))},t.prototype.addSelectionColumn=function(t){return b.assert.isNil(this.selectionColumnModel),this.selectionColumnModel=new Gt("selection",this,t),this.addColumn(this.selectionColumnModel)},t.prototype.addEditControls=function(t){return this.saveCommand=t,this.addColumn(new qt("editControls",t,this))},t.prototype.addCustomColumn=function(t,e){return this.addColumn(new Bt(t,this,e))},t.prototype.addComponentColumn=function(t,e,n){return this.addColumn(new Bt(t,this,(function(t){return t}))).cellRenderer(e,n)},t.prototype.addTemplateColumn=function(t){return this.addColumn(new zt(t,this))},t.prototype.addRowClass=function(t,e){this.rowClassNamePredicates.push(new Wt(t,e))},t.prototype.getRowClasses=function(t){var e=[];return this.rowClassNamePredicates.forEach((function(n){n.matches(t)&&e.push(n.className)})),e},t.prototype.useFormFactory=function(t){return this._createForm=t,this},t.prototype.addColumn=function(t){return this._columnsById.get(t.columnId)?b.lang.illegalState("Column with id="+t.columnId+" already exists"):this._columns.push(t),t},t.prototype.columnTextProperties=function(t){this._columnTextPropertiesLookup=t},t.prototype.getColumnTextProperties=function(t){var e=this._columnTextPropertiesLookup?this._columnTextPropertiesLookup[t.columnId]:void 0;return e?e():void 0},t.prototype.startEditSession=function(t){var e=this,n=this.identityOf(t);if(this._rowsBeingEdited.query().indexOf(t)>-1)return b.lang.illegalState("Row with id="+n+" already being edited");var o=new Ft(n,t,this._createForm(t),this.saveCommand);return b.Dsl.disposeWith(o).when.valueOf(o.liveRowValue).changes((function(t){e._rowsBeingEdited.replaceOrPush(t)}),{initialValue:"triggerChangeUnlessNil"}),this._editorSessions.push(o),o.onDispose((function(){e._rowsBeingEdited.remove(o.liveRowValue.value),e._editorSessions.remove(o)})),o},t.prototype.getEditSessionFor=function(t){return this._editorSessionByRowId.get(this.identityOf(t))},t.prototype.cancelAllEditorSessions=function(){var t=this;this._editorSessions.runInTransaction((function(e){t._rowsBeingEdited.runInTransaction((function(){e.value.forEach((function(t){return t.dispose()}))}))}))},t.prototype.isRowSelectionEnabledFor=function(t){var e;return this.selectionColumnModel&&(null!==(e=t.isRowSelectionEnabled())&&void 0!==e?e:this.isRowSelectionEnabledByDefault())},t.prototype.isRowSelectionEnabledByDefault=function(){return this.selectionColumnModel&&this.selectionColumnModel.isRowSelectionEnabledByDefault()},t.prototype.isRowSelectionEnabled=function(){return this.hasColumnsWithRowSelectionExplicitlyEnabled.value||this.isRowSelectionEnabledByDefault()},t.prototype.selectRow=function(t){var e;null===(e=this.selectionColumnModel)||void 0===e||e.selectRow(t)},t.ctorParameters=function(){return[{type:b.ListModel}]},t=e=N([b.TrackExternal.Strategy(new b.TrackExternal.OneTimeBinding),H("design:paramtypes",[b.ListModel])],t)}(),Xt=function(t){function e(){return t.call(this)||this}return L(e,t),e.prototype.ngOnInit=function(){var t=b.Dsl.disposeWith(this),e=t.chain;t.valueOf,t.before,t.when,t.after,t.observe,t.switchOn;this.columns=e(this.tableModel.columns),this.columnIds=e(this.columns).pluck("columnId"),this.columnsById=e(this.columns).indexBy("columnId")},e.prototype.isEditing=function(t){return!!this.tableModel.getEditSessionFor(t)},e.prototype.registerColumnTemplate=function(t,e,n,o,i){var r=this.columnsById.get(t);r instanceof zt&&r.setTemplate(e,n,o,i)},e.prototype.onCellClicked=function(t,e){this.tableModel.isRowSelectionEnabledFor(t)&&this.tableModel.selectRow(e)},N([n.Input(),b.TrackExternal(),H("design:type",Kt)],e.prototype,"tableModel",void 0),e=N([n.Component({selector:"aup-table",template:'<table mat-table [dataSource]="tableModel.dataSource.value" [trackBy]="tableModel.getTrackByFunction()">\n\n <ng-container *ngFor="let column of columns.value; index as index; first as first; last as last" matColumnDef="{{column.columnId}}">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]="column"\n [attr.column-index]="index"\n [attr.column-id]="column.columnId"\n [class.first-column]="first"\n [class.last-column]="last"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef="let row" (click)="onCellClicked(column, row)" [class.enable-cursor]="tableModel.isRowSelectionEnabledFor(column)">\n <aup-table-cell-renderer [column]="column"\n [row]="row"\n [tableModel]="tableModel"\n [editSession]="tableModel.getEditSessionFor(row)"\n [attr.column-index]="index"\n [attr.column-id]="column.columnId"\n [class.first-column]="first"\n [class.last-column]="last"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef="columnIds.value"></tr>\n <tr mat-row *matRowDef="let row; columns: columnIds.value;"\n [ngClass]="tableModel.getRowClasses(row)"\n ></tr>\n\n</table>\n',styles:[":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]}),H("design:paramtypes",[])],e)}(K),$t=function(){function t(t,e,n){this.host=t,this.templateRef=e,this.viewContainer=n,this.aupColumnTemplateFillCell=!1,this.aupColumnTemplateAutoPadChild=void 0}return t.prototype.ngOnInit=function(){var t;b.assert.isTruthy(this.aupColumnTemplateColumnId),this.host.registerColumnTemplate(this.aupColumnTemplateColumnId,this.templateRef,this.viewContainer,this.aupColumnTemplateFillCell,null!==(t=this.aupColumnTemplateAutoPadChild)&&void 0!==t?t:this.aupColumnTemplateFillCell)},t.ctorParameters=function(){return[{type:Xt},{type:n.TemplateRef},{type:n.ViewContainerRef}]},N([n.Input(),H("design:type",String)],t.prototype,"aupColumnTemplate",void 0),N([n.Input(),H("design:type",String)],t.prototype,"aupColumnTemplateColumnId",void 0),N([n.Input(),H("design:type",Object)],t.prototype,"aupColumnTemplateFillCell",void 0),N([n.Input(),H("design:type",Object)],t.prototype,"aupColumnTemplateAutoPadChild",void 0),t=N([n.Directive({selector:"[aupColumnTemplate]"}),H("design:paramtypes",[Xt,n.TemplateRef,n.ViewContainerRef])],t)}(),Yt=function(t){function e(){var e=t.call(this)||this;return e.defaultClassNames="aup-cell-renderer",e.fillCell=!1,e.padChild=!1,e.editRowCommand=b.Command.create((function(){e.tableModel.startEditSession(e.row)})),e}return L(e,t),e.prototype.ngOnInit=function(){var t=b.Dsl.disposeWith(this),e=t.chain;t.valueOf,t.before,t.when,t.after,t.observe,t.switchOn;this.firstEditableColumn=e(this.tableModel.firstEditableColumn).equals(this.column),this.column.attachCell(this)},e.prototype.hasActiveEditor=function(){return!!this.editSession&&!!this.column.hasEditorPortal()},e.prototype.initialiseRenderer=function(t){this.column.onRendererAttached(this,t)},e.prototype.initialiseEditor=function(t){var e=this;this.column.onEditorAttached(this,t),this.firstEditableColumn.value&&setTimeout((function(){return e.tryAndFocusEditor(t)}))},e.prototype.tryAndFocusEditor=function(t){var e;if(t.requestFocus)t.requestFocus();else{var n=t.valueModel||t.listModel;null===(e=null==n?void 0:n.focusContext)||void 0===e||e.requestFocus()}},e.prototype.ngOnChanges=function(t){this.column.updatePortalContent(this)},e.prototype.getRendererPortal=function(){return this[It]},e.prototype.getEditorPortal=function(){return this[wt]},e.prototype.getRowData=function(){return{row:this.row,editSession:this.editSession,editRowCommand:this.editRowCommand}},N([n.Input(),H("design:type",Object)],e.prototype,"row",void 0),N([n.Input(),H("design:type",Nt)],e.prototype,"column",void 0),N([n.Input(),H("design:type",Ft)],e.prototype,"editSession",void 0),N([n.Input(),H("design:type",Kt)],e.prototype,"tableModel",void 0),N([n.HostBinding("class"),H("design:type",Object)],e.prototype,"defaultClassNames",void 0),N([n.HostBinding("class.fillCell"),H("design:type",Object)],e.prototype,"fillCell",void 0),N([n.HostBinding("class.padChild"),H("design:type",Object)],e.prototype,"padChild",void 0),e=N([n.Component({selector:"aup-table-cell-renderer",template:'<ng-container *ngIf="!hasActiveEditor()" [cdkPortalOutlet]="getRendererPortal()" (attached)="initialiseRenderer($event.instance)"></ng-container>\n<ng-container *ngIf="hasActiveEditor()" [cdkPortalOutlet]="getEditorPortal()" (attached)="initialiseEditor($event.instance)"></ng-container>\n',styles:[""]}),H("design:paramtypes",[])],e)}(K),Zt=function(){function t(){this.defaultClassNames="aup-header-cell-renderer"}return t.prototype.ngOnInit=function(){this.column.attachHeaderCell(this)},t.prototype.initialiseHeader=function(t){this.column.onHeaderAttached(this,t)},t.prototype.getPortal=function(){return this[Ct]},N([n.Input(),H("design:type",Nt)],t.prototype,"column",void 0),N([n.HostBinding("class"),H("design:type",Object)],t.prototype,"defaultClassNames",void 0),t=N([n.Component({selector:"aup-table-header-cell-renderer",template:'<ng-container [cdkPortalOutlet]="getPortal()" (attached)="initialiseHeader($event.instance)"></ng-container>\n',styles:[":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}"]}),H("design:paramtypes",[])],t)}(),Jt=function(t){function e(e){var n=t.call(this,e)||this;return n.focusManager=e,n}return L(e,t),e.prototype.arrowLeft=function(t){this.leftArrowCommand.enabled.value&&(t.preventDefault(),t.stopPropagation(),this.leftArrowCommand.execute())},e.prototype.arrowRight=function(t){this.rightArrowCommand.enabled.value&&(t.preventDefault(),t.stopPropagation(),this.rightArrowCommand.execute())},e.prototype.arrowDown=function(t){t.preventDefault(),t.stopPropagation(),this.focusManager.focusNext()},e.prototype.arrowUp=function(t){t.preventDefault(),t.stopPropagation(),this.focusManager.focusPrevious()},e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:b.FocusManager,decorators:[{type:n.Self}]}]},N([n.Input("command.arrowRight"),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"rightArrowCommand",void 0),N([n.Input("command.arrowLeft"),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"leftArrowCommand",void 0),N([n.HostListener("keyup.arrowLeft",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"arrowLeft",null),N([n.HostListener("keyup.arrowRight",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"arrowRight",null),N([n.HostListener("keyup.arrowDown",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"arrowDown",null),N([n.HostListener("keyup.arrowUp",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"arrowUp",null),e=N([n.Component({selector:"aup-vertical-focus-container",template:"<ng-content></ng-content>\n",providers:[{provide:b.FocusManager}],styles:[":host{display:block}"]}),U(0,n.Self()),H("design:paramtypes",[b.FocusManager])],e)}(Q),Qt=function(){function t(t){t.addIconPacks(v.fas)}return t.ctorParameters=function(){return[{type:y.FaIconLibrary}]},t=N([n.NgModule({declarations:[et,ot,nt,st,ut,pt,lt,ct,at,it,rt,ht,ft,bt,yt,vt,Q,Jt,tt,J,Xt,kt,$t,Dt,Yt,_t,jt,Et,Zt,dt,mt],imports:[e.CommonModule,l.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule,Z,h.MatIconModule,d.MatButtonModule,f.MatCheckboxModule,m.MatTableModule,c.PortalModule,u.CdkScrollableModule,y.FontAwesomeModule,g.MatTooltipModule,p.MatAutocompleteModule],exports:[st,ut,pt,lt,rt,ct,at,it,ht,ft,bt,yt,vt,Q,Jt,tt,J,Xt,kt,$t,dt,mt],providers:[$]}),H("design:paramtypes",[y.FaIconLibrary])],t)}(),te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.align="start",e}return L(e,t),Object.defineProperty(e.prototype,"alignEnd",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignStretch",{get:function(){return"stretch"===this.align},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.hasConfirmText=function(){return!_.isEmpty(this.confirmText)},e.prototype.hasCancelText=function(){return!_.isEmpty(this.cancelText)},e.prototype.hasConfirmCommand=function(){return b.DelegatingCommand.hasDelegate(this.confirmCommand)},e.prototype.hasCancelCommand=function(){return b.DelegatingCommand.hasDelegate(this.cancelCommand)},N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"confirmCommand",void 0),N([n.Input(),H("design:type",String)],e.prototype,"confirmText",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"cancelCommand",void 0),N([n.Input(),H("design:type",String)],e.prototype,"cancelText",void 0),N([n.Input(),H("design:type",String)],e.prototype,"align",void 0),N([n.HostBinding("class.align-end"),H("design:type",Boolean),H("design:paramtypes",[])],e.prototype,"alignEnd",null),N([n.HostBinding("class.align-stretch"),H("design:type",Boolean),H("design:paramtypes",[])],e.prototype,"alignStretch",null),e=N([n.Component({selector:"aup-activity-actions",template:'<ng-container *ngIf="hasCancelCommand()">\n <button class="cancel" *ngIf="!hasCancelText()" mat-icon-button [pectinCommand]="cancelCommand">\n <aup-icon icon="mat:clear"></aup-icon>\n </button>\n <button class="cancel" *ngIf="hasCancelText()" mat-button [pectinCommand]="cancelCommand">{{cancelText}}</button>\n</ng-container>\n<ng-container *ngIf="hasConfirmCommand()">\n <button class="confirm" *ngIf="!hasConfirmText()" mat-icon-button [pectinCommand]="confirmCommand">\n <aup-icon icon="mat:done"></aup-icon>\n </button>\n <button class="confirm" *ngIf="hasConfirmText()" mat-button [pectinCommand]="confirmCommand">{{confirmText}}</button>\n</ng-container>\n<div class="content">\n <ng-content></ng-content>\n</div>\n',styles:[':host{display:-ms-grid;display:grid;grid-template-areas:"cancel confirm content";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:"content cancel confirm";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:"cancel content confirm";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}:host.align-stretch>.content{-ms-grid-row:1;-ms-grid-column:2}']})],e)}(K),ee=new n.InjectionToken("InteractionActivityData"),ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._busyModel=(new b.DelegatingValueModel).withDefault(!1),e.class="aup-activity",e}return L(e,t),e.prototype.initialise=function(t,e){I.assert.isNil(this._activityContext),this._activityContext=e,this._interactionContext=t},Object.defineProperty(e.prototype,"interactionContext",{get:function(){return I.assert.isTruthy(this.isInitialised()),this._interactionContext},enumerable:!0,configurable:!0}),e.prototype.done=function(t){return this._activityContext.onDone(t)},e.prototype.cancel=function(t){this._activityContext.onCancel(t)},e.prototype.onActivityReady=function(){},Object.defineProperty(e.prototype,"busy",{get:function(){return this._busyModel.readonly},enumerable:!0,configurable:!0}),e.prototype.busyWhile=function(t){this._busyModel.setDelegate(t)},e.prototype.isBusy=function(){return this._busyModel.value},e.prototype.isInitialised=function(){return!!this._activityContext},N([n.HostBinding("class"),H("design:type",Object)],e.prototype,"class",void 0),e}(K),oe=function(t){function e(e){var n=t.call(this)||this;return n.alert=e,n}return L(e,t),e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[ee]}]}]},e=N([n.Component({selector:"aup-alert-dialog",template:'<h3 matDialogTitle *ngIf="alert.title">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor="let line of alert.content()">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-raised-button color="primary" (click)="done()" data-cy="close-button">{{alert.ok()}}</button>\n</div>\n',styles:[":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}),U(0,n.Inject(ee)),H("design:paramtypes",[Object])],e)}(ne),ie=function(t){function e(e){var n=t.call(this)||this;return n.config=e,b.assert.notNil(e),n}return L(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"confirm",{get:function(){return this.config.confirm},enumerable:!0,configurable:!0}),e.prototype.isDestructive=function(){return this.confirm.destructive&&this.confirm.destructive()},e.prototype.onConfirm=function(){var t=this;this.interactionContext.startActivity(this.config.activityType,this.config.data).then((function(e){return t.done(e)})).catch((function(e){return t.cancel(e)}))},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[ee]}]}]},e=N([n.Component({selector:"aup-confirmation-dialog",template:'<h3 matDialogTitle *ngIf="confirm.title">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor="let line of confirm.content()">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)="cancel()" data-cy="cancel-button">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]="isDestructive() ? \'warn\' : \'primary\'"\n (click)="onConfirm()" data-cy="confirm-button">{{confirm.ok()}}</button>\n</div>\n\n',styles:[":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}),U(0,n.Inject(ee)),H("design:paramtypes",[Object])],e)}(ne),re=function(t){function e(e){var n=t.call(this)||this;return n.confirm=e,b.assert.notNil(e),n}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.isDestructive=function(){return this.confirm.destructive&&this.confirm.destructive()},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[ee]}]}]},e=N([n.Component({selector:"aup-confirmation-dialog",template:'<h3 matDialogTitle *ngIf="confirm.title">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor="let line of confirm.content()">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)="cancel()" data-cy="cancel-button">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]="isDestructive() ? \'warn\' : \'primary\'"\n (click)="done()" data-cy="confirm-button">{{confirm.ok()}}</button>\n</div>\n\n',styles:[":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}),U(0,n.Inject(ee)),H("design:paramtypes",[Object])],e)}(ne),ae=function(){function t(){}return t.prototype.startActivity=function(t,e,n){return this.createAndLaunchActivity(t,e,I.Opts.get(n).getOptional("disableClose",!1))},t.prototype.confirm=function(t){return this.confirmOrReject(t).then((function(){return!0})).catch((function(){return!1}))},t.prototype.alert=function(t){return this.createAndLaunchActivity(oe,t,!1)},t.prototype.confirmOrReject=function(t){return this.createAndLaunchActivity(re,t,!0)},t.prototype.confirmThen=function(t,e,n){return this.createAndLaunchActivity(ie,{confirm:t,activityType:e,data:n},!0)},t}(),se=function(){function t(t,e,n){this.activityClass=t,this.activityData=e,this.onComplete=n,this._complete=!1,this.deferredResult=b.Deferred.defer()}return t.prototype.isActivityRealised=function(){return!!this._activity},t.prototype.isComplete=function(){return this._complete},Object.defineProperty(t.prototype,"activity",{get:function(){return b.assert.isTruthy(this.isActivityRealised()),this._activity},enumerable:!0,configurable:!0}),t.prototype.notifyActivityCreated=function(t,e){b.assert.isNil(this._activity),this._activity=t;var n=this;this._activity.initialise(e,{onDone:function(t){n.finishActivity((function(e){return e.resolve(t)}))},onCancel:function(t){n.finishActivity((function(e){return e.reject(t)}))}})},t.prototype.finishActivity=function(t){b.assert.isFalsey(this.isComplete()),t(this.deferredResult),this._complete=!0,this.onComplete(this)},t.prototype.cancel=function(){this.activity.cancel()},Object.defineProperty(t.prototype,"activityResult",{get:function(){return this.deferredResult.promise},enumerable:!0,configurable:!0}),t}(),le=function(){function t(t,e,n){this.componentFactoryResolver=t,this.viewContainerRef=e,this.injector=n}return Object.defineProperty(t.prototype,"activityRef",{get:function(){return this._activityRef},set:function(t){this.activityRef&&!this.activityRef.isComplete()&&I.lang.illegalState("changing activity before previous one has completed"),this._activityRef=t,this.loadActivity(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.loadActivity=function(t){var e=n.Injector.create({providers:[{provide:ee,useValue:t.activityData}],parent:this.injector}),o=this.componentFactoryResolver.resolveComponentFactory(t.activityClass);this.viewContainerRef.clear(),this.activityComponentRef=this.viewContainerRef.createComponent(o,0,e),this.activityRef.notifyActivityCreated(this.activityComponentRef.instance,this.nestedInteractionContext)},Object.defineProperty(t.prototype,"component",{get:function(){return this.activityComponentRef.instance},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.ViewContainerRef},{type:n.Injector}]},N([n.Input(),H("design:type",Object)],t.prototype,"nestedInteractionContext",void 0),N([n.Input(),H("design:type",se),H("design:paramtypes",[se])],t.prototype,"activityRef",null),t=N([n.Component({selector:"aup-activity-outlet",template:"",styles:[":host{display:block}"]}),H("design:paramtypes",[n.ComponentFactoryResolver,n.ViewContainerRef,n.Injector])],t)}(),ce=function(t){function e(){var e=t.call(this)||this;return e.dynamicHeight=!1,e.activityTabs=[],e.garbage=new b.GarbageCollector,e}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var t=this,e=b.Dsl.disposeWith(this);e.chain;e.observe.valuesFrom(this.tabs.animationDone).subscribe((function(){return t.onAnimationFinished()}))},e.prototype.initialise=function(t,e){b.assert.isFalsey(this.isInitialised()),b.assert.notNil(t),b.assert.notNil(e),this._identifier=t,this.interactionServiceApi=e},Object.defineProperty(e.prototype,"identifier",{get:function(){return this._identifier},enumerable:!0,configurable:!0}),e.prototype.isInitialised=function(){return!!this.identifier},e.prototype.isActive=function(){return this.getActiveActivityCount()>0},e.prototype.registerDisposable=function(t){return this.garbage.registerDisposable(t)},e.prototype.dispose=function(){b.assert.isFalsey(this.isActive()),this.garbage.dispose()},e.prototype.getActiveActivityRef=function(){return this.isActive()||I.lang.illegalState("no activity in progress"),_.findLast(this.activityTabs,(function(t){return!t.isComplete()}))},e.prototype.cancelActiveActivity=function(){return B(this,void 0,void 0,(function(){return q(this,(function(t){return this.getActiveActivityRef().cancel(),this.isCleaningUp()?[2,this.waitForInteractionContextCleanupToFinish()]:[2,!this.isActive()]}))}))},e.prototype.createAndLaunchActivity=function(t,e,n){var o=this;b.assert.isTruthy(this.isInitialised());var i=new se(t,e,(function(){o.getActiveActivityCount()>0?o.triggerTabSynchronisation():o.finishAndStartCleanup()}));return this.launchActivity(i),1===this.activityTabs.length&&this.interactionServiceApi.notifyActive(this),i.activityResult},e.prototype.getActiveActivityCount=function(){return this.activityTabs.filter((function(t){return!t.isComplete()})).length},e.prototype.isCleaningUp=function(){return!!this._deferredCleanUp},e.prototype.waitForInteractionContextCleanupToFinish=function(){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!this._deferredCleanUp||this._deferredCleanUp]}))}))},e.prototype.finishAndStartCleanup=function(){var t=this;if(!this._deferredCleanUp){this.activityTabs=[];var e=this.interactionServiceApi.notifyFinished(this);this._deferredCleanUp=e.finally((function(){t._deferredCleanUp=null}))}},e.prototype.launchActivity=function(t){var e=this.activityTabs.filter((function(t){return!t.isComplete()}));this.activityTabs=e.concat(t),this.synchroniseSelectedTabIndex()},e.prototype.activityIndex=function(t,e){return t},e.prototype.onAnimationFinished=function(){this.onAnimationFinishedJob&&(this.onAnimationFinishedJob(),this.onAnimationFinishedJob=void 0)},e.prototype.synchroniseSelectedTabIndex=function(){var t=this,e=this.tabs.selectedIndex,n=this.getActiveActivityCount()-1;e!==n&&(this.tabs.selectedIndex=n,this.onAnimationFinishedJob=function(){t.getSelectedOutlet().component.onActivityReady(),t.activityTabs=t.activityTabs.filter((function(t){return!t.isComplete()}))})},e.prototype.getSelectedOutlet=function(){return this.activityOutlets.toArray()[this.tabs.selectedIndex]},e.prototype.triggerTabSynchronisation=function(){var t=this;this.syncSelectedTabTimeout&&clearTimeout(this.syncSelectedTabTimeout),this.syncSelectedTabTimeout=setTimeout((function(){t.syncSelectedTabTimeout=null,t.synchroniseSelectedTabIndex()}),75)},N([n.Input(),H("design:type",Object)],e.prototype,"dynamicHeight",void 0),N([n.ViewChild("tabs",{static:!0}),H("design:type",s.MatTabGroup)],e.prototype,"tabs",void 0),N([n.ViewChildren(le),H("design:type",n.QueryList)],e.prototype,"activityOutlets",void 0),e=N([n.Component({selector:"aup-activity-container",template:'<mat-tab-group #tabs no-tab-header\n [dynamicHeight]="dynamicHeight"\n [class.full-height-tabs]="!dynamicHeight">\n <mat-tab *ngFor="let tab of activityTabs; trackBy: activityIndex" >\n <aup-activity-outlet [nestedInteractionContext]="this" [activityRef]="tab"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n',styles:[":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]}),H("design:paramtypes",[])],e)}(ae),ue=function(){function t(t,e,n){this.activeInteractionContextIds=t,this.activeModalContext=e,this.createExclusiveInteractionContext=n}return t.prototype.isActive=function(){return this.getActiveInteractionContextIds().length>0},t.prototype.isModalActive=function(){return!!this.activeModalContext.value},t.prototype.isComponentInteracting=function(t){return t.interactionContext&&t.interactionContext.isActive()},t.prototype.getActiveInteractionContextIds=function(){return this.activeInteractionContextIds.value},t.prototype.cancelCurrentModalInteraction=function(){return this.activeModalContext.value.cancelActiveActivity()},t.prototype.cancelComponentInteraction=function(t){return t.interactionContext.cancelActiveActivity()},t}(),pe=function(){},de=0;t.ɵbw=function(){function t(t){this.modelInteractionContextFactory=t,this.garbage=new b.GarbageCollector,this._navigationInProgress=(new b.DelegatingValueModel).withDefault(!1);var n=b.Dsl.disposeWith(this.garbage),o=n.chain,i=n.valueOf;n.before,n.when,n.after,n.observe,n.switchOn;this.exclusiveInteractionRegistry=new e.ContextRegistry,this.modalInteractionRegistry=new e.ContextRegistry,this.inPlaceInteractionRegistry=new e.ContextRegistry,this.modalInteractionRegistry.disableWhen(i.any(this.exclusiveInteractionRegistry.active,this.modalInteractionRegistry.active).areTruthy()),this.inPlaceInteractionRegistry.disableWhen(i.any(this.exclusiveInteractionRegistry.active,this.modalInteractionRegistry.active,this.inPlaceInteractionRegistry.active).areTruthy()),this.active=i.any(this.inPlaceInteractionRegistry.active,this.modalInteractionRegistry.active).areTruthy(),this.activeInteractionContextIds=o(this.inPlaceInteractionRegistry.interactionContextIds).concat(this.modalInteractionRegistry.interactionContextIds),this.activeModalContext=o(this.modalInteractionRegistry.interactionContexts).first(),this.inModalInteraction=o(this.activeModalContext).isNotNil()}var e;return e=t,t.prototype.isActive=function(){return this.active.value},t.prototype.createModalInteractionContextFor=function(t){return this.createModalInteractionContextDisposedWith(t)},t.prototype.createModalInteractionContextDisposedWith=function(t){return this.modelInteractionContextFactory.createInteractionContext("modal",new e.ApiAdapter(this.placeRouter,this.modalInteractionRegistry))},t.prototype.registerInplaceInteractionContext=function(t){t.initialise("ip"+ ++de,new e.ApiAdapter(this.placeRouter,this.inPlaceInteractionRegistry))},t.prototype.registerPlaceRouter=function(t){var n=this;I.assert.isFalsey(this.placeRouter),this.placeRouter=t,this._navigationInProgress.setDelegate(this.placeRouter.navigationInProgress);var o=this;return new ue(this.activeInteractionContextIds,this.activeModalContext,(function(){return o.modelInteractionContextFactory.createInteractionContext("exclusive",new e.ApiAdapter(n.placeRouter,n.exclusiveInteractionRegistry))}))},t.ctorParameters=function(){return[{type:pe}]},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(pe))},token:t,providedIn:"root"}),t=e=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[pe])],t)}(),function(t){var e=function(t){function e(){var e=t.call(this)||this;e._interactions=new b.MutableListModel,e._disabledDelegate=(new b.DelegatingValueModel).withDefault(!1);var n=b.Dsl.disposeWith(e),o=n.chain;n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn;return e.active=o(e._interactions).isNotEmpty(),e.interactionContextIds=o(e._interactions).pluck("identifier"),e}return L(e,t),Object.defineProperty(e.prototype,"interactionContexts",{get:function(){return this._interactions.readonly},enumerable:!0,configurable:!0}),e.prototype.start=function(t){this._interactions.push(t)},e.prototype.finish=function(t){this._interactions.remove(t)},e.prototype.isActive=function(){return this.active.value},e.prototype.disableWhen=function(t){this._disabledDelegate.setDelegate(t)},e}(b.GarbageCollector);t.ContextRegistry=e;var n=function(){function t(t,e){this.placeRouter=t,this.contextRegistry=e}return t.prototype.notifyActive=function(t){return I.assert.isTruthy(t.identifier),this.contextRegistry.start(t),this.isNavigationInProgress()?Promise.resolve():this.placeRouter.syncInteractionContextIdsWithRouter()},t.prototype.isNavigationInProgress=function(){return this.placeRouter.navigationInProgress.value},t.prototype.notifyFinished=function(t){return this.contextRegistry.finish(t),this.isNavigationInProgress()?Promise.resolve():this.placeRouter.syncInteractionContextIdsWithRouter()},t}();t.ApiAdapter=n}(t.ɵbw||(t.ɵbw={}));var fe,he=function(e){function o(t,n){var o=e.call(this)||this;return o.interactionService=t,o.tabConfig=n,o.animateFirstActivity=!0,o}return L(o,e),Object.defineProperty(o.prototype,"animationDuration",{get:function(){var t;return this.animateFirstActivity?(null===(t=this.tabConfig)||void 0===t?void 0:t.animationDuration)||"500ms":"0ms"},enumerable:!0,configurable:!0}),o.prototype.ngAfterViewInit=function(){this.interactionService.registerInplaceInteractionContext(this)},o.prototype.initialise=function(t,e){this.activityContainerComponent.initialise(t,e)},Object.defineProperty(o.prototype,"identifier",{get:function(){return this.activityContainerComponent.identifier},enumerable:!0,configurable:!0}),o.prototype.alert=function(t){return this.activityContainerComponent.alert(t)},o.prototype.cancelActiveActivity=function(){return this.activityContainerComponent.cancelActiveActivity()},o.prototype.confirm=function(t){return this.activityContainerComponent.confirm(t)},o.prototype.confirmOrReject=function(t){return this.activityContainerComponent.confirmOrReject(t)},o.prototype.confirmThen=function(t,e,n){return this.activityContainerComponent.confirmThen(t,e)},o.prototype.isActive=function(){return this.activityContainerComponent.isActive()},o.prototype.startActivity=function(t,e,n){return this.activityContainerComponent.startActivity(t,e,n)},o.ctorParameters=function(){return[{type:t.ɵbw},{type:void 0,decorators:[{type:n.Inject,args:[s.MAT_TABS_CONFIG]},{type:n.Optional}]}]},N([n.ViewChild("activityContainer",{static:!0}),H("design:type",ce)],o.prototype,"activityContainerComponent",void 0),N([n.Input(),H("design:type",Object)],o.prototype,"animateFirstActivity",void 0),o=N([n.Component({selector:"aup-in-place-interaction-context",template:'<mat-tab-group no-tab-header [selectedIndex]="isActive() ? 1 : 0" full-height-tabs [dynamicHeight]="false" [animationDuration]="animationDuration">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]="false"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n',styles:[":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]}),U(1,n.Inject(s.MAT_TABS_CONFIG)),U(1,n.Optional()),H("design:paramtypes",[t.ɵbw,Object])],o)}(K),me=function(t){function e(){var e=t.call(this)||this;return e.icon="mat:add",e.tabindex=0,e.clickCommand=b.Command.create((function(t){e.activityClass?e.startActivity(e.activityClass,e.activityData).catch((function(t){})):e.addCommand.withContext(t).execute()})),e}return L(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return!!this.interactionContext&&this.interactionContext.isActive()},enumerable:!0,configurable:!0}),e.prototype.startActivity=function(t,e){return this.interactionContext.startActivity(t,e)},e.prototype.ngOnInit=function(){},N([n.Input(),H("design:type",String)],e.prototype,"label",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"icon",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"activityClass",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"activityData",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"addCommand",void 0),N([n.ViewChild(he),H("design:type",he)],e.prototype,"interactionContext",void 0),N([n.HostBinding("class.interaction-active"),H("design:type",Boolean),H("design:paramtypes",[])],e.prototype,"active",null),N([n.HostBinding("tabindex"),H("design:type",Object)],e.prototype,"tabindex",void 0),e=N([n.Component({selector:"aup-add-item-interaction-context",template:'<aup-in-place-interaction-context [animateFirstActivity]="false">\n <a part="link" class="link" [pectinCommand]="clickCommand"><aup-icon [icon]="icon"></aup-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n',styles:[":host{--def-link-color:var(--link-color, currentColor);--def-link-color-hover:var(--link-color-hover, currentColor);--def-link-background:var(--link-background, transparent);--def-link-background-hover:var(--link-background-hover, rgba(0, 0, 0, 0.05));--def-link-border-radius:var(--link-border-radius, 4px);--def-link-padding:var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:0}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}"]}),H("design:paramtypes",[])],e)}(K),ge=function(t){function e(e,n,o){var i=t.call(this)||this;return i._element=e,i._overlay=n,i.outputPortal=new c.ComponentPortal(he),i.anchorX="start",i.anchorY="bottom",i.scrollContainers=o?[o]:[],i}return L(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return this.isActive()},enumerable:!0,configurable:!0}),e.prototype.startActivity=function(t,e){var n=this,o=this._overlay.create({hasBackdrop:!1,panelClass:"aup-popup-interaction-panel",positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withPush(!0).withPositions(this.computePositions()).withGrowAfterOpen(!0).withScrollableContainers(this.scrollContainers)}),i=this.scrollContainers.map((function(t){return t.elementScrolled().subscribe((function(){o.updatePosition()}))})),r=o.attach(this.outputPortal);return this.interactionContext=r.instance,new Promise((function(r,a){setTimeout((function(){n.interactionContext.startActivity(t,e).then(r).catch(a).finally((function(){i.forEach((function(t){return t.unsubscribe()})),o.dispose()})),setTimeout((function(){o.updatePosition()}))}))}))},e.prototype.computePositions=function(){var t="start"===this.anchorX?"start":"end",e="top"===this.anchorY?"bottom":"top";return[{originX:this.anchorX,originY:this.anchorY,overlayX:t,overlayY:e}]},e.prototype.cancelActiveActivity=function(){return this.interactionContext.cancelActiveActivity()},e.prototype.isActive=function(){return this.interactionContext&&this.interactionContext.isActive()},e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:n.ElementRef},{type:M.Overlay},{type:M.CdkScrollable,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},N([n.HostBinding("class.interaction-active"),H("design:type",Boolean),H("design:paramtypes",[])],e.prototype,"active",null),N([n.Input(),H("design:type",String)],e.prototype,"anchorX",void 0),N([n.Input(),H("design:type",String)],e.prototype,"anchorY",void 0),e=N([n.Component({selector:"aup-popup-interaction-context",template:"<ng-content></ng-content>\n",styles:[":host{display:inline}:host.interaction-active{background:rgba(0,0,0,.05)}"]}),U(2,n.Optional()),U(2,n.SkipSelf()),H("design:paramtypes",[n.ElementRef,M.Overlay,M.CdkScrollable])],e)}(K),ye=function(t){function e(){var e=t.call(this)||this;return e.activityDone=new n.EventEmitter,e.activityCancelled=new n.EventEmitter,e}return L(e,t),e.prototype.onEnter=function(t){t.preventDefault(),t.stopPropagation(),this.aupInteractionContextTriggerFor.isActive()?this.aupInteractionContextTriggerFor.cancelActiveActivity():this.startActivity()},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),this.aupInteractionContextTriggerFor.isActive()?this.aupInteractionContextTriggerFor.cancelActiveActivity():this.startActivity()},e.prototype.startActivity=function(){var t=this;b.assert.isTruthy(this.aupInteractionContextTriggerFor),b.assert.isFalsey(this.aupInteractionContextTriggerFor.isActive()),b.assert.isTruthy(this.activityClass),this.aupInteractionContextTriggerFor.startActivity(this.activityClass,this.activityData).then((function(e){t.activityDone.emit(e)})).catch((function(e){t.activityCancelled.emit(e)}))},e.prototype.prepareActivityData=function(){return _.isFunction(this.activityDataFactory())?this.activityDataFactory():this.activityData},N([n.Input(),H("design:type",Object)],e.prototype,"aupInteractionContextTriggerFor",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"activityClass",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"activityData",void 0),N([n.Input(),H("design:type",Function)],e.prototype,"activityDataFactory",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"activityDone",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"activityCancelled",void 0),N([n.HostListener("keyup.enter",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"onEnter",null),N([n.HostListener("click",["$event"]),H("design:type",Function),H("design:paramtypes",[MouseEvent]),H("design:returntype",void 0)],e.prototype,"onClick",null),e=N([n.Directive({selector:"[aupInteractionContextTriggerFor]"}),H("design:paramtypes",[])],e)}(b.GarbageCollector),ve=function(t){function e(e){var n=t.call(this)||this;n.data=e,n.class="aup-input-activity";var o=new b.DirtyTrackingForm;return n.valueModel=o.valueModel(n.data.initialValue),n.valueModel.validateUsing(e.validators||[]),n.confirmCommand=b.Command.create((function(){if(n.valueModel.validate()){if(e.save)return Promise.resolve(e.save(n.valueModel,n.interactionContext)).then((function(){return n.done()}));n.done(n.valueModel.value)}})),n.cancelCommand=b.Command.create((function(){n.cancel()})),n}return L(e,t),e.prototype.onActivityReady=function(){this.valueModel.focusContext.requestFocus()},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[ee]}]}]},N([n.HostBinding("class"),H("design:type",Object)],e.prototype,"class",void 0),e=N([n.Component({template:""}),U(0,n.Inject(ee)),H("design:paramtypes",[Object])],e)}(ne),be=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e=N([n.Component({selector:"aup-string-input-activity",template:'\n <aup-string-input [valueModel]="valueModel"\n [label]="data.label"\n [placeholder]="data.placeholder"\n [command.enter]="confirmCommand"\n [command.escape]="cancelCommand"></aup-string-input>\n <aup-activity-actions align="end"\n [confirmCommand]="confirmCommand"\n [cancelCommand]="cancelCommand"></aup-activity-actions>\n '})],e)}(ve),Ce=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultOptionLabelFormat=function(t){return e.data.optionLabel?t[e.data.optionLabel]:t},e}return L(e,t),Object.defineProperty(e.prototype,"optionLabelFormat",{get:function(){var t;return null!==(t=this.data.optionLabelFormat)&&void 0!==t?t:this.defaultOptionLabelFormat},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var t;return(null===(t=this.data.optionsModel)||void 0===t?void 0:t.value)||this.data.options},enumerable:!0,configurable:!0}),e=N([n.Component({selector:"aup-select-input-activity",template:'\n <aup-select-input [valueModel]="valueModel"\n [label]="data.label"\n [placeholder]="data.placeholder"\n [command.enter]="confirmCommand"\n [command.escape]="cancelCommand"\n [options]="options"\n [optionLabelFormat]="optionLabelFormat"\n ></aup-select-input>\n <aup-activity-actions align="end"\n [confirmCommand]="confirmCommand"\n [cancelCommand]="cancelCommand"></aup-activity-actions>\n '})],e)}(ve),Ie=function(t,e){this.width=t,this.height=e},we=function(){function t(t,e){this.x=t,this.y=e}return t.from=function(e){return new t(e.x,e.y)},t.prototype.translate=function(e,n){return new t(this.x+e,this.y+n)},t}();t.Bounds=function(t){function e(e,n,o,i){var r=t.call(this,o,i)||this;return r.top=e,r.left=n,r.width=o,r.height=i,r}return L(e,t),e.prototype.relativePositionOf=function(t){return t instanceof MouseEvent?new we(t.clientX-this.left,t.clientY-this.top):new we(t.x-this.left,t.y-this.top)},e}(Ie),(fe=t.Bounds||(t.Bounds={})).ofElement=function(t){var e=t.getBoundingClientRect();return new fe(e.top,e.left,e.width,e.height)};var Re=function(e){function o(n,o){var i=e.call(this)||this;return i.elementRef=n,i.ngZone=o,i._boundsModel=new b.MutableValueModel(new t.Bounds(0,0,0,0)),i}return L(o,e),o.prototype.ngAfterViewInit=function(){var t=this;this.updateBounds();var e=this.elementRef.nativeElement,n=new O((function(e,n){t.ngZone.run((function(){return t.updateBounds()}))}));n.observe(e),this.onDispose((function(){return n.disconnect()}))},Object.defineProperty(o.prototype,"boundsModel",{get:function(){return this._boundsModel.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),o.prototype.relativePositionOf=function(t){return this.bounds.relativePositionOf(t)},Object.defineProperty(o.prototype,"bounds",{get:function(){return this._boundsModel.value},enumerable:!0,configurable:!0}),o.prototype.updateBounds=function(){this._boundsModel.value=t.Bounds.ofElement(this.nativeElement)},o.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},o=N([n.Directive(),H("design:paramtypes",[n.ElementRef,n.NgZone])],o)}(K),xe=function(){function o(){}return o=N([n.NgModule({imports:[e.CommonModule,d.MatButtonModule,P.MatDialogModule,s.MatTabsModule,c.PortalModule,S.RouterModule,h.MatIconModule,Z,x.FlexModule,x.GridModule,Qt],declarations:[ce,re,ie,oe,le,he,me,te,ge,be,Ce,ve,ye],exports:[ce,le,he,me,te,ge,ye,be,Ce],entryComponents:[ce,re,ie,oe],providers:[t.ɵbw]})],o)}();t.ParameterDefinition=function(){function t(t,e,n){this.propertyName=t,this.urlFormat=n,this.options=I.Opts.get(e),this.remember=this.options.getOptional("remember",!1),this.defaultValue=this.options.getOptional("defaultValue",null)}return Object.defineProperty(t.prototype,"name",{get:function(){return this.options.getOptional("as",this.propertyName)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRouteParameter",{get:function(){return!!this.urlFormat},enumerable:!0,configurable:!0}),t.prototype.getOptionValue=function(t){return this.options.getOptional(t,null)},t.prototype.sanitise=function(t,e,n,o,i){return B(this,void 0,void 0,(function(){var o;return q(this,(function(i){return this.isMissingFrom(e)&&!n.lastVisitIncluded(e.placeDefinition)?(o=n.getMostRecentVisitFor(e.placeDefinition),this.remember&&o&&(t=o.getParameter(this.name)),[2,this.isEmptyValue(t)?this.defaultValue:t]):[2,t]}))}))},t.prototype.isMissingFrom=function(t){return!t.hasParameter(this.name)},t}(),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isRouteId=!0,e.isArray=!1,e}return L(e,t),e.prototype.isEmptyValue=function(t){return _.isNil(t)},e.prototype.hasChanged=function(t,e){return t!==e},e}(t);t.RouteId=e;var n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isRouteId=!1,e.isArray=!1,e}return L(e,t),e.prototype.isEmptyValue=function(t){return _.isNil(t)},e.prototype.hasChanged=function(t,e){return t!==e},e}(t);t.ValueParameter=n;var o=function(t){function e(e,n,o){var i=t.call(this,e,n,o)||this;return i.isRouteId=!1,i.isArray=!0,i}return L(e,t),e.prototype.isEmptyValue=function(t){return _.isNil(t)||t.length<1},e.prototype.hasChanged=function(t,e){return!_.isEqual(t,e)},e}(t);t.ArrayParameter=o}(t.ParameterDefinition||(t.ParameterDefinition={}));var Pe,Se=function(){function e(t,e,n,o,i,r){this.component=t,this.path=e,this.authenticate=n,this.data=o,this.routeParameters=i,this.children=r}return e.prototype.hasRouteId=function(){return!!this.getRouteIdParameterDef()},e.prototype.getRouteIdParameterDef=function(){return this.routeParameters.find((function(t){return t.isRouteId}))},e.prototype.getRouteParameterDefs=function(t){return void 0===t&&(t=!1),this.getVisitParameterDefs({includeRouteId:t,includeRouteParameters:!0})},e.prototype.getVisitParameterDefs=function(t){var e=I.Opts.get(t),n=!t||e.getOptional("includeRouteId",!1),o=!t||e.getOptional("includeRouteParameters",!1),i=!t||e.getOptional("includeNonRouteParameters",!1);return this.routeParameters.filter((function(t){return n&&t.isRouteId||o&&t.isRouteParameter&&!t.isRouteId||i&&!t.isRouteParameter}))},e.prototype.getPlaceData=function(t,e){return this.data?_.isNil(this.data[t])?e:this.data[t]:e},e.prototype.searchPlaceData=function(t,e){var n=this;if(this.data){var o=t.find((function(t){return!_.isNil(n.data[t])}));return o?this.data[o]:e}return e},e.prototype.getRouteIdFrom=function(t){var e=this.getRouteIdParameterDef();return e?t.getParameter(e.name):null},e.prototype.getFormattedRouteId=function(t){return t.hasRouteId()?this.getRouteIdParameterDef().urlFormat.format(t.getRouteId()):""},e.prototype.getFormattedRouteParameters=function(t,e){void 0===e&&(e=!1);var n={};return this.getVisitParameterDefs({includeRouteId:e,includeRouteParameters:!0}).forEach((function(e){var o=t.getParameter(e.name);e.isEmptyValue(o)||(e.isArray?(b.assert.isArray(o),n[e.name]=o.map((function(t){return e.urlFormat.format(t)}))):(b.assert.isFalsey(Array.isArray(o)),n[e.name]=e.urlFormat.format(o)))})),n},e.prototype.getNonRouteParameters=function(t){var e={};return this.getVisitParameterDefs({includeNonRouteParameters:!0}).forEach((function(n){var o=t.getParameter(n.name);n.isEmptyValue(o)||(e[n.name]=o)})),e},e.prototype.parseRouteParams=function(t){var e={};return this.getVisitParameterDefs({includeRouteId:!0,includeRouteParameters:!0,includeNonRouteParameters:!1}).forEach((function(n){if(t.has(n.name))if(n.isArray){var o=t.get(n.name).split(",").map((function(t){return t.trim()}));e[n.name]=o.map((function(t){return n.urlFormat.parse(t)}))}else{var i=t.get(n.name);n.isRouteId&&_.isEmpty(i)||(e[n.name]=n.urlFormat.parse(i))}})),e},N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",t.ParameterDefinition)],e.prototype,"getRouteIdParameterDef",null),N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Array)],e.prototype,"getRouteParameterDefs",null),N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Array)],e.prototype,"getVisitParameterDefs",null),e}(),Me=Symbol("place:route:parameters");t.PlaceComponent=function(t){function e(){var e=t.call(this)||this;return e.visitModel=new b.MutableValueModel,e._inVisitUpdate=new b.Guard,e}var o;return L(e,t),o=e,e.prototype.initialiseVisit=function(t,e){var n=this;b.assert.isNil(this.visitModel.value);var o=b.Dsl.disposeWith(this).when;this.visitModel.value=t,b.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name+".visitModel"),this.placeDefinition.getVisitParameterDefs().forEach((function(t){return n.installBinding(t)})),o.valueOf(this.visitModel).changes((function(t,n){e(t,n)}),{unless:this._inVisitUpdate})},e.prototype.updateVisit=function(t){var e=this;b.assert.isTruthy(this.isInitialised()),b.assert.notNil(t),this._inVisitUpdate.whileTrue((function(){e.visitModel.value=t}))},e.prototype.isInitialised=function(){return!!this.visitModel.value},e.prototype.installBinding=function(t){var e=this[t.propertyName];b.DebugContext.tag(e,this.placeDefinition.component.name+"."+t.propertyName),this.registerDisposable(new b.Binding(this.visitModel,e,{toRight:function(e){return e.getParameter(t.name)},toLeft:function(e,n){return n.replace(t,e)}})).writeRight()},Object.defineProperty(e.prototype,"placeDefinition",{get:function(){return o.getDefinition(this.constructor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childPlaces",{get:function(){return this.placeDefinition.children.map((function(t){return t.component}))},enumerable:!0,configurable:!0}),e.prototype.onPlaceReady=function(){},N([D.Memoize(),H("design:type",Se),H("design:paramtypes",[])],e.prototype,"placeDefinition",null),e=o=N([n.Directive(),H("design:paramtypes",[])],e)}(K),(Pe=t.PlaceComponent||(t.PlaceComponent={})).isPlaceComponentConstructor=function(t){return b.lang.constructorChain(t).includes(Pe)},Pe.getRouteParameters=function(t){return I.Klass.get(t).getMetadataList(Me)},Pe.getDefinition=function(t){return Reflect.getMetadata("PLACE_DEFINITION_OPTIONS",t)},Pe.injectDefinition=function(t,e){Reflect.defineMetadata("PLACE_DEFINITION_OPTIONS",e,t)};var Oe,Ae,Te=function(){function t(t,e,n){this.component=t,this.navigationSession=e,this.isPrimaryComponent=n}return Object.defineProperty(t.prototype,"routerInteractionAdapter",{get:function(){return this.navigationSession.interactionServiceAdapter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"urlService",{get:function(){return this.navigationSession.urlService},enumerable:!0,configurable:!0}),t.prototype.canDeactivate=function(t,e){return B(this,void 0,void 0,(function(){return q(this,(function(n){return this.canDeactivatePromise||(this.canDeactivatePromise=this.canDeactivateComponent(t,e)),[2,this.canDeactivatePromise]}))}))},t.prototype.canDeactivateComponent=function(t,e){return B(this,void 0,void 0,(function(){var t,n;return q(this,(function(o){switch(o.label){case 0:return this.navigationSession.isPopState?this.isPrimaryComponent&&this.routerInteractionAdapter.isModalActive()?(t=this.urlService.getActiveInteractionIdsFromUrl(e.url),n=this.routerInteractionAdapter.getActiveInteractionContextIds(),C.isEqual(n,t)?[3,2]:[4,this.routerInteractionAdapter.cancelCurrentModalInteraction()]):[3,3]:[3,5];case 1:return o.sent(),[2,!1];case 2:return[3,5];case 3:return this.routerInteractionAdapter.isComponentInteracting(this.component)?[4,this.routerInteractionAdapter.cancelComponentInteraction(this.component)]:[3,5];case 4:return o.sent(),[2,!1];case 5:if(this.isNotJustAChangeInRouteId(e)){if(this.component.canDeactivate)return[2,this.component.canDeactivate(this.navigationSession.canDeactivateInteractionContext)];if(this.routerInteractionAdapter.isComponentInteracting(this.component))return console.warn("Route changed while component has active interaction, cancelling navigation"),[2,!1]}return[2,!0]}}))}))},t.prototype.isNotJustAChangeInRouteId=function(t){return!t.includesPathOf(this.component.placeDefinition)},t}(),De=function(t){function e(e,n){var o=t.call(this)||this;return o.context=e,o.startingUrl=n,o.debugPropertyKeys=[],o._visits=new Map,o.componentDeactivationHandlers=new Map,o._interactionContext=o.context.routerInteractionAdapter.createExclusiveInteractionContext(),o.onDispose((function(){o._interactionContext&&o._interactionContext.dispose()})),o}return L(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlService",{get:function(){return this.context.urlService},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interactionServiceAdapter",{get:function(){return this.context.routerInteractionAdapter},enumerable:!0,configurable:!0}),e.prototype.storeVisit=function(t){this._visits.set(t.placeDefinition,t)},e.prototype.getVisitFor=function(t){return this._visits.get(t)},Object.defineProperty(e.prototype,"canDeactivateInteractionContext",{get:function(){return this._interactionContext},enumerable:!0,configurable:!0}),e.prototype.notifyActive=function(){},e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onUrlChange=function(t){this.canDeactivateInteractionContext&&this.canDeactivateInteractionContext.isActive()&&this.cancelCanDeactivateInteraction(t)},e.prototype.onPopState=function(t){return this.illegalTransition(t)},e.prototype.onRouterCancelled=function(t){return this.illegalTransition(t)},e.prototype.onRouterError=function(t){return this.illegalTransition(t)},e.prototype.onRouterEnd=function(t){return this.illegalTransition(t)},e.prototype.getVisits=function(){return Array.from(this._visits.values())},e.prototype.illegalTransition=function(t){return b.lang.illegalState(t.toString()+" not supported by "+this.toString())},e.prototype.currentRouterUrl=function(){return this.urlService.getCurrentRouterUrl()},e.prototype.resetBrowserLocation=function(t,e){void 0===e&&(e={replaceCurrent:!1}),this.urlService.resetBrowserLocation(t,e)},e.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation=function(t,e){b.Logger.get(this).info("WORK-AROUND: Updating browser location after pop state - see angular issue #13586"),console.log("replacing "+this.urlService.getCurrentLocationUrlSnapshot().url+" with "+t),this.urlService.resetBrowserLocation(t,{replaceCurrent:!0}),console.log("pushing "+e+" back onto the history."),this.urlService.resetBrowserLocation(e,{replaceCurrent:!1})},e.prototype.ignore=function(t,e){e=e?" -> "+e:"",b.Logger.get(this).info("Ignoring router event"+e+": "+t.constructor.name+" -> "+t.url+" :: "+this.toString())},e.prototype.toString=function(){return this.constructor.name+"("+this.debugState()+")"},e.prototype.debugState=function(t){var e=this;return(t||this.debugPropertyKeys).map((function(t){return t+": "+e[t]})).join(", ")},e.prototype.canDeactivatePlace=function(t,e,n){return B(this,void 0,void 0,(function(){var o,i;return q(this,(function(r){return(o=this.componentDeactivationHandlers.get(t))||(i=0===this.componentDeactivationHandlers.size,o=new Te(t,this,i),this.componentDeactivationHandlers.set(t,o)),[2,o.canDeactivate(e,n).then((function(t){return t})).catch((function(t){throw t}))]}))}))},e.prototype.cancelCanDeactivateInteraction=function(t){b.Logger.get(this).info("back button pressed during navigation session interaction promise");var e=this.detachCanDeactivateInteractionContext();b.Logger.get(this).info("cancelling current navigation activity.."),e.cancelActiveActivity().then((function(){e.dispose()})),this.handleCanDeactivateCancelledEventScenario(t)},e.prototype.reinstateUrlAfterAngularChangedItOnCancellation=function(t){this.resetBrowserLocation(t,{replaceCurrent:!0})},e.prototype.detachCanDeactivateInteractionContext=function(){var t=this._interactionContext;return this._interactionContext=null,t},e}(b.GarbageCollector),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.handleCanDeactivateCancelledEventScenario=function(t){I.lang.illegalState("onCanDeactivateInteractionCancelled not supported for event clean up states")},e}(De),Fe=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.locationChangeTriggerUrl=o,i.isPopState=!1,i.firstCancelHandled=!1,i.popStateHandled=!1,i.debugPropertyKeys=["idle","startingUrl","poppedHistoryUrl","locationChangeTriggerUrl","popStateEventUrl","firstCancelHandled","popStateHandled"],i}return L(e,t),e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.locationChangeTriggerUrl,this.startingUrl),this.context.finishRoutingSession()},e.prototype.onRouterEnd=function(t){this.ignore(t)},e.prototype.onRouterError=function(t){this.ignore(t)},e.prototype.onPopState=function(t){this.ignore(t)},e.prototype.canDeactivatePlace=function(t,e,n){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!1]}))}))},e}(Ee),ke=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.isPopState=!0,o.debugPropertyKeys=["startingUrl","poppedHistoryUrl"],o.finished=b.Deferred.defer(),o}return L(e,t),e.prototype.onPopState=function(t){this.gotPopState=!0},e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){this.ignore(t)},e.prototype.onUrlChange=function(t){},e.prototype.finishUp=function(){this.context.finishRoutingSession(),this.finished.resolve(!0)},e.prototype.onRouterEnd=function(t){this.gotPopState&&this.finishUp()},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){b.lang.illegalState("onCanDeactivateInteractionCancelled not supported for activity context synchronisation since we should never leave a place")},Object.defineProperty(e.prototype,"finishedPromise",{get:function(){return this.finished.promise},enumerable:!0,configurable:!0}),e}(De),_e=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.wasTriggeredByPopState=o,i.isPopState=!1,i}return L(e,t),e.prototype.notifyActive=function(){var t=this;setTimeout((function(){t.syncInteractionIdsWithRouter()}))},e.prototype.onRouterEnd=function(t){this.context.finishRoutingSession()},e.prototype.onRouterCancelled=function(t){this.context.finishRoutingSession()},e.prototype.syncInteractionIdsWithRouter=function(){var t=this.interactionServiceAdapter.getActiveInteractionContextIds(),e=this.urlService.getCurrentLocationUrlSnapshot().getInteractionIds();if(_.isEqual(t,e))this.context.finishRoutingSession();else if(t.length>e.length){var n=t.length>e.length&&e.length<1;this.addActivityContextToRoute(t,n)}else this.removeActivityContextFromRoute(t)},e.prototype.addActivityContextToRoute=function(t,e){var n=this,o=this.urlService.getCurrentRouterSnapshot().updateInteractionIds(t);this.context.navigateByUrl(o,{replaceUrl:!e}).then((function(e){n.urlService.getCurrentLocationUrlSnapshot().hasInteractionIds(t)||I.lang.illegalState("Expected url to be "+o.url+" but was "+n.urlService.getCurrentLocationUrl())}))},e.prototype.removeActivityContextFromRoute=function(t){var e=this.urlService.getCurrentRouterSnapshot().updateInteractionIds(t);if(t.length<1)if(this.wasTriggeredByPopState);else{var n=new ke(this.context,this.urlService.getCurrentRouterUrl());this.context.transitionTo(n),this.urlService.back()}else this.context.navigateByUrl(e,{replaceUrl:!this.wasTriggeredByPopState})},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){I.lang.methodNotSupported()},e}(De),je=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isPopState=!1,e}return L(e,t),e.prototype.onRouterCancelled=function(t){this.context.finishRoutingSession()},e.prototype.onRouterError=function(t){this.context.finishRoutingSession()},e.prototype.onRouterEnd=function(t){this.context.routerInteractionAdapter.isActive()?this.context.transitionTo(new _e(this.context,this.startingUrl,!1)):this.context.finishRoutingSession(this.getVisits())},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.context.transitionTo(new Fe(this.context,this.startingUrl,t))},e}(De),Le=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.poppedHistoryUrl=o,i.isPopState=!0,i.debugPropertyKeys=["startingUrl","poppedHistoryUrl"],i}return L(e,t),e.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation=function(){t.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation.call(this,this.poppedHistoryUrl,this.startingUrl)},e}(De),Ve=function(t){function e(e,n,o){return t.call(this,e,n,o)||this}return L(e,t),e.prototype.onRouterCancelled=function(t){this.repairBrowserHistoryAndUrlAfterGuardCancellation(),this.context.transitionTo(new _e(this.context,this.poppedHistoryUrl,!1))},e.prototype.onRouterEnd=function(t){this.context.finishRoutingSession()},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.illegalTransition("Leaving interaction after pop-state should't block so should never see a back button click")},e}(Le),Ne=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.clickedLinkUrl=o,i.isPopState=!1,i.clickedLinkMatchedBackButtonUrl=!1,i.debugPropertyKeys=["idle","startingUrl","clickedLinkUrl","firstCancelEventUrl","clickedLinkMatchedBackButtonUrl","popStateEventUrl"],i}return L(e,t),e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){this.firstCancelEventUrl?!this.clickedLinkMatchedBackButtonUrl&&this.popStateEventUrl&&this.finaliseRouting():(this.firstCancelEventUrl=t.url,this.clickedLinkMatchedBackButtonUrl=t.url===this.clickedLinkUrl,this.ignore(t))},e.prototype.onRouterEnd=function(t){this.clickedLinkMatchedBackButtonUrl?this.finaliseRouting():this.ignore(t)},e.prototype.onRouterError=function(t){this.ignore(t)},e.prototype.onPopState=function(t){this.popStateEventUrl=t.url,this.ignore(t)},e.prototype.finaliseRouting=function(){return this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl,this.startingUrl),this.context.finishRoutingSession()},e.prototype.canDeactivatePlace=function(t,e,n){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!1]}))}))},e}(Ee),Ue=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isPopState=!1,e.debugPropertyKeys=["startingUrl","urlAfterRedirects"],e}return L(e,t),e.prototype.onRouterCancelled=function(t){},e.prototype.onRouterError=function(t){this.context.finishRoutingSession()},e.prototype.onRouterEnd=function(t){this.urlAfterRedirects=t.urlAfterRedirects,this.context.finishRoutingSession(this.getVisits())},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.context.transitionTo(new Ne(this.context,this.startingUrl,t))},e}(De);Oe=t.NavigationContext||(t.NavigationContext={}),Ae=function(t,e,n,o,i){this.urlService=t,this.routerInteractionAdapter=e,this.navigateByUrl=n,this.transitionTo=o,this.finishRoutingSession=i},Oe.Impl=Ae;var He,Be,qe,ze=function(t){function e(e,n,o,i){var r=t.call(this,e,n)||this;return r.locationChangeTriggerUrl=o,r.poppedHistoryUrl=i,r.isPopState=!1,r.firstCancelHandled=!1,r.popStateHandled=!1,r.debugPropertyKeys=["idle","startingUrl","poppedHistoryUrl","locationChangeTriggerUrl","popStateEventUrl","firstCancelHandled","popStateHandled"],r}return L(e,t),e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){if(this.firstCancelHandled){if(this.popStateHandled){var e=t.url;return this.repairBrowserHistoryAndUrlAfterGuardCancellation(e,this.parentPageUrl),this.resetBrowserLocation(this.startingUrl,{replaceCurrent:!1}),this.context.finishRoutingSession()}}else this.firstCancelHandled=!0,this.parentPageUrl=t.url,this.ignore(t)},e.prototype.onRouterEnd=function(t){this.ignore(t)},e.prototype.onRouterError=function(t){this.ignore(t)},e.prototype.onPopState=function(t){this.popStateHandled=!0,this.popStateEventUrl=t.url,this.ignore(t)},e.prototype.canDeactivatePlace=function(t,e,n){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!1]}))}))},e}(Ee),Ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.onRouterCancelled=function(t){this.repairBrowserHistoryAndUrlAfterGuardCancellation(),this.context.finishRoutingSession()},e.prototype.onRouterEnd=function(t){this.context.finishRoutingSession(this.getVisits())},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.context.transitionTo(new ze(this.context,this.startingUrl,t,this.poppedHistoryUrl))},e}(Le);t.ɵbz=function(){function t(){this._archive=new Map,this.placeHistoryDepth=4}var e;return e=t,t.prototype.notifyNavigationStarted=function(){this._activeVisits&&(this.archive(this._activeVisits.visits),this._previousVisits=this._activeVisits)},t.prototype.notifyNavigationFinished=function(t){this._activeVisits=new e.VisitRecord(t)},t.prototype.updateVisit=function(t){b.assert.isTruthy(this._activeVisits),this._activeVisits.update(t)},t.prototype.lastVisitIncluded=function(t){var e;return!!(null===(e=this._previousVisits)||void 0===e?void 0:e.getVisitFor(t))},t.prototype.getMostRecentVisitFor=function(t){return _.first(this.getHistory(t))},t.prototype.getHistory=function(t){var e=this._archive.get(t);return e||(e=[],this.setHistory(t,e)),e},t.prototype.setHistory=function(t,e){this._archive.set(t,e)},t.prototype.archive=function(t){var e=this;t.forEach((function(t){var n=e.getHistory(t.placeDefinition),o=_.first(n);o&&!t.hasChangedFrom(o)||(n.unshift(t),e.setHistory(t.placeDefinition,n.slice(0,e.placeHistoryDepth)))}))},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=e=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[])],t)}(),He=t.ɵbz||(t.ɵbz={}),Be=function(){function t(t){this.visits=t}return t.prototype.update=function(t){this.visits=this.visits.filter((function(e){return e.placeDefinition!==t.placeDefinition})).concat(t)},t.prototype.getVisitFor=function(t){return this.visits.find((function(e){return e.placeDefinition===t}))},t}(),He.VisitRecord=Be,t.UrlSnapshot=function(){function t(t,e){this.urlSerializer=t,this.url=e,this.urlTree=t.parse(e)}return t.prototype.updateVisitSegments=function(e){var n=this.urlSerializer.parse(this.url),o=G(this.getPrimarySegments(n)),i=this.getSegmentsFor(e),r=o.findIndex((function(t){return t.path===i[0].path}));return o.splice.apply(o,G([r,i.length],i)),n.root.children.primary.segments=o,new t(this.urlSerializer,n.toString())},t.prototype.getPrimarySegments=function(t){return this.urlTree.root.children.primary.segments},t.prototype.getSegmentsFor=function(t){return t.placeDefinition.hasRouteId()?[new S.UrlSegment(t.placeDefinition.path,t.placeDefinition.getFormattedRouteParameters(t)),new S.UrlSegment(t.placeDefinition.getFormattedRouteId(t),{})]:[new S.UrlSegment(t.placeDefinition.path,t.placeDefinition.getFormattedRouteParameters(t))]},t.prototype.includesPathOf=function(t){return this.getPrimarySegments(this.urlTree).find((function(e){return e.path===t.path}))},t.prototype.getInteractionIds=function(){var e=this.urlTree.queryParams[t.INTERACTION_QUERY_PARAM];return e?t.parseInteractionIds(e):[]},t.prototype.hasInteractions=function(){return this.getInteractionIds().length>0},t.prototype.hasInteractionIds=function(t){return _.isEqual(this.getInteractionIds(),t)},t.prototype.updateInteractionIds=function(e){if(0===e.length)return this.removeInteractionIds();var n=this.urlSerializer.parse(this.url);return n.queryParams[t.INTERACTION_QUERY_PARAM]=t.createPathIdFor(e),new t(this.urlSerializer,n.toString())},t.prototype.removeInteractionIds=function(){var e=this.urlSerializer.parse(this.url);return e.queryParams&&e.queryParams[t.INTERACTION_QUERY_PARAM]&&(e.queryParams={}),new t(this.urlSerializer,e.toString())},t.prototype.toString=function(){return"UrlSnapshot("+this.url+")"},t}(),(qe=t.UrlSnapshot||(t.UrlSnapshot={})).INTERACTION_QUERY_PARAM="aup-interactions",qe.INTERACTION_ID_SEPARATOR="--",qe.parseInteractionIds=function(t){return t.split(qe.INTERACTION_ID_SEPARATOR)},qe.createPathIdFor=function(t){return t.join(qe.INTERACTION_ID_SEPARATOR)};var We=function(){function o(t,e,n){this.angularRouter=t,this.angularLocation=e,this.urlSerializer=n}return o.prototype.parseUrl=function(e){return new t.UrlSnapshot(this.urlSerializer,e)},o.prototype.createUrlSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=[];return e.forEach((function(e){o.push(t.parseUrl(""+e.placeDefinition.path).updateVisitSegments(e).url)})),this.parseUrl(o.join(""))},o.prototype.getCurrentRouterUrl=function(){return this.angularRouter.routerState?this.angularRouter.routerState.snapshot.url:null},o.prototype.getCurrentLocationUrl=function(){return this.angularLocation.path()},o.prototype.getCurrentLocationUrlSnapshot=function(){return this.parseUrl(this.getCurrentLocationUrl())},o.prototype.getCurrentRouterSnapshot=function(){return this.parseUrl(this.getCurrentRouterUrl())},o.prototype.getActiveInteractionIdsFromUrl=function(t){return this.parseUrl(t).getInteractionIds()},o.prototype.hasActiveInteractions=function(t){return this.getActiveInteractionIdsFromUrl(t).length>0},o.prototype.resetBrowserLocation=function(t,e){e.replaceCurrent?this.angularLocation.replaceState(t):this.angularLocation.go(t)},o.prototype.back=function(){this.angularLocation.back()},o.ctorParameters=function(){return[{type:S.Router},{type:e.Location},{type:S.UrlSerializer}]},o.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new o(n.ɵɵinject(S.Router),n.ɵɵinject(e.Location),n.ɵɵinject(S.UrlSerializer))},token:o,providedIn:"root"}),o=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[S.Router,e.Location,S.UrlSerializer])],o)}(),Ke=function(o){function i(e,n,i,r,a){var s=o.call(this)||this;s.angularRouter=e,s.angularLocation=n,s.interactionService=i,s.urlService=r,s.placeHistory=a,s.navigationSessionModel=new b.MutableValueModel,s._activeVisits=new b.MutableListModel,s.sessionFinishedJobs=[],s.routerInteractionAdapter=i.registerPlaceRouter(s),s.navigationContext=new t.NavigationContext.Impl(s.urlService,s.routerInteractionAdapter,(function(t,e){return s.navigateByUrl(t,e)}),(function(t){s.transitionTo(t)}),(function(t){s.routingSessionFinished(t)}));var l=b.Dsl.disposeWith(s),c=l.chain;l.valueOf,l.before,l.when,l.after,l.observe,l.switchOn;s.navigationInProgress=c(s.navigationSessionModel).isNotNil();var u=c(s.interactionService.active).map((function(t){return t?"IdleDuringInteraction":"Idle"}));return s.navigationSessionName=c(s.navigationSessionModel).pluck("name").otherwise(u),b.DebugContext.tag(s._activeVisits,"PlaceRouter.activeVisits"),s.activeVisitsByPlaceDefinition=c(s._activeVisits).indexBy("placeDefinition"),e.events.subscribe((function(t){t instanceof S.NavigationStart&&("popstate"===t.navigationTrigger?s.onPopState(t):s.onRouterStarted(t)),t instanceof S.NavigationEnd&&s.onRouterEnd(t),t instanceof S.NavigationError&&s.onRouterError(t),t instanceof S.NavigationCancel&&s.onRouterCancelled(t)})),n.onUrlChange((function(t){return s.onUrlChanged(t)})),s}return L(i,o),Object.defineProperty(i.prototype,"navigationSession",{get:function(){return this.navigationSessionModel.value},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentSession",{get:function(){return this.navigationSessionModel.value},enumerable:!0,configurable:!0}),i.prototype.onPopState=function(t){if(b.assert.isTruthy("popstate"===t.navigationTrigger),this.currentSession)this.currentSession.onPopState(t);else{var e=t.url,n=this.urlService.getCurrentRouterUrl(),o=this.interactionService.isActive()?new Ve(this.navigationContext,n,e):new Ge(this.navigationContext,n,e);this.transitionTo(o)}},i.prototype.onRouterStarted=function(t){b.assert.isFalsey("popstate"===t.navigationTrigger);this.interactionService.isActive();this.currentSession?this.currentSession.onRouterStarted(t):this.transitionTo(this.createNavigationSession(this.urlService.getCurrentRouterUrl()))},i.prototype.onUrlChanged=function(t){this.currentSession?this.currentSession.onUrlChange(t):console.log("FYI: url changed without a navigation session in progress")},i.prototype.onRouterCancelled=function(t){this.currentSession.onRouterCancelled(t)},i.prototype.onRouterError=function(t){this.currentSession.onRouterError(t)},i.prototype.onRouterEnd=function(t){this.currentSession.onRouterEnd(t)},i.prototype.navigate=function(t,e){var n=this;return this.doNavigation(t,(function(o){return B(n,void 0,void 0,(function(){var n;return q(this,(function(o){switch(o.label){case 0:return n=G([t.placeDefinition.path],this.createRouteParameters(t)),[4,this.angularRouter.navigate(n,{relativeTo:e?e.relativeTo:null})];case 1:return o.sent(),[2]}}))}))}))},i.prototype.doNavigation=function(t,e){return B(this,void 0,void 0,(function(){var n;return q(this,(function(o){switch(o.label){case 0:this.navigationInProgress.value&&b.lang.illegalState("Navigation already in progress"),(n=this.createNavigationSession(this.urlService.getCurrentRouterUrl())).storeVisit(t),this.transitionTo(n),o.label=1;case 1:return o.trys.push([1,,3,4]),[4,e(this.angularRouter)];case 2:return o.sent(),[3,4];case 3:return!this.angularRouter.getCurrentNavigation()&&this.currentSession&&this.currentSession.onRouterEnd(new S.NavigationEnd(-1,"","")),[7];case 4:return[2]}}))}))},i.prototype.navigateByUrl=function(t,e){return this.angularRouter.navigateByUrl(t.urlTree,e)},Object.defineProperty(i.prototype,"activeVisits",{get:function(){return this._activeVisits.readonly},enumerable:!0,configurable:!0}),i.prototype.pushVisitChangesToRoute=function(t,e){return B(this,void 0,void 0,(function(){var n=this;return q(this,(function(o){return this.placeHistory.updateVisit(e),e.hasRoutingChangedFrom(t)?[2,this.doNavigation(e,(function(t){var o=n.urlService.parseUrl(n.angularRouter.routerState.snapshot.url).updateVisitSegments(e);return n.navigateByUrl(o)}))]:[2]}))}))},i.prototype.createNavigationSession=function(t){return this.interactionService.isActive()?new je(this.navigationContext,t):new Ue(this.navigationContext,t)},i.prototype.transitionTo=function(t){var e=this.navigationSessionModel.value;e||this.placeHistory.notifyNavigationStarted(),b.assert.isTruthy(t!==e),b.Logger.get(this).info("### Router State Transition: "+(e?e.toString():"null")+" -> "+t.toString()),this.navigationSessionModel.value=t,e&&e.dispose(),t.notifyActive()},i.prototype.routingSessionFinished=function(t){t&&t.length>0&&(b.assert.isTruthy(this.navigationInProgress.value),this.placeHistory.notifyNavigationFinished(t),this._activeVisits.value=t);var e=this.currentSession;e.dispose(),this.navigationSessionModel.value=null,console.log("### Router Session Finished (was "+e.toString()+")"),this.sessionFinishedJobs.forEach((function(t){return t()})),this.sessionFinishedJobs=[]},i.prototype.runAfterRoutingSessionFinishes=function(t){b.assert.isTruthy(this.navigationInProgress),this.sessionFinishedJobs.push(t)},i.prototype.syncInteractionContextIdsWithRouter=function(){var t=this;if(this.navigationSession){this.navigationSession;return new Promise((function(e,n){t.runAfterRoutingSessionFinishes((function(){t.runAfterRoutingSessionFinishes(e);var n=new _e(t.navigationContext,t.urlService.getCurrentRouterUrl(),!1);t.transitionTo(n)}))}))}return new Promise((function(e,n){t.runAfterRoutingSessionFinishes(e);var o=new _e(t.navigationContext,t.urlService.getCurrentRouterUrl(),!1);t.transitionTo(o)}))},i.prototype.createRouteParameters=function(t){var e=t.placeDefinition;return t.hasRouteId()?[e.getFormattedRouteId(t),e.getFormattedRouteParameters(t)]:[e.getFormattedRouteParameters(t)]},i.ctorParameters=function(){return[{type:S.Router},{type:e.Location},{type:t.ɵbw},{type:We},{type:t.ɵbz}]},i.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new i(n.ɵɵinject(S.Router),n.ɵɵinject(e.Location),n.ɵɵinject(t.ɵbw),n.ɵɵinject(We),n.ɵɵinject(t.ɵbz))},token:i,providedIn:"root"}),i=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[S.Router,e.Location,t.ɵbw,We,t.ɵbz])],i)}(b.GarbageCollector),Xe=function(){function t(t,e){void 0===e&&(e={}),this.placeDefinition=t,this.visitParameters=e}return t.prototype.getRouteId=function(){return this.placeDefinition.getRouteIdFrom(this)},t.prototype.hasRouteId=function(){return!C.isNil(this.getRouteId())},t.prototype.getParameter=function(t){return this.visitParameters[t]},t.prototype.hasParameter=function(t){return Object.keys(this.visitParameters).includes(t)},t.prototype.replace=function(e,n){var o;return new t(this.placeDefinition,V(V({},this.visitParameters),((o={})[e.name]=n,o)))},t.prototype.mergeRouteParameters=function(e){var n=this,o=Object.keys(e),i={};return this.placeDefinition.getVisitParameterDefs().forEach((function(t){if(t.isRouteId||t.isRouteParameter)o.includes(t.name)&&(i[t.name]=e[t.name]);else{var r=n.getParameter(t.name);n.hasParameter(t.name)&&(i[t.name]=r)}})),new t(this.placeDefinition,i)},t.prototype.hasRoutingChangedFrom=function(t){var e=t.placeDefinition===this.placeDefinition,n=C.isEqual(this.placeDefinition.getFormattedRouteParameters(this,!0),this.placeDefinition.getFormattedRouteParameters(t,!0));return!e||!n},t.prototype.hasChangedFrom=function(t){return!C.isEqual(this.placeDefinition.getNonRouteParameters(this),this.placeDefinition.getNonRouteParameters(t))||this.hasRoutingChangedFrom(t)},t.prototype.toDebugString=function(){var t=this;return Object.keys(this.visitParameters).map((function(e){return e+"="+t.visitParameters[e]})).join(",")},t}(),$e=new n.InjectionToken("AUP_PLACE_CONFIG"),Ye=F.style({position:"absolute",top:"0",left:"0",bottom:"0",right:"0"}),Ze=[F.query(":enter, :leave",Ye,{optional:!0}),F.group([F.query(":enter",[F.style({transform:"translateX(-100%)"}),F.animate("{{duration}} ease-out",F.style({transform:"translateX(0%)"}))],{optional:!0}),F.query(":leave",[F.style({transform:"translateX(0%)"}),F.animate("{{duration}} ease-out",F.style({transform:"translateX(100%)"}))],{optional:!0})])],Je=[F.query(":enter, :leave",Ye,{optional:!0}),F.group([F.query(":enter",[F.style({transform:"translateX(100%)",minHeight:"1px"}),F.animate("{{duration}} ease-out",F.style({transform:"translateX(0%)"}))],{optional:!0}),F.query(":leave",[F.style({transform:"translateX(0%)"}),F.animate("{{duration}} ease-out",F.style({transform:"translateX(-100%)",minHeight:"1px"}))],{optional:!0})])];function Qe(t){return F.trigger("routeAnimations",[F.transition(":increment",Je,{params:{duration:t}}),F.transition(":decrement",Ze,{params:{duration:t}})])}var tn=Qe("0.3s"),en=function(t){function e(e,o,i,r){var a=t.call(this)||this;a.router=e,a.placeRouter=o,a.placeConfig=i,a.placeChanged=new n.EventEmitter,a.outletActivated=new b.MutableValueModel(!1),a._activatedRouteModel=new b.MutableValueModel,a._activePlaceModel=new b.MutableValueModel,a.initialPlaceIndex=null,a._isPushingVisitToRoute=new b.MutableValueModel(!1);var s=b.Dsl.disposeWith(a),l=s.chain,c=(s.valueOf,s.before,s.when);s.after,s.observe,s.switchOn;a.parentOutletModel=new b.MutableValueModel(r);var u=l(a.parentOutletModel).pullValueModel((function(t){return t.activePlaceModel})).pluck("placeDefinition").pluckList("children").pluck("component"),p=l(a.activePlaceModel).map((function(t){return t.constructor}));return a.placeAnimationOrder=l(a.customPlaceAnimationOrderModel).otherwise(u).reduce((function(t){var e=0;return p.value&&(e=t.indexOf(p.value),C.isNil(a.initialPlaceIndex)&&(a.initialPlaceIndex=e)),C.isNil(a.initialPlaceIndex)?0:e-a.initialPlaceIndex}),{dependsOn:p}),a._activePlaceDefinition=l(a._activePlaceModel).pluck("placeDefinition"),a.routerVisitModel=a._activePlaceDefinition.findIn(l(o.activeVisitsByPlaceDefinition)),a.navigationInProgress=l(a.placeRouter.navigationInProgress),c.valueOf(a.navigationInProgress).becomesFalsey((function(){a.checkStateAndInitialise()})),c.valueOf(a.outletActivated).becomesTruthy((function(){a.checkStateAndInitialise()})),l(a._activePlaceModel).postponeWhile(a.navigationInProgress).subscribe((function(t){return a.placeChanged.emit(t)})),a}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.getAnimationOrder=function(){return this.placeAnimationOrder.value},Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.placeConfig&&this.placeConfig.animationDuration?this.placeConfig.animationDuration:"500ms"},enumerable:!0,configurable:!0}),e.prototype.navigate=function(t){this.placeRouter.navigate(t,{relativeTo:this.parentOutlet?this.parentOutlet.activatedRouteModel.value:null})},Object.defineProperty(e.prototype,"parentOutlet",{get:function(){return this.parentOutletModel.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activePlaceModel",{get:function(){return this._activePlaceModel.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteModel",{get:function(){return this._activatedRouteModel.readonly},enumerable:!0,configurable:!0}),e.prototype.onOutletActivated=function(t,e){this._activatedRouteModel.value=t.activatedRoute,this._activePlaceModel.value=e,this.outletActivated.value=!0,this.checkStateAndInitialise()},e.prototype.onOutletDeactivated=function(){this.outletActivated.value=!1,this._activePlaceModel.value=null,this._activatedRouteModel.value=null},e.prototype.checkStateAndInitialise=function(){var t=this.routerVisitModel.value,e=this.activePlaceModel.value;t&&e&&!e.isInitialised()&&(t.placeDefinition!==e.placeDefinition&&b.lang.illegalState("wrong visit!!!"),this.initialisePlace(t,e))},e.prototype.initialisePlace=function(t,e){var n=this,o=new b.MutableValueModel(t);b.DebugContext.tag(o,"PlaceOutletComponent["+e.constructor.name+")].visitModel"),e.initialiseVisit(t,(function(t,e){n.pushVisitChangeToRoute(e,t)})),this.animateModel.value||this.animationDone();var i=b.Dsl.disposeWith(e),r=i.when,a=(i.chain,i.valueOf);r.valueOf(this.routerVisitModel).changes((function(t){e.updateVisit(t)}),{unless:a.any(this._isPushingVisitToRoute,this.routerVisitModel.isNil()).areTruthy()})},e.prototype.pushVisitChangeToRoute=function(t,e){var n=this;this._isPushingVisitToRoute.value=!0,this.placeRouter.pushVisitChangesToRoute(t,e).finally((function(){n._isPushingVisitToRoute.value=!1}))},e.prototype.animationStarted=function(){},e.prototype.animationDone=function(){this._activePlaceModel.value&&this._activePlaceModel.value.onPlaceReady()},e.ctorParameters=function(){return[{type:S.Router},{type:Ke},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[$e]}]},{type:e,decorators:[{type:n.SkipSelf},{type:n.Optional}]}]},N([n.Input(),b.StoreInValueModel("animateModel"),H("design:type",Boolean)],e.prototype,"animate",void 0),N([n.Input(),b.TrackExternal({defaultValue:!0}),H("design:type",b.ValueModel)],e.prototype,"animateModel",void 0),N([n.Input("placeAnimationOrderModel"),b.TrackExternal(),H("design:type",b.ListModel)],e.prototype,"customPlaceAnimationOrderModel",void 0),N([n.Input("placeAnimationOrder"),b.StoreInListModel("customPlaceAnimationOrderModel"),H("design:type",Array)],e.prototype,"customPlaceAnimationOrder",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"placeChanged",void 0),N([n.ViewChild("routeOutlet",{static:!0}),H("design:type",S.RouterOutlet)],e.prototype,"routerOut",void 0),e=N([n.Component({selector:"aup-place-outlet",template:'<ng-container *ngIf="animateModel.value">\n <div class="router-outlet-container" cdkScrollable\n [@routeAnimations]="{value: getAnimationOrder(), params:{duration: animationDuration}}"\n (@routeAnimations.start)="animationStarted()"\n (@routeAnimations.done)="animationDone()"\n >\n <router-outlet #routerOutlet="outlet"\n (activate)="onOutletActivated(routerOutlet, $event)"\n (deactivate)="onOutletDeactivated()">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf="!animateModel.value">\n <div class="router-outlet-container" cdkScrollable>\n <router-outlet #routerOutlet="outlet"\n (activate)="onOutletActivated(routerOutlet, $event)"\n (deactivate)="onOutletDeactivated()">\n </router-outlet>\n </div>\n</ng-container>\n\n',animations:[tn],styles:[":host{display:flex;flex-direction:column;min-height:0}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:scroll}router-outlet{display:none}"]}),U(2,n.Optional()),U(2,n.Inject($e)),U(3,n.SkipSelf()),U(3,n.Optional()),H("design:paramtypes",[S.Router,Ke,Object,e])],e)}(K),nn=function(e){function o(n){var o=e.call(this)||this;o._activePlaceComponent=new b.DelegatingValueModel;var i=b.Dsl.disposeWith(o),r=i.chain,a=(i.valueOf,i.before,i.when);i.after,i.observe,i.switchOn;return o.placeDefinitions=r(o.placesModel).map((function(e){return t.PlaceComponent.getDefinition(e)})),o.commandFactory=b.Command.createFactory((function(t){o.placeOutlet.navigate(new Xe(t))})),a.valueOf(o.placeOutletModel).changes((function(t){setTimeout((function(){return o._activePlaceComponent.setDelegate(t?t.activePlaceModel:null)}))})),o.activePlaceDefinition=r(o._activePlaceComponent).pluck("placeDefinition"),o}return L(o,e),o.prototype.getNav=function(t){var e=t.getPlaceData("nav");return{title:function(){return e?e.title():t.searchPlaceData(["navTitle","title"])},tooltip:function(){return e&&e.tooltip?e.tooltip():t.getPlaceData("navTooltip",null)},icon:function(){return e&&e.icon?e.icon():t.getPlaceData("navIcon",null)}}},o.prototype.isActive=function(t){return this.activePlaceDefinition.query().equals(t)},o.prototype.ngOnInit=function(){},o.ctorParameters=function(){return[{type:Ke}]},N([n.Input(),b.StoreInListModel("placesModel"),H("design:type",Array)],o.prototype,"places",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.ListModel)],o.prototype,"placesModel",void 0),N([n.Input(),b.StoreInValueModel("placeOutletModel"),H("design:type",en)],o.prototype,"placeOutlet",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.ValueModel)],o.prototype,"placeOutletModel",void 0),N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[Se]),H("design:returntype",Object)],o.prototype,"getNav",null),o=N([n.Component({template:""}),H("design:paramtypes",[Ke])],o)}(K),on=function(){function t(){}return t.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal(),H("design:type",b.ValueModel)],t.prototype,"busyModel",void 0),N([n.Input(),b.StoreInValueModel("busyModel"),H("design:type",Boolean)],t.prototype,"busy",void 0),t=N([n.Component({selector:"aup-busy-overlay",template:'<ng-content></ng-content>\n<div class="busy-overlay-backdrop" *ngIf="busyModel.value">\n <mat-progress-spinner mode="indeterminate" [diameter]="52"></mat-progress-spinner>\n</div>\n',styles:[":host{position:relative}div.busy-overlay-backdrop{position:absolute;background-color:rgba(0,0,0,.2);top:0;left:0;bottom:0;right:0;display:-ms-grid;display:grid;-ms-grid-columns:auto;grid-template-columns:auto;-ms-grid-rows:auto;grid-template-rows:auto;place-content:center}"]}),H("design:paramtypes",[])],t)}(),rn=function(){function t(){}return t.prototype.ngOnInit=function(){},t=N([n.Component({selector:"aup-empty-state",template:'\n <div class="container">\n <ng-content></ng-content>\n </div>\n ',styles:[":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{padding:var(--aup-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]}),H("design:paramtypes",[])],t)}(),an=function(t){function e(e){return t.call(this,e)||this}return L(e,t),e.ctorParameters=function(){return[{type:Ke}]},e=N([n.Component({selector:"aup-list-place-nav",template:'<mat-nav-list fxFlex>\n <a mat-list-item *ngFor="let placeDefinition of placeDefinitions.value"\n [pectinCommand]="commandFactory.create(placeDefinition)"\n [class.active]="isActive(placeDefinition)"\n [matTooltip]="getNav(placeDefinition).tooltip()">\n <aup-icon *ngIf="getNav(placeDefinition).icon()" [icon]="getNav(placeDefinition).icon()"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n',styles:[":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]}),H("design:paramtypes",[Ke])],e)}(nn),sn=function(t){function e(e){return t.call(this,e)||this}return L(e,t),e.ctorParameters=function(){return[{type:Ke}]},e=N([n.Component({selector:"aup-tabbed-place-navigation",template:'<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor="let placeDefinition of placeDefinitions.value"\n [pectinCommand]="commandFactory.create(placeDefinition)"\n [active]="isActive(placeDefinition)"\n [matTooltip]="getNav(placeDefinition).tooltip()">\n <aup-icon *ngIf="getNav(placeDefinition).icon()" [icon]="getNav(placeDefinition).icon()"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</nav>\n',styles:[""]}),H("design:paramtypes",[Ke])],e)}(nn),ln=function(t){function e(e,n){var o=t.call(this,n)||this;return o.router=e,o.expanded=!1,o}return L(e,t),e.prototype.expandMenu=function(){this.expanded=!0},e.prototype.collapseMenu=function(){this.expanded=!1},e.prototype.toggleMenu=function(){this.expanded=!this.expanded},e.ctorParameters=function(){return[{type:S.Router},{type:Ke}]},N([n.HostBinding("class.expanded"),H("design:type",Object)],e.prototype,"expanded",void 0),N([n.ContentChild("navEndTemplate"),H("design:type",n.TemplateRef)],e.prototype,"navEndTemplate",void 0),e=N([n.Component({selector:"aup-side-place-navigation",template:'<mat-nav-list>\n <a mat-list-item (click)="toggleMenu()" class="home">\n <aup-icon class="collapsed-only" icon="mat:menu"></aup-icon>\n <aup-icon class="expanded-only" icon="mat:arrow_back"></aup-icon>\n <span class="expanded-only">Menu</span>\n </a>\n <a mat-list-item *ngFor="let placeDefinition of placeDefinitions.value"\n [pectinCommand]="commandFactory.create(placeDefinition)"\n [class.active]="isActive(placeDefinition)"\n [matTooltip]="getNav(placeDefinition).tooltip()">\n <aup-icon *ngIf="getNav(placeDefinition).icon()" [icon]="getNav(placeDefinition).icon()"></aup-icon>\n <span\n class="expanded-only">{{getNav(placeDefinition).title()}}</span>\n </a>\n <span [style.flex]="1"></span>\n <ng-container *ngIf="navEndTemplate" [ngTemplateOutlet]="navEndTemplate"></ng-container>\n</mat-nav-list>\n',styles:[":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width, 56px);--resolved-nav-item-height:var(--nav-item-height, var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width, 235px);--resolved-color:var(--nav-color, rgba(255, 255, 255, 0.9));--resolved-background-color:var(--nav-background-color, #555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}"]}),H("design:paramtypes",[S.Router,Ke])],e)}(nn),cn=function(){function t(){}return t=N([n.NgModule({imports:[e.CommonModule,l.BrowserAnimationsModule,A.MatProgressSpinnerModule,S.RouterModule,s.MatTabsModule,T.MatListModule,g.MatTooltipModule,h.MatIconModule,Z,x.FlexModule,Qt],declarations:[rn,on,en,sn,an,ln,nn],entryComponents:[on],exports:[on,en,rn,sn,an,ln,nn],providers:[]})],t)}(),un=function(){function t(){}return t=N([n.NgModule({declarations:[],imports:[e.CommonModule,l.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule,Z,Qt,cn,xe],exports:[xe,cn,Z,Qt,ft]})],t)}(),pn=F.style({opacity:0,height:"0",paddingTop:"0",paddingBottom:"0"}),dn=F.trigger("slideDownOnEnter",[F.transition(":enter",[pn,F.animate("{{duration}}")],{params:{duration:"100ms"}}),F.transition(":leave",[F.animate("{{duration}}",pn)],{params:{duration:"100ms"}})]),fn=F.style({opacity:0,width:"0",paddingLeft:"0",paddingRight:"0"}),hn=F.trigger("slideRightOnEnter",[F.transition(":enter",[fn,F.animate("{{duration}}")],{params:{duration:"100ms"}}),F.transition(":leave",[F.animate("{{duration}}",fn)],{params:{duration:"100ms"}})]),mn=function(t){function e(e,n,o,i){var r=t.call(this)||this;return r.identifier=e,r.api=n,r.dialogService=o,r.config=i,r.garbage=new b.GarbageCollector,I.assert.notNil(o),r}return L(e,t),e.prototype.cancelActiveActivity=function(){return this.activityContainer.cancelActiveActivity()},e.prototype.dispose=function(){this.isActive()&&b.lang.illegalState("Dispose called while active."),this.garbage.dispose()},e.prototype.registerDisposable=function(t){return this.garbage.registerDisposable(t)},e.prototype.isActive=function(){return!!this.activityContainer&&this.activityContainer.isActive()},e.prototype.createAndLaunchActivity=function(t,e,n){var o=this;I.assert.isNil(this._currentActivityRef);var i=V(V({},this.config),{disableClose:n,panelClass:"dialog-interaction-context"}),r=this.dialogService.open(ce,i),a=this.activityContainer=r.componentInstance;this.activityContainer.initialise(this.identifier,this.api);var s=this.activityContainer.startActivity(t,e);return s.finally((function(){return r.close()})),r.afterClosed().subscribe((function(t){a.isActive()&&a.cancelActiveActivity(),o.activityContainer=null})),r.updateSize(),r.afterOpened().subscribe((function(t){r.updateSize()})),s},e}(ae),gn=new n.InjectionToken("DIALOG_INTERACTION_SERVICE_DEFAULTS"),yn=function(t){function e(e,n,o){var i=t.call(this)||this;return i.dialogService=e,i.dialogServiceDefaults=n,i.matDialogDefaultConfig=o,I.assert.notNil(e),i}return L(e,t),e.prototype.createInteractionContext=function(t,e,n){var o=V(V({autoFocus:!1,hasBackdrop:!0,closeOnNavigation:!1},this.matDialogDefaultConfig),this.dialogServiceDefaults);return new mn(t,e,this.dialogService,o)},e.ctorParameters=function(){return[{type:P.MatDialog},{type:P.MatDialogConfig,decorators:[{type:n.Optional},{type:n.Inject,args:[gn]}]},{type:P.MatDialogConfig,decorators:[{type:n.Optional},{type:n.Inject,args:[P.MAT_DIALOG_DEFAULT_OPTIONS]}]}]},e.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new e(n.ɵɵinject(P.MatDialog),n.ɵɵinject(gn,8),n.ɵɵinject(P.MAT_DIALOG_DEFAULT_OPTIONS,8))},token:e,providedIn:"root"}),e=N([n.Injectable({providedIn:"root"}),U(1,n.Optional()),U(1,n.Inject(gn)),U(2,n.Optional()),U(2,n.Inject(P.MAT_DIALOG_DEFAULT_OPTIONS)),H("design:paramtypes",[P.MatDialog,P.MatDialogConfig,P.MatDialogConfig])],e)}(pe);var vn,bn,Cn,In,wn=function(){function t(t,e){this.paramMaps=[t].concat((e||[]).map((function(t){return new Rn(t.parameters)}))).filter((function(t){return!!t}))}return t.prototype.get=function(t){return this.paramMaps.find((function(e){return e.has(t)})).get(t)},t.prototype.getAll=function(t){return this.paramMaps.find((function(e){return e.has(t)})).getAll(t)},t.prototype.has=function(t){return!!this.paramMaps.find((function(e){return e.has(t)}))},Object.defineProperty(t.prototype,"keys",{get:function(){return this.paramMaps.reduce((function(t,e){return t.concat(e.keys)}),[])},enumerable:!0,configurable:!0}),N([w.Memoize(),H("design:type",Array),H("design:paramtypes",[])],t.prototype,"keys",null),t}(),Rn=function(){function t(t){this.params=t}return t.prototype.get=function(t){return this.params[t]},t.prototype.getAll=function(t){var e=this.get(t);return Array.isArray(e)?e:[e]},t.prototype.has=function(t){return this.keys.includes(t)},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),xn=function(){function t(){}return t.prototype.canActivate=function(t,e){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!0]}))}))},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[])],t)}(),Pn=function(){function t(t,e,n,o,i){this.navigationSession=t,this.activatedRoute=e,this.router=n,this.placeHistory=o,this.injector=i}return t.prototype.sanitise=function(t){return B(this,void 0,void 0,(function(){var e,n,o,i,r,a,s,l,c;return q(this,(function(u){switch(u.label){case 0:return(e=t.placeDefinition).hasRouteId()?(n=e.getRouteIdParameterDef(),o=t.getRouteId(),[4,n.sanitise(o,t,this.placeHistory,this.injector,this.navigationSession.isPopState)]):[3,2];case 1:if(c=u.sent(),console.log({routeId:o,sanitisedValue:c}),n.hasChanged(o,c))return[2,t.replace(n,c)];u.label=2;case 2:i=e.getVisitParameterDefs({includeRouteParameters:!0,includeNonRouteParameters:!0}),r=t,a=0,u.label=3;case 3:return a<i.length?(s=i[a],l=t.getParameter(s.name),[4,s.sanitise(l,r,this.placeHistory,this.injector,this.navigationSession.isPopState)]):[3,6];case 4:c=u.sent(),s.hasChanged(l,c)&&(r=r.replace(s,c)),u.label=5;case 5:return a++,[3,3];case 6:return[2,r.hasChangedFrom(t)?r:t]}}))}))},t}(),Sn=function(){function e(t,e,n,o,i,r){this.router=t,this.urlService=e,this.placeRouter=n,this.placeHistory=o,this.interactionService=i,this.injector=r}return e.prototype.canActivate=function(t,e){return B(this,void 0,void 0,(function(){var n=this;return q(this,(function(o){return[2,this.authorisePlaceThen(t,e,(function(o){return B(n,void 0,void 0,(function(){var n,i=this;return q(this,(function(r){switch(r.label){case 0:return[4,this.cleanInteractionState(t,e,(function(){return B(i,void 0,void 0,(function(){var n,i,r,a,s;return q(this,(function(l){switch(l.label){case 0:return n=new wn(t.paramMap,t.url),i=o.parseRouteParams(n),r=this.placeRouter.navigationSession,a=r.getVisitFor(o)||new Xe(o,i),[4,new Pn(r,t,this.router,this.placeHistory,this.injector).sanitise(a.mergeRouteParameters(i))];case 1:return s=l.sent(),r.storeVisit(s),a.hasRoutingChangedFrom(s)?[2,this.urlService.parseUrl(e.url).updateVisitSegments(s)]:[2,!0]}}))}))}))];case 1:return n=r.sent(),[2,this.handleGuardResult(n)]}}))}))}))]}))}))},e.prototype.canDeactivate=function(t,e,n,o){return B(this,void 0,void 0,(function(){var e,i,r;return q(this,(function(a){switch(a.label){case 0:return e=this.urlService.parseUrl(n.url),i=this.urlService.parseUrl(o.url),[4,this.placeRouter.navigationSession.canDeactivatePlace(t,e,i)];case 1:return r=a.sent(),[2,this.handleGuardResult(r)]}}))}))},e.prototype.handleGuardResult=function(e){return e instanceof t.UrlSnapshot?e.urlTree:e},e.prototype.authorisePlaceThen=function(e,n,o){return B(this,void 0,void 0,(function(){var i,r,a;return q(this,(function(s){switch(s.label){case 0:return t.PlaceComponent.isPlaceComponentConstructor(e.component)?(i=t.PlaceComponent.getDefinition(e.component)).authenticate?[4,this.isAuthorised(e,n)]:[3,2]:[3,4];case 1:return a=s.sent(),[3,3];case 2:a=!0,s.label=3;case 3:return!0===(r=a)?[2,o(i)]:(console.log("not authorised result",r),[2,r]);case 4:return[2,b.lang.illegalState("expected component to be an instance of PlaceComponent, got "+e.component)];case 5:return[2]}}))}))},e.prototype.isAuthorised=function(t,e){return B(this,void 0,void 0,(function(){var n;return q(this,(function(o){return[2,(n=this.getAuthGuard(this.injector).canActivate(t,e))instanceof k.Observable?n.toPromise():n]}))}))},e.prototype.cleanInteractionState=function(t,e,n){return B(this,void 0,void 0,(function(){var t;return q(this,(function(o){return t=this.urlService.parseUrl(e.url),!this.interactionService.isActive()&&t.hasInteractions()?[2,t.removeInteractionIds()]:[2,n()]}))}))},e}();function Mn(t,e,n,o,i){var r={backingModel:n,binding:null},a=o+"("+t.constructor.name+"."+e.toString()+")";b.DebugContext.getOrCreate(r.backingModel).tag(a),Object.defineProperty(t,e,{get:function(){return r.backingModel},set:function(t){r.binding&&r.binding.dispose(),t&&(r.binding=new b.Binding(r.backingModel,t,{toLeft:b.Functions.identity,toRight:b.Functions.identity}),i(t)?r.binding.writeRight():(i(r.backingModel)||console.warn("Assigning a visit model with an existing value to a visit parameter with an existing value. Visit parameter will be overridden"),r.binding.writeLeft()))}})}vn=t.Formatter||(t.Formatter={}),bn=function(){function t(){}return t.prototype.format=function(t){return t},t.prototype.parse=function(t){return t},t}(),Cn=function(){function t(){}return t.prototype.format=function(t){return _.isNumber(t)&&!_.isNaN(t)?""+t:null},t.prototype.parse=function(t){var e=Number.parseFloat(t);return _.isNaN(e)?null:e},t}(),In=function(){function t(){}return t.prototype.format=function(t){return t?"true":"false"},t.prototype.parse=function(t){return"true"===t},t}(),vn.STRING=new bn,vn.NUMBER=new Cn,vn.BOOLEAN=new In,t.ACTIVITY_DATA=ee,t.AUP_PLACE_CONFIG=$e,t.AbstractInputActivity=ve,t.AbstractInputComponent=et,t.AbstractInteractionContext=ae,t.AbstractListInputComponent=nt,t.AbstractPlaceNavigationComponent=nn,t.AbstractPopStateNavigation=Le,t.AbstractValueInputComponent=ot,t.Activity=ne,t.ActivityActionsComponent=te,t.ActivityContainerComponent=ce,t.ActivityOutletComponent=le,t.ActivityRef=se,t.AddItemInteractionContextComponent=me,t.AlertDialogComponent=oe,t.AngularUiPowerupsModule=un,t.AutocompleteInputComponent=it,t.BusyOverlayComponent=on,t.CELL_EDITOR_PORTAL=wt,t.CELL_RENDERER_PORTAL=It,t.CardContainerComponent=J,t.CellEditorPortalRef=At,t.CellHeaderPortalRef=St,t.CellPortalRef=Pt,t.CellRendererPortalRef=Mt,t.CheckboxInputComponent=rt,t.ColumnModel=Nt,t.ColumnTemplateDirective=$t,t.CommandDirective=W,t.ComponentCellRendererPortalRef=Ot,t.ComponentsModule=Qt,t.ConfirmThenDialogComponent=ie,t.ConfirmationDialogComponent=re,t.ConsolidatedParameterMap=wn,t.CustomTemplateColumnModel=zt,t.CustomValueColumnModel=Bt,t.DEFINITION_META_DATA_KEY="PLACE_DEFINITION_OPTIONS",t.DIALOG_INTERACTION_SERVICE_DEFAULTS=gn,t.DefaultCellRendererComponent=Dt,t.DefaultHeaderCellRendererComponent=Et,t.DialogInteractionContext=mn,t.DialogInteractionContextFactory=yn,t.Dimension=Ie,t.DirectivesModule=Z,t.DisposableComponent=K,t.EditRowControls=kt,t.EditSession=Ft,t.EditorControlColumnModel=qt,t.EmptyStateComponent=rn,t.EventCleanUpSession=Ee,t.FocusBinding=X,t.FocusBindingDirective=Y,t.FocusBindingFactory=$,t.FocusContainerComponent=Q,t.FocusableComponent=tt,t.HEADER_CELL_RENDERER_PORTAL=Ct,t.IconComponent=dt,t.InPlaceInteractionContextComponent=he,t.InteractionContextTriggerFor=ye,t.InteractionModule=xe,t.InteractionService=t.ɵbw,t.InteractionServiceRoutingAdapter=ue,t.LEFT_RIGHT_PLACE_ANIMATION=tn,t.ListPlaceNavComponent=an,t.ListPropertyColumnModel=Ht,t.ModalInteractionContextFactory=pe,t.MultipleSelectInputComponent=at,t.Navigating=Ue,t.NavigatingDuringInteraction=je,t.NavigationSession=De,t.NoopAuthGuard=xn,t.NoopComponent=ft,t.NumberInputComponent=st,t.PORTAL_EDITOR_COMPONENT=xt,t.PORTAL_RENDERER_COMPONENT=Rt,t.PasswordInputComponent=lt,t.Place=function(e){return function(n){t.PlaceComponent.isPlaceComponentConstructor(n)?t.PlaceComponent.injectDefinition(n,new Se(n,e.path,!!C.isNil(e.authenticate)||e.authenticate,e.data,t.PlaceComponent.getRouteParameters(n),(e.children||[]).map((function(e){return t.PlaceComponent.getDefinition(e)})))):b.lang.illegalState(n+" must extend PlaceComponent to use the @Place decorator")}},t.PlaceComponentDeactivationHandler=Te,t.PlaceDefinition=Se,t.PlaceGuard=Sn,t.PlaceHistory=t.ɵbz,t.PlaceModule=cn,t.PlaceOutletComponent=en,t.PlaceRouter=Ke,t.Point=we,t.PopStateDuringInteractionNavigation=Ve,t.PopStateNavigation=Ge,t.PopupInteractionContextComponent=ge,t.PropertyColumnModel=Ut,t.ROUTE_PARAMETER_LIST_KEY=Me,t.RemoveLastInteractionFromUrlNavigationSession=ke,t.ResizeAwareComponent=Re,t.RouteId=function(e,n){return function(o,i){var r=new t.ParameterDefinition.RouteId(i.toString(),n,e);I.Klass.get(o).addToOwnMetadataList(Me,r),Mn(o,i,new b.MutableValueModel,"@RouteId",(function(t){return t.query().isNil()}))}},t.ScrollContainerComponent=ht,t.SectionHeaderComponent=mt,t.SelectCellRendererComponent=_t,t.SelectHeaderCellRendererComponent=jt,t.SelectInputActivity=Ce,t.SelectInputComponent=ct,t.SelectionColumnModel=Gt,t.SidePlaceNavigationComponent=ln,t.StringInputActivity=be,t.StringInputComponent=ut,t.SwitchCaseComponent=bt,t.SwitchCaseDefaultDirective=vt,t.SwitchCaseOption=gt,t.SwitchCaseWhenDirective=yt,t.SynchroniseInteractionContextIdsWithRoute=_e,t.TabbedPlaceNavigationComponent=sn,t.TableCellRendererComponent=Yt,t.TableComponent=Xt,t.TableHeaderCellRendererComponent=Zt,t.TableModel=Kt,t.TemplateCellRendererPortalRef=Tt,t.TextInputComponent=pt,t.UrlService=We,t.VerticalFocusContainerComponent=Jt,t.Visit=Xe,t.VisitParameter=function(e){var n=I.Opts.get(e);return function(o,i){var r=new t.ParameterDefinition.ValueParameter(i.toString(),e,n.getOptional("storeInUrl",null));I.Klass.get(o).addToOwnMetadataList(Me,r),Mn(o,i,new b.MutableValueModel,"@VisitParameter",(function(t){return t.query().isNil()}))}},t.VisitParameterList=function(e){var n=I.Opts.get(e);return function(o,i){var r=new t.ParameterDefinition.ArrayParameter(i.toString(),e,n.getOptional("storeInUrl",null));I.Klass.get(o).addToOwnMetadataList(Me,r),Mn(o,i,new b.MutableListModel,"@VisitParameterList",(function(t){return t.query().isEmpty()}))}},t.VisitSanitiser=Pn,t.WaitUntilLeavingInteractionTransitionCancelled=Fe,t.WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish=Ne,t.WaitUntilPopStateDuringCanDeactivateInteractionFinishes=ze,t.leftRightPlaceAnimation=Qe,t.slideDownOnEnterAnimation=dn,t.slideRightOnEnterAnimation=hn,t.ɵ0=Lt,t.ɵa=Z,t.ɵb=W,t.ɵba=J,t.ɵbb=Xt,t.ɵbc=kt,t.ɵbd=$t,t.ɵbe=Dt,t.ɵbf=Yt,t.ɵbg=_t,t.ɵbh=jt,t.ɵbi=Et,t.ɵbj=Zt,t.ɵbk=dt,t.ɵbl=mt,t.ɵbm=cn,t.ɵbn=Qt,t.ɵbo=rn,t.ɵbp=on,t.ɵbq=en,t.ɵbr=Qe,t.ɵbs=tn,t.ɵbt=$e,t.ɵbv=Ke,t.ɵbx=pe,t.ɵby=We,t.ɵc=Y,t.ɵca=sn,t.ɵcb=nn,t.ɵcc=an,t.ɵcd=ln,t.ɵce=xe,t.ɵcf=ce,t.ɵcg=ae,t.ɵch=le,t.ɵci=re,t.ɵcj=ee,t.ɵck=ne,t.ɵcm=ie,t.ɵcn=oe,t.ɵcp=he,t.ɵcq=me,t.ɵcr=te,t.ɵcs=ge,t.ɵct=be,t.ɵcu=ve,t.ɵcv=Ce,t.ɵcw=ye,t.ɵd=K,t.ɵe=$,t.ɵf=Qt,t.ɵg=et,t.ɵh=ot,t.ɵi=nt,t.ɵj=st,t.ɵk=ut,t.ɵl=pt,t.ɵm=lt,t.ɵn=ct,t.ɵo=at,t.ɵp=it,t.ɵq=rt,t.ɵr=ht,t.ɵs=ft,t.ɵt=gt,t.ɵu=yt,t.ɵv=vt,t.ɵw=bt,t.ɵx=Q,t.ɵy=Jt,t.ɵz=tt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
|
+
var j=function(t,e){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function L(t,e){function n(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var V=function(){return(V=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function N(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function U(t,e){return function(n,o){e(n,o,t)}}function H(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function B(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function q(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function z(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function G(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(z(arguments[e]));return t}var W=function(t){function e(e){var n=t.call(this)||this;return n.elementRef=e,n._commandEnabled=(new b.DelegatingValueModel).withDefault(!1),n._commandParameterProvided=!1,n}return L(e,t),Object.defineProperty(e.prototype,"pectinCommand",{get:function(){return this._command},set:function(t){this._command=t,this._commandEnabled.setDelegate(t?t.enabled:null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"commandParameter",{get:function(){return this._commandParameter},set:function(t){this._commandParameterProvided=!0,this._commandParameter=t},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){b.assert.notNil(this.pectinCommand),this.pectinCommand instanceof b.UnaryCommand?this._commandParameterProvided||b.lang.illegalState("UnaryCommands require the command parameter to be specified."):this._commandParameterProvided&&b.lang.illegalState("command parameters are only supported by UnaryCommands")},e.prototype.ngAfterViewInit=function(){var t=this;b.Dsl.disposeWith(this).when.valueOf(this._commandEnabled).changes((function(e){e?(t.elementRef.nativeElement.removeAttribute("disabled"),"A"===t.elementRef.nativeElement.tagName&&t.elementRef.nativeElement.setAttribute("href","javascript:void")):(t.elementRef.nativeElement.setAttribute("disabled","disabled"),"A"===t.elementRef.nativeElement.tagName&&t.elementRef.nativeElement.removeAttribute("href"))}),{initialValue:"triggerChange"})},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.notifyClick=function(t){t.preventDefault(),t.stopPropagation(),this.pectinCommand.enabled.value?this.pectinCommand instanceof b.UnaryCommand?this.pectinCommand.withContext({event:t}).execute(this.commandParameter):this.pectinCommand.withContext({event:t}).execute():console.warn("disabled command clicked, ignoring.")},e.ctorParameters=function(){return[{type:n.ElementRef,decorators:[{type:n.Inject,args:[n.ElementRef]}]}]},N([n.Input(),H("design:type",Object),H("design:paramtypes",[Object])],e.prototype,"pectinCommand",null),N([n.Input(),H("design:type",Object),H("design:paramtypes",[Object])],e.prototype,"commandParameter",null),N([n.HostListener("click",["$event"]),H("design:type",Function),H("design:paramtypes",[Event]),H("design:returntype",void 0)],e.prototype,"notifyClick",null),e=N([n.Directive({selector:"[pectinCommand]"}),U(0,n.Inject(n.ElementRef)),H("design:paramtypes",[n.ElementRef])],e)}(b.GarbageCollector),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.ngOnDestroy=function(){this.dispose()},e=N([n.Directive()],e)}(b.GarbageCollector),X=function(t){function o(e,n,o,i){var r=t.call(this)||this;return r.focusTargetElement=e,r.ngZone=n,r.focusContext=i,r.document=o,b.Dsl.disposeWith(r).when.valueOf(r.focusContext.focused).changes((function(t){t&&!r.alreadyHasFocus()&&r.tryAndFocus()}),{initialValue:"triggerChangeUnlessNil"}),r}return L(o,t),o.prototype.onFocusIn=function(){this.focusContext.notifyFocusIn()},o.prototype.onFocusOut=function(){this.focusContext.notifyFocusOut()},o.prototype.alreadyHasFocus=function(){return this.isElementFocused(this.focusTarget)},o.prototype.isElementFocused=function(t){return this.document.activeElement===t},o.prototype.tryAndFocus=function(t){var e=this;void 0===t&&(t=5),this.modelShouldStillHaveFocus()&&this.canFocus()&&(this.alreadyHasFocus()||this.focusTarget.focus(),this.alreadyHasFocus()||(b.Logger.get(this).log("focus failed, trying "+t+" more times"),t>0?requestAnimationFrame((function(){e.tryAndFocus(t-1)})):b.Logger.get(this).warn("Tried to focus but gave up as the component wasn't enabled or visible.")))},Object.defineProperty(o.prototype,"focusTarget",{get:function(){return this.focusTargetElement},enumerable:!0,configurable:!0}),o.prototype.modelShouldStillHaveFocus=function(){return this.focusContext.focused.value},o.prototype.canFocus=function(){var t=this.focusTarget.getBoundingClientRect();return t.height>=0&&t.height>=0&&!this.focusTarget.disabled},o=N([U(1,n.Inject(n.NgZone)),U(2,n.Inject(e.DOCUMENT)),H("design:paramtypes",[HTMLElement,n.NgZone,Object,Object])],o)}(b.GarbageCollector),$=function(){function t(t,e){this.ngZone=t,this.document=e}return t.prototype.createBinding=function(t,e){return new X(t,this.ngZone,this.document,e)},t.ctorParameters=function(){return[{type:n.NgZone,decorators:[{type:n.Inject,args:[n.NgZone]}]},{type:void 0,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]}]},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(n.NgZone),n.ɵɵinject(e.DOCUMENT))},token:t,providedIn:"root"}),t=N([n.Injectable({providedIn:"root"}),U(0,n.Inject(n.NgZone)),U(1,n.Inject(e.DOCUMENT)),H("design:paramtypes",[n.NgZone,Object])],t)}(),Y=function(t){function e(e,n){var o=t.call(this)||this;return o.el=e,o.focusBindingFactory=n,o}return L(e,t),e.prototype.onFocusIn=function(){this.hasBinding()&&this.pectinFocusBinding.notifyFocusIn()},e.prototype.onFocusOut=function(){this.hasBinding()&&this.pectinFocusBinding.notifyFocusOut()},e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.hasBinding()?this.registerDisposable(this.focusBindingFactory.createBinding(this.focusTarget,this.pectinFocusBinding)):b.Logger.get(this).warn("pectinFocusBinding was nil")},e.prototype.hasBinding=function(){return!!this.pectinFocusBinding&&!!this.pectinFocusBinding},Object.defineProperty(e.prototype,"focusTarget",{get:function(){return this.focusBindingTarget||this.el.nativeElement},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:n.ElementRef,decorators:[{type:n.Inject,args:[n.ElementRef]}]},{type:$}]},N([n.Input(),H("design:type",Object)],e.prototype,"pectinFocusBinding",void 0),N([n.Input(),H("design:type",HTMLElement)],e.prototype,"focusBindingTarget",void 0),N([n.HostListener("focusin"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"onFocusIn",null),N([n.HostListener("focusout"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"onFocusOut",null),e=N([n.Directive({selector:"[pectinFocusBinding]"}),U(0,n.Inject(n.ElementRef)),H("design:paramtypes",[n.ElementRef,$])],e)}(K),Z=function(){function t(){}return t=N([n.NgModule({declarations:[W,Y],imports:[e.CommonModule,l.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule],exports:[W,Y]})],t)}(),J=function(t){function e(){return t.call(this)||this}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"addCardCommand",void 0),N([n.ContentChild("addCardTemplate"),H("design:type",n.TemplateRef)],e.prototype,"addCardTemplate",void 0),e=N([n.Component({selector:"aup-card-container",template:'<div class="card-container">\n <ng-content></ng-content>\n\n <div class="add-card-container" *ngIf="addCardCommand.enabled.value" [pectinCommand]="addCardCommand">\n <aup-icon icon="mat:add"></aup-icon>\n </div>\n\n <div class="add-card-template" *ngIf="addCardTemplate">\n <ng-container [ngTemplateOutlet]="addCardTemplate"></ng-container>\n </div>\n\n</div>\n',styles:[":root{--aup-default-padding:var(--default-padding, 18px);--aup-default-background:white}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}.aup-popup-interaction-panel{background:var(--aup-default-background,#fff);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(.4,0,.2,1)}.aup-input-activity{padding:calc(var(--aup-default-padding)/2)}.aup-input-component{display:block}.aup-input-component input,.aup-input-component mat-form-field{width:100%}.aup-input-component input mat-hint.faux-error,.aup-input-component mat-form-field mat-hint.faux-error{color:#f44336}.aup-input-component.dense mat-form-field .mat-form-field-infix{border-top:none}.aup-input-component.dense mat-form-field .mat-form-field-flex{padding-top:0}.aup-input-component.dense mat-form-field .mat-form-field-wrapper{padding-bottom:0;border-bottom:0}.aup-input-component.dense mat-form-field .mat-form-field-underline{bottom:0}.aup-input-component.dense mat-form-field.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label-wrapper{display:none}.aup-input-component.dense mat-form-field.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(0)}aup-table-cell-renderer>.aup-input-component .mat-form-field-flex{padding-top:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-infix{width:0}aup-table-cell-renderer>.aup-input-component .mat-form-field-label-wrapper{display:none}aup-table{--default-column-gap:var(--column-gap, 24px);--resolved-row-hover-background-color:var(--row-hover-background-color, rgba(0, 0, 0, 0.05))}aup-table .mat-table td.mat-cell:first-of-type,aup-table .mat-table td.mat-footer-cell:first-of-type,aup-table .mat-table th.mat-header-cell:first-of-type{padding-left:0}aup-table .mat-table tr.enable-hover:hover{background-color:var(--resolved-row-hover-background-color)}aup-table .mat-table td.enable-cursor{cursor:pointer}aup-table aup-table-cell-renderer,aup-table aup-table-header-cell-renderer{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%;min-height:47px}aup-table aup-table-cell-renderer.first-column,aup-table aup-table-cell-renderer:not(.first-column),aup-table aup-table-header-cell-renderer.first-column,aup-table aup-table-header-cell-renderer:not(.first-column){padding-left:var(--default-column-gap)}aup-table aup-table-cell-renderer.fillCell{justify-content:stretch;padding-left:0!important}aup-table aup-table-cell-renderer.padChild>:first-child{padding-left:var(--default-column-gap);flex:1}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]}),H("design:paramtypes",[])],e)}(K),Q=function(t){function e(e){var n=t.call(this)||this;return n.focusManager=e,n.restoreFocusCommand=b.Command.create((function(){n.restoreFocus()})),n.tabIndex=-1,n}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.restoreFocus=function(){this.focusManager.restoreFocus()},e.ctorParameters=function(){return[{type:b.FocusManager,decorators:[{type:n.Self}]}]},N([n.HostBinding("attr.tabindex"),H("design:type",Object)],e.prototype,"tabIndex",void 0),e=N([n.Component({selector:"aup-focus-container",template:"<ng-content></ng-content>\n",providers:[{provide:b.FocusManager}],styles:[":host{display:block}"]}),U(0,n.Self()),H("design:paramtypes",[b.FocusManager])],e)}(K),tt=function(t){function e(e,n,o){var i=t.call(this)||this;i.el=e,i.focusManager=n;var r=b.Dsl.disposeWith(i);r.chain,r.valueOf,r.before,r.when,r.after,r.observe,r.switchOn;return i.focusManager&&(i._focusContext=i.focusManager.registerFocusable(i),i.registerDisposable(i._focusContext),i.registerDisposable(o.createBinding(e.nativeElement,i.focusContext))),i}return L(e,t),Object.defineProperty(e.prototype,"focusable",{get:function(){return this.focusContext?0:void 0},enumerable:!0,configurable:!0}),e.prototype.onFocus=function(){var t;null===(t=this.focusContext)||void 0===t||t.notifyFocusIn()},e.prototype.onBlur=function(){var t;null===(t=this.focusContext)||void 0===t||t.notifyFocusOut()},Object.defineProperty(e.prototype,"focusContext",{get:function(){return this._focusContext},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:n.ElementRef},{type:b.FocusManager},{type:$}]},N([n.HostBinding("attr.tabindex"),H("design:type",Object),H("design:paramtypes",[])],e.prototype,"focusable",null),N([n.HostListener("focus"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"onFocus",null),N([n.HostListener("blur"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"onBlur",null),e=N([n.Component({template:""}),H("design:paramtypes",[n.ElementRef,b.FocusManager,$])],e)}(K),et=function(t){function e(){var e=t.call(this)||this;e.onValueEditedListeners=new b.EventListenerList,e.dense=!1,e.focus=new n.EventEmitter,e.blur=new n.EventEmitter,e.enterKey=new n.EventEmitter,e.escapeKey=new n.EventEmitter,e.baseClassName="aup-input-component";var o=e;return e.errorStateMatcher={isErrorState:function(t,e){return o.hasErrors()}},e}return L(e,t),e.prototype.notifyClick=function(){this.safelyInvoke(this.clickCommand)},e.prototype.notifyFocusIn=function(){this.safelyInvoke(this.focusCommand),this.focus.emit()},e.prototype.notifyFocusOut=function(){this.safelyInvoke(this.blurCommand),this.blur.emit()},e.prototype.notifyEnterKey=function(){this.safelyInvoke(this.enterCommand),this.enterKey.emit()},e.prototype.notifyEscapeKey=function(){this.safelyInvoke(this.escapeCommand),this.escapeKey.emit()},e.prototype.safelyInvoke=function(t){t&&t.enabled.value&&t.execute()},e.prototype.ngOnInit=function(){},e.prototype.isEnabled=function(){return this.enabled.value},Object.defineProperty(e.prototype,"enabled",{get:function(){return this.formValueModel.enabled},enumerable:!0,configurable:!0}),e.prototype.hasErrors=function(){return!this.errorList.query().isEmpty()},Object.defineProperty(e.prototype,"errorList",{get:function(){return this.formValueModel.errorList},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstError",{get:function(){return this.hasErrors()?this.errorList.value[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusContext",{get:function(){return this.formValueModel.focusContext},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return this.dense?"never":this.userFloatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showHint",{get:function(){return!this.dense&&!!this.hint},enumerable:!0,configurable:!0}),e.prototype.onValueEdited=function(t){return this.onValueEditedListeners.add(t)},N([n.Input(),H("design:type",String)],e.prototype,"label",void 0),N([n.Input("floatLabel"),H("design:type",String)],e.prototype,"userFloatLabel",void 0),N([n.Input(),H("design:type",String)],e.prototype,"hint",void 0),N([n.Input(),H("design:type",String)],e.prototype,"placeholder",void 0),N([n.HostBinding("class.dense"),n.Input(),H("design:type",Object)],e.prototype,"dense",void 0),N([n.Input("command.focus"),H("design:type",b.Command)],e.prototype,"focusCommand",void 0),N([n.Input("command.blur"),H("design:type",b.Command)],e.prototype,"blurCommand",void 0),N([n.Input("command.enter"),H("design:type",b.Command)],e.prototype,"enterCommand",void 0),N([n.Input("command.escape"),H("design:type",b.Command)],e.prototype,"escapeCommand",void 0),N([n.Input("command.click"),H("design:type",b.Command)],e.prototype,"clickCommand",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"focus",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"blur",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"enterKey",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"escapeKey",void 0),N([n.HostBinding("class"),H("design:type",Object)],e.prototype,"baseClassName",void 0),N([n.HostListener("click"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"notifyClick",null),N([n.HostListener("focusin"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"notifyFocusIn",null),N([n.HostListener("focusout"),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],e.prototype,"notifyFocusOut",null),e=N([n.Component({template:""}),H("design:paramtypes",[])],e)}(K),nt=function(t){function e(){var e=t.call(this)||this;e.formValueModel=e.registerDisposable(new b.Form.DelegatingListModel),e.componentListModel=new b.MutableListModel,e.setValueIsInProgress=new b.Guard,e.valueChange=new n.EventEmitter;var o=b.Dsl.disposeWith(e),i=o.when,r=o.valueOf,a=o.chain,s=new b.Binding.Identity(e.formValueModel,e.componentListModel),l=r.any(e.setValueIsInProgress,a(s.direction).equals(b.Binding.Direction.RIGHT)).areTruthy();return i(e.componentListModel).changes((function(t,n){e.valueChange.emit(t),e.onValueEditedListeners.fire((function(e){return e(t,n)}))}),{initialValue:"ignore",unless:l}),b.DebugContext.tag(e.formValueModel,e.constructor.name+".formValueModel"),e}return L(e,t),Object.defineProperty(e.prototype,"value",{set:function(t){var e=this;this.setValueIsInProgress.whileTrue((function(){e.listHolder?e.listHolder.value=t:(e.listHolder=new b.MutableListModel(t),e.listModel=e.listHolder)}))},enumerable:!0,configurable:!0}),N([n.Input(),b.TrackExternal({delegateTo:"formValueModel"}),H("design:type",Object)],e.prototype,"listModel",void 0),N([n.Input(),H("design:type",Array),H("design:paramtypes",[Array])],e.prototype,"value",null),N([n.Output(),H("design:type",Object)],e.prototype,"valueChange",void 0),e=N([n.Component({template:""}),H("design:paramtypes",[])],e)}(et),ot=function(t){function e(){var e=t.call(this)||this;e.formValueModel=e.registerDisposable(new b.Form.DelegatingValueModel),e.setValueInProgress=new b.Guard,e.componentValueModel=new b.MutableValueModel,e.valueChange=new n.EventEmitter;var o=b.Dsl.disposeWith(e),i=o.when,r=o.chain,a=o.valueOf,s=new b.Binding.Identity(e.formValueModel,e.componentValueModel),l=a.any(e.setValueInProgress,r(s.direction).equals(b.Binding.Direction.RIGHT)).areTruthy();return i(e.componentValueModel).changes((function(t,n){e.valueChange.emit(t),e.onValueEditedListeners.fire((function(e){return e(t,n)}))}),{initialValue:"ignore",unless:l}),b.DebugContext.tag(e.formValueModel,e.constructor.name+".formValueModel"),e}return L(e,t),Object.defineProperty(e.prototype,"value",{set:function(t){var e=this;this.setValueInProgress.whileTrue((function(){e.plainValueHolder?e.plainValueHolder.value=t:(e.plainValueHolder=new b.MutableValueModel(t),e.valueModel=e.plainValueHolder)}))},enumerable:!0,configurable:!0}),N([n.Input(),b.TrackExternal({delegateTo:"formValueModel"}),H("design:type",Object)],e.prototype,"valueModel",void 0),N([n.Input(),H("design:type",Object),H("design:paramtypes",[Object])],e.prototype,"value",null),N([n.Output(),H("design:type",Object)],e.prototype,"valueChange",void 0),e=N([n.Component({template:""}),H("design:paramtypes",[])],e)}(et),it=function(t){function e(){var e=t.call(this)||this;e.filterValue=new b.MutableValueModel,e.optionLabelFormat=function(t){return t&&e.optionLabel?t[e.optionLabel]:t};var n=b.Dsl.disposeWith(e),o=n.chain,i=(n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn,o(e.filterValue).map((function(t){return _.isString(t)?t.toLowerCase():""})));return e.filteredOptions=o(e.optionsModel).select((function(t){return _.isEmpty(e.filterValue.value)||e.optionLabelFormat(t).toString().toLowerCase().includes(i.value)}),{dependsOn:i}),e}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.formatOption=function(t){return this.optionLabelFormat(t)},e.prototype.updateFilter=function(t){this.filterValue.value=t},e.prototype.onSelect=function(t){this.valueModel.value=t.option.value},N([n.Input(),b.TrackExternal(),H("design:type",b.ListModel)],e.prototype,"optionsModel",void 0),N([n.Input(),b.StoreInListModel("optionsModel"),H("design:type",Array)],e.prototype,"options",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"optionLabel",void 0),N([n.Input(),H("design:type",Boolean)],e.prototype,"allowNil",void 0),N([n.ContentChild("nilOptionTemplate"),H("design:type",n.TemplateRef)],e.prototype,"nilOptionTemplateRef",void 0),N([n.Input(),H("design:type",Function)],e.prototype,"optionLabelFormat",void 0),e=N([n.Component({selector:"aup-autocomplete-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <input type="string"\n matInput\n [matAutocomplete]="autocomplete"\n placeholder="{{placeholder}}"\n [ngModel]="componentValueModel.value"\n (ngModelChange)="updateFilter($event)"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-autocomplete #autocomplete [displayWith]="optionLabelFormat" [autoActiveFirstOption]="true" (optionSelected)="onSelect($event)">\n <mat-option *ngFor="let option of filteredOptions.value; let i = index"\n [value]="option"\n >{{formatOption(option)}}</mat-option>\n <mat-option *ngIf="allowNil">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n',styles:[":host{display:inline-block}mat-form-field{width:100%}"]}),H("design:paramtypes",[])],e)}(ot),rt=function(t){function e(){var e=t.call(this)||this;return e.color="accent",e.labelPosition="after",e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),H("design:type",String)],e.prototype,"color",void 0),N([n.Input(),H("design:type",String)],e.prototype,"labelPosition",void 0),e=N([n.Component({selector:"aup-checkbox-input",template:'\x3c!-- TODO: add focus binding --\x3e\n<mat-checkbox\n [(ngModel)]="componentValueModel.value"\n [color]="color"\n [labelPosition]="labelPosition"\n [disabled]="!isEnabled()"\n>{{label}}</mat-checkbox>\n<mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n<mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n',styles:[":host{display:inline-flex;flex-direction:column;padding:24px 0 16px}:host.dense{padding:6px 0 2px}mat-error,mat-hint{margin-top:4px;margin-left:24px;font-size:12px;font-weight:400;line-height:13.5px}"]}),H("design:paramtypes",[])],e)}(ot),at=function(t){function e(){var e=t.call(this)||this;return e.optionLabelFormat=function(t){return t&&e.optionLabel?t[e.optionLabel]:t},e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal(),H("design:type",b.ListModel)],e.prototype,"optionsModel",void 0),N([n.Input(),b.StoreInListModel("optionsModel"),H("design:type",Array)],e.prototype,"options",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"optionLabel",void 0),N([n.ContentChild("optionTemplate"),H("design:type",n.TemplateRef)],e.prototype,"optionTemplateRef",void 0),N([n.Input(),H("design:type",Function)],e.prototype,"optionLabelFormat",void 0),e=N([n.Component({selector:"aup-multiple-select-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <mat-select placeholder="{{placeholder}}"\n multiple\n [(ngModel)]="componentListModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-option *ngFor="let option of optionsModel.value; let i = index" [value]="option">\n <ng-container *ngIf="!optionTemplateRef">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf="optionTemplateRef"\n [ngTemplateOutlet]="optionTemplateRef"\n [ngTemplateOutletContext]="{ $implicit: option, index: i }"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n',styles:[":host{display:inline-block}mat-form-field{width:100%}"]}),H("design:paramtypes",[])],e)}(nt),st=function(t){function e(){var e=t.call(this)||this;return e.min=Number.MIN_SAFE_INTEGER,e.max=Number.MAX_SAFE_INTEGER,e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),H("design:type",Object)],e.prototype,"min",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"max",void 0),e=N([n.Component({selector:"aup-number-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <input type="number"\n matInput\n placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n [min]="min"\n [max]="max"\n >\n <mat-hint *ngIf="hint && !dense" >{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n',styles:[""]}),H("design:paramtypes",[])],e)}(ot),lt=function(t){function e(){return t.call(this)||this}return L(e,t),e.prototype.ngOnInit=function(){},e=N([n.Component({selector:"aup-password-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <input type="password"\n matInput\n placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n\n',styles:[""]}),H("design:paramtypes",[])],e)}(ot),ct=function(t){function e(){var e=t.call(this)||this;return e.optionLabelFormat=function(t){return t&&e.optionLabel?t[e.optionLabel]:t},e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal(),H("design:type",b.ListModel)],e.prototype,"optionsModel",void 0),N([n.Input(),b.StoreInListModel("optionsModel"),H("design:type",Array)],e.prototype,"options",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"optionLabel",void 0),N([n.Input(),H("design:type",Boolean)],e.prototype,"allowNil",void 0),N([n.ContentChild("optionTemplate"),H("design:type",n.TemplateRef)],e.prototype,"optionTemplateRef",void 0),N([n.ContentChild("nilOptionTemplate"),H("design:type",n.TemplateRef)],e.prototype,"nilOptionTemplateRef",void 0),N([n.Input(),H("design:type",Function)],e.prototype,"optionLabelFormat",void 0),e=N([n.Component({selector:"aup-select-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <mat-select placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-option *ngIf="allowNil">\n <ng-container *ngIf="!nilOptionTemplateRef">{{placeholder}}</ng-container>\n <ng-container *ngIf="nilOptionTemplateRef" [ngTemplateOutlet]="nilOptionTemplateRef"></ng-container>\n </mat-option>\n <mat-option *ngFor="let option of optionsModel.value; let i = index" [value]="option">\n <ng-container *ngIf="!optionTemplateRef">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf="optionTemplateRef"\n [ngTemplateOutlet]="optionTemplateRef"\n [ngTemplateOutletContext]="{ $implicit: option, index: i }"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n',styles:[":host{display:inline-block}mat-form-field{width:100%}"]}),H("design:paramtypes",[])],e)}(ot),ut=function(t){function e(){var e=t.call(this)||this,n=b.Dsl.disposeWith(e),o=n.chain;n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn;return e.clearCommand=b.Command.create((function(){e.componentValueModel.value=null})),e.clearCommand.disableWhile(o.stringValue(e.componentValueModel).isBlank()),e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal({defaultValue:!1}),H("design:type",b.ValueModel)],e.prototype,"enableClearModel",void 0),N([n.Input(),b.StoreInValueModel("enableClearModel"),H("design:type",Boolean)],e.prototype,"enableClear",void 0),e=N([n.Component({selector:"aup-string-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <input matInput\n placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n >\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf="enableClear" [pectinCommand]="clearCommand">\n <aup-icon icon="mat:close"></aup-icon>\n </button>\n</mat-form-field>\n\n',styles:["button[disabled]{visibility:hidden}"]}),H("design:paramtypes",[])],e)}(ot),pt=function(t){function e(){var e=t.call(this)||this;return e.rows=2,e}return L(e,t),e.prototype.ngOnInit=function(){},N([n.Input(),H("design:type",Object)],e.prototype,"rows",void 0),N([n.Input(),H("design:type",Number)],e.prototype,"cols",void 0),e=N([n.Component({selector:"aup-text-input",template:'<mat-form-field appearance="standard" [floatLabel]="floatLabel">\n <mat-label *ngIf="label">{{label}}</mat-label>\n <textarea matInput\n placeholder="{{placeholder}}"\n [(ngModel)]="componentValueModel.value"\n [disabled]="!enabled.value"\n (keydown.enter)="notifyEnterKey()"\n (keydown.escape)="notifyEscapeKey()"\n [pectinFocusBinding]="focusContext"\n [errorStateMatcher]="errorStateMatcher"\n [rows]="rows"\n [cols]="cols"\n >\n </textarea>\n <mat-hint *ngIf="showHint">{{hint}}</mat-hint>\n <mat-error *ngIf="hasErrors">{{firstError}}</mat-error>\n</mat-form-field>\n\n',styles:["button[disabled]{visibility:hidden}textarea{overflow:auto}"]}),H("design:paramtypes",[])],e)}(ot),dt=function(){function t(){}return Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){if(this._icon=t,!t)return this.errorMessage="icon is nil",void(this.prefix=void 0);var e=t.indexOf(":");e>0&&(this.prefix=this.icon.slice(0,e),this.suffix=this.icon.slice(e+1)),this.prefix&&(this.errorMessage='Unknown icon "'+t+'"'),this.errorMessage='Unknown icon prefix "'+this.prefix+'"'},enumerable:!0,configurable:!0}),N([n.Input(),H("design:type",String),H("design:paramtypes",[String])],t.prototype,"icon",null),t=N([n.Component({selector:"aup-icon",template:'<ng-container [ngSwitch]="prefix">\n\n <mat-icon *ngSwitchCase="\'svg\'"\n [svgIcon]="suffix"\n class="svgIcon">\n </mat-icon>\n\n <mat-icon *ngSwitchCase="\'mat\'">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase="\'fab\'"\n class="faIconWrapper">\n <fa-icon [icon]="suffix">\n </fa-icon>\n </div>\n\n <mat-icon *ngSwitchDefault\n [matTooltip]="errorMessage">\n bug_report\n </mat-icon>\n\n</ng-container>\n\n',styles:[":host{display:inline-flex;width:24px}fa-icon{vertical-align:middle}.faIconWrapper{text-align:center;width:24px;height:24px}.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]})],t)}(),ft=function(){function t(){}return t=N([n.Component({selector:"aup-noop",template:"",styles:[":host{display:block}"]}),H("design:paramtypes",[])],t)}(),ht=function(){function t(){}return t.prototype.ngOnInit=function(){},t=N([n.Component({selector:"aup-scroll-container",template:'<div class="container" cdkScrollable>\n <ng-content></ng-content>\n</div>\n',styles:[":host{display:flex;flex-direction:column;min-height:0;align-items:stretch}.container{display:flex;flex-direction:column;flex:1;flex-basis:0;overflow-y:scroll;align-items:stretch}"]}),H("design:paramtypes",[])],t)}(),mt=function(){function t(){this.underline=!1}return t.prototype.ngOnInit=function(){},N([n.Input(),n.HostBinding("class.underline"),H("design:type",Object)],t.prototype,"underline",void 0),t=N([n.Component({selector:"aup-section-header",template:"<ng-content></ng-content>\n",styles:[":host{--def-border-bottom-color:var(--border-bottom-color, rgba(0, 0, 0, 0.07));display:block;padding:8px 16px;font-size:12px;line-height:12px;color:rgba(0,0,0,.5)}:host.underline{border-bottom:1px solid var(--def-border-bottom-color)}"]}),H("design:paramtypes",[])],t)}(),gt=function(){function t(t){this.templateRef=t}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.name},enumerable:!0,configurable:!0}),t}(),yt=function(t){function e(e){var n=t.call(this,e)||this;return n.isDefault=!1,n}var o;return L(e,t),o=e,e.prototype.matches=function(t){return this.aupSwitchCaseWhen===t},e.ctorParameters=function(){return[{type:n.TemplateRef}]},N([n.Input(),H("design:type",Object)],e.prototype,"aupSwitchCaseWhen",void 0),e=o=N([n.Directive({selector:"[aupSwitchCaseWhen]",providers:[{provide:gt,useExisting:o}]}),H("design:paramtypes",[n.TemplateRef])],e)}(gt),vt=function(t){function e(e){var n=t.call(this,e)||this;return n.isDefault=!0,n}var o;return L(e,t),o=e,e.prototype.matches=function(t){return!1},e.ctorParameters=function(){return[{type:n.TemplateRef}]},e=o=N([n.Directive({selector:"[aupSwitchCaseDefault]",providers:[{provide:gt,useExisting:o}]}),H("design:paramtypes",[n.TemplateRef])],e)}(gt),bt=function(t){function e(e){var n=t.call(this)||this;return n.cdr=e,n.selectedIndex=0,n}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){var t=this,e=this.switchCaseOptions.changes.subscribe((function(e){return t.updateSelection()}));this.onDispose((function(){return e.unsubscribe()}));var n=b.Dsl.disposeWith(this);n.chain;n.when.valueOf(this.switchModel).changes((function(){return t.updateSelection()}),{initialValue:"triggerChange"}),this.cdr.detectChanges()},e.prototype.updateSelection=function(){var t=this,e=[];this.switchCaseOptions.forEach((function(n,o){n.matches(t.switchModel.value)&&e.push(o)})),e.length>1&&console.warn("found "+e.length+" matching case values, displaying the first."),0===e.length&&(this.switchCaseOptions.forEach((function(t,n){e.push(n)})),e.length>1&&console.warn("found "+e.length+" default case values, displaying the first.")),e.length>0?this.selectedIndex=e[0]:(console.warn("found no matching or default case values."),this.selectedIndex=-1)},e.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},N([n.Input(),b.TrackExternal(),H("design:type",b.ValueModel)],e.prototype,"switchModel",void 0),N([n.Input(),b.StoreInValueModel("switchModel"),H("design:type",Object)],e.prototype,"switch",void 0),N([n.ContentChildren(gt),H("design:type",n.QueryList)],e.prototype,"switchCaseOptions",void 0),e=N([n.Component({selector:"aup-switch-case",template:'<mat-tab-group class="content-wrapper" no-tab-header full-height-tabs [selectedIndex]="selectedIndex">\n <mat-tab *ngFor="let option of switchCaseOptions">\n <ng-template [ngTemplateOutlet]="option.templateRef"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n',styles:[":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}"]}),H("design:paramtypes",[n.ChangeDetectorRef])],e)}(K),Ct=Symbol("aup-cell-header-renderer-component-ref"),It=Symbol("aup-cell-renderer-component-ref"),wt=Symbol("aup-cell-editor-component-ref"),Rt=Symbol("aup-cell-renderer-portal-component"),xt=Symbol("aup-cell-editor-portal-component"),Pt=function(){},St=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.initialiseHeader=n,o}return L(e,t),e.prototype.initialiseHost=function(t,e){I.assert.isTruthy(t),t[Ct]=new c.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){this.initialiseHeader(e,t.column)},e}(Pt),Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e}(Pt),Ot=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.updateComponent=n,o}return L(e,t),e.prototype.initialiseHost=function(t,e){t[It]=new c.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){t[Rt]=e,this.updateComponent(e,t.getRowData(),!0)},e.prototype.pushState=function(t){t[Rt]&&this.updateComponent(t[Rt],t.getRowData(),!1)},e}(Mt),At=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.initialiseEditorSession=n,o}return L(e,t),e.prototype.initialiseHost=function(t,e){I.assert.isTruthy(t),t[wt]=new c.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){t[xt]=e,this.initialiseEditorSession(e,t.editSession)},e}(Pt),Tt=function(t){function e(){return t.call(this)||this}return L(e,t),e.prototype.registerPortal=function(t,e,n,o){this.templateRef=t,this.viewContainer=e,this.fillCell=n,this.padChild=o},e.prototype.initialiseHost=function(t,e){I.assert.isTruthy(t)},e.prototype.onPortalAttached=function(t,e){},e.prototype.pushState=function(t){t[It]=this.createPortal(t.getRowData()),t.fillCell=this.fillCell,t.padChild=this.padChild},e.prototype.createPortal=function(t){return new c.TemplatePortal(this.templateRef,this.viewContainer,V(V({},t),{$implicit:t.row}))},e}(Mt),Dt=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),N([n.Input(),H("design:type",Object),H("design:paramtypes",[Object])],t.prototype,"value",null),t=N([n.Component({selector:"aup-default-cell-renderer",template:"{{value}}\n",styles:[""]}),H("design:paramtypes",[])],t)}(),Et=function(){function t(){}return N([n.Input(),H("design:type",String)],t.prototype,"headerText",void 0),t=N([n.Component({selector:"aup-default-header-renderer",template:"{{headerText}}\n",styles:[""]}),H("design:paramtypes",[])],t)}(),Ft=function(t){function e(e,n,o,i){var r=t.call(this)||this;return r.rowId=e,r.form=o,r.saveCommand=i,r._liveRowValue=new b.MutableValueModel,r.liveRowValue=r._liveRowValue.readonly,r.form.load(n),r._liveRowValue.value=n,r.form.onEdit((function(){r._liveRowValue.value=R(r._liveRowValue.value,(function(t){r.form.writeDirtyStateTo(t)}))})),r}return L(e,t),e}(b.GarbageCollector),kt=function(t){function e(){var e=t.call(this)||this;return e.saveCommand=b.Command.create((function(){e.editSession.saveCommand.execute(e.editSession.form).then((function(t){t&&e.editSession.dispose()}))})),e.cancelCommand=b.Command.create((function(){e.editSession.dispose()})),e}return L(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"form",{get:function(){var t;return null===(t=this.editSession)||void 0===t?void 0:t.form},enumerable:!0,configurable:!0}),N([n.Input(),H("design:type",Object)],e.prototype,"row",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"editRowCommand",void 0),N([n.Input(),H("design:type",Ft)],e.prototype,"editSession",void 0),e=N([n.Component({selector:"aup-row-editor-controls",template:'<button *ngIf="!editSession" mat-icon-button [pectinCommand]="editRowCommand" class="edit-button"><aup-icon icon="mat:edit"></aup-icon></button>\n<button *ngIf="editSession" mat-icon-button [pectinCommand]="saveCommand"><aup-icon icon="mat:done"></aup-icon></button>\n<button *ngIf="editSession" mat-icon-button [pectinCommand]="cancelCommand"><aup-icon icon="mat:clear"></aup-icon></button>\n',styles:[":host{display:block;width:80px}.edit-button{visibility:hidden}:host-context(tr:hover) .edit-button{visibility:visible}"]}),H("design:paramtypes",[])],e)}(K),_t=function(t){function e(){var e=t.call(this)||this;return e.selectCommand=b.Command.create((function(){e.selectionModel.selectCommand.execute(e.row)})),e}return L(e,t),e.prototype.isSelected=function(){return this.selectionModel.isSelected(this.row)},N([n.Input(),H("design:type",Object)],e.prototype,"row",void 0),e=N([n.Component({selector:"aup-select-cell-renderer",template:'<mat-checkbox [pectinCommand]="selectCommand" [checked]="isSelected()"></mat-checkbox>\n',styles:[""]}),H("design:paramtypes",[])],e)}(K),jt=function(t){function e(){var e=t.call(this)||this;return e.selectCommand=b.Command.create((function(){e.selectionModel.toggleAllCommand.execute()})),e}return L(e,t),e.prototype.isSelected=function(){var t;return(null===(t=this.selectionModel)||void 0===t?void 0:t.allSelected.value)||!1},e.prototype.isIntermediate=function(){var t;return(null===(t=this.selectionModel)||void 0===t?void 0:t.someSelected.value)||!1},e=N([n.Component({selector:"aup-select-header-cell-renderer",template:'<mat-checkbox *ngIf="enableHeaderControls" [pectinCommand]="selectCommand" [checked]="isSelected()" [indeterminate]="this.isIntermediate()"></mat-checkbox>\n',styles:[""]}),H("design:paramtypes",[])],e)}(K),Lt=function(){},Vt=Symbol("aup-cell-renderer:row-data-cache"),Nt=function(){function t(t,e){this.columnId=t,this.defaults=e,this._selectRowOnClick=void 0,this.cellHeaderRenderer(Et,(function(t,e){t.headerText=e.getHeaderText()}))}return t.prototype.getHeaderText=function(){var t;return(null===(t=this.getColumnTextProperties())||void 0===t?void 0:t.headerText())||this.getDefaultHeaderText()},t.prototype.getDefaultHeaderText=function(){return this.columnId},t.prototype.getColumnTextProperties=function(){return this._columnTextProperties||this.defaults.getColumnTextProperties(this)},t.prototype.textProperties=function(t){return this._columnTextProperties=t,this},t.prototype.configureHeaderRenderer=function(t){this._columnHeaderPortalRef=t},t.prototype.configureCellRenderer=function(t){this._cellRendererPortalRef=t},t.prototype.configureCellEditor=function(t){this._cellEditorPortalRef=t},t.prototype.cellHeaderRenderer=function(t,e){return this.configureHeaderRenderer(new St(t,e)),this},t.prototype.hasEditorPortal=function(){return!!this._cellEditorPortalRef},t.prototype.attachHeaderCell=function(t){this._columnHeaderPortalRef.initialiseHost(t,this)},t.prototype.attachCell=function(t){this._cellRendererPortalRef.initialiseHost(t,this),this.hasEditorPortal()&&this._cellEditorPortalRef.initialiseHost(t,this)},t.prototype.onHeaderAttached=function(t,e){this._columnHeaderPortalRef.onPortalAttached(t,e)},t.prototype.onRendererAttached=function(t,e){this._cellRendererPortalRef.onPortalAttached(t,e)},t.prototype.onEditorAttached=function(t,e){this._cellEditorPortalRef.onPortalAttached(t,e)},t.prototype.updatePortalContent=function(t){this._cellRendererPortalRef.pushState(t)},t.prototype.selectRowOnClick=function(t){return this._selectRowOnClick=t,this},t.prototype.isRowSelectionEnabled=function(){return this._selectRowOnClick},t.prototype.isRowSelectionExplicitlyEnabled=function(){return!0===this._selectRowOnClick},t.prototype.isRowSelectionExplicitlyDisabled=function(){return!1===this._selectRowOnClick},N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",String)],t.prototype,"getHeaderText",null),N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",Object)],t.prototype,"getColumnTextProperties",null),t}(),Ut=function(t){function e(e,n,o){var i=t.call(this,e,o)||this;return i.property=n,i._format=function(t){return t},i.cellRenderer(Dt),i}return L(e,t),e.prototype.cellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Ot(t,(function(t,o,i){i&&(_.isFunction(e)?e(t):_.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t)),t.value=n._format(o.row[n.property]),!_.isFunction(e)&&_.isFunction(null==e?void 0:e.onRowUpdate)&&e.onRowUpdate(t,o.row)}))),this},e.prototype.mutableCellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Ot(t,(function(t,o,i){t[Vt]=o.row;var r=!1;i&&(_.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t),t.onValueEdited((function(n,o){r||e.onValueEdit(t[Vt],n,o)}))),r=!0,t.value=o.row[n.property],r=!1,!_.isFunction(e)&&_.isFunction(null==e?void 0:e.onRowUpdate)&&e.onRowUpdate(t,o.row)}))),this},e.prototype.cellEditor=function(t,e,n){var o=this,i=Array.isArray(e)?e:void 0,r=_.isFunction(e)?e:n;return this.configureCellEditor(new At(t,(function(t,e){var n=e.form.pluck(o.property);i&&n.validateUsing(i),t.valueModel=n,r&&r(t)}))),this},e.prototype.format=function(t){return I.assert.isFunction(t),this._format=t,this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(Nt),Ht=function(t){function e(e,n,o){var i=t.call(this,e,o)||this;return i.property=n,i._format=function(t){return t.map((function(t){return null==t?void 0:t.toString()})).join(", ")},i.cellRenderer(Dt),i}return L(e,t),e.prototype.cellRenderer=function(t){var e=this;return this.configureCellRenderer(new Ot(t,(function(t,n){t.value=e._format(n.row[e.property])}))),this},e.prototype.cellEditor=function(t,e,n){var o=this,i=Array.isArray(e)?e:void 0,r=_.isFunction(e)?e:n;return this.configureCellEditor(new At(t,(function(t,e){var n=e.form.pluckList(o.property);i&&n.validateUsing(i),t.listModel=n,r&&r(t)}))),this},e.prototype.format=function(t){return I.assert.isFunction(t),this._format=t,this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(Nt),Bt=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.getValue=o,i.cellRenderer(Dt),i}return L(e,t),e.prototype.cellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Ot(t,(function(t,o,i){i&&(_.isFunction(e)?e(t):_.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t)),t.value=n.getValue(o.row),!_.isFunction(e)&&_.isFunction(null==e?void 0:e.onRowUpdate)&&e.onRowUpdate(t,o.row)}))),this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(Nt),qt=function(t){function e(e,n,o){var i=t.call(this,e,o)||this;return i.cellRenderer(kt),i}return L(e,t),e.prototype.cellRenderer=function(t){return this.configureCellRenderer(new Ot(t,(function(t,e){t.row=e.row,t.editSession=e.editSession,t.editRowCommand=e.editRowCommand}))),this},e.prototype.getDefaultHeaderText=function(){return""},e}(Nt),zt=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.config=new Tt,o.configureCellRenderer(o.config),o}return L(e,t),e.prototype.setTemplate=function(t,e,n,o){this.config.registerPortal(t,e,n,o)},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(Nt),Gt=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.selectionModel=o,i._enableHeaderControls=!0,i.selectOnRowClick(!1),o instanceof b.MultipleSelectionModel&&i.cellHeaderRenderer(jt,(function(t){t.selectionModel=o,t.enableHeaderControls=i._enableHeaderControls})),i.configureCellRenderer(new Ot(_t,(function(t,e){t.row=e.row,t.selectionModel=o}))),i}return L(e,t),e.prototype.getDefaultHeaderText=function(){return""},e.prototype.isRowSelectionEnabledByDefault=function(){return this.isRowSelectionExplicitlyEnabled()},e.prototype.selectOnRowClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e.prototype.enableHeaderControls=function(t){return this._enableHeaderControls=t,this},e.prototype.selectRow=function(t){this.selectionModel.selectCommand.execute(t)},e}(Nt),Wt=function(t,e){this.className=t,this.matches=e},Kt=function(){function t(t){var e=this;this.sourceOfTruth=t,this._garbage=new b.GarbageCollector,this._columns=new b.MutableListModel,this._editorSessions=new b.MutableListModel,this.rowClassNamePredicates=[],this._createForm=function(t){return new b.DirtyTrackingForm},this.trackBy=function(t,n){return e.identityOf?e.identityOf(n):t},this.identityOf=t.identityOf;var n=b.Dsl.disposeWith(this._garbage),o=n.chain;n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn;this._columnsById=o(this._columns).indexBy("columnId"),this._rowsBeingEdited=new b.MutableListModel([],{identifiedWith:this.identityOf}),this._editorSessionByRowId=o(this._editorSessions).indexBy("rowId"),this.editing=o(this._editorSessions).count().isGreaterThan(0),this.dataSource=o(this.sourceOfTruth).replaceAll(this.rowsBeingEdited),this.firstEditableColumn=o(this.columns).select((function(t){return t.hasEditorPortal()})).first(),this.hasColumnsWithRowSelectionExplicitlyEnabled=o(this._columns).findIndex((function(t){return t.isRowSelectionExplicitlyEnabled()})).isGreaterThanOrEqualTo(0),this.addRowClass("enable-hover",(function(){return e.isRowSelectionEnabled()}))}var e;return e=t,t.fromList=function(t,n){var o=new e(t);return n(o),o},Object.defineProperty(t.prototype,"rowsBeingEdited",{get:function(){return this._rowsBeingEdited.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns.readonly},enumerable:!0,configurable:!0}),t.prototype.pluck=function(t,e){return this.addColumn(new Ut((null==e?void 0:e.columnId)||t.toString(),t,this))},t.prototype.pluckList=function(t,e){return this.addColumn(new Ht((null==e?void 0:e.columnId)||t.toString(),t,this))},t.prototype.addSelectionColumn=function(t){return b.assert.isNil(this.selectionColumnModel),this.selectionColumnModel=new Gt("selection",this,t),this.addColumn(this.selectionColumnModel)},t.prototype.addEditControls=function(t){return this.saveCommand=t,this.addColumn(new qt("editControls",t,this))},t.prototype.addCustomColumn=function(t,e){return this.addColumn(new Bt(t,this,e))},t.prototype.addComponentColumn=function(t,e,n){return this.addColumn(new Bt(t,this,(function(t){return t}))).cellRenderer(e,n)},t.prototype.addTemplateColumn=function(t){return this.addColumn(new zt(t,this))},t.prototype.addRowClass=function(t,e){this.rowClassNamePredicates.push(new Wt(t,e))},t.prototype.getRowClasses=function(t){var e=[];return this.rowClassNamePredicates.forEach((function(n){n.matches(t)&&e.push(n.className)})),e},t.prototype.useFormFactory=function(t){return this._createForm=t,this},t.prototype.addColumn=function(t){return this._columnsById.get(t.columnId)?b.lang.illegalState("Column with id="+t.columnId+" already exists"):this._columns.push(t),t},t.prototype.columnTextProperties=function(t){this._columnTextPropertiesLookup=t},t.prototype.getColumnTextProperties=function(t){var e=this._columnTextPropertiesLookup?this._columnTextPropertiesLookup[t.columnId]:void 0;return e?e():void 0},t.prototype.startEditSession=function(t){var e=this,n=this.identityOf(t);if(this._rowsBeingEdited.query().indexOf(t)>-1)return b.lang.illegalState("Row with id="+n+" already being edited");var o=new Ft(n,t,this._createForm(t),this.saveCommand);return b.Dsl.disposeWith(o).when.valueOf(o.liveRowValue).changes((function(t){e._rowsBeingEdited.replaceOrPush(t)}),{initialValue:"triggerChangeUnlessNil"}),this._editorSessions.push(o),o.onDispose((function(){e._rowsBeingEdited.remove(o.liveRowValue.value),e._editorSessions.remove(o)})),o},t.prototype.getEditSessionFor=function(t){return this._editorSessionByRowId.get(this.identityOf(t))},t.prototype.cancelAllEditorSessions=function(){var t=this;this._editorSessions.runInTransaction((function(e){t._rowsBeingEdited.runInTransaction((function(){e.value.forEach((function(t){return t.dispose()}))}))}))},t.prototype.isRowSelectionEnabledFor=function(t){var e;return this.selectionColumnModel&&(null!==(e=t.isRowSelectionEnabled())&&void 0!==e?e:this.isRowSelectionEnabledByDefault())},t.prototype.isRowSelectionEnabledByDefault=function(){return this.selectionColumnModel&&this.selectionColumnModel.isRowSelectionEnabledByDefault()},t.prototype.isRowSelectionEnabled=function(){return this.hasColumnsWithRowSelectionExplicitlyEnabled.value||this.isRowSelectionEnabledByDefault()},t.prototype.selectRow=function(t){var e;null===(e=this.selectionColumnModel)||void 0===e||e.selectRow(t)},t.ctorParameters=function(){return[{type:b.ListModel}]},t=e=N([b.TrackExternal.Strategy(new b.TrackExternal.OneTimeBinding),H("design:paramtypes",[b.ListModel])],t)}(),Xt=function(t){function e(){return t.call(this)||this}return L(e,t),e.prototype.ngOnInit=function(){var t=b.Dsl.disposeWith(this),e=t.chain;t.valueOf,t.before,t.when,t.after,t.observe,t.switchOn;this.columns=e(this.tableModel.columns),this.columnIds=e(this.columns).pluck("columnId"),this.columnsById=e(this.columns).indexBy("columnId")},e.prototype.isEditing=function(t){return!!this.tableModel.getEditSessionFor(t)},e.prototype.registerColumnTemplate=function(t,e,n,o,i){var r=this.columnsById.get(t);r instanceof zt&&r.setTemplate(e,n,o,i)},e.prototype.onCellClicked=function(t,e){this.tableModel.isRowSelectionEnabledFor(t)&&this.tableModel.selectRow(e)},N([n.Input(),b.TrackExternal(),H("design:type",Kt)],e.prototype,"tableModel",void 0),e=N([n.Component({selector:"aup-table",template:'<table mat-table [dataSource]="tableModel.dataSource.value" [trackBy]="tableModel.trackBy">\n\n <ng-container *ngFor="let column of columns.value; index as index; first as first; last as last" matColumnDef="{{column.columnId}}">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]="column"\n [attr.column-index]="index"\n [attr.column-id]="column.columnId"\n [class.first-column]="first"\n [class.last-column]="last"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef="let row" (click)="onCellClicked(column, row)" [class.enable-cursor]="tableModel.isRowSelectionEnabledFor(column)">\n <aup-table-cell-renderer [column]="column"\n [row]="row"\n [tableModel]="tableModel"\n [editSession]="tableModel.getEditSessionFor(row)"\n [attr.column-index]="index"\n [attr.column-id]="column.columnId"\n [class.first-column]="first"\n [class.last-column]="last"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef="columnIds.value"></tr>\n <tr mat-row *matRowDef="let row; columns: columnIds.value; let i = index"\n [ngClass]="tableModel.getRowClasses(row)" [attr.trackBy]="tableModel.trackBy(i, row)"\n ></tr>\n\n</table>\n',styles:[":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]}),H("design:paramtypes",[])],e)}(K),$t=function(){function t(t,e,n){this.host=t,this.templateRef=e,this.viewContainer=n,this.aupColumnTemplateFillCell=!1,this.aupColumnTemplateAutoPadChild=void 0}return t.prototype.ngOnInit=function(){var t;b.assert.isTruthy(this.aupColumnTemplateColumnId),this.host.registerColumnTemplate(this.aupColumnTemplateColumnId,this.templateRef,this.viewContainer,this.aupColumnTemplateFillCell,null!==(t=this.aupColumnTemplateAutoPadChild)&&void 0!==t?t:this.aupColumnTemplateFillCell)},t.ctorParameters=function(){return[{type:Xt},{type:n.TemplateRef},{type:n.ViewContainerRef}]},N([n.Input(),H("design:type",String)],t.prototype,"aupColumnTemplate",void 0),N([n.Input(),H("design:type",String)],t.prototype,"aupColumnTemplateColumnId",void 0),N([n.Input(),H("design:type",Object)],t.prototype,"aupColumnTemplateFillCell",void 0),N([n.Input(),H("design:type",Object)],t.prototype,"aupColumnTemplateAutoPadChild",void 0),t=N([n.Directive({selector:"[aupColumnTemplate]"}),H("design:paramtypes",[Xt,n.TemplateRef,n.ViewContainerRef])],t)}(),Yt=function(t){function e(){var e=t.call(this)||this;return e.defaultClassNames="aup-cell-renderer",e.fillCell=!1,e.padChild=!1,e.editRowCommand=b.Command.create((function(){e.tableModel.startEditSession(e.row)})),e}return L(e,t),e.prototype.ngOnInit=function(){var t=b.Dsl.disposeWith(this),e=t.chain;t.valueOf,t.before,t.when,t.after,t.observe,t.switchOn;this.firstEditableColumn=e(this.tableModel.firstEditableColumn).equals(this.column),this.column.attachCell(this)},e.prototype.hasActiveEditor=function(){return!!this.editSession&&!!this.column.hasEditorPortal()},e.prototype.initialiseRenderer=function(t){this.column.onRendererAttached(this,t)},e.prototype.initialiseEditor=function(t){var e=this;this.column.onEditorAttached(this,t),this.firstEditableColumn.value&&setTimeout((function(){return e.tryAndFocusEditor(t)}))},e.prototype.tryAndFocusEditor=function(t){var e;if(t.requestFocus)t.requestFocus();else{var n=t.valueModel||t.listModel;null===(e=null==n?void 0:n.focusContext)||void 0===e||e.requestFocus()}},e.prototype.ngOnChanges=function(t){this.column.updatePortalContent(this)},e.prototype.getRendererPortal=function(){return this[It]},e.prototype.getEditorPortal=function(){return this[wt]},e.prototype.getRowData=function(){return{row:this.row,editSession:this.editSession,editRowCommand:this.editRowCommand}},N([n.Input(),H("design:type",Object)],e.prototype,"row",void 0),N([n.Input(),H("design:type",Nt)],e.prototype,"column",void 0),N([n.Input(),H("design:type",Ft)],e.prototype,"editSession",void 0),N([n.Input(),H("design:type",Kt)],e.prototype,"tableModel",void 0),N([n.HostBinding("class"),H("design:type",Object)],e.prototype,"defaultClassNames",void 0),N([n.HostBinding("class.fillCell"),H("design:type",Object)],e.prototype,"fillCell",void 0),N([n.HostBinding("class.padChild"),H("design:type",Object)],e.prototype,"padChild",void 0),e=N([n.Component({selector:"aup-table-cell-renderer",template:'<ng-container *ngIf="!hasActiveEditor()" [cdkPortalOutlet]="getRendererPortal()" (attached)="initialiseRenderer($event.instance)"></ng-container>\n<ng-container *ngIf="hasActiveEditor()" [cdkPortalOutlet]="getEditorPortal()" (attached)="initialiseEditor($event.instance)"></ng-container>\n',styles:[""]}),H("design:paramtypes",[])],e)}(K),Zt=function(){function t(){this.defaultClassNames="aup-header-cell-renderer"}return t.prototype.ngOnInit=function(){this.column.attachHeaderCell(this)},t.prototype.initialiseHeader=function(t){this.column.onHeaderAttached(this,t)},t.prototype.getPortal=function(){return this[Ct]},N([n.Input(),H("design:type",Nt)],t.prototype,"column",void 0),N([n.HostBinding("class"),H("design:type",Object)],t.prototype,"defaultClassNames",void 0),t=N([n.Component({selector:"aup-table-header-cell-renderer",template:'<ng-container [cdkPortalOutlet]="getPortal()" (attached)="initialiseHeader($event.instance)"></ng-container>\n',styles:[":host{display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:100%}"]}),H("design:paramtypes",[])],t)}(),Jt=function(t){function e(e){var n=t.call(this,e)||this;return n.focusManager=e,n}return L(e,t),e.prototype.arrowLeft=function(t){this.leftArrowCommand.enabled.value&&(t.preventDefault(),t.stopPropagation(),this.leftArrowCommand.execute())},e.prototype.arrowRight=function(t){this.rightArrowCommand.enabled.value&&(t.preventDefault(),t.stopPropagation(),this.rightArrowCommand.execute())},e.prototype.arrowDown=function(t){t.preventDefault(),t.stopPropagation(),this.focusManager.focusNext()},e.prototype.arrowUp=function(t){t.preventDefault(),t.stopPropagation(),this.focusManager.focusPrevious()},e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:b.FocusManager,decorators:[{type:n.Self}]}]},N([n.Input("command.arrowRight"),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"rightArrowCommand",void 0),N([n.Input("command.arrowLeft"),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"leftArrowCommand",void 0),N([n.HostListener("keyup.arrowLeft",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"arrowLeft",null),N([n.HostListener("keyup.arrowRight",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"arrowRight",null),N([n.HostListener("keyup.arrowDown",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"arrowDown",null),N([n.HostListener("keyup.arrowUp",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"arrowUp",null),e=N([n.Component({selector:"aup-vertical-focus-container",template:"<ng-content></ng-content>\n",providers:[{provide:b.FocusManager}],styles:[":host{display:block}"]}),U(0,n.Self()),H("design:paramtypes",[b.FocusManager])],e)}(Q),Qt=function(){function t(t){t.addIconPacks(v.fas)}return t.ctorParameters=function(){return[{type:y.FaIconLibrary}]},t=N([n.NgModule({declarations:[et,ot,nt,st,ut,pt,lt,ct,at,it,rt,ht,ft,bt,yt,vt,Q,Jt,tt,J,Xt,kt,$t,Dt,Yt,_t,jt,Et,Zt,dt,mt],imports:[e.CommonModule,l.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule,Z,h.MatIconModule,d.MatButtonModule,f.MatCheckboxModule,m.MatTableModule,c.PortalModule,u.CdkScrollableModule,y.FontAwesomeModule,g.MatTooltipModule,p.MatAutocompleteModule],exports:[st,ut,pt,lt,rt,ct,at,it,ht,ft,bt,yt,vt,Q,Jt,tt,J,Xt,kt,$t,dt,mt],providers:[$]}),H("design:paramtypes",[y.FaIconLibrary])],t)}(),te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.align="start",e}return L(e,t),Object.defineProperty(e.prototype,"alignEnd",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignStretch",{get:function(){return"stretch"===this.align},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.hasConfirmText=function(){return!_.isEmpty(this.confirmText)},e.prototype.hasCancelText=function(){return!_.isEmpty(this.cancelText)},e.prototype.hasConfirmCommand=function(){return b.DelegatingCommand.hasDelegate(this.confirmCommand)},e.prototype.hasCancelCommand=function(){return b.DelegatingCommand.hasDelegate(this.cancelCommand)},N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"confirmCommand",void 0),N([n.Input(),H("design:type",String)],e.prototype,"confirmText",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"cancelCommand",void 0),N([n.Input(),H("design:type",String)],e.prototype,"cancelText",void 0),N([n.Input(),H("design:type",String)],e.prototype,"align",void 0),N([n.HostBinding("class.align-end"),H("design:type",Boolean),H("design:paramtypes",[])],e.prototype,"alignEnd",null),N([n.HostBinding("class.align-stretch"),H("design:type",Boolean),H("design:paramtypes",[])],e.prototype,"alignStretch",null),e=N([n.Component({selector:"aup-activity-actions",template:'<ng-container *ngIf="hasCancelCommand()">\n <button class="cancel" *ngIf="!hasCancelText()" mat-icon-button [pectinCommand]="cancelCommand">\n <aup-icon icon="mat:clear"></aup-icon>\n </button>\n <button class="cancel" *ngIf="hasCancelText()" mat-button [pectinCommand]="cancelCommand">{{cancelText}}</button>\n</ng-container>\n<ng-container *ngIf="hasConfirmCommand()">\n <button class="confirm" *ngIf="!hasConfirmText()" mat-icon-button [pectinCommand]="confirmCommand">\n <aup-icon icon="mat:done"></aup-icon>\n </button>\n <button class="confirm" *ngIf="hasConfirmText()" mat-button [pectinCommand]="confirmCommand">{{confirmText}}</button>\n</ng-container>\n<div class="content">\n <ng-content></ng-content>\n</div>\n',styles:[':host{display:-ms-grid;display:grid;grid-template-areas:"cancel confirm content";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:"content cancel confirm";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:"cancel content confirm";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}:host.align-stretch>.content{-ms-grid-row:1;-ms-grid-column:2}']})],e)}(K),ee=new n.InjectionToken("InteractionActivityData"),ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._busyModel=(new b.DelegatingValueModel).withDefault(!1),e.class="aup-activity",e}return L(e,t),e.prototype.initialise=function(t,e){I.assert.isNil(this._activityContext),this._activityContext=e,this._interactionContext=t},Object.defineProperty(e.prototype,"interactionContext",{get:function(){return I.assert.isTruthy(this.isInitialised()),this._interactionContext},enumerable:!0,configurable:!0}),e.prototype.done=function(t){return this._activityContext.onDone(t)},e.prototype.cancel=function(t){this._activityContext.onCancel(t)},e.prototype.onActivityReady=function(){},Object.defineProperty(e.prototype,"busy",{get:function(){return this._busyModel.readonly},enumerable:!0,configurable:!0}),e.prototype.busyWhile=function(t){this._busyModel.setDelegate(t)},e.prototype.isBusy=function(){return this._busyModel.value},e.prototype.isInitialised=function(){return!!this._activityContext},N([n.HostBinding("class"),H("design:type",Object)],e.prototype,"class",void 0),e}(K),oe=function(t){function e(e){var n=t.call(this)||this;return n.alert=e,n}return L(e,t),e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[ee]}]}]},e=N([n.Component({selector:"aup-alert-dialog",template:'<h3 matDialogTitle *ngIf="alert.title">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor="let line of alert.content()">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-raised-button color="primary" (click)="done()" data-cy="close-button">{{alert.ok()}}</button>\n</div>\n',styles:[":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}),U(0,n.Inject(ee)),H("design:paramtypes",[Object])],e)}(ne),ie=function(t){function e(e){var n=t.call(this)||this;return n.config=e,b.assert.notNil(e),n}return L(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"confirm",{get:function(){return this.config.confirm},enumerable:!0,configurable:!0}),e.prototype.isDestructive=function(){return this.confirm.destructive&&this.confirm.destructive()},e.prototype.onConfirm=function(){var t=this;this.interactionContext.startActivity(this.config.activityType,this.config.data).then((function(e){return t.done(e)})).catch((function(e){return t.cancel(e)}))},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[ee]}]}]},e=N([n.Component({selector:"aup-confirmation-dialog",template:'<h3 matDialogTitle *ngIf="confirm.title">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor="let line of confirm.content()">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)="cancel()" data-cy="cancel-button">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]="isDestructive() ? \'warn\' : \'primary\'"\n (click)="onConfirm()" data-cy="confirm-button">{{confirm.ok()}}</button>\n</div>\n\n',styles:[":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}),U(0,n.Inject(ee)),H("design:paramtypes",[Object])],e)}(ne),re=function(t){function e(e){var n=t.call(this)||this;return n.confirm=e,b.assert.notNil(e),n}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.isDestructive=function(){return this.confirm.destructive&&this.confirm.destructive()},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[ee]}]}]},e=N([n.Component({selector:"aup-confirmation-dialog",template:'<h3 matDialogTitle *ngIf="confirm.title">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor="let line of confirm.content()">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)="cancel()" data-cy="cancel-button">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]="isDestructive() ? \'warn\' : \'primary\'"\n (click)="done()" data-cy="confirm-button">{{confirm.ok()}}</button>\n</div>\n\n',styles:[":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}),U(0,n.Inject(ee)),H("design:paramtypes",[Object])],e)}(ne),ae=function(){function t(){}return t.prototype.startActivity=function(t,e,n){return this.createAndLaunchActivity(t,e,I.Opts.get(n).getOptional("disableClose",!1))},t.prototype.confirm=function(t){return this.confirmOrReject(t).then((function(){return!0})).catch((function(){return!1}))},t.prototype.alert=function(t){return this.createAndLaunchActivity(oe,t,!1)},t.prototype.confirmOrReject=function(t){return this.createAndLaunchActivity(re,t,!0)},t.prototype.confirmThen=function(t,e,n){return this.createAndLaunchActivity(ie,{confirm:t,activityType:e,data:n},!0)},t}(),se=function(){function t(t,e,n){this.activityClass=t,this.activityData=e,this.onComplete=n,this._complete=!1,this.deferredResult=b.Deferred.defer()}return t.prototype.isActivityRealised=function(){return!!this._activity},t.prototype.isComplete=function(){return this._complete},Object.defineProperty(t.prototype,"activity",{get:function(){return b.assert.isTruthy(this.isActivityRealised()),this._activity},enumerable:!0,configurable:!0}),t.prototype.notifyActivityCreated=function(t,e){b.assert.isNil(this._activity),this._activity=t;var n=this;this._activity.initialise(e,{onDone:function(t){n.finishActivity((function(e){return e.resolve(t)}))},onCancel:function(t){n.finishActivity((function(e){return e.reject(t)}))}})},t.prototype.finishActivity=function(t){b.assert.isFalsey(this.isComplete()),t(this.deferredResult),this._complete=!0,this.onComplete(this)},t.prototype.cancel=function(){this.activity.cancel()},Object.defineProperty(t.prototype,"activityResult",{get:function(){return this.deferredResult.promise},enumerable:!0,configurable:!0}),t}(),le=function(){function t(t,e,n){this.componentFactoryResolver=t,this.viewContainerRef=e,this.injector=n}return Object.defineProperty(t.prototype,"activityRef",{get:function(){return this._activityRef},set:function(t){this.activityRef&&!this.activityRef.isComplete()&&I.lang.illegalState("changing activity before previous one has completed"),this._activityRef=t,this.loadActivity(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.loadActivity=function(t){var e=n.Injector.create({providers:[{provide:ee,useValue:t.activityData}],parent:this.injector}),o=this.componentFactoryResolver.resolveComponentFactory(t.activityClass);this.viewContainerRef.clear(),this.activityComponentRef=this.viewContainerRef.createComponent(o,0,e),this.activityRef.notifyActivityCreated(this.activityComponentRef.instance,this.nestedInteractionContext)},Object.defineProperty(t.prototype,"component",{get:function(){return this.activityComponentRef.instance},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.ViewContainerRef},{type:n.Injector}]},N([n.Input(),H("design:type",Object)],t.prototype,"nestedInteractionContext",void 0),N([n.Input(),H("design:type",se),H("design:paramtypes",[se])],t.prototype,"activityRef",null),t=N([n.Component({selector:"aup-activity-outlet",template:"",styles:[":host{display:block}"]}),H("design:paramtypes",[n.ComponentFactoryResolver,n.ViewContainerRef,n.Injector])],t)}(),ce=function(t){function e(){var e=t.call(this)||this;return e.dynamicHeight=!1,e.activityTabs=[],e.garbage=new b.GarbageCollector,e}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var t=this,e=b.Dsl.disposeWith(this);e.chain;e.observe.valuesFrom(this.tabs.animationDone).subscribe((function(){return t.onAnimationFinished()}))},e.prototype.initialise=function(t,e){b.assert.isFalsey(this.isInitialised()),b.assert.notNil(t),b.assert.notNil(e),this._identifier=t,this.interactionServiceApi=e},Object.defineProperty(e.prototype,"identifier",{get:function(){return this._identifier},enumerable:!0,configurable:!0}),e.prototype.isInitialised=function(){return!!this.identifier},e.prototype.isActive=function(){return this.getActiveActivityCount()>0},e.prototype.registerDisposable=function(t){return this.garbage.registerDisposable(t)},e.prototype.dispose=function(){b.assert.isFalsey(this.isActive()),this.garbage.dispose()},e.prototype.getActiveActivityRef=function(){return this.isActive()||I.lang.illegalState("no activity in progress"),_.findLast(this.activityTabs,(function(t){return!t.isComplete()}))},e.prototype.cancelActiveActivity=function(){return B(this,void 0,void 0,(function(){return q(this,(function(t){return this.getActiveActivityRef().cancel(),this.isCleaningUp()?[2,this.waitForInteractionContextCleanupToFinish()]:[2,!this.isActive()]}))}))},e.prototype.createAndLaunchActivity=function(t,e,n){var o=this;b.assert.isTruthy(this.isInitialised());var i=new se(t,e,(function(){o.getActiveActivityCount()>0?o.triggerTabSynchronisation():o.finishAndStartCleanup()}));return this.launchActivity(i),1===this.activityTabs.length&&this.interactionServiceApi.notifyActive(this),i.activityResult},e.prototype.getActiveActivityCount=function(){return this.activityTabs.filter((function(t){return!t.isComplete()})).length},e.prototype.isCleaningUp=function(){return!!this._deferredCleanUp},e.prototype.waitForInteractionContextCleanupToFinish=function(){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!this._deferredCleanUp||this._deferredCleanUp]}))}))},e.prototype.finishAndStartCleanup=function(){var t=this;if(!this._deferredCleanUp){this.activityTabs=[];var e=this.interactionServiceApi.notifyFinished(this);this._deferredCleanUp=e.finally((function(){t._deferredCleanUp=null}))}},e.prototype.launchActivity=function(t){var e=this.activityTabs.filter((function(t){return!t.isComplete()}));this.activityTabs=e.concat(t),this.synchroniseSelectedTabIndex()},e.prototype.activityIndex=function(t,e){return t},e.prototype.onAnimationFinished=function(){this.onAnimationFinishedJob&&(this.onAnimationFinishedJob(),this.onAnimationFinishedJob=void 0)},e.prototype.synchroniseSelectedTabIndex=function(){var t=this,e=this.tabs.selectedIndex,n=this.getActiveActivityCount()-1;e!==n&&(this.tabs.selectedIndex=n,this.onAnimationFinishedJob=function(){t.getSelectedOutlet().component.onActivityReady(),t.activityTabs=t.activityTabs.filter((function(t){return!t.isComplete()}))})},e.prototype.getSelectedOutlet=function(){return this.activityOutlets.toArray()[this.tabs.selectedIndex]},e.prototype.triggerTabSynchronisation=function(){var t=this;this.syncSelectedTabTimeout&&clearTimeout(this.syncSelectedTabTimeout),this.syncSelectedTabTimeout=setTimeout((function(){t.syncSelectedTabTimeout=null,t.synchroniseSelectedTabIndex()}),75)},N([n.Input(),H("design:type",Object)],e.prototype,"dynamicHeight",void 0),N([n.ViewChild("tabs",{static:!0}),H("design:type",s.MatTabGroup)],e.prototype,"tabs",void 0),N([n.ViewChildren(le),H("design:type",n.QueryList)],e.prototype,"activityOutlets",void 0),e=N([n.Component({selector:"aup-activity-container",template:'<mat-tab-group #tabs no-tab-header\n [dynamicHeight]="dynamicHeight"\n [class.full-height-tabs]="!dynamicHeight">\n <mat-tab *ngFor="let tab of activityTabs; trackBy: activityIndex" >\n <aup-activity-outlet [nestedInteractionContext]="this" [activityRef]="tab"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n',styles:[":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]}),H("design:paramtypes",[])],e)}(ae),ue=function(){function t(t,e,n){this.activeInteractionContextIds=t,this.activeModalContext=e,this.createExclusiveInteractionContext=n}return t.prototype.isActive=function(){return this.getActiveInteractionContextIds().length>0},t.prototype.isModalActive=function(){return!!this.activeModalContext.value},t.prototype.isComponentInteracting=function(t){return t.interactionContext&&t.interactionContext.isActive()},t.prototype.getActiveInteractionContextIds=function(){return this.activeInteractionContextIds.value},t.prototype.cancelCurrentModalInteraction=function(){return this.activeModalContext.value.cancelActiveActivity()},t.prototype.cancelComponentInteraction=function(t){return t.interactionContext.cancelActiveActivity()},t}(),pe=function(){},de=0;t.ɵbw=function(){function t(t){this.modelInteractionContextFactory=t,this.garbage=new b.GarbageCollector,this._navigationInProgress=(new b.DelegatingValueModel).withDefault(!1);var n=b.Dsl.disposeWith(this.garbage),o=n.chain,i=n.valueOf;n.before,n.when,n.after,n.observe,n.switchOn;this.exclusiveInteractionRegistry=new e.ContextRegistry,this.modalInteractionRegistry=new e.ContextRegistry,this.inPlaceInteractionRegistry=new e.ContextRegistry,this.modalInteractionRegistry.disableWhen(i.any(this.exclusiveInteractionRegistry.active,this.modalInteractionRegistry.active).areTruthy()),this.inPlaceInteractionRegistry.disableWhen(i.any(this.exclusiveInteractionRegistry.active,this.modalInteractionRegistry.active,this.inPlaceInteractionRegistry.active).areTruthy()),this.active=i.any(this.inPlaceInteractionRegistry.active,this.modalInteractionRegistry.active).areTruthy(),this.activeInteractionContextIds=o(this.inPlaceInteractionRegistry.interactionContextIds).concat(this.modalInteractionRegistry.interactionContextIds),this.activeModalContext=o(this.modalInteractionRegistry.interactionContexts).first(),this.inModalInteraction=o(this.activeModalContext).isNotNil()}var e;return e=t,t.prototype.isActive=function(){return this.active.value},t.prototype.createModalInteractionContextFor=function(t){return this.createModalInteractionContextDisposedWith(t)},t.prototype.createModalInteractionContextDisposedWith=function(t){return this.modelInteractionContextFactory.createInteractionContext("modal",new e.ApiAdapter(this.placeRouter,this.modalInteractionRegistry))},t.prototype.registerInplaceInteractionContext=function(t){t.initialise("ip"+ ++de,new e.ApiAdapter(this.placeRouter,this.inPlaceInteractionRegistry))},t.prototype.registerPlaceRouter=function(t){var n=this;I.assert.isFalsey(this.placeRouter),this.placeRouter=t,this._navigationInProgress.setDelegate(this.placeRouter.navigationInProgress);var o=this;return new ue(this.activeInteractionContextIds,this.activeModalContext,(function(){return o.modelInteractionContextFactory.createInteractionContext("exclusive",new e.ApiAdapter(n.placeRouter,n.exclusiveInteractionRegistry))}))},t.ctorParameters=function(){return[{type:pe}]},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(pe))},token:t,providedIn:"root"}),t=e=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[pe])],t)}(),function(t){var e=function(t){function e(){var e=t.call(this)||this;e._interactions=new b.MutableListModel,e._disabledDelegate=(new b.DelegatingValueModel).withDefault(!1);var n=b.Dsl.disposeWith(e),o=n.chain;n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn;return e.active=o(e._interactions).isNotEmpty(),e.interactionContextIds=o(e._interactions).pluck("identifier"),e}return L(e,t),Object.defineProperty(e.prototype,"interactionContexts",{get:function(){return this._interactions.readonly},enumerable:!0,configurable:!0}),e.prototype.start=function(t){this._interactions.push(t)},e.prototype.finish=function(t){this._interactions.remove(t)},e.prototype.isActive=function(){return this.active.value},e.prototype.disableWhen=function(t){this._disabledDelegate.setDelegate(t)},e}(b.GarbageCollector);t.ContextRegistry=e;var n=function(){function t(t,e){this.placeRouter=t,this.contextRegistry=e}return t.prototype.notifyActive=function(t){return I.assert.isTruthy(t.identifier),this.contextRegistry.start(t),this.isNavigationInProgress()?Promise.resolve():this.placeRouter.syncInteractionContextIdsWithRouter()},t.prototype.isNavigationInProgress=function(){return this.placeRouter.navigationInProgress.value},t.prototype.notifyFinished=function(t){return this.contextRegistry.finish(t),this.isNavigationInProgress()?Promise.resolve():this.placeRouter.syncInteractionContextIdsWithRouter()},t}();t.ApiAdapter=n}(t.ɵbw||(t.ɵbw={}));var fe,he=function(e){function o(t,n){var o=e.call(this)||this;return o.interactionService=t,o.tabConfig=n,o.animateFirstActivity=!0,o}return L(o,e),Object.defineProperty(o.prototype,"animationDuration",{get:function(){var t;return this.animateFirstActivity?(null===(t=this.tabConfig)||void 0===t?void 0:t.animationDuration)||"500ms":"0ms"},enumerable:!0,configurable:!0}),o.prototype.ngAfterViewInit=function(){this.interactionService.registerInplaceInteractionContext(this)},o.prototype.initialise=function(t,e){this.activityContainerComponent.initialise(t,e)},Object.defineProperty(o.prototype,"identifier",{get:function(){return this.activityContainerComponent.identifier},enumerable:!0,configurable:!0}),o.prototype.alert=function(t){return this.activityContainerComponent.alert(t)},o.prototype.cancelActiveActivity=function(){return this.activityContainerComponent.cancelActiveActivity()},o.prototype.confirm=function(t){return this.activityContainerComponent.confirm(t)},o.prototype.confirmOrReject=function(t){return this.activityContainerComponent.confirmOrReject(t)},o.prototype.confirmThen=function(t,e,n){return this.activityContainerComponent.confirmThen(t,e)},o.prototype.isActive=function(){return this.activityContainerComponent.isActive()},o.prototype.startActivity=function(t,e,n){return this.activityContainerComponent.startActivity(t,e,n)},o.ctorParameters=function(){return[{type:t.ɵbw},{type:void 0,decorators:[{type:n.Inject,args:[s.MAT_TABS_CONFIG]},{type:n.Optional}]}]},N([n.ViewChild("activityContainer",{static:!0}),H("design:type",ce)],o.prototype,"activityContainerComponent",void 0),N([n.Input(),H("design:type",Object)],o.prototype,"animateFirstActivity",void 0),o=N([n.Component({selector:"aup-in-place-interaction-context",template:'<mat-tab-group no-tab-header [selectedIndex]="isActive() ? 1 : 0" full-height-tabs [dynamicHeight]="false" [animationDuration]="animationDuration">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]="false"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n',styles:[":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]}),U(1,n.Inject(s.MAT_TABS_CONFIG)),U(1,n.Optional()),H("design:paramtypes",[t.ɵbw,Object])],o)}(K),me=function(t){function e(){var e=t.call(this)||this;return e.icon="mat:add",e.tabindex=0,e.clickCommand=b.Command.create((function(t){e.activityClass?e.startActivity(e.activityClass,e.activityData).catch((function(t){})):e.addCommand.withContext(t).execute()})),e}return L(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return!!this.interactionContext&&this.interactionContext.isActive()},enumerable:!0,configurable:!0}),e.prototype.startActivity=function(t,e){return this.interactionContext.startActivity(t,e)},e.prototype.ngOnInit=function(){},N([n.Input(),H("design:type",String)],e.prototype,"label",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"icon",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"activityClass",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"activityData",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.Command)],e.prototype,"addCommand",void 0),N([n.ViewChild(he),H("design:type",he)],e.prototype,"interactionContext",void 0),N([n.HostBinding("class.interaction-active"),H("design:type",Boolean),H("design:paramtypes",[])],e.prototype,"active",null),N([n.HostBinding("tabindex"),H("design:type",Object)],e.prototype,"tabindex",void 0),e=N([n.Component({selector:"aup-add-item-interaction-context",template:'<aup-in-place-interaction-context [animateFirstActivity]="false">\n <a part="link" class="link" [pectinCommand]="clickCommand"><aup-icon [icon]="icon"></aup-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n',styles:[":host{--def-link-color:var(--link-color, currentColor);--def-link-color-hover:var(--link-color-hover, currentColor);--def-link-background:var(--link-background, transparent);--def-link-background-hover:var(--link-background-hover, rgba(0, 0, 0, 0.05));--def-link-border-radius:var(--link-border-radius, 4px);--def-link-padding:var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:0}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-background);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}"]}),H("design:paramtypes",[])],e)}(K),ge=function(t){function e(e,n,o){var i=t.call(this)||this;return i._element=e,i._overlay=n,i.outputPortal=new c.ComponentPortal(he),i.anchorX="start",i.anchorY="bottom",i.scrollContainers=o?[o]:[],i}return L(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return this.isActive()},enumerable:!0,configurable:!0}),e.prototype.startActivity=function(t,e){var n=this,o=this._overlay.create({hasBackdrop:!1,panelClass:"aup-popup-interaction-panel",positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withPush(!0).withPositions(this.computePositions()).withGrowAfterOpen(!0).withScrollableContainers(this.scrollContainers)}),i=this.scrollContainers.map((function(t){return t.elementScrolled().subscribe((function(){o.updatePosition()}))})),r=o.attach(this.outputPortal);return this.interactionContext=r.instance,new Promise((function(r,a){setTimeout((function(){n.interactionContext.startActivity(t,e).then(r).catch(a).finally((function(){i.forEach((function(t){return t.unsubscribe()})),o.dispose()})),setTimeout((function(){o.updatePosition()}))}))}))},e.prototype.computePositions=function(){var t="start"===this.anchorX?"start":"end",e="top"===this.anchorY?"bottom":"top";return[{originX:this.anchorX,originY:this.anchorY,overlayX:t,overlayY:e}]},e.prototype.cancelActiveActivity=function(){return this.interactionContext.cancelActiveActivity()},e.prototype.isActive=function(){return this.interactionContext&&this.interactionContext.isActive()},e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:n.ElementRef},{type:M.Overlay},{type:M.CdkScrollable,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},N([n.HostBinding("class.interaction-active"),H("design:type",Boolean),H("design:paramtypes",[])],e.prototype,"active",null),N([n.Input(),H("design:type",String)],e.prototype,"anchorX",void 0),N([n.Input(),H("design:type",String)],e.prototype,"anchorY",void 0),e=N([n.Component({selector:"aup-popup-interaction-context",template:"<ng-content></ng-content>\n",styles:[":host{display:inline}:host.interaction-active{background:rgba(0,0,0,.05)}"]}),U(2,n.Optional()),U(2,n.SkipSelf()),H("design:paramtypes",[n.ElementRef,M.Overlay,M.CdkScrollable])],e)}(K),ye=function(t){function e(){var e=t.call(this)||this;return e.activityDone=new n.EventEmitter,e.activityCancelled=new n.EventEmitter,e}return L(e,t),e.prototype.onEnter=function(t){t.preventDefault(),t.stopPropagation(),this.aupInteractionContextTriggerFor.isActive()?this.aupInteractionContextTriggerFor.cancelActiveActivity():this.startActivity()},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),this.aupInteractionContextTriggerFor.isActive()?this.aupInteractionContextTriggerFor.cancelActiveActivity():this.startActivity()},e.prototype.startActivity=function(){var t=this;b.assert.isTruthy(this.aupInteractionContextTriggerFor),b.assert.isFalsey(this.aupInteractionContextTriggerFor.isActive()),b.assert.isTruthy(this.activityClass),this.aupInteractionContextTriggerFor.startActivity(this.activityClass,this.activityData).then((function(e){t.activityDone.emit(e)})).catch((function(e){t.activityCancelled.emit(e)}))},e.prototype.prepareActivityData=function(){return _.isFunction(this.activityDataFactory())?this.activityDataFactory():this.activityData},N([n.Input(),H("design:type",Object)],e.prototype,"aupInteractionContextTriggerFor",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"activityClass",void 0),N([n.Input(),H("design:type",Object)],e.prototype,"activityData",void 0),N([n.Input(),H("design:type",Function)],e.prototype,"activityDataFactory",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"activityDone",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"activityCancelled",void 0),N([n.HostListener("keyup.enter",["$event"]),H("design:type",Function),H("design:paramtypes",[KeyboardEvent]),H("design:returntype",void 0)],e.prototype,"onEnter",null),N([n.HostListener("click",["$event"]),H("design:type",Function),H("design:paramtypes",[MouseEvent]),H("design:returntype",void 0)],e.prototype,"onClick",null),e=N([n.Directive({selector:"[aupInteractionContextTriggerFor]"}),H("design:paramtypes",[])],e)}(b.GarbageCollector),ve=function(t){function e(e){var n=t.call(this)||this;n.data=e,n.class="aup-input-activity";var o=new b.DirtyTrackingForm;return n.valueModel=o.valueModel(n.data.initialValue),n.valueModel.validateUsing(e.validators||[]),n.confirmCommand=b.Command.create((function(){if(n.valueModel.validate()){if(e.save)return Promise.resolve(e.save(n.valueModel,n.interactionContext)).then((function(){return n.done()}));n.done(n.valueModel.value)}})),n.cancelCommand=b.Command.create((function(){n.cancel()})),n}return L(e,t),e.prototype.onActivityReady=function(){this.valueModel.focusContext.requestFocus()},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[ee]}]}]},N([n.HostBinding("class"),H("design:type",Object)],e.prototype,"class",void 0),e=N([n.Component({template:""}),U(0,n.Inject(ee)),H("design:paramtypes",[Object])],e)}(ne),be=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e=N([n.Component({selector:"aup-string-input-activity",template:'\n <aup-string-input [valueModel]="valueModel"\n [label]="data.label"\n [placeholder]="data.placeholder"\n [command.enter]="confirmCommand"\n [command.escape]="cancelCommand"></aup-string-input>\n <aup-activity-actions align="end"\n [confirmCommand]="confirmCommand"\n [cancelCommand]="cancelCommand"></aup-activity-actions>\n '})],e)}(ve),Ce=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultOptionLabelFormat=function(t){return e.data.optionLabel?t[e.data.optionLabel]:t},e}return L(e,t),Object.defineProperty(e.prototype,"optionLabelFormat",{get:function(){var t;return null!==(t=this.data.optionLabelFormat)&&void 0!==t?t:this.defaultOptionLabelFormat},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var t;return(null===(t=this.data.optionsModel)||void 0===t?void 0:t.value)||this.data.options},enumerable:!0,configurable:!0}),e=N([n.Component({selector:"aup-select-input-activity",template:'\n <aup-select-input [valueModel]="valueModel"\n [label]="data.label"\n [placeholder]="data.placeholder"\n [command.enter]="confirmCommand"\n [command.escape]="cancelCommand"\n [options]="options"\n [optionLabelFormat]="optionLabelFormat"\n ></aup-select-input>\n <aup-activity-actions align="end"\n [confirmCommand]="confirmCommand"\n [cancelCommand]="cancelCommand"></aup-activity-actions>\n '})],e)}(ve),Ie=function(t,e){this.width=t,this.height=e},we=function(){function t(t,e){this.x=t,this.y=e}return t.from=function(e){return new t(e.x,e.y)},t.prototype.translate=function(e,n){return new t(this.x+e,this.y+n)},t}();t.Bounds=function(t){function e(e,n,o,i){var r=t.call(this,o,i)||this;return r.top=e,r.left=n,r.width=o,r.height=i,r}return L(e,t),e.prototype.relativePositionOf=function(t){return t instanceof MouseEvent?new we(t.clientX-this.left,t.clientY-this.top):new we(t.x-this.left,t.y-this.top)},e}(Ie),(fe=t.Bounds||(t.Bounds={})).ofElement=function(t){var e=t.getBoundingClientRect();return new fe(e.top,e.left,e.width,e.height)};var Re=function(e){function o(n,o){var i=e.call(this)||this;return i.elementRef=n,i.ngZone=o,i._boundsModel=new b.MutableValueModel(new t.Bounds(0,0,0,0)),i}return L(o,e),o.prototype.ngAfterViewInit=function(){var t=this;this.updateBounds();var e=this.elementRef.nativeElement,n=new O((function(e,n){t.ngZone.run((function(){return t.updateBounds()}))}));n.observe(e),this.onDispose((function(){return n.disconnect()}))},Object.defineProperty(o.prototype,"boundsModel",{get:function(){return this._boundsModel.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),o.prototype.relativePositionOf=function(t){return this.bounds.relativePositionOf(t)},Object.defineProperty(o.prototype,"bounds",{get:function(){return this._boundsModel.value},enumerable:!0,configurable:!0}),o.prototype.updateBounds=function(){this._boundsModel.value=t.Bounds.ofElement(this.nativeElement)},o.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},o=N([n.Directive(),H("design:paramtypes",[n.ElementRef,n.NgZone])],o)}(K),xe=function(){function o(){}return o=N([n.NgModule({imports:[e.CommonModule,d.MatButtonModule,P.MatDialogModule,s.MatTabsModule,c.PortalModule,S.RouterModule,h.MatIconModule,Z,x.FlexModule,x.GridModule,Qt],declarations:[ce,re,ie,oe,le,he,me,te,ge,be,Ce,ve,ye],exports:[ce,le,he,me,te,ge,ye,be,Ce],entryComponents:[ce,re,ie,oe],providers:[t.ɵbw]})],o)}();t.ParameterDefinition=function(){function t(t,e,n){this.propertyName=t,this.urlFormat=n,this.options=I.Opts.get(e),this.remember=this.options.getOptional("remember",!1),this.defaultValue=this.options.getOptional("defaultValue",null)}return Object.defineProperty(t.prototype,"name",{get:function(){return this.options.getOptional("as",this.propertyName)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRouteParameter",{get:function(){return!!this.urlFormat},enumerable:!0,configurable:!0}),t.prototype.getOptionValue=function(t){return this.options.getOptional(t,null)},t.prototype.sanitise=function(t,e,n,o,i){return B(this,void 0,void 0,(function(){var o;return q(this,(function(i){return this.isMissingFrom(e)&&!n.lastVisitIncluded(e.placeDefinition)?(o=n.getMostRecentVisitFor(e.placeDefinition),this.remember&&o&&(t=o.getParameter(this.name)),[2,this.isEmptyValue(t)?this.defaultValue:t]):[2,t]}))}))},t.prototype.isMissingFrom=function(t){return!t.hasParameter(this.name)},t}(),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isRouteId=!0,e.isArray=!1,e}return L(e,t),e.prototype.isEmptyValue=function(t){return _.isNil(t)},e.prototype.hasChanged=function(t,e){return t!==e},e}(t);t.RouteId=e;var n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isRouteId=!1,e.isArray=!1,e}return L(e,t),e.prototype.isEmptyValue=function(t){return _.isNil(t)},e.prototype.hasChanged=function(t,e){return t!==e},e}(t);t.ValueParameter=n;var o=function(t){function e(e,n,o){var i=t.call(this,e,n,o)||this;return i.isRouteId=!1,i.isArray=!0,i}return L(e,t),e.prototype.isEmptyValue=function(t){return _.isNil(t)||t.length<1},e.prototype.hasChanged=function(t,e){return!_.isEqual(t,e)},e}(t);t.ArrayParameter=o}(t.ParameterDefinition||(t.ParameterDefinition={}));var Pe,Se=function(){function e(t,e,n,o,i,r){this.component=t,this.path=e,this.authenticate=n,this.data=o,this.routeParameters=i,this.children=r}return e.prototype.hasRouteId=function(){return!!this.getRouteIdParameterDef()},e.prototype.getRouteIdParameterDef=function(){return this.routeParameters.find((function(t){return t.isRouteId}))},e.prototype.getRouteParameterDefs=function(t){return void 0===t&&(t=!1),this.getVisitParameterDefs({includeRouteId:t,includeRouteParameters:!0})},e.prototype.getVisitParameterDefs=function(t){var e=I.Opts.get(t),n=!t||e.getOptional("includeRouteId",!1),o=!t||e.getOptional("includeRouteParameters",!1),i=!t||e.getOptional("includeNonRouteParameters",!1);return this.routeParameters.filter((function(t){return n&&t.isRouteId||o&&t.isRouteParameter&&!t.isRouteId||i&&!t.isRouteParameter}))},e.prototype.getPlaceData=function(t,e){return this.data?_.isNil(this.data[t])?e:this.data[t]:e},e.prototype.searchPlaceData=function(t,e){var n=this;if(this.data){var o=t.find((function(t){return!_.isNil(n.data[t])}));return o?this.data[o]:e}return e},e.prototype.getRouteIdFrom=function(t){var e=this.getRouteIdParameterDef();return e?t.getParameter(e.name):null},e.prototype.getFormattedRouteId=function(t){return t.hasRouteId()?this.getRouteIdParameterDef().urlFormat.format(t.getRouteId()):""},e.prototype.getFormattedRouteParameters=function(t,e){void 0===e&&(e=!1);var n={};return this.getVisitParameterDefs({includeRouteId:e,includeRouteParameters:!0}).forEach((function(e){var o=t.getParameter(e.name);e.isEmptyValue(o)||(e.isArray?(b.assert.isArray(o),n[e.name]=o.map((function(t){return e.urlFormat.format(t)}))):(b.assert.isFalsey(Array.isArray(o)),n[e.name]=e.urlFormat.format(o)))})),n},e.prototype.getNonRouteParameters=function(t){var e={};return this.getVisitParameterDefs({includeNonRouteParameters:!0}).forEach((function(n){var o=t.getParameter(n.name);n.isEmptyValue(o)||(e[n.name]=o)})),e},e.prototype.parseRouteParams=function(t){var e={};return this.getVisitParameterDefs({includeRouteId:!0,includeRouteParameters:!0,includeNonRouteParameters:!1}).forEach((function(n){if(t.has(n.name))if(n.isArray){var o=t.get(n.name).split(",").map((function(t){return t.trim()}));e[n.name]=o.map((function(t){return n.urlFormat.parse(t)}))}else{var i=t.get(n.name);n.isRouteId&&_.isEmpty(i)||(e[n.name]=n.urlFormat.parse(i))}})),e},N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",t.ParameterDefinition)],e.prototype,"getRouteIdParameterDef",null),N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Array)],e.prototype,"getRouteParameterDefs",null),N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Array)],e.prototype,"getVisitParameterDefs",null),e}(),Me=Symbol("place:route:parameters");t.PlaceComponent=function(t){function e(){var e=t.call(this)||this;return e.visitModel=new b.MutableValueModel,e._inVisitUpdate=new b.Guard,e}var o;return L(e,t),o=e,e.prototype.initialiseVisit=function(t,e){var n=this;b.assert.isNil(this.visitModel.value);var o=b.Dsl.disposeWith(this).when;this.visitModel.value=t,b.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name+".visitModel"),this.placeDefinition.getVisitParameterDefs().forEach((function(t){return n.installBinding(t)})),o.valueOf(this.visitModel).changes((function(t,n){e(t,n)}),{unless:this._inVisitUpdate})},e.prototype.updateVisit=function(t){var e=this;b.assert.isTruthy(this.isInitialised()),b.assert.notNil(t),this._inVisitUpdate.whileTrue((function(){e.visitModel.value=t}))},e.prototype.isInitialised=function(){return!!this.visitModel.value},e.prototype.installBinding=function(t){var e=this[t.propertyName];b.DebugContext.tag(e,this.placeDefinition.component.name+"."+t.propertyName),this.registerDisposable(new b.Binding(this.visitModel,e,{toRight:function(e){return e.getParameter(t.name)},toLeft:function(e,n){return n.replace(t,e)}})).writeRight()},Object.defineProperty(e.prototype,"placeDefinition",{get:function(){return o.getDefinition(this.constructor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childPlaces",{get:function(){return this.placeDefinition.children.map((function(t){return t.component}))},enumerable:!0,configurable:!0}),e.prototype.onPlaceReady=function(){},N([D.Memoize(),H("design:type",Se),H("design:paramtypes",[])],e.prototype,"placeDefinition",null),e=o=N([n.Directive(),H("design:paramtypes",[])],e)}(K),(Pe=t.PlaceComponent||(t.PlaceComponent={})).isPlaceComponentConstructor=function(t){return b.lang.constructorChain(t).includes(Pe)},Pe.getRouteParameters=function(t){return I.Klass.get(t).getMetadataList(Me)},Pe.getDefinition=function(t){return Reflect.getMetadata("PLACE_DEFINITION_OPTIONS",t)},Pe.injectDefinition=function(t,e){Reflect.defineMetadata("PLACE_DEFINITION_OPTIONS",e,t)};var Oe,Ae,Te=function(){function t(t,e,n){this.component=t,this.navigationSession=e,this.isPrimaryComponent=n}return Object.defineProperty(t.prototype,"routerInteractionAdapter",{get:function(){return this.navigationSession.interactionServiceAdapter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"urlService",{get:function(){return this.navigationSession.urlService},enumerable:!0,configurable:!0}),t.prototype.canDeactivate=function(t,e){return B(this,void 0,void 0,(function(){return q(this,(function(n){return this.canDeactivatePromise||(this.canDeactivatePromise=this.canDeactivateComponent(t,e)),[2,this.canDeactivatePromise]}))}))},t.prototype.canDeactivateComponent=function(t,e){return B(this,void 0,void 0,(function(){var t,n;return q(this,(function(o){switch(o.label){case 0:return this.navigationSession.isPopState?this.isPrimaryComponent&&this.routerInteractionAdapter.isModalActive()?(t=this.urlService.getActiveInteractionIdsFromUrl(e.url),n=this.routerInteractionAdapter.getActiveInteractionContextIds(),C.isEqual(n,t)?[3,2]:[4,this.routerInteractionAdapter.cancelCurrentModalInteraction()]):[3,3]:[3,5];case 1:return o.sent(),[2,!1];case 2:return[3,5];case 3:return this.routerInteractionAdapter.isComponentInteracting(this.component)?[4,this.routerInteractionAdapter.cancelComponentInteraction(this.component)]:[3,5];case 4:return o.sent(),[2,!1];case 5:if(this.isNotJustAChangeInRouteId(e)){if(this.component.canDeactivate)return[2,this.component.canDeactivate(this.navigationSession.canDeactivateInteractionContext)];if(this.routerInteractionAdapter.isComponentInteracting(this.component))return console.warn("Route changed while component has active interaction, cancelling navigation"),[2,!1]}return[2,!0]}}))}))},t.prototype.isNotJustAChangeInRouteId=function(t){return!t.includesPathOf(this.component.placeDefinition)},t}(),De=function(t){function e(e,n){var o=t.call(this)||this;return o.context=e,o.startingUrl=n,o.debugPropertyKeys=[],o._visits=new Map,o.componentDeactivationHandlers=new Map,o._interactionContext=o.context.routerInteractionAdapter.createExclusiveInteractionContext(),o.onDispose((function(){o._interactionContext&&o._interactionContext.dispose()})),o}return L(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlService",{get:function(){return this.context.urlService},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interactionServiceAdapter",{get:function(){return this.context.routerInteractionAdapter},enumerable:!0,configurable:!0}),e.prototype.storeVisit=function(t){this._visits.set(t.placeDefinition,t)},e.prototype.getVisitFor=function(t){return this._visits.get(t)},Object.defineProperty(e.prototype,"canDeactivateInteractionContext",{get:function(){return this._interactionContext},enumerable:!0,configurable:!0}),e.prototype.notifyActive=function(){},e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onUrlChange=function(t){this.canDeactivateInteractionContext&&this.canDeactivateInteractionContext.isActive()&&this.cancelCanDeactivateInteraction(t)},e.prototype.onPopState=function(t){return this.illegalTransition(t)},e.prototype.onRouterCancelled=function(t){return this.illegalTransition(t)},e.prototype.onRouterError=function(t){return this.illegalTransition(t)},e.prototype.onRouterEnd=function(t){return this.illegalTransition(t)},e.prototype.getVisits=function(){return Array.from(this._visits.values())},e.prototype.illegalTransition=function(t){return b.lang.illegalState(t.toString()+" not supported by "+this.toString())},e.prototype.currentRouterUrl=function(){return this.urlService.getCurrentRouterUrl()},e.prototype.resetBrowserLocation=function(t,e){void 0===e&&(e={replaceCurrent:!1}),this.urlService.resetBrowserLocation(t,e)},e.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation=function(t,e){b.Logger.get(this).info("WORK-AROUND: Updating browser location after pop state - see angular issue #13586"),console.log("replacing "+this.urlService.getCurrentLocationUrlSnapshot().url+" with "+t),this.urlService.resetBrowserLocation(t,{replaceCurrent:!0}),console.log("pushing "+e+" back onto the history."),this.urlService.resetBrowserLocation(e,{replaceCurrent:!1})},e.prototype.ignore=function(t,e){e=e?" -> "+e:"",b.Logger.get(this).info("Ignoring router event"+e+": "+t.constructor.name+" -> "+t.url+" :: "+this.toString())},e.prototype.toString=function(){return this.constructor.name+"("+this.debugState()+")"},e.prototype.debugState=function(t){var e=this;return(t||this.debugPropertyKeys).map((function(t){return t+": "+e[t]})).join(", ")},e.prototype.canDeactivatePlace=function(t,e,n){return B(this,void 0,void 0,(function(){var o,i;return q(this,(function(r){return(o=this.componentDeactivationHandlers.get(t))||(i=0===this.componentDeactivationHandlers.size,o=new Te(t,this,i),this.componentDeactivationHandlers.set(t,o)),[2,o.canDeactivate(e,n).then((function(t){return t})).catch((function(t){throw t}))]}))}))},e.prototype.cancelCanDeactivateInteraction=function(t){b.Logger.get(this).info("back button pressed during navigation session interaction promise");var e=this.detachCanDeactivateInteractionContext();b.Logger.get(this).info("cancelling current navigation activity.."),e.cancelActiveActivity().then((function(){e.dispose()})),this.handleCanDeactivateCancelledEventScenario(t)},e.prototype.reinstateUrlAfterAngularChangedItOnCancellation=function(t){this.resetBrowserLocation(t,{replaceCurrent:!0})},e.prototype.detachCanDeactivateInteractionContext=function(){var t=this._interactionContext;return this._interactionContext=null,t},e}(b.GarbageCollector),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.handleCanDeactivateCancelledEventScenario=function(t){I.lang.illegalState("onCanDeactivateInteractionCancelled not supported for event clean up states")},e}(De),Fe=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.locationChangeTriggerUrl=o,i.isPopState=!1,i.firstCancelHandled=!1,i.popStateHandled=!1,i.debugPropertyKeys=["idle","startingUrl","poppedHistoryUrl","locationChangeTriggerUrl","popStateEventUrl","firstCancelHandled","popStateHandled"],i}return L(e,t),e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.locationChangeTriggerUrl,this.startingUrl),this.context.finishRoutingSession()},e.prototype.onRouterEnd=function(t){this.ignore(t)},e.prototype.onRouterError=function(t){this.ignore(t)},e.prototype.onPopState=function(t){this.ignore(t)},e.prototype.canDeactivatePlace=function(t,e,n){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!1]}))}))},e}(Ee),ke=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.isPopState=!0,o.debugPropertyKeys=["startingUrl","poppedHistoryUrl"],o.finished=b.Deferred.defer(),o}return L(e,t),e.prototype.onPopState=function(t){this.gotPopState=!0},e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){this.ignore(t)},e.prototype.onUrlChange=function(t){},e.prototype.finishUp=function(){this.context.finishRoutingSession(),this.finished.resolve(!0)},e.prototype.onRouterEnd=function(t){this.gotPopState&&this.finishUp()},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){b.lang.illegalState("onCanDeactivateInteractionCancelled not supported for activity context synchronisation since we should never leave a place")},Object.defineProperty(e.prototype,"finishedPromise",{get:function(){return this.finished.promise},enumerable:!0,configurable:!0}),e}(De),_e=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.wasTriggeredByPopState=o,i.isPopState=!1,i}return L(e,t),e.prototype.notifyActive=function(){var t=this;setTimeout((function(){t.syncInteractionIdsWithRouter()}))},e.prototype.onRouterEnd=function(t){this.context.finishRoutingSession()},e.prototype.onRouterCancelled=function(t){this.context.finishRoutingSession()},e.prototype.syncInteractionIdsWithRouter=function(){var t=this.interactionServiceAdapter.getActiveInteractionContextIds(),e=this.urlService.getCurrentLocationUrlSnapshot().getInteractionIds();if(_.isEqual(t,e))this.context.finishRoutingSession();else if(t.length>e.length){var n=t.length>e.length&&e.length<1;this.addActivityContextToRoute(t,n)}else this.removeActivityContextFromRoute(t)},e.prototype.addActivityContextToRoute=function(t,e){var n=this,o=this.urlService.getCurrentRouterSnapshot().updateInteractionIds(t);this.context.navigateByUrl(o,{replaceUrl:!e}).then((function(e){n.urlService.getCurrentLocationUrlSnapshot().hasInteractionIds(t)||I.lang.illegalState("Expected url to be "+o.url+" but was "+n.urlService.getCurrentLocationUrl())}))},e.prototype.removeActivityContextFromRoute=function(t){var e=this.urlService.getCurrentRouterSnapshot().updateInteractionIds(t);if(t.length<1)if(this.wasTriggeredByPopState);else{var n=new ke(this.context,this.urlService.getCurrentRouterUrl());this.context.transitionTo(n),this.urlService.back()}else this.context.navigateByUrl(e,{replaceUrl:!this.wasTriggeredByPopState})},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){I.lang.methodNotSupported()},e}(De),je=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isPopState=!1,e}return L(e,t),e.prototype.onRouterCancelled=function(t){this.context.finishRoutingSession()},e.prototype.onRouterError=function(t){this.context.finishRoutingSession()},e.prototype.onRouterEnd=function(t){this.context.routerInteractionAdapter.isActive()?this.context.transitionTo(new _e(this.context,this.startingUrl,!1)):this.context.finishRoutingSession(this.getVisits())},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.context.transitionTo(new Fe(this.context,this.startingUrl,t))},e}(De),Le=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.poppedHistoryUrl=o,i.isPopState=!0,i.debugPropertyKeys=["startingUrl","poppedHistoryUrl"],i}return L(e,t),e.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation=function(){t.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation.call(this,this.poppedHistoryUrl,this.startingUrl)},e}(De),Ve=function(t){function e(e,n,o){return t.call(this,e,n,o)||this}return L(e,t),e.prototype.onRouterCancelled=function(t){this.repairBrowserHistoryAndUrlAfterGuardCancellation(),this.context.transitionTo(new _e(this.context,this.poppedHistoryUrl,!1))},e.prototype.onRouterEnd=function(t){this.context.finishRoutingSession()},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.illegalTransition("Leaving interaction after pop-state should't block so should never see a back button click")},e}(Le),Ne=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.clickedLinkUrl=o,i.isPopState=!1,i.clickedLinkMatchedBackButtonUrl=!1,i.debugPropertyKeys=["idle","startingUrl","clickedLinkUrl","firstCancelEventUrl","clickedLinkMatchedBackButtonUrl","popStateEventUrl"],i}return L(e,t),e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){this.firstCancelEventUrl?!this.clickedLinkMatchedBackButtonUrl&&this.popStateEventUrl&&this.finaliseRouting():(this.firstCancelEventUrl=t.url,this.clickedLinkMatchedBackButtonUrl=t.url===this.clickedLinkUrl,this.ignore(t))},e.prototype.onRouterEnd=function(t){this.clickedLinkMatchedBackButtonUrl?this.finaliseRouting():this.ignore(t)},e.prototype.onRouterError=function(t){this.ignore(t)},e.prototype.onPopState=function(t){this.popStateEventUrl=t.url,this.ignore(t)},e.prototype.finaliseRouting=function(){return this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl,this.startingUrl),this.context.finishRoutingSession()},e.prototype.canDeactivatePlace=function(t,e,n){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!1]}))}))},e}(Ee),Ue=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isPopState=!1,e.debugPropertyKeys=["startingUrl","urlAfterRedirects"],e}return L(e,t),e.prototype.onRouterCancelled=function(t){},e.prototype.onRouterError=function(t){this.context.finishRoutingSession()},e.prototype.onRouterEnd=function(t){this.urlAfterRedirects=t.urlAfterRedirects,this.context.finishRoutingSession(this.getVisits())},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.context.transitionTo(new Ne(this.context,this.startingUrl,t))},e}(De);Oe=t.NavigationContext||(t.NavigationContext={}),Ae=function(t,e,n,o,i){this.urlService=t,this.routerInteractionAdapter=e,this.navigateByUrl=n,this.transitionTo=o,this.finishRoutingSession=i},Oe.Impl=Ae;var He,Be,qe,ze=function(t){function e(e,n,o,i){var r=t.call(this,e,n)||this;return r.locationChangeTriggerUrl=o,r.poppedHistoryUrl=i,r.isPopState=!1,r.firstCancelHandled=!1,r.popStateHandled=!1,r.debugPropertyKeys=["idle","startingUrl","poppedHistoryUrl","locationChangeTriggerUrl","popStateEventUrl","firstCancelHandled","popStateHandled"],r}return L(e,t),e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){if(this.firstCancelHandled){if(this.popStateHandled){var e=t.url;return this.repairBrowserHistoryAndUrlAfterGuardCancellation(e,this.parentPageUrl),this.resetBrowserLocation(this.startingUrl,{replaceCurrent:!1}),this.context.finishRoutingSession()}}else this.firstCancelHandled=!0,this.parentPageUrl=t.url,this.ignore(t)},e.prototype.onRouterEnd=function(t){this.ignore(t)},e.prototype.onRouterError=function(t){this.ignore(t)},e.prototype.onPopState=function(t){this.popStateHandled=!0,this.popStateEventUrl=t.url,this.ignore(t)},e.prototype.canDeactivatePlace=function(t,e,n){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!1]}))}))},e}(Ee),Ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.onRouterCancelled=function(t){this.repairBrowserHistoryAndUrlAfterGuardCancellation(),this.context.finishRoutingSession()},e.prototype.onRouterEnd=function(t){this.context.finishRoutingSession(this.getVisits())},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.context.transitionTo(new ze(this.context,this.startingUrl,t,this.poppedHistoryUrl))},e}(Le);t.ɵbz=function(){function t(){this._archive=new Map,this.placeHistoryDepth=4}var e;return e=t,t.prototype.notifyNavigationStarted=function(){this._activeVisits&&(this.archive(this._activeVisits.visits),this._previousVisits=this._activeVisits)},t.prototype.notifyNavigationFinished=function(t){this._activeVisits=new e.VisitRecord(t)},t.prototype.updateVisit=function(t){b.assert.isTruthy(this._activeVisits),this._activeVisits.update(t)},t.prototype.lastVisitIncluded=function(t){var e;return!!(null===(e=this._previousVisits)||void 0===e?void 0:e.getVisitFor(t))},t.prototype.getMostRecentVisitFor=function(t){return _.first(this.getHistory(t))},t.prototype.getHistory=function(t){var e=this._archive.get(t);return e||(e=[],this.setHistory(t,e)),e},t.prototype.setHistory=function(t,e){this._archive.set(t,e)},t.prototype.archive=function(t){var e=this;t.forEach((function(t){var n=e.getHistory(t.placeDefinition),o=_.first(n);o&&!t.hasChangedFrom(o)||(n.unshift(t),e.setHistory(t.placeDefinition,n.slice(0,e.placeHistoryDepth)))}))},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=e=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[])],t)}(),He=t.ɵbz||(t.ɵbz={}),Be=function(){function t(t){this.visits=t}return t.prototype.update=function(t){this.visits=this.visits.filter((function(e){return e.placeDefinition!==t.placeDefinition})).concat(t)},t.prototype.getVisitFor=function(t){return this.visits.find((function(e){return e.placeDefinition===t}))},t}(),He.VisitRecord=Be,t.UrlSnapshot=function(){function t(t,e){this.urlSerializer=t,this.url=e,this.urlTree=t.parse(e)}return t.prototype.updateVisitSegments=function(e){var n=this.urlSerializer.parse(this.url),o=G(this.getPrimarySegments(n)),i=this.getSegmentsFor(e),r=o.findIndex((function(t){return t.path===i[0].path}));return o.splice.apply(o,G([r,i.length],i)),n.root.children.primary.segments=o,new t(this.urlSerializer,n.toString())},t.prototype.getPrimarySegments=function(t){return this.urlTree.root.children.primary.segments},t.prototype.getSegmentsFor=function(t){return t.placeDefinition.hasRouteId()?[new S.UrlSegment(t.placeDefinition.path,t.placeDefinition.getFormattedRouteParameters(t)),new S.UrlSegment(t.placeDefinition.getFormattedRouteId(t),{})]:[new S.UrlSegment(t.placeDefinition.path,t.placeDefinition.getFormattedRouteParameters(t))]},t.prototype.includesPathOf=function(t){return this.getPrimarySegments(this.urlTree).find((function(e){return e.path===t.path}))},t.prototype.getInteractionIds=function(){var e=this.urlTree.queryParams[t.INTERACTION_QUERY_PARAM];return e?t.parseInteractionIds(e):[]},t.prototype.hasInteractions=function(){return this.getInteractionIds().length>0},t.prototype.hasInteractionIds=function(t){return _.isEqual(this.getInteractionIds(),t)},t.prototype.updateInteractionIds=function(e){if(0===e.length)return this.removeInteractionIds();var n=this.urlSerializer.parse(this.url);return n.queryParams[t.INTERACTION_QUERY_PARAM]=t.createPathIdFor(e),new t(this.urlSerializer,n.toString())},t.prototype.removeInteractionIds=function(){var e=this.urlSerializer.parse(this.url);return e.queryParams&&e.queryParams[t.INTERACTION_QUERY_PARAM]&&(e.queryParams={}),new t(this.urlSerializer,e.toString())},t.prototype.toString=function(){return"UrlSnapshot("+this.url+")"},t}(),(qe=t.UrlSnapshot||(t.UrlSnapshot={})).INTERACTION_QUERY_PARAM="aup-interactions",qe.INTERACTION_ID_SEPARATOR="--",qe.parseInteractionIds=function(t){return t.split(qe.INTERACTION_ID_SEPARATOR)},qe.createPathIdFor=function(t){return t.join(qe.INTERACTION_ID_SEPARATOR)};var We=function(){function o(t,e,n){this.angularRouter=t,this.angularLocation=e,this.urlSerializer=n}return o.prototype.parseUrl=function(e){return new t.UrlSnapshot(this.urlSerializer,e)},o.prototype.createUrlSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=[];return e.forEach((function(e){o.push(t.parseUrl(""+e.placeDefinition.path).updateVisitSegments(e).url)})),this.parseUrl(o.join(""))},o.prototype.getCurrentRouterUrl=function(){return this.angularRouter.routerState?this.angularRouter.routerState.snapshot.url:null},o.prototype.getCurrentLocationUrl=function(){return this.angularLocation.path()},o.prototype.getCurrentLocationUrlSnapshot=function(){return this.parseUrl(this.getCurrentLocationUrl())},o.prototype.getCurrentRouterSnapshot=function(){return this.parseUrl(this.getCurrentRouterUrl())},o.prototype.getActiveInteractionIdsFromUrl=function(t){return this.parseUrl(t).getInteractionIds()},o.prototype.hasActiveInteractions=function(t){return this.getActiveInteractionIdsFromUrl(t).length>0},o.prototype.resetBrowserLocation=function(t,e){e.replaceCurrent?this.angularLocation.replaceState(t):this.angularLocation.go(t)},o.prototype.back=function(){this.angularLocation.back()},o.ctorParameters=function(){return[{type:S.Router},{type:e.Location},{type:S.UrlSerializer}]},o.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new o(n.ɵɵinject(S.Router),n.ɵɵinject(e.Location),n.ɵɵinject(S.UrlSerializer))},token:o,providedIn:"root"}),o=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[S.Router,e.Location,S.UrlSerializer])],o)}(),Ke=function(o){function i(e,n,i,r,a){var s=o.call(this)||this;s.angularRouter=e,s.angularLocation=n,s.interactionService=i,s.urlService=r,s.placeHistory=a,s.navigationSessionModel=new b.MutableValueModel,s._activeVisits=new b.MutableListModel,s.sessionFinishedJobs=[],s.routerInteractionAdapter=i.registerPlaceRouter(s),s.navigationContext=new t.NavigationContext.Impl(s.urlService,s.routerInteractionAdapter,(function(t,e){return s.navigateByUrl(t,e)}),(function(t){s.transitionTo(t)}),(function(t){s.routingSessionFinished(t)}));var l=b.Dsl.disposeWith(s),c=l.chain;l.valueOf,l.before,l.when,l.after,l.observe,l.switchOn;s.navigationInProgress=c(s.navigationSessionModel).isNotNil();var u=c(s.interactionService.active).map((function(t){return t?"IdleDuringInteraction":"Idle"}));return s.navigationSessionName=c(s.navigationSessionModel).pluck("name").otherwise(u),b.DebugContext.tag(s._activeVisits,"PlaceRouter.activeVisits"),s.activeVisitsByPlaceDefinition=c(s._activeVisits).indexBy("placeDefinition"),e.events.subscribe((function(t){t instanceof S.NavigationStart&&("popstate"===t.navigationTrigger?s.onPopState(t):s.onRouterStarted(t)),t instanceof S.NavigationEnd&&s.onRouterEnd(t),t instanceof S.NavigationError&&s.onRouterError(t),t instanceof S.NavigationCancel&&s.onRouterCancelled(t)})),n.onUrlChange((function(t){return s.onUrlChanged(t)})),s}return L(i,o),Object.defineProperty(i.prototype,"navigationSession",{get:function(){return this.navigationSessionModel.value},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentSession",{get:function(){return this.navigationSessionModel.value},enumerable:!0,configurable:!0}),i.prototype.onPopState=function(t){if(b.assert.isTruthy("popstate"===t.navigationTrigger),this.currentSession)this.currentSession.onPopState(t);else{var e=t.url,n=this.urlService.getCurrentRouterUrl(),o=this.interactionService.isActive()?new Ve(this.navigationContext,n,e):new Ge(this.navigationContext,n,e);this.transitionTo(o)}},i.prototype.onRouterStarted=function(t){b.assert.isFalsey("popstate"===t.navigationTrigger);this.interactionService.isActive();this.currentSession?this.currentSession.onRouterStarted(t):this.transitionTo(this.createNavigationSession(this.urlService.getCurrentRouterUrl()))},i.prototype.onUrlChanged=function(t){this.currentSession?this.currentSession.onUrlChange(t):console.log("FYI: url changed without a navigation session in progress")},i.prototype.onRouterCancelled=function(t){this.currentSession.onRouterCancelled(t)},i.prototype.onRouterError=function(t){this.currentSession.onRouterError(t)},i.prototype.onRouterEnd=function(t){this.currentSession.onRouterEnd(t)},i.prototype.navigate=function(t,e){var n=this;return this.doNavigation(t,(function(o){return B(n,void 0,void 0,(function(){var n;return q(this,(function(o){switch(o.label){case 0:return n=G([t.placeDefinition.path],this.createRouteParameters(t)),[4,this.angularRouter.navigate(n,{relativeTo:e?e.relativeTo:null})];case 1:return o.sent(),[2]}}))}))}))},i.prototype.doNavigation=function(t,e){return B(this,void 0,void 0,(function(){var n;return q(this,(function(o){switch(o.label){case 0:this.navigationInProgress.value&&b.lang.illegalState("Navigation already in progress"),(n=this.createNavigationSession(this.urlService.getCurrentRouterUrl())).storeVisit(t),this.transitionTo(n),o.label=1;case 1:return o.trys.push([1,,3,4]),[4,e(this.angularRouter)];case 2:return o.sent(),[3,4];case 3:return!this.angularRouter.getCurrentNavigation()&&this.currentSession&&this.currentSession.onRouterEnd(new S.NavigationEnd(-1,"","")),[7];case 4:return[2]}}))}))},i.prototype.navigateByUrl=function(t,e){return this.angularRouter.navigateByUrl(t.urlTree,e)},Object.defineProperty(i.prototype,"activeVisits",{get:function(){return this._activeVisits.readonly},enumerable:!0,configurable:!0}),i.prototype.pushVisitChangesToRoute=function(t,e){return B(this,void 0,void 0,(function(){var n=this;return q(this,(function(o){return this.placeHistory.updateVisit(e),e.hasRoutingChangedFrom(t)?[2,this.doNavigation(e,(function(t){var o=n.urlService.parseUrl(n.angularRouter.routerState.snapshot.url).updateVisitSegments(e);return n.navigateByUrl(o)}))]:[2]}))}))},i.prototype.createNavigationSession=function(t){return this.interactionService.isActive()?new je(this.navigationContext,t):new Ue(this.navigationContext,t)},i.prototype.transitionTo=function(t){var e=this.navigationSessionModel.value;e||this.placeHistory.notifyNavigationStarted(),b.assert.isTruthy(t!==e),b.Logger.get(this).info("### Router State Transition: "+(e?e.toString():"null")+" -> "+t.toString()),this.navigationSessionModel.value=t,e&&e.dispose(),t.notifyActive()},i.prototype.routingSessionFinished=function(t){t&&t.length>0&&(b.assert.isTruthy(this.navigationInProgress.value),this.placeHistory.notifyNavigationFinished(t),this._activeVisits.value=t);var e=this.currentSession;e.dispose(),this.navigationSessionModel.value=null,console.log("### Router Session Finished (was "+e.toString()+")"),this.sessionFinishedJobs.forEach((function(t){return t()})),this.sessionFinishedJobs=[]},i.prototype.runAfterRoutingSessionFinishes=function(t){b.assert.isTruthy(this.navigationInProgress),this.sessionFinishedJobs.push(t)},i.prototype.syncInteractionContextIdsWithRouter=function(){var t=this;if(this.navigationSession){this.navigationSession;return new Promise((function(e,n){t.runAfterRoutingSessionFinishes((function(){t.runAfterRoutingSessionFinishes(e);var n=new _e(t.navigationContext,t.urlService.getCurrentRouterUrl(),!1);t.transitionTo(n)}))}))}return new Promise((function(e,n){t.runAfterRoutingSessionFinishes(e);var o=new _e(t.navigationContext,t.urlService.getCurrentRouterUrl(),!1);t.transitionTo(o)}))},i.prototype.createRouteParameters=function(t){var e=t.placeDefinition;return t.hasRouteId()?[e.getFormattedRouteId(t),e.getFormattedRouteParameters(t)]:[e.getFormattedRouteParameters(t)]},i.ctorParameters=function(){return[{type:S.Router},{type:e.Location},{type:t.ɵbw},{type:We},{type:t.ɵbz}]},i.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new i(n.ɵɵinject(S.Router),n.ɵɵinject(e.Location),n.ɵɵinject(t.ɵbw),n.ɵɵinject(We),n.ɵɵinject(t.ɵbz))},token:i,providedIn:"root"}),i=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[S.Router,e.Location,t.ɵbw,We,t.ɵbz])],i)}(b.GarbageCollector),Xe=function(){function t(t,e){void 0===e&&(e={}),this.placeDefinition=t,this.visitParameters=e}return t.prototype.getRouteId=function(){return this.placeDefinition.getRouteIdFrom(this)},t.prototype.hasRouteId=function(){return!C.isNil(this.getRouteId())},t.prototype.getParameter=function(t){return this.visitParameters[t]},t.prototype.hasParameter=function(t){return Object.keys(this.visitParameters).includes(t)},t.prototype.replace=function(e,n){var o;return new t(this.placeDefinition,V(V({},this.visitParameters),((o={})[e.name]=n,o)))},t.prototype.mergeRouteParameters=function(e){var n=this,o=Object.keys(e),i={};return this.placeDefinition.getVisitParameterDefs().forEach((function(t){if(t.isRouteId||t.isRouteParameter)o.includes(t.name)&&(i[t.name]=e[t.name]);else{var r=n.getParameter(t.name);n.hasParameter(t.name)&&(i[t.name]=r)}})),new t(this.placeDefinition,i)},t.prototype.hasRoutingChangedFrom=function(t){var e=t.placeDefinition===this.placeDefinition,n=C.isEqual(this.placeDefinition.getFormattedRouteParameters(this,!0),this.placeDefinition.getFormattedRouteParameters(t,!0));return!e||!n},t.prototype.hasChangedFrom=function(t){return!C.isEqual(this.placeDefinition.getNonRouteParameters(this),this.placeDefinition.getNonRouteParameters(t))||this.hasRoutingChangedFrom(t)},t.prototype.toDebugString=function(){var t=this;return Object.keys(this.visitParameters).map((function(e){return e+"="+t.visitParameters[e]})).join(",")},t}(),$e=new n.InjectionToken("AUP_PLACE_CONFIG"),Ye=F.style({position:"absolute",top:"0",left:"0",bottom:"0",right:"0"}),Ze=[F.query(":enter, :leave",Ye,{optional:!0}),F.group([F.query(":enter",[F.style({transform:"translateX(-100%)"}),F.animate("{{duration}} ease-out",F.style({transform:"translateX(0%)"}))],{optional:!0}),F.query(":leave",[F.style({transform:"translateX(0%)"}),F.animate("{{duration}} ease-out",F.style({transform:"translateX(100%)"}))],{optional:!0})])],Je=[F.query(":enter, :leave",Ye,{optional:!0}),F.group([F.query(":enter",[F.style({transform:"translateX(100%)",minHeight:"1px"}),F.animate("{{duration}} ease-out",F.style({transform:"translateX(0%)"}))],{optional:!0}),F.query(":leave",[F.style({transform:"translateX(0%)"}),F.animate("{{duration}} ease-out",F.style({transform:"translateX(-100%)",minHeight:"1px"}))],{optional:!0})])];function Qe(t){return F.trigger("routeAnimations",[F.transition(":increment",Je,{params:{duration:t}}),F.transition(":decrement",Ze,{params:{duration:t}})])}var tn=Qe("0.3s"),en=function(t){function e(e,o,i,r){var a=t.call(this)||this;a.router=e,a.placeRouter=o,a.placeConfig=i,a.placeChanged=new n.EventEmitter,a.outletActivated=new b.MutableValueModel(!1),a._activatedRouteModel=new b.MutableValueModel,a._activePlaceModel=new b.MutableValueModel,a.initialPlaceIndex=null,a._isPushingVisitToRoute=new b.MutableValueModel(!1);var s=b.Dsl.disposeWith(a),l=s.chain,c=(s.valueOf,s.before,s.when);s.after,s.observe,s.switchOn;a.parentOutletModel=new b.MutableValueModel(r);var u=l(a.parentOutletModel).pullValueModel((function(t){return t.activePlaceModel})).pluck("placeDefinition").pluckList("children").pluck("component"),p=l(a.activePlaceModel).map((function(t){return t.constructor}));return a.placeAnimationOrder=l(a.customPlaceAnimationOrderModel).otherwise(u).reduce((function(t){var e=0;return p.value&&(e=t.indexOf(p.value),C.isNil(a.initialPlaceIndex)&&(a.initialPlaceIndex=e)),C.isNil(a.initialPlaceIndex)?0:e-a.initialPlaceIndex}),{dependsOn:p}),a._activePlaceDefinition=l(a._activePlaceModel).pluck("placeDefinition"),a.routerVisitModel=a._activePlaceDefinition.findIn(l(o.activeVisitsByPlaceDefinition)),a.navigationInProgress=l(a.placeRouter.navigationInProgress),c.valueOf(a.navigationInProgress).becomesFalsey((function(){a.checkStateAndInitialise()})),c.valueOf(a.outletActivated).becomesTruthy((function(){a.checkStateAndInitialise()})),l(a._activePlaceModel).postponeWhile(a.navigationInProgress).subscribe((function(t){return a.placeChanged.emit(t)})),a}return L(e,t),e.prototype.ngOnInit=function(){},e.prototype.getAnimationOrder=function(){return this.placeAnimationOrder.value},Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.placeConfig&&this.placeConfig.animationDuration?this.placeConfig.animationDuration:"500ms"},enumerable:!0,configurable:!0}),e.prototype.navigate=function(t){this.placeRouter.navigate(t,{relativeTo:this.parentOutlet?this.parentOutlet.activatedRouteModel.value:null})},Object.defineProperty(e.prototype,"parentOutlet",{get:function(){return this.parentOutletModel.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activePlaceModel",{get:function(){return this._activePlaceModel.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteModel",{get:function(){return this._activatedRouteModel.readonly},enumerable:!0,configurable:!0}),e.prototype.onOutletActivated=function(t,e){this._activatedRouteModel.value=t.activatedRoute,this._activePlaceModel.value=e,this.outletActivated.value=!0,this.checkStateAndInitialise()},e.prototype.onOutletDeactivated=function(){this.outletActivated.value=!1,this._activePlaceModel.value=null,this._activatedRouteModel.value=null},e.prototype.checkStateAndInitialise=function(){var t=this.routerVisitModel.value,e=this.activePlaceModel.value;t&&e&&!e.isInitialised()&&(t.placeDefinition!==e.placeDefinition&&b.lang.illegalState("wrong visit!!!"),this.initialisePlace(t,e))},e.prototype.initialisePlace=function(t,e){var n=this,o=new b.MutableValueModel(t);b.DebugContext.tag(o,"PlaceOutletComponent["+e.constructor.name+")].visitModel"),e.initialiseVisit(t,(function(t,e){n.pushVisitChangeToRoute(e,t)})),this.animateModel.value||this.animationDone();var i=b.Dsl.disposeWith(e),r=i.when,a=(i.chain,i.valueOf);r.valueOf(this.routerVisitModel).changes((function(t){e.updateVisit(t)}),{unless:a.any(this._isPushingVisitToRoute,this.routerVisitModel.isNil()).areTruthy()})},e.prototype.pushVisitChangeToRoute=function(t,e){var n=this;this._isPushingVisitToRoute.value=!0,this.placeRouter.pushVisitChangesToRoute(t,e).finally((function(){n._isPushingVisitToRoute.value=!1}))},e.prototype.animationStarted=function(){},e.prototype.animationDone=function(){this._activePlaceModel.value&&this._activePlaceModel.value.onPlaceReady()},e.ctorParameters=function(){return[{type:S.Router},{type:Ke},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[$e]}]},{type:e,decorators:[{type:n.SkipSelf},{type:n.Optional}]}]},N([n.Input(),b.StoreInValueModel("animateModel"),H("design:type",Boolean)],e.prototype,"animate",void 0),N([n.Input(),b.TrackExternal({defaultValue:!0}),H("design:type",b.ValueModel)],e.prototype,"animateModel",void 0),N([n.Input("placeAnimationOrderModel"),b.TrackExternal(),H("design:type",b.ListModel)],e.prototype,"customPlaceAnimationOrderModel",void 0),N([n.Input("placeAnimationOrder"),b.StoreInListModel("customPlaceAnimationOrderModel"),H("design:type",Array)],e.prototype,"customPlaceAnimationOrder",void 0),N([n.Output(),H("design:type",Object)],e.prototype,"placeChanged",void 0),N([n.ViewChild("routeOutlet",{static:!0}),H("design:type",S.RouterOutlet)],e.prototype,"routerOut",void 0),e=N([n.Component({selector:"aup-place-outlet",template:'<ng-container *ngIf="animateModel.value">\n <div class="router-outlet-container" cdkScrollable\n [@routeAnimations]="{value: getAnimationOrder(), params:{duration: animationDuration}}"\n (@routeAnimations.start)="animationStarted()"\n (@routeAnimations.done)="animationDone()"\n >\n <router-outlet #routerOutlet="outlet"\n (activate)="onOutletActivated(routerOutlet, $event)"\n (deactivate)="onOutletDeactivated()">\n </router-outlet>\n </div>\n</ng-container>\n\n<ng-container *ngIf="!animateModel.value">\n <div class="router-outlet-container" cdkScrollable>\n <router-outlet #routerOutlet="outlet"\n (activate)="onOutletActivated(routerOutlet, $event)"\n (deactivate)="onOutletDeactivated()">\n </router-outlet>\n </div>\n</ng-container>\n\n',animations:[tn],styles:[":host{display:flex;flex-direction:column;min-height:0}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:scroll}router-outlet{display:none}"]}),U(2,n.Optional()),U(2,n.Inject($e)),U(3,n.SkipSelf()),U(3,n.Optional()),H("design:paramtypes",[S.Router,Ke,Object,e])],e)}(K),nn=function(e){function o(n){var o=e.call(this)||this;o._activePlaceComponent=new b.DelegatingValueModel;var i=b.Dsl.disposeWith(o),r=i.chain,a=(i.valueOf,i.before,i.when);i.after,i.observe,i.switchOn;return o.placeDefinitions=r(o.placesModel).map((function(e){return t.PlaceComponent.getDefinition(e)})),o.commandFactory=b.Command.createFactory((function(t){o.placeOutlet.navigate(new Xe(t))})),a.valueOf(o.placeOutletModel).changes((function(t){setTimeout((function(){return o._activePlaceComponent.setDelegate(t?t.activePlaceModel:null)}))})),o.activePlaceDefinition=r(o._activePlaceComponent).pluck("placeDefinition"),o}return L(o,e),o.prototype.getNav=function(t){var e=t.getPlaceData("nav");return{title:function(){return e?e.title():t.searchPlaceData(["navTitle","title"])},tooltip:function(){return e&&e.tooltip?e.tooltip():t.getPlaceData("navTooltip",null)},icon:function(){return e&&e.icon?e.icon():t.getPlaceData("navIcon",null)}}},o.prototype.isActive=function(t){return this.activePlaceDefinition.query().equals(t)},o.prototype.ngOnInit=function(){},o.ctorParameters=function(){return[{type:Ke}]},N([n.Input(),b.StoreInListModel("placesModel"),H("design:type",Array)],o.prototype,"places",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.ListModel)],o.prototype,"placesModel",void 0),N([n.Input(),b.StoreInValueModel("placeOutletModel"),H("design:type",en)],o.prototype,"placeOutlet",void 0),N([n.Input(),b.TrackExternal(),H("design:type",b.ValueModel)],o.prototype,"placeOutletModel",void 0),N([w.Memoize(),H("design:type",Function),H("design:paramtypes",[Se]),H("design:returntype",Object)],o.prototype,"getNav",null),o=N([n.Component({template:""}),H("design:paramtypes",[Ke])],o)}(K),on=function(){function t(){}return t.prototype.ngOnInit=function(){},N([n.Input(),b.TrackExternal(),H("design:type",b.ValueModel)],t.prototype,"busyModel",void 0),N([n.Input(),b.StoreInValueModel("busyModel"),H("design:type",Boolean)],t.prototype,"busy",void 0),t=N([n.Component({selector:"aup-busy-overlay",template:'<ng-content></ng-content>\n<div class="busy-overlay-backdrop" *ngIf="busyModel.value">\n <mat-progress-spinner mode="indeterminate" [diameter]="52"></mat-progress-spinner>\n</div>\n',styles:[":host{position:relative}div.busy-overlay-backdrop{position:absolute;background-color:rgba(0,0,0,.2);top:0;left:0;bottom:0;right:0;display:-ms-grid;display:grid;-ms-grid-columns:auto;grid-template-columns:auto;-ms-grid-rows:auto;grid-template-rows:auto;place-content:center}"]}),H("design:paramtypes",[])],t)}(),rn=function(){function t(){}return t.prototype.ngOnInit=function(){},t=N([n.Component({selector:"aup-empty-state",template:'\n <div class="container">\n <ng-content></ng-content>\n </div>\n ',styles:[":host{display:flex;flex-direction:column;justify-content:center;align-items:center}.container{padding:var(--aup-default-padding);border:2px dashed rgba(0,0,0,.2);border-radius:5px;font-size:14px;font-weight:300}"]}),H("design:paramtypes",[])],t)}(),an=function(t){function e(e){return t.call(this,e)||this}return L(e,t),e.ctorParameters=function(){return[{type:Ke}]},e=N([n.Component({selector:"aup-list-place-nav",template:'<mat-nav-list fxFlex>\n <a mat-list-item *ngFor="let placeDefinition of placeDefinitions.value"\n [pectinCommand]="commandFactory.create(placeDefinition)"\n [class.active]="isActive(placeDefinition)"\n [matTooltip]="getNav(placeDefinition).tooltip()">\n <aup-icon *ngIf="getNav(placeDefinition).icon()" [icon]="getNav(placeDefinition).icon()"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n',styles:[":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]}),H("design:paramtypes",[Ke])],e)}(nn),sn=function(t){function e(e){return t.call(this,e)||this}return L(e,t),e.ctorParameters=function(){return[{type:Ke}]},e=N([n.Component({selector:"aup-tabbed-place-navigation",template:'<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor="let placeDefinition of placeDefinitions.value"\n [pectinCommand]="commandFactory.create(placeDefinition)"\n [active]="isActive(placeDefinition)"\n [matTooltip]="getNav(placeDefinition).tooltip()">\n <aup-icon *ngIf="getNav(placeDefinition).icon()" [icon]="getNav(placeDefinition).icon()"></aup-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</nav>\n',styles:[""]}),H("design:paramtypes",[Ke])],e)}(nn),ln=function(t){function e(e,n){var o=t.call(this,n)||this;return o.router=e,o.expanded=!1,o}return L(e,t),e.prototype.expandMenu=function(){this.expanded=!0},e.prototype.collapseMenu=function(){this.expanded=!1},e.prototype.toggleMenu=function(){this.expanded=!this.expanded},e.ctorParameters=function(){return[{type:S.Router},{type:Ke}]},N([n.HostBinding("class.expanded"),H("design:type",Object)],e.prototype,"expanded",void 0),N([n.ContentChild("navEndTemplate"),H("design:type",n.TemplateRef)],e.prototype,"navEndTemplate",void 0),e=N([n.Component({selector:"aup-side-place-navigation",template:'<mat-nav-list>\n <a mat-list-item (click)="toggleMenu()" class="home">\n <aup-icon class="collapsed-only" icon="mat:menu"></aup-icon>\n <aup-icon class="expanded-only" icon="mat:arrow_back"></aup-icon>\n <span class="expanded-only">Menu</span>\n </a>\n <a mat-list-item *ngFor="let placeDefinition of placeDefinitions.value"\n [pectinCommand]="commandFactory.create(placeDefinition)"\n [class.active]="isActive(placeDefinition)"\n [matTooltip]="getNav(placeDefinition).tooltip()">\n <aup-icon *ngIf="getNav(placeDefinition).icon()" [icon]="getNav(placeDefinition).icon()"></aup-icon>\n <span\n class="expanded-only">{{getNav(placeDefinition).title()}}</span>\n </a>\n <span [style.flex]="1"></span>\n <ng-container *ngIf="navEndTemplate" [ngTemplateOutlet]="navEndTemplate"></ng-container>\n</mat-nav-list>\n',styles:[":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width, 56px);--resolved-nav-item-height:var(--nav-item-height, var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width, 235px);--resolved-color:var(--nav-color, rgba(255, 255, 255, 0.9));--resolved-background-color:var(--nav-background-color, #555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}"]}),H("design:paramtypes",[S.Router,Ke])],e)}(nn),cn=function(){function t(){}return t=N([n.NgModule({imports:[e.CommonModule,l.BrowserAnimationsModule,A.MatProgressSpinnerModule,S.RouterModule,s.MatTabsModule,T.MatListModule,g.MatTooltipModule,h.MatIconModule,Z,x.FlexModule,Qt],declarations:[rn,on,en,sn,an,ln,nn],entryComponents:[on],exports:[on,en,rn,sn,an,ln,nn],providers:[]})],t)}(),un=function(){function t(){}return t=N([n.NgModule({declarations:[],imports:[e.CommonModule,l.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule,Z,Qt,cn,xe],exports:[xe,cn,Z,Qt,ft]})],t)}(),pn=F.style({opacity:0,height:"0",paddingTop:"0",paddingBottom:"0"}),dn=F.trigger("slideDownOnEnter",[F.transition(":enter",[pn,F.animate("{{duration}}")],{params:{duration:"100ms"}}),F.transition(":leave",[F.animate("{{duration}}",pn)],{params:{duration:"100ms"}})]),fn=F.style({opacity:0,width:"0",paddingLeft:"0",paddingRight:"0"}),hn=F.trigger("slideRightOnEnter",[F.transition(":enter",[fn,F.animate("{{duration}}")],{params:{duration:"100ms"}}),F.transition(":leave",[F.animate("{{duration}}",fn)],{params:{duration:"100ms"}})]),mn=function(t){function e(e,n,o,i){var r=t.call(this)||this;return r.identifier=e,r.api=n,r.dialogService=o,r.config=i,r.garbage=new b.GarbageCollector,I.assert.notNil(o),r}return L(e,t),e.prototype.cancelActiveActivity=function(){return this.activityContainer.cancelActiveActivity()},e.prototype.dispose=function(){this.isActive()&&b.lang.illegalState("Dispose called while active."),this.garbage.dispose()},e.prototype.registerDisposable=function(t){return this.garbage.registerDisposable(t)},e.prototype.isActive=function(){return!!this.activityContainer&&this.activityContainer.isActive()},e.prototype.createAndLaunchActivity=function(t,e,n){var o=this;I.assert.isNil(this._currentActivityRef);var i=V(V({},this.config),{disableClose:n,panelClass:"dialog-interaction-context"}),r=this.dialogService.open(ce,i),a=this.activityContainer=r.componentInstance;this.activityContainer.initialise(this.identifier,this.api);var s=this.activityContainer.startActivity(t,e);return s.finally((function(){return r.close()})),r.afterClosed().subscribe((function(t){a.isActive()&&a.cancelActiveActivity(),o.activityContainer=null})),r.updateSize(),r.afterOpened().subscribe((function(t){r.updateSize()})),s},e}(ae),gn=new n.InjectionToken("DIALOG_INTERACTION_SERVICE_DEFAULTS"),yn=function(t){function e(e,n,o){var i=t.call(this)||this;return i.dialogService=e,i.dialogServiceDefaults=n,i.matDialogDefaultConfig=o,I.assert.notNil(e),i}return L(e,t),e.prototype.createInteractionContext=function(t,e,n){var o=V(V({autoFocus:!1,hasBackdrop:!0,closeOnNavigation:!1},this.matDialogDefaultConfig),this.dialogServiceDefaults);return new mn(t,e,this.dialogService,o)},e.ctorParameters=function(){return[{type:P.MatDialog},{type:P.MatDialogConfig,decorators:[{type:n.Optional},{type:n.Inject,args:[gn]}]},{type:P.MatDialogConfig,decorators:[{type:n.Optional},{type:n.Inject,args:[P.MAT_DIALOG_DEFAULT_OPTIONS]}]}]},e.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new e(n.ɵɵinject(P.MatDialog),n.ɵɵinject(gn,8),n.ɵɵinject(P.MAT_DIALOG_DEFAULT_OPTIONS,8))},token:e,providedIn:"root"}),e=N([n.Injectable({providedIn:"root"}),U(1,n.Optional()),U(1,n.Inject(gn)),U(2,n.Optional()),U(2,n.Inject(P.MAT_DIALOG_DEFAULT_OPTIONS)),H("design:paramtypes",[P.MatDialog,P.MatDialogConfig,P.MatDialogConfig])],e)}(pe);var vn,bn,Cn,In,wn=function(){function t(t,e){this.paramMaps=[t].concat((e||[]).map((function(t){return new Rn(t.parameters)}))).filter((function(t){return!!t}))}return t.prototype.get=function(t){return this.paramMaps.find((function(e){return e.has(t)})).get(t)},t.prototype.getAll=function(t){return this.paramMaps.find((function(e){return e.has(t)})).getAll(t)},t.prototype.has=function(t){return!!this.paramMaps.find((function(e){return e.has(t)}))},Object.defineProperty(t.prototype,"keys",{get:function(){return this.paramMaps.reduce((function(t,e){return t.concat(e.keys)}),[])},enumerable:!0,configurable:!0}),N([w.Memoize(),H("design:type",Array),H("design:paramtypes",[])],t.prototype,"keys",null),t}(),Rn=function(){function t(t){this.params=t}return t.prototype.get=function(t){return this.params[t]},t.prototype.getAll=function(t){var e=this.get(t);return Array.isArray(e)?e:[e]},t.prototype.has=function(t){return this.keys.includes(t)},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),xn=function(){function t(){}return t.prototype.canActivate=function(t,e){return B(this,void 0,void 0,(function(){return q(this,(function(t){return[2,!0]}))}))},t.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=N([n.Injectable({providedIn:"root"}),H("design:paramtypes",[])],t)}(),Pn=function(){function t(t,e,n,o,i){this.navigationSession=t,this.activatedRoute=e,this.router=n,this.placeHistory=o,this.injector=i}return t.prototype.sanitise=function(t){return B(this,void 0,void 0,(function(){var e,n,o,i,r,a,s,l,c;return q(this,(function(u){switch(u.label){case 0:return(e=t.placeDefinition).hasRouteId()?(n=e.getRouteIdParameterDef(),o=t.getRouteId(),[4,n.sanitise(o,t,this.placeHistory,this.injector,this.navigationSession.isPopState)]):[3,2];case 1:if(c=u.sent(),console.log({routeId:o,sanitisedValue:c}),n.hasChanged(o,c))return[2,t.replace(n,c)];u.label=2;case 2:i=e.getVisitParameterDefs({includeRouteParameters:!0,includeNonRouteParameters:!0}),r=t,a=0,u.label=3;case 3:return a<i.length?(s=i[a],l=t.getParameter(s.name),[4,s.sanitise(l,r,this.placeHistory,this.injector,this.navigationSession.isPopState)]):[3,6];case 4:c=u.sent(),s.hasChanged(l,c)&&(r=r.replace(s,c)),u.label=5;case 5:return a++,[3,3];case 6:return[2,r.hasChangedFrom(t)?r:t]}}))}))},t}(),Sn=function(){function e(t,e,n,o,i,r){this.router=t,this.urlService=e,this.placeRouter=n,this.placeHistory=o,this.interactionService=i,this.injector=r}return e.prototype.canActivate=function(t,e){return B(this,void 0,void 0,(function(){var n=this;return q(this,(function(o){return[2,this.authorisePlaceThen(t,e,(function(o){return B(n,void 0,void 0,(function(){var n,i=this;return q(this,(function(r){switch(r.label){case 0:return[4,this.cleanInteractionState(t,e,(function(){return B(i,void 0,void 0,(function(){var n,i,r,a,s;return q(this,(function(l){switch(l.label){case 0:return n=new wn(t.paramMap,t.url),i=o.parseRouteParams(n),r=this.placeRouter.navigationSession,a=r.getVisitFor(o)||new Xe(o,i),[4,new Pn(r,t,this.router,this.placeHistory,this.injector).sanitise(a.mergeRouteParameters(i))];case 1:return s=l.sent(),r.storeVisit(s),a.hasRoutingChangedFrom(s)?[2,this.urlService.parseUrl(e.url).updateVisitSegments(s)]:[2,!0]}}))}))}))];case 1:return n=r.sent(),[2,this.handleGuardResult(n)]}}))}))}))]}))}))},e.prototype.canDeactivate=function(t,e,n,o){return B(this,void 0,void 0,(function(){var e,i,r;return q(this,(function(a){switch(a.label){case 0:return e=this.urlService.parseUrl(n.url),i=this.urlService.parseUrl(o.url),[4,this.placeRouter.navigationSession.canDeactivatePlace(t,e,i)];case 1:return r=a.sent(),[2,this.handleGuardResult(r)]}}))}))},e.prototype.handleGuardResult=function(e){return e instanceof t.UrlSnapshot?e.urlTree:e},e.prototype.authorisePlaceThen=function(e,n,o){return B(this,void 0,void 0,(function(){var i,r,a;return q(this,(function(s){switch(s.label){case 0:return t.PlaceComponent.isPlaceComponentConstructor(e.component)?(i=t.PlaceComponent.getDefinition(e.component)).authenticate?[4,this.isAuthorised(e,n)]:[3,2]:[3,4];case 1:return a=s.sent(),[3,3];case 2:a=!0,s.label=3;case 3:return!0===(r=a)?[2,o(i)]:(console.log("not authorised result",r),[2,r]);case 4:return[2,b.lang.illegalState("expected component to be an instance of PlaceComponent, got "+e.component)];case 5:return[2]}}))}))},e.prototype.isAuthorised=function(t,e){return B(this,void 0,void 0,(function(){var n;return q(this,(function(o){return[2,(n=this.getAuthGuard(this.injector).canActivate(t,e))instanceof k.Observable?n.toPromise():n]}))}))},e.prototype.cleanInteractionState=function(t,e,n){return B(this,void 0,void 0,(function(){var t;return q(this,(function(o){return t=this.urlService.parseUrl(e.url),!this.interactionService.isActive()&&t.hasInteractions()?[2,t.removeInteractionIds()]:[2,n()]}))}))},e}();function Mn(t,e,n,o,i){var r={backingModel:n,binding:null},a=o+"("+t.constructor.name+"."+e.toString()+")";b.DebugContext.getOrCreate(r.backingModel).tag(a),Object.defineProperty(t,e,{get:function(){return r.backingModel},set:function(t){r.binding&&r.binding.dispose(),t&&(r.binding=new b.Binding(r.backingModel,t,{toLeft:b.Functions.identity,toRight:b.Functions.identity}),i(t)?r.binding.writeRight():(i(r.backingModel)||console.warn("Assigning a visit model with an existing value to a visit parameter with an existing value. Visit parameter will be overridden"),r.binding.writeLeft()))}})}vn=t.Formatter||(t.Formatter={}),bn=function(){function t(){}return t.prototype.format=function(t){return t},t.prototype.parse=function(t){return t},t}(),Cn=function(){function t(){}return t.prototype.format=function(t){return _.isNumber(t)&&!_.isNaN(t)?""+t:null},t.prototype.parse=function(t){var e=Number.parseFloat(t);return _.isNaN(e)?null:e},t}(),In=function(){function t(){}return t.prototype.format=function(t){return t?"true":"false"},t.prototype.parse=function(t){return"true"===t},t}(),vn.STRING=new bn,vn.NUMBER=new Cn,vn.BOOLEAN=new In,t.ACTIVITY_DATA=ee,t.AUP_PLACE_CONFIG=$e,t.AbstractInputActivity=ve,t.AbstractInputComponent=et,t.AbstractInteractionContext=ae,t.AbstractListInputComponent=nt,t.AbstractPlaceNavigationComponent=nn,t.AbstractPopStateNavigation=Le,t.AbstractValueInputComponent=ot,t.Activity=ne,t.ActivityActionsComponent=te,t.ActivityContainerComponent=ce,t.ActivityOutletComponent=le,t.ActivityRef=se,t.AddItemInteractionContextComponent=me,t.AlertDialogComponent=oe,t.AngularUiPowerupsModule=un,t.AutocompleteInputComponent=it,t.BusyOverlayComponent=on,t.CELL_EDITOR_PORTAL=wt,t.CELL_RENDERER_PORTAL=It,t.CardContainerComponent=J,t.CellEditorPortalRef=At,t.CellHeaderPortalRef=St,t.CellPortalRef=Pt,t.CellRendererPortalRef=Mt,t.CheckboxInputComponent=rt,t.ColumnModel=Nt,t.ColumnTemplateDirective=$t,t.CommandDirective=W,t.ComponentCellRendererPortalRef=Ot,t.ComponentsModule=Qt,t.ConfirmThenDialogComponent=ie,t.ConfirmationDialogComponent=re,t.ConsolidatedParameterMap=wn,t.CustomTemplateColumnModel=zt,t.CustomValueColumnModel=Bt,t.DEFINITION_META_DATA_KEY="PLACE_DEFINITION_OPTIONS",t.DIALOG_INTERACTION_SERVICE_DEFAULTS=gn,t.DefaultCellRendererComponent=Dt,t.DefaultHeaderCellRendererComponent=Et,t.DialogInteractionContext=mn,t.DialogInteractionContextFactory=yn,t.Dimension=Ie,t.DirectivesModule=Z,t.DisposableComponent=K,t.EditRowControls=kt,t.EditSession=Ft,t.EditorControlColumnModel=qt,t.EmptyStateComponent=rn,t.EventCleanUpSession=Ee,t.FocusBinding=X,t.FocusBindingDirective=Y,t.FocusBindingFactory=$,t.FocusContainerComponent=Q,t.FocusableComponent=tt,t.HEADER_CELL_RENDERER_PORTAL=Ct,t.IconComponent=dt,t.InPlaceInteractionContextComponent=he,t.InteractionContextTriggerFor=ye,t.InteractionModule=xe,t.InteractionService=t.ɵbw,t.InteractionServiceRoutingAdapter=ue,t.LEFT_RIGHT_PLACE_ANIMATION=tn,t.ListPlaceNavComponent=an,t.ListPropertyColumnModel=Ht,t.ModalInteractionContextFactory=pe,t.MultipleSelectInputComponent=at,t.Navigating=Ue,t.NavigatingDuringInteraction=je,t.NavigationSession=De,t.NoopAuthGuard=xn,t.NoopComponent=ft,t.NumberInputComponent=st,t.PORTAL_EDITOR_COMPONENT=xt,t.PORTAL_RENDERER_COMPONENT=Rt,t.PasswordInputComponent=lt,t.Place=function(e){return function(n){t.PlaceComponent.isPlaceComponentConstructor(n)?t.PlaceComponent.injectDefinition(n,new Se(n,e.path,!!C.isNil(e.authenticate)||e.authenticate,e.data,t.PlaceComponent.getRouteParameters(n),(e.children||[]).map((function(e){return t.PlaceComponent.getDefinition(e)})))):b.lang.illegalState(n+" must extend PlaceComponent to use the @Place decorator")}},t.PlaceComponentDeactivationHandler=Te,t.PlaceDefinition=Se,t.PlaceGuard=Sn,t.PlaceHistory=t.ɵbz,t.PlaceModule=cn,t.PlaceOutletComponent=en,t.PlaceRouter=Ke,t.Point=we,t.PopStateDuringInteractionNavigation=Ve,t.PopStateNavigation=Ge,t.PopupInteractionContextComponent=ge,t.PropertyColumnModel=Ut,t.ROUTE_PARAMETER_LIST_KEY=Me,t.RemoveLastInteractionFromUrlNavigationSession=ke,t.ResizeAwareComponent=Re,t.RouteId=function(e,n){return function(o,i){var r=new t.ParameterDefinition.RouteId(i.toString(),n,e);I.Klass.get(o).addToOwnMetadataList(Me,r),Mn(o,i,new b.MutableValueModel,"@RouteId",(function(t){return t.query().isNil()}))}},t.ScrollContainerComponent=ht,t.SectionHeaderComponent=mt,t.SelectCellRendererComponent=_t,t.SelectHeaderCellRendererComponent=jt,t.SelectInputActivity=Ce,t.SelectInputComponent=ct,t.SelectionColumnModel=Gt,t.SidePlaceNavigationComponent=ln,t.StringInputActivity=be,t.StringInputComponent=ut,t.SwitchCaseComponent=bt,t.SwitchCaseDefaultDirective=vt,t.SwitchCaseOption=gt,t.SwitchCaseWhenDirective=yt,t.SynchroniseInteractionContextIdsWithRoute=_e,t.TabbedPlaceNavigationComponent=sn,t.TableCellRendererComponent=Yt,t.TableComponent=Xt,t.TableHeaderCellRendererComponent=Zt,t.TableModel=Kt,t.TemplateCellRendererPortalRef=Tt,t.TextInputComponent=pt,t.UrlService=We,t.VerticalFocusContainerComponent=Jt,t.Visit=Xe,t.VisitParameter=function(e){var n=I.Opts.get(e);return function(o,i){var r=new t.ParameterDefinition.ValueParameter(i.toString(),e,n.getOptional("storeInUrl",null));I.Klass.get(o).addToOwnMetadataList(Me,r),Mn(o,i,new b.MutableValueModel,"@VisitParameter",(function(t){return t.query().isNil()}))}},t.VisitParameterList=function(e){var n=I.Opts.get(e);return function(o,i){var r=new t.ParameterDefinition.ArrayParameter(i.toString(),e,n.getOptional("storeInUrl",null));I.Klass.get(o).addToOwnMetadataList(Me,r),Mn(o,i,new b.MutableListModel,"@VisitParameterList",(function(t){return t.query().isEmpty()}))}},t.VisitSanitiser=Pn,t.WaitUntilLeavingInteractionTransitionCancelled=Fe,t.WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish=Ne,t.WaitUntilPopStateDuringCanDeactivateInteractionFinishes=ze,t.leftRightPlaceAnimation=Qe,t.slideDownOnEnterAnimation=dn,t.slideRightOnEnterAnimation=hn,t.ɵ0=Lt,t.ɵa=Z,t.ɵb=W,t.ɵba=J,t.ɵbb=Xt,t.ɵbc=kt,t.ɵbd=$t,t.ɵbe=Dt,t.ɵbf=Yt,t.ɵbg=_t,t.ɵbh=jt,t.ɵbi=Et,t.ɵbj=Zt,t.ɵbk=dt,t.ɵbl=mt,t.ɵbm=cn,t.ɵbn=Qt,t.ɵbo=rn,t.ɵbp=on,t.ɵbq=en,t.ɵbr=Qe,t.ɵbs=tn,t.ɵbt=$e,t.ɵbv=Ke,t.ɵbx=pe,t.ɵby=We,t.ɵc=Y,t.ɵca=sn,t.ɵcb=nn,t.ɵcc=an,t.ɵcd=ln,t.ɵce=xe,t.ɵcf=ce,t.ɵcg=ae,t.ɵch=le,t.ɵci=re,t.ɵcj=ee,t.ɵck=ne,t.ɵcm=ie,t.ɵcn=oe,t.ɵcp=he,t.ɵcq=me,t.ɵcr=te,t.ɵcs=ge,t.ɵct=be,t.ɵcu=ve,t.ɵcv=Ce,t.ɵcw=ye,t.ɵd=K,t.ɵe=$,t.ɵf=Qt,t.ɵg=et,t.ɵh=ot,t.ɵi=nt,t.ɵj=st,t.ɵk=ut,t.ɵl=pt,t.ɵm=lt,t.ɵn=ct,t.ɵo=at,t.ɵp=it,t.ɵq=rt,t.ɵr=ht,t.ɵs=ft,t.ɵt=gt,t.ɵu=yt,t.ɵv=vt,t.ɵw=bt,t.ɵx=Q,t.ɵy=Jt,t.ɵz=tt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
17
17
|
//# sourceMappingURL=coolon-angular-ui-powerups.umd.min.js.map
|