@progress/kendo-angular-inputs 8.0.9-dev.202203220940 → 8.0.9-dev.202203231216

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
- System.register("@progress/kendo-angular-inputs",["tslib","@angular/core","@angular/common","@progress/kendo-angular-common","@progress/kendo-angular-popup","@angular/forms","rxjs","rxjs/operators","@progress/kendo-angular-l10n","@progress/kendo-common","@progress/kendo-licensing","@progress/kendo-angular-intl","@progress/kendo-drawing"],function(s){var a,r,l,d,c,u,p,h,f,g,m,_,v;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){r=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){p=t(e)},function(e){h=t(e)},function(e){f=t(e)},function(e){g=t(e)},function(e){m=t(e)},function(e){_=t(e)},function(e){v=t(e)}],execute:function(){function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,i;n=[function(e,t){e.exports=a},function(e,t){e.exports=r},function(e,t){e.exports=f},function(e,t){e.exports=d},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isPresent=function(e){return null!=e},o.areSame=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},o.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},o.fitIntoBounds=function(e,t,n){return!o.isPresent(e)||isNaN(e)||e<=t?t:n<=e?n:e};var i={small:"sm",medium:"md",large:"lg"},a={small:"sm",medium:"md",large:"lg",full:"full"};o.getStylingClasses=function(e,t,n,o){switch(t){case"size":return{toRemove:"k-"+e+"-"+i[n],toAdd:o?"k-"+e+"-"+i[o]:null};case"rounded":return{toRemove:"k-rounded-"+a[n],toAdd:o?"k-rounded-"+a[o]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:o?"k-"+e+"-"+o:null}}}},function(e,t){e.exports=u},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647941853,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"}},function(e,t){e.exports=m},function(e,t){e.exports=p},function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var a=t(4),d=t(31),n=t(1);l.calculateFixedTrackSize=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},l.calculateTrackSize=function(e,t,n){e-=(n=void 0===n?!0:n)?2*parseFloat(t):0;return Math.floor(e)},l.calculateTicksCount=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),(n=void 0===n?1:n)<=0)throw new Error("Invalid argument: smallStep must be a positive number");t=Math.abs(d.subtract(t,e)),e=Math.floor(d.divide(t,n));return d.add(e,1)},l.calculateValueFromTick=function(e,t){var n=t.max,o=t.min,i=t.smallStep,a=t.reverse,t=t.vertical,o=d.add(o,d.multiply(e,i));return t||a?Math.abs(d.subtract(o,n)):o},l.calculateHandlePosition=function(e){var t=e.trackWidth,n=e.min,o=e.max,i=e.reverse,e=e.value,o=t/Math.abs(o-n),o=a.isPresent(e)?o*(e-n):n;return i&&(o=t-o),Math.floor(o)},l.decreaseValueToStep=function(e,t,n){var o=t.max,i=t.min,a=t.smallStep,t=t.largeStep,n=(n=void 0===n?!1:n)&&t?d.multiply(a,t):a,t=d.subtract(e,i),a=d.remainder(t,n),e=0===a?d.subtract(t,n):d.subtract(t,a);return l.limitValue(d.add(e,i),i,o)},l.increaseValueToStep=function(e,t,n){var o=t.max,i=t.min,a=t.smallStep,t=t.largeStep,n=(n=void 0===n?!1:n)&&t?d.multiply(a,t):a,t=d.subtract(e,i),a=d.remainder(t,n),e=d.add(d.subtract(t,a),n);return l.limitValue(d.add(e,i),i,o)},l.isStartHandle=function(e){return-1<e.id.indexOf("k-start-handle")},l.snapValue=function(e,t){var n=t.smallStep,o=t.min,i=t.max,i=l.limitValue(e,o,i);if(e!==i)return i;i=l.decreaseValueToStep(e,t),t=l.increaseValueToStep(e,t);return(e-o)%n==0?e:t-e<=(t-i)/2?t:i},l.trimValue=function(e,t,n){return e<n?e:n<t?t:n},l.trimValueRange=function(e,t,n){return n?[l.trimValue(e,t,n[0]),l.trimValue(e,t,n[1])]:[t,t]},l.identity=function(e){return e},l.isSameRange=function(e,t){return a.areSame(e[0],t[0])&&a.areSame(e[1],t[1])},l.elementOffset=function(e){var e=e.getBoundingClientRect(),t=document.documentElement;return{left:e.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),top:e.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}},l.limitValue=function(e,t,n){return Math.max(Math.min(e,n),t)},l.eventValue=function(e,t,n){var o=n.min,i=n.max,a=n.vertical,r=n.rtl,s=l.elementOffset(t),e=(a?e.pageY-s.top:e.pageX-s.left)*((i-o)/(a?t.clientHeight:t.clientWidth)),s=r||a?i-e:o+e,t=d.fractionLength(n.smallStep),s=d.toFixedPrecision(s,t+1);return l.snapValue(s,n)},l.isButton=function(e){return 0<=e.className.indexOf("k-button-increase")||0<=e.className.indexOf("k-button-decrease")},l.increment=function(e){return l.increaseValueToStep(e.value,e)},l.decrement=function(e){return l.decreaseValueToStep(e.value,e)},l.incrementLarge=function(e){return l.increaseValueToStep(e.value,e,!0)},l.decrementLarge=function(e){return l.decreaseValueToStep(e.value,e,!0)},l.validateValue=function(e){if(n.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},l.default={calculateFixedTrackSize:l.calculateFixedTrackSize,calculateValueFromTick:l.calculateValueFromTick,calculateTrackSize:l.calculateTrackSize,calculateTicksCount:l.calculateTicksCount,calculateHandlePosition:l.calculateHandlePosition,decreaseValueToStep:l.decreaseValueToStep,decrement:l.decrement,decrementLarge:l.decrementLarge,eventValue:l.eventValue,identity:l.identity,increment:l.increment,incrementLarge:l.incrementLarge,isButton:l.isButton,isSameRange:l.isSameRange,isStartHandle:l.isStartHandle,increaseValueToStep:l.increaseValueToStep,trimValue:l.trimValue,trimValueRange:l.trimValueRange,snapValue:l.snapValue,validateValue:l.validateValue}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasClass=function(e,t){return Boolean((e=e.className,String(e).trim().split(" ").find(function(e){return e===t})))},t.invokeElementMethod=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)},t.isUntouched=function(e){return e&&e.nativeElement&&t.hasClass(e.nativeElement,"ng-untouched")},t.containsFocus=function(e,t){return e&&t&&(e===t||e.contains(t))},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);o.__exportStar(n(91),t),o.__exportStar(n(89),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTPUT_FORMAT="rgba",t.DEFAULT_GRADIENT_BACKGROUND_COLOR="rgba(255, 0, 0, 1)",t.DRAGHANDLE_MOVE_SPEED=5,t.AAA_RATIO=7,t.AA_RATIO=4.5,t.DEFAULT_PRESET="office",t.DEFAULT_ACCESSIBLE_PRESET="accessible",t.STEP_COUNT=16},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=o.__decorate([n.Directive({selector:"[kendoSliderLabelTemplate]"}),o.__param(0,n.Optional()),o.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.LabelTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),i=0,o=(Object.defineProperty(a.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),o.__decorate([n.Input(),o.__metadata("design:type",String)],a.prototype,"align",void 0),o.__decorate([n.HostBinding("class.k-form-hint"),o.__metadata("design:type",Boolean)],a.prototype,"hostClass",void 0),o.__decorate([n.HostBinding("class.k-text-start"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],a.prototype,"startClass",null),o.__decorate([n.HostBinding("class.k-text-end"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],a.prototype,"endClass",null),o.__decorate([n.HostBinding("attr.id"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],a.prototype,"idAttribute",null),o.__decorate([n.Component({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],a));function a(){this.align="start",this.id="kendo-hint-"+i++,this.hostClass=!0}t.HintComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),i=0,o=(Object.defineProperty(a.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),o.__decorate([n.HostBinding("class.k-form-error"),o.__metadata("design:type",Boolean)],a.prototype,"hostClass",void 0),o.__decorate([n.Input(),o.__metadata("design:type",String)],a.prototype,"align",void 0),o.__decorate([n.HostBinding("attr.role"),o.__metadata("design:type",String)],a.prototype,"roleAttribute",void 0),o.__decorate([n.HostBinding("class.k-text-start"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],a.prototype,"startClass",null),o.__decorate([n.HostBinding("class.k-text-end"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],a.prototype,"endClass",null),o.__decorate([n.HostBinding("attr.id"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],a.prototype,"idAttribute",null),o.__decorate([n.Component({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],a));function a(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+i++,this.roleAttribute="alert"}t.ErrorComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(1),a=n(5),l=n(3),r=n(2),d=n(8),c=n(12),u=n(87),p=n(7),h=n(21),f=n(13),g=n(4),n=n(86),m=0,a=(o=_,Object.defineProperty(_.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"value",{get:function(){return this._value},set:function(e){this._value=f.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=1<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this,e=("string"==typeof(e=g.isPresent(e)?e:"office")&&g.isPresent(h.PALETTEPRESETS[e])&&(this.columns=this.columns||h.PALETTEPRESETS[e].columns,e=h.PALETTEPRESETS[e].colors),"string"==typeof e?e.split(","):e);this._palette=e.map(function(e){return f.parseColor(e,t.format,!1,!1)})},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),_.prototype.ngOnInit=function(){var e;0===this.colorRows.length&&(e="name"!==this.format?"office":"accessible",this.palette=this.palette||e,this.setRows())},_.prototype.ngAfterViewInit=function(){var e=this;this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe(c.take(1)).subscribe(function(){e.selectCell(e.value)})},_.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},_.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())},_.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case l.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case l.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case l.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case l.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case l.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},_.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},_.prototype.handleCellSelection=function(e,t){this.readonly||(this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0,e=f.parseColor(e,this.format,!1,!1),this.cellSelection.emit(e),this.handleValueChange(e),this.selection!==e&&(this.selection=e,this.selectionChange.emit(e)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId))},_.prototype.writeValue=function(e){this.value=e,this.selectCell(e)},_.prototype.registerOnChange=function(e){this.notifyNgChanged=e},_.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},_.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},_.prototype.isEmpty=function(){return!1},_.prototype.reset=function(){this.focusedCell=null,g.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},_.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},_.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},_.prototype.selectCell=function(e){this.selectedCell=this.service.getCellCoordsFor(e),this.focusedCell=this.selectedCell},_.prototype.setRows=function(){g.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},_.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},_.prototype.setHostElementAriaLabel=function(){var e=f.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},_.prototype.handleEnter=function(){var e;g.isPresent(this.focusedCell)&&(e=this.service.getColorAt(this.focusedCell),this.handleCellSelection(e,this.focusedCell))},i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],_.prototype,"direction",void 0),i.__decorate([s.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],_.prototype,"paletteId",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],_.prototype,"id",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],_.prototype,"format",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],_.prototype,"value",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],_.prototype,"columns",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],_.prototype,"palette",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],_.prototype,"tabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],_.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],_.prototype,"tileSize",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"selectionChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"cellSelection",void 0),i.__decorate([s.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],_.prototype,"hostTabindex",null),i.__decorate([s.HostBinding("class.k-colorpalette"),i.__metadata("design:type",Boolean)],_.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("attr.aria-disabled"),s.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],_.prototype,"disabledClass",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],_.prototype,"readonlyAttribute",null),i.__decorate([s.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],_.prototype,"handleKeydown",null),i.__decorate([s.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],_.prototype,"handleHostBlur",null),o=i.__decorate([s.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return o})},n.ColorPaletteService,u.ColorPaletteLocalizationService,{provide:r.LocalizationService,useExisting:u.ColorPaletteLocalizationService},{provide:r.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),i.__metadata("design:paramtypes",[s.ElementRef,n.ColorPaletteService,s.ChangeDetectorRef,s.Renderer2,r.LocalizationService,s.NgZone])],_));function _(e,t,n,o,i,a){var r=this;this.host=e,this.service=t,this.cdr=n,this.renderer=o,this.localizationService=i,this.ngZone=a,this.id="k-colorpalette-"+m++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.cellSelection=new s.EventEmitter,this.hostClasses=!0,this.uniqueId=l.guid(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},d.validatePackage(p.packageMetadata),this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}t.ColorPaletteComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(0),r=n(1),i=n(5),s=n(9),l=n(12),d=n(2),c=n(3),u=n(8),p=n(11),h=n(13),f=n(4),g=n(32),m=n(88),_=n(43),v=n(14),y=n(7),b=0,n=(o=C,Object.defineProperty(C.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"value",{get:function(){return this._value},set:function(e){this._value=h.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=h.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t;f.isPresent(e)?(t=Number(e),this._tabindex=isNaN(t)?0:t):this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"isFocused",{get:function(){return!(!c.isDocumentAvailable()||!f.isPresent(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"alphaSliderValue",{get:function(){if(f.isPresent(this.hsva.value)&&f.isPresent(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&0<this.contrastTool.length},enumerable:!0,configurable:!0}),C.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},C.prototype.ngOnChanges=function(e){c.isChanged("value",e)&&!this.isFocused&&this.updateUI(),c.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},C.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},C.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},C.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},C.prototype.handleDragPress=function(e){this.disabled||this.readonly||!f.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},C.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},C.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(h.getColorFromHSV(this.hsva.value,this.format,this.opacity)))},C.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement,o=(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),0),i=0;switch(e.key){case"ArrowRight":o=v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowLeft":o=-v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowUp":i=-v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowDown":i=v.DRAGHANDLE_MOVE_SPEED}var a=parseInt(n.style.top,10)+i,r=parseInt(n.style.left,10)+o;this.renderer.setStyle(n,"top",a+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run(function(){return t.moveDragHandle(r,a)})}},C.prototype.changePosition=function(e){var t,n,o,i=this;this.disabled||this.readonly||(this.gradientDragHandle.nativeElement.focus(),t=this.gradientRect,n=e.clientX-t.left,o=e.clientY-t.top,this.ngZone.run(function(){return i.moveDragHandle(n,o)}))},C.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(h.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.backgroundColor=h.getColorFromHue(e),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.hueSliderTouched=!0},C.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(h.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.alphaSliderTouched=!0},C.prototype.handleInputsValueChange=function(e){e=h.parseColor(e,this.format,this.opacity);this.value!==e&&(this.handleValueChange(e),this.updateUI())},C.prototype.writeValue=function(e){this.value=e,f.isPresent(this.gradientWrapper)&&this.updateUI()},C.prototype.registerOnChange=function(e){this.notifyNgChanged=e},C.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},C.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(C.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=h.parseColor(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),C.prototype.isEmpty=function(){return!1},C.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,o=n.width,n=n.height,t=f.fitIntoBounds(t,0,n),e=f.fitIntoBounds(e,0,o),i=(this.setDragHandleElementPosition(t,e),this.hsva.value);i.s=e/o,i.v=1-t/n,this.hsva.next(i),this.updateValues.next(h.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(h.getColorFromHSV(a.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},C.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},C.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},C.prototype.setAlphaSliderBackground=function(e){var t;f.isPresent(this.alphaSlider)&&(t=this.alphaSlider.track.nativeElement,this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")"))},C.prototype.setHostElementAriaLabel=function(){var e=h.parseColor(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},C.prototype.setBackgroundColor=function(e){this.renderer.setStyle(this.hsvRectangle.nativeElement,"background",e)},C.prototype.updateUI=function(){if(c.isDocumentAvailable()){if(this.hueSliderTouched||this.alphaSliderTouched)return this.hueSliderTouched=!1,void(this.alphaSliderTouched=!1);this.hsva.next(this.value?h.getHSV(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,e=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,e),this.backgroundColor=h.getColorFromHue(this.hsva.value.h),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},C.prototype.addEventListeners=function(){var a=this;this.ngZone.runOutsideAngular(function(){var e=a.renderer.listen(a.host.nativeElement,"focusout",function(e){!p.containsFocus(a.host.nativeElement,e.relatedTarget)&&p.isUntouched(a.host)&&a.ngZone.run(function(){return a.notifyNgTouched()})}),t=a.renderer.listen(a.gradientDragHandle.nativeElement,"keydown",function(e){a.onKeyboardAction(e)}),n=a.renderer.listen(a.gradientDragHandle.nativeElement,"keyup",function(){a.renderer.removeClass(a.gradientWrapper.nativeElement,"k-dragging"),a.readonly||a.disabled||a.ngZone.run(function(){return a.handleValueChange(h.getColorFromHSV(a.hsva.value,a.format,a.opacity))})}),o=a.renderer.listen(a.gradientDragHandle.nativeElement,"focusin",function(){a.renderer.addClass(a.gradientDragHandle.nativeElement,"k-state-focus")}),i=a.renderer.listen(a.gradientDragHandle.nativeElement,"focusout",function(){a.renderer.removeClass(a.gradientDragHandle.nativeElement,"k-state-focus")});a.listeners.push(e,t,n,o,i)})},C.prototype.subscribeChanges=function(){var t=this;this.changeRequestsSubscription=this.updateValues.pipe(l.throttleTime(this.delay)).subscribe(function(e){t.handleValueChange(e)})},C.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},a.__decorate([r.HostBinding("class.k-colorgradient"),a.__metadata("design:type",Boolean)],C.prototype,"hostClasses",void 0),a.__decorate([r.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],C.prototype,"readonlyAttribute",null),a.__decorate([r.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],C.prototype,"disabledClass",null),a.__decorate([r.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],C.prototype,"gradientId",null),a.__decorate([r.HostBinding("attr.dir"),a.__metadata("design:type",String)],C.prototype,"direction",void 0),a.__decorate([r.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],C.prototype,"hostTabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],C.prototype,"id",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],C.prototype,"opacity",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],C.prototype,"disabled",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],C.prototype,"readonly",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],C.prototype,"clearButton",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Number)],C.prototype,"delay",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],C.prototype,"value",null),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],C.prototype,"contrastTool",null),a.__decorate([r.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],C.prototype,"tabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],C.prototype,"format",void 0),a.__decorate([r.Output(),a.__metadata("design:type",r.EventEmitter)],C.prototype,"valueChange",void 0),a.__decorate([r.ViewChild("gradientDragHandle",{read:r.ElementRef,static:!1}),a.__metadata("design:type",r.ElementRef)],C.prototype,"gradientDragHandle",void 0),a.__decorate([r.ViewChild("inputs",{static:!1}),a.__metadata("design:type",_.ColorInputComponent)],C.prototype,"inputs",void 0),a.__decorate([r.ViewChild("alphaSlider",{static:!1}),a.__metadata("design:type",g.SliderComponent)],C.prototype,"alphaSlider",void 0),a.__decorate([r.ViewChild("gradientWrapper",{static:!1}),a.__metadata("design:type",r.ElementRef)],C.prototype,"gradientWrapper",void 0),a.__decorate([r.ViewChild("hsvRectangle",{static:!1}),a.__metadata("design:type",r.ElementRef)],C.prototype,"hsvRectangle",void 0),o=a.__decorate([r.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return o})},{provide:c.KendoInput,useExisting:r.forwardRef(function(){return o})},m.ColorGradientLocalizationService,{provide:d.LocalizationService,useExisting:m.ColorGradientLocalizationService},{provide:d.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" #hsvRectangle>\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [value]="hsva.value.h"\n [smallStep]="5"\n [largeStep]="10"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox"\n *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),a.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2,r.ChangeDetectorRef,d.LocalizationService])],C));function C(e,t,n,o,i){var a=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=o,this.localizationService=i,this.hostClasses=!0,this.id="k-colorgradient-"+b++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=v.DEFAULT_OUTPUT_FORMAT,this.valueChange=new r.EventEmitter,this.backgroundColor=v.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new s.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.hueSliderTouched=!1,this.alphaSliderTouched=!1,this.updateValues=new s.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},u.validatePackage(y.packageMetadata),this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}t.ColorGradientComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);o.__exportStar(n(95),t),o.__exportStar(n(94),t),o.__exportStar(n(93),t),o.__exportStar(n(92),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(96),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(2),n=n(44),a=(i=r.LocalizationService,o.__extends(s,i),s.prototype.get=function(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):i.prototype.get.call(this,e)},o.__decorate([o.__param(0,a.Inject(r.L10N_PREFIX)),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(2,a.Inject(r.RTL)),o.__param(3,a.Optional()),o.__param(3,a.Inject(n.ColorPickerLocalizationService)),o.__metadata("design:paramtypes",[String,r.MessageService,Boolean,n.ColorPickerLocalizationService])],s));function s(e,t,n,o){e=i.call(this,e,t,n)||this;return e.colorPickerLocalization=o,e}t.FlatColorPickerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(1),a=n(5),l=n(9),r=n(2),d=n(3),c=n(8),u=n(22),p=n(97),h=n(7),f=n(20),g=n(13),m=n(4),_=n(19),v=n(18),y=n(42),n=n(41),y=(o=b,Object.defineProperty(b.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return this._value},set:function(e){this._value=g.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),b.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},b.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},b.prototype.ngOnChanges=function(e){d.isChanged("value",e)&&(this.selection=this.value,this.setHostElementAriaLabel()),d.isChanged("paletteSettings",e)&&this.setSizingVariables()},b.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(b.prototype,"headerHasContent",{get:function(){return this.preview||1<this.views.length||this.clearButton},enumerable:!0,configurable:!0}),b.prototype.isEmpty=function(){return!1},b.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},b.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},b.prototype.reset=function(){m.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},b.prototype.onViewChange=function(e){var t=this;this.activeView!==e&&(this.activeView=e,this.activeViewChange.emit(e),"gradient"===this.activeView&&this.ngZone.runOutsideAngular(function(){setTimeout(function(){t.gradient.gradientDragHandle.nativeElement.focus()})}))},b.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},b.prototype.handleValueChange=function(e){this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e)},b.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},b.prototype.writeValue=function(e){this.value=e},b.prototype.registerOnChange=function(e){this.notifyNgChanged=e},b.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},b.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},b.prototype.resetSelection=function(e){e=new f.ColorPickerCancelEvent(e);this.cancel.emit(e),e.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},b.prototype.setHostElementAriaLabel=function(){var e=g.parseColor(this.value,this.format,this.gradientSettings.opacity),e=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},b.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),e="--kendo-color-preview-columns: "+this.paletteSettings.columns+";\n --kendo-color-preview-width: "+e.width+"px;\n --kendo-color-preview-height: "+e.height+"px;";this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack").setAttribute("style",e)},b.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},b.prototype.resetInnerComponentValue=function(){this.selection=null,(this.gradient||this.palette).reset()},b.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},b.prototype.setActiveView=function(){if(m.isPresent(this.activeView)){if(s.isDevMode()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]},b.prototype.initDomEvents=function(){var e,t=this;this.host&&(e=this.host.nativeElement,this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focus",function(){t.focused=!0})),t.subscriptions.add(t.renderer.listen(e,"blur",function(){t.focused=!1,t.notifyNgTouched()}))}))},i.__decorate([s.HostBinding("class.k-flatcolorpicker"),s.HostBinding("class.k-coloreditor"),i.__metadata("design:type",Boolean)],b.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("class.k-state-disabled"),s.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],b.prototype,"disabledClass",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],b.prototype,"ariaReadonly",null),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],b.prototype,"direction",void 0),i.__decorate([s.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],b.prototype,"hostTabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],b.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],b.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],b.prototype,"format",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],b.prototype,"value",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],b.prototype,"tabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],b.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],b.prototype,"preview",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],b.prototype,"actionsLayout",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],b.prototype,"activeView",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Array)],b.prototype,"views",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],b.prototype,"gradientSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],b.prototype,"paletteSettings",null),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],b.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],b.prototype,"cancel",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],b.prototype,"activeViewChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],b.prototype,"actionButtonClick",void 0),i.__decorate([s.ViewChild("header",{static:!1}),i.__metadata("design:type",y.FlatColorPickerHeaderComponent)],b.prototype,"header",void 0),i.__decorate([s.ViewChild("gradient",{static:!1}),i.__metadata("design:type",_.ColorGradientComponent)],b.prototype,"gradient",void 0),i.__decorate([s.ViewChild("palette",{static:!1}),i.__metadata("design:type",v.ColorPaletteComponent)],b.prototype,"palette",void 0),i.__decorate([s.ViewChild("footer",{static:!1}),i.__metadata("design:type",n.FlatColorPickerActionButtonsComponent)],b.prototype,"footer",void 0),o=i.__decorate([s.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:d.KendoInput,useExisting:s.forwardRef(function(){return o})},p.FlatColorPickerService,u.FlatColorPickerLocalizationService,{provide:r.LocalizationService,useExisting:u.FlatColorPickerLocalizationService},{provide:r.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),i.__metadata("design:paramtypes",[s.ElementRef,p.FlatColorPickerService,r.LocalizationService,s.ChangeDetectorRef,s.Renderer2,s.NgZone])],b));function b(e,t,n,o,i,a){var r=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=o,this.renderer=i,this.ngZone=a,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new s.EventEmitter,this.cancel=new s.EventEmitter,this.activeViewChange=new s.EventEmitter,this.actionButtonClick=new s.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new l.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},c.validatePackage(h.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}t.FlatColorPickerComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(51),n=n(75),a=(t.SHARED_DIRECTIVES=[a.InputSeparatorComponent,n.TextAreaDirective],o.__decorate([i.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES]})],r));function r(){}t.SharedModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=o.__decorate([n.Directive({selector:"[kendoTextBoxPrefixTemplate]"}),o.__param(0,n.Optional()),o.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.TextBoxPrefixTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=o.__decorate([n.Directive({selector:"[kendoTextBoxSuffixTemplate]"}),o.__param(0,n.Optional()),o.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.TextBoxSuffixTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(29),r=n(6),s=n(58),l=n(73),n=n(3),o=o.__decorate([i.NgModule({declarations:[s.LocalizedNumericTextBoxMessagesDirective,a.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],exports:[a.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],imports:[r.CommonModule,n.EventsModule]})],d);function d(){}t.NumericTextBoxModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(32),s=n(68),l=n(66),d=n(102),n=n(15),o=o.__decorate([i.NgModule({declarations:[r.SliderComponent,d.SliderCustomMessagesComponent,l.LocalizedSliderMessagesDirective],exports:[r.SliderComponent,d.SliderCustomMessagesComponent,n.LabelTemplateDirective,l.LocalizedSliderMessagesDirective],imports:[a.CommonModule,s.SlidersCommonModule]})],c);function c(){}t.SliderModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),l=n(1),d=n(3),c=n(4),a=n(11),r=n(31),s=n(111),u=n(110),p=n(5),h=n(109),f=n(2),g=n(8),m=n(7),_=n(74),v=n(108),y=n(107),b=n(30),C=["min","max","step","decimals"],k={decimals:null,max:null,min:null,step:1},n=(o=S,Object.defineProperty(S.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),S.prototype.ngOnInit=function(){var t=this;this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(p.NgControl,null),this.ngZone.runOutsideAngular(function(){t.domEvents.push(t.renderer.listen(t.hostElement.nativeElement,"mousewheel",t.handleWheel.bind(t))),t.domEvents.push(t.renderer.listen(t.hostElement.nativeElement,"DOMMouseScroll",t.handleWheel.bind(t)))})},S.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},S.prototype.ngOnChanges=function(t){d.anyChanged(C,t,!1)&&this.parseOptions(C.filter(function(e){return t[e]})),this.verifySettings(),d.anyChanged(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?u.createMinValidator(this.min):v.noop,this.maxValidateFn=this.rangeValidation?s.createMaxValidator(this.max):v.noop,this.ngValidatorChange()),d.anyChanged(["autoCorrect","decimals","min"],t)&&delete this.numericRegex,d.anyChanged(["value","format"],t,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},S.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})},S.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},S.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},S.prototype.writeValue=function(e){this.verifyValue(e);e=this.restrictModelValue(e);this.value=e,this.setInputValue()},S.prototype.registerOnChange=function(e){this.ngChange=e},S.prototype.registerOnTouched=function(e){this.ngTouched=e},S.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},S.prototype.focus=function(){a.invokeElementMethod(this.numericInput,"focus")},S.prototype.blur=function(){a.invokeElementMethod(this.numericInput,"blur")},S.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(S.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&0<=this.decimals},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),S.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||v.isRightClick(t)||(b.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,_.INITIAL_SPIN_DELAY):this.setInputValue())},S.prototype.updateValue=function(e){var t=this;c.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},S.prototype.replaceNumpadDotValue=function(){var e,t,n,o,i,a=this.inputValue||"";return this.previousSelection&&(t=(e=this.numericInput.nativeElement).selectionStart,n=e.selectionEnd,o=(i=this.previousSelection).start,i=i.end,e.value=a=a.substring(0,o)+this.decimalSeparator+a.substring(i),this.setSelection(t,n)),a},S.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=v.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},S.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){n.spin(e,_.SPIN_DELAY)},t),this.addStep(e)},S.prototype.addStep=function(e){e=r.add(this.value||0,this.step*e),e=this.limitValue(e);e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)},S.prototype.setSelection=function(e,t){this.focused&&a.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},S.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(v.isNumber(this.max)&&e>this.max&&(t=this.max),v.isNumber(this.min)&&e<this.min&&(t=this.min)),t},S.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,o=t.selectionEnd,t=t.value,i=e,a=!1;if(!this.isInRange(e)){var r=t.length-String(this.inputValue).length,s=this.min,l=this.max,d=v.isNumber(l),c=v.isNumber(s),u=void 0,p=void 0,h=e;if(0===n&&this.inputValue.substr(1)===t)return{selectionEnd:o,selectionStart:n,value:null};d&&l<e?0<e?p=!0:u=l:c&&e<s&&(0<e?u=s:p=!0),u?(d=this.tryPadValue(e,u))&&v.decimalPart(e)!==v.decimalPart(u)&&(h=d,a=!0):p&&this.inputValue&&n!==t.length&&(h=parseFloat(t.substr(0,n)+t.substr(n+r))),i=this.limitValue(h),a=(a||i!==h)&&this.previousSelection&&0<this.previousSelection.end-this.previousSelection.start+r}return{selectionEnd:a?String(i).length:o,selectionStart:n,value:i}},S.prototype.tryPadValue=function(e,t){var n,t=String(Math.floor(t)).length,o=v.pad(e,t),e=v.pad(e,t+1);return this.isInRange(o)?n=o:this.isInRange(e)&&(n=e),n},S.prototype.isInRange=function(e){return!v.isNumber(e)||(!v.isNumber(this.min)||this.min<=e)&&(!v.isNumber(this.max)||e<=this.max)},S.prototype.restrictModelValue=function(e){e=this.restrictDecimals(e,!0);return e=this.autoCorrect&&this.limitValue(e)!==e?null:e},S.prototype.restrictDecimals=function(e,t){var n,o,i=e;return e&&this.hasDecimals&&(n=this.decimals,o=String(e),t||_.EXPONENT_REGEX.test(o)?i=r.toFixedPrecision(e,n):(e=(t=o.split(_.POINT))[1])&&e.length>n&&(e=e.substr(0,n),i=parseFloat(""+t[0]+_.POINT+e))),i},S.prototype.formatInputValue=function(e){var t=String(e),n=_.EXPONENT_REGEX.exec(t);return(t=n?e.toFixed(r.limitPrecision(parseInt(n[1],10))):t).replace(_.POINT,this.decimalSeparator)},S.prototype.formatValue=function(e,t){return null!==e&&v.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},S.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);e=this.formatValue(e,t);this.elementValue=e,this.inputValue=e},S.prototype.verifySettings=function(){if(l.isDevMode()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+_.MIN_DOC_LINK+" and "+_.MAX_DOC_LINK+".")},S.prototype.verifyValue=function(e){if(l.isDevMode()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},S.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],o=this[n];if("string"==typeof o){var i=parseFloat(o),a=!isNaN(i);if(l.isDevMode()&&!a&&""!==o)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(o)+" was set.");this[n]=a?i:k[n]}}},S.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},S.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused)return(e=e.split(this.decimalSeparator)[1])&&e.length>this.decimals&&e.lastIndexOf("0")===e.length-1},S.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},S.prototype.selectCaret=function(){var e=v.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,e=t.substring(0,e);this.setInputValue(),e.length?(e=v.extractSignificantNumericChars(e,this.decimalSeparator),t=this.adjustSignificantChars(t,e),this.setSelection(t,t)):this.setSelection(0,0)},S.prototype.numberOfLeadingZeroes=function(e){var t,n=e.indexOf(this.decimalSeparator),e=e.match(/^[^1-9]*?(0+)/);return e?(t=e[0].length,e=e[1].length,t===n?e-1:e):0},S.prototype.adjustSignificantChars=function(e,t){e=this.numberOfLeadingZeroes(e);return 0<e?Math.max(0,t-e):t},S.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=c.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"autoCorrect",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],S.prototype,"format",null),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"max",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"min",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"decimals",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"placeholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"step",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"spinners",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"rangeValidation",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],S.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"changeValueOnScroll",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"selectOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"maxlength",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],S.prototype,"size",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],S.prototype,"rounded",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],S.prototype,"fillMode",null),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],S.prototype,"valueChange",void 0),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],S.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],S.prototype,"onBlur",void 0),i.__decorate([l.ViewChild("numericInput",{static:!0}),i.__metadata("design:type",l.ElementRef)],S.prototype,"numericInput",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],S.prototype,"direction",void 0),i.__decorate([l.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],S.prototype,"disableClass",null),i.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-numerictextbox"),i.__metadata("design:type",Boolean)],S.prototype,"hostClasses",void 0),o=i.__decorate([l.Component({exportAs:"kendoNumericTextBox",providers:[f.LocalizationService,{provide:f.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:p.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:p.NG_VALIDATORS,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[h.IntlService,l.Renderer2,f.LocalizationService,l.Injector,l.NgZone,l.ChangeDetectorRef,l.ElementRef])],S));function S(e,t,n,o,i,a,r){var s=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=o,this.ngZone=i,this.changeDetector=a,this.hostElement=r,this.focusableId="k-"+d.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.ArrowDirection=y.ArrowDirection,this.arrowDirection=y.ArrowDirection.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=v.noop,this.maxValidateFn=v.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=v.noop,this.ngTouched=v.noop,this.ngValidatorChange=v.noop,this.domEvents=[],this.increasePress=function(e){s.arrowPress(y.ArrowDirection.Up,e)},this.decreasePress=function(e){s.arrowPress(y.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(s.spinTimeout),s.arrowDirection!==y.ArrowDirection.None&&(s.arrowDirection=y.ArrowDirection.None,s.changeDetector.detectChanges())},this.handlePaste=function(){s.isPasted=!0},this.handleInput=function(){var e=s.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,o=e.value;if(s.pressedKey===d.Keys.NumpadDecimal&&(o=s.replaceNumpadDotValue()),s.isPasted&&(o=s.formatInputValue(s.intl.parseNumber(o))),!s.isValid(o))return e.value=s.inputValue,void s.setSelection(t-1,n-1);var i,a=s.intl.parseNumber(o),r=s.restrictDecimals(a);s.autoCorrect&&(r=(i=s.limitInputValue(r)).value,t=i.selectionStart,n=i.selectionEnd),a!==r||s.hasTrailingZeros(o)||!s.focused?(s.setInputValue(r),s.setSelection(t,n)):s.inputValue=o,s.isPasted&&(e.value=s.inputValue),s.updateValue(r),s.previousSelection=null,s.isPasted=!1},this.handleDragEnter=function(){s.focused||s.isDisabled||s.setInputValue(s.value,!0)},this.handleMouseDown=function(){s.mouseDown=!0},this.handleFocus=function(){var e;s.focused||(s.focused=!0,s.isDisabled)||(e=s.selectOnFocus||!s.mouseDown,s.ngZone.runOutsideAngular(function(){setTimeout(function(){e?s.selectAll():s.selectCaret()},0)})),s.mouseDown=!1,d.hasObservers(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.inputValue!==s.elementValue&&s.handleInput(),s.setInputValue(),(d.hasObservers(s.onBlur)||c.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.ngTouched(),s.onBlur.emit()})},this.handleKeyDown=function(e){var t;s.isDisabled||(e.keyCode===d.Keys.ArrowDown?t=-1:e.keyCode===d.Keys.ArrowUp&&(t=1),t&&s.step&&(e.preventDefault(),s.addStep(t)),t=s.numericInput.nativeElement,s.previousSelection={end:t.selectionEnd,start:t.selectionStart},s.pressedKey=e.keyCode)},this.handleWheel=function(e){s.focused&&!s.isDisabled&&s.changeValueOnScroll&&(e.preventDefault(),e=v.getDeltaFromMouseWheel(e),s.addStep(e))},g.validatePackage(m.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}t.NumericTextBoxComponent=n},function(e,t){e.exports=g},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.limitPrecision=function(e){return Math.min(e,20)},o.fractionLength=function(e){return(String(e).split(".")[1]||"").length};function i(e,t){return Math.max(o.fractionLength(e),o.fractionLength(t))}o.toFixedPrecision=function(e,t){t=o.limitPrecision(t);return parseFloat(e.toFixed(t))},o.add=function(e,t){var n=i(e,t);return o.toFixedPrecision(e+t,n)},o.subtract=function(e,t){return o.add(e,-t)},o.multiply=function(e,t){var n=o.fractionLength(e)+o.fractionLength(t);return o.toFixedPrecision(e*t,n)},o.divide=function(e,t){if(0===t)return NaN;var n=i(e,t),n=Math.pow(10,n);return n*e/(n*t)},o.remainder=function(e,t){return Math.abs(o.subtract(e,o.multiply(t,Math.floor(o.divide(e,t)))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(0),a=n(1),r=n(5),l=n(9),d=n(12),c=n(10),u=n(113),p=n(2),h=n(4),f=n(10),g=n(11),m=n(3),n=(s=n(79).SliderBase,i.__extends(_,s),o=_,Object.defineProperty(_.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"currentValue",{get:function(){return h.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),_.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},_.prototype.blur=function(){this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},_.prototype.ngOnChanges=function(e){var t=this;m.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t.sizeComponent(!1)})},_.prototype.ngAfterViewInit=function(){var e=this;m.isDocumentAvailable()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,function(){return e.increaseValue()}),this.setValueChangeInterval(this.decreaseButton.nativeElement,function(){return e.decreaseValue()})),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent(!1)}),this.attachElementEventHandlers())},_.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(_.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),_.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},_.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(f.eventValue(e,this.track.nativeElement,this.getProps()))},_.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},_.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},_.prototype.registerOnChange=function(e){this.ngChange=e},_.prototype.registerOnTouched=function(e){this.ngTouched=e},_.prototype.changeValue=function(e){var t=this;h.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()})},_.prototype.sizeComponent=function(e){var t,n,o,i,a;m.isDocumentAvailable()&&(t=this.wrapper.nativeElement,n=this.track.nativeElement,o=this.sliderSelection.nativeElement,i=this.draghandle.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null,e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,o,i,a,this.hostElement.nativeElement]),a=this.getProps(),(a=new u.SliderModel(a,t,n,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(i),a.positionSelection(o),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(_.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e&&this.sliderSelection&&this.draghandle&&(t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement,e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e)},enumerable:!0,configurable:!0}),_.prototype.setValueChangeInterval=function(o,i){var a=this;this.ngZone.runOutsideAngular(function(){var e=l.fromEvent(o,"mousedown"),t=l.fromEvent(o,"mouseup"),n=l.fromEvent(o,"mouseout"),e=e.pipe(d.filter(function(e){return 0===e.button&&!a.isDisabled}),d.concatMap(function(){return l.interval(150).pipe(d.startWith(-1),d.takeUntil(l.merge(t,n)))})).subscribe(function(){a.isFocused||g.invokeElementMethod(a.draghandle,"focus"),i()});a.subscriptions.add(e)})},_.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:c.trimValue(this.max,this.min,this.value),vertical:this.vertical}},_.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandle.nativeElement&&t.handleBlur(),n=!1):o||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){o=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){o=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===m.Keys.Tab}))})},i.__decorate([a.Input(),i.__metadata("design:type",String)],_.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],_.prototype,"dragHandleTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],_.prototype,"incrementTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],_.prototype,"animate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],_.prototype,"decrementTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],_.prototype,"showButtons",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],_.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],_.prototype,"tabIndex",null),i.__decorate([a.ViewChild("draghandle",{static:!0}),i.__metadata("design:type",a.ElementRef)],_.prototype,"draghandle",void 0),i.__decorate([a.ViewChild("decreaseButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"decreaseButton",void 0),i.__decorate([a.ViewChild("increaseButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"increaseButton",void 0),o=i.__decorate([a.Component({exportAs:"kendoSlider",providers:[p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return o})},{provide:m.KendoInput,useExisting:a.forwardRef(function(){return o})}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[p.LocalizationService,a.Injector,a.Renderer2,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],_));function _(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=o,r.changeDetector=i,r.hostElement=a,r.focusableId="k-"+m.guid(),r.animate=!0,r.showButtons=!0,r.value=r.min,r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t=e.target;r.isDisabled||f.isButton(t)||f.isButton(t.parentNode)||(t=f.eventValue(e,r.track.nativeElement,r.getProps()),r.changeValue(t)),g.invokeElementMethod(r.draghandle,"focus")},r.onKeyDown=function(e){var t=r.getProps(),n=t.max,o=t.min,i=r.keyBinding[e.keyCode];!r.isDisabled&&i&&(i=i(t),r.changeValue(c.trimValue(n,o,i)),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.decreaseValue=function(){r.changeValue(f.decreaseValueToStep(r.value,r.getProps()))},r.increaseValue=function(){r.changeValue(f.increaseValueToStep(r.value,r.getProps()))},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(m.hasObservers(r.onBlur)||h.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}t.SliderComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(5),r=n(9),s=n(3),l=n(2),d=n(8),c=n(7),u=n(17),n=n(16),u=(Object.defineProperty(p.prototype,"errorClass",{get:function(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"disabledClass",{get:function(){return!!this.control&&!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),p.prototype.ngAfterViewInit=function(){this.setDescription()},p.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},p.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},p.prototype.disabledControl=function(){return this.control.disabled},p.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every(function(e){return e.nativeElement.hasAttribute("disabled")})},p.prototype.validateFormControl=function(e){if(i.isDevMode()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},p.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every(function(e){return e.name===n&&t.isRadioControl(e)})},p.prototype.isRadioControl=function(e){return e.valueAccessor instanceof a.RadioControlValueAccessor},p.prototype.updateDescription=function(){var n=this,e=this.findControlElements();e&&e.forEach(function(e){var t;(0<n.errorChildren.length||0<n.hintChildren.length)&&(t=n.generateDescriptionIds(e),n.renderer.setAttribute(e,"aria-describedby",t))})},p.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&s.isDocumentAvailable()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map(function(e){return e.nativeElement})},p.prototype.generateDescriptionIds=function(e){var t=new Set;return e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach(function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}),this.hintChildren.forEach(function(e){t.add(e.id)}),this.errorChildren.forEach(function(e){t.add(e.id)}),Array.from(t).join(" ")},p.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,e=e.pristine;return t||n&&e},p.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},p.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe(function(){return e.updateDescription()})),this.subscriptions.add(this.hintChildren.changes.subscribe(function(){return e.updateDescription()}))},o.__decorate([i.HostBinding("class.k-form-field"),o.__metadata("design:type",Boolean)],p.prototype,"hostClass",void 0),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],p.prototype,"direction",void 0),o.__decorate([i.HostBinding("class.k-form-field-error"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],p.prototype,"errorClass",null),o.__decorate([i.HostBinding("class.k-form-field-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],p.prototype,"disabledClass",null),o.__decorate([i.ContentChildren(a.NgControl,{descendants:!0}),o.__metadata("design:type",i.QueryList),o.__metadata("design:paramtypes",[i.QueryList])],p.prototype,"formControls",null),o.__decorate([i.ContentChildren(a.NgControl,{read:i.ElementRef,descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"controlElementRefs",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!0}),o.__metadata("design:type",Object)],p.prototype,"kendoInput",void 0),o.__decorate([i.ContentChildren(u.ErrorComponent,{descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"errorChildren",void 0),o.__decorate([i.ContentChildren(n.HintComponent,{descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"hintChildren",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"showHints",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"orientation",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"showErrors",void 0),o.__decorate([i.Component({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.formfield"}]}),o.__metadata("design:paramtypes",[i.Renderer2,l.LocalizationService,i.ElementRef])],p));function p(e,t,n){var o=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new r.Subscription,this.rtl=!1,d.validatePackage(c.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;o.rtl=e,o.direction=o.rtl?"rtl":"ltr"}))}t.FormFieldComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(33),s=n(16),n=n(17),o=o.__decorate([i.NgModule({declarations:[s.HintComponent,n.ErrorComponent,r.FormFieldComponent],exports:[s.HintComponent,n.ErrorComponent,r.FormFieldComponent],imports:[a.CommonModule]})],l);function l(){}t.FormFieldModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(8),r=n(4),s=n(7),n=(Object.defineProperty(l.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),l.prototype.ngAfterViewInit=function(){var t=this;["size"].forEach(function(e){t.handleClasses(t[e],e)})},l.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=r.getStylingClasses("radio",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},o.__decorate([i.HostBinding("class.k-radio"),o.__metadata("design:type",Boolean)],l.prototype,"kendoClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],l.prototype,"size",null),o.__decorate([i.Directive({selector:"input[kendoRadioButton]"}),o.__metadata("design:paramtypes",[i.Renderer2,i.ElementRef])],l));function l(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",a.validatePackage(s.packageMetadata)}t.RadioButtonDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(35),n=n(6),o=o.__decorate([i.NgModule({declarations:[a.RadioButtonDirective],exports:[a.RadioButtonDirective],imports:[n.CommonModule]})],r);function r(){}t.RadioButtonModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(4),n=(Object.defineProperty(r.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),r.prototype.ngAfterViewInit=function(){var t=this;["size","rounded"].forEach(function(e){t.handleClasses(t[e],e)})},r.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=a.getStylingClasses("checkbox",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},o.__decorate([i.HostBinding("class.k-checkbox"),o.__metadata("design:type",Boolean)],r.prototype,"kendoClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"rounded",null),o.__decorate([i.Directive({selector:"input[kendoCheckBox]"}),o.__metadata("design:paramtypes",[i.Renderer2,i.ElementRef])],r));function r(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}t.CheckBoxDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(37),n=n(6),o=o.__decorate([i.NgModule({declarations:[a.CheckBoxDirective],exports:[a.CheckBoxDirective],imports:[n.CommonModule]})],r);function r(){}t.CheckBoxModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(40),n=(o=n.ColorPickerMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.ColorPickerMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedColorPickerMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"colorPaletteNoColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"colorGradientNoColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"flatColorPickerNoColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"colorPickerNoColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"colorGradientHandle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"clearButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"hueSliderHandle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"opacitySliderHandle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"hexInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"redInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"greenInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"blueInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"alphaInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"passContrast",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"failContrast",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"contrastRatio",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"previewColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"revertSelection",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"gradientView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"paletteView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"formatButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"applyButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"cancelButton",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.ColorPickerMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),n=n(2),o=(a.prototype.getText=function(e){return this.localizationService.get(e)},a.prototype.onActionButtonClick=function(e,t){this.actionButtonClick.emit({target:e,originalEvent:t})},o.__decorate([i.HostBinding("class.k-coloreditor-footer"),i.HostBinding("class.k-actions"),i.HostBinding("class.k-hstack"),o.__metadata("design:type",Boolean)],a.prototype,"hostClasses",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"actionButtonClick",void 0),o.__decorate([i.ViewChild("last",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],a.prototype,"lastButton",void 0),o.__decorate([i.Component({selector:"[kendoFlatColorPickerActionButtons]",template:'\n <button\n class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"\n [attr.title]="getText(\'cancelButton\')"\n (click)="onActionButtonClick(\'cancel\', $event)"\n type="button"\n >{{getText(\'cancelButton\')}}</button>\n <button #last\n class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"\n [attr.title]="getText(\'applyButton\')"\n (click)="onActionButtonClick(\'apply\', $event)"\n type="button"\n >{{getText(\'applyButton\')}}</button>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService])],a));function a(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new i.EventEmitter}t.FlatColorPickerActionButtonsComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),n=n(2),o=(a.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(a.prototype,"viewButtons",{get:function(){return this.views&&0<=this.views.indexOf("gradient")&&0<=this.views.indexOf("palette")},enumerable:!0,configurable:!0}),a.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},a.prototype.getText=function(e){return this.localizationService.get(e)},o.__decorate([i.HostBinding("class.k-coloreditor-header"),i.HostBinding("class.k-hstack"),o.__metadata("design:type",Boolean)],a.prototype,"hostClasses",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],a.prototype,"clearButton",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],a.prototype,"activeView",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Array)],a.prototype,"views",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],a.prototype,"preview",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],a.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],a.prototype,"selection",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"viewChange",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"valuePaneClick",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"clearButtonClick",void 0),o.__decorate([i.ViewChildren("viewButtons",{read:i.ElementRef}),o.__metadata("design:type",i.QueryList)],a.prototype,"viewButtonsCollection",void 0),o.__decorate([i.ViewChild("clearButton",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],a.prototype,"clearButtonElement",void 0),o.__decorate([i.Component({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n type="button"\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n type="button"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService])],a));function a(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new i.EventEmitter,this.valuePaneClick=new i.EventEmitter,this.clearButtonClick=new i.EventEmitter}t.FlatColorPickerHeaderComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(13),r=n(4),s=n(3),l=n(9),d=n(2),n=n(29),n=(Object.defineProperty(c.prototype,"isFocused",{get:function(){if(!s.isDocumentAvailable()||!r.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rgbaInputValid",{get:function(){var t=this;return Object.keys(this.rgba).every(function(e){return r.isPresent(t.rgba[e])})},enumerable:!0,configurable:!0}),c.prototype.ngAfterViewInit=function(){this.initDomEvents()},c.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},c.prototype.ngOnChanges=function(e){r.isPresent(e.value)&&!this.isFocused&&(this.hex=a.parseColor(this.value,"hex",this.opacity),this.rgba=a.getRGBA(this.value),this.rgba.a=a.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(c.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),c.prototype.handleRgbaValueChange=function(){var e=a.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=a.getRGBA(this.value),this.hex=a.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},c.prototype.handleHexValueChange=function(e){this.hex=e;e=a.parseColor(e,"rgba",this.opacity);r.isPresent(e)&&e!==this.value&&(this.value=e,this.rgba=a.getRGBA(e),this.valueChange.emit(e))},c.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=a.getRGBA(this.value))},c.prototype.handleHexInputBlur=function(){this.hex=a.parseColor(this.value,"hex",this.opacity)},c.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},c.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",function(){return e.toggleFormatView()}))},o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"focusableId",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"formatView",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"opacity",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"disabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"readonly",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"valueChange",void 0),o.__decorate([i.HostBinding("class.k-colorgradient-inputs"),i.HostBinding("class.k-hstack"),o.__metadata("design:type",Boolean)],c.prototype,"colorInputClass",void 0),o.__decorate([i.ViewChild("opacityInput",{static:!1}),o.__metadata("design:type",n.NumericTextBoxComponent)],c.prototype,"opacityInput",void 0),o.__decorate([i.ViewChild("hexInput",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"hexInput",void 0),o.__decorate([i.ViewChild("blueInput",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"blueInput",void 0),o.__decorate([i.ViewChild("toggleFormatButton",{static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"toggleFormatButton",void 0),o.__decorate([i.Component({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n type="button"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,d.LocalizationService])],c));function c(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+s.guid(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new i.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new l.Subscription}t.ColorInputComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=n(2),a=(o=n.LocalizationService,i.__extends(r,o),i.__decorate([i.__param(0,a.Inject(n.L10N_PREFIX)),i.__param(1,a.Optional()),i.__param(2,a.Optional()),i.__param(2,a.Inject(n.RTL)),i.__metadata("design:paramtypes",[String,n.MessageService,Boolean])],r));function r(e,t,n){return o.call(this,e,t,n)||this}t.ColorPickerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(12),s=n(1),r=n(5),l=n(9),d=n(23),c=n(46),u=n(8),p=n(3),h=n(2),f=n(7),g=n(21),m=n(20),_=n(13),v=n(4),y=n(44),b=n(14),C=["focus","blur"],n=(o=k,Object.defineProperty(k.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"view",{get:function(){return this.views&&0<this.views.length?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"value",{get:function(){return this._value},set:function(e){this._value=_.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"isOpen",{get:function(){return v.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"iconStyles",{get:function(){return this.iconClass||(this.icon?"k-icon k-i-"+this.icon:void 0)},enumerable:!0,configurable:!0}),k.prototype.ngOnInit=function(){var e="name"!==this.format?b.DEFAULT_PRESET:b.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&g.PALETTEPRESETS[t]?g.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},k.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)}),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},k.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=_.parseColor(this.value,this.format,this.gradientSettings.opacity)),p.isChanged("value",e)&&this.setHostElementAriaLabel()},k.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",C)},k.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},k.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},k.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),p.closest(e.target,function(e){return e===t.activeColor.nativeElement}))return e=new m.ActiveColorClickEvent(this.value),this.activeColorClick.emit(e),void(e.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen));this.toggleWithEvents(!this.isOpen)}},k.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},k.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run(function(){e.focus(),e.onFocus.emit()})},k.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},k.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run(function(){e.onBlur.emit(),e.isFocused=!1})},k.prototype.reset=function(){v.isPresent(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},k.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=v.isPresent(e)?e:!this.isOpen)&&this.openPopup())},k.prototype.handleValueChange=function(e){e=_.parseColor(e,this.format,this.gradientSettings.opacity);e!==this.value&&(this.value=e,this.valueChange.emit(e),this.setHostElementAriaLabel(),this.notifyNgChanged(e))},k.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},k.prototype.writeValue=function(e){this.value=e},k.prototype.registerOnChange=function(e){this.notifyNgChanged=e},k.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},k.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},k.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==p.Keys.ArrowDown&&e.keyCode!==p.Keys.Enter||(e.preventDefault(),this.ngZone.run(function(){t.toggleWithEvents(!0)}))},k.prototype.handlePopupKeyDown=function(e){var t,n;e.keyCode===p.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===p.Keys.Tab&&(t=(e.shiftKey?this.firstFocusableElement:this.lastFocusableElement).nativeElement,n=(e.shiftKey?this.lastFocusableElement:this.firstFocusableElement).nativeElement,e.target===t&&(e.preventDefault(),n.focus()))},k.prototype.isEmpty=function(){return!1},k.prototype.setHostElementAriaLabel=function(){var e=""+(this.value||this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},k.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,t=v.getStylingClasses("picker",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},k.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return p.closest(e.relatedTarget,function(e){return e===t.host.nativeElement})||n},k.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new m.ColorPickerOpenEvent,this.open.emit(t)):(t=new m.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},k.prototype.focusFirstElement=function(){var t=this;this.ngZone.onStable.pipe(a.take(1)).subscribe(function(){var e;t.flatColorPicker&&((e=t.flatColorPicker.gradient)?e.gradientDragHandle:t.flatColorPicker.palette.host).nativeElement.focus()})},k.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"},popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})})},k.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(k.prototype,"firstFocusableElement",{get:function(){var e;return!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton?(e=this.flatColorPicker.gradient)?e.gradientDragHandle:this.flatColorPicker.palette.host:1<this.views.length?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"lastFocusableElement",{get:function(){if(this.preview)return this.flatColorPicker.footer.lastButton;if(this.flatColorPicker.palette)return this.flatColorPicker.palette.host;var e=this.flatColorPicker.gradient,t=e&&e.inputs;return e&&t&&"hex"===t.formatView?t.hexInput:this.gradientSettings.opacity?t.opacityInput.numericInput:t.blueInput},enumerable:!0,configurable:!0}),k.prototype.handleDomEvents=function(t,e){var n=this,o=this.host.nativeElement;e.forEach(function(e){return o[t+"EventListener"](e,n.domFocusListener,!0)})},k.prototype.initDomEvents=function(){var e,n=this;this.host&&(e=this.host.nativeElement,this.ngZone.runOutsideAngular(function(){n.subscriptions.add(n.renderer.listen(e,"focusin",function(){n.handleWrapperFocus()})),n.subscriptions.add(n.renderer.listen(e,"focusout",function(e){var t=!!n.popupRef&&p.closest(e.relatedTarget,function(e){return e===n.flatColorPicker.host.nativeElement}),e=p.closest(e.relatedTarget,function(e){return e===n.host.nativeElement});t||e||n.handleWrapperBlur()})),n.handleDomEvents("add",C),n.subscriptions.add(n.renderer.listen(e,"keydown",function(e){n.handleWrapperKeyDown(e)})),n.subscriptions.add(n.renderer.listen(e,"click",function(e){n.ngZone.run(function(){n.handleWrapperClick(e)})}))}))},k.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");t?this.focusableId=t:(t="k-"+p.guid(),e.setAttribute("id",t),this.focusableId=t)},i.__decorate([s.HostBinding("class.k-colorpicker"),s.HostBinding("class.k-icon-picker"),s.HostBinding("class.k-picker"),i.__metadata("design:type",Boolean)],k.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],k.prototype,"focusedClass",null),i.__decorate([s.HostBinding("attr.aria-disabled"),s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],k.prototype,"disabledClass",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],k.prototype,"ariaReadonly",null),i.__decorate([s.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],k.prototype,"ariaExpanded",null),i.__decorate([s.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],k.prototype,"hostTabindex",null),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],k.prototype,"direction",void 0),i.__decorate([s.HostBinding("attr.role"),i.__metadata("design:type",String)],k.prototype,"role",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Array)],k.prototype,"views",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"view",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],k.prototype,"activeView",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],k.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],k.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],k.prototype,"format",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"value",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],k.prototype,"popupSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],k.prototype,"paletteSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],k.prototype,"gradientSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],k.prototype,"icon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],k.prototype,"iconClass",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],k.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],k.prototype,"tabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],k.prototype,"preview",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],k.prototype,"actionsLayout",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"rounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"fillMode",null),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"open",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"close",void 0),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],k.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],k.prototype,"onBlur",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"cancel",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"activeColorClick",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"activeViewChange",void 0),i.__decorate([s.ViewChild("container",{read:s.ViewContainerRef,static:!0}),i.__metadata("design:type",s.ViewContainerRef)],k.prototype,"container",void 0),i.__decorate([s.ViewChild("activeColor",{static:!0}),i.__metadata("design:type",s.ElementRef)],k.prototype,"activeColor",void 0),i.__decorate([s.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",s.TemplateRef)],k.prototype,"popupTemplate",void 0),i.__decorate([s.ViewChild("flatColorPicker",{static:!1}),i.__metadata("design:type",d.FlatColorPickerComponent)],k.prototype,"flatColorPicker",void 0),o=i.__decorate([s.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:p.KendoInput,useExisting:s.forwardRef(function(){return o})},y.ColorPickerLocalizationService,{provide:h.LocalizationService,useExisting:y.ColorPickerLocalizationService},{provide:h.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n tabindex="-1"\n type="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[s.ElementRef,c.PopupService,s.ChangeDetectorRef,h.LocalizationService,s.NgZone,s.Renderer2])],k));function k(e,t,n,o,i,a){var r=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=o,this.ngZone=i,this.renderer=a,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new s.EventEmitter,this.open=new s.EventEmitter,this.close=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.cancel=new s.EventEmitter,this.activeColorClick=new s.EventEmitter,this.activeViewChange=new s.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new l.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},u.validatePackage(f.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}t.ColorPickerComponent=n},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(46),s=n(3),l=n(28),d=n(27),c=n(45),u=n(18),p=n(19),h=n(43),f=n(42),g=n(41),m=n(23),_=n(85),v=n(39),y=n(84),b=n(83),C=n(82),n=n(81),c=[c.ColorPickerComponent,u.ColorPaletteComponent,p.ColorGradientComponent,m.FlatColorPickerComponent,v.LocalizedColorPickerMessagesDirective,_.ColorPickerCustomMessagesComponent],u=[h.ColorInputComponent,y.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,g.FlatColorPickerActionButtonsComponent,n.ColorContrastSvgComponent],p=o.__decorate([i.NgModule({declarations:[c,u],exports:[c],imports:[l.SliderModule,d.NumericTextBoxModule,a.CommonModule,r.PopupModule,s.DraggableModule]})],k);function k(){}t.ColorPickerModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=(o.__decorate([n.HostBinding("class.k-input-suffix"),o.__metadata("design:type",Boolean)],i.prototype,"hostClass",void 0),o.__decorate([n.Component({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],i));function i(){this.hostClass=!0}t.TextAreaSuffixComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(0),l=n(1),a=n(9),r=n(12),d=n(5),c=n(3),u=n(2),p=n(98),h=n(4),f=n(11),g=n(11),m=n(8),_=n(7),v={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},n=(s=p.TextFieldsBase,i.__extends(y,s),o=y,Object.defineProperty(y.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),y.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(o?(g.closest(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),o=!1):n||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){o=e.keyCode===c.Keys.Tab})),t.handleFlow()}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},y.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(d.NgControl,null),c.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=a.fromEvent(window,"resize").pipe(r.debounceTime(50)).subscribe(function(){return t.resize()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},y.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?(this.renderer.removeClass(n,"!k-overflow-y-auto"),this.initialHeight=n.offsetHeight):(this.renderer.addClass(n,"!k-overflow-y-auto"),n.style.height=this.initialHeight+"px")),e.cols&&(h.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},y.prototype.ngAfterViewChecked=function(){this.resize()},y.prototype.writeValue=function(e){this.value=e},y.prototype.registerOnChange=function(e){this.ngChange=e},y.prototype.registerOnTouched=function(e){this.ngTouched=e},y.prototype.updateValue=function(e){var t=this;h.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},y.prototype.ngOnDestroy=function(){s.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(y.prototype,"resizableClass",{get:function(){return v[this.resizable]},enumerable:!0,configurable:!0}),y.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},y.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},y.prototype.resize=function(){var e,t;"auto"===this.resizable&&(e=this.input.nativeElement,this.renderer.setStyle(e,"height",this.initialHeight+"px"),(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Object.defineProperty(y.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e)},enumerable:!0,configurable:!0}),y.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},y.prototype.setSelection=function(e,t){this.isFocused&&f.invokeElementMethod(this.input,"setSelectionRange",e,t)},y.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},y.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=h.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},y.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,t=t.children[1];this.renderer[e?"addClass":"removeClass"](n,"!k-flex-none"),t&&this.renderer[e?"removeClass":"addClass"](t,"!k-align-items-start")},i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"focusableId",void 0),i.__decorate([l.HostBinding("class.k-textarea"),l.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],y.prototype,"hostClasses",void 0),i.__decorate([l.HostBinding("class.!k-flex-col"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],y.prototype,"flowCol",null),i.__decorate([l.HostBinding("class.!k-flex-row"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],y.prototype,"flowRow",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"flow",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"rows",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"cols",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"maxlength",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],y.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"resizable",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],y.prototype,"size",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],y.prototype,"rounded",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],y.prototype,"fillMode",null),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],y.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],y.prototype,"onBlur",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],y.prototype,"valueChange",void 0),o=i.__decorate([l.Component({exportAs:"kendoTextArea",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.textarea"},{provide:d.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:c.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n '}),i.__metadata("design:paramtypes",[u.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],y));function y(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localizationService=e,r.ngZone=t,r.changeDetector=n,r.renderer=o,r.injector=i,r.hostElement=a,r.focusableId="k-"+c.guid(),r.hostClasses=!0,r.flow="vertical",r.tabindex=0,r.resizable="vertical",r.onFocus=new l.EventEmitter,r.onBlur=new l.EventEmitter,r.valueChange=new l.EventEmitter,r._size="medium",r._rounded="medium",r._fillMode="solid",r.handleInput=function(e){e=e.target.value;r.updateValue(e),r.resize()},r.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),c.hasObservers(r.onFocus)&&!r.isFocused&&r.ngZone.run(function(){r.onFocus.emit()}),c.hasObservers(r.inputFocus)&&!r.focusChangedProgrammatically&&r.ngZone.run(function(){r.inputFocus.emit()}),r.ngZone.run(function(){r.isFocused=!0}))},m.validatePackage(_.packageMetadata),r.direction=e.rtl?"rtl":"ltr",r}t.TextAreaComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(49),s=n(3),l=n(48),n=n(24),o=o.__decorate([i.NgModule({declarations:[r.TextAreaComponent,l.TextAreaSuffixComponent],exports:[r.TextAreaComponent,s.EventsModule,l.TextAreaSuffixComponent,n.SHARED_DIRECTIVES],imports:[a.CommonModule,s.EventsModule,n.SharedModule]})],d);function d(){}t.TextAreaModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=(o.__decorate([n.HostBinding("class.k-input-separator"),o.__metadata("design:type",Boolean)],i.prototype,"hostClass",void 0),o.__decorate([n.Component({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],i));function i(){this.hostClass=!0}t.InputSeparatorComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(53),n=(o=n.TextBoxMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.TextBoxMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoTextBoxLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedTextBoxMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"clear",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.TextBoxMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(30);t.isSafari=function(e){var t=o.detectDesktopBrowser(e),e=o.detectMobileOS(e);return t&&t.safari||e&&"mobilesafari"===e.browser},t.isJapanese=function(e){return/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(54),a=n(11),r=n(5),l=n(1),d=n(8),c=n(7),u=n(11),p=n(4),h=n(3),f=n(26),g=n(25),m=n(2),_=n(54),n=(o=v,Object.defineProperty(v.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),v.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(r.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},v.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(o?(a.closest(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),o=!1):n||t.clearButtonClicked||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){o=e.keyCode===h.Keys.Tab}))}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},v.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},v.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},v.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},v.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},v.prototype.clearTitle=function(){return this.localizationService.get("clear")},v.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},v.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},v.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},v.prototype.registerOnChange=function(e){this.ngChange=e},v.prototype.registerOnTouched=function(e){this.ngTouched=e},v.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},v.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},v.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,e=e.touched;return t&&(n||e)},Object.defineProperty(v.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon||"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),v.prototype.setSelection=function(e,t){this.isFocused&&u.invokeElementMethod(this.input,"setSelectionRange",e,t)},v.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},v.prototype.updateValue=function(e){var t=this;p.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()})},Object.defineProperty(v.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e)},enumerable:!0,configurable:!0}),v.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},v.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=p.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],v.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],v.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],v.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],v.prototype,"selectOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object)],v.prototype,"showSuccessIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object)],v.prototype,"showErrorIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],v.prototype,"clearButton",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"successIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"errorIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"clearButtonIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],v.prototype,"size",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],v.prototype,"rounded",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],v.prototype,"fillMode",null),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],v.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"placeholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],v.prototype,"maxlength",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],v.prototype,"valueChange",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],v.prototype,"inputFocus",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],v.prototype,"inputBlur",void 0),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],v.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],v.prototype,"onBlur",void 0),i.__decorate([l.ViewChild("input",{static:!0}),i.__metadata("design:type",l.ElementRef)],v.prototype,"input",void 0),i.__decorate([l.ContentChild(f.TextBoxSuffixTemplateDirective,{static:!1}),i.__metadata("design:type",f.TextBoxSuffixTemplateDirective)],v.prototype,"suffixTemplate",void 0),i.__decorate([l.ContentChild(g.TextBoxPrefixTemplateDirective,{static:!1}),i.__metadata("design:type",g.TextBoxPrefixTemplateDirective)],v.prototype,"prefixTemplate",void 0),i.__decorate([l.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],v.prototype,"disabledClass",null),i.__decorate([l.HostBinding("class.k-textbox"),l.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],v.prototype,"hostClasses",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],v.prototype,"direction",void 0),o=i.__decorate([l.Component({exportAs:"kendoTextBox",providers:[m.LocalizationService,{provide:m.L10N_PREFIX,useValue:"kendo.textbox"},{provide:r.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:h.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),i.__metadata("design:paramtypes",[m.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],v));function v(e,t,n,o,i,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=o,this.injector=i,this.hostElement=a,this.focusableId="k-"+h.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new l.EventEmitter,this.inputFocus=new l.EventEmitter,this.inputBlur=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),h.hasObservers(r.onFocus)&&!r.isFocused&&r.ngZone.run(function(){r.onFocus.emit()}),h.hasObservers(r.inputFocus)&&(!r.focusChangedProgrammatically||r.focusChangedProgrammatically&&r.clearButtonClicked)&&r.ngZone.run(function(){r.inputFocus.emit()}),r.ngZone.run(function(){r.isFocused=!0}))},this.handleInputBlur=function(){r.changeDetector.markForCheck(),(h.hasObservers(r.inputBlur)||p.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.handleInput=function(e){var t=e.target,n=_.isSafari(navigator.userAgent),e=n&&s.isJapanese(t.value)?e.data:t.value,o=[t.selectionStart,t.selectionEnd],i=o[0],o=o[1];r.updateValue(e),n&&t.setSelectionRange(i,o)},this.ngChange=function(e){},this.ngTouched=function(){},d.validatePackage(c.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}t.TextBoxComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(76),r=n(55),s=n(6),l=n(3),d=n(26),c=n(25),u=n(99),p=n(52),n=n(24),o=o.__decorate([i.NgModule({declarations:[a.TextBoxDirective,r.TextBoxComponent,d.TextBoxSuffixTemplateDirective,c.TextBoxPrefixTemplateDirective,u.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective],exports:[a.TextBoxDirective,r.TextBoxComponent,d.TextBoxSuffixTemplateDirective,c.TextBoxPrefixTemplateDirective,l.EventsModule,u.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective,n.SHARED_DIRECTIVES],imports:[s.CommonModule,l.EventsModule,n.SharedModule]})],h);function h(){}t.TextBoxModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(71),r=n(6),n=n(3),o=o.__decorate([i.NgModule({declarations:[a.MaskedTextBoxComponent],exports:[a.MaskedTextBoxComponent],imports:[r.CommonModule,n.EventsModule]})],s);function s(){}t.MaskedTextBoxModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(72),n=(o=n.NumericTextBoxMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.NumericTextBoxMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedNumericTextBoxMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"on",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"off",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.Messages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(59),n=(o=n.Messages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoSwitchLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedSwitchMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(77),r=n(6),s=n(3),l=n(60),d=n(100),n=n(3),o=o.__decorate([i.NgModule({declarations:[a.SwitchComponent,d.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],exports:[a.SwitchComponent,d.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],imports:[r.CommonModule,n.EventsModule,s.ResizeSensorModule]})],c);function c(){}t.SwitchModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"dragHandleStart",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"dragHandleEnd",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.RangeSliderMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(62),n=(o=n.RangeSliderMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.RangeSliderMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoSliderLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedRangeSliderMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(68),s=n(78),l=n(63),d=n(101),n=n(15),o=o.__decorate([i.NgModule({declarations:[s.RangeSliderComponent,d.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective],exports:[s.RangeSliderComponent,d.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective,n.LabelTemplateDirective],imports:[a.CommonModule,r.SlidersCommonModule]})],c);function c(){}t.RangeSliderModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"decrement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"increment",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"dragHandle",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.SliderMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(65),n=(o=n.SliderMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.SliderMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoSliderLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedSliderMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(10),r=function(e){this.value=e,this.classes={"k-tick":!0}},n=(s.prototype.ngOnChanges=function(e){this.createTicks()},s.prototype.createTicks=function(){for(var e=a.calculateTicksCount(this.min,this.max,this.step),t=this.largeStep,n={max:this.max,min:this.min,smallStep:this.step},o=[],i=0;i<e;i++)o.push(new r(a.calculateValueFromTick(i,n))),t&&i%t==0&&(o[i].large=!0,o[i].classes["k-tick-large"]=!0);0<o.length&&(Object.assign(o[0].classes,this.endTickClasses(!0)),Object.assign(o[o.length-1].classes,this.endTickClasses(!1))),this.ticks=o},s.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},o.__decorate([i.HostBinding("class"),o.__metadata("design:type",String)],s.prototype,"wrapperClasses",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function)],s.prototype,"tickTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],s.prototype,"vertical",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"step",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"largeStep",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"min",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"max",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],s.prototype,"labelTemplate",void 0),o.__decorate([i.ViewChildren("tickElement"),o.__metadata("design:type",i.QueryList)],s.prototype,"tickElements",void 0),o.__decorate([i.Component({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false">&nbsp;</ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],s));function s(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}t.SliderTicksComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(67),s=n(15),n=n(3),o=o.__decorate([i.NgModule({declarations:[r.SliderTicksComponent,s.LabelTemplateDirective],exports:[s.LabelTemplateDirective,r.SliderTicksComponent,n.DraggableModule,n.EventsModule,n.ResizeSensorModule],imports:[a.CommonModule,n.DraggableModule,n.EventsModule,n.ResizeSensorModule]})],l);function l(){}t.SlidersCommonModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(i=o=t.ResultType||(t.ResultType={}))[i.Literal=0]="Literal",i[i.Mask=1]="Mask",i[i.Undefined=2]="Undefined",a.prototype.map=function(e){return new a(e(this.value),this.rest)},a.prototype.chain=function(e){return e(this.value,this.rest)},a.prototype.fold=function(e,t){return e(this.value,this.rest)},a.prototype.concat=function(t){return this.map(function(n,e){return t.chain(function(e,t){return n.concat([e])})})},a.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"};var o,i=a;function a(e,t,n){void 0===n&&(n=o.Undefined),this.value=e,this.rest=t,this.type=n}t.Result=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return(e||"").split("")}var r=n(69),i=n(104),s=(a.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof i.Stream?this.parse(e):this.parse(new i.Stream(o(e),o(t)))},a.prototype.map=function(t){var n=this;return new a(function(e){return n.parse(e).map(t)})},a.prototype.chain=function(n){var t=this;return new a(function(e){return t.parse(e).chain(function(e,t){return n(e).run(t)})})},a.prototype.isLiteral=function(e){return this.run(e).type===r.ResultType.Literal},a);function a(e){this.parse=e}t.Parser=s,t.mask=function(e){var i=e.prompt,a=e.promptPlaceholder;return function(o){return new s(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===t&&t===i)return e.eat(),new r.Result(i,e,r.ResultType.Mask);if(o.test(n))return e.eat(),new r.Result(n,e,r.ResultType.Mask);if(n===a)return e.eat(),new r.Result(i,e,r.ResultType.Mask);e.eat_input()}return e.eat(),new r.Result(i,e,r.ResultType.Mask)})}},t.literal=function(t){return new s(function(e){return e.peek().char===t&&e.eat(),new r.Result(t,e,r.ResultType.Literal)})},t.unmask=function(i){return function(o){return new s(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===i&&t===i)return e.eat(),new r.Result(n,e);if(o.test(n))return e.eat(),new r.Result(n,e);e.eat_input()}return e.eat(),new r.Result("",e)})}},t.unliteral=function(t){return new s(function(e){return e.eof()?new r.Result("",e):(e.peek().char===t&&e.eat(),new r.Result(t,e))})},t.token=function(o,i){return new s(function(e){var t=e.next().char,n=o[t];return"\\"===t?(t=e.next().char,new r.Result(i.literal(t),e)):n?new r.Result(i.mask(n),e):new r.Result(i.literal(t),e)})},t.rawMask=function(e){var n=e.prompt,o=e.promptPlaceholder;return new s(function(e){var t=e.next().char;return t===n?new r.Result(o,e):new r.Result(t,e)})},t.rawLiteral=function(n){return new s(function(e){var t=e.next().char;return n?new r.Result(t,e):new r.Result("",e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),l=n(1),a=n(5),r=n(12),d=n(3),s=n(2),c=n(8),u=n(7),p=n(106),h=n(11),f=n(4),n=(o=g,Object.defineProperty(g.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),g.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(a.NgControl,null)},g.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},g.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},g.prototype.handleDragDrop=function(){return!1},g.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},g.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},g.prototype.pasteHandler=function(e){var e=e.target,t=e.selectionStart,e=e.selectionEnd;e!==t&&(this.isPasted=!0,this.selection=[t,e])},g.prototype.inputHandler=function(e){var t,n=e.target.value,o=this.selection,i=o[0],o=o[1];if(!this.mask)return this.updateValueWithEvents(n),void(this.isPasted=!1);t=this.isPasted?(this.isPasted=!1,t=this.maskedValue.length-o,t=n.length-t,this.service.maskInRange(n.slice(i,t),this.maskedValue,i,o)):this.service.maskInput(n,this.maskedValue,e.target.selectionStart),this.updateInput(t.value,t.selection),this.updateValueWithEvents(t.value)},g.prototype.ngOnChanges=function(e){var t=this;if(!this.mask)return e.value&&(this.value=this.normalizeValue()),void this.updateInput(this.value);var n=this.extractChanges(e);this.updateService(n),e.value&&(this.value=this.normalizeValue(),(n=this.service.maskRaw(this.value))!==this.maskedValue&&this.updateInput(n),this.includeLiterals&&this.updateValue(this.maskedValue)),d.anyChanged(["promptPlaceholder","includeLiterals"],e)?this.ngZone.onStable.pipe(r.take(1)).subscribe(function(){t.updateValueWithEvents(t.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))},g.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},g.prototype.registerOnChange=function(e){this.onChange=e},g.prototype.registerOnTouched=function(e){this.onTouched=e},g.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},g.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},g.prototype.updateValueWithEvents=function(e){this.updateValue(e),this.valueChange.emit(this.value)},g.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value)},g.prototype.updateInput=function(e,t){this.maskedValue=e=void 0===e?"":e;e=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",e),void 0!==t&&this.setSelection(t,t)},g.prototype.extractChanges=function(n){return Object.keys(n).filter(function(e){return"rules"!==e}).reduce(function(e,t){return e[t]=n[t].currentValue,e},{})},g.prototype.updateService=function(e){e=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(e)},g.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&h.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(g.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),g.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;0<=t&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(g.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),g.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=f.isPresent(e);if(t&&"string"!=typeof e){if(l.isDevMode())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},g.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=f.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"size",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"rounded",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"fillMode",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"mask",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],g.prototype,"rules",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"prompt",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"promptPlaceholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"includeLiterals",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"maskOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"maskValidation",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],g.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],g.prototype,"tabIndex",null),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],g.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],g.prototype,"onBlur",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],g.prototype,"valueChange",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],g.prototype,"direction",void 0),i.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-maskedtextbox"),i.__metadata("design:type",Boolean)],g.prototype,"hostClasses",void 0),i.__decorate([l.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"hostDisabledClass",null),i.__decorate([l.ViewChild("input",{static:!0}),i.__metadata("design:type",l.ElementRef)],g.prototype,"input",void 0),i.__decorate([l.HostListener("paste",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],g.prototype,"pasteHandler",null),i.__decorate([l.HostListener("input",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],g.prototype,"inputHandler",null),o=i.__decorate([l.Component({exportAs:"kendoMaskedTextBox",providers:[p.MaskingService,{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o})},{multi:!0,provide:a.NG_VALIDATORS,useExisting:l.forwardRef(function(){return o})},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),i.__param(6,l.Optional()),i.__param(6,l.Inject(s.RTL)),i.__metadata("design:paramtypes",[p.MaskingService,l.Renderer2,l.ElementRef,l.NgZone,l.Injector,l.ChangeDetectorRef,Boolean])],g));function g(e,t,n,o,i,a,r){var s=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=o,this.injector=i,this.changeDetector=a,this.focusableId="k-"+d.guid(),this.disabled=!1,this.readonly=!1,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.hostClasses=!0,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){s.focused=!0,s.maskOnFocus&&s.emptyMask&&(s.updateInput(s.service.maskRaw(s.value)),s.ngZone.runOutsideAngular(function(){setTimeout(function(){s.setSelection(0,0)},0)})),d.hasObservers(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleClick=function(){var e;s.focused&&!s.focusClick&&(s.focusClick=!0,(e=s.input.nativeElement).selectionStart===e.selectionEnd&&s.setFocusSelection())},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.focusClick=!1,s.maskOnFocus&&s.emptyMask&&s.updateInput(s.maskedValue),(d.hasObservers(s.onBlur)||f.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.onTouched(),s.onBlur.emit()})},this.onChange=function(e){},this.onTouched=function(){},c.validatePackage(u.packageMetadata),this.direction=r?"rtl":"ltr",this.updateService()}t.MaskedTextBoxComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"decrement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"increment",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.NumericTextBoxMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(72),n=(o=n.NumericTextBoxMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.NumericTextBoxMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-numerictextbox-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.NumericTextBoxCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min",t.MAX_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max",t.POINT=".",t.INITIAL_SPIN_DELAY=500,t.SPIN_DELAY=50,t.EXPONENT_REGEX=/[eE][\-+]?([0-9]+)/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),r=n(1),a=n(5),s=n(3),l=n(4),d=n(2),c=n(9),u=n(12),n=(o=p,Object.defineProperty(p.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),p.prototype.writeValue=function(e){this.elementValue=e,this.resize()},p.prototype.registerOnChange=function(e){this.ngChange=e},p.prototype.registerOnTouched=function(e){this.ngTouched=e},p.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},p.prototype.ngOnInit=function(){var t=this,e=this.element.nativeElement;this.zone.runOutsideAngular(function(){t.listeners=[t.renderer.listen(e,"focus",t.handleFocus.bind(t)),t.renderer.listen(e,"blur",t.handleBlur.bind(t)),t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})],s.isDocumentAvailable()&&t.autoSize&&(t.resizeSubscription=c.fromEvent(window,"resize").pipe(u.debounceTime(50)).subscribe(function(){return t.resize()})),t.inputSubscription=c.fromEvent(e,"input").subscribe(t.handleInput.bind(t))}),this.control=this.injector.get(a.NgControl,null)},p.prototype.ngOnChanges=function(e){var t=this,n=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=n.offsetHeight,this.renderer.setStyle(n,"resize","none")):(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),this.zone.onStable.pipe(u.take(1)).subscribe(function(){return t.resize()})},p.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(p.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),p.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},p.prototype.resize=function(){var e,t;this.autoSize&&(e=this.element.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px",(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},p.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||s.hasObservers(this.onValueChange)||s.hasObservers(this.valueChange))&&this.zone.run(function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()}),this.resize()},p.prototype.handleFocus=function(){var e=this;s.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()})},p.prototype.handleBlur=function(){var e=this;(s.hasObservers(this.onBlur)||l.requiresZoneOnBlur(this.control))&&this.zone.run(function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()})},i.__decorate([r.HostBinding("class.k-textarea"),r.HostBinding("class.k-input"),r.HostBinding("class.k-input-md"),r.HostBinding("class.k-rounded-md"),r.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],p.prototype,"elementClasses",void 0),i.__decorate([r.HostBinding("class.k-autofill"),i.__metadata("design:type",Boolean)],p.prototype,"autofillClass",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],p.prototype,"direction",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],p.prototype,"valueChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],p.prototype,"autoSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],p.prototype,"value",void 0),o=i.__decorate([r.Directive({providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return o}),multi:!0},{provide:s.KendoInput,useExisting:r.forwardRef(function(){return o})}],selector:"textarea[kendoTextArea]"}),i.__param(5,r.Optional()),i.__param(5,r.Inject(d.RTL)),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],p));function p(e,t,n,o,i,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=o,this.injector=i,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new r.EventEmitter,this.autoSize=!1,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}t.TextAreaDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=n(3),n=(o=r,Object.defineProperty(r.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),r.prototype.ngAfterViewInit=function(){var t=this,e=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(e,"focus",function(){return t.onFocus.emit()}),this.renderer.listen(e,"blur",function(){return t.onBlur.emit()})],this.ngZone.runOutsideAngular(function(){t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})})},r.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()})},i.__decorate([a.HostBinding("class.k-textbox"),a.HostBinding("class.k-input"),a.HostBinding("class.k-input-md"),a.HostBinding("class.k-rounded-md"),a.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],r.prototype,"value",null),o=i.__decorate([a.Directive({selector:"input[kendoTextBox]",providers:[{provide:n.KendoInput,useExisting:a.forwardRef(function(){return o})}]}),i.__metadata("design:paramtypes",[a.Renderer2,a.ElementRef,a.NgZone])],r));function r(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onValueChange=new a.EventEmitter,this.autoFillStart=new a.EventEmitter,this.autoFillEnd=new a.EventEmitter,this.listeners=[]}t.TextBoxDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(1),a=n(5),r=n(2),l=n(3),d=n(8),c=n(7),u=n(4),p=n(9),h=n(12),f=n(30),n=(o=g,Object.defineProperty(g.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ieClass",{get:function(){return f.browser&&f.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),g.prototype.ngOnInit=function(){var e,t=this;this.hostElement&&(e=this.hostElement.nativeElement,this.renderer.removeAttribute(e,"tabindex")),this.localizationChangeSubscription=this.localizationService.changes.pipe(h.skip(1)).subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.control=this.injector.get(a.NgControl,null),this.ngZone.onStable.pipe(h.take(1)).subscribe(function(){return t.initialized=!0})},g.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},g.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},g.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},g.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},g.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},g.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},g.prototype.registerOnChange=function(e){this.ngChange=e},g.prototype.registerOnTouched=function(e){this.ngTouched=e},g.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},g.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},g.prototype.isEmpty=function(){return!1},g.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run(function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},Object.defineProperty(g.prototype,"focused",{set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),g.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))})},g.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},g.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=u.getStylingClasses("switch",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},g.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,e=u.getStylingClasses("switch","rounded",this.trackRounded,e);e.toRemove&&(this.renderer.removeClass(t,e.toRemove),this.renderer.removeClass(n,e.toRemove)),e.toAdd&&(this.renderer.addClass(t,e.toAdd),this.renderer.addClass(n,e.toAdd))},g.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,e=u.getStylingClasses("switch","rounded",this.thumbRounded,e);e.toRemove&&this.renderer.removeClass(t,e.toRemove),e.toAdd&&this.renderer.addClass(t,e.toAdd)},i.__decorate([s.Input(),i.__metadata("design:type",String)],g.prototype,"focusableId",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],g.prototype,"onLabel",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],g.prototype,"offLabel",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],g.prototype,"checked",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],g.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],g.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],g.prototype,"tabindex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"thumbRounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"trackRounded",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],g.prototype,"tabIndex",null),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],g.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],g.prototype,"onBlur",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],g.prototype,"valueChange",void 0),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],g.prototype,"direction",void 0),i.__decorate([s.HostBinding("class.k-ie"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"ieClass",null),i.__decorate([s.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"ariaDisabled",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"ariaReadonly",null),i.__decorate([s.HostBinding("class.k-switch"),i.__metadata("design:type",Boolean)],g.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"disabledClass",null),i.__decorate([s.ViewChild("track",{static:!0}),i.__metadata("design:type",Object)],g.prototype,"track",void 0),i.__decorate([s.ViewChild("thumb",{static:!0}),i.__metadata("design:type",Object)],g.prototype,"thumb",void 0),o=i.__decorate([s.Component({exportAs:"kendoSwitch",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return o})}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),i.__metadata("design:paramtypes",[s.Renderer2,s.ElementRef,r.LocalizationService,s.Injector,s.ChangeDetectorRef,s.NgZone])],g));function g(e,t,n,o,i,a){var r=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=o,this.changeDetector=i,this.ngZone=a,this.focusableId="k-"+l.guid(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new p.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){r.isFocused||(r.focused=!0,l.hasObservers(r.onFocus)&&r.ngZone.run(function(){r.onFocus.emit()}))},this.handleBlur=function(e){e=e&&e.relatedTarget;r.hostElement.nativeElement.contains(e)||(r.changeDetector.markForCheck(),r.focused=!1,(l.hasObservers(r.onBlur)||u.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.onBlur.emit()}))},d.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}t.SwitchComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,l=n(0),i=n(1),a=n(5),r=n(12),d=n(10),c=n(112),u=n(2),p=n(10),h=n(11),f=n(3),g=n(4),n=(s=n(79).SliderBase,l.__extends(m,s),(o=m).prototype.focus=function(){this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},m.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;h.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},m.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),s.prototype.ngOnInit.call(this)},m.prototype.ngOnChanges=function(e){var t=this;f.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&d.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(r.take(1)).subscribe(function(){t.sizeComponent()}))},m.prototype.ngAfterViewInit=function(){var e=this;f.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent()}),this.attachElementEventHandlers())},m.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},m.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(m.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),m.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();e=e.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)},m.prototype.onHandleDrag=function(e){function t(){i.changeValue([p.eventValue(e,i.track.nativeElement,i.getProps()),i.value[1]])}function n(){i.changeValue([i.value[0],p.eventValue(e,i.track.nativeElement,i.getProps())])}function o(){i.changeValue([p.eventValue(e,i.track.nativeElement,i.getProps()),p.eventValue(e,i.track.nativeElement,i.getProps())])}var i=this,a=(this.value=this.value||[this.min,this.min],e.originalEvent.target),r=this.draggedHandle.getBoundingClientRect(),a=(this.lastHandlePosition={x:r.left,y:r.top},this.dragging={value:!0,target:a},e.pageX-.5-r.width/2),r=e.pageY-r.width/2,s=a<this.lastHandlePosition.x,a=a>this.lastHandlePosition.x,r=r>this.lastHandlePosition.y,l=p.isStartHandle(this.draggedHandle),d=this.vertical,c=!d,d=d&&r||(this.reverse?c&&a:c&&s),r=this.value[0]>this.value[1];(this.value[0]===this.value[1]||r?d?l?t:o:l?o:n:l?t:n)()},m.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},m.prototype.writeValue=function(e){d.validateValue(e),this.value=e,this.sizeComponent()},m.prototype.registerOnChange=function(e){this.ngChange=e},m.prototype.registerOnTouched=function(e){this.ngTouched=e},m.prototype.changeValue=function(e){var t=this;this.value&&d.isSameRange(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.value&&t.valueChange.emit(e),t.sizeComponent()})},m.prototype.sizeComponent=function(){var e,t,n,o,i,a;f.isDocumentAvailable()&&(e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,o=this.draghandleStart.nativeElement,i=this.draghandleEnd.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null,this.resetStyles([t,n,o,i,a,this.hostElement.nativeElement]),a=this.getProps(),(a=new c.RangeSliderModel(a,e,t,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(o),a.positionHandle(i),a.positionSelection(o,n),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(m.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),m.prototype.isEmpty=function(){return!1},Object.defineProperty(m.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd&&(t=this.sliderSelection.nativeElement,n=e.target,e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value)},enumerable:!0,configurable:!0}),m.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:d.trimValueRange(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},m.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandleStart.nativeElement&&e.relatedTarget!==t.draghandleEnd.nativeElement&&t.handleBlur(),n=!1):o||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){o=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){o=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===f.Keys.Tab}))})},l.__decorate([i.Input(),l.__metadata("design:type",Array)],m.prototype,"value",void 0),l.__decorate([i.ViewChild("draghandleStart",{static:!0}),l.__metadata("design:type",i.ElementRef)],m.prototype,"draghandleStart",void 0),l.__decorate([i.ViewChild("draghandleEnd",{static:!0}),l.__metadata("design:type",i.ElementRef)],m.prototype,"draghandleEnd",void 0),o=l.__decorate([i.Component({exportAs:"kendoRangeSlider",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return o})},{provide:f.KendoInput,useExisting:i.forwardRef(function(){return o})}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),l.__metadata("design:paramtypes",[u.LocalizationService,i.Injector,i.Renderer2,i.NgZone,i.ChangeDetectorRef,i.ElementRef])],m));function m(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=o,r.changeDetector=i,r.hostElement=a,r.startHandleId="k-start-handle-"+f.guid(),r.endHandleId="k-end-handle-"+f.guid(),r.focusableId=r.startHandleId,r.handleZIndex=0,r.activeHandle="startHandle",r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t,n,o;r.isDisabled||(r.value=r.value||[r.min,r.min],e=p.eventValue(e,r.track.nativeElement,r.getProps()),t=void 0,n=(o=t=r.value)[0],o=o[1],e<=n?(t=[e,o],r.activeHandle="startHandle"):n<e&&e<o?e<(n+o)/2?(t=[e,o],r.activeHandle="startHandle"):(t=[n,e],r.activeHandle="endHandle"):o<=e&&(t=[n,e],r.activeHandle="endHandle"),o="startHandle"===r.activeHandle?r.draghandleStart:r.draghandleEnd,h.invokeElementMethod(o,"focus"),r.changeValue(t))},r.onKeyDown=function(e){r.value=r.value||[r.min,r.min];var t,n=r.getProps(),o=n.max,i=n.min,a=r.keyBinding[e.keyCode];!r.isDisabled&&a&&(r.renderer.setStyle(e.target,"zIndex",++r.handleZIndex),t=p.isStartHandle(e.target),a=a(l.__assign({},n,{value:t?r.value[0]:r.value[1]})),t?a>r.value[1]&&(r.value[1]=a):a<r.value[0]&&(r.value[0]=a),n=d.trimValue(o,i,a),o=t?[n,r.value[1]]:[r.value[0],n],r.changeValue(o),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(f.hasObservers(r.onBlur)||g.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}t.RangeSliderComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(10),l=n(1),d=n(9),i=n(5),a=n(3),c=n(8),u=n(7),n=n(15),o=(Object.defineProperty(r.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),r.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},r.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(i.NgControl,null)},Object.defineProperty(r.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),r.prototype.isEmpty=function(){return!1},Object.defineProperty(r.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[a.Keys.ArrowLeft]=t?s.increment:s.decrement,e[a.Keys.ArrowRight]=t?s.decrement:s.increment,e[a.Keys.ArrowDown]=s.decrement,e[a.Keys.ArrowUp]=s.increment,e[a.Keys.PageUp]=s.incrementLarge,e[a.Keys.PageDown]=s.decrementLarge,e[a.Keys.Home]=function(e){return e.min},e[a.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),r.prototype.resetStyles=function(e){var t=this;e.forEach(function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))})},o.__decorate([l.Input(),o.__metadata("design:type",Function)],r.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"tickPlacement",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"vertical",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"min",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"max",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"smallStep",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"largeStep",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"fixedTickWidth",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"readonly",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([l.Output("focus"),o.__metadata("design:type",l.EventEmitter)],r.prototype,"onFocus",void 0),o.__decorate([l.Output("blur"),o.__metadata("design:type",l.EventEmitter)],r.prototype,"onBlur",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],r.prototype,"valueChange",void 0),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),o.__decorate([l.HostBinding("class.k-slider-horizontal"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"horizontalClass",null),o.__decorate([l.HostBinding("class.k-slider-vertical"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"verticalClass",null),o.__decorate([l.HostBinding("class.k-slider"),o.__metadata("design:type",Boolean)],r.prototype,"sliderClass",void 0),o.__decorate([l.HostBinding("class.k-widget"),o.__metadata("design:type",Boolean)],r.prototype,"widgetClass",void 0),o.__decorate([l.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"disabledClass",null),o.__decorate([l.ViewChild("wrap",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"wrapper",void 0),o.__decorate([l.ViewChild("track",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"track",void 0),o.__decorate([l.ViewChild("sliderSelection",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"sliderSelection",void 0),o.__decorate([l.ViewChild("ticks",{read:l.ElementRef,static:!1}),o.__metadata("design:type",l.ElementRef)],r.prototype,"ticksContainer",void 0),o.__decorate([l.ViewChild("ticks",{static:!1}),o.__metadata("design:type",Object)],r.prototype,"ticks",void 0),o.__decorate([l.ContentChild(n.LabelTemplateDirective,{static:!1}),o.__metadata("design:type",n.LabelTemplateDirective)],r.prototype,"labelTemplate",void 0),r);function r(e,t,n,o,i,a){var r=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=o,this.changeDetector=i,this.hostElement=a,this.title=s.identity,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new d.Subscription,this.ifEnabled=function(e,t){r.isDisabled||e.call(r,t)},c.validatePackage(u.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}t.SliderBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=n(10),p=n(31);function o(e,t,n,o){this.props=e,this.wrapper=t,this.track=n,this.renderer=o,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}o.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},o.prototype.resizeTicks=function(e,t){var n=this,o=this.props.vertical?"height":"width";t.slice().map(function(e,t){return e.style[o]=n.tickSizes[t]+"px"}),this.props.vertical&&this.adjustPadding(e)},o.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=u.calculateFixedTrackSize(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},o.prototype.trackWidth=function(){return this.props.fixedTickWidth?u.calculateFixedTrackSize(this.props):this.elementSize(this.track.parentElement)},o.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,o=e.smallStep,i=u.calculateTicksCount(t,n,o),e=this.trackWidth(),a=e/p.subtract(n,t),r=[],s=0,l=0,d=0;d<i;d++){var l=+(l+=0===d||d===i-1?o/2*a:o*a).toFixed(2)-.01,c=Math.round(l-s);r.push(c),s+=c}return e<=s&&--r[r.length-1],r},o.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce(function(e,t){return e+t},0),t=this.trackWidth()-t;0!=t&&(t=t+this.elementOffset(this.track),e.style.paddingTop=t+"px")},o.prototype.elementOffset=function(e){var t=this.props.vertical,e=getComputedStyle(e);return parseInt(t?e.bottom:e.left,10)},o.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},t.SliderModelBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(9),r=n(4),s=n(14),l=n(13),n=(d.prototype.ngAfterViewInit=function(){var t=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe(function(e){e.h===t.oldH&&e.a===t.oldA||(t.oldH=e.h,t.oldA=e.a,t.setPaths())})},d.prototype.ngOnChanges=function(e){r.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},d.prototype.setPaths=function(){var e=l.bezierCommand(l.controlPoint(l.line));this.paths=[l.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT),e),l.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT,!0),e),l.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT),e),l.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT,!0),e)]},d.prototype.findValue=function(e,t,n,o,i){var a=(n+o)/2,r=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-a/this.metrics.height}),r=l.getContrastFromTwoRGBAs(l.getRGBA(l.getColorFromHSV(r)),l.getRGBA(this.backgroundColor||""));return o<n+.5?r<e+1&&e-1<r?a:null:i(r,e)?this.findValue(e,t,n,o-(o-n)/2,i):this.findValue(e,t,n+(o-n)/2,o,i)},d.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var o=[],i=0;i<=this.metrics.width;i+=this.metrics.width/t){var a=this.findValue(e,i,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return t<e});null!==a&&o.push([i,a])}return o},o.__decorate([i.HostBinding("class.k-color-contrast-svg"),o.__metadata("design:type",Boolean)],d.prototype,"hostClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],d.prototype,"wrapper",void 0),o.__decorate([i.Input(),o.__metadata("design:type",a.BehaviorSubject)],d.prototype,"hsva",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],d.prototype,"backgroundColor",void 0),o.__decorate([i.Component({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],d));function d(){this.hostClass=!0}t.ColorContrastSvgComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(2),r=n(13),s=n(14),n=(Object.defineProperty(l.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=s.AA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=s.AAA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"contrastRatio",{get:function(){return r.getContrastFromTwoRGBAs(r.getRGBA(this.value),r.getRGBA(this.ratio))},enumerable:!0,configurable:!0}),o.__decorate([i.Input(),o.__metadata("design:type",String)],l.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],l.prototype,"ratio",void 0),o.__decorate([i.Component({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n </div>\n <div kendoContrastValidation\n type="AA"\n [value]="value"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [value]="value"\n [pass]="satisfiesAAACondition">\n </div>\n '}),o.__metadata("design:paramtypes",[a.LocalizationService])],l));function l(e){this.localization=e}t.ContrastComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(14),a=n(2),n=n(1),n=(Object.defineProperty(r.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"contrastText",{get:function(){var e="AA"===this.type?i.AA_RATIO:i.AAA_RATIO;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),o.__decorate([n.Input(),o.__metadata("design:type",String)],r.prototype,"type",void 0),o.__decorate([n.Input(),o.__metadata("design:type",Boolean)],r.prototype,"pass",void 0),o.__decorate([n.Input(),o.__metadata("design:type",String)],r.prototype,"value",void 0),o.__decorate([n.Component({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n '}),o.__metadata("design:paramtypes",[a.LocalizationService])],r));function r(e){this.localization=e}t.ContrastValidationComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=(i.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},i.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular(function(){return setTimeout(function(){return e.host.nativeElement.focus()})})},o.__decorate([n.Directive({selector:"[kendoFocusOnDomReady]"}),o.__metadata("design:paramtypes",[n.ElementRef,n.NgZone])],i));function i(e,t){this.host=e,this.ngZone=t}t.FocusOnDomReadyDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(40),n=(o=n.ColorPickerMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.ColorPickerMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.ColorPickerCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(4),n=(r.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],a.isPresent(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var o=e.slice(n,t+n);this.colorRows.push(o)}}},r.prototype.getCellCoordsFor=function(e){if(a.isPresent(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},r.prototype.getColorAt=function(e){if(a.isPresent(e)&&a.isPresent(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},r.prototype.getNextCell=function(e,t,n){if(!(a.isPresent(e)&&a.isPresent(e.row)&&a.isPresent(e.col)))return{row:0,col:0};n=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:n,col:this.clampIndex(e.col+t,this.colorRows[n].length-1)}},r.prototype.clampIndex=function(e,t){return e<0?0:t<e?t:e},o.__decorate([i.Injectable()],r));function r(){this.colorRows=[]}t.ColorPaletteService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(2),n=n(22),a=(i=r.LocalizationService,o.__extends(s,i),s.prototype.get=function(e){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(e):i.prototype.get.call(this,e)},o.__decorate([o.__param(0,a.Inject(r.L10N_PREFIX)),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(2,a.Inject(r.RTL)),o.__param(3,a.Optional()),o.__param(3,a.Inject(n.FlatColorPickerLocalizationService)),o.__metadata("design:paramtypes",[String,r.MessageService,Boolean,n.FlatColorPickerLocalizationService])],s));function s(e,t,n,o){e=i.call(this,e,t,n)||this;return e.flatColorPickerLocalization=o,e}t.ColorPaletteLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(2),n=n(22),a=(i=r.LocalizationService,o.__extends(s,i),s.prototype.get=function(e){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(e):i.prototype.get.call(this,e)},o.__decorate([o.__param(0,a.Inject(r.L10N_PREFIX)),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(2,a.Inject(r.RTL)),o.__param(3,a.Optional()),o.__param(3,a.Inject(n.FlatColorPickerLocalizationService)),o.__metadata("design:paramtypes",[String,r.MessageService,Boolean,n.FlatColorPickerLocalizationService])],s));function s(e,t,n,o){e=i.call(this,e,t,n)||this;return e.flatColorPickerLocalization=o,e}t.ColorGradientLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCommand=function(a){return function(e,t,n){var o=a(n[t-1],n[t-2],e),i=o[0],o=o[1],n=a(e,n[t-1],n[t+1],!0);return"C "+i+","+o+" "+n[0]+","+n[1]+" "+e[0]+","+e[1]}},t.controlPoint=function(i){return function(e,t,n,o){t=i(t||e,n||e),n=t.angle+(o?Math.PI:0),o=.1*t.length;return[e[0]+Math.cos(n)*o,e[1]+Math.sin(n)*o]}},t.line=function(e,t){var n=t[0]-e[0],t=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(t,2)),angle:Math.atan2(t,n)}},t.d=function(e,i){return 0===e.length?"":e.reduce(function(e,t,n,o){return 0===n?"M "+t[0]+","+t[1]:e+" "+i(t,n,o)},"")},t.svgPath=function(e,i){return 0===e.length?"":e.reduce(function(e,t,n,o){return 0===n?"M "+t[0]+","+t[1]:e+" "+i(t,n,o)},"")}},function(e,t){e.exports=v},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=t(90),l=t(4);function i(t,e){if(t=t.toLowerCase().trim(),l.isPresent(s.namedColors[t]))return t;s.parseColor(t,e)&&(t=s.parseColor(t,e).toHex());var n=Object.keys(s.namedColors).find(function(e){return s.namedColors[e]===t});if(n||e)return n;throw new Error("The provided color "+t+" is not supported for 'format=\"name\"' property.To display "+t+" color, the component 'format' property should be set to 'hex' or 'rgba' ")}r.parseColor=function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!0),-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(l.isPresent(e)){if("name"===t)return i(e,o);e=s.parseColor(e.trim(),o);return l.isPresent(e)?"hex"===t?r.getHexValue(e,n):e.toCssRgba():void 0}},r.getHSV=function(e,t){e=s.parseColor(e,t=void 0===t?!0:t);return l.isPresent(e)?e.toHSV():{}},r.getRGBA=function(e,t){e=s.parseColor(e,t=void 0===t?!0:t);return l.isPresent(e)?e.toBytes():{}},r.getColorFromHSV=function(e,t,n){void 0===t&&(t="rgba"),void 0===n&&(n=!1);var o=l.fitIntoBounds(e.h,0,359.9),i=l.fitIntoBounds(e.s,0,1),a=l.fitIntoBounds(e.v,0,1),e=l.fitIntoBounds(e.a,0,1),o=s.Color.fromHSV(o,i,a,e);return"hex"===t?r.getHexValue(o,n):o.toCssRgba()},r.getHexValue=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},r.getColorFromHue=function(e){return r.getColorFromHSV({h:e,s:1,v:1,a:1})},r.getColorFromRGBA=function(e){var t=l.fitIntoBounds(e.r,0,255),n=l.fitIntoBounds(e.g,0,255),o=l.fitIntoBounds(e.b,0,255),e=l.fitIntoBounds(e.a,0,1);return s.Color.fromBytes(t,n,o,e).toCssRgba()},r.nameFormat=i,r.getRGBFromRGBA=function(e,t){var n=l.fitIntoBounds(e.r,0,255),o=l.fitIntoBounds(e.g,0,255),i=l.fitIntoBounds(e.b,0,255),e=l.fitIntoBounds(e.a,0,1),a=l.fitIntoBounds(t.r,0,255),r=l.fitIntoBounds(t.g,0,255),t=l.fitIntoBounds(t.b,0,255);return{r:Math.round((1-e)*a+e*n),g:Math.round((1-e)*r+e*o),b:Math.round((1-e)*t+e*i)}},r.getLuminance=function(e){e=[e.r,e.g,e.b].map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*e[0]+.7152*e[1]+.0722*e[2]},r.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},r.getContrastFromTwoRGBAs=function(e,t){return r.getContrast(r.getLuminance(r.getRGBFromRGBA(e,t)),r.getLuminance(r.getRGBFromRGBA(t,{r:0,g:0,b:0,a:1})))}},function(e,t,n){"use strict";function o(e){this.color=e,this.openPrevented=!1}Object.defineProperty(t,"__esModule",{value:!0}),o.prototype.preventOpen=function(){this.openPrevented=!0},o.prototype.isOpenPrevented=function(){return this.openPrevented},t.ActiveColorClickEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),n=(o=n(3).PreventableEvent,i.__extends(a,o),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.ColorPickerOpenEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),n=(o=n(3).PreventableEvent,i.__extends(a,o),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.ColorPickerCloseEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),n=(o=n(3).PreventableEvent,i.__extends(a,o),a);function a(e){var t=o.call(this)||this;return t.originalEvent=e,t}t.ColorPickerCancelEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PALETTEPRESETS={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(14),r=n(21),n=(s.prototype.getPaletteSettings=function(e,t){var t="name"!==t?a.DEFAULT_PRESET:a.DEFAULT_ACCESSIBLE_PRESET,n=e.palette,o="string"==typeof n&&r.PALETTEPRESETS[n]?r.PALETTEPRESETS[n].columns:void 0;return{palette:n||t,tileSize:e.tileSize||24,columns:e.columns||o||10}},s.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width||e.height,height:e.height||e.width}},o.__decorate([i.Injectable()],s));function s(){}t.FlatColorPickerService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(9),l=n(1),d=n(4),c=n(3),n=(Object.defineProperty(i.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),i.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},i.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},o.__decorate([l.Input(),o.__metadata("design:type",String)],i.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],i.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],i.prototype,"readonly",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],i.prototype,"value",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],i.prototype,"selectOnFocus",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],i.prototype,"placeholder",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],i.prototype,"inputFocus",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],i.prototype,"inputBlur",void 0),o.__decorate([l.ViewChild("input",{static:!0}),o.__metadata("design:type",l.ElementRef)],i.prototype,"input",void 0),o.__decorate([l.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],i.prototype,"disabledClass",null),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],i.prototype,"direction",void 0),i);function i(e,t,n,o,i,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=o,this.injector=i,this.hostElement=a,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new l.EventEmitter,this.inputBlur=new l.EventEmitter,this.subscriptions=new s.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){r.changeDetector.markForCheck(),(c.hasObservers(r.inputBlur)||d.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.ngChange=function(e){},this.ngTouched=function(){}}t.TextFieldsBase=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(53),n=(o=n.TextBoxMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.TextBoxMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-textbox-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.TextBoxCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(59),n=(o=n.Messages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-switch-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.SwitchCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(62),n=(o=n.RangeSliderMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.RangeSliderMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-rangeslider-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.RangeSliderCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(65),n=(o=n.SliderMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.SliderMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-slider-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.SliderCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(28),r=n(64),s=n(61),l=n(27),d=n(57),c=n(56),u=n(50),p=n(6),h=n(47),f=n(38),g=n(36),n=n(34),o=o.__decorate([i.NgModule({exports:[u.TextAreaModule,c.TextBoxModule,a.SliderModule,r.RangeSliderModule,s.SwitchModule,l.NumericTextBoxModule,d.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,g.RadioButtonModule,n.FormFieldModule],imports:[p.CommonModule]})],m);function m(){}t.InputsModule=o},function(e,t,n){"use strict";function o(e,t){void 0===t&&(t=[]),this.input=e=void 0===e?[]:e,this.control=t,this.inputCursor=0,this.controlCursor=0}Object.defineProperty(t,"__esModule",{value:!0}),o.prototype.eof=function(){return this.inputCursor>=this.input.length},o.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},o.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},o.prototype.eat_input=function(){this.inputCursor++},o.prototype.eat_control=function(){this.controlCursor++},o.prototype.eat=function(){this.inputCursor++,this.controlCursor++},t.Stream=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(70),i=n(69);t.sequence=function(e){return e.reduce(function(e,t){return n=t,e.chain(function(t){return n.map(function(e){return t.concat([e])})});var n},(t=[],new o.Parser(function(e){return new i.Result(t,e)})));var t},t.greedy=function(n){return new o.Parser(function(e){for(var t=new i.Result([],e);!e.eof();)t=t.concat(n.run(e));return t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),l=n(105),a=n(70),n=(r.prototype.update=function(e){var t=e.mask,n=e.prompt,n=void 0===n?"":n,o=e.promptPlaceholder,o=void 0===o?" ":o,i=e.rules,i=void 0===i?{}:i,e=e.includeLiterals,e=void 0!==e&&e;this.mask=void 0===t?"":t,this.prompt=n,this.promptPlaceholder=o,this.rules=i,this.includeLiterals=e,this.tokenize()},r.prototype.validationValue=function(e){var t=e=void 0===e?"":e;return l.sequence(this.validationTokens).run(e).fold(function(e){t=e.join("")}),t},r.prototype.rawValue=function(e){var t=e=void 0===e?"":e;return this.rawTokens.length&&l.sequence(this.rawTokens).run(e).fold(function(e){t=e.join("")}),t},r.prototype.maskRaw=function(e){var t=e=void 0===e?"":e;return this.maskTokens.length&&l.sequence(this.maskTokens).run(e).fold(function(e){t=e.join("")}),t},r.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},r.prototype.maskInRange=function(e,t,n,o){var i="",a=o,r=t.split("").slice(0,n),s=t.split("").slice(o);return l.sequence(this.maskTokens.slice(n,o)).run(e).fold(function(e){i=r.concat(e).concat(s).join("")}),{selection:a,value:i}},r.prototype.maskRemoved=function(e,t,n){var o=this,i="",a=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),e=this.maskTokens.length-(e.length-n);return l.sequence(this.maskTokens.slice(0,e)).run(s,t).fold(function(e){a=o.adjustPosition(e,a),i=e.concat(r).join("")}),{selection:a,value:i}},r.prototype.adjustPosition=function(e,t){e=e[t];return this.maskTokens[t].isLiteral(e)||e===this.prompt?t:t+1},r.prototype.maskInserted=function(e,n,t){var o=this,i="",a=t,e=e.slice(0,t);return l.sequence(this.unmaskTokens).run(e,n).chain(function(e){a=e.join("").length;var t=n.slice(a);return l.sequence(o.maskTokens).run(e.join("")+t,n)}).fold(function(e){i=e.join("")}),{selection:a,value:i}},Object.defineProperty(r.prototype,"maskTokenCreator",{get:function(){var t=this.prompt,n=this.promptPlaceholder;return{literal:function(e){return a.literal(e)},mask:function(e){return a.mask({prompt:t,promptPlaceholder:n})(e)}}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"unmaskTokenCreator",{get:function(){var t=this;return{literal:function(e){return a.unliteral(e)},mask:function(e){return a.unmask(t.prompt)(e)}}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rawTokenCreator",{get:function(){var t=this.prompt,n=this.promptPlaceholder,o=this.includeLiterals;return{literal:function(e){return a.rawLiteral(o)},mask:function(e){return a.rawMask({prompt:t,promptPlaceholder:n})}}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validationTokenCreator",{get:function(){var t=this.prompt;return{literal:function(e){return a.rawLiteral(!1)},mask:function(e){return a.rawMask({prompt:t,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),r.prototype.tokenize=function(){var n=this;l.greedy(a.token(this.rules,this.maskTokenCreator)).run(this.mask).fold(function(e,t){n.maskTokens=e}),l.greedy(a.token(this.rules,this.unmaskTokenCreator)).run(this.mask).fold(function(e,t){n.unmaskTokens=e}),l.greedy(a.token(this.rules,this.rawTokenCreator)).run(this.mask).fold(function(e,t){n.rawTokens=e}),l.greedy(a.token(this.rules,this.validationTokenCreator)).run(this.mask).fold(function(e,t){n.validationTokens=e})},o.__decorate([i.Injectable()],r));function r(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}t.MaskingService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.ArrowDirection||(t.ArrowDirection={}))[t.Down=-1]="Down",t[t.None=0]="None",t[t.Up=1]="Up"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74);t.numericRegex=function(e){var t=e.autoCorrect,n=e.decimals,o=e.min,e=e.separator;return e===i.POINT&&(e="\\"+e),new RegExp("^"+(t&&null!==o&&0<=o?"":"-?")+(0===n?"\\d*":"(?:(?:\\d+("+e+"\\d*)?)|(?:"+e+"\\d*))?")+"$")},t.decimalPart=function(e){return 0<=e?Math.floor(e):Math.ceil(e)},t.noop=function(e){},t.defined=function(e){return void 0!==e},t.isNumber=function(e){return!isNaN(e)&&null!==e},t.pad=function(e,t){var t=t-String(e).length,n=e;return 0<t&&(t=new Array(1+t).join("0"),n=parseFloat(e+t)),n},t.getDeltaFromMouseWheel=function(e){var t=0;return e.wheelDelta?t=0<(t=e.wheelDelta/120)?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t},t.getCaretPosition=function(e){return e.selectionStart},t.extractSignificantNumericChars=function(e,t){var n=t+"0123456789-";return e.split("").reduce(function(e,t){return n.includes(t)?++e:e},0)},t.isRightClick=function(e){var t=e.button&&2===e.button,e=e.which&&3===e.which;return t||e}},function(e,t){e.exports=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t.createMinValidator=function(t){return function(e){return!o.isPresent(t)||!o.isPresent(e.value)||e.value>=t?null:{minError:{minValue:t,value:e.value}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t.createMaxValidator=function(t){return function(e){return!o.isPresent(t)||!o.isPresent(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(10),l=n(10),n=(o=n(80).SliderModelBase,i.__extends(a,o),a.prototype.positionHandle=function(e){var t,n,o,i,a,r;e.id&&(t=(i=this.props).max,n=i.min,o=i.reverse,i=i.vertical?"bottom":"left",a=this.trackWidth(),r=s.isStartHandle(e)?l.trimValueRange(t,n,this.props.value)[0]:l.trimValueRange(t,n,this.props.value)[1],s.isStartHandle(e)?(this.startHandlePosition=l.calculateHandlePosition({min:n,max:t,reverse:o,value:r,trackWidth:a}),this.renderer.setStyle(e,i,this.startHandlePosition+"px")):(this.endHandlePosition=l.calculateHandlePosition({min:n,max:t,reverse:o,value:r,trackWidth:a}),this.renderer.setStyle(e,i,this.endHandlePosition+"px")))},a.prototype.positionSelection=function(e,t){var n=this.props,o=n.reverse,n=n.vertical,i=n?"height":"width",a=n?"bottom":o?"right":"left",r=Math.abs(this.endHandlePosition-this.startHandlePosition),n=n?e.style.bottom:e.style.left;this.renderer.setStyle(t,i,r+"px"),this.renderer.setStyle(t,a,o?this.trackWidth()-parseFloat(n)+"px":parseFloat(n)+"px")},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.RangeSliderModel=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(10),n=(o=n(80).SliderModelBase,i.__extends(a,o),a.prototype.positionHandle=function(e){var t=this.props,n=t.max,o=t.min,i=t.reverse,t=t.vertical?"bottom":"left",a=this.trackWidth(),r=s.trimValue(n,o,this.props.value);this.handlePosition=s.calculateHandlePosition({min:o,max:n,reverse:i,value:r,trackWidth:a}),this.renderer.setStyle(e,t,this.handlePosition+"px")},a.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,t=t.vertical?"height":"width",o=this.handlePosition;n&&(o=this.trackWidth()-o),this.renderer.setStyle(e,t,o+"px")},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.SliderModel=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(32),a=(t.SliderComponent=a.SliderComponent,n(78)),a=(t.RangeSliderComponent=a.RangeSliderComponent,n(15)),a=(t.LabelTemplateDirective=a.LabelTemplateDirective,n(77)),a=(t.SwitchComponent=a.SwitchComponent,n(76)),a=(t.TextBoxDirective=a.TextBoxDirective,n(75)),a=(t.TextAreaDirective=a.TextAreaDirective,n(29)),a=(t.NumericTextBoxComponent=a.NumericTextBoxComponent,n(73)),a=(t.NumericTextBoxCustomMessagesComponent=a.NumericTextBoxCustomMessagesComponent,n(71)),a=(t.MaskedTextBoxComponent=a.MaskedTextBoxComponent,n(103)),a=(t.InputsModule=a.InputsModule,n(67)),a=(t.SliderTicksComponent=a.SliderTicksComponent,n(28)),a=(t.SliderModule=a.SliderModule,n(64)),a=(t.RangeSliderModule=a.RangeSliderModule,n(61)),a=(t.SwitchModule=a.SwitchModule,n(27)),a=(t.NumericTextBoxModule=a.NumericTextBoxModule,n(57)),a=(t.MaskedTextBoxModule=a.MaskedTextBoxModule,n(56)),a=(t.TextBoxModule=a.TextBoxModule,n(50)),a=(t.TextAreaModule=a.TextAreaModule,n(38)),a=(t.CheckBoxModule=a.CheckBoxModule,n(36)),a=(t.RadioButtonModule=a.RadioButtonModule,n(45)),a=(t.ColorPickerComponent=a.ColorPickerComponent,n(18)),a=(t.ColorPaletteComponent=a.ColorPaletteComponent,n(19)),a=(t.ColorGradientComponent=a.ColorGradientComponent,n(47)),a=(t.ColorPickerModule=a.ColorPickerModule,i.__exportStar(n(20),t),n(23)),i=(t.FlatColorPickerComponent=a.FlatColorPickerComponent,n(37)),a=(t.CheckBoxDirective=i.CheckBoxDirective,n(35)),i=(t.RadioButtonDirective=a.RadioButtonDirective,n(16)),a=(t.HintComponent=i.HintComponent,n(17)),i=(t.ErrorComponent=a.ErrorComponent,n(33)),a=(t.FormFieldComponent=i.FormFieldComponent,n(34)),i=(t.FormFieldModule=a.FormFieldModule,n(55)),a=(t.TextBoxComponent=i.TextBoxComponent,n(25)),i=(t.TextBoxPrefixTemplateDirective=a.TextBoxPrefixTemplateDirective,n(26)),a=(t.TextBoxSuffixTemplateDirective=i.TextBoxSuffixTemplateDirective,n(49)),i=(t.TextAreaComponent=a.TextAreaComponent,n(48)),a=(t.TextAreaSuffixComponent=i.TextAreaSuffixComponent,n(51)),i=(t.InputSeparatorComponent=a.InputSeparatorComponent,n(24)),a=(t.SharedModule=i.SharedModule,n(39)),i=(t.LocalizedColorPickerMessagesDirective=a.LocalizedColorPickerMessagesDirective,n(58)),a=(t.LocalizedNumericTextBoxMessagesDirective=i.LocalizedNumericTextBoxMessagesDirective,n(52)),i=(t.LocalizedTextBoxMessagesDirective=a.LocalizedTextBoxMessagesDirective,n(66)),a=(t.LocalizedSliderMessagesDirective=i.LocalizedSliderMessagesDirective,n(63)),i=(t.LocalizedRangeSliderMessagesDirective=a.LocalizedRangeSliderMessagesDirective,n(60)),r=(t.LocalizedSwitchMessagesDirective=i.LocalizedSwitchMessagesDirective,t);for(o in r)s(o,r[o])}],i={},o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=114)}}});
5
+ System.register("@progress/kendo-angular-inputs",["tslib","@angular/core","@angular/common","@progress/kendo-angular-common","@progress/kendo-angular-popup","@angular/forms","rxjs","rxjs/operators","@progress/kendo-angular-l10n","@progress/kendo-common","@progress/kendo-licensing","@progress/kendo-angular-intl","@progress/kendo-drawing"],function(s){var a,r,l,d,c,u,p,h,f,g,m,_,v;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){r=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){p=t(e)},function(e){h=t(e)},function(e){f=t(e)},function(e){g=t(e)},function(e){m=t(e)},function(e){_=t(e)},function(e){v=t(e)}],execute:function(){function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,i;n=[function(e,t){e.exports=a},function(e,t){e.exports=r},function(e,t){e.exports=f},function(e,t){e.exports=d},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isPresent=function(e){return null!=e},o.areSame=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},o.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},o.fitIntoBounds=function(e,t,n){return!o.isPresent(e)||isNaN(e)||e<=t?t:n<=e?n:e};var i={small:"sm",medium:"md",large:"lg"},a={small:"sm",medium:"md",large:"lg",full:"full"};o.getStylingClasses=function(e,t,n,o){switch(t){case"size":return{toRemove:"k-"+e+"-"+i[n],toAdd:o?"k-"+e+"-"+i[o]:null};case"rounded":return{toRemove:"k-rounded-"+a[n],toAdd:o?"k-rounded-"+a[o]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:o?"k-"+e+"-"+o:null}}}},function(e,t){e.exports=u},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1648037581,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"}},function(e,t){e.exports=m},function(e,t){e.exports=p},function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var a=t(4),d=t(31),n=t(1);l.calculateFixedTrackSize=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},l.calculateTrackSize=function(e,t,n){e-=(n=void 0===n?!0:n)?2*parseFloat(t):0;return Math.floor(e)},l.calculateTicksCount=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),(n=void 0===n?1:n)<=0)throw new Error("Invalid argument: smallStep must be a positive number");t=Math.abs(d.subtract(t,e)),e=Math.floor(d.divide(t,n));return d.add(e,1)},l.calculateValueFromTick=function(e,t){var n=t.max,o=t.min,i=t.smallStep,a=t.reverse,t=t.vertical,o=d.add(o,d.multiply(e,i));return t||a?Math.abs(d.subtract(o,n)):o},l.calculateHandlePosition=function(e){var t=e.trackWidth,n=e.min,o=e.max,i=e.reverse,e=e.value,o=t/Math.abs(o-n),o=a.isPresent(e)?o*(e-n):n;return i&&(o=t-o),Math.floor(o)},l.decreaseValueToStep=function(e,t,n){var o=t.max,i=t.min,a=t.smallStep,t=t.largeStep,n=(n=void 0===n?!1:n)&&t?d.multiply(a,t):a,t=d.subtract(e,i),a=d.remainder(t,n),e=0===a?d.subtract(t,n):d.subtract(t,a);return l.limitValue(d.add(e,i),i,o)},l.increaseValueToStep=function(e,t,n){var o=t.max,i=t.min,a=t.smallStep,t=t.largeStep,n=(n=void 0===n?!1:n)&&t?d.multiply(a,t):a,t=d.subtract(e,i),a=d.remainder(t,n),e=d.add(d.subtract(t,a),n);return l.limitValue(d.add(e,i),i,o)},l.isStartHandle=function(e){return-1<e.id.indexOf("k-start-handle")},l.snapValue=function(e,t){var n=t.smallStep,o=t.min,i=t.max,i=l.limitValue(e,o,i);if(e!==i)return i;i=l.decreaseValueToStep(e,t),t=l.increaseValueToStep(e,t);return(e-o)%n==0?e:t-e<=(t-i)/2?t:i},l.trimValue=function(e,t,n){return e<n?e:n<t?t:n},l.trimValueRange=function(e,t,n){return n?[l.trimValue(e,t,n[0]),l.trimValue(e,t,n[1])]:[t,t]},l.identity=function(e){return e},l.isSameRange=function(e,t){return a.areSame(e[0],t[0])&&a.areSame(e[1],t[1])},l.elementOffset=function(e){var e=e.getBoundingClientRect(),t=document.documentElement;return{left:e.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),top:e.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}},l.limitValue=function(e,t,n){return Math.max(Math.min(e,n),t)},l.eventValue=function(e,t,n){var o=n.min,i=n.max,a=n.vertical,r=n.rtl,s=l.elementOffset(t),e=(a?e.pageY-s.top:e.pageX-s.left)*((i-o)/(a?t.clientHeight:t.clientWidth)),s=r||a?i-e:o+e,t=d.fractionLength(n.smallStep),s=d.toFixedPrecision(s,t+1);return l.snapValue(s,n)},l.isButton=function(e){return 0<=e.className.indexOf("k-button-increase")||0<=e.className.indexOf("k-button-decrease")},l.increment=function(e){return l.increaseValueToStep(e.value,e)},l.decrement=function(e){return l.decreaseValueToStep(e.value,e)},l.incrementLarge=function(e){return l.increaseValueToStep(e.value,e,!0)},l.decrementLarge=function(e){return l.decreaseValueToStep(e.value,e,!0)},l.validateValue=function(e){if(n.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},l.default={calculateFixedTrackSize:l.calculateFixedTrackSize,calculateValueFromTick:l.calculateValueFromTick,calculateTrackSize:l.calculateTrackSize,calculateTicksCount:l.calculateTicksCount,calculateHandlePosition:l.calculateHandlePosition,decreaseValueToStep:l.decreaseValueToStep,decrement:l.decrement,decrementLarge:l.decrementLarge,eventValue:l.eventValue,identity:l.identity,increment:l.increment,incrementLarge:l.incrementLarge,isButton:l.isButton,isSameRange:l.isSameRange,isStartHandle:l.isStartHandle,increaseValueToStep:l.increaseValueToStep,trimValue:l.trimValue,trimValueRange:l.trimValueRange,snapValue:l.snapValue,validateValue:l.validateValue}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasClass=function(e,t){return Boolean((e=e.className,String(e).trim().split(" ").find(function(e){return e===t})))},t.invokeElementMethod=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)},t.isUntouched=function(e){return e&&e.nativeElement&&t.hasClass(e.nativeElement,"ng-untouched")},t.containsFocus=function(e,t){return e&&t&&(e===t||e.contains(t))},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);o.__exportStar(n(91),t),o.__exportStar(n(89),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTPUT_FORMAT="rgba",t.DEFAULT_GRADIENT_BACKGROUND_COLOR="rgba(255, 0, 0, 1)",t.DRAGHANDLE_MOVE_SPEED=5,t.AAA_RATIO=7,t.AA_RATIO=4.5,t.DEFAULT_PRESET="office",t.DEFAULT_ACCESSIBLE_PRESET="accessible",t.STEP_COUNT=16},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=o.__decorate([n.Directive({selector:"[kendoSliderLabelTemplate]"}),o.__param(0,n.Optional()),o.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.LabelTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),i=0,o=(Object.defineProperty(a.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),o.__decorate([n.Input(),o.__metadata("design:type",String)],a.prototype,"align",void 0),o.__decorate([n.HostBinding("class.k-form-hint"),o.__metadata("design:type",Boolean)],a.prototype,"hostClass",void 0),o.__decorate([n.HostBinding("class.k-text-start"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],a.prototype,"startClass",null),o.__decorate([n.HostBinding("class.k-text-end"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],a.prototype,"endClass",null),o.__decorate([n.HostBinding("attr.id"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],a.prototype,"idAttribute",null),o.__decorate([n.Component({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],a));function a(){this.align="start",this.id="kendo-hint-"+i++,this.hostClass=!0}t.HintComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),i=0,o=(Object.defineProperty(a.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),o.__decorate([n.HostBinding("class.k-form-error"),o.__metadata("design:type",Boolean)],a.prototype,"hostClass",void 0),o.__decorate([n.Input(),o.__metadata("design:type",String)],a.prototype,"align",void 0),o.__decorate([n.HostBinding("attr.role"),o.__metadata("design:type",String)],a.prototype,"roleAttribute",void 0),o.__decorate([n.HostBinding("class.k-text-start"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],a.prototype,"startClass",null),o.__decorate([n.HostBinding("class.k-text-end"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],a.prototype,"endClass",null),o.__decorate([n.HostBinding("attr.id"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],a.prototype,"idAttribute",null),o.__decorate([n.Component({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],a));function a(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+i++,this.roleAttribute="alert"}t.ErrorComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(1),a=n(5),l=n(3),r=n(2),d=n(8),c=n(12),u=n(87),p=n(7),h=n(21),f=n(13),g=n(4),n=n(86),m=0,a=(o=_,Object.defineProperty(_.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"value",{get:function(){return this._value},set:function(e){this._value=f.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=1<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this,e=("string"==typeof(e=g.isPresent(e)?e:"office")&&g.isPresent(h.PALETTEPRESETS[e])&&(this.columns=this.columns||h.PALETTEPRESETS[e].columns,e=h.PALETTEPRESETS[e].colors),"string"==typeof e?e.split(","):e);this._palette=e.map(function(e){return f.parseColor(e,t.format,!1,!1)})},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),_.prototype.ngOnInit=function(){var e;0===this.colorRows.length&&(e="name"!==this.format?"office":"accessible",this.palette=this.palette||e,this.setRows())},_.prototype.ngAfterViewInit=function(){var e=this;this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe(c.take(1)).subscribe(function(){e.selectCell(e.value)})},_.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},_.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())},_.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case l.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case l.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case l.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case l.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case l.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},_.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},_.prototype.handleCellSelection=function(e,t){this.readonly||(this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0,e=f.parseColor(e,this.format,!1,!1),this.cellSelection.emit(e),this.handleValueChange(e),this.selection!==e&&(this.selection=e,this.selectionChange.emit(e)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId))},_.prototype.writeValue=function(e){this.value=e,this.selectCell(e)},_.prototype.registerOnChange=function(e){this.notifyNgChanged=e},_.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},_.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},_.prototype.isEmpty=function(){return!1},_.prototype.reset=function(){this.focusedCell=null,g.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},_.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},_.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},_.prototype.selectCell=function(e){this.selectedCell=this.service.getCellCoordsFor(e),this.focusedCell=this.selectedCell},_.prototype.setRows=function(){g.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},_.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},_.prototype.setHostElementAriaLabel=function(){var e=f.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},_.prototype.handleEnter=function(){var e;g.isPresent(this.focusedCell)&&(e=this.service.getColorAt(this.focusedCell),this.handleCellSelection(e,this.focusedCell))},i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],_.prototype,"direction",void 0),i.__decorate([s.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],_.prototype,"paletteId",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],_.prototype,"id",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],_.prototype,"format",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],_.prototype,"value",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],_.prototype,"columns",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],_.prototype,"palette",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],_.prototype,"tabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],_.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],_.prototype,"tileSize",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"selectionChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"cellSelection",void 0),i.__decorate([s.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],_.prototype,"hostTabindex",null),i.__decorate([s.HostBinding("class.k-colorpalette"),i.__metadata("design:type",Boolean)],_.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("attr.aria-disabled"),s.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],_.prototype,"disabledClass",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],_.prototype,"readonlyAttribute",null),i.__decorate([s.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],_.prototype,"handleKeydown",null),i.__decorate([s.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],_.prototype,"handleHostBlur",null),o=i.__decorate([s.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return o})},n.ColorPaletteService,u.ColorPaletteLocalizationService,{provide:r.LocalizationService,useExisting:u.ColorPaletteLocalizationService},{provide:r.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),i.__metadata("design:paramtypes",[s.ElementRef,n.ColorPaletteService,s.ChangeDetectorRef,s.Renderer2,r.LocalizationService,s.NgZone])],_));function _(e,t,n,o,i,a){var r=this;this.host=e,this.service=t,this.cdr=n,this.renderer=o,this.localizationService=i,this.ngZone=a,this.id="k-colorpalette-"+m++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.cellSelection=new s.EventEmitter,this.hostClasses=!0,this.uniqueId=l.guid(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},d.validatePackage(p.packageMetadata),this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}t.ColorPaletteComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(0),r=n(1),i=n(5),s=n(9),l=n(12),d=n(2),c=n(3),u=n(8),p=n(11),h=n(13),f=n(4),g=n(32),m=n(88),_=n(43),v=n(14),y=n(7),b=0,n=(o=C,Object.defineProperty(C.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"value",{get:function(){return this._value},set:function(e){this._value=h.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=h.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t;f.isPresent(e)?(t=Number(e),this._tabindex=isNaN(t)?0:t):this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"isFocused",{get:function(){return!(!c.isDocumentAvailable()||!f.isPresent(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"alphaSliderValue",{get:function(){if(f.isPresent(this.hsva.value)&&f.isPresent(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&0<this.contrastTool.length},enumerable:!0,configurable:!0}),C.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},C.prototype.ngOnChanges=function(e){c.isChanged("value",e)&&!this.isFocused&&this.updateUI(),c.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},C.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},C.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},C.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},C.prototype.handleDragPress=function(e){this.disabled||this.readonly||!f.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},C.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},C.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(h.getColorFromHSV(this.hsva.value,this.format,this.opacity)))},C.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement,o=(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),0),i=0;switch(e.key){case"ArrowRight":o=v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowLeft":o=-v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowUp":i=-v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowDown":i=v.DRAGHANDLE_MOVE_SPEED}var a=parseInt(n.style.top,10)+i,r=parseInt(n.style.left,10)+o;this.renderer.setStyle(n,"top",a+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run(function(){return t.moveDragHandle(r,a)})}},C.prototype.changePosition=function(e){var t,n,o,i=this;this.disabled||this.readonly||(this.gradientDragHandle.nativeElement.focus(),t=this.gradientRect,n=e.clientX-t.left,o=e.clientY-t.top,this.ngZone.run(function(){return i.moveDragHandle(n,o)}))},C.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(h.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.backgroundColor=h.getColorFromHue(e),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.hueSliderTouched=!0},C.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(h.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.alphaSliderTouched=!0},C.prototype.handleInputsValueChange=function(e){e=h.parseColor(e,this.format,this.opacity);this.value!==e&&(this.handleValueChange(e),this.updateUI())},C.prototype.writeValue=function(e){this.value=e,f.isPresent(this.gradientWrapper)&&this.updateUI()},C.prototype.registerOnChange=function(e){this.notifyNgChanged=e},C.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},C.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(C.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=h.parseColor(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),C.prototype.isEmpty=function(){return!1},C.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,o=n.width,n=n.height,t=f.fitIntoBounds(t,0,n),e=f.fitIntoBounds(e,0,o),i=(this.setDragHandleElementPosition(t,e),this.hsva.value);i.s=e/o,i.v=1-t/n,this.hsva.next(i),this.updateValues.next(h.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(h.getColorFromHSV(a.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},C.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},C.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},C.prototype.setAlphaSliderBackground=function(e){var t;f.isPresent(this.alphaSlider)&&(t=this.alphaSlider.track.nativeElement,this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")"))},C.prototype.setHostElementAriaLabel=function(){var e=h.parseColor(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},C.prototype.setBackgroundColor=function(e){this.renderer.setStyle(this.hsvRectangle.nativeElement,"background",e)},C.prototype.updateUI=function(){if(c.isDocumentAvailable()){if(this.hueSliderTouched||this.alphaSliderTouched)return this.hueSliderTouched=!1,void(this.alphaSliderTouched=!1);this.hsva.next(this.value?h.getHSV(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,e=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,e),this.backgroundColor=h.getColorFromHue(this.hsva.value.h),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},C.prototype.addEventListeners=function(){var a=this;this.ngZone.runOutsideAngular(function(){var e=a.renderer.listen(a.host.nativeElement,"focusout",function(e){!p.containsFocus(a.host.nativeElement,e.relatedTarget)&&p.isUntouched(a.host)&&a.ngZone.run(function(){return a.notifyNgTouched()})}),t=a.renderer.listen(a.gradientDragHandle.nativeElement,"keydown",function(e){a.onKeyboardAction(e)}),n=a.renderer.listen(a.gradientDragHandle.nativeElement,"keyup",function(){a.renderer.removeClass(a.gradientWrapper.nativeElement,"k-dragging"),a.readonly||a.disabled||a.ngZone.run(function(){return a.handleValueChange(h.getColorFromHSV(a.hsva.value,a.format,a.opacity))})}),o=a.renderer.listen(a.gradientDragHandle.nativeElement,"focusin",function(){a.renderer.addClass(a.gradientDragHandle.nativeElement,"k-state-focus")}),i=a.renderer.listen(a.gradientDragHandle.nativeElement,"focusout",function(){a.renderer.removeClass(a.gradientDragHandle.nativeElement,"k-state-focus")});a.listeners.push(e,t,n,o,i)})},C.prototype.subscribeChanges=function(){var t=this;this.changeRequestsSubscription=this.updateValues.pipe(l.throttleTime(this.delay)).subscribe(function(e){t.handleValueChange(e)})},C.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},a.__decorate([r.HostBinding("class.k-colorgradient"),a.__metadata("design:type",Boolean)],C.prototype,"hostClasses",void 0),a.__decorate([r.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],C.prototype,"readonlyAttribute",null),a.__decorate([r.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],C.prototype,"disabledClass",null),a.__decorate([r.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],C.prototype,"gradientId",null),a.__decorate([r.HostBinding("attr.dir"),a.__metadata("design:type",String)],C.prototype,"direction",void 0),a.__decorate([r.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],C.prototype,"hostTabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],C.prototype,"id",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],C.prototype,"opacity",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],C.prototype,"disabled",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],C.prototype,"readonly",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],C.prototype,"clearButton",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Number)],C.prototype,"delay",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],C.prototype,"value",null),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],C.prototype,"contrastTool",null),a.__decorate([r.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],C.prototype,"tabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],C.prototype,"format",void 0),a.__decorate([r.Output(),a.__metadata("design:type",r.EventEmitter)],C.prototype,"valueChange",void 0),a.__decorate([r.ViewChild("gradientDragHandle",{read:r.ElementRef,static:!1}),a.__metadata("design:type",r.ElementRef)],C.prototype,"gradientDragHandle",void 0),a.__decorate([r.ViewChild("inputs",{static:!1}),a.__metadata("design:type",_.ColorInputComponent)],C.prototype,"inputs",void 0),a.__decorate([r.ViewChild("alphaSlider",{static:!1}),a.__metadata("design:type",g.SliderComponent)],C.prototype,"alphaSlider",void 0),a.__decorate([r.ViewChild("gradientWrapper",{static:!1}),a.__metadata("design:type",r.ElementRef)],C.prototype,"gradientWrapper",void 0),a.__decorate([r.ViewChild("hsvRectangle",{static:!1}),a.__metadata("design:type",r.ElementRef)],C.prototype,"hsvRectangle",void 0),o=a.__decorate([r.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return o})},{provide:c.KendoInput,useExisting:r.forwardRef(function(){return o})},m.ColorGradientLocalizationService,{provide:d.LocalizationService,useExisting:m.ColorGradientLocalizationService},{provide:d.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" #hsvRectangle>\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [value]="hsva.value.h"\n [smallStep]="5"\n [largeStep]="10"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox"\n *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),a.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2,r.ChangeDetectorRef,d.LocalizationService])],C));function C(e,t,n,o,i){var a=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=o,this.localizationService=i,this.hostClasses=!0,this.id="k-colorgradient-"+b++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=v.DEFAULT_OUTPUT_FORMAT,this.valueChange=new r.EventEmitter,this.backgroundColor=v.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new s.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.hueSliderTouched=!1,this.alphaSliderTouched=!1,this.updateValues=new s.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},u.validatePackage(y.packageMetadata),this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}t.ColorGradientComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);o.__exportStar(n(95),t),o.__exportStar(n(94),t),o.__exportStar(n(93),t),o.__exportStar(n(92),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(96),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(2),n=n(44),a=(i=r.LocalizationService,o.__extends(s,i),s.prototype.get=function(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):i.prototype.get.call(this,e)},o.__decorate([o.__param(0,a.Inject(r.L10N_PREFIX)),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(2,a.Inject(r.RTL)),o.__param(3,a.Optional()),o.__param(3,a.Inject(n.ColorPickerLocalizationService)),o.__metadata("design:paramtypes",[String,r.MessageService,Boolean,n.ColorPickerLocalizationService])],s));function s(e,t,n,o){e=i.call(this,e,t,n)||this;return e.colorPickerLocalization=o,e}t.FlatColorPickerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(1),a=n(5),l=n(9),r=n(2),d=n(3),c=n(8),u=n(22),p=n(97),h=n(7),f=n(20),g=n(13),m=n(4),_=n(19),v=n(18),y=n(42),n=n(41),y=(o=b,Object.defineProperty(b.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return this._value},set:function(e){this._value=g.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),b.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},b.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},b.prototype.ngOnChanges=function(e){d.isChanged("value",e)&&(this.selection=this.value,this.setHostElementAriaLabel()),d.isChanged("paletteSettings",e)&&this.setSizingVariables()},b.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(b.prototype,"headerHasContent",{get:function(){return this.preview||1<this.views.length||this.clearButton},enumerable:!0,configurable:!0}),b.prototype.isEmpty=function(){return!1},b.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},b.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},b.prototype.reset=function(){m.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},b.prototype.onViewChange=function(e){var t=this;this.activeView!==e&&(this.activeView=e,this.activeViewChange.emit(e),"gradient"===this.activeView&&this.ngZone.runOutsideAngular(function(){setTimeout(function(){t.gradient.gradientDragHandle.nativeElement.focus()})}))},b.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},b.prototype.handleValueChange=function(e){this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e)},b.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},b.prototype.writeValue=function(e){this.value=e},b.prototype.registerOnChange=function(e){this.notifyNgChanged=e},b.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},b.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},b.prototype.resetSelection=function(e){e=new f.ColorPickerCancelEvent(e);this.cancel.emit(e),e.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},b.prototype.setHostElementAriaLabel=function(){var e=g.parseColor(this.value,this.format,this.gradientSettings.opacity),e=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},b.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),e="--kendo-color-preview-columns: "+this.paletteSettings.columns+";\n --kendo-color-preview-width: "+e.width+"px;\n --kendo-color-preview-height: "+e.height+"px;";this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack").setAttribute("style",e)},b.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},b.prototype.resetInnerComponentValue=function(){this.selection=null,(this.gradient||this.palette).reset()},b.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},b.prototype.setActiveView=function(){if(m.isPresent(this.activeView)){if(s.isDevMode()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]},b.prototype.initDomEvents=function(){var e,t=this;this.host&&(e=this.host.nativeElement,this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focus",function(){t.focused=!0})),t.subscriptions.add(t.renderer.listen(e,"blur",function(){t.focused=!1,t.notifyNgTouched()}))}))},i.__decorate([s.HostBinding("class.k-flatcolorpicker"),s.HostBinding("class.k-coloreditor"),i.__metadata("design:type",Boolean)],b.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("class.k-state-disabled"),s.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],b.prototype,"disabledClass",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],b.prototype,"ariaReadonly",null),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],b.prototype,"direction",void 0),i.__decorate([s.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],b.prototype,"hostTabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],b.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],b.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],b.prototype,"format",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],b.prototype,"value",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],b.prototype,"tabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],b.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],b.prototype,"preview",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],b.prototype,"actionsLayout",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],b.prototype,"activeView",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Array)],b.prototype,"views",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],b.prototype,"gradientSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],b.prototype,"paletteSettings",null),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],b.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],b.prototype,"cancel",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],b.prototype,"activeViewChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],b.prototype,"actionButtonClick",void 0),i.__decorate([s.ViewChild("header",{static:!1}),i.__metadata("design:type",y.FlatColorPickerHeaderComponent)],b.prototype,"header",void 0),i.__decorate([s.ViewChild("gradient",{static:!1}),i.__metadata("design:type",_.ColorGradientComponent)],b.prototype,"gradient",void 0),i.__decorate([s.ViewChild("palette",{static:!1}),i.__metadata("design:type",v.ColorPaletteComponent)],b.prototype,"palette",void 0),i.__decorate([s.ViewChild("footer",{static:!1}),i.__metadata("design:type",n.FlatColorPickerActionButtonsComponent)],b.prototype,"footer",void 0),o=i.__decorate([s.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:d.KendoInput,useExisting:s.forwardRef(function(){return o})},p.FlatColorPickerService,u.FlatColorPickerLocalizationService,{provide:r.LocalizationService,useExisting:u.FlatColorPickerLocalizationService},{provide:r.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),i.__metadata("design:paramtypes",[s.ElementRef,p.FlatColorPickerService,r.LocalizationService,s.ChangeDetectorRef,s.Renderer2,s.NgZone])],b));function b(e,t,n,o,i,a){var r=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=o,this.renderer=i,this.ngZone=a,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new s.EventEmitter,this.cancel=new s.EventEmitter,this.activeViewChange=new s.EventEmitter,this.actionButtonClick=new s.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new l.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},c.validatePackage(h.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}t.FlatColorPickerComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(51),n=n(75),a=(t.SHARED_DIRECTIVES=[a.InputSeparatorComponent,n.TextAreaDirective],o.__decorate([i.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES]})],r));function r(){}t.SharedModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=o.__decorate([n.Directive({selector:"[kendoTextBoxPrefixTemplate]"}),o.__param(0,n.Optional()),o.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.TextBoxPrefixTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=o.__decorate([n.Directive({selector:"[kendoTextBoxSuffixTemplate]"}),o.__param(0,n.Optional()),o.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.TextBoxSuffixTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(29),r=n(6),s=n(58),l=n(73),n=n(3),o=o.__decorate([i.NgModule({declarations:[s.LocalizedNumericTextBoxMessagesDirective,a.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],exports:[a.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],imports:[r.CommonModule,n.EventsModule]})],d);function d(){}t.NumericTextBoxModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(32),s=n(68),l=n(66),d=n(102),n=n(15),o=o.__decorate([i.NgModule({declarations:[r.SliderComponent,d.SliderCustomMessagesComponent,l.LocalizedSliderMessagesDirective],exports:[r.SliderComponent,d.SliderCustomMessagesComponent,n.LabelTemplateDirective,l.LocalizedSliderMessagesDirective],imports:[a.CommonModule,s.SlidersCommonModule]})],c);function c(){}t.SliderModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),l=n(1),d=n(3),c=n(4),a=n(11),r=n(31),s=n(111),u=n(110),p=n(5),h=n(109),f=n(2),g=n(8),m=n(7),_=n(74),v=n(108),y=n(107),b=n(30),C=["min","max","step","decimals"],k={decimals:null,max:null,min:null,step:1},n=(o=S,Object.defineProperty(S.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),S.prototype.ngOnInit=function(){var t=this;this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(p.NgControl,null),this.ngZone.runOutsideAngular(function(){t.domEvents.push(t.renderer.listen(t.hostElement.nativeElement,"mousewheel",t.handleWheel.bind(t))),t.domEvents.push(t.renderer.listen(t.hostElement.nativeElement,"DOMMouseScroll",t.handleWheel.bind(t)))})},S.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},S.prototype.ngOnChanges=function(t){d.anyChanged(C,t,!1)&&this.parseOptions(C.filter(function(e){return t[e]})),this.verifySettings(),d.anyChanged(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?u.createMinValidator(this.min):v.noop,this.maxValidateFn=this.rangeValidation?s.createMaxValidator(this.max):v.noop,this.ngValidatorChange()),d.anyChanged(["autoCorrect","decimals","min"],t)&&delete this.numericRegex,d.anyChanged(["value","format"],t,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},S.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})},S.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},S.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},S.prototype.writeValue=function(e){this.verifyValue(e);e=this.restrictModelValue(e);this.value=e,this.setInputValue()},S.prototype.registerOnChange=function(e){this.ngChange=e},S.prototype.registerOnTouched=function(e){this.ngTouched=e},S.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},S.prototype.focus=function(){a.invokeElementMethod(this.numericInput,"focus")},S.prototype.blur=function(){a.invokeElementMethod(this.numericInput,"blur")},S.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(S.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&0<=this.decimals},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),S.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||v.isRightClick(t)||(b.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,_.INITIAL_SPIN_DELAY):this.setInputValue())},S.prototype.updateValue=function(e){var t=this;c.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},S.prototype.replaceNumpadDotValue=function(){var e,t,n,o,i,a=this.inputValue||"";return this.previousSelection&&(t=(e=this.numericInput.nativeElement).selectionStart,n=e.selectionEnd,o=(i=this.previousSelection).start,i=i.end,e.value=a=a.substring(0,o)+this.decimalSeparator+a.substring(i),this.setSelection(t,n)),a},S.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=v.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},S.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){n.spin(e,_.SPIN_DELAY)},t),this.addStep(e)},S.prototype.addStep=function(e){e=r.add(this.value||0,this.step*e),e=this.limitValue(e);e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)},S.prototype.setSelection=function(e,t){this.focused&&a.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},S.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(v.isNumber(this.max)&&e>this.max&&(t=this.max),v.isNumber(this.min)&&e<this.min&&(t=this.min)),t},S.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,o=t.selectionEnd,t=t.value,i=e,a=!1;if(!this.isInRange(e)){var r=t.length-String(this.inputValue).length,s=this.min,l=this.max,d=v.isNumber(l),c=v.isNumber(s),u=void 0,p=void 0,h=e;if(0===n&&this.inputValue.substr(1)===t)return{selectionEnd:o,selectionStart:n,value:null};d&&l<e?0<e?p=!0:u=l:c&&e<s&&(0<e?u=s:p=!0),u?(d=this.tryPadValue(e,u))&&v.decimalPart(e)!==v.decimalPart(u)&&(h=d,a=!0):p&&this.inputValue&&n!==t.length&&(h=parseFloat(t.substr(0,n)+t.substr(n+r))),i=this.limitValue(h),a=(a||i!==h)&&this.previousSelection&&0<this.previousSelection.end-this.previousSelection.start+r}return{selectionEnd:a?String(i).length:o,selectionStart:n,value:i}},S.prototype.tryPadValue=function(e,t){var n,t=String(Math.floor(t)).length,o=v.pad(e,t),e=v.pad(e,t+1);return this.isInRange(o)?n=o:this.isInRange(e)&&(n=e),n},S.prototype.isInRange=function(e){return!v.isNumber(e)||(!v.isNumber(this.min)||this.min<=e)&&(!v.isNumber(this.max)||e<=this.max)},S.prototype.restrictModelValue=function(e){e=this.restrictDecimals(e,!0);return e=this.autoCorrect&&this.limitValue(e)!==e?null:e},S.prototype.restrictDecimals=function(e,t){var n,o,i=e;return e&&this.hasDecimals&&(n=this.decimals,o=String(e),t||_.EXPONENT_REGEX.test(o)?i=r.toFixedPrecision(e,n):(e=(t=o.split(_.POINT))[1])&&e.length>n&&(e=e.substr(0,n),i=parseFloat(""+t[0]+_.POINT+e))),i},S.prototype.formatInputValue=function(e){var t=String(e),n=_.EXPONENT_REGEX.exec(t);return(t=n?e.toFixed(r.limitPrecision(parseInt(n[1],10))):t).replace(_.POINT,this.decimalSeparator)},S.prototype.formatValue=function(e,t){return null!==e&&v.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},S.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);e=this.formatValue(e,t);this.elementValue=e,this.inputValue=e},S.prototype.verifySettings=function(){if(l.isDevMode()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+_.MIN_DOC_LINK+" and "+_.MAX_DOC_LINK+".")},S.prototype.verifyValue=function(e){if(l.isDevMode()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},S.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],o=this[n];if("string"==typeof o){var i=parseFloat(o),a=!isNaN(i);if(l.isDevMode()&&!a&&""!==o)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(o)+" was set.");this[n]=a?i:k[n]}}},S.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},S.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused)return(e=e.split(this.decimalSeparator)[1])&&e.length>this.decimals&&e.lastIndexOf("0")===e.length-1},S.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},S.prototype.selectCaret=function(){var e=v.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,e=t.substring(0,e);this.setInputValue(),e.length?(e=v.extractSignificantNumericChars(e,this.decimalSeparator),t=this.adjustSignificantChars(t,e),this.setSelection(t,t)):this.setSelection(0,0)},S.prototype.numberOfLeadingZeroes=function(e){var t,n=e.indexOf(this.decimalSeparator),e=e.match(/^[^1-9]*?(0+)/);return e?(t=e[0].length,e=e[1].length,t===n?e-1:e):0},S.prototype.adjustSignificantChars=function(e,t){e=this.numberOfLeadingZeroes(e);return 0<e?Math.max(0,t-e):t},S.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=c.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"autoCorrect",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],S.prototype,"format",null),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"max",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"min",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"decimals",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"placeholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"step",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"spinners",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"rangeValidation",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],S.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"changeValueOnScroll",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"selectOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"maxlength",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],S.prototype,"size",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],S.prototype,"rounded",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],S.prototype,"fillMode",null),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],S.prototype,"valueChange",void 0),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],S.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],S.prototype,"onBlur",void 0),i.__decorate([l.ViewChild("numericInput",{static:!0}),i.__metadata("design:type",l.ElementRef)],S.prototype,"numericInput",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],S.prototype,"direction",void 0),i.__decorate([l.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],S.prototype,"disableClass",null),i.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-numerictextbox"),i.__metadata("design:type",Boolean)],S.prototype,"hostClasses",void 0),o=i.__decorate([l.Component({exportAs:"kendoNumericTextBox",providers:[f.LocalizationService,{provide:f.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:p.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:p.NG_VALIDATORS,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[h.IntlService,l.Renderer2,f.LocalizationService,l.Injector,l.NgZone,l.ChangeDetectorRef,l.ElementRef])],S));function S(e,t,n,o,i,a,r){var s=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=o,this.ngZone=i,this.changeDetector=a,this.hostElement=r,this.focusableId="k-"+d.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.ArrowDirection=y.ArrowDirection,this.arrowDirection=y.ArrowDirection.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=v.noop,this.maxValidateFn=v.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=v.noop,this.ngTouched=v.noop,this.ngValidatorChange=v.noop,this.domEvents=[],this.increasePress=function(e){s.arrowPress(y.ArrowDirection.Up,e)},this.decreasePress=function(e){s.arrowPress(y.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(s.spinTimeout),s.arrowDirection!==y.ArrowDirection.None&&(s.arrowDirection=y.ArrowDirection.None,s.changeDetector.detectChanges())},this.handlePaste=function(){s.isPasted=!0},this.handleInput=function(){var e=s.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,o=e.value;if(s.pressedKey===d.Keys.NumpadDecimal&&(o=s.replaceNumpadDotValue()),s.isPasted&&(o=s.formatInputValue(s.intl.parseNumber(o))),!s.isValid(o))return e.value=s.inputValue,void s.setSelection(t-1,n-1);var i,a=s.intl.parseNumber(o),r=s.restrictDecimals(a);s.autoCorrect&&(r=(i=s.limitInputValue(r)).value,t=i.selectionStart,n=i.selectionEnd),a!==r||s.hasTrailingZeros(o)||!s.focused?(s.setInputValue(r),s.setSelection(t,n)):s.inputValue=o,s.isPasted&&(e.value=s.inputValue),s.updateValue(r),s.previousSelection=null,s.isPasted=!1},this.handleDragEnter=function(){s.focused||s.isDisabled||s.setInputValue(s.value,!0)},this.handleMouseDown=function(){s.mouseDown=!0},this.handleFocus=function(){var e;s.focused||(s.focused=!0,s.isDisabled)||(e=s.selectOnFocus||!s.mouseDown,s.ngZone.runOutsideAngular(function(){setTimeout(function(){e?s.selectAll():s.selectCaret()},0)})),s.mouseDown=!1,d.hasObservers(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.inputValue!==s.elementValue&&s.handleInput(),s.setInputValue(),(d.hasObservers(s.onBlur)||c.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.ngTouched(),s.onBlur.emit()})},this.handleKeyDown=function(e){var t;s.isDisabled||(e.keyCode===d.Keys.ArrowDown?t=-1:e.keyCode===d.Keys.ArrowUp&&(t=1),t&&s.step&&(e.preventDefault(),s.addStep(t)),t=s.numericInput.nativeElement,s.previousSelection={end:t.selectionEnd,start:t.selectionStart},s.pressedKey=e.keyCode)},this.handleWheel=function(e){s.focused&&!s.isDisabled&&s.changeValueOnScroll&&(e.preventDefault(),e=v.getDeltaFromMouseWheel(e),s.addStep(e))},g.validatePackage(m.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}t.NumericTextBoxComponent=n},function(e,t){e.exports=g},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.limitPrecision=function(e){return Math.min(e,20)},o.fractionLength=function(e){return(String(e).split(".")[1]||"").length};function i(e,t){return Math.max(o.fractionLength(e),o.fractionLength(t))}o.toFixedPrecision=function(e,t){t=o.limitPrecision(t);return parseFloat(e.toFixed(t))},o.add=function(e,t){var n=i(e,t);return o.toFixedPrecision(e+t,n)},o.subtract=function(e,t){return o.add(e,-t)},o.multiply=function(e,t){var n=o.fractionLength(e)+o.fractionLength(t);return o.toFixedPrecision(e*t,n)},o.divide=function(e,t){if(0===t)return NaN;var n=i(e,t),n=Math.pow(10,n);return n*e/(n*t)},o.remainder=function(e,t){return Math.abs(o.subtract(e,o.multiply(t,Math.floor(o.divide(e,t)))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(0),a=n(1),r=n(5),l=n(9),d=n(12),c=n(10),u=n(113),p=n(2),h=n(4),f=n(10),g=n(11),m=n(3),n=(s=n(79).SliderBase,i.__extends(_,s),o=_,Object.defineProperty(_.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"currentValue",{get:function(){return h.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),_.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},_.prototype.blur=function(){this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},_.prototype.ngOnChanges=function(e){var t=this;m.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t.sizeComponent(!1)})},_.prototype.ngAfterViewInit=function(){var e=this;m.isDocumentAvailable()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,function(){return e.increaseValue()}),this.setValueChangeInterval(this.decreaseButton.nativeElement,function(){return e.decreaseValue()})),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent(!1)}),this.attachElementEventHandlers())},_.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(_.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),_.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},_.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(f.eventValue(e,this.track.nativeElement,this.getProps()))},_.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},_.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},_.prototype.registerOnChange=function(e){this.ngChange=e},_.prototype.registerOnTouched=function(e){this.ngTouched=e},_.prototype.changeValue=function(e){var t=this;h.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()})},_.prototype.sizeComponent=function(e){var t,n,o,i,a;m.isDocumentAvailable()&&(t=this.wrapper.nativeElement,n=this.track.nativeElement,o=this.sliderSelection.nativeElement,i=this.draghandle.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null,e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,o,i,a,this.hostElement.nativeElement]),a=this.getProps(),(a=new u.SliderModel(a,t,n,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(i),a.positionSelection(o),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(_.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e&&this.sliderSelection&&this.draghandle&&(t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement,e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e)},enumerable:!0,configurable:!0}),_.prototype.setValueChangeInterval=function(o,i){var a=this;this.ngZone.runOutsideAngular(function(){var e=l.fromEvent(o,"mousedown"),t=l.fromEvent(o,"mouseup"),n=l.fromEvent(o,"mouseout"),e=e.pipe(d.filter(function(e){return 0===e.button&&!a.isDisabled}),d.concatMap(function(){return l.interval(150).pipe(d.startWith(-1),d.takeUntil(l.merge(t,n)))})).subscribe(function(){a.isFocused||g.invokeElementMethod(a.draghandle,"focus"),i()});a.subscriptions.add(e)})},_.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:c.trimValue(this.max,this.min,this.value),vertical:this.vertical}},_.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandle.nativeElement&&t.handleBlur(),n=!1):o||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){o=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){o=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===m.Keys.Tab}))})},i.__decorate([a.Input(),i.__metadata("design:type",String)],_.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],_.prototype,"dragHandleTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],_.prototype,"incrementTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],_.prototype,"animate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],_.prototype,"decrementTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],_.prototype,"showButtons",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],_.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],_.prototype,"tabIndex",null),i.__decorate([a.ViewChild("draghandle",{static:!0}),i.__metadata("design:type",a.ElementRef)],_.prototype,"draghandle",void 0),i.__decorate([a.ViewChild("decreaseButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"decreaseButton",void 0),i.__decorate([a.ViewChild("increaseButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],_.prototype,"increaseButton",void 0),o=i.__decorate([a.Component({exportAs:"kendoSlider",providers:[p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return o})},{provide:m.KendoInput,useExisting:a.forwardRef(function(){return o})}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[p.LocalizationService,a.Injector,a.Renderer2,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],_));function _(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=o,r.changeDetector=i,r.hostElement=a,r.focusableId="k-"+m.guid(),r.animate=!0,r.showButtons=!0,r.value=r.min,r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t=e.target;r.isDisabled||f.isButton(t)||f.isButton(t.parentNode)||(t=f.eventValue(e,r.track.nativeElement,r.getProps()),r.changeValue(t)),g.invokeElementMethod(r.draghandle,"focus")},r.onKeyDown=function(e){var t=r.getProps(),n=t.max,o=t.min,i=r.keyBinding[e.keyCode];!r.isDisabled&&i&&(i=i(t),r.changeValue(c.trimValue(n,o,i)),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.decreaseValue=function(){r.changeValue(f.decreaseValueToStep(r.value,r.getProps()))},r.increaseValue=function(){r.changeValue(f.increaseValueToStep(r.value,r.getProps()))},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(m.hasObservers(r.onBlur)||h.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}t.SliderComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(5),r=n(9),s=n(3),l=n(2),d=n(8),c=n(7),u=n(17),n=n(16),u=(Object.defineProperty(p.prototype,"errorClass",{get:function(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"disabledClass",{get:function(){return!!this.control&&!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),p.prototype.ngAfterViewInit=function(){this.setDescription()},p.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},p.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},p.prototype.disabledControl=function(){return this.control.disabled},p.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every(function(e){return e.nativeElement.hasAttribute("disabled")})},p.prototype.validateFormControl=function(e){if(i.isDevMode()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},p.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every(function(e){return e.name===n&&t.isRadioControl(e)})},p.prototype.isRadioControl=function(e){return e.valueAccessor instanceof a.RadioControlValueAccessor},p.prototype.updateDescription=function(){var n=this,e=this.findControlElements();e&&e.forEach(function(e){var t;(0<n.errorChildren.length||0<n.hintChildren.length)&&(t=n.generateDescriptionIds(e),n.renderer.setAttribute(e,"aria-describedby",t))})},p.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&s.isDocumentAvailable()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map(function(e){return e.nativeElement})},p.prototype.generateDescriptionIds=function(e){var t=new Set;return e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach(function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}),this.hintChildren.forEach(function(e){t.add(e.id)}),this.errorChildren.forEach(function(e){t.add(e.id)}),Array.from(t).join(" ")},p.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,e=e.pristine;return t||n&&e},p.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},p.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe(function(){return e.updateDescription()})),this.subscriptions.add(this.hintChildren.changes.subscribe(function(){return e.updateDescription()}))},o.__decorate([i.HostBinding("class.k-form-field"),o.__metadata("design:type",Boolean)],p.prototype,"hostClass",void 0),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],p.prototype,"direction",void 0),o.__decorate([i.HostBinding("class.k-form-field-error"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],p.prototype,"errorClass",null),o.__decorate([i.HostBinding("class.k-form-field-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],p.prototype,"disabledClass",null),o.__decorate([i.ContentChildren(a.NgControl,{descendants:!0}),o.__metadata("design:type",i.QueryList),o.__metadata("design:paramtypes",[i.QueryList])],p.prototype,"formControls",null),o.__decorate([i.ContentChildren(a.NgControl,{read:i.ElementRef,descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"controlElementRefs",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!0}),o.__metadata("design:type",Object)],p.prototype,"kendoInput",void 0),o.__decorate([i.ContentChildren(u.ErrorComponent,{descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"errorChildren",void 0),o.__decorate([i.ContentChildren(n.HintComponent,{descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"hintChildren",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"showHints",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"orientation",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"showErrors",void 0),o.__decorate([i.Component({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.formfield"}]}),o.__metadata("design:paramtypes",[i.Renderer2,l.LocalizationService,i.ElementRef])],p));function p(e,t,n){var o=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new r.Subscription,this.rtl=!1,d.validatePackage(c.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;o.rtl=e,o.direction=o.rtl?"rtl":"ltr"}))}t.FormFieldComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(33),s=n(16),n=n(17),o=o.__decorate([i.NgModule({declarations:[s.HintComponent,n.ErrorComponent,r.FormFieldComponent],exports:[s.HintComponent,n.ErrorComponent,r.FormFieldComponent],imports:[a.CommonModule]})],l);function l(){}t.FormFieldModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(8),r=n(4),s=n(7),n=(Object.defineProperty(l.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),l.prototype.ngAfterViewInit=function(){var t=this;["size"].forEach(function(e){t.handleClasses(t[e],e)})},l.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=r.getStylingClasses("radio",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},o.__decorate([i.HostBinding("class.k-radio"),o.__metadata("design:type",Boolean)],l.prototype,"kendoClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],l.prototype,"size",null),o.__decorate([i.Directive({selector:"input[kendoRadioButton]"}),o.__metadata("design:paramtypes",[i.Renderer2,i.ElementRef])],l));function l(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",a.validatePackage(s.packageMetadata)}t.RadioButtonDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(35),n=n(6),o=o.__decorate([i.NgModule({declarations:[a.RadioButtonDirective],exports:[a.RadioButtonDirective],imports:[n.CommonModule]})],r);function r(){}t.RadioButtonModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(4),n=(Object.defineProperty(r.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),r.prototype.ngAfterViewInit=function(){var t=this;["size","rounded"].forEach(function(e){t.handleClasses(t[e],e)})},r.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=a.getStylingClasses("checkbox",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},o.__decorate([i.HostBinding("class.k-checkbox"),o.__metadata("design:type",Boolean)],r.prototype,"kendoClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"rounded",null),o.__decorate([i.Directive({selector:"input[kendoCheckBox]"}),o.__metadata("design:paramtypes",[i.Renderer2,i.ElementRef])],r));function r(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}t.CheckBoxDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(37),n=n(6),o=o.__decorate([i.NgModule({declarations:[a.CheckBoxDirective],exports:[a.CheckBoxDirective],imports:[n.CommonModule]})],r);function r(){}t.CheckBoxModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(40),n=(o=n.ColorPickerMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.ColorPickerMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedColorPickerMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"colorPaletteNoColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"colorGradientNoColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"flatColorPickerNoColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"colorPickerNoColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"colorGradientHandle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"clearButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"hueSliderHandle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"opacitySliderHandle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"hexInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"redInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"greenInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"blueInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"alphaInputPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"passContrast",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"failContrast",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"contrastRatio",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"previewColor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"revertSelection",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"gradientView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"paletteView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"formatButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"applyButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"cancelButton",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.ColorPickerMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),n=n(2),o=(a.prototype.getText=function(e){return this.localizationService.get(e)},a.prototype.onActionButtonClick=function(e,t){this.actionButtonClick.emit({target:e,originalEvent:t})},o.__decorate([i.HostBinding("class.k-coloreditor-footer"),i.HostBinding("class.k-actions"),i.HostBinding("class.k-hstack"),o.__metadata("design:type",Boolean)],a.prototype,"hostClasses",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"actionButtonClick",void 0),o.__decorate([i.ViewChild("last",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],a.prototype,"lastButton",void 0),o.__decorate([i.Component({selector:"[kendoFlatColorPickerActionButtons]",template:'\n <button\n class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"\n [attr.title]="getText(\'cancelButton\')"\n (click)="onActionButtonClick(\'cancel\', $event)"\n type="button"\n >{{getText(\'cancelButton\')}}</button>\n <button #last\n class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"\n [attr.title]="getText(\'applyButton\')"\n (click)="onActionButtonClick(\'apply\', $event)"\n type="button"\n >{{getText(\'applyButton\')}}</button>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService])],a));function a(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new i.EventEmitter}t.FlatColorPickerActionButtonsComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),n=n(2),o=(a.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(a.prototype,"viewButtons",{get:function(){return this.views&&0<=this.views.indexOf("gradient")&&0<=this.views.indexOf("palette")},enumerable:!0,configurable:!0}),a.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},a.prototype.getText=function(e){return this.localizationService.get(e)},o.__decorate([i.HostBinding("class.k-coloreditor-header"),i.HostBinding("class.k-hstack"),o.__metadata("design:type",Boolean)],a.prototype,"hostClasses",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],a.prototype,"clearButton",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],a.prototype,"activeView",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Array)],a.prototype,"views",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],a.prototype,"preview",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],a.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],a.prototype,"selection",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"viewChange",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"valuePaneClick",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"clearButtonClick",void 0),o.__decorate([i.ViewChildren("viewButtons",{read:i.ElementRef}),o.__metadata("design:type",i.QueryList)],a.prototype,"viewButtonsCollection",void 0),o.__decorate([i.ViewChild("clearButton",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],a.prototype,"clearButtonElement",void 0),o.__decorate([i.Component({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n type="button"\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n type="button"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService])],a));function a(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new i.EventEmitter,this.valuePaneClick=new i.EventEmitter,this.clearButtonClick=new i.EventEmitter}t.FlatColorPickerHeaderComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(13),r=n(4),s=n(3),l=n(9),d=n(2),n=n(29),n=(Object.defineProperty(c.prototype,"isFocused",{get:function(){if(!s.isDocumentAvailable()||!r.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rgbaInputValid",{get:function(){var t=this;return Object.keys(this.rgba).every(function(e){return r.isPresent(t.rgba[e])})},enumerable:!0,configurable:!0}),c.prototype.ngAfterViewInit=function(){this.initDomEvents()},c.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},c.prototype.ngOnChanges=function(e){r.isPresent(e.value)&&!this.isFocused&&(this.hex=a.parseColor(this.value,"hex",this.opacity),this.rgba=a.getRGBA(this.value),this.rgba.a=a.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(c.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),c.prototype.handleRgbaValueChange=function(){var e=a.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=a.getRGBA(this.value),this.hex=a.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},c.prototype.handleHexValueChange=function(e){this.hex=e;e=a.parseColor(e,"rgba",this.opacity);r.isPresent(e)&&e!==this.value&&(this.value=e,this.rgba=a.getRGBA(e),this.valueChange.emit(e))},c.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=a.getRGBA(this.value))},c.prototype.handleHexInputBlur=function(){this.hex=a.parseColor(this.value,"hex",this.opacity)},c.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},c.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",function(){return e.toggleFormatView()}))},o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"focusableId",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"formatView",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"opacity",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"disabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"readonly",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"valueChange",void 0),o.__decorate([i.HostBinding("class.k-colorgradient-inputs"),i.HostBinding("class.k-hstack"),o.__metadata("design:type",Boolean)],c.prototype,"colorInputClass",void 0),o.__decorate([i.ViewChild("opacityInput",{static:!1}),o.__metadata("design:type",n.NumericTextBoxComponent)],c.prototype,"opacityInput",void 0),o.__decorate([i.ViewChild("hexInput",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"hexInput",void 0),o.__decorate([i.ViewChild("blueInput",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"blueInput",void 0),o.__decorate([i.ViewChild("toggleFormatButton",{static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"toggleFormatButton",void 0),o.__decorate([i.Component({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n type="button"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,d.LocalizationService])],c));function c(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+s.guid(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new i.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new l.Subscription}t.ColorInputComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=n(2),a=(o=n.LocalizationService,i.__extends(r,o),i.__decorate([i.__param(0,a.Inject(n.L10N_PREFIX)),i.__param(1,a.Optional()),i.__param(2,a.Optional()),i.__param(2,a.Inject(n.RTL)),i.__metadata("design:paramtypes",[String,n.MessageService,Boolean])],r));function r(e,t,n){return o.call(this,e,t,n)||this}t.ColorPickerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(12),s=n(1),r=n(5),l=n(9),d=n(23),c=n(46),u=n(8),p=n(3),h=n(2),f=n(7),g=n(21),m=n(20),_=n(13),v=n(4),y=n(44),b=n(14),C=["focus","blur"],n=(o=k,Object.defineProperty(k.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"view",{get:function(){return this.views&&0<this.views.length?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"value",{get:function(){return this._value},set:function(e){this._value=_.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"isOpen",{get:function(){return v.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"iconStyles",{get:function(){return this.iconClass||(this.icon?"k-icon k-i-"+this.icon:void 0)},enumerable:!0,configurable:!0}),k.prototype.ngOnInit=function(){var e="name"!==this.format?b.DEFAULT_PRESET:b.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&g.PALETTEPRESETS[t]?g.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},k.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)}),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},k.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=_.parseColor(this.value,this.format,this.gradientSettings.opacity)),p.isChanged("value",e)&&this.setHostElementAriaLabel()},k.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",C)},k.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},k.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},k.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),p.closest(e.target,function(e){return e===t.activeColor.nativeElement}))return e=new m.ActiveColorClickEvent(this.value),this.activeColorClick.emit(e),void(e.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen));this.toggleWithEvents(!this.isOpen)}},k.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},k.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run(function(){e.focus(),e.onFocus.emit()})},k.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},k.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run(function(){e.onBlur.emit(),e.isFocused=!1})},k.prototype.reset=function(){v.isPresent(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},k.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=v.isPresent(e)?e:!this.isOpen)&&this.openPopup())},k.prototype.handleValueChange=function(e){e=_.parseColor(e,this.format,this.gradientSettings.opacity);e!==this.value&&(this.value=e,this.valueChange.emit(e),this.setHostElementAriaLabel(),this.notifyNgChanged(e))},k.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},k.prototype.writeValue=function(e){this.value=e},k.prototype.registerOnChange=function(e){this.notifyNgChanged=e},k.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},k.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},k.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==p.Keys.ArrowDown&&e.keyCode!==p.Keys.Enter||(e.preventDefault(),this.ngZone.run(function(){t.toggleWithEvents(!0)}))},k.prototype.handlePopupKeyDown=function(e){var t,n;e.keyCode===p.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===p.Keys.Tab&&(t=(e.shiftKey?this.firstFocusableElement:this.lastFocusableElement).nativeElement,n=(e.shiftKey?this.lastFocusableElement:this.firstFocusableElement).nativeElement,e.target===t&&(e.preventDefault(),n.focus()))},k.prototype.isEmpty=function(){return!1},k.prototype.setHostElementAriaLabel=function(){var e=""+(this.value||this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},k.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,t=v.getStylingClasses("picker",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},k.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return p.closest(e.relatedTarget,function(e){return e===t.host.nativeElement})||n},k.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new m.ColorPickerOpenEvent,this.open.emit(t)):(t=new m.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},k.prototype.focusFirstElement=function(){var t=this;this.ngZone.onStable.pipe(a.take(1)).subscribe(function(){var e;t.flatColorPicker&&((e=t.flatColorPicker.gradient)?e.gradientDragHandle:t.flatColorPicker.palette.host).nativeElement.focus()})},k.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"},popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})})},k.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(k.prototype,"firstFocusableElement",{get:function(){var e;return!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton?(e=this.flatColorPicker.gradient)?e.gradientDragHandle:this.flatColorPicker.palette.host:1<this.views.length?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"lastFocusableElement",{get:function(){if(this.preview)return this.flatColorPicker.footer.lastButton;if(this.flatColorPicker.palette)return this.flatColorPicker.palette.host;var e=this.flatColorPicker.gradient,t=e&&e.inputs;return e&&t&&"hex"===t.formatView?t.hexInput:this.gradientSettings.opacity?t.opacityInput.numericInput:t.blueInput},enumerable:!0,configurable:!0}),k.prototype.handleDomEvents=function(t,e){var n=this,o=this.host.nativeElement;e.forEach(function(e){return o[t+"EventListener"](e,n.domFocusListener,!0)})},k.prototype.initDomEvents=function(){var e,n=this;this.host&&(e=this.host.nativeElement,this.ngZone.runOutsideAngular(function(){n.subscriptions.add(n.renderer.listen(e,"focusin",function(){n.handleWrapperFocus()})),n.subscriptions.add(n.renderer.listen(e,"focusout",function(e){var t=!!n.popupRef&&p.closest(e.relatedTarget,function(e){return e===n.flatColorPicker.host.nativeElement}),e=p.closest(e.relatedTarget,function(e){return e===n.host.nativeElement});t||e||n.handleWrapperBlur()})),n.handleDomEvents("add",C),n.subscriptions.add(n.renderer.listen(e,"keydown",function(e){n.handleWrapperKeyDown(e)})),n.subscriptions.add(n.renderer.listen(e,"click",function(e){n.ngZone.run(function(){n.handleWrapperClick(e)})}))}))},k.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");t?this.focusableId=t:(t="k-"+p.guid(),e.setAttribute("id",t),this.focusableId=t)},i.__decorate([s.HostBinding("class.k-colorpicker"),s.HostBinding("class.k-icon-picker"),s.HostBinding("class.k-picker"),i.__metadata("design:type",Boolean)],k.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],k.prototype,"focusedClass",null),i.__decorate([s.HostBinding("attr.aria-disabled"),s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],k.prototype,"disabledClass",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],k.prototype,"ariaReadonly",null),i.__decorate([s.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],k.prototype,"ariaExpanded",null),i.__decorate([s.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],k.prototype,"hostTabindex",null),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],k.prototype,"direction",void 0),i.__decorate([s.HostBinding("attr.role"),i.__metadata("design:type",String)],k.prototype,"role",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Array)],k.prototype,"views",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"view",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],k.prototype,"activeView",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],k.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],k.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],k.prototype,"format",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"value",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],k.prototype,"popupSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],k.prototype,"paletteSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],k.prototype,"gradientSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],k.prototype,"icon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],k.prototype,"iconClass",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],k.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],k.prototype,"tabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],k.prototype,"preview",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],k.prototype,"actionsLayout",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"rounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],k.prototype,"fillMode",null),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"open",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"close",void 0),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],k.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],k.prototype,"onBlur",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"cancel",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"activeColorClick",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],k.prototype,"activeViewChange",void 0),i.__decorate([s.ViewChild("container",{read:s.ViewContainerRef,static:!0}),i.__metadata("design:type",s.ViewContainerRef)],k.prototype,"container",void 0),i.__decorate([s.ViewChild("activeColor",{static:!0}),i.__metadata("design:type",s.ElementRef)],k.prototype,"activeColor",void 0),i.__decorate([s.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",s.TemplateRef)],k.prototype,"popupTemplate",void 0),i.__decorate([s.ViewChild("flatColorPicker",{static:!1}),i.__metadata("design:type",d.FlatColorPickerComponent)],k.prototype,"flatColorPicker",void 0),o=i.__decorate([s.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:p.KendoInput,useExisting:s.forwardRef(function(){return o})},y.ColorPickerLocalizationService,{provide:h.LocalizationService,useExisting:y.ColorPickerLocalizationService},{provide:h.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n tabindex="-1"\n type="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[s.ElementRef,c.PopupService,s.ChangeDetectorRef,h.LocalizationService,s.NgZone,s.Renderer2])],k));function k(e,t,n,o,i,a){var r=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=o,this.ngZone=i,this.renderer=a,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new s.EventEmitter,this.open=new s.EventEmitter,this.close=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.cancel=new s.EventEmitter,this.activeColorClick=new s.EventEmitter,this.activeViewChange=new s.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new l.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},u.validatePackage(f.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}t.ColorPickerComponent=n},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(46),s=n(3),l=n(28),d=n(27),c=n(45),u=n(18),p=n(19),h=n(43),f=n(42),g=n(41),m=n(23),_=n(85),v=n(39),y=n(84),b=n(83),C=n(82),n=n(81),c=[c.ColorPickerComponent,u.ColorPaletteComponent,p.ColorGradientComponent,m.FlatColorPickerComponent,v.LocalizedColorPickerMessagesDirective,_.ColorPickerCustomMessagesComponent],u=[h.ColorInputComponent,y.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,g.FlatColorPickerActionButtonsComponent,n.ColorContrastSvgComponent],p=o.__decorate([i.NgModule({declarations:[c,u],exports:[c],imports:[l.SliderModule,d.NumericTextBoxModule,a.CommonModule,r.PopupModule,s.DraggableModule]})],k);function k(){}t.ColorPickerModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=(o.__decorate([n.HostBinding("class.k-input-suffix"),o.__metadata("design:type",Boolean)],i.prototype,"hostClass",void 0),o.__decorate([n.Component({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],i));function i(){this.hostClass=!0}t.TextAreaSuffixComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(0),l=n(1),a=n(9),r=n(12),d=n(5),c=n(3),u=n(2),p=n(98),h=n(4),f=n(11),g=n(11),m=n(8),_=n(7),v={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},n=(s=p.TextFieldsBase,i.__extends(y,s),o=y,Object.defineProperty(y.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),y.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(o?(g.closest(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),o=!1):n||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){o=e.keyCode===c.Keys.Tab})),t.handleFlow()}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},y.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(d.NgControl,null),c.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=a.fromEvent(window,"resize").pipe(r.debounceTime(50)).subscribe(function(){return t.resize()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},y.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?(this.renderer.removeClass(n,"!k-overflow-y-auto"),this.initialHeight=n.offsetHeight):(this.renderer.addClass(n,"!k-overflow-y-auto"),n.style.height=this.initialHeight+"px")),e.cols&&(h.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},y.prototype.ngAfterViewChecked=function(){this.resize()},y.prototype.writeValue=function(e){this.value=e},y.prototype.registerOnChange=function(e){this.ngChange=e},y.prototype.registerOnTouched=function(e){this.ngTouched=e},y.prototype.updateValue=function(e){var t=this;h.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},y.prototype.ngOnDestroy=function(){s.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(y.prototype,"resizableClass",{get:function(){return v[this.resizable]},enumerable:!0,configurable:!0}),y.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},y.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},y.prototype.resize=function(){var e,t;"auto"===this.resizable&&(e=this.input.nativeElement,this.renderer.setStyle(e,"height",this.initialHeight+"px"),(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Object.defineProperty(y.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e)},enumerable:!0,configurable:!0}),y.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},y.prototype.setSelection=function(e,t){this.isFocused&&f.invokeElementMethod(this.input,"setSelectionRange",e,t)},y.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},y.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=h.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},y.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,t=t.children[1];this.renderer[e?"addClass":"removeClass"](n,"!k-flex-none"),t&&this.renderer[e?"removeClass":"addClass"](t,"!k-align-items-start")},i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"focusableId",void 0),i.__decorate([l.HostBinding("class.k-textarea"),l.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],y.prototype,"hostClasses",void 0),i.__decorate([l.HostBinding("class.!k-flex-col"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],y.prototype,"flowCol",null),i.__decorate([l.HostBinding("class.!k-flex-row"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],y.prototype,"flowRow",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"flow",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"rows",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"cols",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"maxlength",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],y.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"resizable",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],y.prototype,"size",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],y.prototype,"rounded",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],y.prototype,"fillMode",null),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],y.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],y.prototype,"onBlur",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],y.prototype,"valueChange",void 0),o=i.__decorate([l.Component({exportAs:"kendoTextArea",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.textarea"},{provide:d.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:c.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n '}),i.__metadata("design:paramtypes",[u.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],y));function y(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localizationService=e,r.ngZone=t,r.changeDetector=n,r.renderer=o,r.injector=i,r.hostElement=a,r.focusableId="k-"+c.guid(),r.hostClasses=!0,r.flow="vertical",r.tabindex=0,r.resizable="vertical",r.onFocus=new l.EventEmitter,r.onBlur=new l.EventEmitter,r.valueChange=new l.EventEmitter,r._size="medium",r._rounded="medium",r._fillMode="solid",r.handleInput=function(e){e=e.target.value;r.updateValue(e),r.resize()},r.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),c.hasObservers(r.onFocus)&&!r.isFocused&&r.ngZone.run(function(){r.onFocus.emit()}),c.hasObservers(r.inputFocus)&&!r.focusChangedProgrammatically&&r.ngZone.run(function(){r.inputFocus.emit()}),r.ngZone.run(function(){r.isFocused=!0}))},m.validatePackage(_.packageMetadata),r.direction=e.rtl?"rtl":"ltr",r}t.TextAreaComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(49),s=n(3),l=n(48),n=n(24),o=o.__decorate([i.NgModule({declarations:[r.TextAreaComponent,l.TextAreaSuffixComponent],exports:[r.TextAreaComponent,s.EventsModule,l.TextAreaSuffixComponent,n.SHARED_DIRECTIVES],imports:[a.CommonModule,s.EventsModule,n.SharedModule]})],d);function d(){}t.TextAreaModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=(o.__decorate([n.HostBinding("class.k-input-separator"),o.__metadata("design:type",Boolean)],i.prototype,"hostClass",void 0),o.__decorate([n.Component({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],i));function i(){this.hostClass=!0}t.InputSeparatorComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(53),n=(o=n.TextBoxMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.TextBoxMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoTextBoxLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedTextBoxMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"clear",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.TextBoxMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(30);t.isSafari=function(e){var t=o.detectDesktopBrowser(e),e=o.detectMobileOS(e);return t&&t.safari||e&&"mobilesafari"===e.browser},t.isJapanese=function(e){return/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(54),a=n(11),r=n(5),l=n(1),d=n(8),c=n(7),u=n(11),p=n(4),h=n(3),f=n(26),g=n(25),m=n(2),_=n(54),n=(o=v,Object.defineProperty(v.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),v.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(r.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},v.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(o?(a.closest(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),o=!1):n||t.clearButtonClicked||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){o=e.keyCode===h.Keys.Tab}))}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},v.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},v.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},v.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},v.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},v.prototype.clearTitle=function(){return this.localizationService.get("clear")},v.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},v.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},v.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},v.prototype.registerOnChange=function(e){this.ngChange=e},v.prototype.registerOnTouched=function(e){this.ngTouched=e},v.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},v.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},v.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,e=e.touched;return t&&(n||e)},Object.defineProperty(v.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon||"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),v.prototype.setSelection=function(e,t){this.isFocused&&u.invokeElementMethod(this.input,"setSelectionRange",e,t)},v.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},v.prototype.updateValue=function(e){var t=this;p.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()})},Object.defineProperty(v.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e)},enumerable:!0,configurable:!0}),v.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},v.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=p.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],v.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],v.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],v.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],v.prototype,"selectOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object)],v.prototype,"showSuccessIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object)],v.prototype,"showErrorIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],v.prototype,"clearButton",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"successIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"errorIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"clearButtonIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],v.prototype,"size",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],v.prototype,"rounded",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],v.prototype,"fillMode",null),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],v.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],v.prototype,"placeholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],v.prototype,"maxlength",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],v.prototype,"valueChange",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],v.prototype,"inputFocus",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],v.prototype,"inputBlur",void 0),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],v.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],v.prototype,"onBlur",void 0),i.__decorate([l.ViewChild("input",{static:!0}),i.__metadata("design:type",l.ElementRef)],v.prototype,"input",void 0),i.__decorate([l.ContentChild(f.TextBoxSuffixTemplateDirective,{static:!1}),i.__metadata("design:type",f.TextBoxSuffixTemplateDirective)],v.prototype,"suffixTemplate",void 0),i.__decorate([l.ContentChild(g.TextBoxPrefixTemplateDirective,{static:!1}),i.__metadata("design:type",g.TextBoxPrefixTemplateDirective)],v.prototype,"prefixTemplate",void 0),i.__decorate([l.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],v.prototype,"disabledClass",null),i.__decorate([l.HostBinding("class.k-textbox"),l.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],v.prototype,"hostClasses",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],v.prototype,"direction",void 0),o=i.__decorate([l.Component({exportAs:"kendoTextBox",providers:[m.LocalizationService,{provide:m.L10N_PREFIX,useValue:"kendo.textbox"},{provide:r.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:h.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),i.__metadata("design:paramtypes",[m.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],v));function v(e,t,n,o,i,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=o,this.injector=i,this.hostElement=a,this.focusableId="k-"+h.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new l.EventEmitter,this.inputFocus=new l.EventEmitter,this.inputBlur=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),h.hasObservers(r.onFocus)&&!r.isFocused&&r.ngZone.run(function(){r.onFocus.emit()}),h.hasObservers(r.inputFocus)&&(!r.focusChangedProgrammatically||r.focusChangedProgrammatically&&r.clearButtonClicked)&&r.ngZone.run(function(){r.inputFocus.emit()}),r.ngZone.run(function(){r.isFocused=!0}))},this.handleInputBlur=function(){r.changeDetector.markForCheck(),(h.hasObservers(r.inputBlur)||p.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.handleInput=function(e){var t=e.target,n=_.isSafari(navigator.userAgent),e=n&&s.isJapanese(t.value)?e.data:t.value,o=[t.selectionStart,t.selectionEnd],i=o[0],o=o[1];r.updateValue(e),n&&t.setSelectionRange(i,o)},this.ngChange=function(e){},this.ngTouched=function(){},d.validatePackage(c.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}t.TextBoxComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(76),r=n(55),s=n(6),l=n(3),d=n(26),c=n(25),u=n(99),p=n(52),n=n(24),o=o.__decorate([i.NgModule({declarations:[a.TextBoxDirective,r.TextBoxComponent,d.TextBoxSuffixTemplateDirective,c.TextBoxPrefixTemplateDirective,u.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective],exports:[a.TextBoxDirective,r.TextBoxComponent,d.TextBoxSuffixTemplateDirective,c.TextBoxPrefixTemplateDirective,l.EventsModule,u.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective,n.SHARED_DIRECTIVES],imports:[s.CommonModule,l.EventsModule,n.SharedModule]})],h);function h(){}t.TextBoxModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(71),r=n(6),n=n(3),o=o.__decorate([i.NgModule({declarations:[a.MaskedTextBoxComponent],exports:[a.MaskedTextBoxComponent],imports:[r.CommonModule,n.EventsModule]})],s);function s(){}t.MaskedTextBoxModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(72),n=(o=n.NumericTextBoxMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.NumericTextBoxMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedNumericTextBoxMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"on",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"off",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.Messages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(59),n=(o=n.Messages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoSwitchLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedSwitchMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(77),r=n(6),s=n(3),l=n(60),d=n(100),n=n(3),o=o.__decorate([i.NgModule({declarations:[a.SwitchComponent,d.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],exports:[a.SwitchComponent,d.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],imports:[r.CommonModule,n.EventsModule,s.ResizeSensorModule]})],c);function c(){}t.SwitchModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"dragHandleStart",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"dragHandleEnd",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.RangeSliderMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(62),n=(o=n.RangeSliderMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.RangeSliderMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoSliderLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedRangeSliderMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(68),s=n(78),l=n(63),d=n(101),n=n(15),o=o.__decorate([i.NgModule({declarations:[s.RangeSliderComponent,d.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective],exports:[s.RangeSliderComponent,d.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective,n.LabelTemplateDirective],imports:[a.CommonModule,r.SlidersCommonModule]})],c);function c(){}t.RangeSliderModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"decrement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"increment",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"dragHandle",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.SliderMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(65),n=(o=n.SliderMessages,a.__extends(l,o),i=l,i=a.__decorate([r.Directive({providers:[{provide:n.SliderMessages,useExisting:r.forwardRef(function(){return i})}],selector:"[kendoSliderLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedSliderMessagesDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(10),r=function(e){this.value=e,this.classes={"k-tick":!0}},n=(s.prototype.ngOnChanges=function(e){this.createTicks()},s.prototype.createTicks=function(){for(var e=a.calculateTicksCount(this.min,this.max,this.step),t=this.largeStep,n={max:this.max,min:this.min,smallStep:this.step},o=[],i=0;i<e;i++)o.push(new r(a.calculateValueFromTick(i,n))),t&&i%t==0&&(o[i].large=!0,o[i].classes["k-tick-large"]=!0);0<o.length&&(Object.assign(o[0].classes,this.endTickClasses(!0)),Object.assign(o[o.length-1].classes,this.endTickClasses(!1))),this.ticks=o},s.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},o.__decorate([i.HostBinding("class"),o.__metadata("design:type",String)],s.prototype,"wrapperClasses",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function)],s.prototype,"tickTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],s.prototype,"vertical",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"step",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"largeStep",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"min",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"max",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],s.prototype,"labelTemplate",void 0),o.__decorate([i.ViewChildren("tickElement"),o.__metadata("design:type",i.QueryList)],s.prototype,"tickElements",void 0),o.__decorate([i.Component({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false">&nbsp;</ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],s));function s(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}t.SliderTicksComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(67),s=n(15),n=n(3),o=o.__decorate([i.NgModule({declarations:[r.SliderTicksComponent,s.LabelTemplateDirective],exports:[s.LabelTemplateDirective,r.SliderTicksComponent,n.DraggableModule,n.EventsModule,n.ResizeSensorModule],imports:[a.CommonModule,n.DraggableModule,n.EventsModule,n.ResizeSensorModule]})],l);function l(){}t.SlidersCommonModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(i=o=t.ResultType||(t.ResultType={}))[i.Literal=0]="Literal",i[i.Mask=1]="Mask",i[i.Undefined=2]="Undefined",a.prototype.map=function(e){return new a(e(this.value),this.rest)},a.prototype.chain=function(e){return e(this.value,this.rest)},a.prototype.fold=function(e,t){return e(this.value,this.rest)},a.prototype.concat=function(t){return this.map(function(n,e){return t.chain(function(e,t){return n.concat([e])})})},a.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"};var o,i=a;function a(e,t,n){void 0===n&&(n=o.Undefined),this.value=e,this.rest=t,this.type=n}t.Result=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return(e||"").split("")}var r=n(69),i=n(104),s=(a.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof i.Stream?this.parse(e):this.parse(new i.Stream(o(e),o(t)))},a.prototype.map=function(t){var n=this;return new a(function(e){return n.parse(e).map(t)})},a.prototype.chain=function(n){var t=this;return new a(function(e){return t.parse(e).chain(function(e,t){return n(e).run(t)})})},a.prototype.isLiteral=function(e){return this.run(e).type===r.ResultType.Literal},a);function a(e){this.parse=e}t.Parser=s,t.mask=function(e){var i=e.prompt,a=e.promptPlaceholder;return function(o){return new s(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===t&&t===i)return e.eat(),new r.Result(i,e,r.ResultType.Mask);if(o.test(n))return e.eat(),new r.Result(n,e,r.ResultType.Mask);if(n===a)return e.eat(),new r.Result(i,e,r.ResultType.Mask);e.eat_input()}return e.eat(),new r.Result(i,e,r.ResultType.Mask)})}},t.literal=function(t){return new s(function(e){return e.peek().char===t&&e.eat(),new r.Result(t,e,r.ResultType.Literal)})},t.unmask=function(i){return function(o){return new s(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===i&&t===i)return e.eat(),new r.Result(n,e);if(o.test(n))return e.eat(),new r.Result(n,e);e.eat_input()}return e.eat(),new r.Result("",e)})}},t.unliteral=function(t){return new s(function(e){return e.eof()?new r.Result("",e):(e.peek().char===t&&e.eat(),new r.Result(t,e))})},t.token=function(o,i){return new s(function(e){var t=e.next().char,n=o[t];return"\\"===t?(t=e.next().char,new r.Result(i.literal(t),e)):n?new r.Result(i.mask(n),e):new r.Result(i.literal(t),e)})},t.rawMask=function(e){var n=e.prompt,o=e.promptPlaceholder;return new s(function(e){var t=e.next().char;return t===n?new r.Result(o,e):new r.Result(t,e)})},t.rawLiteral=function(n){return new s(function(e){var t=e.next().char;return n?new r.Result(t,e):new r.Result("",e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),l=n(1),a=n(5),d=n(3),r=n(2),c=n(8),u=n(7),s=n(106),p=n(11),h=n(4),f=Promise.resolve(null),n=(o=g,Object.defineProperty(g.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),g.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(a.NgControl,null)},g.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},g.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},g.prototype.handleDragDrop=function(){return!1},g.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},g.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},g.prototype.pasteHandler=function(e){var e=e.target,t=e.selectionStart,e=e.selectionEnd;e!==t&&(this.isPasted=!0,this.selection=[t,e])},g.prototype.inputHandler=function(e){var t,n=e.target.value,o=this.selection,i=o[0],o=o[1];if(!this.mask)return this.updateValueWithEvents(n),void(this.isPasted=!1);t=this.isPasted?(this.isPasted=!1,t=this.maskedValue.length-o,t=n.length-t,this.service.maskInRange(n.slice(i,t),this.maskedValue,i,o)):this.service.maskInput(n,this.maskedValue||"",e.target.selectionStart),this.updateInput(t.value,t.selection),this.updateValueWithEvents(t.value)},g.prototype.ngOnChanges=function(e){var t,n=this;e.value&&(this.value=this.normalizeValue()),this.mask?(t=this.extractChanges(e),this.updateService(t),t=this.service.maskRaw(this.value),this.updateInput(t,null,!0),(e.includeLiterals||d.isChanged("promptPlaceholder",e))&&f.then(function(){n.updateValueWithEvents(n.maskedValue)})):this.updateInput(this.value)},g.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value)),this.includeLiterals&&this.updateValue(this.maskedValue)},g.prototype.registerOnChange=function(e){this.onChange=e},g.prototype.registerOnTouched=function(e){this.onTouched=e},g.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},g.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},g.prototype.updateValueWithEvents=function(e){this.updateValue(e),d.hasObservers(this.valueChange)&&this.valueChange.emit(this.value)},g.prototype.updateValue=function(e){!this.mask||this.service.validationValue(e)||this.includeLiterals?this.value=this.service.rawValue(e):this.value="",this.onChange(this.value)},g.prototype.updateInput=function(e,t,n){void 0===e&&(e=""),n&&e===this.maskedValue||(this.maskedValue=e,n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e,this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t))},g.prototype.extractChanges=function(n){return Object.keys(n).filter(function(e){return"rules"!==e}).reduce(function(e,t){return e[t]=n[t].currentValue,e},{})},g.prototype.updateService=function(e){e=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(e)},g.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&p.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(g.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),g.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;0<=t&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(g.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),g.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=h.isPresent(e);if(t&&"string"!=typeof e){if(l.isDevMode())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},g.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=h.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"size",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"rounded",null),i.__decorate([l.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"fillMode",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"mask",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],g.prototype,"rules",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"prompt",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"promptPlaceholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"includeLiterals",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"maskOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"maskValidation",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],g.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],g.prototype,"tabIndex",null),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],g.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],g.prototype,"onBlur",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],g.prototype,"valueChange",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],g.prototype,"direction",void 0),i.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-maskedtextbox"),i.__metadata("design:type",Boolean)],g.prototype,"hostClasses",void 0),i.__decorate([l.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"hostDisabledClass",null),i.__decorate([l.ViewChild("input",{static:!0}),i.__metadata("design:type",l.ElementRef)],g.prototype,"input",void 0),i.__decorate([l.HostListener("paste",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],g.prototype,"pasteHandler",null),i.__decorate([l.HostListener("input",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],g.prototype,"inputHandler",null),o=i.__decorate([l.Component({exportAs:"kendoMaskedTextBox",providers:[s.MaskingService,{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o})},{multi:!0,provide:a.NG_VALIDATORS,useExisting:l.forwardRef(function(){return o})},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),i.__param(6,l.Optional()),i.__param(6,l.Inject(r.RTL)),i.__metadata("design:paramtypes",[s.MaskingService,l.Renderer2,l.ElementRef,l.NgZone,l.Injector,l.ChangeDetectorRef,Boolean])],g));function g(e,t,n,o,i,a,r){var s=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=o,this.injector=i,this.changeDetector=a,this.focusableId="k-"+d.guid(),this.disabled=!1,this.readonly=!1,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.hostClasses=!0,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){s.focused=!0,s.maskOnFocus&&s.emptyMask&&(s.updateInput(s.service.maskRaw(s.value)),s.ngZone.runOutsideAngular(function(){setTimeout(function(){s.setSelection(0,0)},0)})),d.hasObservers(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleClick=function(){var e;s.focused&&!s.focusClick&&(s.focusClick=!0,(e=s.input.nativeElement).selectionStart===e.selectionEnd&&s.setFocusSelection())},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.focusClick=!1,s.maskOnFocus&&s.emptyMask&&s.updateInput(s.maskedValue),(d.hasObservers(s.onBlur)||h.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.onTouched(),s.onBlur.emit()})},this.onChange=function(e){},this.onTouched=function(){},c.validatePackage(u.packageMetadata),this.direction=r?"rtl":"ltr",this.updateService()}t.MaskedTextBoxComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=(o=n(2).ComponentMessages,i.__extends(r,o),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"decrement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"increment",void 0),r);function r(){return null!==o&&o.apply(this,arguments)||this}t.NumericTextBoxMessages=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(72),n=(o=n.NumericTextBoxMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.NumericTextBoxMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-numerictextbox-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.NumericTextBoxCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min",t.MAX_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max",t.POINT=".",t.INITIAL_SPIN_DELAY=500,t.SPIN_DELAY=50,t.EXPONENT_REGEX=/[eE][\-+]?([0-9]+)/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),r=n(1),a=n(5),s=n(3),l=n(4),d=n(2),c=n(9),u=n(12),n=(o=p,Object.defineProperty(p.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),p.prototype.writeValue=function(e){this.elementValue=e,this.resize()},p.prototype.registerOnChange=function(e){this.ngChange=e},p.prototype.registerOnTouched=function(e){this.ngTouched=e},p.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},p.prototype.ngOnInit=function(){var t=this,e=this.element.nativeElement;this.zone.runOutsideAngular(function(){t.listeners=[t.renderer.listen(e,"focus",t.handleFocus.bind(t)),t.renderer.listen(e,"blur",t.handleBlur.bind(t)),t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})],s.isDocumentAvailable()&&t.autoSize&&(t.resizeSubscription=c.fromEvent(window,"resize").pipe(u.debounceTime(50)).subscribe(function(){return t.resize()})),t.inputSubscription=c.fromEvent(e,"input").subscribe(t.handleInput.bind(t))}),this.control=this.injector.get(a.NgControl,null)},p.prototype.ngOnChanges=function(e){var t=this,n=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=n.offsetHeight,this.renderer.setStyle(n,"resize","none")):(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),this.zone.onStable.pipe(u.take(1)).subscribe(function(){return t.resize()})},p.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(p.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),p.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},p.prototype.resize=function(){var e,t;this.autoSize&&(e=this.element.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px",(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},p.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||s.hasObservers(this.onValueChange)||s.hasObservers(this.valueChange))&&this.zone.run(function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()}),this.resize()},p.prototype.handleFocus=function(){var e=this;s.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()})},p.prototype.handleBlur=function(){var e=this;(s.hasObservers(this.onBlur)||l.requiresZoneOnBlur(this.control))&&this.zone.run(function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()})},i.__decorate([r.HostBinding("class.k-textarea"),r.HostBinding("class.k-input"),r.HostBinding("class.k-input-md"),r.HostBinding("class.k-rounded-md"),r.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],p.prototype,"elementClasses",void 0),i.__decorate([r.HostBinding("class.k-autofill"),i.__metadata("design:type",Boolean)],p.prototype,"autofillClass",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],p.prototype,"direction",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],p.prototype,"valueChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],p.prototype,"autoSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],p.prototype,"value",void 0),o=i.__decorate([r.Directive({providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return o}),multi:!0},{provide:s.KendoInput,useExisting:r.forwardRef(function(){return o})}],selector:"textarea[kendoTextArea]"}),i.__param(5,r.Optional()),i.__param(5,r.Inject(d.RTL)),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],p));function p(e,t,n,o,i,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=o,this.injector=i,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new r.EventEmitter,this.autoSize=!1,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}t.TextAreaDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=n(3),n=(o=r,Object.defineProperty(r.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),r.prototype.ngAfterViewInit=function(){var t=this,e=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(e,"focus",function(){return t.onFocus.emit()}),this.renderer.listen(e,"blur",function(){return t.onBlur.emit()})],this.ngZone.runOutsideAngular(function(){t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})})},r.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()})},i.__decorate([a.HostBinding("class.k-textbox"),a.HostBinding("class.k-input"),a.HostBinding("class.k-input-md"),a.HostBinding("class.k-rounded-md"),a.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],r.prototype,"value",null),o=i.__decorate([a.Directive({selector:"input[kendoTextBox]",providers:[{provide:n.KendoInput,useExisting:a.forwardRef(function(){return o})}]}),i.__metadata("design:paramtypes",[a.Renderer2,a.ElementRef,a.NgZone])],r));function r(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onValueChange=new a.EventEmitter,this.autoFillStart=new a.EventEmitter,this.autoFillEnd=new a.EventEmitter,this.listeners=[]}t.TextBoxDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(1),a=n(5),r=n(2),l=n(3),d=n(8),c=n(7),u=n(4),p=n(9),h=n(12),f=n(30),n=(o=g,Object.defineProperty(g.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ieClass",{get:function(){return f.browser&&f.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),g.prototype.ngOnInit=function(){var e,t=this;this.hostElement&&(e=this.hostElement.nativeElement,this.renderer.removeAttribute(e,"tabindex")),this.localizationChangeSubscription=this.localizationService.changes.pipe(h.skip(1)).subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.control=this.injector.get(a.NgControl,null),this.ngZone.onStable.pipe(h.take(1)).subscribe(function(){return t.initialized=!0})},g.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},g.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},g.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},g.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},g.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},g.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},g.prototype.registerOnChange=function(e){this.ngChange=e},g.prototype.registerOnTouched=function(e){this.ngTouched=e},g.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},g.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},g.prototype.isEmpty=function(){return!1},g.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run(function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},Object.defineProperty(g.prototype,"focused",{set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),g.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))})},g.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},g.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=u.getStylingClasses("switch",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},g.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,e=u.getStylingClasses("switch","rounded",this.trackRounded,e);e.toRemove&&(this.renderer.removeClass(t,e.toRemove),this.renderer.removeClass(n,e.toRemove)),e.toAdd&&(this.renderer.addClass(t,e.toAdd),this.renderer.addClass(n,e.toAdd))},g.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,e=u.getStylingClasses("switch","rounded",this.thumbRounded,e);e.toRemove&&this.renderer.removeClass(t,e.toRemove),e.toAdd&&this.renderer.addClass(t,e.toAdd)},i.__decorate([s.Input(),i.__metadata("design:type",String)],g.prototype,"focusableId",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],g.prototype,"onLabel",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],g.prototype,"offLabel",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],g.prototype,"checked",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],g.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],g.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],g.prototype,"tabindex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"thumbRounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],g.prototype,"trackRounded",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],g.prototype,"tabIndex",null),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],g.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],g.prototype,"onBlur",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],g.prototype,"valueChange",void 0),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],g.prototype,"direction",void 0),i.__decorate([s.HostBinding("class.k-ie"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"ieClass",null),i.__decorate([s.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"ariaDisabled",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"ariaReadonly",null),i.__decorate([s.HostBinding("class.k-switch"),i.__metadata("design:type",Boolean)],g.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"disabledClass",null),i.__decorate([s.ViewChild("track",{static:!0}),i.__metadata("design:type",Object)],g.prototype,"track",void 0),i.__decorate([s.ViewChild("thumb",{static:!0}),i.__metadata("design:type",Object)],g.prototype,"thumb",void 0),o=i.__decorate([s.Component({exportAs:"kendoSwitch",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return o})}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),i.__metadata("design:paramtypes",[s.Renderer2,s.ElementRef,r.LocalizationService,s.Injector,s.ChangeDetectorRef,s.NgZone])],g));function g(e,t,n,o,i,a){var r=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=o,this.changeDetector=i,this.ngZone=a,this.focusableId="k-"+l.guid(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new p.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){r.isFocused||(r.focused=!0,l.hasObservers(r.onFocus)&&r.ngZone.run(function(){r.onFocus.emit()}))},this.handleBlur=function(e){e=e&&e.relatedTarget;r.hostElement.nativeElement.contains(e)||(r.changeDetector.markForCheck(),r.focused=!1,(l.hasObservers(r.onBlur)||u.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.onBlur.emit()}))},d.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}t.SwitchComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,l=n(0),i=n(1),a=n(5),r=n(12),d=n(10),c=n(112),u=n(2),p=n(10),h=n(11),f=n(3),g=n(4),n=(s=n(79).SliderBase,l.__extends(m,s),(o=m).prototype.focus=function(){this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},m.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;h.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},m.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),s.prototype.ngOnInit.call(this)},m.prototype.ngOnChanges=function(e){var t=this;f.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&d.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(r.take(1)).subscribe(function(){t.sizeComponent()}))},m.prototype.ngAfterViewInit=function(){var e=this;f.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent()}),this.attachElementEventHandlers())},m.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},m.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(m.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),m.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();e=e.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)},m.prototype.onHandleDrag=function(e){function t(){i.changeValue([p.eventValue(e,i.track.nativeElement,i.getProps()),i.value[1]])}function n(){i.changeValue([i.value[0],p.eventValue(e,i.track.nativeElement,i.getProps())])}function o(){i.changeValue([p.eventValue(e,i.track.nativeElement,i.getProps()),p.eventValue(e,i.track.nativeElement,i.getProps())])}var i=this,a=(this.value=this.value||[this.min,this.min],e.originalEvent.target),r=this.draggedHandle.getBoundingClientRect(),a=(this.lastHandlePosition={x:r.left,y:r.top},this.dragging={value:!0,target:a},e.pageX-.5-r.width/2),r=e.pageY-r.width/2,s=a<this.lastHandlePosition.x,a=a>this.lastHandlePosition.x,r=r>this.lastHandlePosition.y,l=p.isStartHandle(this.draggedHandle),d=this.vertical,c=!d,d=d&&r||(this.reverse?c&&a:c&&s),r=this.value[0]>this.value[1];(this.value[0]===this.value[1]||r?d?l?t:o:l?o:n:l?t:n)()},m.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},m.prototype.writeValue=function(e){d.validateValue(e),this.value=e,this.sizeComponent()},m.prototype.registerOnChange=function(e){this.ngChange=e},m.prototype.registerOnTouched=function(e){this.ngTouched=e},m.prototype.changeValue=function(e){var t=this;this.value&&d.isSameRange(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.value&&t.valueChange.emit(e),t.sizeComponent()})},m.prototype.sizeComponent=function(){var e,t,n,o,i,a;f.isDocumentAvailable()&&(e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,o=this.draghandleStart.nativeElement,i=this.draghandleEnd.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null,this.resetStyles([t,n,o,i,a,this.hostElement.nativeElement]),a=this.getProps(),(a=new c.RangeSliderModel(a,e,t,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(o),a.positionHandle(i),a.positionSelection(o,n),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(m.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),m.prototype.isEmpty=function(){return!1},Object.defineProperty(m.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd&&(t=this.sliderSelection.nativeElement,n=e.target,e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value)},enumerable:!0,configurable:!0}),m.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:d.trimValueRange(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},m.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandleStart.nativeElement&&e.relatedTarget!==t.draghandleEnd.nativeElement&&t.handleBlur(),n=!1):o||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){o=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){o=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===f.Keys.Tab}))})},l.__decorate([i.Input(),l.__metadata("design:type",Array)],m.prototype,"value",void 0),l.__decorate([i.ViewChild("draghandleStart",{static:!0}),l.__metadata("design:type",i.ElementRef)],m.prototype,"draghandleStart",void 0),l.__decorate([i.ViewChild("draghandleEnd",{static:!0}),l.__metadata("design:type",i.ElementRef)],m.prototype,"draghandleEnd",void 0),o=l.__decorate([i.Component({exportAs:"kendoRangeSlider",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return o})},{provide:f.KendoInput,useExisting:i.forwardRef(function(){return o})}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),l.__metadata("design:paramtypes",[u.LocalizationService,i.Injector,i.Renderer2,i.NgZone,i.ChangeDetectorRef,i.ElementRef])],m));function m(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=o,r.changeDetector=i,r.hostElement=a,r.startHandleId="k-start-handle-"+f.guid(),r.endHandleId="k-end-handle-"+f.guid(),r.focusableId=r.startHandleId,r.handleZIndex=0,r.activeHandle="startHandle",r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t,n,o;r.isDisabled||(r.value=r.value||[r.min,r.min],e=p.eventValue(e,r.track.nativeElement,r.getProps()),t=void 0,n=(o=t=r.value)[0],o=o[1],e<=n?(t=[e,o],r.activeHandle="startHandle"):n<e&&e<o?e<(n+o)/2?(t=[e,o],r.activeHandle="startHandle"):(t=[n,e],r.activeHandle="endHandle"):o<=e&&(t=[n,e],r.activeHandle="endHandle"),o="startHandle"===r.activeHandle?r.draghandleStart:r.draghandleEnd,h.invokeElementMethod(o,"focus"),r.changeValue(t))},r.onKeyDown=function(e){r.value=r.value||[r.min,r.min];var t,n=r.getProps(),o=n.max,i=n.min,a=r.keyBinding[e.keyCode];!r.isDisabled&&a&&(r.renderer.setStyle(e.target,"zIndex",++r.handleZIndex),t=p.isStartHandle(e.target),a=a(l.__assign({},n,{value:t?r.value[0]:r.value[1]})),t?a>r.value[1]&&(r.value[1]=a):a<r.value[0]&&(r.value[0]=a),n=d.trimValue(o,i,a),o=t?[n,r.value[1]]:[r.value[0],n],r.changeValue(o),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(f.hasObservers(r.onBlur)||g.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}t.RangeSliderComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(10),l=n(1),d=n(9),i=n(5),a=n(3),c=n(8),u=n(7),n=n(15),o=(Object.defineProperty(r.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),r.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},r.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(i.NgControl,null)},Object.defineProperty(r.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),r.prototype.isEmpty=function(){return!1},Object.defineProperty(r.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[a.Keys.ArrowLeft]=t?s.increment:s.decrement,e[a.Keys.ArrowRight]=t?s.decrement:s.increment,e[a.Keys.ArrowDown]=s.decrement,e[a.Keys.ArrowUp]=s.increment,e[a.Keys.PageUp]=s.incrementLarge,e[a.Keys.PageDown]=s.decrementLarge,e[a.Keys.Home]=function(e){return e.min},e[a.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),r.prototype.resetStyles=function(e){var t=this;e.forEach(function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))})},o.__decorate([l.Input(),o.__metadata("design:type",Function)],r.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"tickPlacement",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"vertical",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"min",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"max",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"smallStep",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"largeStep",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"fixedTickWidth",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"readonly",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([l.Output("focus"),o.__metadata("design:type",l.EventEmitter)],r.prototype,"onFocus",void 0),o.__decorate([l.Output("blur"),o.__metadata("design:type",l.EventEmitter)],r.prototype,"onBlur",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],r.prototype,"valueChange",void 0),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),o.__decorate([l.HostBinding("class.k-slider-horizontal"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"horizontalClass",null),o.__decorate([l.HostBinding("class.k-slider-vertical"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"verticalClass",null),o.__decorate([l.HostBinding("class.k-slider"),o.__metadata("design:type",Boolean)],r.prototype,"sliderClass",void 0),o.__decorate([l.HostBinding("class.k-widget"),o.__metadata("design:type",Boolean)],r.prototype,"widgetClass",void 0),o.__decorate([l.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"disabledClass",null),o.__decorate([l.ViewChild("wrap",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"wrapper",void 0),o.__decorate([l.ViewChild("track",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"track",void 0),o.__decorate([l.ViewChild("sliderSelection",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"sliderSelection",void 0),o.__decorate([l.ViewChild("ticks",{read:l.ElementRef,static:!1}),o.__metadata("design:type",l.ElementRef)],r.prototype,"ticksContainer",void 0),o.__decorate([l.ViewChild("ticks",{static:!1}),o.__metadata("design:type",Object)],r.prototype,"ticks",void 0),o.__decorate([l.ContentChild(n.LabelTemplateDirective,{static:!1}),o.__metadata("design:type",n.LabelTemplateDirective)],r.prototype,"labelTemplate",void 0),r);function r(e,t,n,o,i,a){var r=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=o,this.changeDetector=i,this.hostElement=a,this.title=s.identity,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new d.Subscription,this.ifEnabled=function(e,t){r.isDisabled||e.call(r,t)},c.validatePackage(u.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}t.SliderBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=n(10),p=n(31);function o(e,t,n,o){this.props=e,this.wrapper=t,this.track=n,this.renderer=o,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}o.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},o.prototype.resizeTicks=function(e,t){var n=this,o=this.props.vertical?"height":"width";t.slice().map(function(e,t){return e.style[o]=n.tickSizes[t]+"px"}),this.props.vertical&&this.adjustPadding(e)},o.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=u.calculateFixedTrackSize(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},o.prototype.trackWidth=function(){return this.props.fixedTickWidth?u.calculateFixedTrackSize(this.props):this.elementSize(this.track.parentElement)},o.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,o=e.smallStep,i=u.calculateTicksCount(t,n,o),e=this.trackWidth(),a=e/p.subtract(n,t),r=[],s=0,l=0,d=0;d<i;d++){var l=+(l+=0===d||d===i-1?o/2*a:o*a).toFixed(2)-.01,c=Math.round(l-s);r.push(c),s+=c}return e<=s&&--r[r.length-1],r},o.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce(function(e,t){return e+t},0),t=this.trackWidth()-t;0!=t&&(t=t+this.elementOffset(this.track),e.style.paddingTop=t+"px")},o.prototype.elementOffset=function(e){var t=this.props.vertical,e=getComputedStyle(e);return parseInt(t?e.bottom:e.left,10)},o.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},t.SliderModelBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(9),r=n(4),s=n(14),l=n(13),n=(d.prototype.ngAfterViewInit=function(){var t=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe(function(e){e.h===t.oldH&&e.a===t.oldA||(t.oldH=e.h,t.oldA=e.a,t.setPaths())})},d.prototype.ngOnChanges=function(e){r.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},d.prototype.setPaths=function(){var e=l.bezierCommand(l.controlPoint(l.line));this.paths=[l.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT),e),l.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT,!0),e),l.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT),e),l.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT,!0),e)]},d.prototype.findValue=function(e,t,n,o,i){var a=(n+o)/2,r=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-a/this.metrics.height}),r=l.getContrastFromTwoRGBAs(l.getRGBA(l.getColorFromHSV(r)),l.getRGBA(this.backgroundColor||""));return o<n+.5?r<e+1&&e-1<r?a:null:i(r,e)?this.findValue(e,t,n,o-(o-n)/2,i):this.findValue(e,t,n+(o-n)/2,o,i)},d.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var o=[],i=0;i<=this.metrics.width;i+=this.metrics.width/t){var a=this.findValue(e,i,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return t<e});null!==a&&o.push([i,a])}return o},o.__decorate([i.HostBinding("class.k-color-contrast-svg"),o.__metadata("design:type",Boolean)],d.prototype,"hostClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],d.prototype,"wrapper",void 0),o.__decorate([i.Input(),o.__metadata("design:type",a.BehaviorSubject)],d.prototype,"hsva",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],d.prototype,"backgroundColor",void 0),o.__decorate([i.Component({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],d));function d(){this.hostClass=!0}t.ColorContrastSvgComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(2),r=n(13),s=n(14),n=(Object.defineProperty(l.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=s.AA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=s.AAA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"contrastRatio",{get:function(){return r.getContrastFromTwoRGBAs(r.getRGBA(this.value),r.getRGBA(this.ratio))},enumerable:!0,configurable:!0}),o.__decorate([i.Input(),o.__metadata("design:type",String)],l.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],l.prototype,"ratio",void 0),o.__decorate([i.Component({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n </div>\n <div kendoContrastValidation\n type="AA"\n [value]="value"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [value]="value"\n [pass]="satisfiesAAACondition">\n </div>\n '}),o.__metadata("design:paramtypes",[a.LocalizationService])],l));function l(e){this.localization=e}t.ContrastComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(14),a=n(2),n=n(1),n=(Object.defineProperty(r.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"contrastText",{get:function(){var e="AA"===this.type?i.AA_RATIO:i.AAA_RATIO;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),o.__decorate([n.Input(),o.__metadata("design:type",String)],r.prototype,"type",void 0),o.__decorate([n.Input(),o.__metadata("design:type",Boolean)],r.prototype,"pass",void 0),o.__decorate([n.Input(),o.__metadata("design:type",String)],r.prototype,"value",void 0),o.__decorate([n.Component({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n '}),o.__metadata("design:paramtypes",[a.LocalizationService])],r));function r(e){this.localization=e}t.ContrastValidationComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),o=(i.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},i.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular(function(){return setTimeout(function(){return e.host.nativeElement.focus()})})},o.__decorate([n.Directive({selector:"[kendoFocusOnDomReady]"}),o.__metadata("design:paramtypes",[n.ElementRef,n.NgZone])],i));function i(e,t){this.host=e,this.ngZone=t}t.FocusOnDomReadyDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(40),n=(o=n.ColorPickerMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.ColorPickerMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.ColorPickerCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(4),n=(r.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],a.isPresent(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var o=e.slice(n,t+n);this.colorRows.push(o)}}},r.prototype.getCellCoordsFor=function(e){if(a.isPresent(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},r.prototype.getColorAt=function(e){if(a.isPresent(e)&&a.isPresent(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},r.prototype.getNextCell=function(e,t,n){if(!(a.isPresent(e)&&a.isPresent(e.row)&&a.isPresent(e.col)))return{row:0,col:0};n=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:n,col:this.clampIndex(e.col+t,this.colorRows[n].length-1)}},r.prototype.clampIndex=function(e,t){return e<0?0:t<e?t:e},o.__decorate([i.Injectable()],r));function r(){this.colorRows=[]}t.ColorPaletteService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(2),n=n(22),a=(i=r.LocalizationService,o.__extends(s,i),s.prototype.get=function(e){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(e):i.prototype.get.call(this,e)},o.__decorate([o.__param(0,a.Inject(r.L10N_PREFIX)),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(2,a.Inject(r.RTL)),o.__param(3,a.Optional()),o.__param(3,a.Inject(n.FlatColorPickerLocalizationService)),o.__metadata("design:paramtypes",[String,r.MessageService,Boolean,n.FlatColorPickerLocalizationService])],s));function s(e,t,n,o){e=i.call(this,e,t,n)||this;return e.flatColorPickerLocalization=o,e}t.ColorPaletteLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(2),n=n(22),a=(i=r.LocalizationService,o.__extends(s,i),s.prototype.get=function(e){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(e):i.prototype.get.call(this,e)},o.__decorate([o.__param(0,a.Inject(r.L10N_PREFIX)),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(2,a.Inject(r.RTL)),o.__param(3,a.Optional()),o.__param(3,a.Inject(n.FlatColorPickerLocalizationService)),o.__metadata("design:paramtypes",[String,r.MessageService,Boolean,n.FlatColorPickerLocalizationService])],s));function s(e,t,n,o){e=i.call(this,e,t,n)||this;return e.flatColorPickerLocalization=o,e}t.ColorGradientLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCommand=function(a){return function(e,t,n){var o=a(n[t-1],n[t-2],e),i=o[0],o=o[1],n=a(e,n[t-1],n[t+1],!0);return"C "+i+","+o+" "+n[0]+","+n[1]+" "+e[0]+","+e[1]}},t.controlPoint=function(i){return function(e,t,n,o){t=i(t||e,n||e),n=t.angle+(o?Math.PI:0),o=.1*t.length;return[e[0]+Math.cos(n)*o,e[1]+Math.sin(n)*o]}},t.line=function(e,t){var n=t[0]-e[0],t=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(t,2)),angle:Math.atan2(t,n)}},t.d=function(e,i){return 0===e.length?"":e.reduce(function(e,t,n,o){return 0===n?"M "+t[0]+","+t[1]:e+" "+i(t,n,o)},"")},t.svgPath=function(e,i){return 0===e.length?"":e.reduce(function(e,t,n,o){return 0===n?"M "+t[0]+","+t[1]:e+" "+i(t,n,o)},"")}},function(e,t){e.exports=v},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=t(90),l=t(4);function i(t,e){if(t=t.toLowerCase().trim(),l.isPresent(s.namedColors[t]))return t;s.parseColor(t,e)&&(t=s.parseColor(t,e).toHex());var n=Object.keys(s.namedColors).find(function(e){return s.namedColors[e]===t});if(n||e)return n;throw new Error("The provided color "+t+" is not supported for 'format=\"name\"' property.To display "+t+" color, the component 'format' property should be set to 'hex' or 'rgba' ")}r.parseColor=function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!0),-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(l.isPresent(e)){if("name"===t)return i(e,o);e=s.parseColor(e.trim(),o);return l.isPresent(e)?"hex"===t?r.getHexValue(e,n):e.toCssRgba():void 0}},r.getHSV=function(e,t){e=s.parseColor(e,t=void 0===t?!0:t);return l.isPresent(e)?e.toHSV():{}},r.getRGBA=function(e,t){e=s.parseColor(e,t=void 0===t?!0:t);return l.isPresent(e)?e.toBytes():{}},r.getColorFromHSV=function(e,t,n){void 0===t&&(t="rgba"),void 0===n&&(n=!1);var o=l.fitIntoBounds(e.h,0,359.9),i=l.fitIntoBounds(e.s,0,1),a=l.fitIntoBounds(e.v,0,1),e=l.fitIntoBounds(e.a,0,1),o=s.Color.fromHSV(o,i,a,e);return"hex"===t?r.getHexValue(o,n):o.toCssRgba()},r.getHexValue=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},r.getColorFromHue=function(e){return r.getColorFromHSV({h:e,s:1,v:1,a:1})},r.getColorFromRGBA=function(e){var t=l.fitIntoBounds(e.r,0,255),n=l.fitIntoBounds(e.g,0,255),o=l.fitIntoBounds(e.b,0,255),e=l.fitIntoBounds(e.a,0,1);return s.Color.fromBytes(t,n,o,e).toCssRgba()},r.nameFormat=i,r.getRGBFromRGBA=function(e,t){var n=l.fitIntoBounds(e.r,0,255),o=l.fitIntoBounds(e.g,0,255),i=l.fitIntoBounds(e.b,0,255),e=l.fitIntoBounds(e.a,0,1),a=l.fitIntoBounds(t.r,0,255),r=l.fitIntoBounds(t.g,0,255),t=l.fitIntoBounds(t.b,0,255);return{r:Math.round((1-e)*a+e*n),g:Math.round((1-e)*r+e*o),b:Math.round((1-e)*t+e*i)}},r.getLuminance=function(e){e=[e.r,e.g,e.b].map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*e[0]+.7152*e[1]+.0722*e[2]},r.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},r.getContrastFromTwoRGBAs=function(e,t){return r.getContrast(r.getLuminance(r.getRGBFromRGBA(e,t)),r.getLuminance(r.getRGBFromRGBA(t,{r:0,g:0,b:0,a:1})))}},function(e,t,n){"use strict";function o(e){this.color=e,this.openPrevented=!1}Object.defineProperty(t,"__esModule",{value:!0}),o.prototype.preventOpen=function(){this.openPrevented=!0},o.prototype.isOpenPrevented=function(){return this.openPrevented},t.ActiveColorClickEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),n=(o=n(3).PreventableEvent,i.__extends(a,o),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.ColorPickerOpenEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),n=(o=n(3).PreventableEvent,i.__extends(a,o),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.ColorPickerCloseEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),n=(o=n(3).PreventableEvent,i.__extends(a,o),a);function a(e){var t=o.call(this)||this;return t.originalEvent=e,t}t.ColorPickerCancelEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PALETTEPRESETS={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(14),r=n(21),n=(s.prototype.getPaletteSettings=function(e,t){var t="name"!==t?a.DEFAULT_PRESET:a.DEFAULT_ACCESSIBLE_PRESET,n=e.palette,o="string"==typeof n&&r.PALETTEPRESETS[n]?r.PALETTEPRESETS[n].columns:void 0;return{palette:n||t,tileSize:e.tileSize||24,columns:e.columns||o||10}},s.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width||e.height,height:e.height||e.width}},o.__decorate([i.Injectable()],s));function s(){}t.FlatColorPickerService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(9),l=n(1),d=n(4),c=n(3),n=(Object.defineProperty(i.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),i.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},i.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},o.__decorate([l.Input(),o.__metadata("design:type",String)],i.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],i.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],i.prototype,"readonly",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],i.prototype,"value",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],i.prototype,"selectOnFocus",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],i.prototype,"placeholder",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],i.prototype,"inputFocus",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],i.prototype,"inputBlur",void 0),o.__decorate([l.ViewChild("input",{static:!0}),o.__metadata("design:type",l.ElementRef)],i.prototype,"input",void 0),o.__decorate([l.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],i.prototype,"disabledClass",null),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],i.prototype,"direction",void 0),i);function i(e,t,n,o,i,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=o,this.injector=i,this.hostElement=a,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new l.EventEmitter,this.inputBlur=new l.EventEmitter,this.subscriptions=new s.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){r.changeDetector.markForCheck(),(c.hasObservers(r.inputBlur)||d.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.ngChange=function(e){},this.ngTouched=function(){}}t.TextFieldsBase=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(53),n=(o=n.TextBoxMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.TextBoxMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-textbox-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.TextBoxCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(59),n=(o=n.Messages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-switch-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.SwitchCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(62),n=(o=n.RangeSliderMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.RangeSliderMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-rangeslider-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.RangeSliderCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(0),r=n(1),s=n(2),n=n(65),n=(o=n.SliderMessages,a.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=a.__decorate([r.Component({providers:[{provide:n.SliderMessages,useExisting:r.forwardRef(function(){return i})}],selector:"kendo-slider-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.SliderCustomMessagesComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(28),r=n(64),s=n(61),l=n(27),d=n(57),c=n(56),u=n(50),p=n(6),h=n(47),f=n(38),g=n(36),n=n(34),o=o.__decorate([i.NgModule({exports:[u.TextAreaModule,c.TextBoxModule,a.SliderModule,r.RangeSliderModule,s.SwitchModule,l.NumericTextBoxModule,d.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,g.RadioButtonModule,n.FormFieldModule],imports:[p.CommonModule]})],m);function m(){}t.InputsModule=o},function(e,t,n){"use strict";function o(e,t){void 0===t&&(t=[]),this.input=e=void 0===e?[]:e,this.control=t,this.inputCursor=0,this.controlCursor=0}Object.defineProperty(t,"__esModule",{value:!0}),o.prototype.eof=function(){return this.inputCursor>=this.input.length},o.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},o.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},o.prototype.eat_input=function(){this.inputCursor++},o.prototype.eat_control=function(){this.controlCursor++},o.prototype.eat=function(){this.inputCursor++,this.controlCursor++},t.Stream=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(70),i=n(69);t.sequence=function(e){return e.reduce(function(e,t){return n=t,e.chain(function(t){return n.map(function(e){return t.concat([e])})});var n},(t=[],new o.Parser(function(e){return new i.Result(t,e)})));var t},t.greedy=function(n){return new o.Parser(function(e){for(var t=new i.Result([],e);!e.eof();)t=t.concat(n.run(e));return t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),l=n(105),a=n(70),n=(r.prototype.update=function(e){var t=e.mask,n=e.prompt,n=void 0===n?"":n,o=e.promptPlaceholder,o=void 0===o?" ":o,i=e.rules,i=void 0===i?{}:i,e=e.includeLiterals,e=void 0!==e&&e;this.mask=void 0===t?"":t,this.prompt=n,this.promptPlaceholder=o,this.rules=i,this.includeLiterals=e,this.tokenize()},r.prototype.validationValue=function(e){var t=e=void 0===e?"":e;return l.sequence(this.validationTokens).run(e).fold(function(e){t=e.join("")}),t},r.prototype.rawValue=function(e){var t=e=void 0===e?"":e;return this.rawTokens.length&&l.sequence(this.rawTokens).run(e).fold(function(e){t=e.join("")}),t},r.prototype.maskRaw=function(e){var t=e=void 0===e?"":e;return this.maskTokens.length&&l.sequence(this.maskTokens).run(e).fold(function(e){t=e.join("")}),t},r.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},r.prototype.maskInRange=function(e,t,n,o){var i="",a=o,r=t.split("").slice(0,n),s=t.split("").slice(o);return l.sequence(this.maskTokens.slice(n,o)).run(e).fold(function(e){i=r.concat(e).concat(s).join("")}),{selection:a,value:i}},r.prototype.maskRemoved=function(e,t,n){var o=this,i="",a=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),e=this.maskTokens.length-(e.length-n);return l.sequence(this.maskTokens.slice(0,e)).run(s,t).fold(function(e){a=o.adjustPosition(e,a),i=e.concat(r).join("")}),{selection:a,value:i}},r.prototype.adjustPosition=function(e,t){e=e[t];return this.maskTokens[t].isLiteral(e)||e===this.prompt?t:t+1},r.prototype.maskInserted=function(e,n,t){var o=this,i="",a=t,e=e.slice(0,t);return l.sequence(this.unmaskTokens).run(e,n).chain(function(e){a=e.join("").length;var t=n.slice(a);return l.sequence(o.maskTokens).run(e.join("")+t,n)}).fold(function(e){i=e.join("")}),{selection:a,value:i}},Object.defineProperty(r.prototype,"maskTokenCreator",{get:function(){var t=this.prompt,n=this.promptPlaceholder;return{literal:function(e){return a.literal(e)},mask:function(e){return a.mask({prompt:t,promptPlaceholder:n})(e)}}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"unmaskTokenCreator",{get:function(){var t=this;return{literal:function(e){return a.unliteral(e)},mask:function(e){return a.unmask(t.prompt)(e)}}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rawTokenCreator",{get:function(){var t=this.prompt,n=this.promptPlaceholder,o=this.includeLiterals;return{literal:function(e){return a.rawLiteral(o)},mask:function(e){return a.rawMask({prompt:t,promptPlaceholder:n})}}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validationTokenCreator",{get:function(){var t=this.prompt;return{literal:function(e){return a.rawLiteral(!1)},mask:function(e){return a.rawMask({prompt:t,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),r.prototype.tokenize=function(){var n=this;l.greedy(a.token(this.rules,this.maskTokenCreator)).run(this.mask).fold(function(e,t){n.maskTokens=e}),l.greedy(a.token(this.rules,this.unmaskTokenCreator)).run(this.mask).fold(function(e,t){n.unmaskTokens=e}),l.greedy(a.token(this.rules,this.rawTokenCreator)).run(this.mask).fold(function(e,t){n.rawTokens=e}),l.greedy(a.token(this.rules,this.validationTokenCreator)).run(this.mask).fold(function(e,t){n.validationTokens=e})},o.__decorate([i.Injectable()],r));function r(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}t.MaskingService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.ArrowDirection||(t.ArrowDirection={}))[t.Down=-1]="Down",t[t.None=0]="None",t[t.Up=1]="Up"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74);t.numericRegex=function(e){var t=e.autoCorrect,n=e.decimals,o=e.min,e=e.separator;return e===i.POINT&&(e="\\"+e),new RegExp("^"+(t&&null!==o&&0<=o?"":"-?")+(0===n?"\\d*":"(?:(?:\\d+("+e+"\\d*)?)|(?:"+e+"\\d*))?")+"$")},t.decimalPart=function(e){return 0<=e?Math.floor(e):Math.ceil(e)},t.noop=function(e){},t.defined=function(e){return void 0!==e},t.isNumber=function(e){return!isNaN(e)&&null!==e},t.pad=function(e,t){var t=t-String(e).length,n=e;return 0<t&&(t=new Array(1+t).join("0"),n=parseFloat(e+t)),n},t.getDeltaFromMouseWheel=function(e){var t=0;return e.wheelDelta?t=0<(t=e.wheelDelta/120)?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t},t.getCaretPosition=function(e){return e.selectionStart},t.extractSignificantNumericChars=function(e,t){var n=t+"0123456789-";return e.split("").reduce(function(e,t){return n.includes(t)?++e:e},0)},t.isRightClick=function(e){var t=e.button&&2===e.button,e=e.which&&3===e.which;return t||e}},function(e,t){e.exports=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t.createMinValidator=function(t){return function(e){return!o.isPresent(t)||!o.isPresent(e.value)||e.value>=t?null:{minError:{minValue:t,value:e.value}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t.createMaxValidator=function(t){return function(e){return!o.isPresent(t)||!o.isPresent(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(10),l=n(10),n=(o=n(80).SliderModelBase,i.__extends(a,o),a.prototype.positionHandle=function(e){var t,n,o,i,a,r;e.id&&(t=(i=this.props).max,n=i.min,o=i.reverse,i=i.vertical?"bottom":"left",a=this.trackWidth(),r=s.isStartHandle(e)?l.trimValueRange(t,n,this.props.value)[0]:l.trimValueRange(t,n,this.props.value)[1],s.isStartHandle(e)?(this.startHandlePosition=l.calculateHandlePosition({min:n,max:t,reverse:o,value:r,trackWidth:a}),this.renderer.setStyle(e,i,this.startHandlePosition+"px")):(this.endHandlePosition=l.calculateHandlePosition({min:n,max:t,reverse:o,value:r,trackWidth:a}),this.renderer.setStyle(e,i,this.endHandlePosition+"px")))},a.prototype.positionSelection=function(e,t){var n=this.props,o=n.reverse,n=n.vertical,i=n?"height":"width",a=n?"bottom":o?"right":"left",r=Math.abs(this.endHandlePosition-this.startHandlePosition),n=n?e.style.bottom:e.style.left;this.renderer.setStyle(t,i,r+"px"),this.renderer.setStyle(t,a,o?this.trackWidth()-parseFloat(n)+"px":parseFloat(n)+"px")},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.RangeSliderModel=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(10),n=(o=n(80).SliderModelBase,i.__extends(a,o),a.prototype.positionHandle=function(e){var t=this.props,n=t.max,o=t.min,i=t.reverse,t=t.vertical?"bottom":"left",a=this.trackWidth(),r=s.trimValue(n,o,this.props.value);this.handlePosition=s.calculateHandlePosition({min:o,max:n,reverse:i,value:r,trackWidth:a}),this.renderer.setStyle(e,t,this.handlePosition+"px")},a.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,t=t.vertical?"height":"width",o=this.handlePosition;n&&(o=this.trackWidth()-o),this.renderer.setStyle(e,t,o+"px")},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.SliderModel=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(32),a=(t.SliderComponent=a.SliderComponent,n(78)),a=(t.RangeSliderComponent=a.RangeSliderComponent,n(15)),a=(t.LabelTemplateDirective=a.LabelTemplateDirective,n(77)),a=(t.SwitchComponent=a.SwitchComponent,n(76)),a=(t.TextBoxDirective=a.TextBoxDirective,n(75)),a=(t.TextAreaDirective=a.TextAreaDirective,n(29)),a=(t.NumericTextBoxComponent=a.NumericTextBoxComponent,n(73)),a=(t.NumericTextBoxCustomMessagesComponent=a.NumericTextBoxCustomMessagesComponent,n(71)),a=(t.MaskedTextBoxComponent=a.MaskedTextBoxComponent,n(103)),a=(t.InputsModule=a.InputsModule,n(67)),a=(t.SliderTicksComponent=a.SliderTicksComponent,n(28)),a=(t.SliderModule=a.SliderModule,n(64)),a=(t.RangeSliderModule=a.RangeSliderModule,n(61)),a=(t.SwitchModule=a.SwitchModule,n(27)),a=(t.NumericTextBoxModule=a.NumericTextBoxModule,n(57)),a=(t.MaskedTextBoxModule=a.MaskedTextBoxModule,n(56)),a=(t.TextBoxModule=a.TextBoxModule,n(50)),a=(t.TextAreaModule=a.TextAreaModule,n(38)),a=(t.CheckBoxModule=a.CheckBoxModule,n(36)),a=(t.RadioButtonModule=a.RadioButtonModule,n(45)),a=(t.ColorPickerComponent=a.ColorPickerComponent,n(18)),a=(t.ColorPaletteComponent=a.ColorPaletteComponent,n(19)),a=(t.ColorGradientComponent=a.ColorGradientComponent,n(47)),a=(t.ColorPickerModule=a.ColorPickerModule,i.__exportStar(n(20),t),n(23)),i=(t.FlatColorPickerComponent=a.FlatColorPickerComponent,n(37)),a=(t.CheckBoxDirective=i.CheckBoxDirective,n(35)),i=(t.RadioButtonDirective=a.RadioButtonDirective,n(16)),a=(t.HintComponent=i.HintComponent,n(17)),i=(t.ErrorComponent=a.ErrorComponent,n(33)),a=(t.FormFieldComponent=i.FormFieldComponent,n(34)),i=(t.FormFieldModule=a.FormFieldModule,n(55)),a=(t.TextBoxComponent=i.TextBoxComponent,n(25)),i=(t.TextBoxPrefixTemplateDirective=a.TextBoxPrefixTemplateDirective,n(26)),a=(t.TextBoxSuffixTemplateDirective=i.TextBoxSuffixTemplateDirective,n(49)),i=(t.TextAreaComponent=a.TextAreaComponent,n(48)),a=(t.TextAreaSuffixComponent=i.TextAreaSuffixComponent,n(51)),i=(t.InputSeparatorComponent=a.InputSeparatorComponent,n(24)),a=(t.SharedModule=i.SharedModule,n(39)),i=(t.LocalizedColorPickerMessagesDirective=a.LocalizedColorPickerMessagesDirective,n(58)),a=(t.LocalizedNumericTextBoxMessagesDirective=i.LocalizedNumericTextBoxMessagesDirective,n(52)),i=(t.LocalizedTextBoxMessagesDirective=a.LocalizedTextBoxMessagesDirective,n(66)),a=(t.LocalizedSliderMessagesDirective=i.LocalizedSliderMessagesDirective,n(63)),i=(t.LocalizedRangeSliderMessagesDirective=a.LocalizedRangeSliderMessagesDirective,n(60)),r=(t.LocalizedSwitchMessagesDirective=i.LocalizedSwitchMessagesDirective,t);for(o in r)s(o,r[o])}],i={},o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=114)}}});