@progress/kendo-angular-dialog 7.1.2-dev.202206021251 → 7.1.2

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.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/animations"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@progress/kendo-popup-common"),require("@progress/kendo-angular-buttons")):"function"==typeof define&&define.amd?define("KendoAngularDialog",["exports","@angular/core","@angular/animations","rxjs","rxjs/operators","@angular/common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@progress/kendo-angular-common","@progress/kendo-popup-common","@progress/kendo-angular-buttons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDialog={},e.ng.core,e.ng.animations,e.rxjs,e.rxjs.operators,e.ng.common,e.KendoAngularL10N,e.KendoLicensing,e.KendoAngularCommon,e.KendoPopupCommon,e.KendoAngularButtons)}(this,function(e,d,s,u,g,t,n,j,R,W,i){"use strict";function B(n){if(n&&n.__esModule)return n;var i=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i)}var o=B(d),L=B(s),r=B(t),a=B(n),N=B(R),H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function X(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function q(e){return String(e).trim().split(" ")}function K(e,t){var n=q(t);return Boolean(q(e.className).find(function(e){return 0<=n.indexOf(e)}))}function Y(e,t){var n,i;return void 0===t&&(t=!0),!!e.tagName&&(n=e.tagName.toLowerCase(),i=null!==(i=e.getAttribute("tabIndex"))&&!isNaN(i)&&-1<i,(ee.test(n)?!e.disabled:i)&&(!t||!(!(i=(n=e).getBoundingClientRect()).width||!i.height)&&"hidden"!==window.getComputedStyle(n).visibility))}function $(e,t,n){for(var i in e)i&&t.setAttribute(n,i,e[i])}function U(e){return p(t=e)&&!Array.isArray(t)&&"object"==typeof t?(n=e,i=[],Object.keys(n).forEach(function(e){var t=re(e);n[e]&&t[0]&&i.push.apply(i,X([],_(t)))}),i):Q(e)?(o=[],re(e).forEach(function(e){o.push(e)}),o):Array.isArray(e)?(r=[],e.forEach(function(e){e=re(e);e[0]&&r.push.apply(r,X([],_(e)))}),r):void 0;var n,i,t,o,r}function G(e){(e=e.originalEvent).stopPropagation(),e.preventDefault()}function Q(e){return e instanceof String||"string"==typeof e}function J(e){return e+("number"==typeof(e=e)&&isFinite(e)?"px":"")}var l,p=function(e){return null!=e},ee=/^(?:a|input|select|textarea|button|object)$/i,te=((c=l=l||{})[c.esc=27]="esc",c[c.tab=9]="tab",c[c.enter=13]="enter",c[c.space=32]="space",c[c.ctrl=17]="ctrl",c[c.shift=16]="shift",c[c.left=37]="left",c[c.up=38]="up",c[c.right=39]="right",c[c.down=40]="down","k-dialog-wrapper k-dialog-buttongroup k-dialog-action"),ne=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),ie=["n","e","s","w","se","sw","ne","nw"],oe=["top","left","width","height"],re=function(e){return e.trim().replace(/\s+/g," ").split(" ")},c=(Object.defineProperty(se.prototype,"actions",{set:function(e){if(e instanceof d.TemplateRef)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!1,configurable:!0}),se.prototype.onButtonClick=function(e,t){this.action.emit(e)},se.prototype.buttonClass=function(e){var t=["k-button k-button-md k-rounded-md"],n=e.fillMode||"solid",i=e.themeColor||"base",e=e.cssClass?U(e.cssClass):[];return t.push("k-button-"+n+" k-button-"+n+"-"+i),(t=0<e.length?t.concat(e):t).join(" ")},se);function se(e){this.el=e,this.layout="stretched",this.action=new d.EventEmitter,this.buttonGroupClassName=!0}c.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:c,deps:[{token:o.ElementRef}],target:o.ɵɵFactoryTarget.Component}),c.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:c,selector:"kendo-dialog-actions",inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},host:{properties:{"class.k-dialog-buttongroup":"this.buttonGroupClassName","class.k-actions":"this.buttonGroupClassName","class.k-actions-stretched":"this.className"}},ngImport:o,template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n ',isInline:!0,directives:[{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:r.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:c,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef}]},propDecorators:{actions:[{type:d.Input}],layout:[{type:d.Input}],action:[{type:d.Output}],buttonGroupClassName:[{type:d.HostBinding,args:["class.k-dialog-buttongroup"]},{type:d.HostBinding,args:["class.k-actions"]}],className:[{type:d.HostBinding,args:["class.k-actions-stretched"]}]}});le.prototype.preventDefault=function(){this.prevented=!0},le.prototype.isDefaultPrevented=function(){return this.prevented};var ae=le;function le(){this.prevented=!1}var ce,pe=new d.InjectionToken("Dialog LocalizationService"),h=(Z(de,ce=n.LocalizationService),de.prototype.get=function(e){return this.dialogLocalization?this.dialogLocalization.get(e):ce.prototype.get.call(this,e)},de);function de(e,t,n,i){e=ce.call(this,e,t,n)||this;return e.dialogLocalization=i,e}h.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h,deps:[{token:n.L10N_PREFIX},{token:a.MessageService,optional:!0},{token:n.RTL,optional:!0},{token:pe,optional:!0}],target:o.ɵɵFactoryTarget.Injectable}),h.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:void 0,decorators:[{type:d.Inject,args:[n.L10N_PREFIX]}]},{type:a.MessageService,decorators:[{type:d.Optional}]},{type:void 0,decorators:[{type:d.Optional},{type:d.Inject,args:[n.RTL]}]},{type:a.LocalizationService,decorators:[{type:d.Optional},{type:d.Inject,args:[pe]}]}]}});Z(ge,ue=n.ComponentMessages);var ue,m=ge;function ge(){return null!==ue&&ue.apply(this,arguments)||this}m.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:m,deps:null,target:o.ɵɵFactoryTarget.Directive}),m.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"kendo-dialog-messages-base",inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:m,decorators:[{type:d.Directive,args:[{selector:"kendo-dialog-messages-base"}]}],propDecorators:{closeTitle:[{type:d.Input}],restoreTitle:[{type:d.Input}],maximizeTitle:[{type:d.Input}],minimizeTitle:[{type:d.Input}]}});Z(me,he=m);var he,f=me;function me(e){var t=he.call(this)||this;return t.service=e,t}f.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,deps:[{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Directive}),f.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ",providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});Object.defineProperty(fe.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!1,configurable:!0}),fe.prototype.ngAfterViewInit=function(){var e=this;this.zone.onStable.pipe(g.take(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})},fe.prototype.onCloseClick=function(e){e.preventDefault();e=new ae;this.close.emit(e)};var y=fe;function fe(e,t,n){this.zone=e,this.hostElement=t,this.localizationService=n,this.close=new d.EventEmitter}y.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:y,deps:[{token:o.NgZone},{token:o.ElementRef},{token:a.LocalizationService,optional:!0}],target:o.ɵɵFactoryTarget.Component}),y.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:y,selector:"kendo-dialog-titlebar",inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},host:{properties:{"class.k-window-titlebar":"this.className","class.k-dialog-titlebar":"this.className"}},providers:[h,{provide:n.LocalizationService,useExisting:h},{provide:n.L10N_PREFIX,useValue:"kendo.dialog"}],ngImport:o,template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n ',isInline:!0,directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:y,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-titlebar",providers:[h,{provide:n.LocalizationService,useExisting:h},{provide:n.L10N_PREFIX,useValue:"kendo.dialog"}],template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:o.NgZone},{type:o.ElementRef},{type:a.LocalizationService,decorators:[{type:d.Optional}]}]},propDecorators:{close:[{type:d.Output}],id:[{type:d.Input}],closeTitle:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}]}});var ye={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1654174254,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},be=function(){};function ve(e,t,n,i){var o,r=t,e=("boolean"!=typeof e&&((r=e).duration=r.duration||t.duration),function(e,t,n){switch(n){case"slide":var i="left"===t||"right"===t?"translateX":"translateY";return[s.style({transform:i+"("+("right"===t||"down"===t?-100:100)+"%)"}),s.animate(e+"ms ease-in",s.style({transform:i+"(0%)"}))];case"expand":var i="up"===t||"down"===t?"scaleY":"scaleX",o=void 0,o="down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom";return[s.style({transform:i+"(0)",transformOrigin:o}),s.animate(e+"ms ease-in",s.style({transform:i+"(1)"}))];case"zoom":return[s.animate(e,s.keyframes([s.style({transform:"scale(0)"}),s.style({transform:"scale(1)"})]))];case"fade":return[s.animate(e,s.keyframes([s.style({opacity:"0"}),s.style({opacity:"1"})]))];default:return[s.style({transform:"translate(0, -10%)"}),s.animate(e+"ms cubic-bezier(.2, 1, .2, 1)")]}}(r.duration,r.direction,r.type));t=n,(o=i.build(e).create(t)).onDone(function(){o&&(o.destroy(),o=null)}),o.play()}var we={duration:300,type:"translate"},b=(Object.defineProperty(v.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){$(e,this.renderer,this.wrapper.nativeElement);var t=this.wrapper.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&n&&(this.direction=n),this.tabIndex!==t&&t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),v.prototype.ngAfterContentInit=function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){p(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))},v.prototype.ngAfterViewInit=function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){p(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()},v.prototype.ngOnInit=function(){this.animation&&ve(this.animation,we,this.dialog.nativeElement,this.builder),this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},v.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},v.prototype.focus=function(){var e=this.wrapper.nativeElement;p(e)&&e.focus()},v.prototype.initDomEvents=function(){var t=this;this.wrapper&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.wrapper.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},v.prototype.onKeyDown=function(e){var t=this,n=e.target,i=n.parentElement;(K(n,te)||K(i,te))&&e.keyCode===l.esc&&this.ngZone.run(function(){t.close.emit(new be)}),K(n,"k-button")&&K(i,"k-dialog-buttongroup")&&(e.keyCode===l.left||e.keyCode===l.right)&&this.ngZone.run(function(){t.handleActionButtonFocus(i,e.keyCode)}),e.keyCode===l.tab&&this.ngZone.run(function(){t.keepFocusWithinComponent(n,e)})},v.prototype.setServiceClasses=function(e,t){var n=this,i=this.wrapper.nativeElement;e&&U(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&U(t).forEach(function(e){n.renderer.addClass(i,e)})},v.prototype.handleInitialFocus=function(){var e,t=this.wrapper.nativeElement,n=this.findPrimary(t);this.autoFocusedElement?(e=t.querySelector(this.autoFocusedElement))&&e.focus():(this.shouldFocusPrimary(n)?n:t).focus()},v.prototype.findPrimary=function(e){for(var t=e.querySelectorAll(".k-actions .k-button"),n=t.length-1;0<=n;n--)for(var i=t[n].classList,o=0;o<i.length;o++)if(i[o].endsWith("-primary"))return t[n]},v.prototype.handleActionButtonFocus=function(e,t){for(var n=this.getAllFocusableChildren(e),i=0;i<n.length;i++)if(n[i]===document.activeElement){if(t===l.left&&0<i){n[i-1].focus();break}if(t===l.right&&i<n.length-1){n[i+1].focus();break}}},v.prototype.keepFocusWithinComponent=function(e,t){var n=this.wrapper.nativeElement,n=_(this.getFirstAndLastFocusable(n),2),i=n[0],n=n[1],o=!t.shiftKey&&e===n,e=t.shiftKey&&e===i;o&&(t.preventDefault(),i.focus()),e&&(t.preventDefault(),n.focus())},v.prototype.shouldFocusPrimary=function(e){return p(e)&&Y(e)},v.prototype.getAllFocusableChildren=function(e){return e.querySelectorAll(ne)},v.prototype.getFirstAndLastFocusable=function(e){var t=this.getAllFocusableChildren(e);return[0<t.length?t[0]:e,0<t.length?t[t.length-1]:e]},v.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},v.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(v.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=J(this.width)),this.height&&(e.height=J(this.height)),this.minWidth&&(e.minWidth=J(this.minWidth)),this.maxWidth&&(e.maxWidth=J(this.maxWidth)),this.minHeight&&(e.minHeight=J(this.minHeight)),this.maxHeight&&(e.maxHeight=J(this.maxHeight)),e},enumerable:!1,configurable:!0}),v.prototype.bubble=function(t,e){var n=this;e&&(e=e[t].subscribe(function(e){return n[t].emit(e)}),this.subscriptions.push(e))},v);function v(e,t,n,i,o,r){var s=this;this.wrapper=e,this.renderer=t,this.cdr=i,this.ngZone=o,this.builder=r,this.actionsLayout="stretched",this.animation=!0,this.titleId=null,this.contentId=null,this.action=new d.EventEmitter,this.close=new d.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new u.Subscription,j.validatePackage(ye),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(e){e=e.rtl;return s.direction=e?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}b.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:b,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:a.LocalizationService},{token:o.ChangeDetectorRef},{token:o.NgZone},{token:L.AnimationBuilder}],target:o.ɵɵFactoryTarget.Component}),b.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"kendo-dialog",inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight",animation:"animation"},outputs:{action:"action",close:"close"},host:{properties:{"attr.dir":"this.dir","attr.tabIndex":"this.tabIndex","class.k-dialog-wrapper":"this.wrapperClass"}},providers:[n.LocalizationService,{provide:pe,useExisting:n.LocalizationService},{provide:n.L10N_PREFIX,useValue:"kendo.dialog"}],queries:[{propertyName:"titlebarContent",predicate:y}],viewQueries:[{propertyName:"actionsView",first:!0,predicate:c,descendants:!0},{propertyName:"dialog",first:!0,predicate:["dialog"],descendants:!0,static:!0},{propertyName:"titlebarView",predicate:y,descendants:!0}],exportAs:["kendoDialog"],ngImport:o,template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n ',isInline:!0,components:[{type:y,selector:"kendo-dialog-titlebar",inputs:["id","closeTitle"],outputs:["close"]},{type:c,selector:"kendo-dialog-actions",inputs:["actions","layout"],outputs:["action"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:r.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],animations:[s.trigger("overlayAppear",[s.state("in",s.style({opacity:1})),s.transition("void => *",[s.style({opacity:.1}),s.animate(".3s cubic-bezier(.2, .6, .4, 1)")])])]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:b,decorators:[{type:d.Component,args:[{animations:[s.trigger("overlayAppear",[s.state("in",s.style({opacity:1})),s.transition("void => *",[s.style({opacity:.1}),s.animate(".3s cubic-bezier(.2, .6, .4, 1)")])])],exportAs:"kendoDialog",providers:[n.LocalizationService,{provide:pe,useExisting:n.LocalizationService},{provide:n.L10N_PREFIX,useValue:"kendo.dialog"}],selector:"kendo-dialog",template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:a.LocalizationService},{type:o.ChangeDetectorRef},{type:o.NgZone},{type:L.AnimationBuilder}]},propDecorators:{actions:[{type:d.Input}],actionsLayout:[{type:d.Input}],autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],width:[{type:d.Input}],minWidth:[{type:d.Input}],maxWidth:[{type:d.Input}],height:[{type:d.Input}],minHeight:[{type:d.Input}],maxHeight:[{type:d.Input}],animation:[{type:d.Input}],action:[{type:d.Output}],close:[{type:d.Output}],dir:[{type:d.HostBinding,args:["attr.dir"]}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],titlebarContent:[{type:d.ContentChildren,args:[y,{descendants:!1}]}],titlebarView:[{type:d.ViewChildren,args:[y]}],actionsView:[{type:d.ViewChild,args:[c,{static:!1}]}],dialog:[{type:d.ViewChild,args:["dialog",{static:!0}]}],wrapperClass:[{type:d.HostBinding,args:["class.k-dialog-wrapper"]}]}});function ke(){}Ie.prototype.ngAfterViewInit=function(){var t=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(g.filter(function(e){return!e.isDefaultPrevented()})).subscribe(function(){t.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(e){return t.dialog.dialog.instance.action.emit(e)})};var Ce=Ie;function Ie(e){this.dialog=e}Ce.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ce,deps:[{token:ke}],target:o.ɵɵFactoryTarget.Directive}),Ce.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ce,viewQueries:[{propertyName:"dialogTitleBar",first:!0,predicate:y,descendants:!0},{propertyName:"dialogActions",first:!0,predicate:c,descendants:!0}],ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ce,decorators:[{type:d.Directive}],ctorParameters:function(){return[{type:ke}]},propDecorators:{dialogTitleBar:[{type:d.ViewChild,args:[y,{static:!1}]}],dialogActions:[{type:d.ViewChild,args:[c,{static:!1}]}]}});Object.defineProperty(De.prototype,"container",{get:function(){return De.container},set:function(e){De.container=e},enumerable:!1,configurable:!0});var w=De;function De(){}w.container=null,w.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,deps:[],target:o.ɵɵFactoryTarget.Injectable}),w.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,decorators:[{type:d.Injectable}]});function Te(){}function ze(){}xe.prototype.get=function(e,t){return e===ke?this.getDialogRef():this.parentInjector.get(e,t)};var Ee=xe;function xe(e,t){this.getDialogRef=e,this.parentInjector=t}Oe.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(b),n=e.appendTo||this.containerService.container;if(!n)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,t,n,{close:function(){},content:null,dialog:null,result:null},e)},Oe.prototype.initializeDialog=function(n,e,t,i,o){function r(e){e instanceof ae&&(e=new be),p.next(e||new be),l.componentRef&&l.componentRef.destroy(),c.destroy()}var s,a,l=this.contentFrom(n,t,i),c=t.createComponent(e,void 0,void 0,l.nodes),p=((i.dialog=c).changeDetectorRef.markForCheck(),this.applyOptions(c.instance,o),new u.Subject),t=u.merge(p,u.merge(c.instance.close,c.instance.action).pipe(g.map(function(e){return e instanceof ae?new be:e}),g.filter(function(e){var t;return!o.preventAction||(t=Q(t=n)||t instanceof d.TemplateRef?void 0:i,!o.preventAction(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(r),i.close=r,i.result=t,n&&d.isDevMode()&&(e=l.nodes[0]&&0<l.nodes[0].length,t=l.nodes[2]&&0<l.nodes[2].length,s=o.title&&e,a=o.actions&&t,n.prototype instanceof Ce?(s||a)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(e||t)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")),i},Oe.prototype.applyOptions=function(e,t){e.title=t.title,e.actions=t.actions,e.actionsLayout=t.actionsLayout||"stretched",e.width=t.width,e.minWidth=t.minWidth,e.maxWidth=t.maxWidth,e.height=t.height,e.minHeight=t.minHeight,e.maxHeight=t.maxHeight,e.autoFocusedElement=t.autoFocusedElement,e.closeTitle=t.closeTitle,e.cssClass=t.cssClass,e.htmlAttributes=t.htmlAttributes,e.animation=void 0===t.animation||t.animation,t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content)},Oe.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=[],s=[],a=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new Ee(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),a=t.createComponent(e,void 0,i),r=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),o=[a.location.nativeElement],s=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-actions")),n.content=a),{componentRef:a,nodes:[r,o,s]}};h=Oe;function Oe(e,t){this.resolver=e,this.containerService=t}h.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h,deps:[{token:o.ComponentFactoryResolver},{token:w}],target:o.ɵɵFactoryTarget.Injectable}),h.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:o.ComponentFactoryResolver},{type:w,decorators:[{type:d.Inject,args:[w]}]}]}});function Se(e,t){return function(n){return e.kendoDrag.pipe(g.takeUntil(e.kendoRelease.pipe(g.tap(function(){t.emit()}))),g.map(function(e){var t=e.pageX,e=e.pageY;return{originalX:n.pageX,originalY:n.pageY,pageX:t,pageY:e}}))}}var Ae=10002,Fe={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},k=(C.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},C.prototype.init=function(e){var t=this.options.state,n=this.options;this.window=e,"default"!==t&&(this.restoreOptions=Object.assign({},n)),"minimized"===t&&(n.height=0,n.minHeight=0),"maximized"===t&&(n.position="fixed")},C.prototype.onDrag=function(e){var s=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r;s.dragSubscription=e.kendoPress.pipe(g.tap(function(e){e.isTouch||G(e),s.focus.emit(),o=s.currentPosition(),r=!1}),g.switchMap(Se(e,s.dragEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY;r||(s.ensureWidth(),s.dragStart.emit(),r=!0),s.handleDrag({originalX:i,originalY:e,pageX:t,pageY:n,startPosition:o})})}))},C.prototype.handleDrag=function(e){var t=e.originalX,n=e.originalY,i=e.pageX,o=e.pageY,e=e.startPosition;this.options.left=e.x+i-t,this.options.top=e.y+o-n,"minimized"===this.options.state&&p(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:e.x+i-t,top:e.y+o-n})},C.prototype.onResize=function(e,s){var a=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r=!1;e.kendoPress.pipe(g.tap(function(e){G(e),a.focus.emit(),o=a.currentOffsetAndPosition(),r=!1}),g.switchMap(Se(e,a.resizeEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY,t=(r||(a.resizeStart.emit(s),r=!0),t-i);a.handleResize(o,s,t,n-e)})}))},C.prototype.handleResize=function(e,t,n,i){var o,r,s,a=this,l=this.options,c={};0<=t.indexOf("e")&&(s=e.width+n)!==l.width&&s>=l.minWidth&&(c.width=s),0<=t.indexOf("n")&&(o=e.height-i,r=e.y+i,o!==l.height&&o>=l.minHeight&&r!==l.top&&(c.height=o,c.top=r)),0<=t.indexOf("s")&&(o=e.height+i)!==l.height&&o>=l.minHeight&&(c.height=o),0<=t.indexOf("w")&&(r=e.x+n,(s=e.width-n)!==l.width&&s>=l.minWidth&&r!==l.left&&(c.width=s,c.left=r)),(p(c.width)||p(c.height))&&(oe.forEach(function(e){p(c[e])&&(a.options[e]=c[e])}),this.change.emit(c))},C.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},C.prototype.defaultState=function(){p(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},C.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},C.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},C.prototype.maximizeState=function(){this.storeOptions();var e=this.windowViewPort;this.options=Object.assign({},this.options,{height:e.height,left:0,position:"fixed",state:"maximized",top:0,width:e.width}),this.stateChange.emit("maximized")},C.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},C.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},C.prototype.applyManualState=function(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}},C.prototype.closeAction=function(){this.close.emit()},C.prototype.ensureWidth=function(){var e=W.offset(this.window.nativeElement);p(this.options.width)||(this.options.width=e.width,this.change.emit({width:e.width}))},C.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},C.prototype.center=function(){var e,t,n,i;"maximized"!==this.options.state&&(e=W.scrollPosition(this.window.nativeElement),t=this.windowViewPort,n=W.offset(this.window.nativeElement),i={},p(this.options.left)||(this.options.left=e.x+Math.max(0,(t.width-n.width)/2),i.left=this.options.left),p(this.options.top)||(this.options.top=e.y+Math.max(0,(t.height-n.height)/2),i.top=this.options.top),this.change.emit(i))},C.prototype.currentOffsetAndPosition=function(){var e=this.options,t=W.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height||t.height,width:e.width||t.width})},C.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},C.prototype.setPosition=function(){var e=W.positionWithScroll(this.window.nativeElement,W.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},C.prototype.setRestoreOption=function(e,t){p(this.restoreOptions)&&(this.restoreOptions[e]=t)},Object.defineProperty(C.prototype,"nextPossibleZIndex",{get:function(){return Ae},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"nextZIndex",{get:function(){return Ae++},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"windowViewPort",{get:function(){return W.getWindowViewPort(this.window.nativeElement)},enumerable:!1,configurable:!0}),C);function C(e){this.ngZone=e,this.close=new d.EventEmitter,this.focus=new d.EventEmitter,this.change=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.options=Object.assign({},Fe),this.lastAction=null,this.subscriptions=new u.Subscription,this.dragSubscription=new u.Subscription}k.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,deps:[{token:o.NgZone}],target:o.ɵɵFactoryTarget.Injectable}),k.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:o.NgZone}]}});Object.defineProperty(Ve.prototype,"hostClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Ve.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(u.of(this.draggable).subscribe(function(e){t.service.onResize(e,t.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(function(e){e!==t.direction&&t.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(function(){t.setDisplay("none")})),this.subscriptions.add(u.merge(this.service.resizeEnd,this.service.dragEnd).subscribe(function(){t.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(function(e){t.setDisplay("default"===e?"block":"none")}))},Ve.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Ve.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")};var I=Ve;function Ve(e,t,n,i){this.draggable=e,this.el=t,this.renderer=n,this.service=i,this.subscriptions=new u.Subscription}I.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,deps:[{token:N.DraggableDirective,host:!0},{token:o.ElementRef},{token:o.Renderer2},{token:k}],target:o.ɵɵFactoryTarget.Directive}),I.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:I,selector:"[kendoWindowResizeHandle]",inputs:{direction:"direction"},host:{properties:{"class.k-resize-handle":"this.hostClass"}},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowResizeHandle]"}]}],ctorParameters:function(){return[{type:N.DraggableDirective,decorators:[{type:d.Host}]},{type:o.ElementRef},{type:o.Renderer2},{type:k}]},propDecorators:{direction:[{type:d.Input}],hostClass:[{type:d.HostBinding,args:["class.k-resize-handle"]}]}});T.prototype.ngOnInit=function(){this.dragDirective=new R.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},T.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},T.prototype.subscribeDrag=function(){var t=this;this.unsubscribeDrag(),this.dragSubscription=u.of(this.dragDirective).subscribe(function(e){t.service.onDrag(e)})},T.prototype.subscribeStateChange=function(){var t=this;this.stateSubscription=this.service.stateChange.subscribe(function(e){t.service.options.draggable&&("maximized"===e?t.unsubscribeDrag():t.subscribeDrag())})},T.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},T.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(T.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!1,configurable:!0}),T.prototype.handle=function(e){var e=e.target,t=this.service.options.state;K(e,"k-icon")||Y(e,!1)||!this.service.options.resizable||("default"===t?this.service.maximizeAction():"maximized"===t&&this.service.restoreAction())},Object.defineProperty(T.prototype,"isDraggable",{get:function(){var e=this.service.options;return e.draggable&&"maximized"!==e.state},enumerable:!1,configurable:!0});var D=T;function T(e,t,n){this.el=e,this.ngZone=n,this.service=t}D.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:D,deps:[{token:o.ElementRef},{token:k},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Component}),D.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-window-titlebar",inputs:{template:"template"},host:{listeners:{dblclick:"handle($event)"},properties:{"class.k-window-titlebar":"this.className","class.k-dialog-titlebar":"this.className","style.touch-action":"this.touchAction"}},ngImport:o,template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n ',isInline:!0,directives:[{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:D,decorators:[{type:d.Component,args:[{selector:"kendo-window-titlebar",template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:k},{type:o.NgZone}]},propDecorators:{template:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}],touchAction:[{type:d.HostBinding,args:["style.touch-action"]}],handle:[{type:d.HostListener,args:["dblclick",["$event"]]}]}});Pe.prototype.process=function(e){var t=this,n=e.keyCode;switch(n){case l.up:case l.down:case l.left:case l.right:e.preventDefault(),this.ngZone.run(function(){t.handleArrow(n,e)});break;case l.esc:this.ngZone.run(function(){t.handleEscape()})}},Pe.prototype.handleArrow=function(e,t){var n=this.window.options;t.altKey?this.handleStateChange(e,n.state):(t.ctrlKey||t.metaKey)&&"default"===n.state?this.handleResize(e):this.handleDrag(e)},Pe.prototype.handleEscape=function(){this.window.closeAction()},Pe.prototype.handleDrag=function(e){var t=this.window.options;if(t.draggable){var n=this.window.currentOffsetAndPosition(),i=this.window.restoreOptions,o={},r=10;switch(e!==l.left&&e!==l.up||(r*=-1),e){case l.left:case l.right:o.left=n.x+r,t.left=o.left;break;case l.up:case l.down:o.top=n.y+r,t.top=o.top}"minimized"===t.state&&p(i)&&(i.left=t.left,i.top=t.top),this.window.change.emit(o)}},Pe.prototype.handleResize=function(e){var t=this,n=this.window.options;if(n.resizable){var i,o=this.window.currentOffsetAndPosition(),r={},s=10;switch(e!==l.left&&e!==l.up||(s*=-1),e){case l.left:case l.right:(i=o.width+s)!==n.width&&i>=n.minWidth&&(r.width=i);break;case l.up:case l.down:(i=o.height+s)!==n.height&&i>=n.minHeight&&(r.height=i)}(p(r.width)||p(r.height))&&(oe.forEach(function(e){p(r[e])&&(t.window.options[e]=r[e])}),this.window.change.emit(r))}},Pe.prototype.handleStateChange=function(e,t){"minimized"===t&&e===l.up||"maximized"===t&&e===l.down?this.window.restoreAction():"default"===t&&(e===l.up?this.window.maximizeAction():e===l.down&&this.window.minimizeAction())};var Me=Pe;function Pe(e,t){this.window=e,this.ngZone=t}Me.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Me,deps:[{token:k},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Injectable}),Me.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Me}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Me,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:k},{type:o.NgZone}]}});Z(Re,je=i.Button),Re.prototype.onClick=function(){this.isDisabled||this.window.minimizeAction()},Object.defineProperty(Re.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var je,z=Re;function Re(e,t,n,i,o){e=je.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-minimize",e}z.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),z.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:z,selector:"button[kendoWindowMinimizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMinimizeAction"],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMinimizeAction",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:o.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});Z(Be,We=i.Button),Be.prototype.onClick=function(){this.isDisabled||this.window.maximizeAction()},Object.defineProperty(Be.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var We,E=Be;function Be(e,t,n,i,o){e=We.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-maximize",e}E.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:E,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),E.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"button[kendoWindowMaximizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMaximizeAction"],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:E,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMaximizeAction",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:o.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});Z(Ne,Le=i.Button),Ne.prototype.onClick=function(){this.isDisabled||this.window.restoreAction()},Object.defineProperty(Ne.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!1,configurable:!0});var Le,x=Ne;function Ne(e,t,n,i,o){e=Le.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-restore",e}x.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),x.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"button[kendoWindowRestoreAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowRestoreAction"],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowRestoreAction",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:o.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});Z(Ze,He=i.Button),Ze.prototype.onClick=function(){this.isDisabled||this.window.closeAction()};var He,i=Ze;function Ze(e,t,n,i,o){e=He.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="close",e}i.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:i,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),i.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:i,selector:"button[kendoWindowCloseAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType"}},providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowCloseAction"],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:i,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowCloseAction",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:o.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}]}});Object.defineProperty(S.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){$(e,this.renderer,this.el.nativeElement);var t=this.el.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&(this.direction=n),this.tabIndex!==t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hostClasses",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),S.prototype.ngAfterViewInit=function(){var e=this;this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(function(){return Promise.resolve(null).then(function(){return e.setInitialOffset()})}),this.initDomEvents()},S.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},S.prototype.ngOnChanges=function(t){var e,n=this;oe.forEach(function(e){R.isChanged(e,t)&&n.setStyle(e,n.options[e])}),R.isChanged("draggable",t)&&(e=p(this.titleBarContent)?this.titleBarContent:this.titleBarView,t.draggable.currentValue?e.subscribeDrag():e.unsubscribeDrag()),R.isChanged("state",t)&&(p(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},S.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},S.prototype.focus=function(){var e=this.el.nativeElement;p(e)&&e.focus()},S.prototype.bringToFront=function(){this.setNextZIndex()},S.prototype.setDimension=function(e,t){this.setOption(e,t),this.setStyle(e,t)},S.prototype.setOffset=function(e,t){this.setOption(e,t),this.setStyle(e,t)},Object.defineProperty(S.prototype,"showDefaultTitleBar",{get:function(){return!p(this.titleBarContent)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!1,configurable:!0}),S.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},S.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},S.prototype.subscribeEvents=function(){var i=this;R.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe(function(){i.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(function(){i.draged=!0,i.ngZone.run(function(){i.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(function(){i.draged&&(i.draged=!1,i.ngZone.run(function(){i.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(function(){i.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(function(){i.resized=!0,i.ngZone.run(function(){i.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(function(){i.resized&&(i.resized=!1,i.ngZone.run(function(){i.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(function(n){oe.forEach(function(e){var t;p(n[e])&&(i.setStyle(e,n[e]),"maximized"!==i.state&&(t=i[e+"Change"]).observers.length&&i.ngZone.run(function(){t.emit(n[e])}))})})),this.windowSubscription.add(this.service.stateChange.subscribe(function(e){p(i.service.lastAction)&&(i.updateAllOffset(),i.stateChange.emit(e))})))},S.prototype.initDomEvents=function(){var t=this;this.el&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.el.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},S.prototype.onKeyDown=function(e){K(e.target,"k-window")&&this.navigation.process(e)},S.prototype.setServiceClasses=function(e,t){var n=this,i=this.el.nativeElement;e&&U(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&U(t).forEach(function(e){n.renderer.addClass(i,e)})},S.prototype.setNextZIndex=function(){var e=this.el.nativeElement.style["z-index"],t=this.service.nextPossibleZIndex;(!e||1<t-e)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},S.prototype.setInitialOffset=function(){var e;"maximized"!==this.state?(this.updateAllOffset(),p(this.left)&&p(this.top)||this.service.center()):(e=this.service.windowViewPort,this.setStyle("width",e.width),this.setStyle("height",e.height),this.setStyle("top",0),this.setStyle("left",0))},S.prototype.updateAllOffset=function(){var t=this;oe.forEach(function(e){p(t[e])?t.setStyle(e,t[e]):t.removeStyle(e)})},S.prototype.setStyle=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},S.prototype.removeStyle=function(e){this.renderer.removeStyle(this.el.nativeElement,e)},Object.defineProperty(S.prototype,"options",{get:function(){return this.service.options},enumerable:!1,configurable:!0}),S.prototype.setOption=function(e,t){"number"!=typeof t&&"string"!=typeof t||(t="number"==typeof t?t:parseInt(t,10),this.options[e]=t,this.service.setRestoreOption(e,t))},S.prototype.handleInitialFocus=function(){var e=this.el.nativeElement;this.autoFocusedElement?(e=e.querySelector(this.autoFocusedElement))&&e.focus():this.focus()};var O=S;function S(e,t,n,i,o,r){var s=this;this.el=e,this.renderer=t,this.service=n,this.navigation=i,this.ngZone=o,this.localization=r,this.keepContent=!1,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.close=new d.EventEmitter,this.widthChange=new d.EventEmitter,this.heightChange=new d.EventEmitter,this.topChange=new d.EventEmitter,this.leftChange=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new u.Subscription,this.domSubs=new u.Subscription,j.validatePackage(ye),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return s.direction=e?"rtl":"ltr"}),this.resizeDirections=ie,this.subscribeEvents()}O.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:O,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k},{token:Me},{token:o.NgZone},{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Component}),O.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-window",inputs:{autoFocusedElement:"autoFocusedElement",title:"title",draggable:"draggable",resizable:"resizable",keepContent:"keepContent",state:"state",minWidth:"minWidth",minHeight:"minHeight",width:"width",height:"height",top:"top",left:"left"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",resizeStart:"resizeStart",resizeEnd:"resizeEnd",close:"close",widthChange:"widthChange",heightChange:"heightChange",topChange:"topChange",leftChange:"leftChange",stateChange:"stateChange"},host:{listeners:{focus:"onComponentFocus()",blur:"onComponentBlur()"},properties:{"attr.tabIndex":"this.tabIndex","class.k-window":"this.hostClasses","attr.dir":"this.dir","style.minWidth":"this.styleMinWidth","style.minHeight":"this.styleMinHeight","style.position":"this.stylePosition","class.k-window-maximized":"this.wrapperMaximizedClass","class.k-window-minimized":"this.wrapperMinimizedClass"}},providers:[k,Me,n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.window"}],queries:[{propertyName:"titleBarContent",first:!0,predicate:D,descendants:!0}],viewQueries:[{propertyName:"titleBarView",first:!0,predicate:D,descendants:!0},{propertyName:"resizeHandles",predicate:I,descendants:!0}],exportAs:["kendoWindow"],usesOnChanges:!0,ngImport:o,template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n ',isInline:!0,components:[{type:D,selector:"kendo-window-titlebar",inputs:["template"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:z,selector:"button[kendoWindowMinimizeAction]",inputs:["window"],exportAs:["kendoWindowMinimizeAction"]},{type:E,selector:"button[kendoWindowMaximizeAction]",inputs:["window"],exportAs:["kendoWindowMaximizeAction"]},{type:x,selector:"button[kendoWindowRestoreAction]",inputs:["window"],exportAs:["kendoWindowRestoreAction"]},{type:i,selector:"button[kendoWindowCloseAction]",inputs:["window"],exportAs:["kendoWindowCloseAction"]},{type:r.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:I,selector:"[kendoWindowResizeHandle]",inputs:["direction"]},{type:N.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:O,decorators:[{type:d.Component,args:[{exportAs:"kendoWindow",providers:[k,Me,n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k},{type:Me},{type:o.NgZone},{type:a.LocalizationService}]},propDecorators:{autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],draggable:[{type:d.Input}],resizable:[{type:d.Input}],keepContent:[{type:d.Input}],state:[{type:d.Input}],minWidth:[{type:d.Input}],minHeight:[{type:d.Input}],width:[{type:d.Input}],height:[{type:d.Input}],top:[{type:d.Input}],left:[{type:d.Input}],dragStart:[{type:d.Output}],dragEnd:[{type:d.Output}],resizeStart:[{type:d.Output}],resizeEnd:[{type:d.Output}],close:[{type:d.Output}],widthChange:[{type:d.Output}],heightChange:[{type:d.Output}],topChange:[{type:d.Output}],leftChange:[{type:d.Output}],stateChange:[{type:d.Output}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],hostClasses:[{type:d.HostBinding,args:["class.k-window"]}],dir:[{type:d.HostBinding,args:["attr.dir"]}],titleBarView:[{type:d.ViewChild,args:[D,{static:!1}]}],titleBarContent:[{type:d.ContentChild,args:[D,{static:!1}]}],resizeHandles:[{type:d.ViewChildren,args:[I]}],styleMinWidth:[{type:d.HostBinding,args:["style.minWidth"]}],styleMinHeight:[{type:d.HostBinding,args:["style.minHeight"]}],stylePosition:[{type:d.HostBinding,args:["style.position"]}],wrapperMaximizedClass:[{type:d.HostBinding,args:["class.k-window-maximized"]}],wrapperMinimizedClass:[{type:d.HostBinding,args:["class.k-window-minimized"]}],onComponentFocus:[{type:d.HostListener,args:["focus"]}],onComponentBlur:[{type:d.HostListener,args:["blur"]}]}});function _e(){}function Xe(){}var qe=function(){},A=(Object.defineProperty(Ke.prototype,"container",{get:function(){return Ke.container},set:function(e){Ke.container=e},enumerable:!1,configurable:!0}),Ke);function Ke(){}A.container=null,A.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:A,deps:[],target:o.ɵɵFactoryTarget.Injectable}),A.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:A}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:A,decorators:[{type:d.Injectable}]});$e.prototype.get=function(e,t){return e===_e?this.getWindowRef():this.parentInjector.get(e,t)};var Ye=$e;function $e(e,t){this.getWindowRef=e,this.parentInjector=t}Ue.prototype.open=function(n){var e=this.resolver.resolveComponentFactory(O),t=n.appendTo||this.containerService.container;if(!t)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n ");function i(e){a.next(e||new qe),r.componentRef&&r.componentRef.destroy(),s.destroy()}var o={close:function(){},content:null,result:null,window:null},r=this.contentFrom(n.content,t,o),s=t.createComponent(e,void 0,void 0,r.nodes),a=(o.window=s,this.applyOptions(s.instance,n),new u.Subject),t=u.merge(a,s.instance.close.pipe(g.map(function(e){return e||new qe}),g.filter(function(e){var t;return!n.preventClose||(t=n.content,t=Q(t)||t instanceof d.TemplateRef?void 0:o,!n.preventClose(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(i),o.close=i,o.result=t,s.changeDetectorRef.markForCheck(),o},Ue.prototype.applyOptions=function(e,t){p(t.htmlAttributes)&&(e.htmlAttributes=t.htmlAttributes),p(t.cssClass)&&(e.cssClass=t.cssClass),p(t.title)&&(e.title=t.title),p(t.keepContent)&&(e.keepContent=t.keepContent),p(t.width)&&(e.width=t.width),p(t.minWidth)&&(e.minWidth=t.minWidth),p(t.height)&&(e.height=t.height),p(t.minHeight)&&(e.minHeight=t.minHeight),p(t.left)&&(e.left=t.left),p(t.top)&&(e.top=t.top),p(t.draggable)&&(e.draggable=t.draggable),p(t.resizable)&&(e.resizable=t.resizable),p(t.messages&&t.messages.closeTitle)&&(e.messages.closeTitle=t.messages.closeTitle),p(t.messages&&t.messages.restoreTitle)&&(e.messages.restoreTitle=t.messages.restoreTitle),p(t.messages&&t.messages.maximizeTitle)&&(e.messages.maximizeTitle=t.messages.maximizeTitle),p(t.messages&&t.messages.minimizeTitle)&&(e.messages.minimizeTitle=t.messages.minimizeTitle),p(t.autoFocusedElement)&&(e.autoFocusedElement=t.autoFocusedElement),p(t.state)&&(e.state=t.state,"minimized"===t.state&&(e.keepContent=!0)),t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content),t.titleBarContent instanceof d.TemplateRef&&(e.titleBarTemplate=t.titleBarContent)},Ue.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new Ye(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),o=[(r=t.createComponent(e,void 0,i)).location.nativeElement],n.content=r),{componentRef:r,nodes:[[],o]}};r=Ue;function Ue(e,t){this.resolver=e,this.containerService=t}r.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r,deps:[{token:o.ComponentFactoryResolver},{token:A}],target:o.ɵɵFactoryTarget.Injectable}),r.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:o.ComponentFactoryResolver},{type:A,decorators:[{type:d.Inject,args:[A]}]}]}});var Ge,Qe=function(e,t){t.container=e},F=(Qe.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Qe,deps:[{token:o.ViewContainerRef},{token:w}],target:o.ɵɵFactoryTarget.Directive}),Qe.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Qe,selector:"[kendoDialogContainer]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Qe,decorators:[{type:d.Directive,args:[{selector:"[kendoDialogContainer]"}]}],ctorParameters:function(){return[{type:o.ViewContainerRef},{type:w}]}}),Z(Je,Ge=m),Object.defineProperty(Je.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Je);function Je(e){var t=Ge.call(this)||this;return t.service=e,t}F.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:F,deps:[{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Directive}),F.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"kendo-dialog-messages, kendo-window-messages",providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:F,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],selector:"kendo-dialog-messages, kendo-window-messages"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var et=[c,F,f],V=function(){},t=(V.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,deps:[],target:o.ɵɵFactoryTarget.NgModule}),V.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,declarations:[c,F,f],imports:[t.CommonModule],exports:[c,F,f,t.CommonModule]}),V.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,imports:[[t.CommonModule],t.CommonModule]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,decorators:[{type:d.NgModule,args:[{declarations:[et],exports:[et,t.CommonModule],imports:[t.CommonModule]}]}]}),[b,y]),M=function(){},t=(M.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:M,deps:[],target:o.ɵɵFactoryTarget.NgModule}),M.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:M,declarations:[b,y,Qe],imports:[V],exports:[b,y,c,F,f,Qe]}),M.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:M,providers:[w,h],imports:[[V]]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:M,decorators:[{type:d.NgModule,args:[{declarations:[t,Qe],entryComponents:[t],exports:[t,et,Qe],imports:[V],providers:[w,h]}]}]}),function(e,t){t.container=e}),tt=(t.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:t,deps:[{token:o.ViewContainerRef},{token:A}],target:o.ɵɵFactoryTarget.Directive}),t.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoWindowContainer]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:t,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowContainer]"}]}],ctorParameters:function(){return[{type:o.ViewContainerRef},{type:A}]}}),[I,O,D,i,z,E,x]),nt=[O,D],it=[O,i,z,E,x,D],P=function(){},I=(P.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,deps:[],target:o.ɵɵFactoryTarget.NgModule}),P.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,declarations:[I,O,D,i,z,E,x,t],imports:[V,R.DraggableModule],exports:[O,i,z,E,x,D,c,F,f,t]}),P.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,providers:[A,r],imports:[[V,R.DraggableModule]]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,decorators:[{type:d.NgModule,args:[{declarations:[tt,t],entryComponents:[nt],exports:[it,et,t],imports:[V,R.DraggableModule],providers:[A,r]}]}]}),function(){});I.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,deps:[],target:o.ɵɵFactoryTarget.NgModule}),I.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,exports:[M,P]}),I.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,imports:[M,P]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,decorators:[{type:d.NgModule,args:[{exports:[M,P]}]}]}),e.CustomMessagesComponent=F,e.DialogAction=Te,e.DialogActionsComponent=c,e.DialogCloseResult=be,e.DialogComponent=b,e.DialogContainerDirective=Qe,e.DialogContentBase=Ce,e.DialogModule=M,e.DialogRef=ke,e.DialogService=h,e.DialogSettings=ze,e.DialogTitleBarComponent=y,e.DialogsModule=I,e.LocalizedMessagesDirective=f,e.Messages=m,e.PreventableEvent=ae,e.WindowCloseActionDirective=i,e.WindowCloseResult=qe,e.WindowComponent=O,e.WindowContainerDirective=t,e.WindowMaximizeActionDirective=E,e.WindowMinimizeActionDirective=z,e.WindowModule=P,e.WindowRef=_e,e.WindowRestoreActionDirective=x,e.WindowService=r,e.WindowSettings=Xe,e.WindowTitleBarComponent=D,Object.defineProperty(e,"__esModule",{value:!0})});
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/animations"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@progress/kendo-popup-common"),require("@progress/kendo-angular-buttons")):"function"==typeof define&&define.amd?define("KendoAngularDialog",["exports","@angular/core","@angular/animations","rxjs","rxjs/operators","@angular/common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@progress/kendo-angular-common","@progress/kendo-popup-common","@progress/kendo-angular-buttons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDialog={},e.ng.core,e.ng.animations,e.rxjs,e.rxjs.operators,e.ng.common,e.KendoAngularL10N,e.KendoLicensing,e.KendoAngularCommon,e.KendoPopupCommon,e.KendoAngularButtons)}(this,function(e,d,s,u,g,t,n,j,R,W,i){"use strict";function B(n){if(n&&n.__esModule)return n;var i=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i)}var o=B(d),L=B(s),r=B(t),a=B(n),N=B(R),H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function X(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function q(e){return String(e).trim().split(" ")}function K(e,t){var n=q(t);return Boolean(q(e.className).find(function(e){return 0<=n.indexOf(e)}))}function Y(e,t){var n,i;return void 0===t&&(t=!0),!!e.tagName&&(n=e.tagName.toLowerCase(),i=null!==(i=e.getAttribute("tabIndex"))&&!isNaN(i)&&-1<i,(ee.test(n)?!e.disabled:i)&&(!t||!(!(i=(n=e).getBoundingClientRect()).width||!i.height)&&"hidden"!==window.getComputedStyle(n).visibility))}function $(e,t,n){for(var i in e)i&&t.setAttribute(n,i,e[i])}function U(e){return p(t=e)&&!Array.isArray(t)&&"object"==typeof t?(n=e,i=[],Object.keys(n).forEach(function(e){var t=re(e);n[e]&&t[0]&&i.push.apply(i,X([],_(t)))}),i):Q(e)?(o=[],re(e).forEach(function(e){o.push(e)}),o):Array.isArray(e)?(r=[],e.forEach(function(e){e=re(e);e[0]&&r.push.apply(r,X([],_(e)))}),r):void 0;var n,i,t,o,r}function G(e){(e=e.originalEvent).stopPropagation(),e.preventDefault()}function Q(e){return e instanceof String||"string"==typeof e}function J(e){return e+("number"==typeof(e=e)&&isFinite(e)?"px":"")}var l,p=function(e){return null!=e},ee=/^(?:a|input|select|textarea|button|object)$/i,te=((c=l=l||{})[c.esc=27]="esc",c[c.tab=9]="tab",c[c.enter=13]="enter",c[c.space=32]="space",c[c.ctrl=17]="ctrl",c[c.shift=16]="shift",c[c.left=37]="left",c[c.up=38]="up",c[c.right=39]="right",c[c.down=40]="down","k-dialog-wrapper k-dialog-buttongroup k-dialog-action"),ne=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),ie=["n","e","s","w","se","sw","ne","nw"],oe=["top","left","width","height"],re=function(e){return e.trim().replace(/\s+/g," ").split(" ")},c=(Object.defineProperty(se.prototype,"actions",{set:function(e){if(e instanceof d.TemplateRef)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!1,configurable:!0}),se.prototype.onButtonClick=function(e,t){this.action.emit(e)},se.prototype.buttonClass=function(e){var t=["k-button k-button-md k-rounded-md"],n=e.fillMode||"solid",i=e.themeColor||"base",e=e.cssClass?U(e.cssClass):[];return t.push("k-button-"+n+" k-button-"+n+"-"+i),(t=0<e.length?t.concat(e):t).join(" ")},se);function se(e){this.el=e,this.layout="stretched",this.action=new d.EventEmitter,this.buttonGroupClassName=!0}c.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:c,deps:[{token:o.ElementRef}],target:o.ɵɵFactoryTarget.Component}),c.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:c,selector:"kendo-dialog-actions",inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},host:{properties:{"class.k-dialog-buttongroup":"this.buttonGroupClassName","class.k-actions":"this.buttonGroupClassName","class.k-actions-stretched":"this.className"}},ngImport:o,template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n ',isInline:!0,directives:[{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:r.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:r.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:c,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef}]},propDecorators:{actions:[{type:d.Input}],layout:[{type:d.Input}],action:[{type:d.Output}],buttonGroupClassName:[{type:d.HostBinding,args:["class.k-dialog-buttongroup"]},{type:d.HostBinding,args:["class.k-actions"]}],className:[{type:d.HostBinding,args:["class.k-actions-stretched"]}]}});le.prototype.preventDefault=function(){this.prevented=!0},le.prototype.isDefaultPrevented=function(){return this.prevented};var ae=le;function le(){this.prevented=!1}var ce,pe=new d.InjectionToken("Dialog LocalizationService"),h=(Z(de,ce=n.LocalizationService),de.prototype.get=function(e){return this.dialogLocalization?this.dialogLocalization.get(e):ce.prototype.get.call(this,e)},de);function de(e,t,n,i){e=ce.call(this,e,t,n)||this;return e.dialogLocalization=i,e}h.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h,deps:[{token:n.L10N_PREFIX},{token:a.MessageService,optional:!0},{token:n.RTL,optional:!0},{token:pe,optional:!0}],target:o.ɵɵFactoryTarget.Injectable}),h.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:void 0,decorators:[{type:d.Inject,args:[n.L10N_PREFIX]}]},{type:a.MessageService,decorators:[{type:d.Optional}]},{type:void 0,decorators:[{type:d.Optional},{type:d.Inject,args:[n.RTL]}]},{type:a.LocalizationService,decorators:[{type:d.Optional},{type:d.Inject,args:[pe]}]}]}});Z(ge,ue=n.ComponentMessages);var ue,m=ge;function ge(){return null!==ue&&ue.apply(this,arguments)||this}m.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:m,deps:null,target:o.ɵɵFactoryTarget.Directive}),m.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"kendo-dialog-messages-base",inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:m,decorators:[{type:d.Directive,args:[{selector:"kendo-dialog-messages-base"}]}],propDecorators:{closeTitle:[{type:d.Input}],restoreTitle:[{type:d.Input}],maximizeTitle:[{type:d.Input}],minimizeTitle:[{type:d.Input}]}});Z(me,he=m);var he,f=me;function me(e){var t=he.call(this)||this;return t.service=e,t}f.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,deps:[{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Directive}),f.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ",providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});Object.defineProperty(fe.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!1,configurable:!0}),fe.prototype.ngAfterViewInit=function(){var e=this;this.zone.onStable.pipe(g.take(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})},fe.prototype.onCloseClick=function(e){e.preventDefault();e=new ae;this.close.emit(e)};var y=fe;function fe(e,t,n){this.zone=e,this.hostElement=t,this.localizationService=n,this.close=new d.EventEmitter}y.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:y,deps:[{token:o.NgZone},{token:o.ElementRef},{token:a.LocalizationService,optional:!0}],target:o.ɵɵFactoryTarget.Component}),y.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:y,selector:"kendo-dialog-titlebar",inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},host:{properties:{"class.k-window-titlebar":"this.className","class.k-dialog-titlebar":"this.className"}},providers:[h,{provide:n.LocalizationService,useExisting:h},{provide:n.L10N_PREFIX,useValue:"kendo.dialog"}],ngImport:o,template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n ',isInline:!0,directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:y,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-titlebar",providers:[h,{provide:n.LocalizationService,useExisting:h},{provide:n.L10N_PREFIX,useValue:"kendo.dialog"}],template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:o.NgZone},{type:o.ElementRef},{type:a.LocalizationService,decorators:[{type:d.Optional}]}]},propDecorators:{close:[{type:d.Output}],id:[{type:d.Input}],closeTitle:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}]}});var ye={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1654175123,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},be=function(){};function ve(e,t,n,i){var o,r=t,e=("boolean"!=typeof e&&((r=e).duration=r.duration||t.duration),function(e,t,n){switch(n){case"slide":var i="left"===t||"right"===t?"translateX":"translateY";return[s.style({transform:i+"("+("right"===t||"down"===t?-100:100)+"%)"}),s.animate(e+"ms ease-in",s.style({transform:i+"(0%)"}))];case"expand":var i="up"===t||"down"===t?"scaleY":"scaleX",o=void 0,o="down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom";return[s.style({transform:i+"(0)",transformOrigin:o}),s.animate(e+"ms ease-in",s.style({transform:i+"(1)"}))];case"zoom":return[s.animate(e,s.keyframes([s.style({transform:"scale(0)"}),s.style({transform:"scale(1)"})]))];case"fade":return[s.animate(e,s.keyframes([s.style({opacity:"0"}),s.style({opacity:"1"})]))];default:return[s.style({transform:"translate(0, -10%)"}),s.animate(e+"ms cubic-bezier(.2, 1, .2, 1)")]}}(r.duration,r.direction,r.type));t=n,(o=i.build(e).create(t)).onDone(function(){o&&(o.destroy(),o=null)}),o.play()}var we={duration:300,type:"translate"},b=(Object.defineProperty(v.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){$(e,this.renderer,this.wrapper.nativeElement);var t=this.wrapper.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&n&&(this.direction=n),this.tabIndex!==t&&t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),v.prototype.ngAfterContentInit=function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){p(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))},v.prototype.ngAfterViewInit=function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){p(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()},v.prototype.ngOnInit=function(){this.animation&&ve(this.animation,we,this.dialog.nativeElement,this.builder),this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},v.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},v.prototype.focus=function(){var e=this.wrapper.nativeElement;p(e)&&e.focus()},v.prototype.initDomEvents=function(){var t=this;this.wrapper&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.wrapper.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},v.prototype.onKeyDown=function(e){var t=this,n=e.target,i=n.parentElement;(K(n,te)||K(i,te))&&e.keyCode===l.esc&&this.ngZone.run(function(){t.close.emit(new be)}),K(n,"k-button")&&K(i,"k-dialog-buttongroup")&&(e.keyCode===l.left||e.keyCode===l.right)&&this.ngZone.run(function(){t.handleActionButtonFocus(i,e.keyCode)}),e.keyCode===l.tab&&this.ngZone.run(function(){t.keepFocusWithinComponent(n,e)})},v.prototype.setServiceClasses=function(e,t){var n=this,i=this.wrapper.nativeElement;e&&U(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&U(t).forEach(function(e){n.renderer.addClass(i,e)})},v.prototype.handleInitialFocus=function(){var e,t=this.wrapper.nativeElement,n=this.findPrimary(t);this.autoFocusedElement?(e=t.querySelector(this.autoFocusedElement))&&e.focus():(this.shouldFocusPrimary(n)?n:t).focus()},v.prototype.findPrimary=function(e){for(var t=e.querySelectorAll(".k-actions .k-button"),n=t.length-1;0<=n;n--)for(var i=t[n].classList,o=0;o<i.length;o++)if(i[o].endsWith("-primary"))return t[n]},v.prototype.handleActionButtonFocus=function(e,t){for(var n=this.getAllFocusableChildren(e),i=0;i<n.length;i++)if(n[i]===document.activeElement){if(t===l.left&&0<i){n[i-1].focus();break}if(t===l.right&&i<n.length-1){n[i+1].focus();break}}},v.prototype.keepFocusWithinComponent=function(e,t){var n=this.wrapper.nativeElement,n=_(this.getFirstAndLastFocusable(n),2),i=n[0],n=n[1],o=!t.shiftKey&&e===n,e=t.shiftKey&&e===i;o&&(t.preventDefault(),i.focus()),e&&(t.preventDefault(),n.focus())},v.prototype.shouldFocusPrimary=function(e){return p(e)&&Y(e)},v.prototype.getAllFocusableChildren=function(e){return e.querySelectorAll(ne)},v.prototype.getFirstAndLastFocusable=function(e){var t=this.getAllFocusableChildren(e);return[0<t.length?t[0]:e,0<t.length?t[t.length-1]:e]},v.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},v.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(v.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=J(this.width)),this.height&&(e.height=J(this.height)),this.minWidth&&(e.minWidth=J(this.minWidth)),this.maxWidth&&(e.maxWidth=J(this.maxWidth)),this.minHeight&&(e.minHeight=J(this.minHeight)),this.maxHeight&&(e.maxHeight=J(this.maxHeight)),e},enumerable:!1,configurable:!0}),v.prototype.bubble=function(t,e){var n=this;e&&(e=e[t].subscribe(function(e){return n[t].emit(e)}),this.subscriptions.push(e))},v);function v(e,t,n,i,o,r){var s=this;this.wrapper=e,this.renderer=t,this.cdr=i,this.ngZone=o,this.builder=r,this.actionsLayout="stretched",this.animation=!0,this.titleId=null,this.contentId=null,this.action=new d.EventEmitter,this.close=new d.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new u.Subscription,j.validatePackage(ye),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(e){e=e.rtl;return s.direction=e?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}b.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:b,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:a.LocalizationService},{token:o.ChangeDetectorRef},{token:o.NgZone},{token:L.AnimationBuilder}],target:o.ɵɵFactoryTarget.Component}),b.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"kendo-dialog",inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight",animation:"animation"},outputs:{action:"action",close:"close"},host:{properties:{"attr.dir":"this.dir","attr.tabIndex":"this.tabIndex","class.k-dialog-wrapper":"this.wrapperClass"}},providers:[n.LocalizationService,{provide:pe,useExisting:n.LocalizationService},{provide:n.L10N_PREFIX,useValue:"kendo.dialog"}],queries:[{propertyName:"titlebarContent",predicate:y}],viewQueries:[{propertyName:"actionsView",first:!0,predicate:c,descendants:!0},{propertyName:"dialog",first:!0,predicate:["dialog"],descendants:!0,static:!0},{propertyName:"titlebarView",predicate:y,descendants:!0}],exportAs:["kendoDialog"],ngImport:o,template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n ',isInline:!0,components:[{type:y,selector:"kendo-dialog-titlebar",inputs:["id","closeTitle"],outputs:["close"]},{type:c,selector:"kendo-dialog-actions",inputs:["actions","layout"],outputs:["action"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:r.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],animations:[s.trigger("overlayAppear",[s.state("in",s.style({opacity:1})),s.transition("void => *",[s.style({opacity:.1}),s.animate(".3s cubic-bezier(.2, .6, .4, 1)")])])]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:b,decorators:[{type:d.Component,args:[{animations:[s.trigger("overlayAppear",[s.state("in",s.style({opacity:1})),s.transition("void => *",[s.style({opacity:.1}),s.animate(".3s cubic-bezier(.2, .6, .4, 1)")])])],exportAs:"kendoDialog",providers:[n.LocalizationService,{provide:pe,useExisting:n.LocalizationService},{provide:n.L10N_PREFIX,useValue:"kendo.dialog"}],selector:"kendo-dialog",template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:a.LocalizationService},{type:o.ChangeDetectorRef},{type:o.NgZone},{type:L.AnimationBuilder}]},propDecorators:{actions:[{type:d.Input}],actionsLayout:[{type:d.Input}],autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],width:[{type:d.Input}],minWidth:[{type:d.Input}],maxWidth:[{type:d.Input}],height:[{type:d.Input}],minHeight:[{type:d.Input}],maxHeight:[{type:d.Input}],animation:[{type:d.Input}],action:[{type:d.Output}],close:[{type:d.Output}],dir:[{type:d.HostBinding,args:["attr.dir"]}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],titlebarContent:[{type:d.ContentChildren,args:[y,{descendants:!1}]}],titlebarView:[{type:d.ViewChildren,args:[y]}],actionsView:[{type:d.ViewChild,args:[c,{static:!1}]}],dialog:[{type:d.ViewChild,args:["dialog",{static:!0}]}],wrapperClass:[{type:d.HostBinding,args:["class.k-dialog-wrapper"]}]}});function ke(){}Ie.prototype.ngAfterViewInit=function(){var t=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(g.filter(function(e){return!e.isDefaultPrevented()})).subscribe(function(){t.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(e){return t.dialog.dialog.instance.action.emit(e)})};var Ce=Ie;function Ie(e){this.dialog=e}Ce.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ce,deps:[{token:ke}],target:o.ɵɵFactoryTarget.Directive}),Ce.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ce,viewQueries:[{propertyName:"dialogTitleBar",first:!0,predicate:y,descendants:!0},{propertyName:"dialogActions",first:!0,predicate:c,descendants:!0}],ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Ce,decorators:[{type:d.Directive}],ctorParameters:function(){return[{type:ke}]},propDecorators:{dialogTitleBar:[{type:d.ViewChild,args:[y,{static:!1}]}],dialogActions:[{type:d.ViewChild,args:[c,{static:!1}]}]}});Object.defineProperty(De.prototype,"container",{get:function(){return De.container},set:function(e){De.container=e},enumerable:!1,configurable:!0});var w=De;function De(){}w.container=null,w.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,deps:[],target:o.ɵɵFactoryTarget.Injectable}),w.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:w,decorators:[{type:d.Injectable}]});function Te(){}function ze(){}xe.prototype.get=function(e,t){return e===ke?this.getDialogRef():this.parentInjector.get(e,t)};var Ee=xe;function xe(e,t){this.getDialogRef=e,this.parentInjector=t}Oe.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(b),n=e.appendTo||this.containerService.container;if(!n)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,t,n,{close:function(){},content:null,dialog:null,result:null},e)},Oe.prototype.initializeDialog=function(n,e,t,i,o){function r(e){e instanceof ae&&(e=new be),p.next(e||new be),l.componentRef&&l.componentRef.destroy(),c.destroy()}var s,a,l=this.contentFrom(n,t,i),c=t.createComponent(e,void 0,void 0,l.nodes),p=((i.dialog=c).changeDetectorRef.markForCheck(),this.applyOptions(c.instance,o),new u.Subject),t=u.merge(p,u.merge(c.instance.close,c.instance.action).pipe(g.map(function(e){return e instanceof ae?new be:e}),g.filter(function(e){var t;return!o.preventAction||(t=Q(t=n)||t instanceof d.TemplateRef?void 0:i,!o.preventAction(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(r),i.close=r,i.result=t,n&&d.isDevMode()&&(e=l.nodes[0]&&0<l.nodes[0].length,t=l.nodes[2]&&0<l.nodes[2].length,s=o.title&&e,a=o.actions&&t,n.prototype instanceof Ce?(s||a)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(e||t)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")),i},Oe.prototype.applyOptions=function(e,t){e.title=t.title,e.actions=t.actions,e.actionsLayout=t.actionsLayout||"stretched",e.width=t.width,e.minWidth=t.minWidth,e.maxWidth=t.maxWidth,e.height=t.height,e.minHeight=t.minHeight,e.maxHeight=t.maxHeight,e.autoFocusedElement=t.autoFocusedElement,e.closeTitle=t.closeTitle,e.cssClass=t.cssClass,e.htmlAttributes=t.htmlAttributes,e.animation=void 0===t.animation||t.animation,t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content)},Oe.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=[],s=[],a=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new Ee(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),a=t.createComponent(e,void 0,i),r=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),o=[a.location.nativeElement],s=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-actions")),n.content=a),{componentRef:a,nodes:[r,o,s]}};h=Oe;function Oe(e,t){this.resolver=e,this.containerService=t}h.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h,deps:[{token:o.ComponentFactoryResolver},{token:w}],target:o.ɵɵFactoryTarget.Injectable}),h.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:o.ComponentFactoryResolver},{type:w,decorators:[{type:d.Inject,args:[w]}]}]}});function Se(e,t){return function(n){return e.kendoDrag.pipe(g.takeUntil(e.kendoRelease.pipe(g.tap(function(){t.emit()}))),g.map(function(e){var t=e.pageX,e=e.pageY;return{originalX:n.pageX,originalY:n.pageY,pageX:t,pageY:e}}))}}var Ae=10002,Fe={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},k=(C.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},C.prototype.init=function(e){var t=this.options.state,n=this.options;this.window=e,"default"!==t&&(this.restoreOptions=Object.assign({},n)),"minimized"===t&&(n.height=0,n.minHeight=0),"maximized"===t&&(n.position="fixed")},C.prototype.onDrag=function(e){var s=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r;s.dragSubscription=e.kendoPress.pipe(g.tap(function(e){e.isTouch||G(e),s.focus.emit(),o=s.currentPosition(),r=!1}),g.switchMap(Se(e,s.dragEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY;r||(s.ensureWidth(),s.dragStart.emit(),r=!0),s.handleDrag({originalX:i,originalY:e,pageX:t,pageY:n,startPosition:o})})}))},C.prototype.handleDrag=function(e){var t=e.originalX,n=e.originalY,i=e.pageX,o=e.pageY,e=e.startPosition;this.options.left=e.x+i-t,this.options.top=e.y+o-n,"minimized"===this.options.state&&p(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:e.x+i-t,top:e.y+o-n})},C.prototype.onResize=function(e,s){var a=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r=!1;e.kendoPress.pipe(g.tap(function(e){G(e),a.focus.emit(),o=a.currentOffsetAndPosition(),r=!1}),g.switchMap(Se(e,a.resizeEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY,t=(r||(a.resizeStart.emit(s),r=!0),t-i);a.handleResize(o,s,t,n-e)})}))},C.prototype.handleResize=function(e,t,n,i){var o,r,s,a=this,l=this.options,c={};0<=t.indexOf("e")&&(s=e.width+n)!==l.width&&s>=l.minWidth&&(c.width=s),0<=t.indexOf("n")&&(o=e.height-i,r=e.y+i,o!==l.height&&o>=l.minHeight&&r!==l.top&&(c.height=o,c.top=r)),0<=t.indexOf("s")&&(o=e.height+i)!==l.height&&o>=l.minHeight&&(c.height=o),0<=t.indexOf("w")&&(r=e.x+n,(s=e.width-n)!==l.width&&s>=l.minWidth&&r!==l.left&&(c.width=s,c.left=r)),(p(c.width)||p(c.height))&&(oe.forEach(function(e){p(c[e])&&(a.options[e]=c[e])}),this.change.emit(c))},C.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},C.prototype.defaultState=function(){p(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},C.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},C.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},C.prototype.maximizeState=function(){this.storeOptions();var e=this.windowViewPort;this.options=Object.assign({},this.options,{height:e.height,left:0,position:"fixed",state:"maximized",top:0,width:e.width}),this.stateChange.emit("maximized")},C.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},C.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},C.prototype.applyManualState=function(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}},C.prototype.closeAction=function(){this.close.emit()},C.prototype.ensureWidth=function(){var e=W.offset(this.window.nativeElement);p(this.options.width)||(this.options.width=e.width,this.change.emit({width:e.width}))},C.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},C.prototype.center=function(){var e,t,n,i;"maximized"!==this.options.state&&(e=W.scrollPosition(this.window.nativeElement),t=this.windowViewPort,n=W.offset(this.window.nativeElement),i={},p(this.options.left)||(this.options.left=e.x+Math.max(0,(t.width-n.width)/2),i.left=this.options.left),p(this.options.top)||(this.options.top=e.y+Math.max(0,(t.height-n.height)/2),i.top=this.options.top),this.change.emit(i))},C.prototype.currentOffsetAndPosition=function(){var e=this.options,t=W.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height||t.height,width:e.width||t.width})},C.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},C.prototype.setPosition=function(){var e=W.positionWithScroll(this.window.nativeElement,W.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},C.prototype.setRestoreOption=function(e,t){p(this.restoreOptions)&&(this.restoreOptions[e]=t)},Object.defineProperty(C.prototype,"nextPossibleZIndex",{get:function(){return Ae},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"nextZIndex",{get:function(){return Ae++},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"windowViewPort",{get:function(){return W.getWindowViewPort(this.window.nativeElement)},enumerable:!1,configurable:!0}),C);function C(e){this.ngZone=e,this.close=new d.EventEmitter,this.focus=new d.EventEmitter,this.change=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.options=Object.assign({},Fe),this.lastAction=null,this.subscriptions=new u.Subscription,this.dragSubscription=new u.Subscription}k.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,deps:[{token:o.NgZone}],target:o.ɵɵFactoryTarget.Injectable}),k.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:o.NgZone}]}});Object.defineProperty(Ve.prototype,"hostClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Ve.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(u.of(this.draggable).subscribe(function(e){t.service.onResize(e,t.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(function(e){e!==t.direction&&t.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(function(){t.setDisplay("none")})),this.subscriptions.add(u.merge(this.service.resizeEnd,this.service.dragEnd).subscribe(function(){t.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(function(e){t.setDisplay("default"===e?"block":"none")}))},Ve.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Ve.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")};var I=Ve;function Ve(e,t,n,i){this.draggable=e,this.el=t,this.renderer=n,this.service=i,this.subscriptions=new u.Subscription}I.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,deps:[{token:N.DraggableDirective,host:!0},{token:o.ElementRef},{token:o.Renderer2},{token:k}],target:o.ɵɵFactoryTarget.Directive}),I.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:I,selector:"[kendoWindowResizeHandle]",inputs:{direction:"direction"},host:{properties:{"class.k-resize-handle":"this.hostClass"}},ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowResizeHandle]"}]}],ctorParameters:function(){return[{type:N.DraggableDirective,decorators:[{type:d.Host}]},{type:o.ElementRef},{type:o.Renderer2},{type:k}]},propDecorators:{direction:[{type:d.Input}],hostClass:[{type:d.HostBinding,args:["class.k-resize-handle"]}]}});T.prototype.ngOnInit=function(){this.dragDirective=new R.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},T.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},T.prototype.subscribeDrag=function(){var t=this;this.unsubscribeDrag(),this.dragSubscription=u.of(this.dragDirective).subscribe(function(e){t.service.onDrag(e)})},T.prototype.subscribeStateChange=function(){var t=this;this.stateSubscription=this.service.stateChange.subscribe(function(e){t.service.options.draggable&&("maximized"===e?t.unsubscribeDrag():t.subscribeDrag())})},T.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},T.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(T.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!1,configurable:!0}),T.prototype.handle=function(e){var e=e.target,t=this.service.options.state;K(e,"k-icon")||Y(e,!1)||!this.service.options.resizable||("default"===t?this.service.maximizeAction():"maximized"===t&&this.service.restoreAction())},Object.defineProperty(T.prototype,"isDraggable",{get:function(){var e=this.service.options;return e.draggable&&"maximized"!==e.state},enumerable:!1,configurable:!0});var D=T;function T(e,t,n){this.el=e,this.ngZone=n,this.service=t}D.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:D,deps:[{token:o.ElementRef},{token:k},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Component}),D.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-window-titlebar",inputs:{template:"template"},host:{listeners:{dblclick:"handle($event)"},properties:{"class.k-window-titlebar":"this.className","class.k-dialog-titlebar":"this.className","style.touch-action":"this.touchAction"}},ngImport:o,template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n ',isInline:!0,directives:[{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:r.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:D,decorators:[{type:d.Component,args:[{selector:"kendo-window-titlebar",template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:k},{type:o.NgZone}]},propDecorators:{template:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}],touchAction:[{type:d.HostBinding,args:["style.touch-action"]}],handle:[{type:d.HostListener,args:["dblclick",["$event"]]}]}});Pe.prototype.process=function(e){var t=this,n=e.keyCode;switch(n){case l.up:case l.down:case l.left:case l.right:e.preventDefault(),this.ngZone.run(function(){t.handleArrow(n,e)});break;case l.esc:this.ngZone.run(function(){t.handleEscape()})}},Pe.prototype.handleArrow=function(e,t){var n=this.window.options;t.altKey?this.handleStateChange(e,n.state):(t.ctrlKey||t.metaKey)&&"default"===n.state?this.handleResize(e):this.handleDrag(e)},Pe.prototype.handleEscape=function(){this.window.closeAction()},Pe.prototype.handleDrag=function(e){var t=this.window.options;if(t.draggable){var n=this.window.currentOffsetAndPosition(),i=this.window.restoreOptions,o={},r=10;switch(e!==l.left&&e!==l.up||(r*=-1),e){case l.left:case l.right:o.left=n.x+r,t.left=o.left;break;case l.up:case l.down:o.top=n.y+r,t.top=o.top}"minimized"===t.state&&p(i)&&(i.left=t.left,i.top=t.top),this.window.change.emit(o)}},Pe.prototype.handleResize=function(e){var t=this,n=this.window.options;if(n.resizable){var i,o=this.window.currentOffsetAndPosition(),r={},s=10;switch(e!==l.left&&e!==l.up||(s*=-1),e){case l.left:case l.right:(i=o.width+s)!==n.width&&i>=n.minWidth&&(r.width=i);break;case l.up:case l.down:(i=o.height+s)!==n.height&&i>=n.minHeight&&(r.height=i)}(p(r.width)||p(r.height))&&(oe.forEach(function(e){p(r[e])&&(t.window.options[e]=r[e])}),this.window.change.emit(r))}},Pe.prototype.handleStateChange=function(e,t){"minimized"===t&&e===l.up||"maximized"===t&&e===l.down?this.window.restoreAction():"default"===t&&(e===l.up?this.window.maximizeAction():e===l.down&&this.window.minimizeAction())};var Me=Pe;function Pe(e,t){this.window=e,this.ngZone=t}Me.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Me,deps:[{token:k},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Injectable}),Me.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Me}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Me,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:k},{type:o.NgZone}]}});Z(Re,je=i.Button),Re.prototype.onClick=function(){this.isDisabled||this.window.minimizeAction()},Object.defineProperty(Re.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var je,z=Re;function Re(e,t,n,i,o){e=je.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-minimize",e}z.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),z.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:z,selector:"button[kendoWindowMinimizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMinimizeAction"],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:z,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMinimizeAction",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:o.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});Z(Be,We=i.Button),Be.prototype.onClick=function(){this.isDisabled||this.window.maximizeAction()},Object.defineProperty(Be.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var We,E=Be;function Be(e,t,n,i,o){e=We.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-maximize",e}E.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:E,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),E.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"button[kendoWindowMaximizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMaximizeAction"],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:E,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMaximizeAction",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:o.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});Z(Ne,Le=i.Button),Ne.prototype.onClick=function(){this.isDisabled||this.window.restoreAction()},Object.defineProperty(Ne.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!1,configurable:!0});var Le,x=Ne;function Ne(e,t,n,i,o){e=Le.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-restore",e}x.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),x.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"button[kendoWindowRestoreAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowRestoreAction"],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:x,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowRestoreAction",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:o.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});Z(Ze,He=i.Button),Ze.prototype.onClick=function(){this.isDisabled||this.window.closeAction()};var He,i=Ze;function Ze(e,t,n,i,o){e=He.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="close",e}i.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:i,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),i.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:i,selector:"button[kendoWindowCloseAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType"}},providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowCloseAction"],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:i,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowCloseAction",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:o.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}]}});Object.defineProperty(S.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){$(e,this.renderer,this.el.nativeElement);var t=this.el.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&(this.direction=n),this.tabIndex!==t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hostClasses",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),S.prototype.ngAfterViewInit=function(){var e=this;this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(function(){return Promise.resolve(null).then(function(){return e.setInitialOffset()})}),this.initDomEvents()},S.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},S.prototype.ngOnChanges=function(t){var e,n=this;oe.forEach(function(e){R.isChanged(e,t)&&n.setStyle(e,n.options[e])}),R.isChanged("draggable",t)&&(e=p(this.titleBarContent)?this.titleBarContent:this.titleBarView,t.draggable.currentValue?e.subscribeDrag():e.unsubscribeDrag()),R.isChanged("state",t)&&(p(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},S.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},S.prototype.focus=function(){var e=this.el.nativeElement;p(e)&&e.focus()},S.prototype.bringToFront=function(){this.setNextZIndex()},S.prototype.setDimension=function(e,t){this.setOption(e,t),this.setStyle(e,t)},S.prototype.setOffset=function(e,t){this.setOption(e,t),this.setStyle(e,t)},Object.defineProperty(S.prototype,"showDefaultTitleBar",{get:function(){return!p(this.titleBarContent)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!1,configurable:!0}),S.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},S.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},S.prototype.subscribeEvents=function(){var i=this;R.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe(function(){i.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(function(){i.draged=!0,i.ngZone.run(function(){i.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(function(){i.draged&&(i.draged=!1,i.ngZone.run(function(){i.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(function(){i.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(function(){i.resized=!0,i.ngZone.run(function(){i.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(function(){i.resized&&(i.resized=!1,i.ngZone.run(function(){i.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(function(n){oe.forEach(function(e){var t;p(n[e])&&(i.setStyle(e,n[e]),"maximized"!==i.state&&(t=i[e+"Change"]).observers.length&&i.ngZone.run(function(){t.emit(n[e])}))})})),this.windowSubscription.add(this.service.stateChange.subscribe(function(e){p(i.service.lastAction)&&(i.updateAllOffset(),i.stateChange.emit(e))})))},S.prototype.initDomEvents=function(){var t=this;this.el&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.el.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},S.prototype.onKeyDown=function(e){K(e.target,"k-window")&&this.navigation.process(e)},S.prototype.setServiceClasses=function(e,t){var n=this,i=this.el.nativeElement;e&&U(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&U(t).forEach(function(e){n.renderer.addClass(i,e)})},S.prototype.setNextZIndex=function(){var e=this.el.nativeElement.style["z-index"],t=this.service.nextPossibleZIndex;(!e||1<t-e)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},S.prototype.setInitialOffset=function(){var e;"maximized"!==this.state?(this.updateAllOffset(),p(this.left)&&p(this.top)||this.service.center()):(e=this.service.windowViewPort,this.setStyle("width",e.width),this.setStyle("height",e.height),this.setStyle("top",0),this.setStyle("left",0))},S.prototype.updateAllOffset=function(){var t=this;oe.forEach(function(e){p(t[e])?t.setStyle(e,t[e]):t.removeStyle(e)})},S.prototype.setStyle=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},S.prototype.removeStyle=function(e){this.renderer.removeStyle(this.el.nativeElement,e)},Object.defineProperty(S.prototype,"options",{get:function(){return this.service.options},enumerable:!1,configurable:!0}),S.prototype.setOption=function(e,t){"number"!=typeof t&&"string"!=typeof t||(t="number"==typeof t?t:parseInt(t,10),this.options[e]=t,this.service.setRestoreOption(e,t))},S.prototype.handleInitialFocus=function(){var e=this.el.nativeElement;this.autoFocusedElement?(e=e.querySelector(this.autoFocusedElement))&&e.focus():this.focus()};var O=S;function S(e,t,n,i,o,r){var s=this;this.el=e,this.renderer=t,this.service=n,this.navigation=i,this.ngZone=o,this.localization=r,this.keepContent=!1,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.close=new d.EventEmitter,this.widthChange=new d.EventEmitter,this.heightChange=new d.EventEmitter,this.topChange=new d.EventEmitter,this.leftChange=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new u.Subscription,this.domSubs=new u.Subscription,j.validatePackage(ye),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return s.direction=e?"rtl":"ltr"}),this.resizeDirections=ie,this.subscribeEvents()}O.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:O,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:k},{token:Me},{token:o.NgZone},{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Component}),O.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-window",inputs:{autoFocusedElement:"autoFocusedElement",title:"title",draggable:"draggable",resizable:"resizable",keepContent:"keepContent",state:"state",minWidth:"minWidth",minHeight:"minHeight",width:"width",height:"height",top:"top",left:"left"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",resizeStart:"resizeStart",resizeEnd:"resizeEnd",close:"close",widthChange:"widthChange",heightChange:"heightChange",topChange:"topChange",leftChange:"leftChange",stateChange:"stateChange"},host:{listeners:{focus:"onComponentFocus()",blur:"onComponentBlur()"},properties:{"attr.tabIndex":"this.tabIndex","class.k-window":"this.hostClasses","attr.dir":"this.dir","style.minWidth":"this.styleMinWidth","style.minHeight":"this.styleMinHeight","style.position":"this.stylePosition","class.k-window-maximized":"this.wrapperMaximizedClass","class.k-window-minimized":"this.wrapperMinimizedClass"}},providers:[k,Me,n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.window"}],queries:[{propertyName:"titleBarContent",first:!0,predicate:D,descendants:!0}],viewQueries:[{propertyName:"titleBarView",first:!0,predicate:D,descendants:!0},{propertyName:"resizeHandles",predicate:I,descendants:!0}],exportAs:["kendoWindow"],usesOnChanges:!0,ngImport:o,template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n ',isInline:!0,components:[{type:D,selector:"kendo-window-titlebar",inputs:["template"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:r.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:z,selector:"button[kendoWindowMinimizeAction]",inputs:["window"],exportAs:["kendoWindowMinimizeAction"]},{type:E,selector:"button[kendoWindowMaximizeAction]",inputs:["window"],exportAs:["kendoWindowMaximizeAction"]},{type:x,selector:"button[kendoWindowRestoreAction]",inputs:["window"],exportAs:["kendoWindowRestoreAction"]},{type:i,selector:"button[kendoWindowCloseAction]",inputs:["window"],exportAs:["kendoWindowCloseAction"]},{type:r.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:r.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:I,selector:"[kendoWindowResizeHandle]",inputs:["direction"]},{type:N.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:O,decorators:[{type:d.Component,args:[{exportAs:"kendoWindow",providers:[k,Me,n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:k},{type:Me},{type:o.NgZone},{type:a.LocalizationService}]},propDecorators:{autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],draggable:[{type:d.Input}],resizable:[{type:d.Input}],keepContent:[{type:d.Input}],state:[{type:d.Input}],minWidth:[{type:d.Input}],minHeight:[{type:d.Input}],width:[{type:d.Input}],height:[{type:d.Input}],top:[{type:d.Input}],left:[{type:d.Input}],dragStart:[{type:d.Output}],dragEnd:[{type:d.Output}],resizeStart:[{type:d.Output}],resizeEnd:[{type:d.Output}],close:[{type:d.Output}],widthChange:[{type:d.Output}],heightChange:[{type:d.Output}],topChange:[{type:d.Output}],leftChange:[{type:d.Output}],stateChange:[{type:d.Output}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],hostClasses:[{type:d.HostBinding,args:["class.k-window"]}],dir:[{type:d.HostBinding,args:["attr.dir"]}],titleBarView:[{type:d.ViewChild,args:[D,{static:!1}]}],titleBarContent:[{type:d.ContentChild,args:[D,{static:!1}]}],resizeHandles:[{type:d.ViewChildren,args:[I]}],styleMinWidth:[{type:d.HostBinding,args:["style.minWidth"]}],styleMinHeight:[{type:d.HostBinding,args:["style.minHeight"]}],stylePosition:[{type:d.HostBinding,args:["style.position"]}],wrapperMaximizedClass:[{type:d.HostBinding,args:["class.k-window-maximized"]}],wrapperMinimizedClass:[{type:d.HostBinding,args:["class.k-window-minimized"]}],onComponentFocus:[{type:d.HostListener,args:["focus"]}],onComponentBlur:[{type:d.HostListener,args:["blur"]}]}});function _e(){}function Xe(){}var qe=function(){},A=(Object.defineProperty(Ke.prototype,"container",{get:function(){return Ke.container},set:function(e){Ke.container=e},enumerable:!1,configurable:!0}),Ke);function Ke(){}A.container=null,A.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:A,deps:[],target:o.ɵɵFactoryTarget.Injectable}),A.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:A}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:A,decorators:[{type:d.Injectable}]});$e.prototype.get=function(e,t){return e===_e?this.getWindowRef():this.parentInjector.get(e,t)};var Ye=$e;function $e(e,t){this.getWindowRef=e,this.parentInjector=t}Ue.prototype.open=function(n){var e=this.resolver.resolveComponentFactory(O),t=n.appendTo||this.containerService.container;if(!t)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n ");function i(e){a.next(e||new qe),r.componentRef&&r.componentRef.destroy(),s.destroy()}var o={close:function(){},content:null,result:null,window:null},r=this.contentFrom(n.content,t,o),s=t.createComponent(e,void 0,void 0,r.nodes),a=(o.window=s,this.applyOptions(s.instance,n),new u.Subject),t=u.merge(a,s.instance.close.pipe(g.map(function(e){return e||new qe}),g.filter(function(e){var t;return!n.preventClose||(t=n.content,t=Q(t)||t instanceof d.TemplateRef?void 0:o,!n.preventClose(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(i),o.close=i,o.result=t,s.changeDetectorRef.markForCheck(),o},Ue.prototype.applyOptions=function(e,t){p(t.htmlAttributes)&&(e.htmlAttributes=t.htmlAttributes),p(t.cssClass)&&(e.cssClass=t.cssClass),p(t.title)&&(e.title=t.title),p(t.keepContent)&&(e.keepContent=t.keepContent),p(t.width)&&(e.width=t.width),p(t.minWidth)&&(e.minWidth=t.minWidth),p(t.height)&&(e.height=t.height),p(t.minHeight)&&(e.minHeight=t.minHeight),p(t.left)&&(e.left=t.left),p(t.top)&&(e.top=t.top),p(t.draggable)&&(e.draggable=t.draggable),p(t.resizable)&&(e.resizable=t.resizable),p(t.messages&&t.messages.closeTitle)&&(e.messages.closeTitle=t.messages.closeTitle),p(t.messages&&t.messages.restoreTitle)&&(e.messages.restoreTitle=t.messages.restoreTitle),p(t.messages&&t.messages.maximizeTitle)&&(e.messages.maximizeTitle=t.messages.maximizeTitle),p(t.messages&&t.messages.minimizeTitle)&&(e.messages.minimizeTitle=t.messages.minimizeTitle),p(t.autoFocusedElement)&&(e.autoFocusedElement=t.autoFocusedElement),p(t.state)&&(e.state=t.state,"minimized"===t.state&&(e.keepContent=!0)),t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content),t.titleBarContent instanceof d.TemplateRef&&(e.titleBarTemplate=t.titleBarContent)},Ue.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new Ye(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),o=[(r=t.createComponent(e,void 0,i)).location.nativeElement],n.content=r),{componentRef:r,nodes:[[],o]}};r=Ue;function Ue(e,t){this.resolver=e,this.containerService=t}r.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r,deps:[{token:o.ComponentFactoryResolver},{token:A}],target:o.ɵɵFactoryTarget.Injectable}),r.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:r,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:o.ComponentFactoryResolver},{type:A,decorators:[{type:d.Inject,args:[A]}]}]}});var Ge,Qe=function(e,t){t.container=e},F=(Qe.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Qe,deps:[{token:o.ViewContainerRef},{token:w}],target:o.ɵɵFactoryTarget.Directive}),Qe.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Qe,selector:"[kendoDialogContainer]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:Qe,decorators:[{type:d.Directive,args:[{selector:"[kendoDialogContainer]"}]}],ctorParameters:function(){return[{type:o.ViewContainerRef},{type:w}]}}),Z(Je,Ge=m),Object.defineProperty(Je.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Je);function Je(e){var t=Ge.call(this)||this;return t.service=e,t}F.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:F,deps:[{token:a.LocalizationService}],target:o.ɵɵFactoryTarget.Directive}),F.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"kendo-dialog-messages, kendo-window-messages",providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],usesInheritance:!0,ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:F,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],selector:"kendo-dialog-messages, kendo-window-messages"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var et=[c,F,f],V=function(){},t=(V.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,deps:[],target:o.ɵɵFactoryTarget.NgModule}),V.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,declarations:[c,F,f],imports:[t.CommonModule],exports:[c,F,f,t.CommonModule]}),V.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,imports:[[t.CommonModule],t.CommonModule]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,decorators:[{type:d.NgModule,args:[{declarations:[et],exports:[et,t.CommonModule],imports:[t.CommonModule]}]}]}),[b,y]),M=function(){},t=(M.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:M,deps:[],target:o.ɵɵFactoryTarget.NgModule}),M.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:M,declarations:[b,y,Qe],imports:[V],exports:[b,y,c,F,f,Qe]}),M.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:M,providers:[w,h],imports:[[V]]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:M,decorators:[{type:d.NgModule,args:[{declarations:[t,Qe],entryComponents:[t],exports:[t,et,Qe],imports:[V],providers:[w,h]}]}]}),function(e,t){t.container=e}),tt=(t.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:t,deps:[{token:o.ViewContainerRef},{token:A}],target:o.ɵɵFactoryTarget.Directive}),t.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoWindowContainer]",ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:t,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowContainer]"}]}],ctorParameters:function(){return[{type:o.ViewContainerRef},{type:A}]}}),[I,O,D,i,z,E,x]),nt=[O,D],it=[O,i,z,E,x,D],P=function(){},I=(P.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,deps:[],target:o.ɵɵFactoryTarget.NgModule}),P.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,declarations:[I,O,D,i,z,E,x,t],imports:[V,R.DraggableModule],exports:[O,i,z,E,x,D,c,F,f,t]}),P.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,providers:[A,r],imports:[[V,R.DraggableModule]]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,decorators:[{type:d.NgModule,args:[{declarations:[tt,t],entryComponents:[nt],exports:[it,et,t],imports:[V,R.DraggableModule],providers:[A,r]}]}]}),function(){});I.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,deps:[],target:o.ɵɵFactoryTarget.NgModule}),I.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,exports:[M,P]}),I.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,imports:[M,P]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,decorators:[{type:d.NgModule,args:[{exports:[M,P]}]}]}),e.CustomMessagesComponent=F,e.DialogAction=Te,e.DialogActionsComponent=c,e.DialogCloseResult=be,e.DialogComponent=b,e.DialogContainerDirective=Qe,e.DialogContentBase=Ce,e.DialogModule=M,e.DialogRef=ke,e.DialogService=h,e.DialogSettings=ze,e.DialogTitleBarComponent=y,e.DialogsModule=I,e.LocalizedMessagesDirective=f,e.Messages=m,e.PreventableEvent=ae,e.WindowCloseActionDirective=i,e.WindowCloseResult=qe,e.WindowComponent=O,e.WindowContainerDirective=t,e.WindowMaximizeActionDirective=E,e.WindowMinimizeActionDirective=z,e.WindowModule=P,e.WindowRef=_e,e.WindowRestoreActionDirective=x,e.WindowService=r,e.WindowSettings=Xe,e.WindowTitleBarComponent=D,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dialog',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1654174254,
12
+ publishDate: 1654175123,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -579,7 +579,7 @@ const packageMetadata = {
579
579
  name: '@progress/kendo-angular-dialog',
580
580
  productName: 'Kendo UI for Angular',
581
581
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
582
- publishDate: 1654174254,
582
+ publishDate: 1654175123,
583
583
  version: '',
584
584
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
585
585
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dialog",
3
- "version": "7.1.2-dev.202206021251",
3
+ "version": "7.1.2",
4
4
  "description": "Dialog Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",