@coolon/angular-ui-powerups 11.0.0-alpha.8 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/coolon-angular-ui-powerups.umd.js +214 -27
- 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/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +9 -0
- 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/track-by.js +5 -1
- package/esm2015/lib/components/track-by.js.map +1 -1
- package/esm2015/lib/directives/directives.module.js +8 -2
- package/esm2015/lib/directives/directives.module.js.map +1 -1
- package/esm2015/lib/directives/directives.module.metadata.json +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/exports.js +2 -0
- package/esm2015/lib/directives/exports.js.map +1 -1
- package/esm2015/lib/directives/exports.metadata.json +1 -1
- package/esm2015/lib/directives/highlight-text-model.directive.js +25 -0
- package/esm2015/lib/directives/highlight-text-model.directive.js.map +1 -0
- package/esm2015/lib/directives/highlight-text-model.directive.metadata.json +1 -0
- package/esm2015/lib/directives/highlight-text-model.directive.ngfactory.js.map +1 -0
- package/esm2015/lib/directives/highlight.pipe.js +43 -0
- package/esm2015/lib/directives/highlight.pipe.js.map +1 -0
- package/esm2015/lib/directives/highlight.pipe.metadata.json +1 -0
- package/esm2015/lib/directives/highlight.pipe.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +18 -9
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/place-component.js +1 -3
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/services/exports.js +5 -0
- package/esm2015/lib/services/exports.js.map +1 -0
- package/esm2015/lib/services/exports.metadata.json +1 -0
- package/esm2015/lib/services/visibility-service.js +74 -0
- package/esm2015/lib/services/visibility-service.js.map +1 -0
- package/esm2015/lib/services/visibility-service.metadata.json +1 -0
- package/esm2015/lib/services/visibility-service.ngfactory.js.map +1 -0
- package/esm2015/public-api.js +1 -0
- package/esm2015/public-api.js.map +1 -1
- package/esm2015/public-api.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +180 -22
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/table-model.d.ts +9 -0
- package/lib/components/track-by.d.ts +3 -1
- package/lib/directives/exports.d.ts +2 -0
- package/lib/directives/highlight-text-model.directive.d.ts +7 -0
- package/lib/directives/highlight.pipe.d.ts +11 -0
- package/lib/place/components/abstract-place-navigation.component.d.ts +9 -2
- package/lib/place/place-component.d.ts +1 -1
- package/lib/services/exports.d.ts +4 -0
- package/lib/services/visibility-service.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/schematics/aup-i18n/index.js +8 -28
- package/schematics/aup-i18n/index.js.map +1 -1
- package/schematics/aup-i18n/templates/app/aup.i18n.yml.template +80 -0
- package/schematics/bootstrap-app/index.js +5 -4
- package/schematics/bootstrap-app/index.js.map +1 -1
- package/schematics/bootstrap-app/templates/{i18n/config.json.template → i18n.config.json.template} +2 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/place-add/index.js +4 -5
- package/schematics/place-add/index.js.map +1 -1
- package/schematics/place-add/templates/component/__name@dasherize__.component.ts.template +3 -1
- package/schematics/place-add/templates/component/__name@dasherize__.i18n.yml.template +5 -0
- package/schematics/aup-i18n/templates/i18n/aup/components.yml.template +0 -69
- package/schematics/bootstrap-app/templates/i18n/notifications.yml.template +0 -19
- package/schematics/place-add/templates/files/i18n/places/__name@dasherize__.yml.template +0 -7
- /package/schematics/bootstrap-app/templates/{app → src/app}/app-routing.module.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/app.component.html.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/app.component.scss.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/app.component.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/app.module.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/i18n.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.eot +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.ijmap +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.svg +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.ttf +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.woff +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.woff2 +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/README.md +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/codepoints +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/material-icons.css +0 -0
- /package/schematics/bootstrap-app/templates/{index.html.template → src/index.html.template} +0 -0
- /package/schematics/bootstrap-app/templates/{styles → src/styles}/global-variables.scss.template +0 -0
- /package/schematics/bootstrap-app/templates/{styles.scss.template → src/styles.scss.template} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/forms"),require("@angular/material/form-field"),require("@angular/material/input"),require("@angular/material/select"),require("@angular/material/tabs"),require("@angular/platform-browser/animations"),require("@angular/cdk/portal"),require("@angular/cdk/scrolling"),require("@angular/material/autocomplete"),require("@angular/material/button"),require("@angular/material/checkbox"),require("@angular/material/divider"),require("@angular/material/icon"),require("@angular/material/menu"),require("@angular/material/progress-spinner"),require("@angular/material/table"),require("@angular/material/tooltip"),require("@fortawesome/angular-fontawesome"),require("@fortawesome/free-solid-svg-icons"),require("@coolon/pectin"),require("@typescript-plus/fast-memoize-decorator/dist/src"),require("lodash"),require("typescript-string-enums"),require("resize-observer-polyfill"),require("@coolon/typescript-utilities"),require("immer"),require("@angular/flex-layout"),require("@angular/material/dialog"),require("@angular/router"),require("@angular/cdk/overlay"),require("@angular/material/list"),require("@typescript-plus/fast-memoize-decorator"),require("reflect-metadata"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@coolon/angular-ui-powerups",["exports","@angular/common","@angular/core","@angular/forms","@angular/material/form-field","@angular/material/input","@angular/material/select","@angular/material/tabs","@angular/platform-browser/animations","@angular/cdk/portal","@angular/cdk/scrolling","@angular/material/autocomplete","@angular/material/button","@angular/material/checkbox","@angular/material/divider","@angular/material/icon","@angular/material/menu","@angular/material/progress-spinner","@angular/material/table","@angular/material/tooltip","@fortawesome/angular-fontawesome","@fortawesome/free-solid-svg-icons","@coolon/pectin","@typescript-plus/fast-memoize-decorator/dist/src","lodash","typescript-string-enums","resize-observer-polyfill","@coolon/typescript-utilities","immer","@angular/flex-layout","@angular/material/dialog","@angular/router","@angular/cdk/overlay","@angular/material/list","@typescript-plus/fast-memoize-decorator","reflect-metadata","@angular/animations"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).coolon=t.coolon||{},t.coolon["angular-ui-powerups"]={}),t.ng.common,t.ng.core,t.ng.forms,t.ng.material.formField,t.ng.material.input,t.ng.material.select,t.ng.material.tabs,t.ng.platformBrowser.animations,t.ng.cdk.portal,t.ng.cdk.scrolling,t.ng.material.autocomplete,t.ng.material.button,t.ng.material.checkbox,t.ng.material.divider,t.ng.material.icon,t.ng.material.menu,t.ng.material.progressSpinner,t.ng.material.table,t.ng.material.tooltip,t.angularFontawesome,t.freeSolidSvgIcons,t.pectin,t.src,t._,t.typescriptStringEnums,t.ResizeObserver,t.typescriptUtilities,t.produce,t.ng.flexLayout,t.ng.material.dialog,t.ng.router,t.ng.cdk.overlay,t.ng.material.list,t.fastMemoizeDecorator,null,t.ng.animations)}(this,(function(t,e,n,o,i,r,a,s,c,l,u,p,d,f,h,m,y,g,v,b,C,I,w,P,M,x,R,S,A,O,T,D,E,F,_,k,V){"use strict";function L(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var N=L(M),H=L(R),j=L(A),U=function(t,e){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function B(t,e){function n(){this.constructor=t}U(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function q(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 W(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function z(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function G(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])}}}Object.create;function K(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 X(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(K(arguments[e]));return t}Object.create;var $=function(t){function e(e,n,o){var i=t.call(this)||this;return i.elementRef=e,i._commandEnabled=(new w.DelegatingValueModel).withDefault(!1),i._commandParameterProvided=!1,i.matControl=n||o,i}return B(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:!1,configurable:!0}),Object.defineProperty(e.prototype,"commandParameter",{get:function(){return this._commandParameter},set:function(t){this._commandParameterProvided=!0,this._commandParameter=t},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){w.assert.notNil(this.pectinCommand),this.pectinCommand instanceof w.UnaryCommand?this._commandParameterProvided||w.lang.illegalState("UnaryCommands require the command parameter to be specified."):this._commandParameterProvided&&w.lang.illegalState("command parameters are only supported by UnaryCommands")},e.prototype.ngAfterViewInit=function(){var t=this;(0,w.Dsl.disposeWith(this).when)(this._commandEnabled).changes((function(e){return t.updateEnabledState(e)}),{initialValue:"triggerChange"})},e.prototype.updateEnabledState=function(t){var e=this;this.matControl&&setTimeout((function(){e.matControl.disabled=!t}),0),t?(this.elementRef.nativeElement.removeAttribute("disabled"),"A"===this.elementRef.nativeElement.tagName&&this.elementRef.nativeElement.setAttribute("href","javascript:void")):(this.elementRef.nativeElement.setAttribute("disabled","disabled"),"A"===this.elementRef.nativeElement.tagName&&this.elementRef.nativeElement.removeAttribute("href"))},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.notifyClick=function(t){t.preventDefault(),t.stopPropagation(),this.pectinCommand.enabled.value?this.pectinCommand instanceof w.UnaryCommand?this.pectinCommand.withContext({event:t}).execute(this.commandParameter):this.pectinCommand.withContext({event:t}).execute():console.warn("disabled command clicked, ignoring.")},e}(w.GarbageCollector);$.decorators=[{type:n.Directive,args:[{selector:"[pectinCommand]"}]}],$.ctorParameters=function(){return[{type:n.ElementRef,decorators:[{type:n.Inject,args:[n.ElementRef]}]},{type:d.MatButton,decorators:[{type:n.Host},{type:n.Optional}]},{type:y.MatMenuItem,decorators:[{type:n.Host},{type:n.Optional}]}]},$.propDecorators={pectinCommand:[{type:n.Input}],commandParameter:[{type:n.Input}],notifyClick:[{type:n.HostListener,args:["click",["$event"]]}]};var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.prototype.ngOnDestroy=function(){this.dispose()},e}(w.GarbageCollector);Y.decorators=[{type:n.Directive}];var J=function(t){function e(e,n,o,i){var r=t.call(this)||this;return r.focusTargetElement=e,r.ngZone=n,r.focusContext=i,r.document=o,(0,w.Dsl.disposeWith(r).when)(r.focusContext.focused).changes((function(t){t&&!r.alreadyHasFocus()&&r.tryAndFocus()}),{initialValue:"triggerChangeUnlessNil"}),r}return B(e,t),e.prototype.onFocusIn=function(){this.focusContext.notifyFocusIn()},e.prototype.onFocusOut=function(){this.focusContext.notifyFocusOut()},e.prototype.alreadyHasFocus=function(){return this.isElementFocused(this.focusTarget)},e.prototype.isElementFocused=function(t){return this.document.activeElement===t},e.prototype.tryAndFocus=function(t){var e=this;void 0===t&&(t=5),this.modelShouldStillHaveFocus()&&this.canFocus()&&(this.alreadyHasFocus()||this.focusTarget.focus(),this.alreadyHasFocus()||(w.Logger.get(this).log("focus failed, trying "+t+" more times"),t>0?requestAnimationFrame((function(){e.tryAndFocus(t-1)})):w.Logger.get(this).warn("Tried to focus but gave up as the component wasn't enabled or visible.")))},Object.defineProperty(e.prototype,"focusTarget",{get:function(){return this.focusTargetElement},enumerable:!1,configurable:!0}),e.prototype.modelShouldStillHaveFocus=function(){return this.focusContext.focused.value},e.prototype.canFocus=function(){var t=this.focusTarget.getBoundingClientRect();return t.height>=0&&t.height>=0&&!this.focusTarget.disabled},e}(w.GarbageCollector);J.ctorParameters=function(){return[{type:HTMLElement},{type:n.NgZone,decorators:[{type:n.Inject,args:[n.NgZone]}]},{type:void 0,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]},{type:void 0}]};var Z=function(){function t(t,e){this.ngZone=t,this.document=e}return t.prototype.createBinding=function(t,e){return new J(t,this.ngZone,this.document,e)},t}();Z.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new Z(n.ɵɵinject(n.NgZone),n.ɵɵinject(e.DOCUMENT))},token:Z,providedIn:"root"}),Z.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],Z.ctorParameters=function(){return[{type:n.NgZone,decorators:[{type:n.Inject,args:[n.NgZone]}]},{type:void 0,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]}]};var Q=function(t){function e(e,n){var o=t.call(this)||this;return o.el=e,o.focusBindingFactory=n,o}return B(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)):w.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:!1,configurable:!0}),e}(Y);Q.decorators=[{type:n.Directive,args:[{selector:"[pectinFocusBinding]"}]}],Q.ctorParameters=function(){return[{type:n.ElementRef,decorators:[{type:n.Inject,args:[n.ElementRef]}]},{type:Z}]},Q.propDecorators={pectinFocusBinding:[{type:n.Input}],focusBindingTarget:[{type:n.Input}],onFocusIn:[{type:n.HostListener,args:["focusin"]}],onFocusOut:[{type:n.HostListener,args:["focusout"]}]};var tt=function(){};tt.decorators=[{type:n.NgModule,args:[{declarations:[$,Q],imports:[e.CommonModule,c.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule],exports:[$,Q]}]}];var et=function(t){function e(){return t.call(this)||this}return B(e,t),e.prototype.ngOnInit=function(){},e}(w.GarbageCollector);et.decorators=[{type:n.Component,args:[{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:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}"]}]}],et.ctorParameters=function(){return[]},et.propDecorators={busyModel:[{type:n.Input}],busy:[{type:n.Input}]},q([w.TrackExternal(),W("design:type",w.ValueModel)],et.prototype,"busyModel",void 0),q([w.StoreInValueModel("busyModel"),W("design:type",Boolean)],et.prototype,"busy",void 0);var nt=function(t){function e(){return t.call(this)||this}return B(e,t),e.prototype.ngOnInit=function(){},e}(Y);nt.decorators=[{type:n.Component,args:[{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-command-face *ngIf="addCardFace" [faces]="[addCardFace]"></aup-command-face>\n <aup-icon *ngIf="!addCardFace" 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:[":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:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-auto-rows:minmax(var(--resolved-card-min-height),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:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s 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}"]}]}],nt.ctorParameters=function(){return[]},nt.propDecorators={addCardCommand:[{type:n.Input}],addCardFace:[{type:n.Input}],addCardTemplate:[{type:n.ContentChild,args:["addCardTemplate"]}]},q([w.TrackExternal(),W("design:type",w.Command)],nt.prototype,"addCardCommand",void 0),function(t){!function(t){t.START="start",t.END="end"}(t.Position||(t.Position={})),t.Style=x.Enum({FLAT:"flat",STROKED:"stroked",RAISED:"raised"}),t.getColorOf=function(t){return N.default.isFunction(null==t?void 0:t.color)?t.color():void 0},t.getStyleOf=function(t){return N.default.isFunction(null==t?void 0:t.style)?t.style():void 0},t.getIconOf=function(t){return N.default.isFunction(null==t?void 0:t.icon)?t.icon():void 0},t.getIconPositionOf=function(t){return N.default.isFunction(null==t?void 0:t.iconPosition)?t.iconPosition():void 0},t.getTooltipOf=function(t){return N.default.isFunction(null==t?void 0:t.tooltip)?t.tooltip():void 0},t.getTextOf=function(t){return N.default.isFunction(null==t?void 0:t.text)?t.text():void 0};var e=function(){function e(t){this.face=t}return Object.defineProperty(e.prototype,"text",{get:function(){return t.getTextOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return t.getIconOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconPosition",{get:function(){return t.getIconPositionOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return t.getTooltipOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconPositionStart",{get:function(){return this.iconPosition===t.Position.START},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconPositionEnd",{get:function(){return this.iconPosition===t.Position.END},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return t.getColorOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return t.getStyleOf(this.face)},enumerable:!1,configurable:!0}),e}();q([P.Memoize(),W("design:type",Object),W("design:paramtypes",[])],e.prototype,"text",null),q([P.Memoize(),W("design:type",Object),W("design:paramtypes",[])],e.prototype,"icon",null),q([P.Memoize(),W("design:type",Object),W("design:paramtypes",[])],e.prototype,"iconPosition",null),q([P.Memoize(),W("design:type",Object),W("design:paramtypes",[])],e.prototype,"tooltip",null),q([P.Memoize(),W("design:type",Boolean),W("design:paramtypes",[])],e.prototype,"iconPositionStart",null),q([P.Memoize(),W("design:type",Boolean),W("design:paramtypes",[])],e.prototype,"iconPositionEnd",null),q([P.Memoize(),W("design:type",String),W("design:paramtypes",[])],e.prototype,"color",null),q([P.Memoize(),W("design:type",String),W("design:paramtypes",[])],e.prototype,"style",null),t.Adapter=e}(t.CommandFace||(t.CommandFace={}));var ot=function(e){function n(){var n=e.call(this)||this;n.facesModel=new w.MutableListModel,n.ignoreIcon=!1,n.ignoreText=!1,n.includeMissingIconInLayout=!1;var o=w.Dsl.disposeWith(n),i=o.chain;o.valueOf,o.before,o.when,o.after,o.observe,o.switchOn;n.faceAdapters=i(n.facesModel).map((function(e){return new t.CommandFace.Adapter(e)}));var r=n.faceAdapters.first();return n.activeIcon=r.pluck("icon"),n.activeColor=r.pluck("color"),n}return B(n,e),Object.defineProperty(n.prototype,"requiresMissingIconInLayout",{get:function(){return this.includeMissingIconInLayout&&!this.activeIcon.value},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.shouldIncludeIcon=function(t){return!this.ignoreIcon&&t.icon||this.includeMissingIconInLayout},n.prototype.hasIconStart=function(e){return this.shouldIncludeIcon(e)&&(!e.iconPosition||e.iconPosition===t.CommandFace.Position.START)},n.prototype.hasIconEnd=function(e){return this.shouldIncludeIcon(e)&&e.iconPosition===t.CommandFace.Position.END},Object.defineProperty(n.prototype,"color",{get:function(){return this.activeColor.value},enumerable:!1,configurable:!0}),n}(Y);ot.decorators=[{type:n.Component,args:[{selector:"aup-command-face",template:'<div class="face-container" *ngFor="let face of faceAdapters.value">\n <aup-icon *ngIf="hasIconStart(face)" [icon]="face.icon"></aup-icon>\n <span *ngIf="face.text">{{face.text}}</span>\n <aup-icon *ngIf="hasIconEnd(face)" [icon]="face.icon"></aup-icon>\n</div>\n',encapsulation:n.ViewEncapsulation.None,styles:["aup-command-face{--icon-gap:var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container:not(:first-child){visibility:hidden}aup-command-face>.face-container *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}aup-command-face.centered{justify-items:center}"]}]}],ot.ctorParameters=function(){return[]},ot.propDecorators={_rawFaces:[{type:n.Input,args:["faces"]}],ignoreIcon:[{type:n.Input}],ignoreText:[{type:n.Input}],includeMissingIconInLayout:[{type:n.Input}],requiresMissingIconInLayout:[{type:n.HostBinding,args:["class.hide-icon"]}],color:[{type:n.HostBinding,args:["attr.color"]}]},q([w.StoreInListModel("facesModel"),W("design:type",Array)],ot.prototype,"_rawFaces",void 0);var it=function(t){function e(e,n){var o=t.call(this)||this;return o.element=e,o.parent=n,n&&o.registerDisposable(o.parent.register(o)),o}return B(e,t),Object.defineProperty(e.prototype,"componentIndex",{get:function(){return this.computeComponentIndex()},enumerable:!1,configurable:!0}),e.prototype.computeComponentIndex=function(){for(var t=this.element.nativeElement,e=0;t=t.previousElementSibling;)e++;return e},e.prototype.getFace=function(){},e}(Y),rt=new n.InjectionToken("popup-component"),at=function(e){function n(n,o){var i=e.call(this,n,o)||this;i.CommandFace=t.CommandFace;var r=w.Dsl.disposeWith(i),a=r.chain;r.switchOn;return i.faces=a(i.command.busy).mapToList((function(t){return t?[i.busyFaceModel.value,i.faceModel.value]:[i.faceModel.value,i.busyFaceModel.value]}),{allowNil:!0,dependsOn:[i.faceModel,i.busyFaceModel]}).rejectNil(),i.activeFace=i.faces.first(),i.buttonStyle=a(i.activeFace).map((function(e){return t.CommandFace.getStyleOf(e)})),i.colorModel=a(i.activeFace).map((function(e){return t.CommandFace.getColorOf(e)})),i.iconOnly=i.faces.select((function(e){return N.default.isEmpty(t.CommandFace.getTextOf(e))&&!N.default.isEmpty(t.CommandFace.getIconOf(e))})).count().equals(i.faces.count()),i}return B(n,e),n.prototype.isActive=function(t){return this.activeFace.query().equals(t)},n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){},n.prototype.getFace=function(){return this.face},n}(it);at.decorators=[{type:n.Component,args:[{selector:"aup-command",template:'<ng-container *ngIf="iconOnly.value">\n <button mat-icon-button [pectinCommand]="command" [color]="colorModel.value" [class.busy]="command.busy.value">\n <aup-command-face class="centered" [faces]="faces.value"></aup-command-face>\n </button>\n</ng-container>\n<ng-container *ngIf="!iconOnly.value">\n <ng-container [ngSwitch]="buttonStyle.value">\n <ng-container *ngSwitchCase="CommandFace.Style.STROKED">\n <button mat-stroked-button [pectinCommand]="command" [color]="colorModel.value" [class.busy]="command.busy.value">\n <aup-command-face class="centered" [faces]="faces.value"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase="CommandFace.Style.RAISED">\n <button mat-raised-button [pectinCommand]="command" [color]="colorModel.value" [class.busy]="command.busy.value">\n <aup-command-face class="centered" [faces]="faces.value"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button mat-button [pectinCommand]="command" [color]="colorModel.value" [class.busy]="command.busy.value">\n <aup-command-face class="centered" [faces]="faces.value"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n</ng-container>\n',styles:[":host{display:inline-flex;flex-direction:row;justify-content:stretch}button{flex:1}"]}]}],at.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[rt]},{type:n.Optional}]}]},at.propDecorators={command:[{type:n.Input}],faceModel:[{type:n.Input}],face:[{type:n.Input}],busyFaceModel:[{type:n.Input}],busyFace:[{type:n.Input}]},q([w.TrackExternal(),W("design:type",w.Command)],at.prototype,"command",void 0),q([w.TrackExternal(),W("design:type",w.ValueModel)],at.prototype,"faceModel",void 0),q([w.StoreInValueModel("faceModel"),W("design:type",Object)],at.prototype,"face",void 0),q([w.TrackExternal(),W("design:type",w.ValueModel)],at.prototype,"busyFaceModel",void 0),q([w.StoreInValueModel("busyFaceModel"),W("design:type",Object)],at.prototype,"busyFace",void 0);var st=function(t){function e(){return t.call(this)||this}return B(e,t),e.prototype.ngOnInit=function(){},e}(Y);st.decorators=[{type:n.Component,args:[{selector:"aup-flex",template:""}]}],st.ctorParameters=function(){return[]};var ct=function(e){function n(n,o){var i=e.call(this,n,o)||this;i._unorderedChildren=new w.MutableListModel,i.faceModelDelegate=new w.DelegatingValueModel,i.xPosition="after",i.yPosition="below";var r=w.Dsl.disposeWith(i),a=r.chain;r.valueOf,r.before,r.when,r.after,r.observe,r.switchOn;return i.faceAdapterModel=a(i.faceModelDelegate).map((function(e){return new t.CommandFace.Adapter(e)})),i.children=a(i._unorderedChildren).sortBy("componentIndex"),i}return B(n,e),n.prototype.ngAfterContentChecked=function(){this._unorderedChildren.value=X(this._unorderedChildren.value)},Object.defineProperty(n.prototype,"faceAdapter",{get:function(){var e,n;return this.faceAdapterModel||console.error("Somehow faceAdapterModel is nil -- set a break point here and let me know what's going on"),null!==(n=null===(e=this.faceAdapterModel)||void 0===e?void 0:e.value)&&void 0!==n?n:new t.CommandFace.Adapter(void 0)},enumerable:!1,configurable:!0}),n.prototype.isRoot=function(){return!this.parent},n.prototype.register=function(t){var e=this;return this._unorderedChildren.push(t),w.Disposable.disposableThatRuns((function(){e._unorderedChildren.remove(t)}))},n.prototype.onCommandFired=function(){this.triggers.forEach((function(t){t.menuOpen&&t.closeMenu()}))},n.prototype.getFace=function(){return this.faceAdapter.face},n}(it);ct.decorators=[{type:n.Component,args:[{selector:"aup-abstract-popup-menu",template:""}]}],ct.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[rt]}]}]},ct.propDecorators={xPosition:[{type:n.Input}],yPosition:[{type:n.Input}],triggers:[{type:n.ViewChildren,args:[y.MatMenuTrigger]}]};var lt=function(t){function e(e,n){var o=t.call(this,e,n)||this;o.tooltipModel=new w.MutableValueModel;var i=w.Dsl.disposeWith(o),r=i.chain;i.valueOf,i.before,i.when,i.after,i.observe,i.switchOn;return o.faceModelDelegate.setDelegate(r(o.tooltipModel).map((function(t){return{icon:function(){return"mat:more_vert"},tooltip:function(){return t}}}),{allowNil:!0})),o}return B(e,t),Object.defineProperty(e.prototype,"face",{get:function(){return this.faceModelDelegate.value},enumerable:!1,configurable:!0}),e}(ct);lt.decorators=[{type:n.Component,args:[{selector:"aup-more-menu",template:'<div class="content" style="display: none">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf="isRoot()">\n <ng-container *ngIf="faceAdapter.text" [ngSwitch]="faceAdapter.style">\n <ng-container *ngSwitchCase="\'stroked\'">\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-stroked-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'raised\'">\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-raised-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu [parent]="this" (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf="!faceAdapter.text">\n <button matMenuTrigger\n mat-icon-button\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n >\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n</ng-container>\n',providers:[{provide:rt,useExisting:lt}]}]}],lt.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[rt]},{type:n.Optional},{type:n.SkipSelf}]}]},lt.propDecorators={tooltip:[{type:n.Input}]},q([w.StoreInValueModel("tooltipModel"),W("design:type",String)],lt.prototype,"tooltip",void 0),(t.TrackBy||(t.TrackBy={})).byIndex=function(t,e){return e},t.CommandContainer=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return B(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this.hasParent()?this.parent.depth+1:0},enumerable:!1,configurable:!0}),e.prototype.hasParent=function(){return!!this.parent},Object.defineProperty(e.prototype,"orientation",{get:function(){return e.Orientation.VERTICAL},enumerable:!1,configurable:!0}),e}(w.GarbageCollector),(t.CommandContainer||(t.CommandContainer={})).Orientation=x.Enum({HORIZONTAL:"horizontal",VERTICAL:"vertical"});var ut=function(e){function n(){return e.call(this)||this}return B(n,e),Object.defineProperty(n.prototype,"orientation",{get:function(){return t.CommandContainer.Orientation.HORIZONTAL},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngAfterContentInit=function(){},n.prototype.ngAfterViewInit=function(){},n}(t.CommandContainer);ut.decorators=[{type:n.Component,args:[{selector:"aup-tool-bar",template:'<div class="toolbar-content"><ng-content></ng-content></div>',encapsulation:n.ViewEncapsulation.None,styles:[":host{display:inline-block}.toolbar-content{display:inline-flex;flex-direction:row;align-items:center}.toolbar-content>aup-separator{align-self:stretch;margin:4px 0 4px 8px}.toolbar-content>aup-flex{flex:1}.toolbar-content>*+*{margin-left:8px}"]}]}],ut.ctorParameters=function(){return[]};var pt=function(e){function n(t,n,o){var i=e.call(this,t,n)||this;return i.containerParent=o,i}return B(n,e),n.prototype.isHorizontalContainer=function(){return this.containerParent instanceof ut&&this.containerParent.orientation===t.CommandContainer.Orientation.HORIZONTAL},n.prototype.ngOnInit=function(){},n}(it);pt.decorators=[{type:n.Component,args:[{selector:"aup-separator",template:'\n <mat-divider [vertical]="!isHorizontalContainer()"></mat-divider>',styles:[":host {\n }",":host(.horizontal-container) {\n display: inline-flex;\n flex-direction: row;\n align-items: stretch;\n }"]}]}],pt.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[rt]}]},{type:t.CommandContainer,decorators:[{type:n.Optional}]}]},pt.propDecorators={isHorizontalContainer:[{type:n.HostBinding,args:["class.horizontal-container"]}]};var dt=function(e){function o(){var o=e.call(this)||this;o._childList=new w.DelegatingListModel,o.commandFired=new n.EventEmitter,o.TrackBy=t.TrackBy;var i=w.Dsl.disposeWith(o),r=i.chain,a=i.valueOf,s=(i.before,i.when,i.after,i.observe,i.switchOn,r(o._childList).map((function(t){return t.getFace()})).rejectNil()),c=s.select((function(e){return!!t.CommandFace.getIconOf(e)})).count(),l=s.count();return o.hasMixedIcons=a.all(c.isGreaterThan(0),l.doesNotEqual(c)).areTruthy(),o}return B(o,e),Object.defineProperty(o.prototype,"parent",{get:function(){return this._parentComponent},set:function(t){this._parentComponent=t,this._childList.setDelegate(t.children)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"children",{get:function(){return this.parent.children.value},enumerable:!1,configurable:!0}),o.prototype.executeCommand=function(t){var e=this;this.isCommand(t)&&t.command.execute().finally((function(){e.commandFired.emit()}))},o.prototype.isEnabled=function(t){return!0},o.prototype.onCommandFired=function(){this.commandFired.emit(),this.triggers.forEach((function(t){t.menuOpen&&t.closeMenu()}))},o.prototype.isCommand=function(t){return t instanceof at},o.prototype.isPopupMenu=function(t){return t instanceof ct},o.prototype.isSeparator=function(t){return t instanceof pt},o.prototype.getTooltip=function(e){return this.isCommand(e)?t.CommandFace.getTooltipOf(e.face):void 0},o.prototype.getFaces=function(t){return this.isCommand(t)?t.faces.value:this.isPopupMenu(t)?[t.faceAdapter.face]:void 0},o}(Y);dt.decorators=[{type:n.Component,args:[{selector:"aup-popup-menu-renderer",template:'<mat-menu #menu [xPosition]="parent.xPosition" [yPosition]="parent.yPosition">\n <ng-template matMenuContent>\n <ng-container *ngFor="let child of children; trackBy: TrackBy.byIndex" >\n <button *ngIf="isCommand(child)"\n (click)="executeCommand(child)"\n [disabled]="!isEnabled(child)"\n [matTooltip]="getTooltip(child)"\n mat-menu-item>\n <aup-command-face [faces]="getFaces(child)"\n [includeMissingIconInLayout]="hasMixedIcons.value"></aup-command-face>\n </button>\n\n <ng-container *ngIf="isPopupMenu(child)">\n <button mat-menu-item\n matMenuTrigger\n [matMenuTriggerFor]="innerPanel.menuComponent"\n >\n <aup-command-face [faces]="getFaces(child)"\n [includeMissingIconInLayout]="hasMixedIcons.value"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #innerPanel\n [parent]="child"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <mat-divider *ngIf="isSeparator(child)"></mat-divider>\n\n </ng-container>\n\n </ng-template>\n</mat-menu>\n'}]}],dt.ctorParameters=function(){return[]},dt.propDecorators={parent:[{type:n.Input}],menuComponent:[{type:n.ViewChild,args:["menu",{static:!0}]}],commandFired:[{type:n.Output}],triggers:[{type:n.ViewChildren,args:[y.MatMenuTrigger]}]};var ft=function(t){function e(e,n){var o=t.call(this,e,n)||this,i=w.Dsl.disposeWith(o);i.chain,i.valueOf,i.before,i.when,i.after,i.observe,i.switchOn;return o}return B(e,t),e}(ct);ft.decorators=[{type:n.Component,args:[{selector:"aup-popup-menu",template:'<div class="content" style="display: none">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf="isRoot()">\n <ng-container *ngIf="faceAdapter.text" [ngSwitch]="faceAdapter.style">\n <ng-container *ngSwitchCase="\'stroked\'">\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-stroked-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'raised\'">\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-raised-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu [parent]="this" (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf="!faceAdapter.text">\n <button matMenuTrigger\n mat-icon-button\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n >\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n</ng-container>\n',providers:[{provide:rt,useExisting:ft}]}]}],ft.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[rt]},{type:n.Optional},{type:n.SkipSelf}]}]},ft.propDecorators={faceModel:[{type:n.Input}],face:[{type:n.Input}]},q([w.TrackExternal({delegateTo:"faceModelDelegate"}),W("design:type",w.ValueModel)],ft.prototype,"faceModel",void 0),q([w.StoreInValueModel("faceModel"),W("design:type",Object)],ft.prototype,"face",void 0);var ht=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();ht.decorators=[{type:n.Component,args:[{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}"]}]}],ht.ctorParameters=function(){return[]};var mt=function(t){function e(e){var n=t.call(this)||this;return n.focusManager=e,n.restoreFocusCommand=w.Command.create((function(){n.restoreFocus()})),n.tabIndex=-1,n}return B(e,t),e.prototype.ngOnInit=function(){},e.prototype.restoreFocus=function(){this.focusManager.restoreFocus()},e}(Y);mt.decorators=[{type:n.Component,args:[{selector:"aup-focus-container",template:"<ng-content></ng-content>\n",providers:[{provide:w.FocusManager}],styles:[":host{display:block}"]}]}],mt.ctorParameters=function(){return[{type:w.FocusManager,decorators:[{type:n.Self}]}]},mt.propDecorators={tabIndex:[{type:n.HostBinding,args:["attr.tabindex"]}]};var yt=function(t){function e(e,n,o){var i=t.call(this)||this;i.el=e,i.focusManager=n;var r=w.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 B(e,t),Object.defineProperty(e.prototype,"focusable",{get:function(){return this.focusContext?0:void 0},enumerable:!1,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:!1,configurable:!0}),e}(Y);yt.decorators=[{type:n.Component,args:[{template:""}]}],yt.ctorParameters=function(){return[{type:n.ElementRef},{type:w.FocusManager},{type:Z}]},yt.propDecorators={focusable:[{type:n.HostBinding,args:["attr.tabindex"]}],onFocus:[{type:n.HostListener,args:["focus"]}],onBlur:[{type:n.HostListener,args:["blur"]}]};var gt=function(t){function e(){var e=t.call(this)||this;e.onValueEditedListeners=new w.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 B(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:!1,configurable:!0}),e.prototype.hasErrors=function(){return!this.errorList.query().isEmpty()},Object.defineProperty(e.prototype,"errorList",{get:function(){return this.formValueModel.errorList},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstError",{get:function(){return this.hasErrors()?this.errorList.value[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusContext",{get:function(){return this.formValueModel.focusContext},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return this.dense?"never":this.userFloatLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showHint",{get:function(){return!this.dense&&!!this.hint},enumerable:!1,configurable:!0}),e.prototype.onValueEdited=function(t){return this.onValueEditedListeners.add(t)},e}(Y);gt.decorators=[{type:n.Component,args:[{template:""}]}],gt.ctorParameters=function(){return[]},gt.propDecorators={label:[{type:n.Input}],userFloatLabel:[{type:n.Input,args:["floatLabel"]}],hint:[{type:n.Input}],placeholder:[{type:n.Input}],dense:[{type:n.HostBinding,args:["class.dense"]},{type:n.Input}],focusCommand:[{type:n.Input,args:["command.focus"]}],blurCommand:[{type:n.Input,args:["command.blur"]}],enterCommand:[{type:n.Input,args:["command.enter"]}],escapeCommand:[{type:n.Input,args:["command.escape"]}],clickCommand:[{type:n.Input,args:["command.click"]}],focus:[{type:n.Output}],blur:[{type:n.Output}],enterKey:[{type:n.Output}],escapeKey:[{type:n.Output}],baseClassName:[{type:n.HostBinding,args:["class"]}],notifyClick:[{type:n.HostListener,args:["click"]}],notifyFocusIn:[{type:n.HostListener,args:["focusin"]}],notifyFocusOut:[{type:n.HostListener,args:["focusout"]}]};var vt=function(t){function e(){var e=t.call(this)||this;e.formValueModel=e.registerDisposable(new w.Form.DelegatingListModel),e.componentListModel=new w.MutableListModel,e.setValueIsInProgress=new w.Guard,e.valueChange=new n.EventEmitter;var o=w.Dsl.disposeWith(e),i=o.when,r=o.valueOf,a=o.chain,s=new w.Binding.Identity(e.formValueModel,e.componentListModel).writeRight(),c=r.any(e.setValueIsInProgress,a(s.direction).equals(w.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:c}),w.DebugContext.tag(e.formValueModel,e.constructor.name+".formValueModel"),e}return B(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 w.MutableListModel(t),e.listModel=e.listHolder)}))},enumerable:!1,configurable:!0}),e}(gt);vt.decorators=[{type:n.Component,args:[{template:""}]}],vt.ctorParameters=function(){return[]},vt.propDecorators={listModel:[{type:n.Input}],value:[{type:n.Input}],valueChange:[{type:n.Output}]},q([w.TrackExternal({delegateTo:"formValueModel"}),W("design:type",Object)],vt.prototype,"listModel",void 0);var bt=function(t){function e(){var e=t.call(this)||this;e.formValueModel=e.registerDisposable(new w.Form.DelegatingValueModel),e.setValueInProgress=new w.Guard,e.componentValueModel=new w.MutableValueModel,e.valueChange=new n.EventEmitter;var o=w.Dsl.disposeWith(e),i=o.when,r=o.chain,a=o.valueOf,s=new w.Binding.Identity(e.formValueModel,e.componentValueModel).writeRight(),c=a.any(e.setValueInProgress,r(s.direction).equals(w.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:c}),w.DebugContext.tag(e.formValueModel,e.constructor.name+".formValueModel"),e}return B(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 w.MutableValueModel(t),e.valueModel=e.plainValueHolder)}))},enumerable:!1,configurable:!0}),e}(gt);bt.decorators=[{type:n.Component,args:[{template:""}]}],bt.ctorParameters=function(){return[]},bt.propDecorators={valueModel:[{type:n.Input}],value:[{type:n.Input}],valueChange:[{type:n.Output}]},q([w.TrackExternal({delegateTo:"formValueModel"}),W("design:type",Object)],bt.prototype,"valueModel",void 0);var Ct=function(t){function e(){var e=t.call(this)||this;e.filterValue=new w.MutableValueModel,e.optionLabelFormat=function(t){return t&&e.optionLabel?t[e.optionLabel]:t};var n=w.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 N.default.isString(t)?t.toLowerCase():""})));return e.filteredOptions=o(e.optionsModel).select((function(t){return N.default.isEmpty(e.filterValue.value)||e.optionLabelFormat(t).toString().toLowerCase().includes(i.value)}),{dependsOn:i}),e}return B(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},e}(bt);Ct.decorators=[{type:n.Component,args:[{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%}"]}]}],Ct.ctorParameters=function(){return[]},Ct.propDecorators={optionsModel:[{type:n.Input}],options:[{type:n.Input}],optionLabel:[{type:n.Input}],allowNil:[{type:n.Input}],nilOptionTemplateRef:[{type:n.ContentChild,args:["nilOptionTemplate"]}],optionLabelFormat:[{type:n.Input}]},q([w.TrackExternal(),W("design:type",w.ListModel)],Ct.prototype,"optionsModel",void 0),q([w.StoreInListModel("optionsModel"),W("design:type",Array)],Ct.prototype,"options",void 0);var It=function(t){function e(){var e=t.call(this)||this;return e.color="accent",e.labelPosition="after",e}return B(e,t),e.prototype.ngOnInit=function(){},e}(bt);It.decorators=[{type:n.Component,args:[{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}"]}]}],It.ctorParameters=function(){return[]},It.propDecorators={color:[{type:n.Input}],labelPosition:[{type:n.Input}]};var wt=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 B(e,t),e.prototype.ngOnInit=function(){},e}(vt);wt.decorators=[{type:n.Component,args:[{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%}"]}]}],wt.ctorParameters=function(){return[]},wt.propDecorators={optionsModel:[{type:n.Input}],options:[{type:n.Input}],optionLabel:[{type:n.Input}],optionTemplateRef:[{type:n.ContentChild,args:["optionTemplate"]}],optionLabelFormat:[{type:n.Input}]},q([w.TrackExternal(),W("design:type",w.ListModel)],wt.prototype,"optionsModel",void 0),q([w.StoreInListModel("optionsModel"),W("design:type",Array)],wt.prototype,"options",void 0);var Pt=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 B(e,t),e.prototype.ngOnInit=function(){},e}(bt);Pt.decorators=[{type:n.Component,args:[{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 [attr.autocomplete]="autocomplete"\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 <aup-icon *ngIf="iconPrefix" matPrefix [icon]="iconPrefix"></aup-icon>\n</mat-form-field>\n',styles:[""]}]}],Pt.ctorParameters=function(){return[]},Pt.propDecorators={autocomplete:[{type:n.Input}],min:[{type:n.Input}],max:[{type:n.Input}],iconPrefix:[{type:n.Input}]};var Mt=function(t){function e(){return t.call(this)||this}return B(e,t),e.prototype.ngOnInit=function(){},e}(bt);Mt.decorators=[{type:n.Component,args:[{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 [attr.autocomplete]="autocomplete"\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:[""]}]}],Mt.ctorParameters=function(){return[]},Mt.propDecorators={autocomplete:[{type:n.Input}]};var xt=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 B(e,t),e.prototype.ngOnInit=function(){},e}(bt);xt.decorators=[{type:n.Component,args:[{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%}"]}]}],xt.ctorParameters=function(){return[]},xt.propDecorators={optionsModel:[{type:n.Input}],options:[{type:n.Input}],optionLabel:[{type:n.Input}],allowNil:[{type:n.Input}],optionTemplateRef:[{type:n.ContentChild,args:["optionTemplate"]}],nilOptionTemplateRef:[{type:n.ContentChild,args:["nilOptionTemplate"]}],optionLabelFormat:[{type:n.Input}]},q([w.TrackExternal(),W("design:type",w.ListModel)],xt.prototype,"optionsModel",void 0),q([w.StoreInListModel("optionsModel"),W("design:type",Array)],xt.prototype,"options",void 0);var Rt=function(t){function e(){var e=t.call(this)||this,n=w.Dsl.disposeWith(e),o=n.chain;n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn;return e.clearCommand=w.Command.create((function(){e.componentValueModel.value=null})),e.clearCommand.disableWhile(o.stringValue(e.componentValueModel).isBlank()),e}return B(e,t),e.prototype.ngOnInit=function(){},e}(bt);Rt.decorators=[{type:n.Component,args:[{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 [attr.autocomplete]="autocomplete"\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 <aup-icon *ngIf="iconPrefix" matPrefix [icon]="iconPrefix"></aup-icon>\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}"]}]}],Rt.ctorParameters=function(){return[]},Rt.propDecorators={autocomplete:[{type:n.Input}],enableClearModel:[{type:n.Input}],enableClear:[{type:n.Input}],iconPrefix:[{type:n.Input}]},q([w.TrackExternal({defaultValue:!1}),W("design:type",w.ValueModel)],Rt.prototype,"enableClearModel",void 0),q([w.StoreInValueModel("enableClearModel"),W("design:type",Boolean)],Rt.prototype,"enableClear",void 0);var St=function(t){function e(){var e=t.call(this)||this;return e.rows=2,e}return B(e,t),e.prototype.ngOnInit=function(){},e}(bt);St.decorators=[{type:n.Component,args:[{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}"]}]}],St.ctorParameters=function(){return[]},St.propDecorators={rows:[{type:n.Input}],cols:[{type:n.Input}]},t.IconComponent=function(){function t(){this.allowedPrefixes=x.Enum.values(t.IconPrefix).map((function(t){return t+":"})),this.iconPrefix=t.IconPrefix}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, expected one of ["+this.allowedPrefixes.join(",")+'] got "'+this.prefix+':"'},enumerable:!1,configurable:!0}),t}(),t.IconComponent.decorators=[{type:n.Component,args:[{selector:"aup-icon",template:'<ng-container [ngSwitch]="prefix">\n\n <mat-icon *ngSwitchCase="iconPrefix.SVG"\n [svgIcon]="suffix"\n class="svgIcon">\n </mat-icon>\n\n <mat-icon *ngSwitchCase="iconPrefix.MATERIAL">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase="iconPrefix.FONT_AWESOME"\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}.faIconWrapper,.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]}]}],t.IconComponent.propDecorators={icon:[{type:n.Input}]},(t.IconComponent||(t.IconComponent={})).IconPrefix=x.Enum({SVG:"svg",FONT_AWESOME:"fa",MATERIAL:"mat"});var At=function(){};At.decorators=[{type:n.Component,args:[{selector:"aup-noop",template:"",styles:[":host{display:block}"]}]}],At.ctorParameters=function(){return[]};var Ot=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();Ot.decorators=[{type:n.Component,args:[{selector:"aup-scroll-container",template:'<div class="container" cdkScrollable>\n <ng-content></ng-content>\n</div>\n',styles:[":host{flex-direction:column;min-height:0}.container,:host{display:flex;align-items:stretch}.container{flex-direction:column;flex:1;flex-basis:0;overflow-y:scroll}"]}]}],Ot.ctorParameters=function(){return[]};var Tt=function(){function t(){this.underline=!1}return t.prototype.ngOnInit=function(){},t}();Tt.decorators=[{type:n.Component,args:[{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)}"]}]}],Tt.ctorParameters=function(){return[]},Tt.propDecorators={underline:[{type:n.Input},{type:n.HostBinding,args:["class.underline"]}]};var Dt=function(){function t(t){this.templateRef=t}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),t}(),Et=function(t){function e(e){var n=t.call(this,e)||this;return n.isDefault=!1,n}return B(e,t),e.prototype.matches=function(t){return this.aupSwitchCaseWhen===t},e}(Dt);Et.decorators=[{type:n.Directive,args:[{selector:"[aupSwitchCaseWhen]",providers:[{provide:Dt,useExisting:Et}]}]}],Et.ctorParameters=function(){return[{type:n.TemplateRef}]},Et.propDecorators={aupSwitchCaseWhen:[{type:n.Input}]};var Ft=function(t){function e(e){var n=t.call(this,e)||this;return n.isDefault=!0,n}return B(e,t),e.prototype.matches=function(t){return!1},e}(Dt);Ft.decorators=[{type:n.Directive,args:[{selector:"[aupSwitchCaseDefault]",providers:[{provide:Dt,useExisting:Ft}]}]}],Ft.ctorParameters=function(){return[{type:n.TemplateRef}]};var _t=function(t){function e(e){var n=t.call(this)||this;return n.cdr=e,n.selectedIndex=0,n}return B(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=w.Dsl.disposeWith(this);n.chain;(0,n.when)(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){t.isDefault&&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}(Y);_t.decorators=[{type:n.Component,args:[{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}"]}]}],_t.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},_t.propDecorators={switchModel:[{type:n.Input}],switch:[{type:n.Input}],switchCaseOptions:[{type:n.ContentChildren,args:[Dt]}]},q([w.TrackExternal(),W("design:type",w.ValueModel)],_t.prototype,"switchModel",void 0),q([w.StoreInValueModel("switchModel"),W("design:type",Object)],_t.prototype,"switch",void 0);var kt,Vt=function(t,e){this.width=t,this.height=e},Lt=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 B(e,t),e.prototype.relativePositionOf=function(t){return t instanceof MouseEvent?new Lt(t.clientX-this.left,t.clientY-this.top):new Lt(t.x-this.left,t.y-this.top)},e}(Vt),(kt=t.Bounds||(t.Bounds={})).ofElement=function(t){var e=t.getBoundingClientRect();return new kt(e.top,e.left,e.width,e.height)};var Nt=function(e){function n(n,o){var i=e.call(this)||this;return i.elementRef=n,i.ngZone=o,i._boundsModel=new w.MutableValueModel(new t.Bounds(0,0,0,0)),i}return B(n,e),n.prototype.ngAfterViewInit=function(){var t=this,e=this.elementRef.nativeElement,n=new H.default((function(e,n){t.ngZone.run((function(){return t._updateBounds()}))}));n.observe(e),this.onDispose((function(){return n.disconnect()})),setTimeout((function(){return t._updateBounds()}))},Object.defineProperty(n.prototype,"boundsModel",{get:function(){return this._boundsModel.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),n.prototype.relativePositionOf=function(t){return this.bounds.relativePositionOf(t)},Object.defineProperty(n.prototype,"bounds",{get:function(){return this._boundsModel.value},enumerable:!1,configurable:!0}),n.prototype._updateBounds=function(){this._boundsModel.value=t.Bounds.ofElement(this.nativeElement)},n}(Y);Nt.decorators=[{type:n.Directive}],Nt.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]};var Ht=Symbol("aup-cell-header-renderer-component-ref"),jt=Symbol("aup-cell-renderer-component-ref"),Ut=Symbol("aup-cell-editor-component-ref"),Bt=Symbol("aup-cell-renderer-portal-component"),qt=Symbol("aup-cell-editor-portal-component"),Wt=function(){},zt=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.initialiseHeader=n,o}return B(e,t),e.prototype.initialiseHost=function(t,e){S.assert.isTruthy(t),t[Ht]=new l.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){this.initialiseHeader(e,t.column)},e}(Wt),Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e}(Wt),Kt=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.updateComponent=n,o}return B(e,t),e.prototype.initialiseHost=function(t,e){t[jt]=new l.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){t[Bt]=e,this.updateComponent(e,t.getRowData(),!0)},e.prototype.pushState=function(t){t[Bt]&&this.updateComponent(t[Bt],t.getRowData(),!1)},e}(Gt),Xt=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.initialiseEditorSession=n,o}return B(e,t),e.prototype.initialiseHost=function(t,e){S.assert.isTruthy(t),t[Ut]=new l.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){t[qt]=e,this.initialiseEditorSession(e,t.editSession)},e}(Wt),$t=function(t){function e(){return t.call(this)||this}return B(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){S.assert.isTruthy(t)},e.prototype.onPortalAttached=function(t,e){},e.prototype.pushState=function(t){t[jt]=this.createPortal(t.getRowData()),t.fillCell=this.fillCell,t.padChild=this.padChild},e.prototype.createPortal=function(t){return new l.TemplatePortal(this.templateRef,this.viewContainer,Object.assign(Object.assign({},t),{$implicit:t.row}))},e}(Gt),Yt=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!1,configurable:!0}),t}();Yt.decorators=[{type:n.Component,args:[{selector:"aup-default-cell-renderer",template:"{{value}}\n",styles:[""]}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={value:[{type:n.Input}]};var Jt=function(){};Jt.decorators=[{type:n.Component,args:[{selector:"aup-default-header-renderer",template:"{{headerText}}\n",styles:[""]}]}],Jt.ctorParameters=function(){return[]},Jt.propDecorators={headerText:[{type:n.Input}]};var Zt=function(t){function e(){var e=t.call(this)||this;return e.saveCommand=w.Command.create((function(){e.editSession.saveCommand.execute(e.editSession.form).then((function(t){t&&e.editSession.dispose()}))})),e.cancelCommand=w.Command.create((function(){e.editSession.dispose()})),e}return B(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:!1,configurable:!0}),e}(Y);Zt.decorators=[{type:n.Component,args:[{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}"]}]}],Zt.ctorParameters=function(){return[]},Zt.propDecorators={row:[{type:n.Input}],editRowCommand:[{type:n.Input}],editSession:[{type:n.Input}]},q([w.TrackExternal(),W("design:type",w.Command)],Zt.prototype,"editRowCommand",void 0);var Qt=function(t){function e(){var e=t.call(this)||this;return e.selectCommand=w.Command.create((function(){var t;null===(t=e.selectionModel)||void 0===t||t.selectCommand.execute(e.row)})),e}return B(e,t),e.prototype.isSelected=function(){var t;return null===(t=this.selectionModel)||void 0===t?void 0:t.isSelected(this.row)},e}(Y);Qt.decorators=[{type:n.Component,args:[{selector:"aup-select-cell-renderer",template:'<mat-checkbox [pectinCommand]="selectCommand" [checked]="isSelected()"></mat-checkbox>\n',styles:[""]}]}],Qt.ctorParameters=function(){return[]},Qt.propDecorators={row:[{type:n.Input}]};var te=function(t){function e(){var e=t.call(this)||this;return e.selectCommand=w.Command.create((function(){e.selectionModel.toggleAllCommand.execute()})),e}return B(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.prototype.isVisible=function(){return this.enableHeaderControls&&this.selectionModel.getDelegate()instanceof w.MultipleSelectionModel},e}(Y);te.decorators=[{type:n.Component,args:[{selector:"aup-select-header-cell-renderer",template:'<mat-checkbox *ngIf="isVisible()" [pectinCommand]="selectCommand" [checked]="isSelected()" [indeterminate]="this.isIntermediate()"></mat-checkbox>\n',styles:[""]}]}],te.ctorParameters=function(){return[]};var ee=function(){},ne=Symbol("aup-cell-renderer:row-data-cache"),oe=function(){function t(t,e){this.columnId=t,this.textPropertiesProvider=e,this._selectRowOnClick=void 0,this._flex=!1,this._visibleModel=(new w.DelegatingValueModel).withDefault(!0),this.installHeaderRenderer(),this.dasherisedColumnId=S.Stringy.from(t).dasherize().toString()}return t.prototype.installHeaderRenderer=function(){this.cellHeaderRenderer(Jt,(function(t,e){t.headerText=e.getHeaderText()}))},t.prototype.getHeaderText=function(){var t;return(null===(t=this.getColumnTextProperties())||void 0===t?void 0:t.headerText())||this.getDefaultHeaderText()},t.prototype.isVisible=function(){return this.visible.value},Object.defineProperty(t.prototype,"visible",{get:function(){return this._visibleModel.readonly},enumerable:!1,configurable:!0}),t.prototype.visibleWhile=function(t){return this._visibleModel.setDelegate(t),this},t.prototype.getDefaultHeaderText=function(){return this.columnId},t.prototype.getColumnTextProperties=function(){return this._columnTextProperties||this.textPropertiesProvider()},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 zt(t,e)),this},t.prototype.flex=function(t){void 0===t&&(t=!0),this._flex=t},t.prototype.isFlex=function(){return this._flex},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},t}();q([P.Memoize(),W("design:type",Function),W("design:paramtypes",[]),W("design:returntype",String)],oe.prototype,"getHeaderText",null),q([P.Memoize(),W("design:type",Function),W("design:paramtypes",[]),W("design:returntype",Object)],oe.prototype,"getColumnTextProperties",null);var ie=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(Yt),i}return B(e,t),e.prototype.cellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Kt(t,(function(t,o,i){i&&(N.default.isFunction(e)?e(t):N.default.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t)),t.value=n._format(o.row[n.property]),!N.default.isFunction(e)&&N.default.isFunction(null==e?void 0:e.onRowUpdate)&&e.onRowUpdate(t,o.row)}))),this},e.prototype.liveEditCellRenderer=function(t,e){return this.mutableCellRenderer(t,e)},e.prototype.mutableCellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Kt(t,(function(t,o,i){t[ne]=o.row;var r=!1;i&&(N.default.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t),t.onValueEdited((function(n,o){r||e.onValueEdit(t[ne],n,o)}))),r=!0,t.value=o.row[n.property],r=!1,!N.default.isFunction(e)&&N.default.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=N.default.isFunction(e)?e:n;return this.configureCellEditor(new Xt(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 S.assert.isFunction(t),this._format=t,this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(oe),re=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(Yt),i}return B(e,t),e.prototype.cellRenderer=function(t){var e=this;return this.configureCellRenderer(new Kt(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=N.default.isFunction(e)?e:n;return this.configureCellEditor(new Xt(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 S.assert.isFunction(t),this._format=t,this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(oe),ae=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.getValue=o,i.cellRenderer(Yt),i}return B(e,t),e.prototype.cellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new Kt(t,(function(t,o,i){i&&(N.default.isFunction(e)?e(t):N.default.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t)),t.value=n.getValue(o.row),!N.default.isFunction(e)&&N.default.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}(oe),se=function(t){function e(e,n,o){var i=t.call(this,e,o)||this;return i.cellRenderer(Zt),i}return B(e,t),e.prototype.cellRenderer=function(t){return this.configureCellRenderer(new Kt(t,(function(t,e){t.row=e.row,t.editSession=e.editSession,t.editRowCommand=e.editRowCommand}))),this},e.prototype.getDefaultHeaderText=function(){return""},e}(oe),ce=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.config=new $t,o.configureCellRenderer(o.config),o}return B(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}(oe),le=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i._enableHeaderControls=!0,i.selectionModel=w.DelegatingSelectionModel.createDelegate(),i.hasSelectionModel=new w.MutableValueModel(!1),i.selectOnRowClick(!1),i.cellHeaderRenderer(te,(function(t){t.selectionModel=i.selectionModel,t.enableHeaderControls=i._enableHeaderControls})),i.configureCellRenderer(new Kt(Qt,(function(t,e){t.row=e.row,t.selectionModel=i.selectionModel}))),i.setSelectionModel(o),i.visibleWhile(i.hasSelectionModel),i}return B(e,t),e.prototype.setSelectionModel=function(t){this.selectionModel.setDelegate(t),this.hasSelectionModel.value=!!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.prototype.isSelected=function(t){return this.selectionModel.isSelected(t)},e}(oe),ue=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 w.MutableValueModel,r.liveRowValue=r._liveRowValue.readonly,r.form.load(n),r._liveRowValue.value=n,r.form.onEdit((function(){r._liveRowValue.value=j.default(r._liveRowValue.value,(function(t){r.form.writeDirtyStateTo(t)}))})),r}return B(e,t),e}(w.GarbageCollector),pe=function(t,e){this.className=t,this.matches=e},de=function(t){function e(){var e=t.apply(this,X(arguments))||this;return e.columns=[],e}return B(e,t),e.prototype.addColumn=function(t){var e=this;this.runInTransaction((function(){e.columns.push(t),e.trackSource(t.visible)}))},e.prototype.doComputeValue=function(){return this.columns.filter((function(t){return t.visible.value}))},e}(w.AbstractComputedListModel);t.AbstractTableModel=function(t){function e(e){var n=t.call(this)||this;n.sourceOfTruth=e,n._columns=new w.MutableListModel,n._visibleColumnTracker=new de,n._editorSessions=new w.MutableListModel,n.rowClassNamePredicates=[],n.rowClickListeners=new w.EventListenerList,n._createForm=function(t){return new w.DirtyTrackingForm},n.trackBy=function(t,e){return n.identityOf?n.identityOf(e):t},n.identityOf=e.identityOf;var o=w.Dsl.disposeWith(n),i=o.chain;o.valueOf,o.before,o.when,o.after,o.observe,o.switchOn;return n._columnsById=i(n._columns).indexBy("columnId"),n._rowsBeingEdited=new w.MutableListModel([],{identifiedWith:n.identityOf}),n._editorSessionByRowId=i(n._editorSessions).indexBy("rowId"),n.editing=i(n._editorSessions).count().isGreaterThan(0),n.dataSource=i(n.sourceOfTruth).replaceAll(n.rowsBeingEdited),n.firstEditableColumn=i(n.columns).select((function(t){return t.hasEditorPortal()})).first(),n.hasColumnsWithRowSelectionExplicitlyEnabled=i(n._columns).findIndex((function(t){return t.isRowSelectionExplicitlyEnabled()})).isGreaterThanOrEqualTo(0),n.firstVisibleColumn=i(n._visibleColumnTracker).first(),n.lastVisibleColumn=i(n._visibleColumnTracker).last(),n}return B(e,t),Object.defineProperty(e.prototype,"rowsBeingEdited",{get:function(){return this._rowsBeingEdited.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleColumns",{get:function(){return this._visibleColumnTracker.readonly},enumerable:!1,configurable:!0}),e.prototype.pluck=function(t,e){var n=this,o=(null==e?void 0:e.columnId)||t.toString();return this.addColumn(new ie(o,t,(function(){return n.getColumnTextProperties(o)})))},e.prototype.pluckList=function(t,e){var n=this,o=(null==e?void 0:e.columnId)||t.toString();return this.addColumn(new re(o,t,(function(){return n.getColumnTextProperties(o)})))},e.prototype._addSelectionColumn=function(t){var e=this;w.assert.isNil(this.selectionColumnModel);var n="selection-column";return this.selectionColumnModel=new le(n,(function(){return e.getColumnTextProperties(n)}),t),this.addRowClass("aup-row-selected",(function(t){return e.selectionColumnModel.isSelected(t)})),this.addColumn(this.selectionColumnModel)},e.prototype.addEditControls=function(t){var e=this;this.saveCommand=t;var n="editControls";return this.addColumn(new se(n,t,(function(){return e.getColumnTextProperties(n)})))},e.prototype.addCustomColumn=function(t,e){var n=this;return this.addColumn(new ae(t,(function(){return n.getColumnTextProperties(t)}),e))},e.prototype.addComponentColumn=function(t,e,n){var o=this;return this.addColumn(new ae(t,(function(){return o.getColumnTextProperties(t)}),(function(t){return t}))).cellRenderer(e,n)},e.prototype.addTemplateColumn=function(t){var e=this;return this.addColumn(new ce(t,(function(){return e.getColumnTextProperties(t)})))},e.prototype.addRowClass=function(t,e){this.rowClassNamePredicates.push(new pe(t,e))},e.prototype.getRowClasses=function(t){var e=[];return this.rowClassNamePredicates.forEach((function(n){n.matches(t)&&e.push(n.className)})),e},e.prototype.useFormFactory=function(t){return this._createForm=t,this},e.prototype.addColumn=function(t){return this._columnsById.get(t.columnId)?w.lang.illegalState("Column with id="+t.columnId+" already exists"):(this._columns.push(t),this._visibleColumnTracker.addColumn(t)),t},e.prototype.columnTextProperties=function(t){this._columnTextPropertiesLookup=t},e.prototype.getColumnTextProperties=function(t){return this._columnTextPropertiesLookup?this._columnTextPropertiesLookup[t]:void 0},e.prototype.startEditSession=function(t){var e=this,n=this.identityOf(t);if(this._rowsBeingEdited.query().indexOf(t)>-1)return w.lang.illegalState("Row with id="+n+" already being edited");var o=new ue(n,t,this._createForm(t),this.saveCommand);return(0,w.Dsl.disposeWith(o).when)(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},e.prototype.getEditSessionFor=function(t){return this._editorSessionByRowId.get(this.identityOf(t))},e.prototype.cancelAllEditorSessions=function(){var t=this;this._editorSessions.runInTransaction((function(e){t._rowsBeingEdited.runInTransaction((function(){e.value.forEach((function(t){return t.dispose()}))}))}))},e.prototype.isRowSelectionEnabledFor=function(t){var e;return this.selectionColumnModel&&(null!==(e=t.isRowSelectionEnabled())&&void 0!==e?e:this.isRowSelectionEnabledByDefault())},e.prototype.isRowSelectionEnabledByDefault=function(){return this.selectionColumnModel&&this.selectionColumnModel.isRowSelectionEnabledByDefault()},e.prototype.isRowSelectionEnabled=function(){return this.hasColumnsWithRowSelectionExplicitlyEnabled.value||this.isRowSelectionEnabledByDefault()},e.prototype.isHoverEnabled=function(){return this.isRowSelectionEnabled()||this.rowClickListeners.listenerCount>0},e.prototype.isCursorEnabled=function(t){return this.isRowSelectionEnabledFor(t)||this.rowClickListeners.listenerCount>0},e.prototype.selectRow=function(t){var e;null===(e=this.selectionColumnModel)||void 0===e||e.selectRow(t)},e.prototype.onRowClicked=function(t){return this.rowClickListeners.add(t)},e.prototype._notifyCellClicked=function(t,e){this.isRowSelectionEnabledFor(t)&&this.selectRow(e),this.rowClickListeners.fire((function(t){return t(e)}))},e}(w.GarbageCollector),t.AbstractTableModel=q([w.TrackExternal.Strategy(new w.TrackExternal.OneTimeBinding),W("design:paramtypes",[w.ListModel])],t.AbstractTableModel);var fe=function(t){function e(e,n){var o=t.call(this,e,n)||this;o.enableScrolling=!1,o.headerHeight=new w.MutableValueModel(56),o.rowHeight=new w.MutableValueModel(48);var i=w.Dsl.disposeWith(o),r=i.chain,a=(i.when,r(o.showHeaderModel).map((function(t){return t?o.headerHeight.value:0}),{dependsOn:o.headerHeight}));return o.visibleRowCount=r(o.boundsModel).map((function(t){var e=(t.height-a.value)/o.rowHeight.value;return e<1?0:Math.floor(e)}),{dependsOn:[a,o.rowHeight],postponeWhile:r(o.boundsModel).pluckNumeric("height").isLessThan(1)}),o}return B(e,t),Object.defineProperty(e.prototype,"hideHeader",{get:function(){return!this.showHeader},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var t=w.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 ce&&r.setTemplate(e,n,o,i)},e.prototype.notifyCellClicked=function(t,e){this.tableModel._notifyCellClicked(t,e)},e.prototype.isFirstVisibleColumn=function(t){var e;return(null===(e=this.tableModel.firstVisibleColumn.query().value)||void 0===e?void 0:e.columnId)===t},e.prototype.isLastVisibleColumn=function(t){var e;return(null===(e=this.tableModel.lastVisibleColumn.query().value)||void 0===e?void 0:e.columnId)===t},e.prototype.getColumnClasses=function(t){var e=["aup-col-"+this.columnsById.get(t).dasherisedColumnId];return this.isFirstVisibleColumn(t)&&e.push("first-visible-column"),this.isLastVisibleColumn(t)&&e.push("last-visible-column"),e},e}(Nt);fe.decorators=[{type:n.Component,args:[{selector:"aup-table",template:'<div class="scroll-container">\n <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"\n matColumnDef="{{column.columnId}}">\n <th mat-header-cell *matHeaderCellDef [class.flex]="column.isFlex()" [class.hide]="!column.isVisible()">\n <aup-table-header-cell-renderer [column]="column"\n [attr.column-index]="index"\n [attr.column-id]="column.columnId"\n [class]="getColumnClasses(column.columnId)"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef="let row" (click)="notifyCellClicked(column, row)"\n [class.enable-cursor]="tableModel.isCursorEnabled(column)"\n [class.flex]="column.isFlex()"\n [class.hide]="!column.isVisible()"\n >\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]="getColumnClasses(column.columnId)"\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)" [class.enable-hover]="tableModel.isHoverEnabled()"\n [attr.trackBy]="tableModel.trackBy(i, row)"\n ></tr>\n\n </table>\n</div>\n',styles:[":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:scroll;display:flex;flex-direction:column;align-items:stretch}"]}]}],fe.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},fe.propDecorators={tableModel:[{type:n.Input}],showHeaderModel:[{type:n.Input}],showHeader:[{type:n.Input}],enableScrolling:[{type:n.Input},{type:n.HostBinding,args:["class.enable-scrolling"]}],hideHeader:[{type:n.HostBinding,args:["class.hide-header"]}]},q([w.TrackExternal(),W("design:type",t.AbstractTableModel)],fe.prototype,"tableModel",void 0),q([w.TrackExternal({defaultValue:!0}),W("design:type",w.ValueModel)],fe.prototype,"showHeaderModel",void 0),q([w.StoreInValueModel("showHeaderModel"),W("design:type",Boolean)],fe.prototype,"showHeader",void 0);var he=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;w.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}();he.decorators=[{type:n.Directive,args:[{selector:"[aupColumnTemplate]"}]}],he.ctorParameters=function(){return[{type:fe},{type:n.TemplateRef},{type:n.ViewContainerRef}]},he.propDecorators={aupColumnTemplate:[{type:n.Input}],aupColumnTemplateColumnId:[{type:n.Input}],aupColumnTemplateFillCell:[{type:n.Input}],aupColumnTemplateAutoPadChild:[{type:n.Input}]};var me=function(t){function e(){var e=t.call(this)||this;return e.defaultClassNames="aup-cell-renderer",e.fillCell=!1,e.padChild=!1,e.editRowCommand=w.Command.create((function(){e.tableModel.startEditSession(e.row)})),e}return B(e,t),e.prototype.ngOnInit=function(){var t=w.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[jt]},e.prototype.getEditorPortal=function(){return this[Ut]},e.prototype.getRowData=function(){return{row:this.row,editSession:this.editSession,editRowCommand:this.editRowCommand}},e}(Y);me.decorators=[{type:n.Component,args:[{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:[""]}]}],me.ctorParameters=function(){return[]},me.propDecorators={row:[{type:n.Input}],column:[{type:n.Input}],editSession:[{type:n.Input}],tableModel:[{type:n.Input}],defaultClassNames:[{type:n.HostBinding,args:["class"]}],fillCell:[{type:n.HostBinding,args:["class.fillCell"]}],padChild:[{type:n.HostBinding,args:["class.padChild"]}]};var ye=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[Ht]},t}();ye.decorators=[{type:n.Component,args:[{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%}"]}]}],ye.ctorParameters=function(){return[]},ye.propDecorators={column:[{type:n.Input}],defaultClassNames:[{type:n.HostBinding,args:["class"]}]};var ge=function(t,e){this.factory=t,this.face=e},ve=function(t){function e(){var e=t.call(this)||this;return e.actions=[],e.moreActions=[],e}return B(e,t),e.prototype.registerAction=function(t,e){this.actions.push(new ge(t,e))},e.prototype.registerMoreAction=function(t,e){this.moreActions.push(new ge(t,e))},e.prototype.ngOnInit=function(){},e.prototype.createMoreMenuCommand=function(t,e){var n=this,o=w.Dsl.disposeWith(this).when,i=t.factory.create(e);return o(i.busy).becomesFalsey((function(){n.closeMoreMenu()})),i},e.prototype.closeMoreMenu=function(){this.menu.closeMenu()},e}(Y);ve.decorators=[{type:n.Component,args:[{selector:"aup-table-row-menu",template:'\n <aup-tool-bar>\n <aup-command *ngFor="let action of actions" [command]="action.factory.create(value)"\n [face]="action.face"></aup-command>\n </aup-tool-bar>\n <ng-container *ngIf="moreActions.length > 0">\n <aup-more-menu>\n <aup-command *ngFor="let action of moreActions" [command]="action.factory.create(value)"\n [face]="action.face"></aup-command>\n </aup-more-menu>\n </ng-container>\n ',styles:[":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]}]}],ve.ctorParameters=function(){return[]},ve.propDecorators={value:[{type:n.Input}],menu:[{type:n.ViewChild,args:[y.MatMenuTrigger]}]};var be;t.TreeInheritanceIconComponent=function(){function t(){this.pixelWidth=24,this.pixelHeight=48}return Object.defineProperty(t.prototype,"heightOffset",{get:function(){return 60-this.pixelHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewBox",{get:function(){return"0 "+this.heightOffset+" "+this.pixelWidth+" "+(this.pixelHeight-this.heightOffset)},enumerable:!1,configurable:!0}),t.prototype.hasHead=function(){return t.HAS_HEAD.includes(this.type)},t.prototype.hasTerminal=function(){return t.HAS_TERMINAL.includes(this.type)},t.prototype.hasLeadIn=function(){return t.HAS_LEAD_IN.includes(this.type)},t.prototype.hasTail=function(){return t.HAS_TAIL.includes(this.type)},t}(),t.TreeInheritanceIconComponent.decorators=[{type:n.Component,args:[{selector:"aup-tree-inheritance-icon",template:'<svg xmlns="http://www.w3.org/2000/svg" [attr.width]="pixelWidth" [attr.height]="pixelHeight" [attr.viewBox]="viewBox">\n <g fill="none" fill-rule="evenodd">\n <rect *ngIf="hasHead()" width="1" height="32.5" x="11.5" fill="currentColor"/>\n <rect *ngIf="hasTail()" width="1" height="32.5" x="11.5" y="31.5" fill="currentColor"/>\n\n <rect *ngIf="hasLeadIn()" width="12" height="1" y="31.5" fill="currentColor"/>\n <rect *ngIf="hasTerminal()" width="12" height="1" x="12" y="31.5" fill="currentColor"/>\n </g>\n</svg>\n',styles:[":host{position:relative;color:inherit}svg{color:var(--line-color);display:block}"]}]}],t.TreeInheritanceIconComponent.ctorParameters=function(){return[]},t.TreeInheritanceIconComponent.propDecorators={type:[{type:n.Input},{type:n.HostBinding,args:["class"]}],pixelWidth:[{type:n.Input}],pixelHeight:[{type:n.Input}]},(be=t.TreeInheritanceIconComponent||(t.TreeInheritanceIconComponent={})).Type=x.Enum({ICON_BLANK:"blank",ICON_PARENT:"parent",ICON_INHERITED_TERMINAL:"inherited_terminal",ICON_INHERITED_THROUGH_TERMINAL:"inherited_through_terminal",ICON_THROUGH:"through"}),be.HAS_LEAD_IN=[be.Type.ICON_PARENT],be.HAS_TERMINAL=[be.Type.ICON_INHERITED_TERMINAL,be.Type.ICON_INHERITED_THROUGH_TERMINAL,be.Type.ICON_PARENT],be.HAS_HEAD=[be.Type.ICON_THROUGH,be.Type.ICON_INHERITED_TERMINAL,be.Type.ICON_INHERITED_THROUGH_TERMINAL],be.HAS_TAIL=[be.Type.ICON_PARENT,be.Type.ICON_THROUGH,be.Type.ICON_INHERITED_THROUGH_TERMINAL];var Ce=function(e){function n(){var n=e.call(this)||this;n.iconTypes=[],n.nodeModel=new w.MutableValueModel;var o=w.Dsl.disposeWith(n).chain;return n.iconList=o(n.nodeModel).mapToList((function(e){var n=e.ancestors().slice(1).map((function(e){return e.isLastChild()?t.TreeInheritanceIconComponent.Type.ICON_BLANK:t.TreeInheritanceIconComponent.Type.ICON_THROUGH}));return e.isRoot()||n.push(e.isLastChild()?t.TreeInheritanceIconComponent.Type.ICON_INHERITED_TERMINAL:t.TreeInheritanceIconComponent.Type.ICON_INHERITED_THROUGH_TERMINAL),n})),n}return B(n,e),n.prototype.ngOnInit=function(){var t=this,e=w.Dsl.disposeWith(this).chain;this.canExpand=e(this.nodeModel).map((function(e){return e.hasChildren()&&t.expansionModel.isCollapsed(e)}),{dependsOn:this.expansionModel.isExpandedPredicate}),this.canCollapse=e(this.nodeModel).map((function(e){return e.hasChildren()&&!t.expansionModel.isCollapsed(e)}),{dependsOn:this.expansionModel.isExpandedPredicate}),this.iconModel=e(this.nodeModel).map((function(e){return t.node.isLeaf()?void 0:t.iconFactory(e,t.expansionModel.isExpanded(t.node))}),{dependsOn:this.expansionModel.isExpandedPredicate})},Object.defineProperty(n.prototype,"isRoot",{get:function(){return this.node.isRoot()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isLeaf",{get:function(){return this.node.isLeaf()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"node",{get:function(){return this.nodeModel.value},enumerable:!1,configurable:!0}),n.prototype.expandOrCollapse=function(t){this.expansionModel.isCollapsed(t)?this.expansionModel.expand(t):this.expansionModel.collapse(t)},n}(Y);Ce.decorators=[{type:n.Component,args:[{selector:"aup-tree-label-cell-renderer",template:'<div class="tree-icons">\n <aup-tree-inheritance-icon *ngFor="let iconClass of iconList.value" [type]="iconClass"></aup-tree-inheritance-icon>\n <aup-icon *ngIf="iconModel.value"\n [icon]="iconModel.value"\n [class.clickable]="canExpand.value || canCollapse.value"\n (click)="expandOrCollapse(node)" ></aup-icon>\n</div>\n<div class="label">{{label}}</div>\n',styles:[":host{--line-color:#ddd;--node-color:#999;display:inline-flex;flex-direction:row;align-items:stretch}:host div.label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;padding-left:6px}:host div.tree-icons{display:grid;grid-auto-flow:column;grid-auto-columns:auto;grid-template-rows:1fr;align-items:stretch;justify-content:stretch}:host div.tree-icons aup-icon{align-self:center;color:var(--node-color)}:host div.tree-icons aup-icon.clickable{cursor:pointer}:host div.tree-icons aup-icon,:host div.tree-icons aup-tree-inheritance-icon{margin-left:4px}"]}]}],Ce.ctorParameters=function(){return[]},Ce.propDecorators={value:[{type:n.Input}],label:[{type:n.Input}],iconFactory:[{type:n.Input}],expansionModel:[{type:n.Input}],isRoot:[{type:n.HostBinding,args:["class.root"]}],isLeaf:[{type:n.HostBinding,args:["class.leaf"]}]},q([w.StoreInValueModel("nodeModel"),W("design:type",Object)],Ce.prototype,"value",void 0);var Ie,we,Pe=function(){function t(t){this.identityOf=t,this.collapsedIds=new Set,this._isExpandedPredicate=new w.MutableValueModel((function(){return!0})),this.updatePredicate()}return Object.defineProperty(t.prototype,"isExpandedPredicate",{get:function(){return this._isExpandedPredicate.readonly},enumerable:!1,configurable:!0}),t.prototype.expand=function(t){this.isCollapsed(t)&&(this.collapsedIds.delete(this.identityOf(t.node)),this.updatePredicate())},t.prototype.collapse=function(t){this.isCollapsed(t)||(this.collapsedIds.add(this.identityOf(t.node)),this.updatePredicate())},t.prototype.canExpand=function(t){return t.hasChildren()&&this.isCollapsed(t)},t.prototype.canCollapse=function(t){return t.hasChildren()&&!this.isCollapsed(t)},t.prototype.isCollapsed=function(t){return this.collapsedIds.has(this.identityOf(t.node))},t.prototype.isExpanded=function(t){return!this.isCollapsed(t)},t.prototype.ensureAncestorsAndSelfVisible=function(t){var e=this;t.ancestors().map((function(n){return e.identityOf(t.node)})).forEach((function(t){return e.collapsedIds.delete(t)})),this.updatePredicate()},t.prototype.updatePredicate=function(){var t=this;this._isExpandedPredicate.value=function(e){return!t.collapsedIds.has(t.identityOf(e.node))}},t}(),Me=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.expansionModel=o,i.iconFactory=function(t,e){return e?"mat:folder_open":"mat:folder"},i.cellRenderer(Ce),i}return B(e,t),e.prototype.pluck=function(t){this.labelProperty=t},e.prototype.addIcon=function(t){this.iconFactory=t},e.prototype.cellRenderer=function(t){var e=this;return this.configureCellRenderer(new Kt(t,(function(t,n,o){o&&(t.expansionModel=e.expansionModel),t.value=n.row,t.label=N.default.isNil(e.labelProperty)?void 0:n.row[e.labelProperty],t.iconFactory=e.iconFactory}))),this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(oe);t.SelfAndDescendantsVisitor=function(){function t(){}return t.prototype.visit=function(t){this.onVisit(t),this.shouldVisitChildrenOf(t)&&t.visitChildren(this)},t.prototype.shouldVisitChildrenOf=function(t){return!0},t}(),Ie=t.SelfAndDescendantsVisitor||(t.SelfAndDescendantsVisitor={}),we=function(t){function e(e){var n=t.call(this)||this;return n.callback=e,n}return B(e,t),e.prototype.onVisit=function(t){this.callback(t)},e}(Ie),Ie.Each=we;var xe=function(){function e(t,e){this.parent=t,this.node=e}return Object.defineProperty(e.prototype,"decoratedSelf",{get:function(){var e=this;return this.memoize("decoratedSelf",(function(){return e.parent?e.parent.children.find((function(t){return t.node===e.node})):t.DecoratedTreeNode.createRoot(e.node)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){var t=this;return this.memoize("children",(function(){return t.node.children?t.node.children.map((function(n){return S.Mixin.createProxy(n,new e(t.decoratedSelf,n))})):[]}))},enumerable:!1,configurable:!0}),e.prototype.descendants=function(){var t=this;return this.memoize("descendants",(function(){var e=[];return t.visitDescendants((function(t){return e.push(t)})),e}))},e.prototype.selfAndDescendants=function(){var t=this;return this.memoize("selfAndDescendants",(function(){var e=[];return t.visitSelfAndDescendants((function(t){return e.push(t)})),e}))},e.prototype.siblingsBefore=function(){var t=this;return this.memoize("siblingsBefore",(function(){return t.parent?t.parent.children.slice(0,t.myIndex()):[]}))},e.prototype.siblingsAfter=function(){var t=this;return this.memoize("siblingsAfter",(function(){return t.parent?t.parent.children.slice(1+t.myIndex()):[]}))},e.prototype.siblings=function(){var t=this;return this.memoize("siblings",(function(){return[].concat(t.siblingsBefore(),t.siblingsAfter())}))},e.prototype.isFirstChild=function(){var t=this;return this.memoize("isFirstChild",(function(){return!!t.parent&&0===t.myIndex()}))},e.prototype.myIndex=function(){var t=this;return this.memoize("myIndex",(function(){var e=t.parent.children.findIndex((function(e){return e.node===t.node}));return w.assert.isTruthy(e>=0,"illegal state, expected index to be >= 0"),e}))},e.prototype.isLastChild=function(){var t=this;return this.memoize("isLastChild",(function(){return!!t.parent&&t.myIndex()===t.parent.children.length-1}))},e.prototype.hasSiblings=function(){return!!this.parent&&this.node.children.length>1},e.prototype.find=function(t){return M.find(this.descendants(),t)},e.prototype.select=function(t){return M.filter(this.descendants(),t)},e.prototype.flattenInto=function(t){return this.visitSelfAndDescendants((function(e){return t.push(e)})),t},e.prototype.ancestors=function(){var t=this;return this.memoize("ancestors",(function(){return t.parent?t.parent.ancestors().concat([t.parent]):[]}))},e.prototype.ancestorsAndSelf=function(){var t=this;return this.memoize("ancestorsAndSelf",(function(){return t.ancestors().concat([t.decoratedSelf])}))},e.prototype.pathToParent=function(t){if(this.node===t.node)return[];if(this.parent)return this.parent.pathToParent(t).concat([this.parent]);throw new Error("parent is not an ancestor")},e.prototype.pathToParentAndSelf=function(t){return this.pathToParent(t).concat([this.decoratedSelf])},e.prototype.isRoot=function(){return!this.parent},Object.defineProperty(e.prototype,"depth",{get:function(){return this.isRoot()?0:this.parent.depth+1},enumerable:!1,configurable:!0}),e.prototype.isLeaf=function(){return!this.isRoot()&&this.node.children.length<1},e.prototype.hasChildren=function(){return this.node.children&&this.node.children.length>0},e.prototype.depthFromParent=function(t){return this.pathToParent(t).length},e.prototype.treeDepth=function(){var t=this;return this.memoize("treeDepth",(function(){return 1+t.descendants().map((function(e){return e.depthFromParent(t)})).reduce((function(t,e){return Math.max(t,e)}))}))},e.prototype.flatten=function(){var t=this;return this.memoize("flatten",(function(){return t.flattenInto([])}))},e.prototype.visit=function(t){return t.visit(this),t},e.prototype.visitChildren=function(t){return M.each(this.children,(function(e){return e.visit(t)})),t},e.prototype.visitSelfAndDescendants=function(e){this.visit(new t.SelfAndDescendantsVisitor.Each(e))},e.prototype.visitDescendants=function(e){this.visitChildren(new t.SelfAndDescendantsVisitor.Each(e))},e.prototype.memoize=function(t,e){var n="__"+t;return M.isNil(this[n])&&(this[n]=e()),this[n]},e}();(t.DecoratedTreeNode||(t.DecoratedTreeNode={})).createRoot=function(t){return S.Mixin.createProxy(t,new xe(void 0,t))};var Re=function(e){function n(t,n){var o=e.call(this,t)||this;return o.source=t,o.expansionModel=n,o.trackSource(o.expansionModel.isExpandedPredicate),o}return B(n,e),n.prototype.getIdentityOf=function(t){return this.source.identityOf(t.node)},n.prototype.compute=function(e){var n=this,o=[];return e.forEach((function(e){return n.addNodeAndVisibleChildren(t.DecoratedTreeNode.createRoot(e),o)})),o},n.prototype.addNodeAndVisibleChildren=function(t,e){var n=this;e.push(t),t.hasChildren()&&!this.expansionModel.isCollapsed(t)&&t.children.forEach((function(t){return n.addNodeAndVisibleChildren(t,e)}))},n}(w.ComputedListModel),Se=function(t){function e(e,n){var o=t.call(this,e)||this;return o.treeExpansionModel=n,o}return B(e,t),e.fromRoot=function(t,e){var n=new w.GarbageCollector,o=w.Dsl.disposeWith(n),i=o.chain,r=(o.valueOf,o.before,o.when,o.after,o.observe,o.switchOn,i(t).mapToList((function(t){return[t]}))),a=this.fromList(r,e);return a.registerDisposable(n),a},e.fromChildrenOf=function(t,e){var n=new w.GarbageCollector,o=w.Dsl.disposeWith(n),i=o.chain,r=(o.valueOf,o.before,o.when,o.after,o.observe,o.switchOn,i(t).mapToList((function(t){return t.children}))),a=this.fromList(r,e);return a.registerDisposable(n),a},e.fromList=function(t,n){var o=new Pe(t.identityOf),i=new Re(t,o),r=new e(i,o);return r.registerDisposable(i),n&&n(r),r},e.prototype.treeControlColumn=function(t){var e=this,n="tree-label",o=new Me(n,(function(){return e.getColumnTextProperties(n)}),this.treeExpansionModel);t(o),this.addColumn(o)},e.prototype.expand=function(t){this.treeExpansionModel.expand(t)},e.prototype.collapse=function(t){this.treeExpansionModel.expand(t)},e.prototype.isCollapsed=function(t){return this.treeExpansionModel.isCollapsed(t)},e.prototype.ensureAncestorsAndSelfVisible=function(t){this.treeExpansionModel.ensureAncestorsAndSelfVisible(t)},e}(t.AbstractTableModel),Ae=function(t){function e(e){var n=t.call(this)||this;return n.collapsedIds=e,n._areas=[],n._collapsed=new Set(e),n}return B(e,t),e.prototype.onVisit=function(t){this._areas.push(t)},e.prototype.shouldVisitChildrenOf=function(t){return!this._collapsed.has(t)},Object.defineProperty(e.prototype,"flattenedAreas",{get:function(){return this._areas},enumerable:!1,configurable:!0}),e}(t.SelfAndDescendantsVisitor),Oe=function(t){function e(){var e=t.call(this)||this;return e.enableScrolling=!1,e}return B(e,t),e}(Y);Oe.decorators=[{type:n.Component,args:[{selector:"aup-tree-table",template:'<aup-table [tableModel]="treeTableModel" [showHeaderModel]="showHeaderModel" [enableScrolling]="enableScrolling"></aup-table>\n',encapsulation:n.ViewEncapsulation.None,styles:["td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}td.mat-column-tree-label{width:1px}aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}aup-tree-label-cell-renderer{flex:1}"]}]}],Oe.ctorParameters=function(){return[]},Oe.propDecorators={treeTableModel:[{type:n.Input}],showHeaderModel:[{type:n.Input}],showHeader:[{type:n.Input}],enableScrolling:[{type:n.Input},{type:n.HostBinding,args:["class.enable-scrolling"]}]},q([w.TrackExternal(),W("design:type",Se)],Oe.prototype,"treeTableModel",void 0),q([w.TrackExternal({defaultValue:!0}),W("design:type",w.ValueModel)],Oe.prototype,"showHeaderModel",void 0),q([w.StoreInValueModel("showHeaderModel"),W("design:type",Boolean)],Oe.prototype,"showHeader",void 0);var Te=function(t){function e(e){var n=t.call(this,e)||this;return n.focusManager=e,n}return B(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}(mt);Te.decorators=[{type:n.Component,args:[{selector:"aup-vertical-focus-container",template:"<ng-content></ng-content>\n",providers:[{provide:w.FocusManager}],styles:[":host{display:block}"]}]}],Te.ctorParameters=function(){return[{type:w.FocusManager,decorators:[{type:n.Self}]}]},Te.propDecorators={rightArrowCommand:[{type:n.Input,args:["command.arrowRight"]}],leftArrowCommand:[{type:n.Input,args:["command.arrowLeft"]}],arrowLeft:[{type:n.HostListener,args:["keyup.arrowLeft",["$event"]]}],arrowRight:[{type:n.HostListener,args:["keyup.arrowRight",["$event"]]}],arrowDown:[{type:n.HostListener,args:["keyup.arrowDown",["$event"]]}],arrowUp:[{type:n.HostListener,args:["keyup.arrowUp",["$event"]]}]},q([w.TrackExternal(),W("design:type",w.Command)],Te.prototype,"rightArrowCommand",void 0),q([w.TrackExternal(),W("design:type",w.Command)],Te.prototype,"leftArrowCommand",void 0);var De=function(t){function e(){return t.call(this)||this}return B(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageController.totalPages.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageNumber",{get:function(){return this.pageController.pageNumber.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousCommand",{get:function(){return this.pageController.previousCommand},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextCommand",{get:function(){return this.pageController.nextCommand},enumerable:!1,configurable:!0}),e}(Y);De.decorators=[{type:n.Component,args:[{selector:"aup-paginator",template:'<p>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]="previousCommand"><aup-icon icon="mat:keyboard_arrow_left"></aup-icon></button>\n<button mat-icon-button [pectinCommand]="nextCommand"><aup-icon icon="mat:keyboard_arrow_right"></aup-icon></button>\n\n',styles:[":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:rgba(0,0,0,.6)}:host p{color:inherit;margin-right:8px}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}"]}]}],De.ctorParameters=function(){return[]},De.propDecorators={pageController:[{type:n.Input}]},q([w.TrackExternal(),W("design:type",w.PageController)],De.prototype,"pageController",void 0);var Ee=function(t){t.addIconPacks(I.fas)};Ee.decorators=[{type:n.NgModule,args:[{declarations:[gt,bt,vt,Pt,Rt,St,Mt,xt,wt,Ct,It,Ot,At,_t,Et,Ft,mt,Te,yt,nt,fe,Zt,he,Yt,me,Qt,te,Jt,ye,t.IconComponent,Tt,ve,ut,at,ft,ot,lt,pt,st,ct,dt,Oe,t.TreeInheritanceIconComponent,Ce,et,ht,De],imports:[e.CommonModule,c.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule,tt,m.MatIconModule,d.MatButtonModule,f.MatCheckboxModule,v.MatTableModule,l.PortalModule,u.CdkScrollableModule,C.FontAwesomeModule,b.MatTooltipModule,p.MatAutocompleteModule,y.MatMenuModule,h.MatDividerModule,g.MatProgressSpinnerModule],exports:[Pt,Rt,St,Mt,It,xt,wt,Ct,Ot,At,_t,Et,Ft,mt,Te,yt,nt,fe,Zt,he,t.IconComponent,Tt,ve,ut,at,ft,ot,lt,pt,st,Oe,et,ht,De],providers:[Z]}]}],Ee.ctorParameters=function(){return[{type:C.FaIconLibrary}]};var Fe=function(t){function e(e){var n=t.call(this)||this;return n.cdr=e,n.align="stretch",n}return B(e,t),Object.defineProperty(e.prototype,"faces",{set:function(t){this.confirmFace=t.confirm,this.cancelFace=t.cancel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{set:function(t){this.faces=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alignEnd",{get:function(){return"end"===this.align},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alignStretch",{get:function(){return"stretch"===this.align},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.hasConfirmFace=function(){return!!this.confirmFace},e.prototype.hasCancelFace=function(){return!!this.cancelFace},e.prototype.initCommands=function(t){this.confirmCommand=t.confirmCommand,this.cancelCommand=t.cancelCommand,this.cdr.detectChanges()},e}(Y);Fe.decorators=[{type:n.Component,args:[{selector:"aup-activity-actions",template:'<div class="content">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf="hasConfirmFace()">\n <aup-command class="confirm" [command]="confirmCommand" [face]="confirmFace" data-cy="confirm-command"></aup-command>\n</ng-container>\n<ng-container *ngIf="hasCancelFace()">\n <aup-command class="cancel" [command]="cancelCommand" [face]="cancelFace" data-cy="cancel-command"></aup-command>\n</ng-container>\n',styles:[':host{display:grid;grid-template-areas:"cancel confirm content";grid-template-columns:auto auto 1fr;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:"content cancel confirm";grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:"cancel content confirm";grid-template-columns:auto 1fr auto}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.column{grid-area:content;text-align:left}']}]}],Fe.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},Fe.propDecorators={confirmCommand:[{type:n.Input}],cancelCommand:[{type:n.Input}],faces:[{type:n.Input}],confirmFace:[{type:n.Input}],cancelFace:[{type:n.Input}],style:[{type:n.Input}],align:[{type:n.Input}],alignEnd:[{type:n.HostBinding,args:["class.align-end"]}],alignStretch:[{type:n.HostBinding,args:["class.align-stretch"]}]},q([w.TrackExternal(),W("design:type",w.Command)],Fe.prototype,"confirmCommand",void 0),q([w.TrackExternal(),W("design:type",w.Command)],Fe.prototype,"cancelCommand",void 0);var _e=new n.InjectionToken("InteractionActivityData"),ke=function(t){function e(){var e=t.call(this)||this;return e._busyModel=(new w.DelegatingValueModel).withDefault(!1),e._focusedModel=e.registerDisposable(new w.DelegatingValueModel),e.class="aup-activity",e}return B(e,t),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._focusedModel.value},enumerable:!1,configurable:!0}),e.prototype.initialise=function(t,e){var n=this,o=w.Dsl.disposeWith(this),i=(o.chain,o.when);S.assert.isNil(this._activityContext),this._activityContext=e,this._interactionContext=t,this._focusedModel.setDelegate(e.focused),i(this._focusedModel).becomesTruthy((function(){n.onActivityReady()}))},e.prototype.ngAfterViewInit=function(){var t;null===(t=this.activityActions)||void 0===t||t.initCommands(this)},Object.defineProperty(e.prototype,"interactionContext",{get:function(){return S.assert.isTruthy(this.isInitialised()),this._interactionContext},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focusedModel.readonly},enumerable:!1,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},e}(Y);ke.decorators=[{type:n.Component,args:[{template:""}]}],ke.ctorParameters=function(){return[]},ke.propDecorators={activityActions:[{type:n.ViewChild,args:[Fe]}],class:[{type:n.HostBinding,args:["class"]}],isFocused:[{type:n.HostBinding,args:["attr.focused"]}]},q([w.TrackExternal(),W("design:type",w.Command)],ke.prototype,"confirmCommand",void 0),q([w.TrackExternal(),W("design:type",w.Command)],ke.prototype,"cancelCommand",void 0);var Ve=function(t){function e(e){var n=t.call(this)||this;return n.alert=e,n.confirmCommand=w.Command.create((function(){n.done()})),n.confirmFace={text:function(){return e.ok()},color:function(){return"primary"},style:function(){return"raised"}},n}return B(e,t),e.prototype.ngOnInit=function(){},e}(ke);Ve.decorators=[{type:n.Component,args:[{selector:"aup-alert-dialog",template:'<aup-activity-title *ngIf="alert.title">{{alert.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor="let line of alert.content()">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]="confirmFace"></aup-activity-actions>\n',styles:[":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}]}],Ve.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[_e]}]}]};var Le=function(t){function e(e){var n=t.call(this)||this;return n.config=e,w.assert.notNil(e),n.confirmCommand=w.Command.create((function(){n.interactionContext.startActivity(n.config.activityType,n.config.data).then((function(t){return n.done(t)})).catch((function(t){return n.cancel(t)}))})),n.cancelCommand=w.Command.create((function(){return n.cancel()})),n.confirmFace={text:function(){return n.confirm.ok()},color:function(){return n.isDestructive()?"warn":"primary"},style:function(){return"raised"}},n.cancelFace={text:function(){return n.confirm.cancel()}},n}return B(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"confirm",{get:function(){return this.config.confirm},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"titleColor",{get:function(){return this.isDestructive()?"warn":void 0},enumerable:!1,configurable:!0}),e.prototype.isDestructive=function(){return this.confirm.destructive&&this.confirm.destructive()},e}(ke);Le.decorators=[{type:n.Component,args:[{selector:"aup-confirmation-dialog",template:'<aup-activity-title *ngIf="confirm.title" [color]="titleColor">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor="let line of confirm.content()">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]="confirmFace" [cancelFace]="cancelFace"></aup-activity-actions>\n',styles:[":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}]}],Le.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[_e]}]}]};var Ne=function(t){function e(e){var n=t.call(this)||this;return n.confirm=e,w.assert.notNil(e),n.confirmCommand=w.Command.create((function(){return n.done()})),n.cancelCommand=w.Command.create((function(){return n.cancel()})),n.confirmFace={text:function(){return e.ok()},color:function(){return n.isDestructive()?"warn":"primary"},style:function(){return"raised"}},n.cancelFace={text:function(){return e.cancel()}},n}return B(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"titleColor",{get:function(){return this.isDestructive()?"warn":void 0},enumerable:!1,configurable:!0}),e.prototype.isDestructive=function(){return this.confirm.destructive&&this.confirm.destructive()},e}(ke);Ne.decorators=[{type:n.Component,args:[{selector:"aup-confirmation-dialog",template:'<aup-activity-title *ngIf="confirm.title" [color]="titleColor">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor="let line of confirm.content()">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]="confirmFace" [cancelFace]="cancelFace"></aup-activity-actions>\n\n',styles:[":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}]}],Ne.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[_e]}]}]};var He=function(){function t(){}return t.prototype.startActivity=function(t,e,n){return this.createAndLaunchActivity(t,e,S.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(Ve,t,!1)},t.prototype.confirmOrReject=function(t){return this.createAndLaunchActivity(Ne,t,!0)},t.prototype.confirmThen=function(t,e,n){return this.createAndLaunchActivity(Le,{confirm:t,activityType:e,data:n},!0)},t}(),je=function(){function t(t,e,n){this.activityClass=t,this.activityData=e,this.onComplete=n,this._complete=!1,this.deferredResult=w.Deferred.defer(),this.focusedModel=new w.MutableValueModel,this._activityBusy=(new w.DelegatingValueModel).withDefault(!1)}return t.prototype.isActivityRealised=function(){return!!this._activity},t.prototype.isComplete=function(){return this._complete},Object.defineProperty(t.prototype,"activity",{get:function(){return w.assert.isTruthy(this.isActivityRealised()),this._activity},enumerable:!1,configurable:!0}),t.prototype.setFocused=function(t){this.focusedModel.value=t},Object.defineProperty(t.prototype,"focused",{get:function(){return this.focusedModel.value},enumerable:!1,configurable:!0}),t.prototype.notifyActivityCreated=function(t,e){w.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)}))},focused:this.focusedModel.readonly}),this._activityBusy.setDelegate(this._activity.busy)},t.prototype.finishActivity=function(t){w.assert.isFalsey(this.isComplete()),t(this.deferredResult),this._complete=!0,this.onComplete(this),this._activityBusy.dispose()},t.prototype.cancel=function(){this.activity.cancel()},Object.defineProperty(t.prototype,"activityResult",{get:function(){return this.deferredResult.promise},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activityBusy",{get:function(){return this._activityBusy.readonly},enumerable:!1,configurable:!0}),t}(),Ue=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()&&S.lang.illegalState("changing activity before previous one has completed"),this._activityRef=t,this.loadActivity(t)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.loadActivity=function(t){var e=n.Injector.create({providers:[{provide:_e,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:!1,configurable:!0}),t}();Ue.decorators=[{type:n.Component,args:[{selector:"aup-activity-outlet",template:"",styles:[":host{display:block}"]}]}],Ue.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.ViewContainerRef},{type:n.Injector}]},Ue.propDecorators={nestedInteractionContext:[{type:n.Input}],activityRef:[{type:n.Input}]};var Be=function(t){function e(){var e=t.call(this)||this;return e.dynamicHeight=!1,e.activityRefs=[],e.garbage=new w.GarbageCollector,e.inAnimation=new w.MutableValueModel(!1),e.busy=(new w.DelegatingValueModel).withDefault(!1),e.registerDisposable(e.busy),e}return B(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var t=this,e=w.Dsl.disposeWith(this);e.chain;e.observe.valuesFrom(this.tabs.animationDone).subscribe((function(){return t.onAnimationFinished()}))},e.prototype.initialise=function(t,e){w.assert.isFalsey(this.isInitialised()),w.assert.notNil(t),w.assert.notNil(e),this._identifier=t,this.interactionServiceApi=e},Object.defineProperty(e.prototype,"identifier",{get:function(){return this._identifier},enumerable:!1,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(){w.assert.isFalsey(this.isActive()),this.garbage.dispose()},e.prototype.getActiveActivityRef=function(){return this.isActive()||S.lang.illegalState("no activity in progress"),N.default.findLast(this.activityRefs,(function(t){return!t.isComplete()}))},e.prototype.cancelActiveActivity=function(){return z(this,void 0,void 0,(function(){return G(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;w.assert.isTruthy(this.isInitialised());var i=new je(t,e,(function(){o.getActiveActivityCount()>0?o.triggerTabSynchronisation():o.finishAndStartCleanup()}));return this.launchActivity(i),1===this.activityRefs.length&&this.interactionServiceApi.notifyActive(this),i.activityResult},e.prototype.getActiveActivityCount=function(){return this.activityRefs.filter((function(t){return!t.isComplete()})).length},e.prototype.isCleaningUp=function(){return!!this._deferredCleanUp},e.prototype.waitForInteractionContextCleanupToFinish=function(){return z(this,void 0,void 0,(function(){return G(this,(function(t){return[2,!this._deferredCleanUp||this._deferredCleanUp]}))}))},e.prototype.finishAndStartCleanup=function(){var t=this;if(!this._deferredCleanUp){this.activityRefs=[];var e=this.interactionServiceApi.notifyFinished(this);this._deferredCleanUp=e.finally((function(){t._deferredCleanUp=null}))}},e.prototype.launchActivity=function(t){var e=this.activityRefs.filter((function(t){return!t.isComplete()}));this.activityRefs=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.inAnimation.value=!0,this.activityRefs[n].setFocused(!1),this.busy.setDelegate(this.activityRefs[n].activityBusy),this.tabs.selectedIndex=n,this.onAnimationFinishedJob=function(){t.activityRefs=t.activityRefs.filter((function(t){return!t.isComplete()})),t.inAnimation.value=!1,t.activityRefs.forEach((function(t,e){t.setFocused(e===n)}))})},e.prototype.getSelectedOutlet=function(){return this.activityOutlets.toArray()[this.tabs.selectedIndex]},e.prototype.getSelectedTabIndex=function(){return 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)},e}(He);Be.decorators=[{type:n.Component,args:[{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 activityRef of activityRefs; let i = index; trackBy: activityIndex">\n <aup-busy-overlay [busyModel]="busy">\n \x3c!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we\'re animating.\n --\x3e\n <div class="activity-outlet-wrapper" [@.disabled]="!activityRef.focused">\n <aup-activity-outlet [nestedInteractionContext]="this" [activityRef]="activityRef"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n',styles:[":host{display:flex;flex-direction:column}aup-busy-overlay,mat-tab-group{flex:1}"]}]}],Be.ctorParameters=function(){return[]},Be.propDecorators={dynamicHeight:[{type:n.Input}],tabs:[{type:n.ViewChild,args:["tabs",{static:!0}]}],activityOutlets:[{type:n.ViewChildren,args:[Ue]}]};var qe=function(t){function e(){var e=t.apply(this,X(arguments))||this;return e.fullWidth=!1,e}return B(e,t),e.prototype.ngOnInit=function(){},e}(Y);qe.decorators=[{type:n.Component,args:[{selector:"aup-activity-body",template:"<ng-content></ng-content>\n",styles:["<ng-content></ng-content>\n"]}]}],qe.propDecorators={fullWidth:[{type:n.Input},{type:n.HostBinding,args:["class.full-width"]}]};var We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),Object.defineProperty(e.prototype,"hasTransparentBackground",{get:function(){return N.default.isNil(this._hasUserTransparentBackground)?!this._color:this._hasUserTransparentBackground},set:function(t){this._hasUserTransparentBackground=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e}(Y);We.decorators=[{type:n.Component,args:[{selector:"aup-activity-title",template:"<ng-content></ng-content>\n",styles:[":host{display:block}"]}]}],We.propDecorators={hasTransparentBackground:[{type:n.Input},{type:n.HostBinding,args:["class.transparent-background"]}],color:[{type:n.Input},{type:n.HostBinding,args:["attr.color"]}]};var ze=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}(),Ge=function(){},Ke=0;t.InteractionService=function(){function t(e){this.modelInteractionContextFactory=e,this.garbage=new w.GarbageCollector,this._navigationInProgress=(new w.DelegatingValueModel).withDefault(!1);var n=w.Dsl.disposeWith(this.garbage),o=n.chain,i=n.valueOf;n.before,n.when,n.after,n.observe,n.switchOn;this.exclusiveInteractionRegistry=new t.ContextRegistry,this.modalInteractionRegistry=new t.ContextRegistry,this.inPlaceInteractionRegistry=new t.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()}return t.prototype.isActive=function(){return this.active.value},t.prototype.createModalInteractionContextFor=function(t){return this.createModalInteractionContextDisposedWith(t)},t.prototype.createModalInteractionContextDisposedWith=function(e){return this.modelInteractionContextFactory.createInteractionContext("modal",new t.ApiAdapter(this.placeRouter,this.modalInteractionRegistry))},t.prototype.registerInplaceInteractionContext=function(e){e.initialise("ip"+ ++Ke,new t.ApiAdapter(this.placeRouter,this.inPlaceInteractionRegistry))},t.prototype.registerPlaceRouter=function(e){var n=this;S.assert.isFalsey(this.placeRouter),this.placeRouter=e,this._navigationInProgress.setDelegate(this.placeRouter.navigationInProgress);var o=this;return new ze(this.activeInteractionContextIds,this.activeModalContext,(function(){return o.modelInteractionContextFactory.createInteractionContext("exclusive",new t.ApiAdapter(n.placeRouter,n.exclusiveInteractionRegistry))}))},t}(),t.InteractionService.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t.InteractionService(n.ɵɵinject(Ge))},token:t.InteractionService,providedIn:"root"}),t.InteractionService.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.InteractionService.ctorParameters=function(){return[{type:Ge}]},function(t){var e=function(t){function e(){var e=t.call(this)||this;e._interactions=new w.MutableListModel,e._disabledDelegate=(new w.DelegatingValueModel).withDefault(!1);var n=w.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 B(e,t),Object.defineProperty(e.prototype,"interactionContexts",{get:function(){return this._interactions.readonly},enumerable:!1,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}(w.GarbageCollector);t.ContextRegistry=e;var n=function(){function t(t,e){this.placeRouter=t,this.contextRegistry=e}return t.prototype.notifyActive=function(t){return S.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.InteractionService||(t.InteractionService={}));var Xe=function(t){function e(e,n){var o=t.call(this)||this;return o.interactionService=e,o.tabConfig=n,o.animateFirstActivity=!0,o}return B(e,t),Object.defineProperty(e.prototype,"animationDuration",{get:function(){var t;return this.animateFirstActivity?(null===(t=this.tabConfig)||void 0===t?void 0:t.animationDuration)||"500ms":"0ms"},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.interactionService.registerInplaceInteractionContext(this)},e.prototype.initialise=function(t,e){this.activityContainerComponent.initialise(t,e)},Object.defineProperty(e.prototype,"identifier",{get:function(){return this.activityContainerComponent.identifier},enumerable:!1,configurable:!0}),e.prototype.alert=function(t){return this.activityContainerComponent.alert(t)},e.prototype.cancelActiveActivity=function(){return this.activityContainerComponent.cancelActiveActivity()},e.prototype.confirm=function(t){return this.activityContainerComponent.confirm(t)},e.prototype.confirmOrReject=function(t){return this.activityContainerComponent.confirmOrReject(t)},e.prototype.confirmThen=function(t,e,n){return this.activityContainerComponent.confirmThen(t,e)},e.prototype.isActive=function(){return this.activityContainerComponent.isActive()},e.prototype.startActivity=function(t,e,n){return this.activityContainerComponent.startActivity(t,e,n)},e}(Y);Xe.decorators=[{type:n.Component,args:[{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}"]}]}],Xe.ctorParameters=function(){return[{type:t.InteractionService},{type:void 0,decorators:[{type:n.Inject,args:[s.MAT_TABS_CONFIG]},{type:n.Optional}]}]},Xe.propDecorators={activityContainerComponent:[{type:n.ViewChild,args:["activityContainer",{static:!0}]}],animateFirstActivity:[{type:n.Input}]};var $e=function(t){function e(){var e=t.call(this)||this;return e.icon="mat:add",e.tabindex=0,e.clickCommand=w.Command.create((function(t){e.activityClass?e.startActivity(e.activityClass,e.activityData).catch((function(t){})):e.addCommand.withContext(t).execute()})),e}return B(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return!!this.interactionContext&&this.interactionContext.isActive()},enumerable:!1,configurable:!0}),e.prototype.startActivity=function(t,e){return this.interactionContext.startActivity(t,e)},e.prototype.ngOnInit=function(){},e}(Y);$e.decorators=[{type:n.Component,args:[{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:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}a.link,aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;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}"]}]}],$e.ctorParameters=function(){return[]},$e.propDecorators={label:[{type:n.Input}],icon:[{type:n.Input}],activityClass:[{type:n.Input}],activityData:[{type:n.Input}],addCommand:[{type:n.Input}],interactionContext:[{type:n.ViewChild,args:[Xe]}],active:[{type:n.HostBinding,args:["class.interaction-active"]}],tabindex:[{type:n.HostBinding,args:["tabindex"]}]},q([w.TrackExternal(),W("design:type",w.Command)],$e.prototype,"addCommand",void 0);var Ye=function(t){function e(e,n,o){var i=t.call(this)||this;return i._element=e,i._overlay=n,i.outputPortal=new l.ComponentPortal(Xe),i.anchorX="start",i.anchorY="bottom",i.scrollContainers=o?[o]:[],i}return B(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return this.isActive()},enumerable:!1,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}(Y);Ye.decorators=[{type:n.Component,args:[{selector:"aup-popup-interaction-context",template:"<ng-content></ng-content>\n",styles:[":host{display:inline}:host.interaction-active{background:rgba(0,0,0,.05)}"]}]}],Ye.ctorParameters=function(){return[{type:n.ElementRef},{type:E.Overlay},{type:E.CdkScrollable,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},Ye.propDecorators={active:[{type:n.HostBinding,args:["class.interaction-active"]}],anchorX:[{type:n.Input}],anchorY:[{type:n.Input}]};var Je=function(t){function e(){var e=t.call(this)||this;return e.activityDone=new n.EventEmitter,e.activityCancelled=new n.EventEmitter,e}return B(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;w.assert.isTruthy(this.aupInteractionContextTriggerFor),w.assert.isFalsey(this.aupInteractionContextTriggerFor.isActive()),w.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 N.default.isFunction(this.activityDataFactory())?this.activityDataFactory():this.activityData},e}(w.GarbageCollector);Je.decorators=[{type:n.Directive,args:[{selector:"[aupInteractionContextTriggerFor]"}]}],Je.ctorParameters=function(){return[]},Je.propDecorators={aupInteractionContextTriggerFor:[{type:n.Input}],activityClass:[{type:n.Input}],activityData:[{type:n.Input}],activityDataFactory:[{type:n.Input}],activityDone:[{type:n.Output}],activityCancelled:[{type:n.Output}],onEnter:[{type:n.HostListener,args:["keyup.enter",["$event"]]}],onClick:[{type:n.HostListener,args:["click",["$event"]]}]};var Ze=function(t){function e(e){var n=t.call(this)||this;n.data=e,n.class="aup-input-activity";var o=new w.DirtyTrackingForm;return n.valueModel=o.valueModel(n.data.initialValue),n.valueModel.validateUsing(e.validators||[]),n.confirmCommand=w.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=w.Command.create((function(){n.cancel()})),n}return B(e,t),e.prototype.onActivityReady=function(){this.valueModel.focusContext.requestFocus()},e}(ke);Ze.decorators=[{type:n.Component,args:[{template:""}]}],Ze.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[_e]}]}]},Ze.propDecorators={class:[{type:n.HostBinding,args:["class"]}]};var Qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e}(Ze);Qe.decorators=[{type:n.Component,args:[{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 [faces]="data.buttonStyle"></aup-activity-actions>\n '}]}];var tn=function(t){function e(){var e=t.apply(this,X(arguments))||this;return e.defaultOptionLabelFormat=function(t){return e.data.optionLabel?t[e.data.optionLabel]:t},e}return B(e,t),Object.defineProperty(e.prototype,"optionLabelFormat",{get:function(){var t;return null!==(t=this.data.optionLabelFormat)&&void 0!==t?t:this.defaultOptionLabelFormat},enumerable:!1,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:!1,configurable:!0}),e}(Ze);tn.decorators=[{type:n.Component,args:[{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" [faces]="data.buttonStyle"\n ></aup-activity-actions>\n '}]}];var en=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.fromList=function(t,n){var o=new e(t);return n&&n(o),o},e.prototype.addSelectionColumn=function(t){return this._addSelectionColumn(t)},e}(t.AbstractTableModel),nn=function(){};nn.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,d.MatButtonModule,T.MatDialogModule,s.MatTabsModule,l.PortalModule,D.RouterModule,m.MatIconModule,tt,O.FlexModule,O.GridModule,Ee],declarations:[Be,Ne,Le,Ve,Ue,Xe,$e,Fe,Ye,Qe,tn,Ze,Je,ke,We,qe,Fe],exports:[Be,Ue,We,Xe,$e,Fe,Ye,Je,Qe,tn,qe],entryComponents:[Be,Ne,Le,Ve],providers:[t.InteractionService]}]}],t.ParameterDefinition=function(){function t(t,e,n){this.propertyName=t,this.urlFormat=n,this.options=S.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:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRouteParameter",{get:function(){return!!this.urlFormat},enumerable:!1,configurable:!0}),t.prototype.getOptionValue=function(t){return this.options.getOptional(t,null)},t.prototype.sanitise=function(t,e,n,o,i){return z(this,void 0,void 0,(function(){var o;return G(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=t.apply(this,X(arguments))||this;return e.isRouteId=!0,e.isArray=!1,e}return B(e,t),e.prototype.isEmptyValue=function(t){return N.default.isNil(t)},e.prototype.hasChanged=function(t,e){return t!==e},e}(t);t.RouteId=e;var n=function(t){function e(){var e=t.apply(this,X(arguments))||this;return e.isRouteId=!1,e.isArray=!1,e}return B(e,t),e.prototype.isEmptyValue=function(t){return N.default.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 B(e,t),e.prototype.isEmptyValue=function(t){return N.default.isNil(t)||t.length<1},e.prototype.hasChanged=function(t,e){return!N.default.isEqual(t,e)},e}(t);t.ArrayParameter=o}(t.ParameterDefinition||(t.ParameterDefinition={}));var on=function(){function t(t,e,n,o,i,r,a){this.component=t,this.path=e,this.authenticate=n,this.roles=o,this.data=i,this.routeParameters=r,this.children=a}return t.prototype.hasRouteId=function(){return!!this.getRouteIdParameterDef()},t.prototype.getRouteIdParameterDef=function(){return this.routeParameters.find((function(t){return t.isRouteId}))},t.prototype.getRouteParameterDefs=function(t){return void 0===t&&(t=!1),this.getVisitParameterDefs({includeRouteId:t,includeRouteParameters:!0})},t.prototype.getVisitParameterDefs=function(t){var e=S.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}))},t.prototype.getPlaceData=function(t,e){return this.data?N.default.isNil(this.data[t])?e:this.data[t]:e},t.prototype.searchPlaceData=function(t,e){var n=this;if(this.data){var o=t.find((function(t){return!N.default.isNil(n.data[t])}));return o?this.data[o]:e}return e},t.prototype.getRouteIdFrom=function(t){var e=this.getRouteIdParameterDef();return e?t.getParameter(e.name):null},t.prototype.getFormattedRouteId=function(t){return t.hasRouteId()?this.getRouteIdParameterDef().urlFormat.format(t.getRouteId()):""},t.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?(w.assert.isArray(o),n[e.name]=o.map((function(t){return e.urlFormat.format(t)}))):(w.assert.isFalsey(Array.isArray(o)),n[e.name]=e.urlFormat.format(o)))})),n},t.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},t.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&&N.default.isEmpty(i)||(e[n.name]=n.urlFormat.parse(i))}})),e},t}();q([P.Memoize(),W("design:type",Function),W("design:paramtypes",[]),W("design:returntype",t.ParameterDefinition)],on.prototype,"getRouteIdParameterDef",null),q([P.Memoize(),W("design:type",Function),W("design:paramtypes",[Object]),W("design:returntype",Array)],on.prototype,"getRouteParameterDefs",null),q([P.Memoize(),W("design:type",Function),W("design:paramtypes",[Object]),W("design:returntype",Array)],on.prototype,"getVisitParameterDefs",null);var rn="PLACE_DEFINITION_OPTIONS",an=Symbol("place:route:parameters");t.PlaceComponent=function(t){function e(){var e=t.call(this)||this;e.visitModel=new w.MutableValueModel,e._inVisitUpdate=new w.Guard,e._active=new w.MutableValueModel(!1);var n=w.Dsl.disposeWith(e),o=(n.chain,n.valueOf,n.before,n.when);n.after,n.observe,n.switchOn;return o(e._active).becomesTruthy((function(){return e.onPlaceReady()})),e}return B(e,t),e.prototype.initialiseVisit=function(t,e){var n=this;w.assert.isNil(this.visitModel.value);var o=w.Dsl.disposeWith(this).when;this.visitModel.value=t,w.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name+".visitModel"),this.placeDefinition.getVisitParameterDefs().forEach((function(t){return n.installBinding(t)})),o(this.visitModel).changes((function(t,n){e(t,n)}),{unless:this._inVisitUpdate})},e.prototype.updateVisit=function(t){var e=this;w.assert.isTruthy(this.isInitialised()),w.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];w.DebugContext.tag(e,this.placeDefinition.component.name+"."+t.propertyName),this.registerDisposable(new w.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 e.getDefinition(this.constructor)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childPlaces",{get:function(){return this.placeDefinition.children.map((function(t){return t.component}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._active.readonly},enumerable:!1,configurable:!0}),e.prototype._notifyActive=function(t){this._active.value=t},e.prototype.onPlaceReady=function(){},e}(Y),t.PlaceComponent.decorators=[{type:n.Directive}],t.PlaceComponent.ctorParameters=function(){return[]},q([_.Memoize(),W("design:type",on),W("design:paramtypes",[])],t.PlaceComponent.prototype,"placeDefinition",null),function(t){function e(e){return w.lang.constructorChain(e).includes(t)}t.isPlaceComponentConstructor=e,t.getRouteParameters=function(t){return S.Klass.get(t).getMetadataList(an)},t.getDefinition=function(t){if(t instanceof D.ActivatedRouteSnapshot){var n=t.component;if(!e(n))throw new Error("ActivatedRouteSnapshot component is not a PlaceComponent, got "+n);return Reflect.getMetadata(rn,n)}return Reflect.getMetadata(rn,t)},t.injectDefinition=function(t,e){Reflect.defineMetadata(rn,e,t)}}(t.PlaceComponent||(t.PlaceComponent={}));var sn=function(){function t(t,e,n){this.component=t,this.navigationSession=e,this.isPrimaryComponent=n,w.assert.notNil(t)}return Object.defineProperty(t.prototype,"routerInteractionAdapter",{get:function(){return this.navigationSession.interactionServiceAdapter},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlService",{get:function(){return this.navigationSession.urlService},enumerable:!1,configurable:!0}),t.prototype.canDeactivate=function(t,e){return z(this,void 0,void 0,(function(){return G(this,(function(n){return this.canDeactivatePromise||(this.canDeactivatePromise=this.canDeactivateComponent(t,e)),[2,this.canDeactivatePromise]}))}))},t.prototype.canDeactivateComponent=function(t,e){return z(this,void 0,void 0,(function(){var t,n;return G(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(),M.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}(),cn=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 B(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"urlService",{get:function(){return this.context.urlService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"interactionServiceAdapter",{get:function(){return this.context.routerInteractionAdapter},enumerable:!1,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:!1,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 w.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){w.Logger.get(this).info("WORK-AROUND: Updating browser location after pop state - see angular issue #13586"),this.urlService.resetBrowserLocation(t,{replaceCurrent:!0}),this.urlService.resetBrowserLocation(e,{replaceCurrent:!1})},e.prototype.ignore=function(t,e){e=e?" -> "+e:""},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 z(this,void 0,void 0,(function(){var o,i;return G(this,(function(r){return(o=this.componentDeactivationHandlers.get(t))||(i=0===this.componentDeactivationHandlers.size,o=new sn(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){w.Logger.get(this).info("back button pressed during navigation session interaction promise");var e=this.detachCanDeactivateInteractionContext();w.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}(w.GarbageCollector),ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.prototype.handleCanDeactivateCancelledEventScenario=function(t){S.lang.illegalState("onCanDeactivateInteractionCancelled not supported for event clean up states")},e}(cn),un=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 B(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 z(this,void 0,void 0,(function(){return G(this,(function(t){return[2,!1]}))}))},e}(ln),pn=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.isPopState=!0,o.debugPropertyKeys=["startingUrl","poppedHistoryUrl"],o.finished=w.Deferred.defer(),o}return B(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){w.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:!1,configurable:!0}),e}(cn),dn=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.wasTriggeredByPopState=o,i.isPopState=!1,i}return B(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(N.default.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)||S.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 pn(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){S.lang.methodNotSupported()},e}(cn),fn=function(t){function e(){var e=t.apply(this,X(arguments))||this;return e.isPopState=!1,e}return B(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 dn(this.context,this.startingUrl,!1)):this.context.finishRoutingSession(this.getVisits())},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.context.transitionTo(new un(this.context,this.startingUrl,t))},e}(cn),hn=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 B(e,t),e.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation=function(){t.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation.call(this,this.poppedHistoryUrl,this.startingUrl)},e}(cn),mn=function(t){function e(e,n,o){return t.call(this,e,n,o)||this}return B(e,t),e.prototype.onRouterCancelled=function(t){this.repairBrowserHistoryAndUrlAfterGuardCancellation(),this.context.transitionTo(new dn(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}(hn),yn=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 B(e,t),e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){t.url===this.clickedLinkUrl?this.context.transitionTo(new bn(this.context,this.startingUrl,this.clickedLinkUrl)):this.context.transitionTo(new Cn(this.context,this.startingUrl,this.clickedLinkUrl))},e.prototype.canDeactivatePlace=function(t,e,n){return z(this,void 0,void 0,(function(){return G(this,(function(t){return[2,!1]}))}))},e}(ln);q([w.Trace(),W("design:type",Function),W("design:paramtypes",[D.NavigationStart]),W("design:returntype",void 0)],yn.prototype,"onRouterStarted",null),q([w.Trace(),W("design:type",Function),W("design:paramtypes",[D.NavigationCancel]),W("design:returntype",void 0)],yn.prototype,"onRouterCancelled",null);var gn,vn,bn=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.clickedLinkUrl=o,i.isPopState=!1,i.debugPropertyKeys=["idle","startingUrl","clickedLinkUrl","popStateEventUrl"],i}return B(e,t),e.prototype.onRouterEnd=function(t){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.onRouterCancelled=function(t){this.popStateEventUrl&&this.finaliseRouting()},e.prototype.finaliseRouting=function(){return this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl,this.startingUrl),this.context.finishRoutingSession()},e.prototype.canDeactivatePlace=function(t,e,n){return z(this,void 0,void 0,(function(){return G(this,(function(t){return[2,!1]}))}))},e}(ln),Cn=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.clickedLinkUrl=o,i.isPopState=!1,i.debugPropertyKeys=["idle","startingUrl","clickedLinkUrl","popStateEventUrl"],i}return B(e,t),e.prototype.onRouterEnd=function(t){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.onRouterCancelled=function(t){this.popStateEventUrl&&this.finaliseRouting()},e.prototype.finaliseRouting=function(){return this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl,this.startingUrl),this.context.finishRoutingSession()},e.prototype.canDeactivatePlace=function(t,e,n){return z(this,void 0,void 0,(function(){return G(this,(function(t){return[2,!1]}))}))},e}(ln),In=function(t){function e(){var e=t.apply(this,X(arguments))||this;return e.isPopState=!1,e.debugPropertyKeys=["startingUrl","urlAfterRedirects"],e}return B(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 yn(this.context,this.startingUrl,t))},e}(cn);gn=t.NavigationContext||(t.NavigationContext={}),vn=function(t,e,n,o,i){this.urlService=t,this.routerInteractionAdapter=e,this.navigateByUrl=n,this.transitionTo=o,this.finishRoutingSession=i},gn.Impl=vn;var wn,Pn,Mn,xn,Rn,Sn=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 B(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 z(this,void 0,void 0,(function(){return G(this,(function(t){return[2,!1]}))}))},e}(ln),An=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(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 Sn(this.context,this.startingUrl,t,this.poppedHistoryUrl))},e}(hn);wn=t.PlaceAccessGuard||(t.PlaceAccessGuard={}),Pn=function(){function t(){}return t.prototype.isAuthenticated=function(){return!0},t.prototype.isAuthorised=function(t){return!0},t}(),wn.NoAuth=Pn,t.PlaceHistory=function(){function t(){this._archive=new Map,this.placeHistoryDepth=4}return t.prototype.notifyNavigationStarted=function(){this._activeVisits&&(this.archive(this._activeVisits.visits),this._previousVisits=this._activeVisits)},t.prototype.notifyNavigationFinished=function(e){this._activeVisits=new t.VisitRecord(e)},t.prototype.updateVisit=function(t){w.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 N.default.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=N.default.first(n);o&&!t.hasChangedFrom(o)||(n.unshift(t),e.setHistory(t.placeDefinition,n.slice(0,e.placeHistoryDepth)))}))},t}(),t.PlaceHistory.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t.PlaceHistory},token:t.PlaceHistory,providedIn:"root"}),t.PlaceHistory.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.PlaceHistory.ctorParameters=function(){return[]},Mn=t.PlaceHistory||(t.PlaceHistory={}),xn=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}(),Mn.VisitRecord=xn,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=X(this.getPrimarySegments(n)),i=this.getSegmentsFor(e),r=o.findIndex((function(t){return t.path===i[0].path}));return o.splice.apply(o,X([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 D.UrlSegment(t.placeDefinition.path,t.placeDefinition.getFormattedRouteParameters(t)),new D.UrlSegment(t.placeDefinition.getFormattedRouteId(t),{})]:[new D.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 N.default.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}(),(Rn=t.UrlSnapshot||(t.UrlSnapshot={})).INTERACTION_QUERY_PARAM="aup-interactions",Rn.INTERACTION_ID_SEPARATOR="--",Rn.parseInteractionIds=function(t){return t.split(Rn.INTERACTION_ID_SEPARATOR)},Rn.createPathIdFor=function(t){return t.join(Rn.INTERACTION_ID_SEPARATOR)};var On,Tn,Dn=function(){function e(t,e,n){this.angularRouter=t,this.angularLocation=e,this.urlSerializer=n}return e.prototype.parseUrl=function(e){return new t.UrlSnapshot(this.urlSerializer,e)},e.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(""))},e.prototype.getCurrentRouterUrl=function(){return this.angularRouter.routerState?this.angularRouter.routerState.snapshot.url:null},e.prototype.getCurrentLocationUrl=function(){return this.angularLocation.path()},e.prototype.getCurrentLocationUrlSnapshot=function(){return this.parseUrl(this.getCurrentLocationUrl())},e.prototype.getCurrentRouterSnapshot=function(){return this.parseUrl(this.getCurrentRouterUrl())},e.prototype.getActiveInteractionIdsFromUrl=function(t){return this.parseUrl(t).getInteractionIds()},e.prototype.hasActiveInteractions=function(t){return this.getActiveInteractionIdsFromUrl(t).length>0},e.prototype.resetBrowserLocation=function(t,e){e.replaceCurrent?this.angularLocation.replaceState(t):this.angularLocation.go(t)},e.prototype.back=function(){this.angularLocation.back()},e}();Dn.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new Dn(n.ɵɵinject(D.Router),n.ɵɵinject(e.Location),n.ɵɵinject(D.UrlSerializer))},token:Dn,providedIn:"root"}),Dn.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],Dn.ctorParameters=function(){return[{type:D.Router},{type:e.Location},{type:D.UrlSerializer}]},t.PlaceRouter=function(e){function n(o,i,r,a,s){var c=e.call(this)||this;c.angularRouter=o,c.angularLocation=i,c.interactionService=r,c.urlService=a,c.placeHistory=s,c.navigationSessionModel=new w.MutableValueModel,c._activeVisits=new w.MutableListModel,c.sessionFinishedJobs=[],c._accessGuard=(new w.DelegatingValueModel).withDefault(new t.PlaceAccessGuard.NoAuth),window.Cypress&&(window["aup.PlaceRouter"]=c),c.routerInteractionAdapter=r.registerPlaceRouter(c),c.navigationContext=new t.NavigationContext.Impl(c.urlService,c.routerInteractionAdapter,(function(t,e){return c.navigateByUrl(t,e)}),(function(t){c.transitionTo(t)}),(function(t){c.routingSessionFinished(t)}));var l=w.Dsl.disposeWith(c),u=l.chain;l.valueOf,l.before,l.when,l.after,l.observe,l.switchOn;c.navigationInProgress=u(c.navigationSessionModel).isNotNil();var p=u(c.interactionService.active).map((function(t){return t?"IdleDuringInteraction":"Idle"}));return c.navigationSessionName=u(c.navigationSessionModel).pluck("name").otherwise(p),w.DebugContext.tag(c._activeVisits,"PlaceRouter.activeVisits"),c.state=u(c._activeVisits).reduce((function(t){return new n.State(t)})),o.events.subscribe((function(t){t instanceof D.NavigationStart&&("popstate"===t.navigationTrigger?c.onPopState(t):c.onRouterStarted(t)),t instanceof D.NavigationEnd&&c.onRouterEnd(t),t instanceof D.NavigationError&&c.onRouterError(t),t instanceof D.NavigationCancel&&c.onRouterCancelled(t)})),i.onUrlChange((function(t){return c.onUrlChanged(t)})),c}return B(n,e),Object.defineProperty(n.prototype,"accessGuard",{get:function(){return this._accessGuard.readonly},enumerable:!1,configurable:!0}),n.prototype.configureAuth=function(t,e){var n=new w.MutableValueModel;new w.Binding(n,t,{toRight:function(t){return w.lang.illegalState("hackyMutableModel is read only")},toLeft:function(t){return t}}).writeLeft(),this._accessGuard.setDelegate(n),this.redirections=e},n.prototype.getAuthenticationFailureRedirect=function(t,e){return this.redirections.onAuthenticationFailure(t,e)},Object.defineProperty(n.prototype,"navigationSession",{get:function(){return this.navigationSessionModel.value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentSession",{get:function(){return this.navigationSessionModel.value},enumerable:!1,configurable:!0}),n.prototype.isNavigating=function(){return this.navigationInProgress.value},n.prototype.waitUntilIdle=function(){var t=this,e=w.Dsl.disposeWith(this).when;return new Promise((function(n){e(t.navigationInProgress).becomesFalsey((function(){return n(t)}),{initialValue:"evaluate",once:!0})}))},n.prototype.onPopState=function(t){if(w.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 mn(this.navigationContext,n,e):new An(this.navigationContext,n,e);this.transitionTo(o)}},n.prototype.onRouterStarted=function(t){w.assert.isFalsey("popstate"===t.navigationTrigger);this.interactionService.isActive();this.currentSession?this.currentSession.onRouterStarted(t):this.transitionTo(this.createNavigationSession(this.urlService.getCurrentRouterUrl()))},n.prototype.onUrlChanged=function(t){this.currentSession?this.currentSession.onUrlChange(t):console.log("FYI: url changed without a navigation session in progress")},n.prototype.onRouterCancelled=function(t){this.currentSession.onRouterCancelled(t)},n.prototype.onRouterError=function(t){this.currentSession.onRouterError(t)},n.prototype.onRouterEnd=function(t){this.currentSession.onRouterEnd(t)},n.prototype.navigate=function(t,e){var n=this;return this.doNavigation(t,(function(o){return z(n,void 0,void 0,(function(){var n;return G(this,(function(o){switch(o.label){case 0:return n=X([t.placeDefinition.path],this.createRouteParameters(t)),[4,this.angularRouter.navigate(n,{relativeTo:e?e.relativeTo:null})];case 1:return o.sent(),[2]}}))}))}))},n.prototype.doNavigation=function(t,e){return z(this,void 0,void 0,(function(){var n;return G(this,(function(o){switch(o.label){case 0:this.navigationInProgress.value&&w.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 D.NavigationEnd(-1,"","")),[7];case 4:return[2]}}))}))},n.prototype.navigateByUrl=function(t,e){return this.angularRouter.navigateByUrl(t.urlTree,e)},Object.defineProperty(n.prototype,"activeVisits",{get:function(){return this._activeVisits.readonly},enumerable:!1,configurable:!0}),n.prototype.pushVisitChangesToRoute=function(t,e){return z(this,void 0,void 0,(function(){var n=this;return G(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]}))}))},n.prototype.createNavigationSession=function(t){return this.interactionService.isActive()?new fn(this.navigationContext,t):new In(this.navigationContext,t)},n.prototype.transitionTo=function(t){var e=this.navigationSessionModel.value;e||this.placeHistory.notifyNavigationStarted(),w.assert.isTruthy(t!==e),this.navigationSessionModel.value=t,e&&e.dispose(),t.notifyActive()},n.prototype.routingSessionFinished=function(t){t&&t.length>0&&(w.assert.isTruthy(this.navigationInProgress.value),this.placeHistory.notifyNavigationFinished(t),this._activeVisits.value=t),this.currentSession.dispose(),this.navigationSessionModel.value=null,this.sessionFinishedJobs.forEach((function(t){return t()})),this.sessionFinishedJobs=[]},n.prototype.runAfterRoutingSessionFinishes=function(t){w.assert.isTruthy(this.navigationInProgress),this.sessionFinishedJobs.push(t)},n.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 dn(t.navigationContext,t.urlService.getCurrentRouterUrl(),!1);t.transitionTo(n)}))}))}return new Promise((function(e,n){t.runAfterRoutingSessionFinishes(e);var o=new dn(t.navigationContext,t.urlService.getCurrentRouterUrl(),!1);t.transitionTo(o)}))},n.prototype.createRouteParameters=function(t){var e=t.placeDefinition;return t.hasRouteId()?[e.getFormattedRouteId(t),e.getFormattedRouteParameters(t)]:[e.getFormattedRouteParameters(t)]},n}(w.GarbageCollector),t.PlaceRouter.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t.PlaceRouter(n.ɵɵinject(D.Router),n.ɵɵinject(e.Location),n.ɵɵinject(t.InteractionService),n.ɵɵinject(Dn),n.ɵɵinject(t.PlaceHistory))},token:t.PlaceRouter,providedIn:"root"}),t.PlaceRouter.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.PlaceRouter.ctorParameters=function(){return[{type:D.Router},{type:e.Location},{type:t.InteractionService},{type:Dn},{type:t.PlaceHistory}]},On=t.PlaceRouter||(t.PlaceRouter={}),Tn=function(){function t(t){this.activeVisits=t}return t.prototype.isPlaceActive=function(t){return!!this.getVisitFor(t)},t.prototype.getVisitFor=function(t){return this.activeVisits.find((function(e){return e.placeDefinition===t}))},t}(),On.State=Tn;var En=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!M.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,Object.assign(Object.assign({},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=M.isEqual(this.placeDefinition.getFormattedRouteParameters(this,!0),this.placeDefinition.getFormattedRouteParameters(t,!0));return!e||!n},t.prototype.hasChangedFrom=function(t){return!M.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}(),Fn=new n.InjectionToken("AUP_PLACE_CONFIG"),_n=function(){};_n.decorators=[{type:n.Component,args:[{selector:"aup-not-authorised-notice",template:"<p>You are not authorised to access this page</p>\n",styles:[":host{display:flex;flex-direction:column;align-items:center;justify-content:center}"]}]}],_n.ctorParameters=function(){return[]};var kn=V.style({position:"absolute",top:"0",left:"0",bottom:"0",right:"0"}),Vn=[V.query(":enter, :leave",kn,{optional:!0}),V.group([V.query(":enter",[V.style({transform:"translateX(-100%)"}),V.animate("{{duration}} ease-out",V.style({transform:"translateX(0%)"}))],{optional:!0}),V.query(":leave",[V.style({transform:"translateX(0%)"}),V.animate("{{duration}} ease-out",V.style({transform:"translateX(100%)"}))],{optional:!0})])],Ln=[V.query(":enter, :leave",kn,{optional:!0}),V.group([V.query(":enter",[V.style({transform:"translateX(100%)",minHeight:"1px"}),V.animate("{{duration}} ease-out",V.style({transform:"translateX(0%)"}))],{optional:!0}),V.query(":leave",[V.style({transform:"translateX(0%)"}),V.animate("{{duration}} ease-out",V.style({transform:"translateX(-100%)",minHeight:"1px"}))],{optional:!0})])];function Nn(t){return V.trigger("routeAnimations",[V.transition(":increment",Ln,{params:{duration:t}}),V.transition(":decrement",Vn,{params:{duration:t}})])}var Hn=Nn("0.3s"),jn=new n.InjectionToken("AUP_UNAUTHORISED_PLACE_COMPONENT"),Un=function(t){function e(e,o,i,r,a,s){var c=t.call(this)||this;c.router=e,c.placeRouter=o,c.placeConfig=i,c.cdr=s,c.placeChanged=new n.EventEmitter,c.outletActivated=new w.MutableValueModel(!1),c._activatedRouteModel=new w.MutableValueModel,c._activePlaceModel=new w.MutableValueModel,c.initialPlaceIndex=null,c._isPushingVisitToRoute=new w.MutableValueModel(!1),c.isVeryFirstLoad=!0;var u=w.Dsl.disposeWith(c),p=u.chain,d=u.valueOf,f=(u.before,u.when);u.after,u.observe,u.switchOn;c.parentOutletModel=new w.MutableValueModel(a);var h=p(c.parentOutletModel).pullValueModel((function(t){return t.activePlaceModel})).pluck("placeDefinition").pluckList("children").pluck("component"),m=p(c.activePlaceModel).map((function(t){return t.constructor}));return c.placesInAnimationOrder=p(c.customPlaceAnimationOrderModel).otherwise(h),c.activePlaceAnimationPosition=c.placesInAnimationOrder.reduce((function(t){var e=0;return m.value&&(e=t.indexOf(m.value),M.isNil(c.initialPlaceIndex)&&(c.initialPlaceIndex=e)),M.isNil(c.initialPlaceIndex)?0:e-c.initialPlaceIndex}),{dependsOn:m}),c.animationSupported=c.placesInAnimationOrder.count().isGreaterThan(0),c.animationEnabled=d.all(c.animateModel,c.animationSupported).areTruthy(),c._activePlaceDefinition=p(c._activePlaceModel).pluck("placeDefinition"),c.routerVisitModel=p(o.state).map((function(t){return t.getVisitFor(c._activePlaceDefinition.value)}),{dependsOn:c._activePlaceDefinition}),c.navigationInProgress=p(c.placeRouter.navigationInProgress),f(c.navigationInProgress).becomesFalsey((function(){c.checkStateAndInitialise()})),f(c.outletActivated).becomesTruthy((function(){c.checkStateAndInitialise()})),p(c._activePlaceModel).postponeWhile(c.navigationInProgress).subscribe((function(t){return c.placeChanged.emit(t)})),c.authorised=p(o.accessGuard).map((function(t){return t.isAuthorised(c._activePlaceDefinition.value)}),{dependsOn:c._activePlaceDefinition,postponeWhile:p(c._activePlaceDefinition).isNil()}).otherwise(!0),c.notAuthorisedNoticePortal=new l.ComponentPortal(null!=r?r:_n),c}return B(e,t),e.prototype.ngOnInit=function(){},e.prototype.getAnimationOrder=function(){return this.activePlaceAnimationPosition.value},Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.placeConfig&&this.placeConfig.animationDuration?this.placeConfig.animationDuration:"500ms"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAuthorised",{get:function(){return this.authorised.value},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"activePlaceModel",{get:function(){return this._activePlaceModel.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteModel",{get:function(){return this._activatedRouteModel.readonly},enumerable:!1,configurable:!0}),e.prototype.onOutletActivated=function(t,e){this._activatedRouteModel.value=t.activatedRoute,this._activePlaceModel.value=e,this.validateAnimationState(e),this.outletActivated.value=!0,this.checkStateAndInitialise()},e.prototype.validateAnimationState=function(t){this.animateModel.value&&(this.placesInAnimationOrder.length<1?console.error("PlaceOutlet.animate === true but placeAnimationOrder has not been set. Animation is disabled."):this.placesInAnimationOrder.query().includes(t.placeDefinition.component)||console.error("PlaceOutlet.animate === true but placeAnimationOrder doesn't contain "+t.placeDefinition.component.name+"."))},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&&w.lang.illegalState("wrong visit!!!"),this.initialisePlace(t,e),this.cdr.detectChanges())},e.prototype.initialisePlace=function(t,e){var n=this,o=new w.MutableValueModel(t);w.DebugContext.tag(o,"PlaceOutletComponent["+e.constructor.name+")].visitModel"),e.initialiseVisit(t,(function(t,e){n.pushVisitChangeToRoute(e,t)}));var i=function(){n._activePlaceModel.value._notifyActive(!0)};!this.animationEnabled.value||this.isVeryFirstLoad?(this.isVeryFirstLoad=!1,i()):this.onAnimationFinishedJob=i;var r=w.Dsl.disposeWith(e),a=r.when,s=(r.chain,r.valueOf);a(this.routerVisitModel).changes((function(t){e.updateVisit(t)}),{unless:s.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.onAnimationFinishedJob&&(this.onAnimationFinishedJob(),this.onAnimationFinishedJob=void 0)},e}(Y);Un.decorators=[{type:n.Component,args:[{selector:"aup-place-outlet",template:'<ng-container *ngIf="animationEnabled.value">\n <div class="router-outlet-container"\n 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="!animationEnabled.value">\n <div class="router-outlet-container"\n cdkScrollable>\n <router-outlet #routerOutlet="outlet"\n (activate)="onOutletActivated(routerOutlet, $event)"\n (deactivate)="onOutletDeactivated()">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class="not-authorised-component-container" *ngIf="!authorised.value">\n <ng-template [cdkPortalOutlet]="notAuthorisedNoticePortal"></ng-template>\n</div>\n',animations:[Hn],styles:[":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:scroll}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}"]}]}],Un.ctorParameters=function(){return[{type:D.Router},{type:t.PlaceRouter},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Fn]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[jn]}]},{type:Un,decorators:[{type:n.SkipSelf},{type:n.Optional}]},{type:n.ChangeDetectorRef}]},Un.propDecorators={animate:[{type:n.Input}],animateModel:[{type:n.Input}],customPlaceAnimationOrderModel:[{type:n.Input,args:["placeAnimationOrderModel"]}],customPlaceAnimationOrder:[{type:n.Input,args:["placeAnimationOrder"]}],placeChanged:[{type:n.Output}],routerOut:[{type:n.ViewChild,args:["routeOutlet",{static:!0}]}],isAuthorised:[{type:n.HostBinding,args:["class.authorised"]}]},q([w.StoreInValueModel("animateModel"),W("design:type",Boolean)],Un.prototype,"animate",void 0),q([w.TrackExternal({defaultValue:!0}),W("design:type",w.ValueModel)],Un.prototype,"animateModel",void 0),q([w.TrackExternal(),W("design:type",w.ListModel)],Un.prototype,"customPlaceAnimationOrderModel",void 0),q([w.StoreInListModel("customPlaceAnimationOrderModel"),W("design:type",Array)],Un.prototype,"customPlaceAnimationOrder",void 0);var Bn=function(e){function n(n){var o=e.call(this)||this;o.placeRouter=n,o._activePlaceComponent=new w.DelegatingValueModel;var i=w.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)})).select((function(t){var e=n.accessGuard.value,o=n.state.value;return e.isAuthorised(t)||o.isPlaceActive(t)}),{dependsOn:[n.accessGuard,n.state]}),o.commandFactory=w.Command.createFactory((function(t){o.placeOutlet.navigate(new En(t))})),a(o.placeOutletModel).changes((function(t){setTimeout((function(){return o._activePlaceComponent.setDelegate(t?t.activePlaceModel:null)}))})),o.activePlaceDefinition=r(o._activePlaceComponent).pluck("placeDefinition"),o}return B(n,e),n.prototype.getNavigationFace=function(t){var e=t.getPlaceData("nav");return{text: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)}}},n.prototype.isActive=function(t){return this.activePlaceDefinition.query().equals(t)},n.prototype.ngOnInit=function(){},n}(Y);Bn.decorators=[{type:n.Component,args:[{template:""}]}],Bn.ctorParameters=function(){return[{type:t.PlaceRouter}]},Bn.propDecorators={places:[{type:n.Input}],placesModel:[{type:n.Input}],placeOutlet:[{type:n.Input}],placeOutletModel:[{type:n.Input}]},q([w.StoreInListModel("placesModel"),W("design:type",Array)],Bn.prototype,"places",void 0),q([w.TrackExternal(),W("design:type",w.ListModel)],Bn.prototype,"placesModel",void 0),q([w.StoreInValueModel("placeOutletModel"),W("design:type",Un)],Bn.prototype,"placeOutlet",void 0),q([w.TrackExternal(),W("design:type",w.ValueModel)],Bn.prototype,"placeOutletModel",void 0),q([P.Memoize(),W("design:type",Function),W("design:paramtypes",[on]),W("design:returntype",Object)],Bn.prototype,"getNavigationFace",null);var qn=function(t){function e(e){return t.call(this,e)||this}return B(e,t),e}(Bn);qn.decorators=[{type:n.Component,args:[{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]="getNavigationFace(placeDefinition).tooltip()">\n <aup-command-face [faces]="[getNavigationFace(placeDefinition)]"></aup-command-face>\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{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]}]}],qn.ctorParameters=function(){return[{type:t.PlaceRouter}]};var Wn=function(t){function e(e){var n=t.call(this,e)||this;return n.expanded=!1,n}return B(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}(Bn);Wn.decorators=[{type:n.Component,args:[{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]="getNavigationFace(placeDefinition).tooltip()">\n <aup-icon *ngIf="getNavigationFace(placeDefinition).icon()" [icon]="getNavigationFace(placeDefinition).icon()"></aup-icon>\n <span class="expanded-only">{{getNavigationFace(placeDefinition).text()}}</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,hsla(0,0%,100%,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)}"]}]}],Wn.ctorParameters=function(){return[{type:t.PlaceRouter}]},Wn.propDecorators={expanded:[{type:n.HostBinding,args:["class.expanded"]}],navEndTemplate:[{type:n.ContentChild,args:["navEndTemplate"]}]};var zn=function(t){function e(e){return t.call(this,e)||this}return B(e,t),e}(Bn);zn.decorators=[{type:n.Component,args:[{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]="getNavigationFace(placeDefinition).tooltip()">\n <aup-command-face [faces]="[getNavigationFace(placeDefinition)]"></aup-command-face>\n </a>\n</nav>\n',styles:[""]}]}],zn.ctorParameters=function(){return[{type:t.PlaceRouter}]};var Gn=function(){};Gn.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,c.BrowserAnimationsModule,g.MatProgressSpinnerModule,D.RouterModule,s.MatTabsModule,F.MatListModule,b.MatTooltipModule,m.MatIconModule,tt,O.FlexModule,Ee,l.PortalModule],declarations:[Un,zn,qn,Wn,Bn,_n],entryComponents:[],exports:[Un,zn,qn,Wn,Bn],providers:[]}]}];var Kn=function(){};Kn.decorators=[{type:n.NgModule,args:[{declarations:[],imports:[e.CommonModule,c.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule,tt,Ee,Gn,nn],exports:[nn,Gn,tt,Ee,At]}]}];var Xn=V.style({opacity:0,height:"0",paddingTop:"0",paddingBottom:"0"}),$n=V.trigger("slideDownOnEnter",[V.transition(":enter",[Xn,V.animate("{{duration}}")],{params:{duration:"100ms"}}),V.transition(":leave",[V.animate("{{duration}}",Xn)],{params:{duration:"100ms"}})]),Yn=V.style({opacity:0,width:"0",paddingLeft:"0",paddingRight:"0"}),Jn=V.trigger("slideRightOnEnter",[V.transition(":enter",[Yn,V.animate("{{duration}}")],{params:{duration:"100ms"}}),V.transition(":leave",[V.animate("{{duration}}",Yn)],{params:{duration:"100ms"}})]),Zn=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 w.GarbageCollector,S.assert.notNil(o),r}return B(e,t),e.prototype.cancelActiveActivity=function(){return this.activityContainer.cancelActiveActivity()},e.prototype.dispose=function(){this.isActive()&&w.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;S.assert.isNil(this._currentActivityRef);var i=Object.assign(Object.assign({},this.config),{disableClose:n,panelClass:"dialog-interaction-context"}),r=this.dialogService.open(Be,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}(He),Qn=new n.InjectionToken("DIALOG_INTERACTION_SERVICE_DEFAULTS"),to=function(t){function e(e,n,o){var i=t.call(this)||this;return i.dialogService=e,i.dialogServiceDefaults=n,i.matDialogDefaultConfig=o,S.assert.notNil(e),i}return B(e,t),e.prototype.createInteractionContext=function(t,e,n){var o=Object.assign(Object.assign({autoFocus:!1,hasBackdrop:!0,closeOnNavigation:!1},this.matDialogDefaultConfig),this.dialogServiceDefaults);return new Zn(t,e,this.dialogService,o)},e}(Ge);to.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new to(n.ɵɵinject(T.MatDialog),n.ɵɵinject(Qn,8),n.ɵɵinject(T.MAT_DIALOG_DEFAULT_OPTIONS,8))},token:to,providedIn:"root"}),to.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],to.ctorParameters=function(){return[{type:T.MatDialog},{type:T.MatDialogConfig,decorators:[{type:n.Optional},{type:n.Inject,args:[Qn]}]},{type:T.MatDialogConfig,decorators:[{type:n.Optional},{type:n.Inject,args:[T.MAT_DIALOG_DEFAULT_OPTIONS]}]}]};var eo=function(){function t(t,e){this.paramMaps=[t].concat((e||[]).map((function(t){return new no(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:!1,configurable:!0}),t}();q([P.Memoize(),W("design:type",Array),W("design:paramtypes",[])],eo.prototype,"keys",null);var no=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:!1,configurable:!0}),t}(),oo=function(){function t(){}return t.prototype.canActivate=function(t,e){return z(this,void 0,void 0,(function(){return G(this,(function(t){return[2,!0]}))}))},t}();oo.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new oo},token:oo,providedIn:"root"}),oo.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],oo.ctorParameters=function(){return[]};var io,ro,ao,so,co=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 z(this,void 0,void 0,(function(){var e,n,o,i,r,a,s,c,l;return G(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(l=u.sent(),n.hasChanged(o,l))return[2,t.replace(n,l)];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],c=t.getParameter(s.name),[4,s.sanitise(c,r,this.placeHistory,this.injector,this.navigationSession.isPopState)]):[3,6];case 4:l=u.sent(),s.hasChanged(c,l)&&(r=r.replace(s,l)),u.label=5;case 5:return a++,[3,3];case 6:return[2,r.hasChangedFrom(t)?r:t]}}))}))},t}(),lo=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(e,n){return z(this,void 0,void 0,(function(){var o,i,r,a,s=this;return G(this,(function(c){switch(c.label){case 0:return t.PlaceComponent.isPlaceComponentConstructor(e.component)?(o=t.PlaceComponent.getDefinition(e.component)).authenticate?[4,this.placeRouter.accessGuard.value.isAuthenticated()]:[3,2]:[3,4];case 1:if(!c.sent())return i=this.placeRouter.getAuthenticationFailureRedirect(e,n),(r=this.getPlaceDefinition(i)).authenticate&&w.lang.illegalState("handleNotAuthenticated hook returned place "+r.component.name+" that requires authentication."),[2,this.createUrlTree(i)];c.label=2;case 2:return[4,this.cleanInteractionState(e,n,(function(){return z(s,void 0,void 0,(function(){var t,i,r,a,s;return G(this,(function(c){switch(c.label){case 0:return t=new eo(e.paramMap,e.url),i=o.parseRouteParams(t),r=this.placeRouter.navigationSession,a=r.getVisitFor(o)||new En(o,i),[4,new co(r,e,this.router,this.placeHistory,this.injector).sanitise(a.mergeRouteParameters(i))];case 1:return s=c.sent(),r.storeVisit(s),a.hasRoutingChangedFrom(s)?[2,this.urlService.parseUrl(n.url).updateVisitSegments(s)]:[2,!0]}}))}))}))];case 3:return[2,(a=c.sent())instanceof t.UrlSnapshot?a.urlTree:a];case 4:return[2,w.lang.illegalState("expected component to be an instance of PlaceComponent, got "+e.component)]}}))}))},e.prototype.canDeactivate=function(e,n,o,i){return z(this,void 0,void 0,(function(){var n,r,a;return G(this,(function(s){switch(s.label){case 0:return e?(n=this.urlService.parseUrl(o.url),r=this.urlService.parseUrl(i.url),[4,this.placeRouter.navigationSession.canDeactivatePlace(e,n,r)]):[2,!0];case 1:return[2,(a=s.sent())instanceof t.UrlSnapshot?a.urlTree:a]}}))}))},e.prototype.getPlaceDefinition=function(e){return e instanceof En?e.placeDefinition:t.PlaceComponent.getDefinition(e)},e.prototype.createUrlTree=function(e){var n=e instanceof En?e:new En(t.PlaceComponent.getDefinition(e),{});return this.urlService.createUrlSnapshot(n).urlTree},e.prototype.cleanInteractionState=function(t,e,n){return z(this,void 0,void 0,(function(){var t;return G(this,(function(o){return t=this.urlService.parseUrl(e.url),!this.interactionService.isActive()&&t.hasInteractions()?[2,t.removeInteractionIds()]:[2,n()]}))}))},e}();function uo(t,e,n,o,i){var r={backingModel:n,binding:null},a=o+"("+t.constructor.name+"."+e.toString()+")";w.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 w.Binding(r.backingModel,t,{toLeft:w.Functions.identity,toRight:w.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()))}})}lo.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new lo(n.ɵɵinject(D.Router),n.ɵɵinject(Dn),n.ɵɵinject(t.PlaceRouter),n.ɵɵinject(t.PlaceHistory),n.ɵɵinject(t.InteractionService),n.ɵɵinject(n.INJECTOR))},token:lo,providedIn:"root"}),lo.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],lo.ctorParameters=function(){return[{type:D.Router},{type:Dn},{type:t.PlaceRouter},{type:t.PlaceHistory},{type:t.InteractionService},{type:n.Injector}]},io=t.Formatter||(t.Formatter={}),ro=function(){function t(){}return t.prototype.format=function(t){return t},t.prototype.parse=function(t){return t},t}(),ao=function(){function t(){}return t.prototype.format=function(t){return N.default.isNumber(t)&&!N.default.isNaN(t)?""+t:null},t.prototype.parse=function(t){var e=Number.parseFloat(t);return N.default.isNaN(e)?null:e},t}(),so=function(){function t(){}return t.prototype.format=function(t){return t?"true":"false"},t.prototype.parse=function(t){return"true"===t},t}(),io.STRING=new ro,io.NUMBER=new ao,io.BOOLEAN=new so,t.ACTIVITY_DATA=_e,t.AUP_PLACE_CONFIG=Fn,t.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT=jn,t.AbstractInputActivity=Ze,t.AbstractInputComponent=gt,t.AbstractInteractionContext=He,t.AbstractListInputComponent=vt,t.AbstractPlaceNavigationComponent=Bn,t.AbstractPopStateNavigation=hn,t.AbstractPopupMenuComponent=ct,t.AbstractValueInputComponent=bt,t.Activity=ke,t.ActivityActionsComponent=Fe,t.ActivityBodyComponent=qe,t.ActivityContainerComponent=Be,t.ActivityOutletComponent=Ue,t.ActivityRef=je,t.ActivityTitleComponent=We,t.AddItemInteractionContextComponent=$e,t.AlertDialogComponent=Ve,t.AngularUiPowerupsModule=Kn,t.AutocompleteInputComponent=Ct,t.BusyOverlayComponent=et,t.CELL_EDITOR_PORTAL=Ut,t.CELL_RENDERER_PORTAL=jt,t.CardContainerComponent=nt,t.CellEditorPortalRef=Xt,t.CellHeaderPortalRef=zt,t.CellPortalRef=Wt,t.CellRendererPortalRef=Gt,t.CheckboxInputComponent=It,t.ColumnModel=oe,t.ColumnTemplateDirective=he,t.CommandComponent=at,t.CommandDirective=$,t.CommandFaceComponent=ot,t.ComponentCellRendererPortalRef=Kt,t.ComponentsModule=Ee,t.ConfirmThenDialogComponent=Le,t.ConfirmationDialogComponent=Ne,t.ConsolidatedParameterMap=eo,t.CustomTemplateColumnModel=ce,t.CustomValueColumnModel=ae,t.DEFINITION_META_DATA_KEY=rn,t.DIALOG_INTERACTION_SERVICE_DEFAULTS=Qn,t.DefaultCellRendererComponent=Yt,t.DefaultHeaderCellRendererComponent=Jt,t.DialogInteractionContext=Zn,t.DialogInteractionContextFactory=to,t.Dimension=Vt,t.DirectivesModule=tt,t.DisposableComponent=Y,t.EditRowControls=Zt,t.EditSession=ue,t.EditorControlColumnModel=se,t.EmptyStateComponent=ht,t.EventCleanUpSession=ln,t.FlattenStrategy=Ae,t.FlexComponent=st,t.FocusBinding=J,t.FocusBindingDirective=Q,t.FocusBindingFactory=Z,t.FocusContainerComponent=mt,t.FocusableComponent=yt,t.HEADER_CELL_RENDERER_PORTAL=Ht,t.InPlaceInteractionContextComponent=Xe,t.InteractionContextTriggerFor=Je,t.InteractionModule=nn,t.InteractionServiceRoutingAdapter=ze,t.LEFT_RIGHT_PLACE_ANIMATION=Hn,t.ListPlaceNavComponent=qn,t.ListPropertyColumnModel=re,t.ModalInteractionContextFactory=Ge,t.MoreMenuComponent=lt,t.MultipleSelectInputComponent=wt,t.Navigating=In,t.NavigatingDuringInteraction=fn,t.NavigationSession=cn,t.NoopAuthGuard=oo,t.NoopComponent=At,t.NotAuthorisedNoticeComponent=_n,t.NumberInputComponent=Pt,t.POPUP_CONTAINER=rt,t.PORTAL_EDITOR_COMPONENT=qt,t.PORTAL_RENDERER_COMPONENT=Bt,t.PaginatorComponent=De,t.PasswordInputComponent=Mt,t.Place=function(e){return function(n){t.PlaceComponent.isPlaceComponentConstructor(n)?t.PlaceComponent.injectDefinition(n,new on(n,e.path,!!M.isNil(e.authenticate)||e.authenticate,M.isNil(e.roles)?[]:e.roles,e.data,t.PlaceComponent.getRouteParameters(n),(e.children||[]).map((function(e){return t.PlaceComponent.getDefinition(e)})))):w.lang.illegalState(n+" must extend PlaceComponent to use the @Place decorator")}},t.PlaceComponentDeactivationHandler=sn,t.PlaceDefinition=on,t.PlaceGuard=lo,t.PlaceModule=Gn,t.PlaceOutletComponent=Un,t.Point=Lt,t.PopStateDuringInteractionNavigation=mn,t.PopStateNavigation=An,t.PopupAwareComponent=it,t.PopupInteractionContextComponent=Ye,t.PopupMenuComponent=ft,t.PopupMenuRendererComponent=dt,t.PropertyColumnModel=ie,t.ROUTE_PARAMETER_LIST_KEY=an,t.RemoveLastInteractionFromUrlNavigationSession=pn,t.ResizeAwareComponent=Nt,t.RouteId=function(e,n){return function(o,i){var r=new t.ParameterDefinition.RouteId(i.toString(),n,e);S.Klass.get(o).addToOwnMetadataList(an,r),uo(o,i,new w.MutableValueModel,"@RouteId",(function(t){return t.query().isNil()}))}},t.ScrollContainerComponent=Ot,t.SectionHeaderComponent=Tt,t.SelectCellRendererComponent=Qt,t.SelectHeaderCellRendererComponent=te,t.SelectInputActivity=tn,t.SelectInputComponent=xt,t.SelectionColumnModel=le,t.SeparatorComponent=pt,t.SidePlaceNavigationComponent=Wn,t.StringInputActivity=Qe,t.StringInputComponent=Rt,t.SwitchCaseComponent=_t,t.SwitchCaseDefaultDirective=Ft,t.SwitchCaseOption=Dt,t.SwitchCaseWhenDirective=Et,t.SynchroniseInteractionContextIdsWithRoute=dn,t.TabbedPlaceNavigationComponent=zn,t.TableCellRendererComponent=me,t.TableComponent=fe,t.TableHeaderCellRendererComponent=ye,t.TableModel=en,t.TableRowMenuComponent=ve,t.TemplateCellRendererPortalRef=$t,t.TextInputComponent=St,t.ToolBarComponent=ut,t.TreeExpansionModel=Pe,t.TreeLabelCellRendererComponent=Ce,t.TreeLabelColumnModel=Me,t.TreeTableComponent=Oe,t.TreeTableModel=Se,t.TreeToListModel=Re,t.UrlService=Dn,t.VerticalFocusContainerComponent=Te,t.Visit=En,t.VisitParameter=function(e){var n=S.Opts.get(e);return function(o,i){var r=new t.ParameterDefinition.ValueParameter(i.toString(),e,n.getOptional("storeInUrl",null));S.Klass.get(o).addToOwnMetadataList(an,r),uo(o,i,new w.MutableValueModel,"@VisitParameter",(function(t){return t.query().isNil()}))}},t.VisitParameterList=function(e){var n=S.Opts.get(e);return function(o,i){var r=new t.ParameterDefinition.ArrayParameter(i.toString(),e,n.getOptional("storeInUrl",null));S.Klass.get(o).addToOwnMetadataList(an,r),uo(o,i,new w.MutableListModel,"@VisitParameterList",(function(t){return t.query().isEmpty()}))}},t.VisitSanitiser=co,t.WaitUntilLeavingInteractionTransitionCancelled=un,t.WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined=yn,t.WaitUntilPopStateDuringCanDeactivateInteractionFinishes=Sn,t.leftRightPlaceAnimation=Nn,t.slideDownOnEnterAnimation=$n,t.slideRightOnEnterAnimation=Jn,t.ɵ0=ee,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/forms"),require("@angular/material/form-field"),require("@angular/material/input"),require("@angular/material/select"),require("@angular/material/tabs"),require("@angular/platform-browser/animations"),require("@angular/cdk/portal"),require("@angular/cdk/scrolling"),require("@angular/material/autocomplete"),require("@angular/material/button"),require("@angular/material/checkbox"),require("@angular/material/divider"),require("@angular/material/icon"),require("@angular/material/menu"),require("@angular/material/progress-spinner"),require("@angular/material/table"),require("@angular/material/tooltip"),require("@fortawesome/angular-fontawesome"),require("@fortawesome/free-solid-svg-icons"),require("@coolon/pectin"),require("@angular/platform-browser"),require("lodash"),require("@typescript-plus/fast-memoize-decorator/dist/src"),require("typescript-string-enums"),require("resize-observer-polyfill"),require("@coolon/typescript-utilities"),require("immer"),require("@angular/flex-layout"),require("@angular/material/dialog"),require("@angular/router"),require("@angular/cdk/overlay"),require("@angular/material/list"),require("@typescript-plus/fast-memoize-decorator"),require("reflect-metadata"),require("@angular/animations"),require("wake-event")):"function"==typeof define&&define.amd?define("@coolon/angular-ui-powerups",["exports","@angular/common","@angular/core","@angular/forms","@angular/material/form-field","@angular/material/input","@angular/material/select","@angular/material/tabs","@angular/platform-browser/animations","@angular/cdk/portal","@angular/cdk/scrolling","@angular/material/autocomplete","@angular/material/button","@angular/material/checkbox","@angular/material/divider","@angular/material/icon","@angular/material/menu","@angular/material/progress-spinner","@angular/material/table","@angular/material/tooltip","@fortawesome/angular-fontawesome","@fortawesome/free-solid-svg-icons","@coolon/pectin","@angular/platform-browser","lodash","@typescript-plus/fast-memoize-decorator/dist/src","typescript-string-enums","resize-observer-polyfill","@coolon/typescript-utilities","immer","@angular/flex-layout","@angular/material/dialog","@angular/router","@angular/cdk/overlay","@angular/material/list","@typescript-plus/fast-memoize-decorator","reflect-metadata","@angular/animations","wake-event"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).coolon=t.coolon||{},t.coolon["angular-ui-powerups"]={}),t.ng.common,t.ng.core,t.ng.forms,t.ng.material.formField,t.ng.material.input,t.ng.material.select,t.ng.material.tabs,t.ng.platformBrowser.animations,t.ng.cdk.portal,t.ng.cdk.scrolling,t.ng.material.autocomplete,t.ng.material.button,t.ng.material.checkbox,t.ng.material.divider,t.ng.material.icon,t.ng.material.menu,t.ng.material.progressSpinner,t.ng.material.table,t.ng.material.tooltip,t.angularFontawesome,t.freeSolidSvgIcons,t.pectin,t.ng.platformBrowser,t._,t.src,t.typescriptStringEnums,t.ResizeObserver,t.typescriptUtilities,t.produce,t.ng.flexLayout,t.ng.material.dialog,t.ng.router,t.ng.cdk.overlay,t.ng.material.list,t.fastMemoizeDecorator,null,t.ng.animations,t.wakeEvent)}(this,(function(t,e,n,o,i,r,a,s,c,l,u,p,d,f,h,m,y,g,v,b,C,I,w,P,M,x,R,S,O,A,T,D,E,F,_,k,V,N,L){"use strict";function H(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function j(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var U=H(M),B=H(S),q=H(A),z=j(L),W=function(t,e){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function G(t,e){function n(){this.constructor=t}W(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function K(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 X(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function $(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function Y(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])}}}Object.create;function J(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 Z(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(J(arguments[e]));return t}Object.create;var Q=function(t){function e(e,n,o){var i=t.call(this)||this;return i.elementRef=e,i._commandEnabled=(new w.DelegatingValueModel).withDefault(!1),i._commandParameterProvided=!1,i.matControl=n||o,i}return G(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:!1,configurable:!0}),Object.defineProperty(e.prototype,"commandParameter",{get:function(){return this._commandParameter},set:function(t){this._commandParameterProvided=!0,this._commandParameter=t},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){w.assert.notNil(this.pectinCommand),this.pectinCommand instanceof w.UnaryCommand?this._commandParameterProvided||w.lang.illegalState("UnaryCommands require the command parameter to be specified."):this._commandParameterProvided&&w.lang.illegalState("command parameters are only supported by UnaryCommands")},e.prototype.ngAfterViewInit=function(){var t=this;(0,w.Dsl.disposeWith(this).when)(this._commandEnabled).changes((function(e){return t.updateEnabledState(e)}),{initialValue:"triggerChange"})},e.prototype.updateEnabledState=function(t){var e=this;this.matControl&&setTimeout((function(){e.matControl.disabled=!t}),0),t?(this.elementRef.nativeElement.removeAttribute("disabled"),"A"===this.elementRef.nativeElement.tagName&&this.elementRef.nativeElement.setAttribute("href","javascript:void")):(this.elementRef.nativeElement.setAttribute("disabled","disabled"),"A"===this.elementRef.nativeElement.tagName&&this.elementRef.nativeElement.removeAttribute("href"))},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.notifyClick=function(t){t.preventDefault(),t.stopPropagation(),this.pectinCommand.enabled.value?this.pectinCommand instanceof w.UnaryCommand?this.pectinCommand.withContext({event:t}).execute(this.commandParameter):this.pectinCommand.withContext({event:t}).execute():console.warn("disabled command clicked, ignoring.")},e}(w.GarbageCollector);Q.decorators=[{type:n.Directive,args:[{selector:"[pectinCommand]"}]}],Q.ctorParameters=function(){return[{type:n.ElementRef,decorators:[{type:n.Inject,args:[n.ElementRef]}]},{type:d.MatButton,decorators:[{type:n.Host},{type:n.Optional}]},{type:y.MatMenuItem,decorators:[{type:n.Host},{type:n.Optional}]}]},Q.propDecorators={pectinCommand:[{type:n.Input}],commandParameter:[{type:n.Input}],notifyClick:[{type:n.HostListener,args:["click",["$event"]]}]};var tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G(e,t),e.prototype.ngOnDestroy=function(){this.dispose()},e}(w.GarbageCollector);tt.decorators=[{type:n.Directive}];var et=function(t){function e(e,n,o,i){var r=t.call(this)||this;return r.focusTargetElement=e,r.ngZone=n,r.focusContext=i,r.document=o,(0,w.Dsl.disposeWith(r).when)(r.focusContext.focused).changes((function(t){t&&!r.alreadyHasFocus()&&r.tryAndFocus()}),{initialValue:"triggerChangeUnlessNil"}),r}return G(e,t),e.prototype.onFocusIn=function(){this.focusContext.notifyFocusIn()},e.prototype.onFocusOut=function(){this.focusContext.notifyFocusOut()},e.prototype.alreadyHasFocus=function(){return this.isElementFocused(this.focusTarget)},e.prototype.isElementFocused=function(t){return this.document.activeElement===t},e.prototype.tryAndFocus=function(t){var e=this;void 0===t&&(t=5),this.modelShouldStillHaveFocus()&&this.canFocus()&&(this.alreadyHasFocus()||this.focusTarget.focus(),this.alreadyHasFocus()||(w.Logger.get(this).log("focus failed, trying "+t+" more times"),t>0?requestAnimationFrame((function(){e.tryAndFocus(t-1)})):w.Logger.get(this).warn("Tried to focus but gave up as the component wasn't enabled or visible.")))},Object.defineProperty(e.prototype,"focusTarget",{get:function(){return this.focusTargetElement},enumerable:!1,configurable:!0}),e.prototype.modelShouldStillHaveFocus=function(){return this.focusContext.focused.value},e.prototype.canFocus=function(){var t=this.focusTarget.getBoundingClientRect();return t.height>=0&&t.height>=0&&!this.focusTarget.disabled},e}(w.GarbageCollector);et.ctorParameters=function(){return[{type:HTMLElement},{type:n.NgZone,decorators:[{type:n.Inject,args:[n.NgZone]}]},{type:void 0,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]},{type:void 0}]};var nt=function(){function t(t,e){this.ngZone=t,this.document=e}return t.prototype.createBinding=function(t,e){return new et(t,this.ngZone,this.document,e)},t}();nt.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new nt(n.ɵɵinject(n.NgZone),n.ɵɵinject(e.DOCUMENT))},token:nt,providedIn:"root"}),nt.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],nt.ctorParameters=function(){return[{type:n.NgZone,decorators:[{type:n.Inject,args:[n.NgZone]}]},{type:void 0,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]}]};var ot=function(t){function e(e,n){var o=t.call(this)||this;return o.el=e,o.focusBindingFactory=n,o}return G(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)):w.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:!1,configurable:!0}),e}(tt);ot.decorators=[{type:n.Directive,args:[{selector:"[pectinFocusBinding]"}]}],ot.ctorParameters=function(){return[{type:n.ElementRef,decorators:[{type:n.Inject,args:[n.ElementRef]}]},{type:nt}]},ot.propDecorators={pectinFocusBinding:[{type:n.Input}],focusBindingTarget:[{type:n.Input}],onFocusIn:[{type:n.HostListener,args:["focusin"]}],onFocusOut:[{type:n.HostListener,args:["focusout"]}]};var it=function(t){function e(){return t.call(this)||this}return G(e,t),e.prototype.ngOnDestroy=function(){this.dispose()},e}(w.GarbageCollector);it.decorators=[{type:n.Directive,args:[{selector:"[aupHighlightTextModel]"}]}],it.ctorParameters=function(){return[]},it.propDecorators={aupHighlightTextModel:[{type:n.Input}]},K([w.TrackExternal(),X("design:type",w.ValueModel)],it.prototype,"aupHighlightTextModel",void 0);var rt=function(t){function e(e,n){var o=t.call(this)||this;return o.sanitizer=e,o.highlightContext=n,o}return G(e,t),e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.transform=function(t,e){var n,o=null!=e?e:null===(n=this.highlightContext)||void 0===n?void 0:n.aupHighlightTextModel,i=null==o?void 0:o.value;if(U.default.isEmpty(i)||!U.default.isString(t))return t;var r=new RegExp(i,"gi"),a=t.match(r);if(!a)return t;var s=t.replace(r,"<mark>"+a[0]+"</mark>");return this.sanitizer.bypassSecurityTrustHtml(s)},e}(w.GarbageCollector);rt.decorators=[{type:n.Pipe,args:[{name:"aupHighlight",pure:!1}]}],rt.ctorParameters=function(){return[{type:P.DomSanitizer},{type:it,decorators:[{type:n.Optional}]}]};var at=function(){};at.decorators=[{type:n.NgModule,args:[{declarations:[Q,ot,rt,it],imports:[e.CommonModule,c.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule],exports:[Q,ot,rt,it]}]}];var st=function(t){function e(){return t.call(this)||this}return G(e,t),e.prototype.ngOnInit=function(){},e}(w.GarbageCollector);st.decorators=[{type:n.Component,args:[{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:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}"]}]}],st.ctorParameters=function(){return[]},st.propDecorators={busyModel:[{type:n.Input}],busy:[{type:n.Input}]},K([w.TrackExternal(),X("design:type",w.ValueModel)],st.prototype,"busyModel",void 0),K([w.StoreInValueModel("busyModel"),X("design:type",Boolean)],st.prototype,"busy",void 0);var ct=function(t){function e(){return t.call(this)||this}return G(e,t),e.prototype.ngOnInit=function(){},e}(tt);ct.decorators=[{type:n.Component,args:[{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-command-face *ngIf="addCardFace" [faces]="[addCardFace]"></aup-command-face>\n <aup-icon *ngIf="!addCardFace" 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:[":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:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-auto-rows:minmax(var(--resolved-card-min-height),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:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s 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}"]}]}],ct.ctorParameters=function(){return[]},ct.propDecorators={addCardCommand:[{type:n.Input}],addCardFace:[{type:n.Input}],addCardTemplate:[{type:n.ContentChild,args:["addCardTemplate"]}]},K([w.TrackExternal(),X("design:type",w.Command)],ct.prototype,"addCardCommand",void 0),function(t){!function(t){t.START="start",t.END="end"}(t.Position||(t.Position={})),t.Style=R.Enum({FLAT:"flat",STROKED:"stroked",RAISED:"raised"}),t.getColorOf=function(t){return U.default.isFunction(null==t?void 0:t.color)?t.color():void 0},t.getStyleOf=function(t){return U.default.isFunction(null==t?void 0:t.style)?t.style():void 0},t.getIconOf=function(t){return U.default.isFunction(null==t?void 0:t.icon)?t.icon():void 0},t.getIconPositionOf=function(t){return U.default.isFunction(null==t?void 0:t.iconPosition)?t.iconPosition():void 0},t.getTooltipOf=function(t){return U.default.isFunction(null==t?void 0:t.tooltip)?t.tooltip():void 0},t.getTextOf=function(t){return U.default.isFunction(null==t?void 0:t.text)?t.text():void 0};var e=function(){function e(t){this.face=t}return Object.defineProperty(e.prototype,"text",{get:function(){return t.getTextOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return t.getIconOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconPosition",{get:function(){return t.getIconPositionOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return t.getTooltipOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconPositionStart",{get:function(){return this.iconPosition===t.Position.START},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconPositionEnd",{get:function(){return this.iconPosition===t.Position.END},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return t.getColorOf(this.face)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return t.getStyleOf(this.face)},enumerable:!1,configurable:!0}),e}();K([x.Memoize(),X("design:type",Object),X("design:paramtypes",[])],e.prototype,"text",null),K([x.Memoize(),X("design:type",Object),X("design:paramtypes",[])],e.prototype,"icon",null),K([x.Memoize(),X("design:type",Object),X("design:paramtypes",[])],e.prototype,"iconPosition",null),K([x.Memoize(),X("design:type",Object),X("design:paramtypes",[])],e.prototype,"tooltip",null),K([x.Memoize(),X("design:type",Boolean),X("design:paramtypes",[])],e.prototype,"iconPositionStart",null),K([x.Memoize(),X("design:type",Boolean),X("design:paramtypes",[])],e.prototype,"iconPositionEnd",null),K([x.Memoize(),X("design:type",String),X("design:paramtypes",[])],e.prototype,"color",null),K([x.Memoize(),X("design:type",String),X("design:paramtypes",[])],e.prototype,"style",null),t.Adapter=e}(t.CommandFace||(t.CommandFace={}));var lt=function(e){function n(){var n=e.call(this)||this;n.facesModel=new w.MutableListModel,n.ignoreIcon=!1,n.ignoreText=!1,n.includeMissingIconInLayout=!1;var o=w.Dsl.disposeWith(n),i=o.chain;o.valueOf,o.before,o.when,o.after,o.observe,o.switchOn;n.faceAdapters=i(n.facesModel).map((function(e){return new t.CommandFace.Adapter(e)}));var r=n.faceAdapters.first();return n.activeIcon=r.pluck("icon"),n.activeColor=r.pluck("color"),n}return G(n,e),Object.defineProperty(n.prototype,"requiresMissingIconInLayout",{get:function(){return this.includeMissingIconInLayout&&!this.activeIcon.value},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.shouldIncludeIcon=function(t){return!this.ignoreIcon&&t.icon||this.includeMissingIconInLayout},n.prototype.hasIconStart=function(e){return this.shouldIncludeIcon(e)&&(!e.iconPosition||e.iconPosition===t.CommandFace.Position.START)},n.prototype.hasIconEnd=function(e){return this.shouldIncludeIcon(e)&&e.iconPosition===t.CommandFace.Position.END},Object.defineProperty(n.prototype,"color",{get:function(){return this.activeColor.value},enumerable:!1,configurable:!0}),n}(tt);lt.decorators=[{type:n.Component,args:[{selector:"aup-command-face",template:'<div class="face-container" *ngFor="let face of faceAdapters.value">\n <aup-icon *ngIf="hasIconStart(face)" [icon]="face.icon"></aup-icon>\n <span *ngIf="face.text">{{face.text}}</span>\n <aup-icon *ngIf="hasIconEnd(face)" [icon]="face.icon"></aup-icon>\n</div>\n',encapsulation:n.ViewEncapsulation.None,styles:["aup-command-face{--icon-gap:var(--aup-command-face-icon-gap);display:inline-grid}aup-command-face>.face-container{grid-column:1;grid-row:1;display:inline-flex;flex-direction:row;align-items:center}aup-command-face>.face-container:not(:first-child){visibility:hidden}aup-command-face>.face-container *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}aup-command-face.centered{justify-items:center}"]}]}],lt.ctorParameters=function(){return[]},lt.propDecorators={_rawFaces:[{type:n.Input,args:["faces"]}],ignoreIcon:[{type:n.Input}],ignoreText:[{type:n.Input}],includeMissingIconInLayout:[{type:n.Input}],requiresMissingIconInLayout:[{type:n.HostBinding,args:["class.hide-icon"]}],color:[{type:n.HostBinding,args:["attr.color"]}]},K([w.StoreInListModel("facesModel"),X("design:type",Array)],lt.prototype,"_rawFaces",void 0);var ut=function(t){function e(e,n){var o=t.call(this)||this;return o.element=e,o.parent=n,n&&o.registerDisposable(o.parent.register(o)),o}return G(e,t),Object.defineProperty(e.prototype,"componentIndex",{get:function(){return this.computeComponentIndex()},enumerable:!1,configurable:!0}),e.prototype.computeComponentIndex=function(){for(var t=this.element.nativeElement,e=0;t=t.previousElementSibling;)e++;return e},e.prototype.getFace=function(){},e}(tt),pt=new n.InjectionToken("popup-component"),dt=function(e){function n(n,o){var i=e.call(this,n,o)||this;i.CommandFace=t.CommandFace;var r=w.Dsl.disposeWith(i),a=r.chain;r.switchOn;return i.faces=a(i.command.busy).mapToList((function(t){return t?[i.busyFaceModel.value,i.faceModel.value]:[i.faceModel.value,i.busyFaceModel.value]}),{allowNil:!0,dependsOn:[i.faceModel,i.busyFaceModel]}).rejectNil(),i.activeFace=i.faces.first(),i.buttonStyle=a(i.activeFace).map((function(e){return t.CommandFace.getStyleOf(e)})),i.colorModel=a(i.activeFace).map((function(e){return t.CommandFace.getColorOf(e)})),i.iconOnly=i.faces.select((function(e){return U.default.isEmpty(t.CommandFace.getTextOf(e))&&!U.default.isEmpty(t.CommandFace.getIconOf(e))})).count().equals(i.faces.count()),i}return G(n,e),n.prototype.isActive=function(t){return this.activeFace.query().equals(t)},n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){},n.prototype.getFace=function(){return this.face},n}(ut);dt.decorators=[{type:n.Component,args:[{selector:"aup-command",template:'<ng-container *ngIf="iconOnly.value">\n <button mat-icon-button [pectinCommand]="command" [color]="colorModel.value" [class.busy]="command.busy.value">\n <aup-command-face class="centered" [faces]="faces.value"></aup-command-face>\n </button>\n</ng-container>\n<ng-container *ngIf="!iconOnly.value">\n <ng-container [ngSwitch]="buttonStyle.value">\n <ng-container *ngSwitchCase="CommandFace.Style.STROKED">\n <button mat-stroked-button [pectinCommand]="command" [color]="colorModel.value" [class.busy]="command.busy.value">\n <aup-command-face class="centered" [faces]="faces.value"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase="CommandFace.Style.RAISED">\n <button mat-raised-button [pectinCommand]="command" [color]="colorModel.value" [class.busy]="command.busy.value">\n <aup-command-face class="centered" [faces]="faces.value"></aup-command-face>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button mat-button [pectinCommand]="command" [color]="colorModel.value" [class.busy]="command.busy.value">\n <aup-command-face class="centered" [faces]="faces.value"></aup-command-face>\n </button>\n </ng-container>\n </ng-container>\n</ng-container>\n',styles:[":host{display:inline-flex;flex-direction:row;justify-content:stretch}button{flex:1}"]}]}],dt.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[pt]},{type:n.Optional}]}]},dt.propDecorators={command:[{type:n.Input}],faceModel:[{type:n.Input}],face:[{type:n.Input}],busyFaceModel:[{type:n.Input}],busyFace:[{type:n.Input}]},K([w.TrackExternal(),X("design:type",w.Command)],dt.prototype,"command",void 0),K([w.TrackExternal(),X("design:type",w.ValueModel)],dt.prototype,"faceModel",void 0),K([w.StoreInValueModel("faceModel"),X("design:type",Object)],dt.prototype,"face",void 0),K([w.TrackExternal(),X("design:type",w.ValueModel)],dt.prototype,"busyFaceModel",void 0),K([w.StoreInValueModel("busyFaceModel"),X("design:type",Object)],dt.prototype,"busyFace",void 0);var ft=function(t){function e(){return t.call(this)||this}return G(e,t),e.prototype.ngOnInit=function(){},e}(tt);ft.decorators=[{type:n.Component,args:[{selector:"aup-flex",template:""}]}],ft.ctorParameters=function(){return[]};var ht=function(e){function n(n,o){var i=e.call(this,n,o)||this;i._unorderedChildren=new w.MutableListModel,i.faceModelDelegate=new w.DelegatingValueModel,i.xPosition="after",i.yPosition="below";var r=w.Dsl.disposeWith(i),a=r.chain;r.valueOf,r.before,r.when,r.after,r.observe,r.switchOn;return i.faceAdapterModel=a(i.faceModelDelegate).map((function(e){return new t.CommandFace.Adapter(e)})),i.children=a(i._unorderedChildren).sortBy("componentIndex"),i}return G(n,e),n.prototype.ngAfterContentChecked=function(){this._unorderedChildren.value=Z(this._unorderedChildren.value)},Object.defineProperty(n.prototype,"faceAdapter",{get:function(){var e,n;return this.faceAdapterModel||console.error("Somehow faceAdapterModel is nil -- set a break point here and let me know what's going on"),null!==(n=null===(e=this.faceAdapterModel)||void 0===e?void 0:e.value)&&void 0!==n?n:new t.CommandFace.Adapter(void 0)},enumerable:!1,configurable:!0}),n.prototype.isRoot=function(){return!this.parent},n.prototype.register=function(t){var e=this;return this._unorderedChildren.push(t),w.Disposable.disposableThatRuns((function(){e._unorderedChildren.remove(t)}))},n.prototype.onCommandFired=function(){this.triggers.forEach((function(t){t.menuOpen&&t.closeMenu()}))},n.prototype.getFace=function(){return this.faceAdapter.face},n}(ut);ht.decorators=[{type:n.Component,args:[{selector:"aup-abstract-popup-menu",template:""}]}],ht.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[pt]}]}]},ht.propDecorators={xPosition:[{type:n.Input}],yPosition:[{type:n.Input}],triggers:[{type:n.ViewChildren,args:[y.MatMenuTrigger]}]};var mt,yt=function(t){function e(e,n){var o=t.call(this,e,n)||this;o.tooltipModel=new w.MutableValueModel;var i=w.Dsl.disposeWith(o),r=i.chain;i.valueOf,i.before,i.when,i.after,i.observe,i.switchOn;return o.faceModelDelegate.setDelegate(r(o.tooltipModel).map((function(t){return{icon:function(){return"mat:more_vert"},tooltip:function(){return t}}}),{allowNil:!0})),o}return G(e,t),Object.defineProperty(e.prototype,"face",{get:function(){return this.faceModelDelegate.value},enumerable:!1,configurable:!0}),e}(ht);yt.decorators=[{type:n.Component,args:[{selector:"aup-more-menu",template:'<div class="content" style="display: none">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf="isRoot()">\n <ng-container *ngIf="faceAdapter.text" [ngSwitch]="faceAdapter.style">\n <ng-container *ngSwitchCase="\'stroked\'">\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-stroked-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'raised\'">\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-raised-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu [parent]="this" (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf="!faceAdapter.text">\n <button matMenuTrigger\n mat-icon-button\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n >\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n</ng-container>\n',providers:[{provide:pt,useExisting:yt}]}]}],yt.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[pt]},{type:n.Optional},{type:n.SkipSelf}]}]},yt.propDecorators={tooltip:[{type:n.Input}]},K([w.StoreInValueModel("tooltipModel"),X("design:type",String)],yt.prototype,"tooltip",void 0),(mt=t.TrackBy||(t.TrackBy={})).byIndex=function(t,e){return t},mt.trackByProperty=function(t){return function(e,n){return n[t]}},t.CommandContainer=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return G(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this.hasParent()?this.parent.depth+1:0},enumerable:!1,configurable:!0}),e.prototype.hasParent=function(){return!!this.parent},Object.defineProperty(e.prototype,"orientation",{get:function(){return e.Orientation.VERTICAL},enumerable:!1,configurable:!0}),e}(w.GarbageCollector),(t.CommandContainer||(t.CommandContainer={})).Orientation=R.Enum({HORIZONTAL:"horizontal",VERTICAL:"vertical"});var gt=function(e){function n(){return e.call(this)||this}return G(n,e),Object.defineProperty(n.prototype,"orientation",{get:function(){return t.CommandContainer.Orientation.HORIZONTAL},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngAfterContentInit=function(){},n.prototype.ngAfterViewInit=function(){},n}(t.CommandContainer);gt.decorators=[{type:n.Component,args:[{selector:"aup-tool-bar",template:'<div class="toolbar-content"><ng-content></ng-content></div>',encapsulation:n.ViewEncapsulation.None,styles:[":host{display:inline-block}.toolbar-content{display:inline-flex;flex-direction:row;align-items:center}.toolbar-content>aup-separator{align-self:stretch;margin:4px 0 4px 8px}.toolbar-content>aup-flex{flex:1}.toolbar-content>*+*{margin-left:8px}"]}]}],gt.ctorParameters=function(){return[]};var vt=function(e){function n(t,n,o){var i=e.call(this,t,n)||this;return i.containerParent=o,i}return G(n,e),n.prototype.isHorizontalContainer=function(){return this.containerParent instanceof gt&&this.containerParent.orientation===t.CommandContainer.Orientation.HORIZONTAL},n.prototype.ngOnInit=function(){},n}(ut);vt.decorators=[{type:n.Component,args:[{selector:"aup-separator",template:'\n <mat-divider [vertical]="!isHorizontalContainer()"></mat-divider>',styles:[":host {\n }",":host(.horizontal-container) {\n display: inline-flex;\n flex-direction: row;\n align-items: stretch;\n }"]}]}],vt.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[pt]}]},{type:t.CommandContainer,decorators:[{type:n.Optional}]}]},vt.propDecorators={isHorizontalContainer:[{type:n.HostBinding,args:["class.horizontal-container"]}]};var bt=function(e){function o(){var o=e.call(this)||this;o._childList=new w.DelegatingListModel,o.commandFired=new n.EventEmitter,o.TrackBy=t.TrackBy;var i=w.Dsl.disposeWith(o),r=i.chain,a=i.valueOf,s=(i.before,i.when,i.after,i.observe,i.switchOn,r(o._childList).map((function(t){return t.getFace()})).rejectNil()),c=s.select((function(e){return!!t.CommandFace.getIconOf(e)})).count(),l=s.count();return o.hasMixedIcons=a.all(c.isGreaterThan(0),l.doesNotEqual(c)).areTruthy(),o}return G(o,e),Object.defineProperty(o.prototype,"parent",{get:function(){return this._parentComponent},set:function(t){this._parentComponent=t,this._childList.setDelegate(t.children)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"children",{get:function(){return this.parent.children.value},enumerable:!1,configurable:!0}),o.prototype.executeCommand=function(t){var e=this;this.isCommand(t)&&t.command.execute().finally((function(){e.commandFired.emit()}))},o.prototype.isEnabled=function(t){return!0},o.prototype.onCommandFired=function(){this.commandFired.emit(),this.triggers.forEach((function(t){t.menuOpen&&t.closeMenu()}))},o.prototype.isCommand=function(t){return t instanceof dt},o.prototype.isPopupMenu=function(t){return t instanceof ht},o.prototype.isSeparator=function(t){return t instanceof vt},o.prototype.getTooltip=function(e){return this.isCommand(e)?t.CommandFace.getTooltipOf(e.face):void 0},o.prototype.getFaces=function(t){return this.isCommand(t)?t.faces.value:this.isPopupMenu(t)?[t.faceAdapter.face]:void 0},o}(tt);bt.decorators=[{type:n.Component,args:[{selector:"aup-popup-menu-renderer",template:'<mat-menu #menu [xPosition]="parent.xPosition" [yPosition]="parent.yPosition">\n <ng-template matMenuContent>\n <ng-container *ngFor="let child of children; trackBy: TrackBy.byIndex" >\n <button *ngIf="isCommand(child)"\n (click)="executeCommand(child)"\n [disabled]="!isEnabled(child)"\n [matTooltip]="getTooltip(child)"\n mat-menu-item>\n <aup-command-face [faces]="getFaces(child)"\n [includeMissingIconInLayout]="hasMixedIcons.value"></aup-command-face>\n </button>\n\n <ng-container *ngIf="isPopupMenu(child)">\n <button mat-menu-item\n matMenuTrigger\n [matMenuTriggerFor]="innerPanel.menuComponent"\n >\n <aup-command-face [faces]="getFaces(child)"\n [includeMissingIconInLayout]="hasMixedIcons.value"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #innerPanel\n [parent]="child"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <mat-divider *ngIf="isSeparator(child)"></mat-divider>\n\n </ng-container>\n\n </ng-template>\n</mat-menu>\n'}]}],bt.ctorParameters=function(){return[]},bt.propDecorators={parent:[{type:n.Input}],menuComponent:[{type:n.ViewChild,args:["menu",{static:!0}]}],commandFired:[{type:n.Output}],triggers:[{type:n.ViewChildren,args:[y.MatMenuTrigger]}]};var Ct=function(t){function e(e,n){var o=t.call(this,e,n)||this,i=w.Dsl.disposeWith(o);i.chain,i.valueOf,i.before,i.when,i.after,i.observe,i.switchOn;return o}return G(e,t),e}(ht);Ct.decorators=[{type:n.Component,args:[{selector:"aup-popup-menu",template:'<div class="content" style="display: none">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf="isRoot()">\n <ng-container *ngIf="faceAdapter.text" [ngSwitch]="faceAdapter.style">\n <ng-container *ngSwitchCase="\'stroked\'">\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-stroked-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'raised\'">\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-raised-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button matMenuTrigger\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n mat-button>\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu [parent]="this" (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf="!faceAdapter.text">\n <button matMenuTrigger\n mat-icon-button\n [matMenuTriggerFor]="subMenu.menuComponent"\n [matTooltip]="faceAdapter.tooltip"\n [color]="faceAdapter.color"\n >\n <aup-command-face [faces]="[face]"></aup-command-face>\n </button>\n <aup-popup-menu-renderer #subMenu\n [parent]="this"\n (commandFired)="onCommandFired()"></aup-popup-menu-renderer>\n </ng-container>\n</ng-container>\n',providers:[{provide:pt,useExisting:Ct}]}]}],Ct.ctorParameters=function(){return[{type:n.ElementRef},{type:void 0,decorators:[{type:n.Inject,args:[pt]},{type:n.Optional},{type:n.SkipSelf}]}]},Ct.propDecorators={faceModel:[{type:n.Input}],face:[{type:n.Input}]},K([w.TrackExternal({delegateTo:"faceModelDelegate"}),X("design:type",w.ValueModel)],Ct.prototype,"faceModel",void 0),K([w.StoreInValueModel("faceModel"),X("design:type",Object)],Ct.prototype,"face",void 0);var It=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();It.decorators=[{type:n.Component,args:[{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}"]}]}],It.ctorParameters=function(){return[]};var wt=function(t){function e(e){var n=t.call(this)||this;return n.focusManager=e,n.restoreFocusCommand=w.Command.create((function(){n.restoreFocus()})),n.tabIndex=-1,n}return G(e,t),e.prototype.ngOnInit=function(){},e.prototype.restoreFocus=function(){this.focusManager.restoreFocus()},e}(tt);wt.decorators=[{type:n.Component,args:[{selector:"aup-focus-container",template:"<ng-content></ng-content>\n",providers:[{provide:w.FocusManager}],styles:[":host{display:block}"]}]}],wt.ctorParameters=function(){return[{type:w.FocusManager,decorators:[{type:n.Self}]}]},wt.propDecorators={tabIndex:[{type:n.HostBinding,args:["attr.tabindex"]}]};var Pt=function(t){function e(e,n,o){var i=t.call(this)||this;i.el=e,i.focusManager=n;var r=w.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 G(e,t),Object.defineProperty(e.prototype,"focusable",{get:function(){return this.focusContext?0:void 0},enumerable:!1,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:!1,configurable:!0}),e}(tt);Pt.decorators=[{type:n.Component,args:[{template:""}]}],Pt.ctorParameters=function(){return[{type:n.ElementRef},{type:w.FocusManager},{type:nt}]},Pt.propDecorators={focusable:[{type:n.HostBinding,args:["attr.tabindex"]}],onFocus:[{type:n.HostListener,args:["focus"]}],onBlur:[{type:n.HostListener,args:["blur"]}]};var Mt=function(t){function e(){var e=t.call(this)||this;e.onValueEditedListeners=new w.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 G(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:!1,configurable:!0}),e.prototype.hasErrors=function(){return!this.errorList.query().isEmpty()},Object.defineProperty(e.prototype,"errorList",{get:function(){return this.formValueModel.errorList},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstError",{get:function(){return this.hasErrors()?this.errorList.value[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusContext",{get:function(){return this.formValueModel.focusContext},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return this.dense?"never":this.userFloatLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showHint",{get:function(){return!this.dense&&!!this.hint},enumerable:!1,configurable:!0}),e.prototype.onValueEdited=function(t){return this.onValueEditedListeners.add(t)},e}(tt);Mt.decorators=[{type:n.Component,args:[{template:""}]}],Mt.ctorParameters=function(){return[]},Mt.propDecorators={label:[{type:n.Input}],userFloatLabel:[{type:n.Input,args:["floatLabel"]}],hint:[{type:n.Input}],placeholder:[{type:n.Input}],dense:[{type:n.HostBinding,args:["class.dense"]},{type:n.Input}],focusCommand:[{type:n.Input,args:["command.focus"]}],blurCommand:[{type:n.Input,args:["command.blur"]}],enterCommand:[{type:n.Input,args:["command.enter"]}],escapeCommand:[{type:n.Input,args:["command.escape"]}],clickCommand:[{type:n.Input,args:["command.click"]}],focus:[{type:n.Output}],blur:[{type:n.Output}],enterKey:[{type:n.Output}],escapeKey:[{type:n.Output}],baseClassName:[{type:n.HostBinding,args:["class"]}],notifyClick:[{type:n.HostListener,args:["click"]}],notifyFocusIn:[{type:n.HostListener,args:["focusin"]}],notifyFocusOut:[{type:n.HostListener,args:["focusout"]}]};var xt=function(t){function e(){var e=t.call(this)||this;e.formValueModel=e.registerDisposable(new w.Form.DelegatingListModel),e.componentListModel=new w.MutableListModel,e.setValueIsInProgress=new w.Guard,e.valueChange=new n.EventEmitter;var o=w.Dsl.disposeWith(e),i=o.when,r=o.valueOf,a=o.chain,s=new w.Binding.Identity(e.formValueModel,e.componentListModel).writeRight(),c=r.any(e.setValueIsInProgress,a(s.direction).equals(w.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:c}),w.DebugContext.tag(e.formValueModel,e.constructor.name+".formValueModel"),e}return G(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 w.MutableListModel(t),e.listModel=e.listHolder)}))},enumerable:!1,configurable:!0}),e}(Mt);xt.decorators=[{type:n.Component,args:[{template:""}]}],xt.ctorParameters=function(){return[]},xt.propDecorators={listModel:[{type:n.Input}],value:[{type:n.Input}],valueChange:[{type:n.Output}]},K([w.TrackExternal({delegateTo:"formValueModel"}),X("design:type",Object)],xt.prototype,"listModel",void 0);var Rt=function(t){function e(){var e=t.call(this)||this;e.formValueModel=e.registerDisposable(new w.Form.DelegatingValueModel),e.setValueInProgress=new w.Guard,e.componentValueModel=new w.MutableValueModel,e.valueChange=new n.EventEmitter;var o=w.Dsl.disposeWith(e),i=o.when,r=o.chain,a=o.valueOf,s=new w.Binding.Identity(e.formValueModel,e.componentValueModel).writeRight(),c=a.any(e.setValueInProgress,r(s.direction).equals(w.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:c}),w.DebugContext.tag(e.formValueModel,e.constructor.name+".formValueModel"),e}return G(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 w.MutableValueModel(t),e.valueModel=e.plainValueHolder)}))},enumerable:!1,configurable:!0}),e}(Mt);Rt.decorators=[{type:n.Component,args:[{template:""}]}],Rt.ctorParameters=function(){return[]},Rt.propDecorators={valueModel:[{type:n.Input}],value:[{type:n.Input}],valueChange:[{type:n.Output}]},K([w.TrackExternal({delegateTo:"formValueModel"}),X("design:type",Object)],Rt.prototype,"valueModel",void 0);var St=function(t){function e(){var e=t.call(this)||this;e.filterValue=new w.MutableValueModel,e.optionLabelFormat=function(t){return t&&e.optionLabel?t[e.optionLabel]:t};var n=w.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 U.default.isString(t)?t.toLowerCase():""})));return e.filteredOptions=o(e.optionsModel).select((function(t){return U.default.isEmpty(e.filterValue.value)||e.optionLabelFormat(t).toString().toLowerCase().includes(i.value)}),{dependsOn:i}),e}return G(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},e}(Rt);St.decorators=[{type:n.Component,args:[{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%}"]}]}],St.ctorParameters=function(){return[]},St.propDecorators={optionsModel:[{type:n.Input}],options:[{type:n.Input}],optionLabel:[{type:n.Input}],allowNil:[{type:n.Input}],nilOptionTemplateRef:[{type:n.ContentChild,args:["nilOptionTemplate"]}],optionLabelFormat:[{type:n.Input}]},K([w.TrackExternal(),X("design:type",w.ListModel)],St.prototype,"optionsModel",void 0),K([w.StoreInListModel("optionsModel"),X("design:type",Array)],St.prototype,"options",void 0);var Ot=function(t){function e(){var e=t.call(this)||this;return e.color="accent",e.labelPosition="after",e}return G(e,t),e.prototype.ngOnInit=function(){},e}(Rt);Ot.decorators=[{type:n.Component,args:[{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}"]}]}],Ot.ctorParameters=function(){return[]},Ot.propDecorators={color:[{type:n.Input}],labelPosition:[{type:n.Input}]};var 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 G(e,t),e.prototype.ngOnInit=function(){},e}(xt);At.decorators=[{type:n.Component,args:[{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%}"]}]}],At.ctorParameters=function(){return[]},At.propDecorators={optionsModel:[{type:n.Input}],options:[{type:n.Input}],optionLabel:[{type:n.Input}],optionTemplateRef:[{type:n.ContentChild,args:["optionTemplate"]}],optionLabelFormat:[{type:n.Input}]},K([w.TrackExternal(),X("design:type",w.ListModel)],At.prototype,"optionsModel",void 0),K([w.StoreInListModel("optionsModel"),X("design:type",Array)],At.prototype,"options",void 0);var Tt=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 G(e,t),e.prototype.ngOnInit=function(){},e}(Rt);Tt.decorators=[{type:n.Component,args:[{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 [attr.autocomplete]="autocomplete"\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 <aup-icon *ngIf="iconPrefix" matPrefix [icon]="iconPrefix"></aup-icon>\n</mat-form-field>\n',styles:[""]}]}],Tt.ctorParameters=function(){return[]},Tt.propDecorators={autocomplete:[{type:n.Input}],min:[{type:n.Input}],max:[{type:n.Input}],iconPrefix:[{type:n.Input}]};var Dt=function(t){function e(){return t.call(this)||this}return G(e,t),e.prototype.ngOnInit=function(){},e}(Rt);Dt.decorators=[{type:n.Component,args:[{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 [attr.autocomplete]="autocomplete"\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:[""]}]}],Dt.ctorParameters=function(){return[]},Dt.propDecorators={autocomplete:[{type:n.Input}]};var Et=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 G(e,t),e.prototype.ngOnInit=function(){},e}(Rt);Et.decorators=[{type:n.Component,args:[{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%}"]}]}],Et.ctorParameters=function(){return[]},Et.propDecorators={optionsModel:[{type:n.Input}],options:[{type:n.Input}],optionLabel:[{type:n.Input}],allowNil:[{type:n.Input}],optionTemplateRef:[{type:n.ContentChild,args:["optionTemplate"]}],nilOptionTemplateRef:[{type:n.ContentChild,args:["nilOptionTemplate"]}],optionLabelFormat:[{type:n.Input}]},K([w.TrackExternal(),X("design:type",w.ListModel)],Et.prototype,"optionsModel",void 0),K([w.StoreInListModel("optionsModel"),X("design:type",Array)],Et.prototype,"options",void 0);var Ft=function(t){function e(){var e=t.call(this)||this,n=w.Dsl.disposeWith(e),o=n.chain;n.valueOf,n.before,n.when,n.after,n.observe,n.switchOn;return e.clearCommand=w.Command.create((function(){e.componentValueModel.value=null})),e.clearCommand.disableWhile(o.stringValue(e.componentValueModel).isBlank()),e}return G(e,t),e.prototype.ngOnInit=function(){},e}(Rt);Ft.decorators=[{type:n.Component,args:[{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 [attr.autocomplete]="autocomplete"\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 <aup-icon *ngIf="iconPrefix" matPrefix [icon]="iconPrefix"></aup-icon>\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}"]}]}],Ft.ctorParameters=function(){return[]},Ft.propDecorators={autocomplete:[{type:n.Input}],enableClearModel:[{type:n.Input}],enableClear:[{type:n.Input}],iconPrefix:[{type:n.Input}]},K([w.TrackExternal({defaultValue:!1}),X("design:type",w.ValueModel)],Ft.prototype,"enableClearModel",void 0),K([w.StoreInValueModel("enableClearModel"),X("design:type",Boolean)],Ft.prototype,"enableClear",void 0);var _t=function(t){function e(){var e=t.call(this)||this;return e.rows=2,e}return G(e,t),e.prototype.ngOnInit=function(){},e}(Rt);_t.decorators=[{type:n.Component,args:[{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}"]}]}],_t.ctorParameters=function(){return[]},_t.propDecorators={rows:[{type:n.Input}],cols:[{type:n.Input}]},t.IconComponent=function(){function t(){this.allowedPrefixes=R.Enum.values(t.IconPrefix).map((function(t){return t+":"})),this.iconPrefix=t.IconPrefix}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, expected one of ["+this.allowedPrefixes.join(",")+'] got "'+this.prefix+':"'},enumerable:!1,configurable:!0}),t}(),t.IconComponent.decorators=[{type:n.Component,args:[{selector:"aup-icon",template:'<ng-container [ngSwitch]="prefix">\n\n <mat-icon *ngSwitchCase="iconPrefix.SVG"\n [svgIcon]="suffix"\n class="svgIcon">\n </mat-icon>\n\n <mat-icon *ngSwitchCase="iconPrefix.MATERIAL">\n {{suffix}}\n </mat-icon>\n\n <div *ngSwitchCase="iconPrefix.FONT_AWESOME"\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}.faIconWrapper,.svgIcon{width:24px;height:24px}:host(.mat-chip-remove) mat-icon{font-size:18px}mat-icon{width:inherit;height:inherit}"]}]}],t.IconComponent.propDecorators={icon:[{type:n.Input}]},(t.IconComponent||(t.IconComponent={})).IconPrefix=R.Enum({SVG:"svg",FONT_AWESOME:"fa",MATERIAL:"mat"});var kt=function(){};kt.decorators=[{type:n.Component,args:[{selector:"aup-noop",template:"",styles:[":host{display:block}"]}]}],kt.ctorParameters=function(){return[]};var Vt=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();Vt.decorators=[{type:n.Component,args:[{selector:"aup-scroll-container",template:'<div class="container" cdkScrollable>\n <ng-content></ng-content>\n</div>\n',styles:[":host{flex-direction:column;min-height:0}.container,:host{display:flex;align-items:stretch}.container{flex-direction:column;flex:1;flex-basis:0;overflow-y:scroll}"]}]}],Vt.ctorParameters=function(){return[]};var Nt=function(){function t(){this.underline=!1}return t.prototype.ngOnInit=function(){},t}();Nt.decorators=[{type:n.Component,args:[{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)}"]}]}],Nt.ctorParameters=function(){return[]},Nt.propDecorators={underline:[{type:n.Input},{type:n.HostBinding,args:["class.underline"]}]};var Lt=function(){function t(t){this.templateRef=t}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),t}(),Ht=function(t){function e(e){var n=t.call(this,e)||this;return n.isDefault=!1,n}return G(e,t),e.prototype.matches=function(t){return this.aupSwitchCaseWhen===t},e}(Lt);Ht.decorators=[{type:n.Directive,args:[{selector:"[aupSwitchCaseWhen]",providers:[{provide:Lt,useExisting:Ht}]}]}],Ht.ctorParameters=function(){return[{type:n.TemplateRef}]},Ht.propDecorators={aupSwitchCaseWhen:[{type:n.Input}]};var jt=function(t){function e(e){var n=t.call(this,e)||this;return n.isDefault=!0,n}return G(e,t),e.prototype.matches=function(t){return!1},e}(Lt);jt.decorators=[{type:n.Directive,args:[{selector:"[aupSwitchCaseDefault]",providers:[{provide:Lt,useExisting:jt}]}]}],jt.ctorParameters=function(){return[{type:n.TemplateRef}]};var Ut=function(t){function e(e){var n=t.call(this)||this;return n.cdr=e,n.selectedIndex=0,n}return G(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=w.Dsl.disposeWith(this);n.chain;(0,n.when)(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){t.isDefault&&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}(tt);Ut.decorators=[{type:n.Component,args:[{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}"]}]}],Ut.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},Ut.propDecorators={switchModel:[{type:n.Input}],switch:[{type:n.Input}],switchCaseOptions:[{type:n.ContentChildren,args:[Lt]}]},K([w.TrackExternal(),X("design:type",w.ValueModel)],Ut.prototype,"switchModel",void 0),K([w.StoreInValueModel("switchModel"),X("design:type",Object)],Ut.prototype,"switch",void 0);var Bt,qt=function(t,e){this.width=t,this.height=e},zt=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 G(e,t),e.prototype.relativePositionOf=function(t){return t instanceof MouseEvent?new zt(t.clientX-this.left,t.clientY-this.top):new zt(t.x-this.left,t.y-this.top)},e}(qt),(Bt=t.Bounds||(t.Bounds={})).ofElement=function(t){var e=t.getBoundingClientRect();return new Bt(e.top,e.left,e.width,e.height)};var Wt=function(e){function n(n,o){var i=e.call(this)||this;return i.elementRef=n,i.ngZone=o,i._boundsModel=new w.MutableValueModel(new t.Bounds(0,0,0,0)),i}return G(n,e),n.prototype.ngAfterViewInit=function(){var t=this,e=this.elementRef.nativeElement,n=new B.default((function(e,n){t.ngZone.run((function(){return t._updateBounds()}))}));n.observe(e),this.onDispose((function(){return n.disconnect()})),setTimeout((function(){return t._updateBounds()}))},Object.defineProperty(n.prototype,"boundsModel",{get:function(){return this._boundsModel.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),n.prototype.relativePositionOf=function(t){return this.bounds.relativePositionOf(t)},Object.defineProperty(n.prototype,"bounds",{get:function(){return this._boundsModel.value},enumerable:!1,configurable:!0}),n.prototype._updateBounds=function(){this._boundsModel.value=t.Bounds.ofElement(this.nativeElement)},n}(tt);Wt.decorators=[{type:n.Directive}],Wt.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]};var Gt=Symbol("aup-cell-header-renderer-component-ref"),Kt=Symbol("aup-cell-renderer-component-ref"),Xt=Symbol("aup-cell-editor-component-ref"),$t=Symbol("aup-cell-renderer-portal-component"),Yt=Symbol("aup-cell-editor-portal-component"),Jt=function(){},Zt=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.initialiseHeader=n,o}return G(e,t),e.prototype.initialiseHost=function(t,e){O.assert.isTruthy(t),t[Gt]=new l.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){this.initialiseHeader(e,t.column)},e}(Jt),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G(e,t),e}(Jt),te=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.updateComponent=n,o}return G(e,t),e.prototype.initialiseHost=function(t,e){t[Kt]=new l.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){t[$t]=e,this.updateComponent(e,t.getRowData(),!0)},e.prototype.pushState=function(t){t[$t]&&this.updateComponent(t[$t],t.getRowData(),!1)},e}(Qt),ee=function(t){function e(e,n){var o=t.call(this)||this;return o.componentType=e,o.initialiseEditorSession=n,o}return G(e,t),e.prototype.initialiseHost=function(t,e){O.assert.isTruthy(t),t[Xt]=new l.ComponentPortal(this.componentType)},e.prototype.onPortalAttached=function(t,e){t[Yt]=e,this.initialiseEditorSession(e,t.editSession)},e}(Jt),ne=function(t){function e(){return t.call(this)||this}return G(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){O.assert.isTruthy(t)},e.prototype.onPortalAttached=function(t,e){},e.prototype.pushState=function(t){t[Kt]=this.createPortal(t.getRowData()),t.fillCell=this.fillCell,t.padChild=this.padChild},e.prototype.createPortal=function(t){return new l.TemplatePortal(this.templateRef,this.viewContainer,Object.assign(Object.assign({},t),{$implicit:t.row}))},e}(Qt),oe=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!1,configurable:!0}),t}();oe.decorators=[{type:n.Component,args:[{selector:"aup-default-cell-renderer",template:'<span [innerHTML]="value| aupHighlight"></span>\n',styles:[""]}]}],oe.ctorParameters=function(){return[]},oe.propDecorators={value:[{type:n.Input}]};var ie=function(){};ie.decorators=[{type:n.Component,args:[{selector:"aup-default-header-renderer",template:"{{headerText}}\n",styles:[""]}]}],ie.ctorParameters=function(){return[]},ie.propDecorators={headerText:[{type:n.Input}]};var re=function(t){function e(){var e=t.call(this)||this;return e.saveCommand=w.Command.create((function(){e.editSession.saveCommand.execute(e.editSession.form).then((function(t){t&&e.editSession.dispose()}))})),e.cancelCommand=w.Command.create((function(){e.editSession.dispose()})),e}return G(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:!1,configurable:!0}),e}(tt);re.decorators=[{type:n.Component,args:[{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}"]}]}],re.ctorParameters=function(){return[]},re.propDecorators={row:[{type:n.Input}],editRowCommand:[{type:n.Input}],editSession:[{type:n.Input}]},K([w.TrackExternal(),X("design:type",w.Command)],re.prototype,"editRowCommand",void 0);var ae=function(t){function e(){var e=t.call(this)||this;return e.selectCommand=w.Command.create((function(){var t;null===(t=e.selectionModel)||void 0===t||t.selectCommand.execute(e.row)})),e}return G(e,t),e.prototype.isSelected=function(){var t;return null===(t=this.selectionModel)||void 0===t?void 0:t.isSelected(this.row)},e}(tt);ae.decorators=[{type:n.Component,args:[{selector:"aup-select-cell-renderer",template:'<mat-checkbox [pectinCommand]="selectCommand" [checked]="isSelected()"></mat-checkbox>\n',styles:[""]}]}],ae.ctorParameters=function(){return[]},ae.propDecorators={row:[{type:n.Input}]};var se=function(t){function e(){var e=t.call(this)||this;return e.selectCommand=w.Command.create((function(){e.selectionModel.toggleAllCommand.execute()})),e}return G(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.prototype.isVisible=function(){return this.enableHeaderControls&&this.selectionModel.getDelegate()instanceof w.MultipleSelectionModel},e}(tt);se.decorators=[{type:n.Component,args:[{selector:"aup-select-header-cell-renderer",template:'<mat-checkbox *ngIf="isVisible()" [pectinCommand]="selectCommand" [checked]="isSelected()" [indeterminate]="this.isIntermediate()"></mat-checkbox>\n',styles:[""]}]}],se.ctorParameters=function(){return[]};var ce=function(){},le=Symbol("aup-cell-renderer:row-data-cache"),ue=function(){function t(t,e){this.columnId=t,this.textPropertiesProvider=e,this._selectRowOnClick=void 0,this._flex=!1,this._visibleModel=(new w.DelegatingValueModel).withDefault(!0),this.installHeaderRenderer(),this.dasherisedColumnId=O.Stringy.from(t).dasherize().toString()}return t.prototype.installHeaderRenderer=function(){this.cellHeaderRenderer(ie,(function(t,e){t.headerText=e.getHeaderText()}))},t.prototype.getHeaderText=function(){var t;return(null===(t=this.getColumnTextProperties())||void 0===t?void 0:t.headerText())||this.getDefaultHeaderText()},t.prototype.isVisible=function(){return this.visible.value},Object.defineProperty(t.prototype,"visible",{get:function(){return this._visibleModel.readonly},enumerable:!1,configurable:!0}),t.prototype.visibleWhile=function(t){return this._visibleModel.setDelegate(t),this},t.prototype.getDefaultHeaderText=function(){return this.columnId},t.prototype.getColumnTextProperties=function(){return this._columnTextProperties||this.textPropertiesProvider()},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 Zt(t,e)),this},t.prototype.flex=function(t){void 0===t&&(t=!0),this._flex=t},t.prototype.isFlex=function(){return this._flex},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},t}();K([x.Memoize(),X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",String)],ue.prototype,"getHeaderText",null),K([x.Memoize(),X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",Object)],ue.prototype,"getColumnTextProperties",null);var pe=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(oe),i}return G(e,t),e.prototype.cellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new te(t,(function(t,o,i){i&&(U.default.isFunction(e)?e(t):U.default.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t)),t.value=n._format(o.row[n.property]),!U.default.isFunction(e)&&U.default.isFunction(null==e?void 0:e.onRowUpdate)&&e.onRowUpdate(t,o.row)}))),this},e.prototype.liveEditCellRenderer=function(t,e){return this.mutableCellRenderer(t,e)},e.prototype.mutableCellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new te(t,(function(t,o,i){t[le]=o.row;var r=!1;i&&(U.default.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t),t.onValueEdited((function(n,o){r||e.onValueEdit(t[le],n,o)}))),r=!0,t.value=o.row[n.property],r=!1,!U.default.isFunction(e)&&U.default.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=U.default.isFunction(e)?e:n;return this.configureCellEditor(new ee(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 O.assert.isFunction(t),this._format=t,this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(ue),de=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(oe),i}return G(e,t),e.prototype.cellRenderer=function(t){var e=this;return this.configureCellRenderer(new te(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=U.default.isFunction(e)?e:n;return this.configureCellEditor(new ee(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 O.assert.isFunction(t),this._format=t,this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(ue),fe=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.getValue=o,i.cellRenderer(oe),i}return G(e,t),e.prototype.cellRenderer=function(t,e){var n=this;return this.configureCellRenderer(new te(t,(function(t,o,i){i&&(U.default.isFunction(e)?e(t):U.default.isFunction(null==e?void 0:e.onComponentInit)&&e.onComponentInit(t)),t.value=n.getValue(o.row),!U.default.isFunction(e)&&U.default.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}(ue),he=function(t){function e(e,n,o){var i=t.call(this,e,o)||this;return i.cellRenderer(re),i}return G(e,t),e.prototype.cellRenderer=function(t){return this.configureCellRenderer(new te(t,(function(t,e){t.row=e.row,t.editSession=e.editSession,t.editRowCommand=e.editRowCommand}))),this},e.prototype.getDefaultHeaderText=function(){return""},e}(ue),me=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.config=new ne,o.configureCellRenderer(o.config),o}return G(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}(ue),ye=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i._enableHeaderControls=!0,i.selectionModel=w.DelegatingSelectionModel.createDelegate(),i.hasSelectionModel=new w.MutableValueModel(!1),i.selectOnRowClick(!1),i.cellHeaderRenderer(se,(function(t){t.selectionModel=i.selectionModel,t.enableHeaderControls=i._enableHeaderControls})),i.configureCellRenderer(new te(ae,(function(t,e){t.row=e.row,t.selectionModel=i.selectionModel}))),i.setSelectionModel(o),i.visibleWhile(i.hasSelectionModel),i}return G(e,t),e.prototype.setSelectionModel=function(t){this.selectionModel.setDelegate(t),this.hasSelectionModel.value=!!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.prototype.isSelected=function(t){return this.selectionModel.isSelected(t)},e}(ue),ge=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 w.MutableValueModel,r.liveRowValue=r._liveRowValue.readonly,r.form.load(n),r._liveRowValue.value=n,r.form.onEdit((function(){r._liveRowValue.value=q.default(r._liveRowValue.value,(function(t){r.form.writeDirtyStateTo(t)}))})),r}return G(e,t),e}(w.GarbageCollector),ve=function(t,e){this.className=t,this.matches=e},be=function(t){function e(){var e=t.apply(this,Z(arguments))||this;return e.columns=[],e}return G(e,t),e.prototype.addColumn=function(t){var e=this;this.runInTransaction((function(){e.columns.push(t),e.trackSource(t.visible)}))},e.prototype.doComputeValue=function(){return this.columns.filter((function(t){return t.visible.value}))},e}(w.AbstractComputedListModel);t.AbstractTableModel=function(t){function e(e){var n=t.call(this)||this;n.sourceOfTruth=e,n._columns=new w.MutableListModel,n._visibleColumnTracker=new be,n._editorSessions=new w.MutableListModel,n.rowClassNamePredicates=[],n.rowClickListeners=new w.EventListenerList,n._createForm=function(t){return new w.DirtyTrackingForm},n.trackBy=function(t,e){return n.identityOf?n.identityOf(e):t},n.identityOf=e.identityOf;var o=w.Dsl.disposeWith(n),i=o.chain;o.valueOf,o.before,o.when,o.after,o.observe,o.switchOn;return n._columnsById=i(n._columns).indexBy("columnId"),n._rowsBeingEdited=new w.MutableListModel([],{identifiedWith:n.identityOf}),n._editorSessionByRowId=i(n._editorSessions).indexBy("rowId"),n.editing=i(n._editorSessions).count().isGreaterThan(0),n.dataSource=i(n.sourceOfTruth).replaceAll(n.rowsBeingEdited),n.firstEditableColumn=i(n.columns).select((function(t){return t.hasEditorPortal()})).first(),n.hasColumnsWithRowSelectionExplicitlyEnabled=i(n._columns).findIndex((function(t){return t.isRowSelectionExplicitlyEnabled()})).isGreaterThanOrEqualTo(0),n.firstVisibleColumn=i(n._visibleColumnTracker).first(),n.lastVisibleColumn=i(n._visibleColumnTracker).last(),n}return G(e,t),Object.defineProperty(e.prototype,"rowsBeingEdited",{get:function(){return this._rowsBeingEdited.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleColumns",{get:function(){return this._visibleColumnTracker.readonly},enumerable:!1,configurable:!0}),e.prototype.pluck=function(t,e){var n=this,o=(null==e?void 0:e.columnId)||t.toString();return this.addColumn(new pe(o,t,(function(){return n.getColumnTextProperties(o)})))},e.prototype.pluckList=function(t,e){var n=this,o=(null==e?void 0:e.columnId)||t.toString();return this.addColumn(new de(o,t,(function(){return n.getColumnTextProperties(o)})))},e.prototype._addSelectionColumn=function(t){var e=this;w.assert.isNil(this.selectionColumnModel);var n="selection-column";return this.selectionColumnModel=new ye(n,(function(){return e.getColumnTextProperties(n)}),t),this.addRowClass("aup-row-selected",(function(t){return e.selectionColumnModel.isSelected(t)})),this.addColumn(this.selectionColumnModel)},e.prototype.addEditControls=function(t){var e=this;this.saveCommand=t;var n="editControls";return this.addColumn(new he(n,t,(function(){return e.getColumnTextProperties(n)})))},e.prototype.addCustomColumn=function(t,e){var n=this;return this.addColumn(new fe(t,(function(){return n.getColumnTextProperties(t)}),e))},e.prototype.addComponentColumn=function(t,e,n){var o=this;return this.addColumn(new fe(t,(function(){return o.getColumnTextProperties(t)}),(function(t){return t}))).cellRenderer(e,n)},e.prototype.addTemplateColumn=function(t){var e=this;return this.addColumn(new me(t,(function(){return e.getColumnTextProperties(t)})))},e.prototype.addRowClass=function(t,e){this.rowClassNamePredicates.push(new ve(t,e))},e.prototype.getRowClasses=function(t){var e=[];return this.rowClassNamePredicates.forEach((function(n){n.matches(t)&&e.push(n.className)})),e},e.prototype.useFormFactory=function(t){return this._createForm=t,this},e.prototype.addColumn=function(t){return this._columnsById.get(t.columnId)?w.lang.illegalState("Column with id="+t.columnId+" already exists"):(this._columns.push(t),this._visibleColumnTracker.addColumn(t)),t},e.prototype.columnTextProperties=function(t){this._columnTextPropertiesLookup=t},e.prototype.getColumnTextProperties=function(t){return this._columnTextPropertiesLookup?this._columnTextPropertiesLookup[t]:void 0},e.prototype.startEditSession=function(t){var e=this,n=this.identityOf(t);if(this._rowsBeingEdited.query().indexOf(t)>-1)return w.lang.illegalState("Row with id="+n+" already being edited");var o=new ge(n,t,this._createForm(t),this.saveCommand);return(0,w.Dsl.disposeWith(o).when)(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},e.prototype.getEditSessionFor=function(t){return this._editorSessionByRowId.get(this.identityOf(t))},e.prototype.cancelAllEditorSessions=function(){var t=this;this._editorSessions.runInTransaction((function(e){t._rowsBeingEdited.runInTransaction((function(){e.value.forEach((function(t){return t.dispose()}))}))}))},e.prototype.isRowSelectionEnabledFor=function(t){var e;return this.selectionColumnModel&&(null!==(e=t.isRowSelectionEnabled())&&void 0!==e?e:this.isRowSelectionEnabledByDefault())},e.prototype.isRowSelectionEnabledByDefault=function(){return this.selectionColumnModel&&this.selectionColumnModel.isRowSelectionEnabledByDefault()},e.prototype.isRowSelectionEnabled=function(){return this.hasColumnsWithRowSelectionExplicitlyEnabled.value||this.isRowSelectionEnabledByDefault()},e.prototype.isHoverEnabled=function(){return this.isRowSelectionEnabled()||this.rowClickListeners.listenerCount>0},e.prototype.isCursorEnabled=function(t){return this.isRowSelectionEnabledFor(t)||this.rowClickListeners.listenerCount>0},e.prototype.selectRow=function(t){var e;null===(e=this.selectionColumnModel)||void 0===e||e.selectRow(t)},e.prototype.onRowClicked=function(t){return this.rowClickListeners.add(t)},e.prototype._notifyCellClicked=function(t,e){this.isRowSelectionEnabledFor(t)&&this.selectRow(e),this.rowClickListeners.fire((function(t){return t(e)}))},e}(w.GarbageCollector),t.AbstractTableModel=K([w.TrackExternal.Strategy(new w.TrackExternal.OneTimeBinding),X("design:paramtypes",[w.ListModel])],t.AbstractTableModel);var Ce=function(t){function e(e,n){var o=t.call(this,e,n)||this;o.enableScrolling=!1,o.headerHeight=new w.MutableValueModel(56),o.rowHeight=new w.MutableValueModel(48);var i=w.Dsl.disposeWith(o),r=i.chain,a=(i.when,r(o.showHeaderModel).map((function(t){return t?o.headerHeight.value:0}),{dependsOn:o.headerHeight}));return o.visibleRowCount=r(o.boundsModel).map((function(t){var e=(t.height-a.value)/o.rowHeight.value;return e<1?0:Math.floor(e)}),{dependsOn:[a,o.rowHeight],postponeWhile:r(o.boundsModel).pluckNumeric("height").isLessThan(1)}),o}return G(e,t),Object.defineProperty(e.prototype,"hideHeader",{get:function(){return!this.showHeader},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var t=w.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 me&&r.setTemplate(e,n,o,i)},e.prototype.notifyCellClicked=function(t,e){this.tableModel._notifyCellClicked(t,e)},e.prototype.isFirstVisibleColumn=function(t){var e;return(null===(e=this.tableModel.firstVisibleColumn.query().value)||void 0===e?void 0:e.columnId)===t},e.prototype.isLastVisibleColumn=function(t){var e;return(null===(e=this.tableModel.lastVisibleColumn.query().value)||void 0===e?void 0:e.columnId)===t},e.prototype.getColumnClasses=function(t){var e=["aup-col-"+this.columnsById.get(t).dasherisedColumnId];return this.isFirstVisibleColumn(t)&&e.push("first-visible-column"),this.isLastVisibleColumn(t)&&e.push("last-visible-column"),e},e}(Wt);Ce.decorators=[{type:n.Component,args:[{selector:"aup-table",template:'<div class="scroll-container">\n <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"\n matColumnDef="{{column.columnId}}">\n <th mat-header-cell *matHeaderCellDef [class.flex]="column.isFlex()" [class.hide]="!column.isVisible()">\n <aup-table-header-cell-renderer [column]="column"\n [attr.column-index]="index"\n [attr.column-id]="column.columnId"\n [class]="getColumnClasses(column.columnId)"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef="let row" (click)="notifyCellClicked(column, row)"\n [class.enable-cursor]="tableModel.isCursorEnabled(column)"\n [class.flex]="column.isFlex()"\n [class.hide]="!column.isVisible()"\n >\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]="getColumnClasses(column.columnId)"\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)" [class.enable-hover]="tableModel.isHoverEnabled()"\n [attr.trackBy]="tableModel.trackBy(i, row)"\n ></tr>\n\n </table>\n</div>\n',styles:[":host{display:flex;flex-direction:column;align-items:stretch}:host table{width:100%}:host.enable-scrolling{min-height:0}:host.enable-scrolling .scroll-container{flex:1;flex-basis:0;overflow-y:scroll;display:flex;flex-direction:column;align-items:stretch}"]}]}],Ce.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},Ce.propDecorators={tableModel:[{type:n.Input}],showHeaderModel:[{type:n.Input}],showHeader:[{type:n.Input}],enableScrolling:[{type:n.Input},{type:n.HostBinding,args:["class.enable-scrolling"]}],hideHeader:[{type:n.HostBinding,args:["class.hide-header"]}]},K([w.TrackExternal(),X("design:type",t.AbstractTableModel)],Ce.prototype,"tableModel",void 0),K([w.TrackExternal({defaultValue:!0}),X("design:type",w.ValueModel)],Ce.prototype,"showHeaderModel",void 0),K([w.StoreInValueModel("showHeaderModel"),X("design:type",Boolean)],Ce.prototype,"showHeader",void 0);var Ie=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;w.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}();Ie.decorators=[{type:n.Directive,args:[{selector:"[aupColumnTemplate]"}]}],Ie.ctorParameters=function(){return[{type:Ce},{type:n.TemplateRef},{type:n.ViewContainerRef}]},Ie.propDecorators={aupColumnTemplate:[{type:n.Input}],aupColumnTemplateColumnId:[{type:n.Input}],aupColumnTemplateFillCell:[{type:n.Input}],aupColumnTemplateAutoPadChild:[{type:n.Input}]};var we=function(t){function e(){var e=t.call(this)||this;return e.defaultClassNames="aup-cell-renderer",e.fillCell=!1,e.padChild=!1,e.editRowCommand=w.Command.create((function(){e.tableModel.startEditSession(e.row)})),e}return G(e,t),e.prototype.ngOnInit=function(){var t=w.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[Kt]},e.prototype.getEditorPortal=function(){return this[Xt]},e.prototype.getRowData=function(){return{row:this.row,editSession:this.editSession,editRowCommand:this.editRowCommand}},e}(tt);we.decorators=[{type:n.Component,args:[{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:[""]}]}],we.ctorParameters=function(){return[]},we.propDecorators={row:[{type:n.Input}],column:[{type:n.Input}],editSession:[{type:n.Input}],tableModel:[{type:n.Input}],defaultClassNames:[{type:n.HostBinding,args:["class"]}],fillCell:[{type:n.HostBinding,args:["class.fillCell"]}],padChild:[{type:n.HostBinding,args:["class.padChild"]}]};var Pe=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[Gt]},t}();Pe.decorators=[{type:n.Component,args:[{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%}"]}]}],Pe.ctorParameters=function(){return[]},Pe.propDecorators={column:[{type:n.Input}],defaultClassNames:[{type:n.HostBinding,args:["class"]}]};var Me=function(t,e){this.factory=t,this.face=e},xe=function(t){function e(){var e=t.call(this)||this;return e.actions=[],e.moreActions=[],e}return G(e,t),e.prototype.registerAction=function(t,e){this.actions.push(new Me(t,e))},e.prototype.registerMoreAction=function(t,e){this.moreActions.push(new Me(t,e))},e.prototype.ngOnInit=function(){},e.prototype.createMoreMenuCommand=function(t,e){var n=this,o=w.Dsl.disposeWith(this).when,i=t.factory.create(e);return o(i.busy).becomesFalsey((function(){n.closeMoreMenu()})),i},e.prototype.closeMoreMenu=function(){this.menu.closeMenu()},e}(tt);xe.decorators=[{type:n.Component,args:[{selector:"aup-table-row-menu",template:'\n <aup-tool-bar>\n <aup-command *ngFor="let action of actions" [command]="action.factory.create(value)"\n [face]="action.face"></aup-command>\n </aup-tool-bar>\n <ng-container *ngIf="moreActions.length > 0">\n <aup-more-menu>\n <aup-command *ngFor="let action of moreActions" [command]="action.factory.create(value)"\n [face]="action.face"></aup-command>\n </aup-more-menu>\n </ng-container>\n ',styles:[":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]}]}],xe.ctorParameters=function(){return[]},xe.propDecorators={value:[{type:n.Input}],menu:[{type:n.ViewChild,args:[y.MatMenuTrigger]}]};var Re;t.TreeInheritanceIconComponent=function(){function t(){this.pixelWidth=24,this.pixelHeight=48}return Object.defineProperty(t.prototype,"heightOffset",{get:function(){return 60-this.pixelHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewBox",{get:function(){return"0 "+this.heightOffset+" "+this.pixelWidth+" "+(this.pixelHeight-this.heightOffset)},enumerable:!1,configurable:!0}),t.prototype.hasHead=function(){return t.HAS_HEAD.includes(this.type)},t.prototype.hasTerminal=function(){return t.HAS_TERMINAL.includes(this.type)},t.prototype.hasLeadIn=function(){return t.HAS_LEAD_IN.includes(this.type)},t.prototype.hasTail=function(){return t.HAS_TAIL.includes(this.type)},t}(),t.TreeInheritanceIconComponent.decorators=[{type:n.Component,args:[{selector:"aup-tree-inheritance-icon",template:'<svg xmlns="http://www.w3.org/2000/svg" [attr.width]="pixelWidth" [attr.height]="pixelHeight" [attr.viewBox]="viewBox">\n <g fill="none" fill-rule="evenodd">\n <rect *ngIf="hasHead()" width="1" height="32.5" x="11.5" fill="currentColor"/>\n <rect *ngIf="hasTail()" width="1" height="32.5" x="11.5" y="31.5" fill="currentColor"/>\n\n <rect *ngIf="hasLeadIn()" width="12" height="1" y="31.5" fill="currentColor"/>\n <rect *ngIf="hasTerminal()" width="12" height="1" x="12" y="31.5" fill="currentColor"/>\n </g>\n</svg>\n',styles:[":host{position:relative;color:inherit}svg{color:var(--line-color);display:block}"]}]}],t.TreeInheritanceIconComponent.ctorParameters=function(){return[]},t.TreeInheritanceIconComponent.propDecorators={type:[{type:n.Input},{type:n.HostBinding,args:["class"]}],pixelWidth:[{type:n.Input}],pixelHeight:[{type:n.Input}]},(Re=t.TreeInheritanceIconComponent||(t.TreeInheritanceIconComponent={})).Type=R.Enum({ICON_BLANK:"blank",ICON_PARENT:"parent",ICON_INHERITED_TERMINAL:"inherited_terminal",ICON_INHERITED_THROUGH_TERMINAL:"inherited_through_terminal",ICON_THROUGH:"through"}),Re.HAS_LEAD_IN=[Re.Type.ICON_PARENT],Re.HAS_TERMINAL=[Re.Type.ICON_INHERITED_TERMINAL,Re.Type.ICON_INHERITED_THROUGH_TERMINAL,Re.Type.ICON_PARENT],Re.HAS_HEAD=[Re.Type.ICON_THROUGH,Re.Type.ICON_INHERITED_TERMINAL,Re.Type.ICON_INHERITED_THROUGH_TERMINAL],Re.HAS_TAIL=[Re.Type.ICON_PARENT,Re.Type.ICON_THROUGH,Re.Type.ICON_INHERITED_THROUGH_TERMINAL];var Se=function(e){function n(){var n=e.call(this)||this;n.iconTypes=[],n.nodeModel=new w.MutableValueModel;var o=w.Dsl.disposeWith(n).chain;return n.iconList=o(n.nodeModel).mapToList((function(e){var n=e.ancestors().slice(1).map((function(e){return e.isLastChild()?t.TreeInheritanceIconComponent.Type.ICON_BLANK:t.TreeInheritanceIconComponent.Type.ICON_THROUGH}));return e.isRoot()||n.push(e.isLastChild()?t.TreeInheritanceIconComponent.Type.ICON_INHERITED_TERMINAL:t.TreeInheritanceIconComponent.Type.ICON_INHERITED_THROUGH_TERMINAL),n})),n}return G(n,e),n.prototype.ngOnInit=function(){var t=this,e=w.Dsl.disposeWith(this).chain;this.canExpand=e(this.nodeModel).map((function(e){return e.hasChildren()&&t.expansionModel.isCollapsed(e)}),{dependsOn:this.expansionModel.isExpandedPredicate}),this.canCollapse=e(this.nodeModel).map((function(e){return e.hasChildren()&&!t.expansionModel.isCollapsed(e)}),{dependsOn:this.expansionModel.isExpandedPredicate}),this.iconModel=e(this.nodeModel).map((function(e){return t.node.isLeaf()?void 0:t.iconFactory(e,t.expansionModel.isExpanded(t.node))}),{dependsOn:this.expansionModel.isExpandedPredicate})},Object.defineProperty(n.prototype,"isRoot",{get:function(){return this.node.isRoot()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isLeaf",{get:function(){return this.node.isLeaf()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"node",{get:function(){return this.nodeModel.value},enumerable:!1,configurable:!0}),n.prototype.expandOrCollapse=function(t){this.expansionModel.isCollapsed(t)?this.expansionModel.expand(t):this.expansionModel.collapse(t)},n}(tt);Se.decorators=[{type:n.Component,args:[{selector:"aup-tree-label-cell-renderer",template:'<div class="tree-icons">\n <aup-tree-inheritance-icon *ngFor="let iconClass of iconList.value" [type]="iconClass"></aup-tree-inheritance-icon>\n <aup-icon *ngIf="iconModel.value"\n [icon]="iconModel.value"\n [class.clickable]="canExpand.value || canCollapse.value"\n (click)="expandOrCollapse(node)" ></aup-icon>\n</div>\n<div class="label">{{label}}</div>\n',styles:[":host{--line-color:#ddd;--node-color:#999;display:inline-flex;flex-direction:row;align-items:stretch}:host div.label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;padding-left:6px}:host div.tree-icons{display:grid;grid-auto-flow:column;grid-auto-columns:auto;grid-template-rows:1fr;align-items:stretch;justify-content:stretch}:host div.tree-icons aup-icon{align-self:center;color:var(--node-color)}:host div.tree-icons aup-icon.clickable{cursor:pointer}:host div.tree-icons aup-icon,:host div.tree-icons aup-tree-inheritance-icon{margin-left:4px}"]}]}],Se.ctorParameters=function(){return[]},Se.propDecorators={value:[{type:n.Input}],label:[{type:n.Input}],iconFactory:[{type:n.Input}],expansionModel:[{type:n.Input}],isRoot:[{type:n.HostBinding,args:["class.root"]}],isLeaf:[{type:n.HostBinding,args:["class.leaf"]}]},K([w.StoreInValueModel("nodeModel"),X("design:type",Object)],Se.prototype,"value",void 0);var Oe,Ae,Te=function(){function t(t){this.identityOf=t,this.collapsedIds=new Set,this._isExpandedPredicate=new w.MutableValueModel((function(){return!0})),this.updatePredicate()}return Object.defineProperty(t.prototype,"isExpandedPredicate",{get:function(){return this._isExpandedPredicate.readonly},enumerable:!1,configurable:!0}),t.prototype.expand=function(t){this.isCollapsed(t)&&(this.collapsedIds.delete(this.identityOf(t.node)),this.updatePredicate())},t.prototype.collapse=function(t){this.isCollapsed(t)||(this.collapsedIds.add(this.identityOf(t.node)),this.updatePredicate())},t.prototype.canExpand=function(t){return t.hasChildren()&&this.isCollapsed(t)},t.prototype.canCollapse=function(t){return t.hasChildren()&&!this.isCollapsed(t)},t.prototype.isCollapsed=function(t){return this.collapsedIds.has(this.identityOf(t.node))},t.prototype.isExpanded=function(t){return!this.isCollapsed(t)},t.prototype.ensureAncestorsAndSelfVisible=function(t){var e=this;t.ancestors().map((function(n){return e.identityOf(t.node)})).forEach((function(t){return e.collapsedIds.delete(t)})),this.updatePredicate()},t.prototype.updatePredicate=function(){var t=this;this._isExpandedPredicate.value=function(e){return!t.collapsedIds.has(t.identityOf(e.node))}},t}(),De=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.expansionModel=o,i.iconFactory=function(t,e){return e?"mat:folder_open":"mat:folder"},i.cellRenderer(Se),i}return G(e,t),e.prototype.pluck=function(t){this.labelProperty=t},e.prototype.addIcon=function(t){this.iconFactory=t},e.prototype.cellRenderer=function(t){var e=this;return this.configureCellRenderer(new te(t,(function(t,n,o){o&&(t.expansionModel=e.expansionModel),t.value=n.row,t.label=U.default.isNil(e.labelProperty)?void 0:n.row[e.labelProperty],t.iconFactory=e.iconFactory}))),this},e.prototype.selectRowOnClick=function(e){return t.prototype.selectRowOnClick.call(this,e)},e}(ue);t.SelfAndDescendantsVisitor=function(){function t(){}return t.prototype.visit=function(t){this.onVisit(t),this.shouldVisitChildrenOf(t)&&t.visitChildren(this)},t.prototype.shouldVisitChildrenOf=function(t){return!0},t}(),Oe=t.SelfAndDescendantsVisitor||(t.SelfAndDescendantsVisitor={}),Ae=function(t){function e(e){var n=t.call(this)||this;return n.callback=e,n}return G(e,t),e.prototype.onVisit=function(t){this.callback(t)},e}(Oe),Oe.Each=Ae;var Ee=function(){function e(t,e){this.parent=t,this.node=e}return Object.defineProperty(e.prototype,"decoratedSelf",{get:function(){var e=this;return this.memoize("decoratedSelf",(function(){return e.parent?e.parent.children.find((function(t){return t.node===e.node})):t.DecoratedTreeNode.createRoot(e.node)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){var t=this;return this.memoize("children",(function(){return t.node.children?t.node.children.map((function(n){return O.Mixin.createProxy(n,new e(t.decoratedSelf,n))})):[]}))},enumerable:!1,configurable:!0}),e.prototype.descendants=function(){var t=this;return this.memoize("descendants",(function(){var e=[];return t.visitDescendants((function(t){return e.push(t)})),e}))},e.prototype.selfAndDescendants=function(){var t=this;return this.memoize("selfAndDescendants",(function(){var e=[];return t.visitSelfAndDescendants((function(t){return e.push(t)})),e}))},e.prototype.siblingsBefore=function(){var t=this;return this.memoize("siblingsBefore",(function(){return t.parent?t.parent.children.slice(0,t.myIndex()):[]}))},e.prototype.siblingsAfter=function(){var t=this;return this.memoize("siblingsAfter",(function(){return t.parent?t.parent.children.slice(1+t.myIndex()):[]}))},e.prototype.siblings=function(){var t=this;return this.memoize("siblings",(function(){return[].concat(t.siblingsBefore(),t.siblingsAfter())}))},e.prototype.isFirstChild=function(){var t=this;return this.memoize("isFirstChild",(function(){return!!t.parent&&0===t.myIndex()}))},e.prototype.myIndex=function(){var t=this;return this.memoize("myIndex",(function(){var e=t.parent.children.findIndex((function(e){return e.node===t.node}));return w.assert.isTruthy(e>=0,"illegal state, expected index to be >= 0"),e}))},e.prototype.isLastChild=function(){var t=this;return this.memoize("isLastChild",(function(){return!!t.parent&&t.myIndex()===t.parent.children.length-1}))},e.prototype.hasSiblings=function(){return!!this.parent&&this.node.children.length>1},e.prototype.find=function(t){return M.find(this.descendants(),t)},e.prototype.select=function(t){return M.filter(this.descendants(),t)},e.prototype.flattenInto=function(t){return this.visitSelfAndDescendants((function(e){return t.push(e)})),t},e.prototype.ancestors=function(){var t=this;return this.memoize("ancestors",(function(){return t.parent?t.parent.ancestors().concat([t.parent]):[]}))},e.prototype.ancestorsAndSelf=function(){var t=this;return this.memoize("ancestorsAndSelf",(function(){return t.ancestors().concat([t.decoratedSelf])}))},e.prototype.pathToParent=function(t){if(this.node===t.node)return[];if(this.parent)return this.parent.pathToParent(t).concat([this.parent]);throw new Error("parent is not an ancestor")},e.prototype.pathToParentAndSelf=function(t){return this.pathToParent(t).concat([this.decoratedSelf])},e.prototype.isRoot=function(){return!this.parent},Object.defineProperty(e.prototype,"depth",{get:function(){return this.isRoot()?0:this.parent.depth+1},enumerable:!1,configurable:!0}),e.prototype.isLeaf=function(){return!this.isRoot()&&this.node.children.length<1},e.prototype.hasChildren=function(){return this.node.children&&this.node.children.length>0},e.prototype.depthFromParent=function(t){return this.pathToParent(t).length},e.prototype.treeDepth=function(){var t=this;return this.memoize("treeDepth",(function(){return 1+t.descendants().map((function(e){return e.depthFromParent(t)})).reduce((function(t,e){return Math.max(t,e)}))}))},e.prototype.flatten=function(){var t=this;return this.memoize("flatten",(function(){return t.flattenInto([])}))},e.prototype.visit=function(t){return t.visit(this),t},e.prototype.visitChildren=function(t){return M.each(this.children,(function(e){return e.visit(t)})),t},e.prototype.visitSelfAndDescendants=function(e){this.visit(new t.SelfAndDescendantsVisitor.Each(e))},e.prototype.visitDescendants=function(e){this.visitChildren(new t.SelfAndDescendantsVisitor.Each(e))},e.prototype.memoize=function(t,e){var n="__"+t;return M.isNil(this[n])&&(this[n]=e()),this[n]},e}();(t.DecoratedTreeNode||(t.DecoratedTreeNode={})).createRoot=function(t){return O.Mixin.createProxy(t,new Ee(void 0,t))};var Fe=function(e){function n(t,n){var o=e.call(this,t)||this;return o.source=t,o.expansionModel=n,o.trackSource(o.expansionModel.isExpandedPredicate),o}return G(n,e),n.prototype.getIdentityOf=function(t){return this.source.identityOf(t.node)},n.prototype.compute=function(e){var n=this,o=[];return e.forEach((function(e){return n.addNodeAndVisibleChildren(t.DecoratedTreeNode.createRoot(e),o)})),o},n.prototype.addNodeAndVisibleChildren=function(t,e){var n=this;e.push(t),t.hasChildren()&&!this.expansionModel.isCollapsed(t)&&t.children.forEach((function(t){return n.addNodeAndVisibleChildren(t,e)}))},n}(w.ComputedListModel),_e=function(t){function e(e,n){var o=t.call(this,e)||this;return o.treeExpansionModel=n,o}return G(e,t),e.fromRoot=function(t,e){var n=new w.GarbageCollector,o=w.Dsl.disposeWith(n),i=o.chain,r=(o.valueOf,o.before,o.when,o.after,o.observe,o.switchOn,i(t).mapToList((function(t){return[t]}))),a=this.fromList(r,e);return a.registerDisposable(n),a},e.fromChildrenOf=function(t,e){var n=new w.GarbageCollector,o=w.Dsl.disposeWith(n),i=o.chain,r=(o.valueOf,o.before,o.when,o.after,o.observe,o.switchOn,i(t).mapToList((function(t){return t.children}))),a=this.fromList(r,e);return a.registerDisposable(n),a},e.fromList=function(t,n){var o=new Te(t.identityOf),i=new Fe(t,o),r=new e(i,o);return r.registerDisposable(i),n&&n(r),r},e.prototype.treeControlColumn=function(t){var e=this,n="tree-label",o=new De(n,(function(){return e.getColumnTextProperties(n)}),this.treeExpansionModel);t(o),this.addColumn(o)},e.prototype.expand=function(t){this.treeExpansionModel.expand(t)},e.prototype.collapse=function(t){this.treeExpansionModel.expand(t)},e.prototype.isCollapsed=function(t){return this.treeExpansionModel.isCollapsed(t)},e.prototype.ensureAncestorsAndSelfVisible=function(t){this.treeExpansionModel.ensureAncestorsAndSelfVisible(t)},e}(t.AbstractTableModel),ke=function(t){function e(e){var n=t.call(this)||this;return n.collapsedIds=e,n._areas=[],n._collapsed=new Set(e),n}return G(e,t),e.prototype.onVisit=function(t){this._areas.push(t)},e.prototype.shouldVisitChildrenOf=function(t){return!this._collapsed.has(t)},Object.defineProperty(e.prototype,"flattenedAreas",{get:function(){return this._areas},enumerable:!1,configurable:!0}),e}(t.SelfAndDescendantsVisitor),Ve=function(t){function e(){var e=t.call(this)||this;return e.enableScrolling=!1,e}return G(e,t),e}(tt);Ve.decorators=[{type:n.Component,args:[{selector:"aup-tree-table",template:'<aup-table [tableModel]="treeTableModel" [showHeaderModel]="showHeaderModel" [enableScrolling]="enableScrolling"></aup-table>\n',encapsulation:n.ViewEncapsulation.None,styles:["td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}td.mat-column-tree-label{width:1px}aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}aup-tree-label-cell-renderer{flex:1}"]}]}],Ve.ctorParameters=function(){return[]},Ve.propDecorators={treeTableModel:[{type:n.Input}],showHeaderModel:[{type:n.Input}],showHeader:[{type:n.Input}],enableScrolling:[{type:n.Input},{type:n.HostBinding,args:["class.enable-scrolling"]}]},K([w.TrackExternal(),X("design:type",_e)],Ve.prototype,"treeTableModel",void 0),K([w.TrackExternal({defaultValue:!0}),X("design:type",w.ValueModel)],Ve.prototype,"showHeaderModel",void 0),K([w.StoreInValueModel("showHeaderModel"),X("design:type",Boolean)],Ve.prototype,"showHeader",void 0);var Ne=function(t){function e(e){var n=t.call(this,e)||this;return n.focusManager=e,n}return G(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}(wt);Ne.decorators=[{type:n.Component,args:[{selector:"aup-vertical-focus-container",template:"<ng-content></ng-content>\n",providers:[{provide:w.FocusManager}],styles:[":host{display:block}"]}]}],Ne.ctorParameters=function(){return[{type:w.FocusManager,decorators:[{type:n.Self}]}]},Ne.propDecorators={rightArrowCommand:[{type:n.Input,args:["command.arrowRight"]}],leftArrowCommand:[{type:n.Input,args:["command.arrowLeft"]}],arrowLeft:[{type:n.HostListener,args:["keyup.arrowLeft",["$event"]]}],arrowRight:[{type:n.HostListener,args:["keyup.arrowRight",["$event"]]}],arrowDown:[{type:n.HostListener,args:["keyup.arrowDown",["$event"]]}],arrowUp:[{type:n.HostListener,args:["keyup.arrowUp",["$event"]]}]},K([w.TrackExternal(),X("design:type",w.Command)],Ne.prototype,"rightArrowCommand",void 0),K([w.TrackExternal(),X("design:type",w.Command)],Ne.prototype,"leftArrowCommand",void 0);var Le=function(t){function e(){return t.call(this)||this}return G(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageController.totalPages.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageNumber",{get:function(){return this.pageController.pageNumber.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousCommand",{get:function(){return this.pageController.previousCommand},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextCommand",{get:function(){return this.pageController.nextCommand},enumerable:!1,configurable:!0}),e}(tt);Le.decorators=[{type:n.Component,args:[{selector:"aup-paginator",template:'<p>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]="previousCommand"><aup-icon icon="mat:keyboard_arrow_left"></aup-icon></button>\n<button mat-icon-button [pectinCommand]="nextCommand"><aup-icon icon="mat:keyboard_arrow_right"></aup-icon></button>\n\n',styles:[":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:rgba(0,0,0,.6)}:host p{color:inherit;margin-right:8px}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}"]}]}],Le.ctorParameters=function(){return[]},Le.propDecorators={pageController:[{type:n.Input}]},K([w.TrackExternal(),X("design:type",w.PageController)],Le.prototype,"pageController",void 0);var He=function(t){t.addIconPacks(I.fas)};He.decorators=[{type:n.NgModule,args:[{declarations:[Mt,Rt,xt,Tt,Ft,_t,Dt,Et,At,St,Ot,Vt,kt,Ut,Ht,jt,wt,Ne,Pt,ct,Ce,re,Ie,oe,we,ae,se,ie,Pe,t.IconComponent,Nt,xe,gt,dt,Ct,lt,yt,vt,ft,ht,bt,Ve,t.TreeInheritanceIconComponent,Se,st,It,Le],imports:[e.CommonModule,c.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule,at,m.MatIconModule,d.MatButtonModule,f.MatCheckboxModule,v.MatTableModule,l.PortalModule,u.CdkScrollableModule,C.FontAwesomeModule,b.MatTooltipModule,p.MatAutocompleteModule,y.MatMenuModule,h.MatDividerModule,g.MatProgressSpinnerModule],exports:[Tt,Ft,_t,Dt,Ot,Et,At,St,Vt,kt,Ut,Ht,jt,wt,Ne,Pt,ct,Ce,re,Ie,t.IconComponent,Nt,xe,gt,dt,Ct,lt,yt,vt,ft,Ve,st,It,Le],providers:[nt]}]}],He.ctorParameters=function(){return[{type:C.FaIconLibrary}]};var je=function(t){function e(e){var n=t.call(this)||this;return n.cdr=e,n.align="stretch",n}return G(e,t),Object.defineProperty(e.prototype,"faces",{set:function(t){this.confirmFace=t.confirm,this.cancelFace=t.cancel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{set:function(t){this.faces=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alignEnd",{get:function(){return"end"===this.align},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alignStretch",{get:function(){return"stretch"===this.align},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.hasConfirmFace=function(){return!!this.confirmFace},e.prototype.hasCancelFace=function(){return!!this.cancelFace},e.prototype.initCommands=function(t){this.confirmCommand=t.confirmCommand,this.cancelCommand=t.cancelCommand,this.cdr.detectChanges()},e}(tt);je.decorators=[{type:n.Component,args:[{selector:"aup-activity-actions",template:'<div class="content">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf="hasConfirmFace()">\n <aup-command class="confirm" [command]="confirmCommand" [face]="confirmFace" data-cy="confirm-command"></aup-command>\n</ng-container>\n<ng-container *ngIf="hasCancelFace()">\n <aup-command class="cancel" [command]="cancelCommand" [face]="cancelFace" data-cy="cancel-command"></aup-command>\n</ng-container>\n',styles:[':host{display:grid;grid-template-areas:"cancel confirm content";grid-template-columns:auto auto 1fr;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:"content cancel confirm";grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:"cancel content confirm";grid-template-columns:auto 1fr auto}.cancel{grid-area:cancel}.confirm{grid-area:confirm}.column{grid-area:content;text-align:left}']}]}],je.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},je.propDecorators={confirmCommand:[{type:n.Input}],cancelCommand:[{type:n.Input}],faces:[{type:n.Input}],confirmFace:[{type:n.Input}],cancelFace:[{type:n.Input}],style:[{type:n.Input}],align:[{type:n.Input}],alignEnd:[{type:n.HostBinding,args:["class.align-end"]}],alignStretch:[{type:n.HostBinding,args:["class.align-stretch"]}]},K([w.TrackExternal(),X("design:type",w.Command)],je.prototype,"confirmCommand",void 0),K([w.TrackExternal(),X("design:type",w.Command)],je.prototype,"cancelCommand",void 0);var Ue=new n.InjectionToken("InteractionActivityData"),Be=function(t){function e(){var e=t.call(this)||this;return e._busyModel=(new w.DelegatingValueModel).withDefault(!1),e._focusedModel=e.registerDisposable(new w.DelegatingValueModel),e.class="aup-activity",e}return G(e,t),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._focusedModel.value},enumerable:!1,configurable:!0}),e.prototype.initialise=function(t,e){var n=this,o=w.Dsl.disposeWith(this),i=(o.chain,o.when);O.assert.isNil(this._activityContext),this._activityContext=e,this._interactionContext=t,this._focusedModel.setDelegate(e.focused),i(this._focusedModel).becomesTruthy((function(){n.onActivityReady()}))},e.prototype.ngAfterViewInit=function(){var t;null===(t=this.activityActions)||void 0===t||t.initCommands(this)},Object.defineProperty(e.prototype,"interactionContext",{get:function(){return O.assert.isTruthy(this.isInitialised()),this._interactionContext},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focusedModel.readonly},enumerable:!1,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},e}(tt);Be.decorators=[{type:n.Component,args:[{template:""}]}],Be.ctorParameters=function(){return[]},Be.propDecorators={activityActions:[{type:n.ViewChild,args:[je]}],class:[{type:n.HostBinding,args:["class"]}],isFocused:[{type:n.HostBinding,args:["attr.focused"]}]},K([w.TrackExternal(),X("design:type",w.Command)],Be.prototype,"confirmCommand",void 0),K([w.TrackExternal(),X("design:type",w.Command)],Be.prototype,"cancelCommand",void 0);var qe=function(t){function e(e){var n=t.call(this)||this;return n.alert=e,n.confirmCommand=w.Command.create((function(){n.done()})),n.confirmFace={text:function(){return e.ok()},color:function(){return"primary"},style:function(){return"raised"}},n}return G(e,t),e.prototype.ngOnInit=function(){},e}(Be);qe.decorators=[{type:n.Component,args:[{selector:"aup-alert-dialog",template:'<aup-activity-title *ngIf="alert.title">{{alert.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor="let line of alert.content()">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]="confirmFace"></aup-activity-actions>\n',styles:[":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}]}],qe.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[Ue]}]}]};var ze=function(t){function e(e){var n=t.call(this)||this;return n.config=e,w.assert.notNil(e),n.confirmCommand=w.Command.create((function(){n.interactionContext.startActivity(n.config.activityType,n.config.data).then((function(t){return n.done(t)})).catch((function(t){return n.cancel(t)}))})),n.cancelCommand=w.Command.create((function(){return n.cancel()})),n.confirmFace={text:function(){return n.confirm.ok()},color:function(){return n.isDestructive()?"warn":"primary"},style:function(){return"raised"}},n.cancelFace={text:function(){return n.confirm.cancel()}},n}return G(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"confirm",{get:function(){return this.config.confirm},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"titleColor",{get:function(){return this.isDestructive()?"warn":void 0},enumerable:!1,configurable:!0}),e.prototype.isDestructive=function(){return this.confirm.destructive&&this.confirm.destructive()},e}(Be);ze.decorators=[{type:n.Component,args:[{selector:"aup-confirmation-dialog",template:'<aup-activity-title *ngIf="confirm.title" [color]="titleColor">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor="let line of confirm.content()">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]="confirmFace" [cancelFace]="cancelFace"></aup-activity-actions>\n',styles:[":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}]}],ze.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[Ue]}]}]};var We=function(t){function e(e){var n=t.call(this)||this;return n.confirm=e,w.assert.notNil(e),n.confirmCommand=w.Command.create((function(){return n.done()})),n.cancelCommand=w.Command.create((function(){return n.cancel()})),n.confirmFace={text:function(){return e.ok()},color:function(){return n.isDestructive()?"warn":"primary"},style:function(){return"raised"}},n.cancelFace={text:function(){return e.cancel()}},n}return G(e,t),e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"titleColor",{get:function(){return this.isDestructive()?"warn":void 0},enumerable:!1,configurable:!0}),e.prototype.isDestructive=function(){return this.confirm.destructive&&this.confirm.destructive()},e}(Be);We.decorators=[{type:n.Component,args:[{selector:"aup-confirmation-dialog",template:'<aup-activity-title *ngIf="confirm.title" [color]="titleColor">{{confirm.title()}}</aup-activity-title>\n<aup-activity-body>\n <p *ngFor="let line of confirm.content()">{{line}}</p>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]="confirmFace" [cancelFace]="cancelFace"></aup-activity-actions>\n\n',styles:[":host{display:block}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{margin-bottom:0!important;padding:0;align-items:flex-end;justify-content:flex-end}"]}]}],We.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[Ue]}]}]};var Ge=function(){function t(){}return t.prototype.startActivity=function(t,e,n){return this.createAndLaunchActivity(t,e,O.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(qe,t,!1)},t.prototype.confirmOrReject=function(t){return this.createAndLaunchActivity(We,t,!0)},t.prototype.confirmThen=function(t,e,n){return this.createAndLaunchActivity(ze,{confirm:t,activityType:e,data:n},!0)},t}(),Ke=function(){function t(t,e,n){this.activityClass=t,this.activityData=e,this.onComplete=n,this._complete=!1,this.deferredResult=w.Deferred.defer(),this.focusedModel=new w.MutableValueModel,this._activityBusy=(new w.DelegatingValueModel).withDefault(!1)}return t.prototype.isActivityRealised=function(){return!!this._activity},t.prototype.isComplete=function(){return this._complete},Object.defineProperty(t.prototype,"activity",{get:function(){return w.assert.isTruthy(this.isActivityRealised()),this._activity},enumerable:!1,configurable:!0}),t.prototype.setFocused=function(t){this.focusedModel.value=t},Object.defineProperty(t.prototype,"focused",{get:function(){return this.focusedModel.value},enumerable:!1,configurable:!0}),t.prototype.notifyActivityCreated=function(t,e){w.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)}))},focused:this.focusedModel.readonly}),this._activityBusy.setDelegate(this._activity.busy)},t.prototype.finishActivity=function(t){w.assert.isFalsey(this.isComplete()),t(this.deferredResult),this._complete=!0,this.onComplete(this),this._activityBusy.dispose()},t.prototype.cancel=function(){this.activity.cancel()},Object.defineProperty(t.prototype,"activityResult",{get:function(){return this.deferredResult.promise},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activityBusy",{get:function(){return this._activityBusy.readonly},enumerable:!1,configurable:!0}),t}(),Xe=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()&&O.lang.illegalState("changing activity before previous one has completed"),this._activityRef=t,this.loadActivity(t)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.loadActivity=function(t){var e=n.Injector.create({providers:[{provide:Ue,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:!1,configurable:!0}),t}();Xe.decorators=[{type:n.Component,args:[{selector:"aup-activity-outlet",template:"",styles:[":host{display:block}"]}]}],Xe.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.ViewContainerRef},{type:n.Injector}]},Xe.propDecorators={nestedInteractionContext:[{type:n.Input}],activityRef:[{type:n.Input}]};var $e=function(t){function e(){var e=t.call(this)||this;return e.dynamicHeight=!1,e.activityRefs=[],e.garbage=new w.GarbageCollector,e.inAnimation=new w.MutableValueModel(!1),e.busy=(new w.DelegatingValueModel).withDefault(!1),e.registerDisposable(e.busy),e}return G(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var t=this,e=w.Dsl.disposeWith(this);e.chain;e.observe.valuesFrom(this.tabs.animationDone).subscribe((function(){return t.onAnimationFinished()}))},e.prototype.initialise=function(t,e){w.assert.isFalsey(this.isInitialised()),w.assert.notNil(t),w.assert.notNil(e),this._identifier=t,this.interactionServiceApi=e},Object.defineProperty(e.prototype,"identifier",{get:function(){return this._identifier},enumerable:!1,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(){w.assert.isFalsey(this.isActive()),this.garbage.dispose()},e.prototype.getActiveActivityRef=function(){return this.isActive()||O.lang.illegalState("no activity in progress"),U.default.findLast(this.activityRefs,(function(t){return!t.isComplete()}))},e.prototype.cancelActiveActivity=function(){return $(this,void 0,void 0,(function(){return Y(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;w.assert.isTruthy(this.isInitialised());var i=new Ke(t,e,(function(){o.getActiveActivityCount()>0?o.triggerTabSynchronisation():o.finishAndStartCleanup()}));return this.launchActivity(i),1===this.activityRefs.length&&this.interactionServiceApi.notifyActive(this),i.activityResult},e.prototype.getActiveActivityCount=function(){return this.activityRefs.filter((function(t){return!t.isComplete()})).length},e.prototype.isCleaningUp=function(){return!!this._deferredCleanUp},e.prototype.waitForInteractionContextCleanupToFinish=function(){return $(this,void 0,void 0,(function(){return Y(this,(function(t){return[2,!this._deferredCleanUp||this._deferredCleanUp]}))}))},e.prototype.finishAndStartCleanup=function(){var t=this;if(!this._deferredCleanUp){this.activityRefs=[];var e=this.interactionServiceApi.notifyFinished(this);this._deferredCleanUp=e.finally((function(){t._deferredCleanUp=null}))}},e.prototype.launchActivity=function(t){var e=this.activityRefs.filter((function(t){return!t.isComplete()}));this.activityRefs=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.inAnimation.value=!0,this.activityRefs[n].setFocused(!1),this.busy.setDelegate(this.activityRefs[n].activityBusy),this.tabs.selectedIndex=n,this.onAnimationFinishedJob=function(){t.activityRefs=t.activityRefs.filter((function(t){return!t.isComplete()})),t.inAnimation.value=!1,t.activityRefs.forEach((function(t,e){t.setFocused(e===n)}))})},e.prototype.getSelectedOutlet=function(){return this.activityOutlets.toArray()[this.tabs.selectedIndex]},e.prototype.getSelectedTabIndex=function(){return 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)},e}(Ge);$e.decorators=[{type:n.Component,args:[{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 activityRef of activityRefs; let i = index; trackBy: activityIndex">\n <aup-busy-overlay [busyModel]="busy">\n \x3c!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we\'re animating.\n --\x3e\n <div class="activity-outlet-wrapper" [@.disabled]="!activityRef.focused">\n <aup-activity-outlet [nestedInteractionContext]="this" [activityRef]="activityRef"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n',styles:[":host{display:flex;flex-direction:column}aup-busy-overlay,mat-tab-group{flex:1}"]}]}],$e.ctorParameters=function(){return[]},$e.propDecorators={dynamicHeight:[{type:n.Input}],tabs:[{type:n.ViewChild,args:["tabs",{static:!0}]}],activityOutlets:[{type:n.ViewChildren,args:[Xe]}]};var Ye=function(t){function e(){var e=t.apply(this,Z(arguments))||this;return e.fullWidth=!1,e}return G(e,t),e.prototype.ngOnInit=function(){},e}(tt);Ye.decorators=[{type:n.Component,args:[{selector:"aup-activity-body",template:"<ng-content></ng-content>\n",styles:["<ng-content></ng-content>\n"]}]}],Ye.propDecorators={fullWidth:[{type:n.Input},{type:n.HostBinding,args:["class.full-width"]}]};var Je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G(e,t),Object.defineProperty(e.prototype,"hasTransparentBackground",{get:function(){return U.default.isNil(this._hasUserTransparentBackground)?!this._color:this._hasUserTransparentBackground},set:function(t){this._hasUserTransparentBackground=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e}(tt);Je.decorators=[{type:n.Component,args:[{selector:"aup-activity-title",template:"<ng-content></ng-content>\n",styles:[":host{display:block}"]}]}],Je.propDecorators={hasTransparentBackground:[{type:n.Input},{type:n.HostBinding,args:["class.transparent-background"]}],color:[{type:n.Input},{type:n.HostBinding,args:["attr.color"]}]};var Ze=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}(),Qe=function(){},tn=0;t.InteractionService=function(){function t(e){this.modelInteractionContextFactory=e,this.garbage=new w.GarbageCollector,this._navigationInProgress=(new w.DelegatingValueModel).withDefault(!1);var n=w.Dsl.disposeWith(this.garbage),o=n.chain,i=n.valueOf;n.before,n.when,n.after,n.observe,n.switchOn;this.exclusiveInteractionRegistry=new t.ContextRegistry,this.modalInteractionRegistry=new t.ContextRegistry,this.inPlaceInteractionRegistry=new t.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()}return t.prototype.isActive=function(){return this.active.value},t.prototype.createModalInteractionContextFor=function(t){return this.createModalInteractionContextDisposedWith(t)},t.prototype.createModalInteractionContextDisposedWith=function(e){return this.modelInteractionContextFactory.createInteractionContext("modal",new t.ApiAdapter(this.placeRouter,this.modalInteractionRegistry))},t.prototype.registerInplaceInteractionContext=function(e){e.initialise("ip"+ ++tn,new t.ApiAdapter(this.placeRouter,this.inPlaceInteractionRegistry))},t.prototype.registerPlaceRouter=function(e){var n=this;O.assert.isFalsey(this.placeRouter),this.placeRouter=e,this._navigationInProgress.setDelegate(this.placeRouter.navigationInProgress);var o=this;return new Ze(this.activeInteractionContextIds,this.activeModalContext,(function(){return o.modelInteractionContextFactory.createInteractionContext("exclusive",new t.ApiAdapter(n.placeRouter,n.exclusiveInteractionRegistry))}))},t}(),t.InteractionService.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t.InteractionService(n.ɵɵinject(Qe))},token:t.InteractionService,providedIn:"root"}),t.InteractionService.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.InteractionService.ctorParameters=function(){return[{type:Qe}]},function(t){var e=function(t){function e(){var e=t.call(this)||this;e._interactions=new w.MutableListModel,e._disabledDelegate=(new w.DelegatingValueModel).withDefault(!1);var n=w.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 G(e,t),Object.defineProperty(e.prototype,"interactionContexts",{get:function(){return this._interactions.readonly},enumerable:!1,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}(w.GarbageCollector);t.ContextRegistry=e;var n=function(){function t(t,e){this.placeRouter=t,this.contextRegistry=e}return t.prototype.notifyActive=function(t){return O.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.InteractionService||(t.InteractionService={}));var en=function(t){function e(e,n){var o=t.call(this)||this;return o.interactionService=e,o.tabConfig=n,o.animateFirstActivity=!0,o}return G(e,t),Object.defineProperty(e.prototype,"animationDuration",{get:function(){var t;return this.animateFirstActivity?(null===(t=this.tabConfig)||void 0===t?void 0:t.animationDuration)||"500ms":"0ms"},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.interactionService.registerInplaceInteractionContext(this)},e.prototype.initialise=function(t,e){this.activityContainerComponent.initialise(t,e)},Object.defineProperty(e.prototype,"identifier",{get:function(){return this.activityContainerComponent.identifier},enumerable:!1,configurable:!0}),e.prototype.alert=function(t){return this.activityContainerComponent.alert(t)},e.prototype.cancelActiveActivity=function(){return this.activityContainerComponent.cancelActiveActivity()},e.prototype.confirm=function(t){return this.activityContainerComponent.confirm(t)},e.prototype.confirmOrReject=function(t){return this.activityContainerComponent.confirmOrReject(t)},e.prototype.confirmThen=function(t,e,n){return this.activityContainerComponent.confirmThen(t,e)},e.prototype.isActive=function(){return this.activityContainerComponent.isActive()},e.prototype.startActivity=function(t,e,n){return this.activityContainerComponent.startActivity(t,e,n)},e}(tt);en.decorators=[{type:n.Component,args:[{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}"]}]}],en.ctorParameters=function(){return[{type:t.InteractionService},{type:void 0,decorators:[{type:n.Inject,args:[s.MAT_TABS_CONFIG]},{type:n.Optional}]}]},en.propDecorators={activityContainerComponent:[{type:n.ViewChild,args:["activityContainer",{static:!0}]}],animateFirstActivity:[{type:n.Input}]};var nn=function(t){function e(){var e=t.call(this)||this;return e.icon="mat:add",e.tabindex=0,e.clickCommand=w.Command.create((function(t){e.activityClass?e.startActivity(e.activityClass,e.activityData).catch((function(t){})):e.addCommand.withContext(t).execute()})),e}return G(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return!!this.interactionContext&&this.interactionContext.isActive()},enumerable:!1,configurable:!0}),e.prototype.startActivity=function(t,e){return this.interactionContext.startActivity(t,e)},e.prototype.ngOnInit=function(){},e}(tt);nn.decorators=[{type:n.Component,args:[{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:none}:host:hover a.link{color:var(--def-link-color-hover);background-color:var(--def-link-background-hover)}a.link,aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;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}"]}]}],nn.ctorParameters=function(){return[]},nn.propDecorators={label:[{type:n.Input}],icon:[{type:n.Input}],activityClass:[{type:n.Input}],activityData:[{type:n.Input}],addCommand:[{type:n.Input}],interactionContext:[{type:n.ViewChild,args:[en]}],active:[{type:n.HostBinding,args:["class.interaction-active"]}],tabindex:[{type:n.HostBinding,args:["tabindex"]}]},K([w.TrackExternal(),X("design:type",w.Command)],nn.prototype,"addCommand",void 0);var on=function(t){function e(e,n,o){var i=t.call(this)||this;return i._element=e,i._overlay=n,i.outputPortal=new l.ComponentPortal(en),i.anchorX="start",i.anchorY="bottom",i.scrollContainers=o?[o]:[],i}return G(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return this.isActive()},enumerable:!1,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}(tt);on.decorators=[{type:n.Component,args:[{selector:"aup-popup-interaction-context",template:"<ng-content></ng-content>\n",styles:[":host{display:inline}:host.interaction-active{background:rgba(0,0,0,.05)}"]}]}],on.ctorParameters=function(){return[{type:n.ElementRef},{type:F.Overlay},{type:F.CdkScrollable,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},on.propDecorators={active:[{type:n.HostBinding,args:["class.interaction-active"]}],anchorX:[{type:n.Input}],anchorY:[{type:n.Input}]};var rn=function(t){function e(){var e=t.call(this)||this;return e.activityDone=new n.EventEmitter,e.activityCancelled=new n.EventEmitter,e}return G(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;w.assert.isTruthy(this.aupInteractionContextTriggerFor),w.assert.isFalsey(this.aupInteractionContextTriggerFor.isActive()),w.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 U.default.isFunction(this.activityDataFactory())?this.activityDataFactory():this.activityData},e}(w.GarbageCollector);rn.decorators=[{type:n.Directive,args:[{selector:"[aupInteractionContextTriggerFor]"}]}],rn.ctorParameters=function(){return[]},rn.propDecorators={aupInteractionContextTriggerFor:[{type:n.Input}],activityClass:[{type:n.Input}],activityData:[{type:n.Input}],activityDataFactory:[{type:n.Input}],activityDone:[{type:n.Output}],activityCancelled:[{type:n.Output}],onEnter:[{type:n.HostListener,args:["keyup.enter",["$event"]]}],onClick:[{type:n.HostListener,args:["click",["$event"]]}]};var an=function(t){function e(e){var n=t.call(this)||this;n.data=e,n.class="aup-input-activity";var o=new w.DirtyTrackingForm;return n.valueModel=o.valueModel(n.data.initialValue),n.valueModel.validateUsing(e.validators||[]),n.confirmCommand=w.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=w.Command.create((function(){n.cancel()})),n}return G(e,t),e.prototype.onActivityReady=function(){this.valueModel.focusContext.requestFocus()},e}(Be);an.decorators=[{type:n.Component,args:[{template:""}]}],an.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[Ue]}]}]},an.propDecorators={class:[{type:n.HostBinding,args:["class"]}]};var sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G(e,t),e}(an);sn.decorators=[{type:n.Component,args:[{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 [faces]="data.buttonStyle"></aup-activity-actions>\n '}]}];var cn=function(t){function e(){var e=t.apply(this,Z(arguments))||this;return e.defaultOptionLabelFormat=function(t){return e.data.optionLabel?t[e.data.optionLabel]:t},e}return G(e,t),Object.defineProperty(e.prototype,"optionLabelFormat",{get:function(){var t;return null!==(t=this.data.optionLabelFormat)&&void 0!==t?t:this.defaultOptionLabelFormat},enumerable:!1,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:!1,configurable:!0}),e}(an);cn.decorators=[{type:n.Component,args:[{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" [faces]="data.buttonStyle"\n ></aup-activity-actions>\n '}]}];var ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G(e,t),e.fromList=function(t,n){var o=new e(t);return n&&n(o),o},e.prototype.addSelectionColumn=function(t){return this._addSelectionColumn(t)},e}(t.AbstractTableModel),un=function(){};un.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,d.MatButtonModule,D.MatDialogModule,s.MatTabsModule,l.PortalModule,E.RouterModule,m.MatIconModule,at,T.FlexModule,T.GridModule,He],declarations:[$e,We,ze,qe,Xe,en,nn,je,on,sn,cn,an,rn,Be,Je,Ye,je],exports:[$e,Xe,Je,en,nn,je,on,rn,sn,cn,Ye],entryComponents:[$e,We,ze,qe],providers:[t.InteractionService]}]}],t.ParameterDefinition=function(){function t(t,e,n){this.propertyName=t,this.urlFormat=n,this.options=O.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:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRouteParameter",{get:function(){return!!this.urlFormat},enumerable:!1,configurable:!0}),t.prototype.getOptionValue=function(t){return this.options.getOptional(t,null)},t.prototype.sanitise=function(t,e,n,o,i){return $(this,void 0,void 0,(function(){var o;return Y(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=t.apply(this,Z(arguments))||this;return e.isRouteId=!0,e.isArray=!1,e}return G(e,t),e.prototype.isEmptyValue=function(t){return U.default.isNil(t)},e.prototype.hasChanged=function(t,e){return t!==e},e}(t);t.RouteId=e;var n=function(t){function e(){var e=t.apply(this,Z(arguments))||this;return e.isRouteId=!1,e.isArray=!1,e}return G(e,t),e.prototype.isEmptyValue=function(t){return U.default.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 G(e,t),e.prototype.isEmptyValue=function(t){return U.default.isNil(t)||t.length<1},e.prototype.hasChanged=function(t,e){return!U.default.isEqual(t,e)},e}(t);t.ArrayParameter=o}(t.ParameterDefinition||(t.ParameterDefinition={}));var pn=function(){function t(t,e,n,o,i,r,a){this.component=t,this.path=e,this.authenticate=n,this.roles=o,this.data=i,this.routeParameters=r,this.children=a}return t.prototype.hasRouteId=function(){return!!this.getRouteIdParameterDef()},t.prototype.getRouteIdParameterDef=function(){return this.routeParameters.find((function(t){return t.isRouteId}))},t.prototype.getRouteParameterDefs=function(t){return void 0===t&&(t=!1),this.getVisitParameterDefs({includeRouteId:t,includeRouteParameters:!0})},t.prototype.getVisitParameterDefs=function(t){var e=O.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}))},t.prototype.getPlaceData=function(t,e){return this.data?U.default.isNil(this.data[t])?e:this.data[t]:e},t.prototype.searchPlaceData=function(t,e){var n=this;if(this.data){var o=t.find((function(t){return!U.default.isNil(n.data[t])}));return o?this.data[o]:e}return e},t.prototype.getRouteIdFrom=function(t){var e=this.getRouteIdParameterDef();return e?t.getParameter(e.name):null},t.prototype.getFormattedRouteId=function(t){return t.hasRouteId()?this.getRouteIdParameterDef().urlFormat.format(t.getRouteId()):""},t.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?(w.assert.isArray(o),n[e.name]=o.map((function(t){return e.urlFormat.format(t)}))):(w.assert.isFalsey(Array.isArray(o)),n[e.name]=e.urlFormat.format(o)))})),n},t.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},t.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&&U.default.isEmpty(i)||(e[n.name]=n.urlFormat.parse(i))}})),e},t}();K([x.Memoize(),X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",t.ParameterDefinition)],pn.prototype,"getRouteIdParameterDef",null),K([x.Memoize(),X("design:type",Function),X("design:paramtypes",[Object]),X("design:returntype",Array)],pn.prototype,"getRouteParameterDefs",null),K([x.Memoize(),X("design:type",Function),X("design:paramtypes",[Object]),X("design:returntype",Array)],pn.prototype,"getVisitParameterDefs",null);var dn="PLACE_DEFINITION_OPTIONS",fn=Symbol("place:route:parameters");t.PlaceComponent=function(t){function e(){var e=t.call(this)||this;e.visitModel=new w.MutableValueModel,e._inVisitUpdate=new w.Guard,e._active=new w.MutableValueModel(!1);var n=w.Dsl.disposeWith(e),o=(n.chain,n.valueOf,n.before,n.when);n.after,n.observe,n.switchOn;return o(e._active).becomesTruthy((function(){return e.onPlaceReady()})),e.childPlaces=e.placeDefinition.children.map((function(t){return t.component})),e}return G(e,t),e.prototype.initialiseVisit=function(t,e){var n=this;w.assert.isNil(this.visitModel.value);var o=w.Dsl.disposeWith(this).when;this.visitModel.value=t,w.DebugContext.getOrCreate(this.visitModel).tag(this.placeDefinition.component.name+".visitModel"),this.placeDefinition.getVisitParameterDefs().forEach((function(t){return n.installBinding(t)})),o(this.visitModel).changes((function(t,n){e(t,n)}),{unless:this._inVisitUpdate})},e.prototype.updateVisit=function(t){var e=this;w.assert.isTruthy(this.isInitialised()),w.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];w.DebugContext.tag(e,this.placeDefinition.component.name+"."+t.propertyName),this.registerDisposable(new w.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 e.getDefinition(this.constructor)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._active.readonly},enumerable:!1,configurable:!0}),e.prototype._notifyActive=function(t){this._active.value=t},e.prototype.onPlaceReady=function(){},e}(tt),t.PlaceComponent.decorators=[{type:n.Directive}],t.PlaceComponent.ctorParameters=function(){return[]},K([k.Memoize(),X("design:type",pn),X("design:paramtypes",[])],t.PlaceComponent.prototype,"placeDefinition",null),function(t){function e(e){return w.lang.constructorChain(e).includes(t)}t.isPlaceComponentConstructor=e,t.getRouteParameters=function(t){return O.Klass.get(t).getMetadataList(fn)},t.getDefinition=function(t){if(t instanceof E.ActivatedRouteSnapshot){var n=t.component;if(!e(n))throw new Error("ActivatedRouteSnapshot component is not a PlaceComponent, got "+n);return Reflect.getMetadata(dn,n)}return Reflect.getMetadata(dn,t)},t.injectDefinition=function(t,e){Reflect.defineMetadata(dn,e,t)}}(t.PlaceComponent||(t.PlaceComponent={}));var hn=function(){function t(t,e,n){this.component=t,this.navigationSession=e,this.isPrimaryComponent=n,w.assert.notNil(t)}return Object.defineProperty(t.prototype,"routerInteractionAdapter",{get:function(){return this.navigationSession.interactionServiceAdapter},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlService",{get:function(){return this.navigationSession.urlService},enumerable:!1,configurable:!0}),t.prototype.canDeactivate=function(t,e){return $(this,void 0,void 0,(function(){return Y(this,(function(n){return this.canDeactivatePromise||(this.canDeactivatePromise=this.canDeactivateComponent(t,e)),[2,this.canDeactivatePromise]}))}))},t.prototype.canDeactivateComponent=function(t,e){return $(this,void 0,void 0,(function(){var t,n;return Y(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(),M.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}(),mn=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 G(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"urlService",{get:function(){return this.context.urlService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"interactionServiceAdapter",{get:function(){return this.context.routerInteractionAdapter},enumerable:!1,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:!1,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 w.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){w.Logger.get(this).info("WORK-AROUND: Updating browser location after pop state - see angular issue #13586"),this.urlService.resetBrowserLocation(t,{replaceCurrent:!0}),this.urlService.resetBrowserLocation(e,{replaceCurrent:!1})},e.prototype.ignore=function(t,e){e=e?" -> "+e:""},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 $(this,void 0,void 0,(function(){var o,i;return Y(this,(function(r){return(o=this.componentDeactivationHandlers.get(t))||(i=0===this.componentDeactivationHandlers.size,o=new hn(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){w.Logger.get(this).info("back button pressed during navigation session interaction promise");var e=this.detachCanDeactivateInteractionContext();w.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}(w.GarbageCollector),yn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G(e,t),e.prototype.handleCanDeactivateCancelledEventScenario=function(t){O.lang.illegalState("onCanDeactivateInteractionCancelled not supported for event clean up states")},e}(mn),gn=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 G(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 $(this,void 0,void 0,(function(){return Y(this,(function(t){return[2,!1]}))}))},e}(yn),vn=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.isPopState=!0,o.debugPropertyKeys=["startingUrl","poppedHistoryUrl"],o.finished=w.Deferred.defer(),o}return G(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){w.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:!1,configurable:!0}),e}(mn),bn=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.wasTriggeredByPopState=o,i.isPopState=!1,i}return G(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(U.default.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)||O.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 vn(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){O.lang.methodNotSupported()},e}(mn),Cn=function(t){function e(){var e=t.apply(this,Z(arguments))||this;return e.isPopState=!1,e}return G(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 bn(this.context,this.startingUrl,!1)):this.context.finishRoutingSession(this.getVisits())},e.prototype.handleCanDeactivateCancelledEventScenario=function(t){this.context.transitionTo(new gn(this.context,this.startingUrl,t))},e}(mn),In=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 G(e,t),e.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation=function(){t.prototype.repairBrowserHistoryAndUrlAfterGuardCancellation.call(this,this.poppedHistoryUrl,this.startingUrl)},e}(mn),wn=function(t){function e(e,n,o){return t.call(this,e,n,o)||this}return G(e,t),e.prototype.onRouterCancelled=function(t){this.repairBrowserHistoryAndUrlAfterGuardCancellation(),this.context.transitionTo(new bn(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}(In),Pn=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 G(e,t),e.prototype.onRouterStarted=function(t){this.ignore(t)},e.prototype.onRouterCancelled=function(t){t.url===this.clickedLinkUrl?this.context.transitionTo(new Rn(this.context,this.startingUrl,this.clickedLinkUrl)):this.context.transitionTo(new Sn(this.context,this.startingUrl,this.clickedLinkUrl))},e.prototype.canDeactivatePlace=function(t,e,n){return $(this,void 0,void 0,(function(){return Y(this,(function(t){return[2,!1]}))}))},e}(yn);K([w.Trace(),X("design:type",Function),X("design:paramtypes",[E.NavigationStart]),X("design:returntype",void 0)],Pn.prototype,"onRouterStarted",null),K([w.Trace(),X("design:type",Function),X("design:paramtypes",[E.NavigationCancel]),X("design:returntype",void 0)],Pn.prototype,"onRouterCancelled",null);var Mn,xn,Rn=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.clickedLinkUrl=o,i.isPopState=!1,i.debugPropertyKeys=["idle","startingUrl","clickedLinkUrl","popStateEventUrl"],i}return G(e,t),e.prototype.onRouterEnd=function(t){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.onRouterCancelled=function(t){this.popStateEventUrl&&this.finaliseRouting()},e.prototype.finaliseRouting=function(){return this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl,this.startingUrl),this.context.finishRoutingSession()},e.prototype.canDeactivatePlace=function(t,e,n){return $(this,void 0,void 0,(function(){return Y(this,(function(t){return[2,!1]}))}))},e}(yn),Sn=function(t){function e(e,n,o){var i=t.call(this,e,n)||this;return i.clickedLinkUrl=o,i.isPopState=!1,i.debugPropertyKeys=["idle","startingUrl","clickedLinkUrl","popStateEventUrl"],i}return G(e,t),e.prototype.onRouterEnd=function(t){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.onRouterCancelled=function(t){this.popStateEventUrl&&this.finaliseRouting()},e.prototype.finaliseRouting=function(){return this.repairBrowserHistoryAndUrlAfterGuardCancellation(this.clickedLinkUrl,this.startingUrl),this.context.finishRoutingSession()},e.prototype.canDeactivatePlace=function(t,e,n){return $(this,void 0,void 0,(function(){return Y(this,(function(t){return[2,!1]}))}))},e}(yn),On=function(t){function e(){var e=t.apply(this,Z(arguments))||this;return e.isPopState=!1,e.debugPropertyKeys=["startingUrl","urlAfterRedirects"],e}return G(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 Pn(this.context,this.startingUrl,t))},e}(mn);Mn=t.NavigationContext||(t.NavigationContext={}),xn=function(t,e,n,o,i){this.urlService=t,this.routerInteractionAdapter=e,this.navigateByUrl=n,this.transitionTo=o,this.finishRoutingSession=i},Mn.Impl=xn;var An,Tn,Dn,En,Fn,_n=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 G(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 $(this,void 0,void 0,(function(){return Y(this,(function(t){return[2,!1]}))}))},e}(yn),kn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G(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 _n(this.context,this.startingUrl,t,this.poppedHistoryUrl))},e}(In);An=t.PlaceAccessGuard||(t.PlaceAccessGuard={}),Tn=function(){function t(){}return t.prototype.isAuthenticated=function(){return!0},t.prototype.isAuthorised=function(t){return!0},t}(),An.NoAuth=Tn,t.PlaceHistory=function(){function t(){this._archive=new Map,this.placeHistoryDepth=4}return t.prototype.notifyNavigationStarted=function(){this._activeVisits&&(this.archive(this._activeVisits.visits),this._previousVisits=this._activeVisits)},t.prototype.notifyNavigationFinished=function(e){this._activeVisits=new t.VisitRecord(e)},t.prototype.updateVisit=function(t){w.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 U.default.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=U.default.first(n);o&&!t.hasChangedFrom(o)||(n.unshift(t),e.setHistory(t.placeDefinition,n.slice(0,e.placeHistoryDepth)))}))},t}(),t.PlaceHistory.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t.PlaceHistory},token:t.PlaceHistory,providedIn:"root"}),t.PlaceHistory.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.PlaceHistory.ctorParameters=function(){return[]},Dn=t.PlaceHistory||(t.PlaceHistory={}),En=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}(),Dn.VisitRecord=En,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=Z(this.getPrimarySegments(n)),i=this.getSegmentsFor(e),r=o.findIndex((function(t){return t.path===i[0].path}));return o.splice.apply(o,Z([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 E.UrlSegment(t.placeDefinition.path,t.placeDefinition.getFormattedRouteParameters(t)),new E.UrlSegment(t.placeDefinition.getFormattedRouteId(t),{})]:[new E.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 U.default.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}(),(Fn=t.UrlSnapshot||(t.UrlSnapshot={})).INTERACTION_QUERY_PARAM="aup-interactions",Fn.INTERACTION_ID_SEPARATOR="--",Fn.parseInteractionIds=function(t){return t.split(Fn.INTERACTION_ID_SEPARATOR)},Fn.createPathIdFor=function(t){return t.join(Fn.INTERACTION_ID_SEPARATOR)};var Vn,Nn,Ln=function(){function e(t,e,n){this.angularRouter=t,this.angularLocation=e,this.urlSerializer=n}return e.prototype.parseUrl=function(e){return new t.UrlSnapshot(this.urlSerializer,e)},e.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(""))},e.prototype.getCurrentRouterUrl=function(){return this.angularRouter.routerState?this.angularRouter.routerState.snapshot.url:null},e.prototype.getCurrentLocationUrl=function(){return this.angularLocation.path()},e.prototype.getCurrentLocationUrlSnapshot=function(){return this.parseUrl(this.getCurrentLocationUrl())},e.prototype.getCurrentRouterSnapshot=function(){return this.parseUrl(this.getCurrentRouterUrl())},e.prototype.getActiveInteractionIdsFromUrl=function(t){return this.parseUrl(t).getInteractionIds()},e.prototype.hasActiveInteractions=function(t){return this.getActiveInteractionIdsFromUrl(t).length>0},e.prototype.resetBrowserLocation=function(t,e){e.replaceCurrent?this.angularLocation.replaceState(t):this.angularLocation.go(t)},e.prototype.back=function(){this.angularLocation.back()},e}();Ln.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new Ln(n.ɵɵinject(E.Router),n.ɵɵinject(e.Location),n.ɵɵinject(E.UrlSerializer))},token:Ln,providedIn:"root"}),Ln.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],Ln.ctorParameters=function(){return[{type:E.Router},{type:e.Location},{type:E.UrlSerializer}]},t.PlaceRouter=function(e){function n(o,i,r,a,s){var c=e.call(this)||this;c.angularRouter=o,c.angularLocation=i,c.interactionService=r,c.urlService=a,c.placeHistory=s,c.navigationSessionModel=new w.MutableValueModel,c._activeVisits=new w.MutableListModel,c.sessionFinishedJobs=[],c._accessGuard=(new w.DelegatingValueModel).withDefault(new t.PlaceAccessGuard.NoAuth),window.Cypress&&(window["aup.PlaceRouter"]=c),c.routerInteractionAdapter=r.registerPlaceRouter(c),c.navigationContext=new t.NavigationContext.Impl(c.urlService,c.routerInteractionAdapter,(function(t,e){return c.navigateByUrl(t,e)}),(function(t){c.transitionTo(t)}),(function(t){c.routingSessionFinished(t)}));var l=w.Dsl.disposeWith(c),u=l.chain;l.valueOf,l.before,l.when,l.after,l.observe,l.switchOn;c.navigationInProgress=u(c.navigationSessionModel).isNotNil();var p=u(c.interactionService.active).map((function(t){return t?"IdleDuringInteraction":"Idle"}));return c.navigationSessionName=u(c.navigationSessionModel).pluck("name").otherwise(p),w.DebugContext.tag(c._activeVisits,"PlaceRouter.activeVisits"),c.state=u(c._activeVisits).reduce((function(t){return new n.State(t)})),o.events.subscribe((function(t){t instanceof E.NavigationStart&&("popstate"===t.navigationTrigger?c.onPopState(t):c.onRouterStarted(t)),t instanceof E.NavigationEnd&&c.onRouterEnd(t),t instanceof E.NavigationError&&c.onRouterError(t),t instanceof E.NavigationCancel&&c.onRouterCancelled(t)})),i.onUrlChange((function(t){return c.onUrlChanged(t)})),c}return G(n,e),Object.defineProperty(n.prototype,"accessGuard",{get:function(){return this._accessGuard.readonly},enumerable:!1,configurable:!0}),n.prototype.configureAuth=function(t,e){var n=new w.MutableValueModel;new w.Binding(n,t,{toRight:function(t){return w.lang.illegalState("hackyMutableModel is read only")},toLeft:function(t){return t}}).writeLeft(),this._accessGuard.setDelegate(n),this.redirections=e},n.prototype.getAuthenticationFailureRedirect=function(t,e){return this.redirections.onAuthenticationFailure(t,e)},Object.defineProperty(n.prototype,"navigationSession",{get:function(){return this.navigationSessionModel.value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentSession",{get:function(){return this.navigationSessionModel.value},enumerable:!1,configurable:!0}),n.prototype.isNavigating=function(){return this.navigationInProgress.value},n.prototype.waitUntilIdle=function(){var t=this,e=w.Dsl.disposeWith(this).when;return new Promise((function(n){e(t.navigationInProgress).becomesFalsey((function(){return n(t)}),{initialValue:"evaluate",once:!0})}))},n.prototype.onPopState=function(t){if(w.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 wn(this.navigationContext,n,e):new kn(this.navigationContext,n,e);this.transitionTo(o)}},n.prototype.onRouterStarted=function(t){w.assert.isFalsey("popstate"===t.navigationTrigger);this.interactionService.isActive();this.currentSession?this.currentSession.onRouterStarted(t):this.transitionTo(this.createNavigationSession(this.urlService.getCurrentRouterUrl()))},n.prototype.onUrlChanged=function(t){this.currentSession?this.currentSession.onUrlChange(t):console.log("FYI: url changed without a navigation session in progress")},n.prototype.onRouterCancelled=function(t){this.currentSession.onRouterCancelled(t)},n.prototype.onRouterError=function(t){this.currentSession.onRouterError(t)},n.prototype.onRouterEnd=function(t){this.currentSession.onRouterEnd(t)},n.prototype.navigate=function(t,e){var n=this;return this.doNavigation(t,(function(o){return $(n,void 0,void 0,(function(){var n;return Y(this,(function(o){switch(o.label){case 0:return n=Z([t.placeDefinition.path],this.createRouteParameters(t)),[4,this.angularRouter.navigate(n,{relativeTo:e?e.relativeTo:null})];case 1:return o.sent(),[2]}}))}))}))},n.prototype.doNavigation=function(t,e){return $(this,void 0,void 0,(function(){var n;return Y(this,(function(o){switch(o.label){case 0:this.navigationInProgress.value&&w.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 E.NavigationEnd(-1,"","")),[7];case 4:return[2]}}))}))},n.prototype.navigateByUrl=function(t,e){return this.angularRouter.navigateByUrl(t.urlTree,e)},Object.defineProperty(n.prototype,"activeVisits",{get:function(){return this._activeVisits.readonly},enumerable:!1,configurable:!0}),n.prototype.pushVisitChangesToRoute=function(t,e){return $(this,void 0,void 0,(function(){var n=this;return Y(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]}))}))},n.prototype.createNavigationSession=function(t){return this.interactionService.isActive()?new Cn(this.navigationContext,t):new On(this.navigationContext,t)},n.prototype.transitionTo=function(t){var e=this.navigationSessionModel.value;e||this.placeHistory.notifyNavigationStarted(),w.assert.isTruthy(t!==e),this.navigationSessionModel.value=t,e&&e.dispose(),t.notifyActive()},n.prototype.routingSessionFinished=function(t){t&&t.length>0&&(w.assert.isTruthy(this.navigationInProgress.value),this.placeHistory.notifyNavigationFinished(t),this._activeVisits.value=t),this.currentSession.dispose(),this.navigationSessionModel.value=null,this.sessionFinishedJobs.forEach((function(t){return t()})),this.sessionFinishedJobs=[]},n.prototype.runAfterRoutingSessionFinishes=function(t){w.assert.isTruthy(this.navigationInProgress),this.sessionFinishedJobs.push(t)},n.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 bn(t.navigationContext,t.urlService.getCurrentRouterUrl(),!1);t.transitionTo(n)}))}))}return new Promise((function(e,n){t.runAfterRoutingSessionFinishes(e);var o=new bn(t.navigationContext,t.urlService.getCurrentRouterUrl(),!1);t.transitionTo(o)}))},n.prototype.createRouteParameters=function(t){var e=t.placeDefinition;return t.hasRouteId()?[e.getFormattedRouteId(t),e.getFormattedRouteParameters(t)]:[e.getFormattedRouteParameters(t)]},n}(w.GarbageCollector),t.PlaceRouter.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new t.PlaceRouter(n.ɵɵinject(E.Router),n.ɵɵinject(e.Location),n.ɵɵinject(t.InteractionService),n.ɵɵinject(Ln),n.ɵɵinject(t.PlaceHistory))},token:t.PlaceRouter,providedIn:"root"}),t.PlaceRouter.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.PlaceRouter.ctorParameters=function(){return[{type:E.Router},{type:e.Location},{type:t.InteractionService},{type:Ln},{type:t.PlaceHistory}]},Vn=t.PlaceRouter||(t.PlaceRouter={}),Nn=function(){function t(t){this.activeVisits=t}return t.prototype.isPlaceActive=function(t){return!!this.getVisitFor(t)},t.prototype.getVisitFor=function(t){return this.activeVisits.find((function(e){return e.placeDefinition===t}))},t}(),Vn.State=Nn;var Hn=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!M.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,Object.assign(Object.assign({},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=M.isEqual(this.placeDefinition.getFormattedRouteParameters(this,!0),this.placeDefinition.getFormattedRouteParameters(t,!0));return!e||!n},t.prototype.hasChangedFrom=function(t){return!M.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}(),jn=new n.InjectionToken("AUP_PLACE_CONFIG"),Un=function(){};Un.decorators=[{type:n.Component,args:[{selector:"aup-not-authorised-notice",template:"<p>You are not authorised to access this page</p>\n",styles:[":host{display:flex;flex-direction:column;align-items:center;justify-content:center}"]}]}],Un.ctorParameters=function(){return[]};var Bn=N.style({position:"absolute",top:"0",left:"0",bottom:"0",right:"0"}),qn=[N.query(":enter, :leave",Bn,{optional:!0}),N.group([N.query(":enter",[N.style({transform:"translateX(-100%)"}),N.animate("{{duration}} ease-out",N.style({transform:"translateX(0%)"}))],{optional:!0}),N.query(":leave",[N.style({transform:"translateX(0%)"}),N.animate("{{duration}} ease-out",N.style({transform:"translateX(100%)"}))],{optional:!0})])],zn=[N.query(":enter, :leave",Bn,{optional:!0}),N.group([N.query(":enter",[N.style({transform:"translateX(100%)",minHeight:"1px"}),N.animate("{{duration}} ease-out",N.style({transform:"translateX(0%)"}))],{optional:!0}),N.query(":leave",[N.style({transform:"translateX(0%)"}),N.animate("{{duration}} ease-out",N.style({transform:"translateX(-100%)",minHeight:"1px"}))],{optional:!0})])];function Wn(t){return N.trigger("routeAnimations",[N.transition(":increment",zn,{params:{duration:t}}),N.transition(":decrement",qn,{params:{duration:t}})])}var Gn=Wn("0.3s"),Kn=new n.InjectionToken("AUP_UNAUTHORISED_PLACE_COMPONENT"),Xn=function(t){function e(e,o,i,r,a,s){var c=t.call(this)||this;c.router=e,c.placeRouter=o,c.placeConfig=i,c.cdr=s,c.placeChanged=new n.EventEmitter,c.outletActivated=new w.MutableValueModel(!1),c._activatedRouteModel=new w.MutableValueModel,c._activePlaceModel=new w.MutableValueModel,c.initialPlaceIndex=null,c._isPushingVisitToRoute=new w.MutableValueModel(!1),c.isVeryFirstLoad=!0;var u=w.Dsl.disposeWith(c),p=u.chain,d=u.valueOf,f=(u.before,u.when);u.after,u.observe,u.switchOn;c.parentOutletModel=new w.MutableValueModel(a);var h=p(c.parentOutletModel).pullValueModel((function(t){return t.activePlaceModel})).pluck("placeDefinition").pluckList("children").pluck("component"),m=p(c.activePlaceModel).map((function(t){return t.constructor}));return c.placesInAnimationOrder=p(c.customPlaceAnimationOrderModel).otherwise(h),c.activePlaceAnimationPosition=c.placesInAnimationOrder.reduce((function(t){var e=0;return m.value&&(e=t.indexOf(m.value),M.isNil(c.initialPlaceIndex)&&(c.initialPlaceIndex=e)),M.isNil(c.initialPlaceIndex)?0:e-c.initialPlaceIndex}),{dependsOn:m}),c.animationSupported=c.placesInAnimationOrder.count().isGreaterThan(0),c.animationEnabled=d.all(c.animateModel,c.animationSupported).areTruthy(),c._activePlaceDefinition=p(c._activePlaceModel).pluck("placeDefinition"),c.routerVisitModel=p(o.state).map((function(t){return t.getVisitFor(c._activePlaceDefinition.value)}),{dependsOn:c._activePlaceDefinition}),c.navigationInProgress=p(c.placeRouter.navigationInProgress),f(c.navigationInProgress).becomesFalsey((function(){c.checkStateAndInitialise()})),f(c.outletActivated).becomesTruthy((function(){c.checkStateAndInitialise()})),p(c._activePlaceModel).postponeWhile(c.navigationInProgress).subscribe((function(t){return c.placeChanged.emit(t)})),c.authorised=p(o.accessGuard).map((function(t){return t.isAuthorised(c._activePlaceDefinition.value)}),{dependsOn:c._activePlaceDefinition,postponeWhile:p(c._activePlaceDefinition).isNil()}).otherwise(!0),c.notAuthorisedNoticePortal=new l.ComponentPortal(null!=r?r:Un),c}return G(e,t),e.prototype.ngOnInit=function(){},e.prototype.getAnimationOrder=function(){return this.activePlaceAnimationPosition.value},Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.placeConfig&&this.placeConfig.animationDuration?this.placeConfig.animationDuration:"500ms"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAuthorised",{get:function(){return this.authorised.value},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"activePlaceModel",{get:function(){return this._activePlaceModel.readonly},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteModel",{get:function(){return this._activatedRouteModel.readonly},enumerable:!1,configurable:!0}),e.prototype.onOutletActivated=function(t,e){this._activatedRouteModel.value=t.activatedRoute,this._activePlaceModel.value=e,this.validateAnimationState(e),this.outletActivated.value=!0,this.checkStateAndInitialise()},e.prototype.validateAnimationState=function(t){this.animateModel.value&&(this.placesInAnimationOrder.length<1?console.error("PlaceOutlet.animate === true but placeAnimationOrder has not been set. Animation is disabled."):this.placesInAnimationOrder.query().includes(t.placeDefinition.component)||console.error("PlaceOutlet.animate === true but placeAnimationOrder doesn't contain "+t.placeDefinition.component.name+"."))},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&&w.lang.illegalState("wrong visit!!!"),this.initialisePlace(t,e),this.cdr.detectChanges())},e.prototype.initialisePlace=function(t,e){var n=this,o=new w.MutableValueModel(t);w.DebugContext.tag(o,"PlaceOutletComponent["+e.constructor.name+")].visitModel"),e.initialiseVisit(t,(function(t,e){n.pushVisitChangeToRoute(e,t)}));var i=function(){n._activePlaceModel.value._notifyActive(!0)};!this.animationEnabled.value||this.isVeryFirstLoad?(this.isVeryFirstLoad=!1,i()):this.onAnimationFinishedJob=i;var r=w.Dsl.disposeWith(e),a=r.when,s=(r.chain,r.valueOf);a(this.routerVisitModel).changes((function(t){e.updateVisit(t)}),{unless:s.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.onAnimationFinishedJob&&(this.onAnimationFinishedJob(),this.onAnimationFinishedJob=void 0)},e}(tt);Xn.decorators=[{type:n.Component,args:[{selector:"aup-place-outlet",template:'<ng-container *ngIf="animationEnabled.value">\n <div class="router-outlet-container"\n 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="!animationEnabled.value">\n <div class="router-outlet-container"\n cdkScrollable>\n <router-outlet #routerOutlet="outlet"\n (activate)="onOutletActivated(routerOutlet, $event)"\n (deactivate)="onOutletDeactivated()">\n </router-outlet>\n </div>\n</ng-container>\n\n<div class="not-authorised-component-container" *ngIf="!authorised.value">\n <ng-template [cdkPortalOutlet]="notAuthorisedNoticePortal"></ng-template>\n</div>\n',animations:[Gn],styles:[":host{display:flex;flex-direction:column;min-height:0}:host:not(.authorised) .router-outlet-container{display:none}.router-outlet-container{flex:1;display:block;position:relative;min-height:0;overflow-x:hidden;overflow-y:scroll}router-outlet{display:none}.not-authorised-component-container{flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}"]}]}],Xn.ctorParameters=function(){return[{type:E.Router},{type:t.PlaceRouter},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[jn]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Kn]}]},{type:Xn,decorators:[{type:n.SkipSelf},{type:n.Optional}]},{type:n.ChangeDetectorRef}]},Xn.propDecorators={animate:[{type:n.Input}],animateModel:[{type:n.Input}],customPlaceAnimationOrderModel:[{type:n.Input,args:["placeAnimationOrderModel"]}],customPlaceAnimationOrder:[{type:n.Input,args:["placeAnimationOrder"]}],placeChanged:[{type:n.Output}],routerOut:[{type:n.ViewChild,args:["routeOutlet",{static:!0}]}],isAuthorised:[{type:n.HostBinding,args:["class.authorised"]}]},K([w.StoreInValueModel("animateModel"),X("design:type",Boolean)],Xn.prototype,"animate",void 0),K([w.TrackExternal({defaultValue:!0}),X("design:type",w.ValueModel)],Xn.prototype,"animateModel",void 0),K([w.TrackExternal(),X("design:type",w.ListModel)],Xn.prototype,"customPlaceAnimationOrderModel",void 0),K([w.StoreInListModel("customPlaceAnimationOrderModel"),X("design:type",Array)],Xn.prototype,"customPlaceAnimationOrder",void 0);var $n=function(e){function n(n){var o=e.call(this)||this;o.placeRouter=n,o._activePlaceComponent=new w.DelegatingValueModel,o.trackByPlaceDef=function(t){return t.place};var i=w.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)})).select((function(t){var e=n.accessGuard.value,o=n.state.value;return e.isAuthorised(t)||o.isPlaceActive(t)}),{dependsOn:[n.accessGuard,n.state]}),o.commandFactory=w.Command.createFactory((function(t){o.placeOutlet.navigate(new Hn(t))})),a(o.placeOutletModel).changes((function(t){return o.handlePlaceOutLetChanged(t)}),{initialValue:"triggerChange"}),o.activePlaceDefinition=r(o._activePlaceComponent).pluck("placeDefinition"),o.menuItems=r(o.placeDefinitions).map((function(t){return{place:t,active:o.activePlaceDefinition.value===t}}),{dependsOn:o.activePlaceDefinition}),o}return G(n,e),n.prototype.handlePlaceOutLetChanged=function(t){this._activePlaceComponent.setDelegate(t?t.activePlaceModel:null)},n.prototype.getNavigationFace=function(t){var e=t.getPlaceData("nav");return{text: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)}}},n.prototype.ngOnInit=function(){},n}(tt);$n.decorators=[{type:n.Component,args:[{template:""}]}],$n.ctorParameters=function(){return[{type:t.PlaceRouter}]},$n.propDecorators={places:[{type:n.Input}],placesModel:[{type:n.Input}],placeOutlet:[{type:n.Input}],placeOutletModel:[{type:n.Input}]},K([w.StoreInListModel("placesModel"),X("design:type",Array)],$n.prototype,"places",void 0),K([w.TrackExternal(),X("design:type",w.ListModel)],$n.prototype,"placesModel",void 0),K([w.StoreInValueModel("placeOutletModel"),X("design:type",Xn)],$n.prototype,"placeOutlet",void 0),K([w.TrackExternal(),X("design:type",w.ValueModel)],$n.prototype,"placeOutletModel",void 0),K([x.Memoize(),X("design:type",Function),X("design:paramtypes",[pn]),X("design:returntype",Object)],$n.prototype,"getNavigationFace",null);var Yn=function(t){function e(e){return t.call(this,e)||this}return G(e,t),e}($n);Yn.decorators=[{type:n.Component,args:[{selector:"aup-list-place-nav",template:'<mat-nav-list fxFlex>\n <a mat-list-item *ngFor="let item of menuItems.value; trackBy: trackByPlaceDef"\n [pectinCommand]="commandFactory.create(item.place)"\n [class.active]="item.active"\n [matTooltip]="getNavigationFace(item.place).tooltip()">\n <aup-command-face [faces]="[getNavigationFace(item.place)]"></aup-command-face>\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{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]}]}],Yn.ctorParameters=function(){return[{type:t.PlaceRouter}]};var Jn=function(t){function e(e){var n=t.call(this,e)||this;return n.expanded=!1,n}return G(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}($n);Jn.decorators=[{type:n.Component,args:[{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 item of menuItems.value; trackBy: trackByPlaceDef"\n [pectinCommand]="commandFactory.create(item.place)"\n [class.active]="item.active"\n [matTooltip]="getNavigationFace(item.place).tooltip()">\n <aup-icon *ngIf="getNavigationFace(item.place).icon()" [icon]="getNavigationFace(item.place).icon()"></aup-icon>\n <span class="expanded-only">{{getNavigationFace(item.place).text()}}</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,hsla(0,0%,100%,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)}"]}]}],Jn.ctorParameters=function(){return[{type:t.PlaceRouter}]},Jn.propDecorators={expanded:[{type:n.HostBinding,args:["class.expanded"]}],navEndTemplate:[{type:n.ContentChild,args:["navEndTemplate"]}]};var Zn=function(t){function e(e){return t.call(this,e)||this}return G(e,t),e}($n);Zn.decorators=[{type:n.Component,args:[{selector:"aup-tabbed-place-navigation",template:'<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor="let item of menuItems.value; trackBy: trackByPlaceDef"\n [pectinCommand]="commandFactory.create(item.place)"\n [active]="item.active"\n [matTooltip]="getNavigationFace(item.place).tooltip()">\n <aup-command-face [faces]="[getNavigationFace(item.place)]"></aup-command-face>\n </a>\n</nav>\n',styles:[""]}]}],Zn.ctorParameters=function(){return[{type:t.PlaceRouter}]};var Qn=function(){};Qn.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,c.BrowserAnimationsModule,g.MatProgressSpinnerModule,E.RouterModule,s.MatTabsModule,_.MatListModule,b.MatTooltipModule,m.MatIconModule,at,T.FlexModule,He,l.PortalModule],declarations:[Xn,Zn,Yn,Jn,$n,Un],entryComponents:[],exports:[Xn,Zn,Yn,Jn,$n],providers:[]}]}];var to=function(){};to.decorators=[{type:n.NgModule,args:[{declarations:[],imports:[e.CommonModule,c.BrowserAnimationsModule,o.FormsModule,r.MatInputModule,i.MatFormFieldModule,a.MatSelectModule,s.MatTabsModule,at,He,Qn,un],exports:[un,Qn,at,He,kt]}]}];var eo=N.style({opacity:0,height:"0",paddingTop:"0",paddingBottom:"0"}),no=N.trigger("slideDownOnEnter",[N.transition(":enter",[eo,N.animate("{{duration}}")],{params:{duration:"100ms"}}),N.transition(":leave",[N.animate("{{duration}}",eo)],{params:{duration:"100ms"}})]),oo=N.style({opacity:0,width:"0",paddingLeft:"0",paddingRight:"0"}),io=N.trigger("slideRightOnEnter",[N.transition(":enter",[oo,N.animate("{{duration}}")],{params:{duration:"100ms"}}),N.transition(":leave",[N.animate("{{duration}}",oo)],{params:{duration:"100ms"}})]),ro=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 w.GarbageCollector,O.assert.notNil(o),r}return G(e,t),e.prototype.cancelActiveActivity=function(){return this.activityContainer.cancelActiveActivity()},e.prototype.dispose=function(){this.isActive()&&w.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;O.assert.isNil(this._currentActivityRef);var i=Object.assign(Object.assign({},this.config),{disableClose:n,panelClass:"dialog-interaction-context"}),r=this.dialogService.open($e,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}(Ge),ao=new n.InjectionToken("DIALOG_INTERACTION_SERVICE_DEFAULTS"),so=function(t){function e(e,n,o){var i=t.call(this)||this;return i.dialogService=e,i.dialogServiceDefaults=n,i.matDialogDefaultConfig=o,O.assert.notNil(e),i}return G(e,t),e.prototype.createInteractionContext=function(t,e,n){var o=Object.assign(Object.assign({autoFocus:!1,hasBackdrop:!0,closeOnNavigation:!1},this.matDialogDefaultConfig),this.dialogServiceDefaults);return new ro(t,e,this.dialogService,o)},e}(Qe);so.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new so(n.ɵɵinject(D.MatDialog),n.ɵɵinject(ao,8),n.ɵɵinject(D.MAT_DIALOG_DEFAULT_OPTIONS,8))},token:so,providedIn:"root"}),so.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],so.ctorParameters=function(){return[{type:D.MatDialog},{type:D.MatDialogConfig,decorators:[{type:n.Optional},{type:n.Inject,args:[ao]}]},{type:D.MatDialogConfig,decorators:[{type:n.Optional},{type:n.Inject,args:[D.MAT_DIALOG_DEFAULT_OPTIONS]}]}]};var co=function(){function t(t,e){this.paramMaps=[t].concat((e||[]).map((function(t){return new lo(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:!1,configurable:!0}),t}();K([x.Memoize(),X("design:type",Array),X("design:paramtypes",[])],co.prototype,"keys",null);var lo=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:!1,configurable:!0}),t}(),uo=function(){function t(){}return t.prototype.canActivate=function(t,e){return $(this,void 0,void 0,(function(){return Y(this,(function(t){return[2,!0]}))}))},t}();uo.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new uo},token:uo,providedIn:"root"}),uo.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],uo.ctorParameters=function(){return[]};var po,fo,ho,mo,yo=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 $(this,void 0,void 0,(function(){var e,n,o,i,r,a,s,c,l;return Y(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(l=u.sent(),n.hasChanged(o,l))return[2,t.replace(n,l)];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],c=t.getParameter(s.name),[4,s.sanitise(c,r,this.placeHistory,this.injector,this.navigationSession.isPopState)]):[3,6];case 4:l=u.sent(),s.hasChanged(c,l)&&(r=r.replace(s,l)),u.label=5;case 5:return a++,[3,3];case 6:return[2,r.hasChangedFrom(t)?r:t]}}))}))},t}(),go=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(e,n){return $(this,void 0,void 0,(function(){var o,i,r,a,s=this;return Y(this,(function(c){switch(c.label){case 0:return t.PlaceComponent.isPlaceComponentConstructor(e.component)?(o=t.PlaceComponent.getDefinition(e.component)).authenticate?[4,this.placeRouter.accessGuard.value.isAuthenticated()]:[3,2]:[3,4];case 1:if(!c.sent())return i=this.placeRouter.getAuthenticationFailureRedirect(e,n),(r=this.getPlaceDefinition(i)).authenticate&&w.lang.illegalState("handleNotAuthenticated hook returned place "+r.component.name+" that requires authentication."),[2,this.createUrlTree(i)];c.label=2;case 2:return[4,this.cleanInteractionState(e,n,(function(){return $(s,void 0,void 0,(function(){var t,i,r,a,s;return Y(this,(function(c){switch(c.label){case 0:return t=new co(e.paramMap,e.url),i=o.parseRouteParams(t),r=this.placeRouter.navigationSession,a=r.getVisitFor(o)||new Hn(o,i),[4,new yo(r,e,this.router,this.placeHistory,this.injector).sanitise(a.mergeRouteParameters(i))];case 1:return s=c.sent(),r.storeVisit(s),a.hasRoutingChangedFrom(s)?[2,this.urlService.parseUrl(n.url).updateVisitSegments(s)]:[2,!0]}}))}))}))];case 3:return[2,(a=c.sent())instanceof t.UrlSnapshot?a.urlTree:a];case 4:return[2,w.lang.illegalState("expected component to be an instance of PlaceComponent, got "+e.component)]}}))}))},e.prototype.canDeactivate=function(e,n,o,i){return $(this,void 0,void 0,(function(){var n,r,a;return Y(this,(function(s){switch(s.label){case 0:return e?(n=this.urlService.parseUrl(o.url),r=this.urlService.parseUrl(i.url),[4,this.placeRouter.navigationSession.canDeactivatePlace(e,n,r)]):[2,!0];case 1:return[2,(a=s.sent())instanceof t.UrlSnapshot?a.urlTree:a]}}))}))},e.prototype.getPlaceDefinition=function(e){return e instanceof Hn?e.placeDefinition:t.PlaceComponent.getDefinition(e)},e.prototype.createUrlTree=function(e){var n=e instanceof Hn?e:new Hn(t.PlaceComponent.getDefinition(e),{});return this.urlService.createUrlSnapshot(n).urlTree},e.prototype.cleanInteractionState=function(t,e,n){return $(this,void 0,void 0,(function(){var t;return Y(this,(function(o){return t=this.urlService.parseUrl(e.url),!this.interactionService.isActive()&&t.hasInteractions()?[2,t.removeInteractionIds()]:[2,n()]}))}))},e}();function vo(t,e,n,o,i){var r={backingModel:n,binding:null},a=o+"("+t.constructor.name+"."+e.toString()+")";w.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 w.Binding(r.backingModel,t,{toLeft:w.Functions.identity,toRight:w.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()))}})}go.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new go(n.ɵɵinject(E.Router),n.ɵɵinject(Ln),n.ɵɵinject(t.PlaceRouter),n.ɵɵinject(t.PlaceHistory),n.ɵɵinject(t.InteractionService),n.ɵɵinject(n.INJECTOR))},token:go,providedIn:"root"}),go.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],go.ctorParameters=function(){return[{type:E.Router},{type:Ln},{type:t.PlaceRouter},{type:t.PlaceHistory},{type:t.InteractionService},{type:n.Injector}]},po=t.Formatter||(t.Formatter={}),fo=function(){function t(){}return t.prototype.format=function(t){return t},t.prototype.parse=function(t){return t},t}(),ho=function(){function t(){}return t.prototype.format=function(t){return U.default.isNumber(t)&&!U.default.isNaN(t)?""+t:null},t.prototype.parse=function(t){var e=Number.parseFloat(t);return U.default.isNaN(e)?null:e},t}(),mo=function(){function t(){}return t.prototype.format=function(t){return t?"true":"false"},t.prototype.parse=function(t){return"true"===t},t}(),po.STRING=new fo,po.NUMBER=new ho,po.BOOLEAN=new mo;var bo=function(t){function e(e){var n=t.call(this)||this;n._visibleModel=new w.MutableValueModel,n.document=e;w.Dsl.disposeWith(n).chain;if(void 0!==n.document.hidden?(n.attributeName="hidden",n.eventName="visibilitychange"):void 0!==n.document.msHidden?(n.attributeName="msHidden",n.eventName="msvisibilitychange"):void 0!==n.document.webkitHidden&&(n.attributeName="webkitHidden",n.eventName="webkitvisibilitychange"),void 0===n.document.addEventListener||void 0===e[n.attributeName])console.log("This demo requires a browser, such as Google Chrome or Firefox, that supports the Page Visibility API.");else{var o=function(){return n.updateVisibilityState()};n.document.addEventListener(n.eventName,o,!1),n.onDispose((function(){n.document.removeEventListener(n.eventName,o)}))}return z((function(){return n.updateVisibilityState()})),n._visibleModel.value=n.isVisible(),n}return G(e,t),e.prototype.updateVisibilityState=function(){this._visibleModel.value=this.isVisible()},Object.defineProperty(e.prototype,"visibleModel",{get:function(){return this._visibleModel.readonly},enumerable:!1,configurable:!0}),e.prototype.isHidden=function(){return!!this.document[this.attributeName]},e.prototype.isVisible=function(){return!this.isHidden()},e}(w.GarbageCollector);bo.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new bo(n.ɵɵinject(e.DOCUMENT))},token:bo,providedIn:"root"}),bo.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],bo.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]}]},t.ACTIVITY_DATA=Ue,t.AUP_PLACE_CONFIG=jn,t.AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT=Kn,t.AbstractInputActivity=an,t.AbstractInputComponent=Mt,t.AbstractInteractionContext=Ge,t.AbstractListInputComponent=xt,t.AbstractPlaceNavigationComponent=$n,t.AbstractPopStateNavigation=In,t.AbstractPopupMenuComponent=ht,t.AbstractValueInputComponent=Rt,t.Activity=Be,t.ActivityActionsComponent=je,t.ActivityBodyComponent=Ye,t.ActivityContainerComponent=$e,t.ActivityOutletComponent=Xe,t.ActivityRef=Ke,t.ActivityTitleComponent=Je,t.AddItemInteractionContextComponent=nn,t.AlertDialogComponent=qe,t.AngularUiPowerupsModule=to,t.AutocompleteInputComponent=St,t.BusyOverlayComponent=st,t.CELL_EDITOR_PORTAL=Xt,t.CELL_RENDERER_PORTAL=Kt,t.CardContainerComponent=ct,t.CellEditorPortalRef=ee,t.CellHeaderPortalRef=Zt,t.CellPortalRef=Jt,t.CellRendererPortalRef=Qt,t.CheckboxInputComponent=Ot,t.ColumnModel=ue,t.ColumnTemplateDirective=Ie,t.CommandComponent=dt,t.CommandDirective=Q,t.CommandFaceComponent=lt,t.ComponentCellRendererPortalRef=te,t.ComponentsModule=He,t.ConfirmThenDialogComponent=ze,t.ConfirmationDialogComponent=We,t.ConsolidatedParameterMap=co,t.CustomTemplateColumnModel=me,t.CustomValueColumnModel=fe,t.DEFINITION_META_DATA_KEY=dn,t.DIALOG_INTERACTION_SERVICE_DEFAULTS=ao,t.DefaultCellRendererComponent=oe,t.DefaultHeaderCellRendererComponent=ie,t.DialogInteractionContext=ro,t.DialogInteractionContextFactory=so,t.Dimension=qt,t.DirectivesModule=at,t.DisposableComponent=tt,t.EditRowControls=re,t.EditSession=ge,t.EditorControlColumnModel=he,t.EmptyStateComponent=It,t.EventCleanUpSession=yn,t.FlattenStrategy=ke,t.FlexComponent=ft,t.FocusBinding=et,t.FocusBindingDirective=ot,t.FocusBindingFactory=nt,t.FocusContainerComponent=wt,t.FocusableComponent=Pt,t.HEADER_CELL_RENDERER_PORTAL=Gt,t.HighlightPipe=rt,t.HighlightTextModelDirective=it,t.InPlaceInteractionContextComponent=en,t.InteractionContextTriggerFor=rn,t.InteractionModule=un,t.InteractionServiceRoutingAdapter=Ze,t.LEFT_RIGHT_PLACE_ANIMATION=Gn,t.ListPlaceNavComponent=Yn,t.ListPropertyColumnModel=de,t.ModalInteractionContextFactory=Qe,t.MoreMenuComponent=yt,t.MultipleSelectInputComponent=At,t.Navigating=On,t.NavigatingDuringInteraction=Cn,t.NavigationSession=mn,t.NoopAuthGuard=uo,t.NoopComponent=kt,t.NotAuthorisedNoticeComponent=Un,t.NumberInputComponent=Tt,t.POPUP_CONTAINER=pt,t.PORTAL_EDITOR_COMPONENT=Yt,t.PORTAL_RENDERER_COMPONENT=$t,t.PaginatorComponent=Le,t.PasswordInputComponent=Dt,t.Place=function(e){return function(n){t.PlaceComponent.isPlaceComponentConstructor(n)?t.PlaceComponent.injectDefinition(n,new pn(n,e.path,!!M.isNil(e.authenticate)||e.authenticate,M.isNil(e.roles)?[]:e.roles,e.data,t.PlaceComponent.getRouteParameters(n),(e.children||[]).map((function(e){return t.PlaceComponent.getDefinition(e)})))):w.lang.illegalState(n+" must extend PlaceComponent to use the @Place decorator")}},t.PlaceComponentDeactivationHandler=hn,t.PlaceDefinition=pn,t.PlaceGuard=go,t.PlaceModule=Qn,t.PlaceOutletComponent=Xn,t.Point=zt,t.PopStateDuringInteractionNavigation=wn,t.PopStateNavigation=kn,t.PopupAwareComponent=ut,t.PopupInteractionContextComponent=on,t.PopupMenuComponent=Ct,t.PopupMenuRendererComponent=bt,t.PropertyColumnModel=pe,t.ROUTE_PARAMETER_LIST_KEY=fn,t.RemoveLastInteractionFromUrlNavigationSession=vn,t.ResizeAwareComponent=Wt,t.RouteId=function(e,n){return function(o,i){var r=new t.ParameterDefinition.RouteId(i.toString(),n,e);O.Klass.get(o).addToOwnMetadataList(fn,r),vo(o,i,new w.MutableValueModel,"@RouteId",(function(t){return t.query().isNil()}))}},t.ScrollContainerComponent=Vt,t.SectionHeaderComponent=Nt,t.SelectCellRendererComponent=ae,t.SelectHeaderCellRendererComponent=se,t.SelectInputActivity=cn,t.SelectInputComponent=Et,t.SelectionColumnModel=ye,t.SeparatorComponent=vt,t.SidePlaceNavigationComponent=Jn,t.StringInputActivity=sn,t.StringInputComponent=Ft,t.SwitchCaseComponent=Ut,t.SwitchCaseDefaultDirective=jt,t.SwitchCaseOption=Lt,t.SwitchCaseWhenDirective=Ht,t.SynchroniseInteractionContextIdsWithRoute=bn,t.TabbedPlaceNavigationComponent=Zn,t.TableCellRendererComponent=we,t.TableComponent=Ce,t.TableHeaderCellRendererComponent=Pe,t.TableModel=ln,t.TableRowMenuComponent=xe,t.TemplateCellRendererPortalRef=ne,t.TextInputComponent=_t,t.ToolBarComponent=gt,t.TreeExpansionModel=Te,t.TreeLabelCellRendererComponent=Se,t.TreeLabelColumnModel=De,t.TreeTableComponent=Ve,t.TreeTableModel=_e,t.TreeToListModel=Fe,t.UrlService=Ln,t.VerticalFocusContainerComponent=Ne,t.VisibilityService=bo,t.Visit=Hn,t.VisitParameter=function(e){var n=O.Opts.get(e);return function(o,i){var r=new t.ParameterDefinition.ValueParameter(i.toString(),e,n.getOptional("storeInUrl",null));O.Klass.get(o).addToOwnMetadataList(fn,r),vo(o,i,new w.MutableValueModel,"@VisitParameter",(function(t){return t.query().isNil()}))}},t.VisitParameterList=function(e){var n=O.Opts.get(e);return function(o,i){var r=new t.ParameterDefinition.ArrayParameter(i.toString(),e,n.getOptional("storeInUrl",null));O.Klass.get(o).addToOwnMetadataList(fn,r),vo(o,i,new w.MutableListModel,"@VisitParameterList",(function(t){return t.query().isEmpty()}))}},t.VisitSanitiser=yo,t.WaitUntilLeavingInteractionTransitionCancelled=gn,t.WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined=Pn,t.WaitUntilPopStateDuringCanDeactivateInteractionFinishes=_n,t.leftRightPlaceAnimation=Wn,t.slideDownOnEnterAnimation=no,t.slideRightOnEnterAnimation=io,t.ɵ0=ce,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=coolon-angular-ui-powerups.umd.min.js.map
|