@progress/kendo-angular-inputs 8.0.5 → 8.0.7-dev.202202251414
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-inputs.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/colorpicker/color-gradient.component.js +32 -14
- package/dist/es/colorpicker/flatcolorpicker.component.js +2 -9
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/colorpicker/color-gradient.component.d.ts +5 -1
- package/dist/es2015/colorpicker/color-gradient.component.js +35 -16
- package/dist/es2015/colorpicker/flatcolorpicker.component.js +2 -9
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +38 -26
- package/dist/fesm5/index.js +35 -24
- package/dist/npm/colorpicker/color-gradient.component.js +32 -14
- package/dist/npm/colorpicker/flatcolorpicker.component.js +2 -9
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +2 -2
|
@@ -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","rxjs/operators","@angular/forms","@progress/kendo-angular-l10n","rxjs","@progress/kendo-common","@progress/kendo-licensing","@progress/kendo-angular-intl","@progress/kendo-drawing"],function(f){var a,r,s,l,d,c,u,p,h,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){s=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){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=p},function(e,t){e.exports=l},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=s},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:1645175564,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=h},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=c},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);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});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(c,u,e){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var t,n=e(0),s=e(1),p=e(5),l=e(3),o=e(2),h=e(8),f=e(12),g=e(87),m=e(7),i=e(21),a=e(13),r=e(4),e=e(86),_=0,p=(t=d,Object.defineProperty(d.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"value",{get:function(){return this._value},set:function(e){this._value=a.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=1<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this,e=("string"==typeof(e=r.isPresent(e)?e:"office")&&r.isPresent(i.PALETTEPRESETS[e])&&(this.columns=this.columns||i.PALETTEPRESETS[e].columns,e=i.PALETTEPRESETS[e].colors),"string"==typeof e?e.split(","):e);this._palette=e.map(function(e){return a.parseColor(e,t.format,!1,!1)})},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var e;0===this.colorRows.length&&(e="name"!==this.format?"office":"accessible",this.palette=this.palette||e,this.setRows())},d.prototype.ngAfterViewInit=function(){var e=this;this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe(f.take(1)).subscribe(function(){e.selectCell(e.value)})},d.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},d.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())},d.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()},d.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},d.prototype.handleCellSelection=function(e,t){this.readonly||(this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0,e=a.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))},d.prototype.writeValue=function(e){this.value=e,this.selectCell(e)},d.prototype.registerOnChange=function(e){this.notifyNgChanged=e},d.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},d.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},d.prototype.isEmpty=function(){return!1},d.prototype.reset=function(){this.focusedCell=null,r.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},d.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},d.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},d.prototype.selectCell=function(e){this.selectedCell=this.service.getCellCoordsFor(e),this.focusedCell=this.selectedCell},d.prototype.setRows=function(){r.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},d.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},d.prototype.setHostElementAriaLabel=function(){var e=a.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},d.prototype.handleEnter=function(){var e;r.isPresent(this.focusedCell)&&(e=this.service.getColorAt(this.focusedCell),this.handleCellSelection(e,this.focusedCell))},n.__decorate([s.HostBinding("attr.dir"),n.__metadata("design:type",String)],d.prototype,"direction",void 0),n.__decorate([s.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],d.prototype,"paletteId",null),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"id",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"format",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"value",null),n.__decorate([s.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],d.prototype,"columns",null),n.__decorate([s.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],d.prototype,"palette",null),n.__decorate([s.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],d.prototype,"tabindex",null),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"readonly",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Object)],d.prototype,"tileSize",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"selectionChange",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"valueChange",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"cellSelection",void 0),n.__decorate([s.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],d.prototype,"hostTabindex",null),n.__decorate([s.HostBinding("class.k-colorpalette"),n.__metadata("design:type",Boolean)],d.prototype,"hostClasses",void 0),n.__decorate([s.HostBinding("attr.aria-disabled"),s.HostBinding("class.k-state-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"disabledClass",null),n.__decorate([s.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"readonlyAttribute",null),n.__decorate([s.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],d.prototype,"handleKeydown",null),n.__decorate([s.HostListener("blur"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],d.prototype,"handleHostBlur",null),t=n.__decorate([s.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:p.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return t})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return t})},e.ColorPaletteService,g.ColorPaletteLocalizationService,{provide:o.LocalizationService,useExisting:g.ColorPaletteLocalizationService},{provide:o.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 '}),n.__metadata("design:paramtypes",[s.ElementRef,e.ColorPaletteService,s.ChangeDetectorRef,s.Renderer2,o.LocalizationService,s.NgZone])],d));function d(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-"+_++,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(){},h.validatePackage(m.packageMetadata),this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}u.ColorPaletteComponent=p},function(c,u,e){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var t,a=e(0),r=e(1),p=e(5),h=e(9),f=e(12),n=e(2),o=e(3),g=e(8),m=e(11),s=e(13),l=e(4),_=e(32),v=e(88),y=e(43),d=e(14),b=e(7),C=0,e=(t=i,Object.defineProperty(i.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(e){this._value=s.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=s.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t;l.isPresent(e)?(t=Number(e),this._tabindex=isNaN(t)?0:t):this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return!(!o.isDocumentAvailable()||!l.isPresent(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"alphaSliderValue",{get:function(){if(l.isPresent(this.hsva.value)&&l.isPresent(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&0<this.contrastTool.length},enumerable:!0,configurable:!0}),i.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},i.prototype.ngOnChanges=function(e){o.isChanged("value",e)&&!this.isFocused&&this.updateUI(),o.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},i.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},i.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},i.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},i.prototype.handleDragPress=function(e){this.disabled||this.readonly||!l.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},i.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},i.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(s.getColorFromHSV(this.hsva.value,this.format,this.opacity)))},i.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=d.DRAGHANDLE_MOVE_SPEED;break;case"ArrowLeft":o=-d.DRAGHANDLE_MOVE_SPEED;break;case"ArrowUp":i=-d.DRAGHANDLE_MOVE_SPEED;break;case"ArrowDown":i=d.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)})}},i.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)}))},i.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(s.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.backgroundColor=s.getColorFromHue(e),this.setAlphaSliderBackground(this.backgroundColor)},i.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(s.getColorFromHSV(this.hsva.value,this.format,this.opacity))},i.prototype.handleInputsValueChange=function(e){e=s.parseColor(e,this.format,this.opacity);this.value!==e&&(this.handleValueChange(e),this.updateUI())},i.prototype.writeValue=function(e){this.value=e,l.isPresent(this.gradientWrapper)&&this.updateUI()},i.prototype.registerOnChange=function(e){this.notifyNgChanged=e},i.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},i.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(i.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=s.parseColor(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),i.prototype.isEmpty=function(){return!1},i.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,o=n.width,n=n.height,t=l.fitIntoBounds(t,0,n),e=l.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(s.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(s.getColorFromHSV(a.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},i.prototype.updateUI=function(){var e,t;o.isDocumentAvailable()&&(this.hsva.next(this.value?s.getHSV(this.value):{h:0,s:0,v:1,a:1}),t=this.gradientRect,e=(1-this.hsva.value.v)*t.height,t=this.hsva.value.s*t.width,this.setDragHandleElementPosition(e,t),this.backgroundColor=s.getColorFromHue(this.hsva.value.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel())},i.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},i.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},i.prototype.setAlphaSliderBackground=function(e){var t;l.isPresent(this.alphaSlider)&&(t=this.alphaSlider.track.nativeElement,this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")"))},i.prototype.setHostElementAriaLabel=function(){var e=s.parseColor(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},i.prototype.addEventListeners=function(){var a=this;this.ngZone.runOutsideAngular(function(){var e=a.renderer.listen(a.host.nativeElement,"focusout",function(e){!m.containsFocus(a.host.nativeElement,e.relatedTarget)&&m.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(s.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)})},i.prototype.subscribeChanges=function(){var t=this;this.changeRequestsSubscription=this.updateValues.pipe(f.throttleTime(this.delay)).subscribe(function(e){t.handleValueChange(e)})},i.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},a.__decorate([r.HostBinding("class.k-colorgradient"),a.__metadata("design:type",Boolean)],i.prototype,"hostClasses",void 0),a.__decorate([r.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],i.prototype,"readonlyAttribute",null),a.__decorate([r.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],i.prototype,"disabledClass",null),a.__decorate([r.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],i.prototype,"gradientId",null),a.__decorate([r.HostBinding("attr.dir"),a.__metadata("design:type",String)],i.prototype,"direction",void 0),a.__decorate([r.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],i.prototype,"hostTabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],i.prototype,"id",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],i.prototype,"opacity",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],i.prototype,"disabled",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],i.prototype,"readonly",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],i.prototype,"clearButton",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Number)],i.prototype,"delay",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],i.prototype,"value",null),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],i.prototype,"contrastTool",null),a.__decorate([r.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],i.prototype,"tabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],i.prototype,"format",void 0),a.__decorate([r.Output(),a.__metadata("design:type",r.EventEmitter)],i.prototype,"valueChange",void 0),a.__decorate([r.ViewChild("gradientDragHandle",{read:r.ElementRef,static:!1}),a.__metadata("design:type",r.ElementRef)],i.prototype,"gradientDragHandle",void 0),a.__decorate([r.ViewChild("inputs",{static:!1}),a.__metadata("design:type",y.ColorInputComponent)],i.prototype,"inputs",void 0),a.__decorate([r.ViewChild("alphaSlider",{static:!1}),a.__metadata("design:type",_.SliderComponent)],i.prototype,"alphaSlider",void 0),a.__decorate([r.ViewChild("gradientWrapper",{static:!1}),a.__metadata("design:type",r.ElementRef)],i.prototype,"gradientWrapper",void 0),t=a.__decorate([r.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:p.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return t})},{provide:o.KendoInput,useExisting:r.forwardRef(function(){return t})},v.ColorGradientLocalizationService,{provide:n.LocalizationService,useExisting:v.ColorGradientLocalizationService},{provide:n.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" [style.background]="backgroundColor">\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 [smallStep]="5"\n [largeStep]="10"\n [value]="hsva.value.h"\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" *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,n.LocalizationService])],i));function i(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-"+C++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=d.DEFAULT_OUTPUT_FORMAT,this.valueChange=new r.EventEmitter,this.backgroundColor=d.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new h.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.updateValues=new h.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},g.validatePackage(b.packageMetadata),this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}u.ColorGradientComponent=e},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),s=t(1),u=t(5),p=t(9),i=t(2),a=t(3),h=t(8),r=t(22),l=t(97),f=t(7),g=t(16),m=t(13),_=t(4),v=t(20),y=t(19),b=t(42),t=t(41),b=(n=d,Object.defineProperty(d.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"value",{get:function(){return this._value},set:function(e){this._value=m.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},d.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},d.prototype.ngOnChanges=function(e){a.isChanged("value",e)&&this.setHostElementAriaLabel(),a.isChanged("paletteSettings",e)&&this.setSizingVariables()},d.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(d.prototype,"headerHasContent",{get:function(){return this.preview||1<this.views.length||this.clearButton},enumerable:!0,configurable:!0}),d.prototype.isEmpty=function(){return!1},d.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},d.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},d.prototype.reset=function(){_.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},d.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()})}))},d.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},d.prototype.handleValueChange=function(e){this.value!==e&&(this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e))},d.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},d.prototype.writeValue=function(e){this.value=e},d.prototype.registerOnChange=function(e){this.notifyNgChanged=e},d.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},d.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},d.prototype.resetSelection=function(e){e=new g.ColorPickerCancelEvent(e);this.cancel.emit(e),e.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},d.prototype.setHostElementAriaLabel=function(){var e=m.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)},d.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)},d.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},d.prototype.resetInnerComponentValue=function(){this.selection=null,(this.gradient||this.palette).reset()},d.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},d.prototype.setActiveView=function(){if(_.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]},d.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()}))}))},o.__decorate([s.HostBinding("class.k-flatcolorpicker"),s.HostBinding("class.k-coloreditor"),o.__metadata("design:type",Boolean)],d.prototype,"hostClasses",void 0),o.__decorate([s.HostBinding("class.k-state-disabled"),s.HostBinding("attr.aria-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],d.prototype,"disabledClass",null),o.__decorate([s.HostBinding("attr.aria-readonly"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],d.prototype,"ariaReadonly",null),o.__decorate([s.HostBinding("attr.dir"),o.__metadata("design:type",String)],d.prototype,"direction",void 0),o.__decorate([s.HostBinding("attr.tabindex"),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[])],d.prototype,"hostTabindex",null),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],d.prototype,"readonly",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],d.prototype,"format",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],d.prototype,"value",null),o.__decorate([s.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],d.prototype,"tabindex",null),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],d.prototype,"clearButton",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],d.prototype,"preview",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],d.prototype,"actionsLayout",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],d.prototype,"activeView",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Array)],d.prototype,"views",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],d.prototype,"gradientSettings",null),o.__decorate([s.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],d.prototype,"paletteSettings",null),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],d.prototype,"valueChange",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],d.prototype,"cancel",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],d.prototype,"activeViewChange",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],d.prototype,"actionButtonClick",void 0),o.__decorate([s.ViewChild("header",{static:!1}),o.__metadata("design:type",b.FlatColorPickerHeaderComponent)],d.prototype,"header",void 0),o.__decorate([s.ViewChild("gradient",{static:!1}),o.__metadata("design:type",v.ColorGradientComponent)],d.prototype,"gradient",void 0),o.__decorate([s.ViewChild("palette",{static:!1}),o.__metadata("design:type",y.ColorPaletteComponent)],d.prototype,"palette",void 0),o.__decorate([s.ViewChild("footer",{static:!1}),o.__metadata("design:type",t.FlatColorPickerActionButtonsComponent)],d.prototype,"footer",void 0),n=o.__decorate([s.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:u.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return n})},{provide:a.KendoInput,useExisting:s.forwardRef(function(){return n})},l.FlatColorPickerService,r.FlatColorPickerLocalizationService,{provide:i.LocalizationService,useExisting:r.FlatColorPickerLocalizationService},{provide:i.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'}),o.__metadata("design:paramtypes",[s.ElementRef,l.FlatColorPickerService,i.LocalizationService,s.ChangeDetectorRef,s.Renderer2,s.NgZone])],d));function d(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 p.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},h.validatePackage(f.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}e.FlatColorPickerComponent=b},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(d,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(29),a=t(6),r=t(58),s=t(73),t=t(3),n=n.__decorate([o.NgModule({declarations:[r.LocalizedNumericTextBoxMessagesDirective,i.NumericTextBoxComponent,s.NumericTextBoxCustomMessagesComponent],exports:[i.NumericTextBoxComponent,s.NumericTextBoxCustomMessagesComponent],imports:[a.CommonModule,t.EventsModule]})],l);function l(){}e.NumericTextBoxModule=n},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(6),a=t(32),r=t(68),s=t(66),l=t(102),t=t(15),n=n.__decorate([o.NgModule({declarations:[a.SliderComponent,l.SliderCustomMessagesComponent,s.LocalizedSliderMessagesDirective],exports:[a.SliderComponent,l.SliderCustomMessagesComponent,t.LabelTemplateDirective,s.LocalizedSliderMessagesDirective],imports:[i.CommonModule,r.SlidersCommonModule]})],d);function d(){}e.SliderModule=n},function(i,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t,n=e(0),l=e(1),d=e(3),c=e(4),s=e(11),p=e(31),h=e(111),g=e(110),m=e(5),_=e(109),v=e(2),y=e(8),b=e(7),a=e(74),f=e(108),u=e(107),C=e(30),k=["min","max","step","decimals"],S={decimals:null,max:null,min:null,step:1},e=(t=o,Object.defineProperty(o.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(o.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),o.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(m.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)))})},o.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},o.prototype.ngOnChanges=function(t){d.anyChanged(k,t,!1)&&this.parseOptions(k.filter(function(e){return t[e]})),this.verifySettings(),d.anyChanged(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?g.createMinValidator(this.min):f.noop,this.maxValidateFn=this.rangeValidation?h.createMaxValidator(this.max):f.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())},o.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})},o.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},o.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},o.prototype.writeValue=function(e){this.verifyValue(e);e=this.restrictModelValue(e);this.value=e,this.setInputValue()},o.prototype.registerOnChange=function(e){this.ngChange=e},o.prototype.registerOnTouched=function(e){this.ngTouched=e},o.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},o.prototype.focus=function(){s.invokeElementMethod(this.numericInput,"focus")},o.prototype.blur=function(){s.invokeElementMethod(this.numericInput,"blur")},o.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(o.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(o.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(o.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(o.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&0<=this.decimals},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),o.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||f.isRightClick(t)||(C.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,a.INITIAL_SPIN_DELAY):this.setInputValue())},o.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()})},o.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},o.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=f.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},o.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){n.spin(e,a.SPIN_DELAY)},t),this.addStep(e)},o.prototype.addStep=function(e){e=p.add(this.value||0,this.step*e),e=this.limitValue(e);e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)},o.prototype.setSelection=function(e,t){this.focused&&s.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},o.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(f.isNumber(this.max)&&e>this.max&&(t=this.max),f.isNumber(this.min)&&e<this.min&&(t=this.min)),t},o.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,c=t.selectionEnd,t=t.value,o=e,i=!1;if(!this.isInRange(e)){var u=t.length-String(this.inputValue).length,a=this.min,r=this.max,s=f.isNumber(r),p=f.isNumber(a),l=void 0,h=void 0,d=e;if(0===n&&this.inputValue.substr(1)===t)return{selectionEnd:c,selectionStart:n,value:null};s&&r<e?0<e?h=!0:l=r:p&&e<a&&(0<e?l=a:h=!0),l?(s=this.tryPadValue(e,l))&&f.decimalPart(e)!==f.decimalPart(l)&&(d=s,i=!0):h&&this.inputValue&&n!==t.length&&(d=parseFloat(t.substr(0,n)+t.substr(n+u))),o=this.limitValue(d),i=(i||o!==d)&&this.previousSelection&&0<this.previousSelection.end-this.previousSelection.start+u}return{selectionEnd:i?String(o).length:c,selectionStart:n,value:o}},o.prototype.tryPadValue=function(e,t){var n,t=String(Math.floor(t)).length,o=f.pad(e,t),e=f.pad(e,t+1);return this.isInRange(o)?n=o:this.isInRange(e)&&(n=e),n},o.prototype.isInRange=function(e){return!f.isNumber(e)||(!f.isNumber(this.min)||this.min<=e)&&(!f.isNumber(this.max)||e<=this.max)},o.prototype.restrictModelValue=function(e){e=this.restrictDecimals(e,!0);return e=this.autoCorrect&&this.limitValue(e)!==e?null:e},o.prototype.restrictDecimals=function(e,t){var n,o,i=e;return e&&this.hasDecimals&&(n=this.decimals,o=String(e),t||a.EXPONENT_REGEX.test(o)?i=p.toFixedPrecision(e,n):(e=(t=o.split(a.POINT))[1])&&e.length>n&&(e=e.substr(0,n),i=parseFloat(""+t[0]+a.POINT+e))),i},o.prototype.formatInputValue=function(e){var t=String(e),n=a.EXPONENT_REGEX.exec(t);return(t=n?e.toFixed(p.limitPrecision(parseInt(n[1],10))):t).replace(a.POINT,this.decimalSeparator)},o.prototype.formatValue=function(e,t){return null!==e&&f.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},o.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},o.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 "+a.MIN_DOC_LINK+" and "+a.MAX_DOC_LINK+".")},o.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.")},o.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:S[n]}}},o.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},o.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},o.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},o.prototype.selectCaret=function(){var e=f.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,e=t.substring(0,e);this.setInputValue(),e.length?(e=f.extractSignificantNumericChars(e,this.decimalSeparator),t=this.adjustSignificantChars(t,e),this.setSelection(t,t)):this.setSelection(0,0)},o.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},o.prototype.adjustSignificantChars=function(e,t){e=this.numberOfLeadingZeroes(e);return 0<e?Math.max(0,t-e):t},o.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)},n.__decorate([l.Input(),n.__metadata("design:type",String)],o.prototype,"focusableId",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"disabled",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"readonly",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],o.prototype,"title",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"autoCorrect",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],o.prototype,"format",null),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"max",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"min",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"decimals",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],o.prototype,"placeholder",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"step",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"spinners",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"rangeValidation",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"tabindex",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],o.prototype,"tabIndex",null),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"changeValueOnScroll",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"selectOnFocus",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"value",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"maxlength",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],o.prototype,"size",null),n.__decorate([l.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],o.prototype,"rounded",null),n.__decorate([l.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],o.prototype,"fillMode",null),n.__decorate([l.Output(),n.__metadata("design:type",l.EventEmitter)],o.prototype,"valueChange",void 0),n.__decorate([l.Output("focus"),n.__metadata("design:type",l.EventEmitter)],o.prototype,"onFocus",void 0),n.__decorate([l.Output("blur"),n.__metadata("design:type",l.EventEmitter)],o.prototype,"onBlur",void 0),n.__decorate([l.ViewChild("numericInput",{static:!0}),n.__metadata("design:type",l.ElementRef)],o.prototype,"numericInput",void 0),n.__decorate([l.HostBinding("attr.dir"),n.__metadata("design:type",String)],o.prototype,"direction",void 0),n.__decorate([l.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],o.prototype,"disableClass",null),n.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-numerictextbox"),n.__metadata("design:type",Boolean)],o.prototype,"hostClasses",void 0),t=n.__decorate([l.Component({exportAs:"kendoNumericTextBox",providers:[v.LocalizationService,{provide:v.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:m.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return t}),multi:!0},{provide:m.NG_VALIDATORS,useExisting:l.forwardRef(function(){return t}),multi:!0},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return t})}],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 '}),n.__metadata("design:paramtypes",[_.IntlService,l.Renderer2,v.LocalizationService,l.Injector,l.NgZone,l.ChangeDetectorRef,l.ElementRef])],o));function o(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=u.ArrowDirection,this.arrowDirection=u.ArrowDirection.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=f.noop,this.maxValidateFn=f.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=f.noop,this.ngTouched=f.noop,this.ngValidatorChange=f.noop,this.domEvents=[],this.increasePress=function(e){s.arrowPress(u.ArrowDirection.Up,e)},this.decreasePress=function(e){s.arrowPress(u.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(s.spinTimeout),s.arrowDirection!==u.ArrowDirection.None&&(s.arrowDirection=u.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=f.getDeltaFromMouseWheel(e),s.addStep(e))},y.validatePackage(b.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}r.NumericTextBoxComponent=e},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(a,u,e){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var p,t,n=e(0),o=e(1),h=e(5),r=e(9),s=e(12),f=e(10),g=e(113),m=e(2),_=e(4),l=e(10),d=e(11),c=e(3),e=(p=e(79).SliderBase,n.__extends(i,p),t=i,Object.defineProperty(i.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentValue",{get:function(){return _.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),i.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,d.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},i.prototype.blur=function(){this.focusChangedProgrammatically=!0,d.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},i.prototype.ngOnChanges=function(e){var t=this;c.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(s.take(1)).subscribe(function(){t.sizeComponent(!1)})},i.prototype.ngAfterViewInit=function(){var e=this;c.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())},i.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(i.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),i.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},i.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(l.eventValue(e,this.track.nativeElement,this.getProps()))},i.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},i.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},i.prototype.registerOnChange=function(e){this.ngChange=e},i.prototype.registerOnTouched=function(e){this.ngTouched=e},i.prototype.changeValue=function(e){var t=this;_.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()})},i.prototype.sizeComponent=function(e){var t,n,o,i,a;c.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 g.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(i.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.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}),i.prototype.setValueChangeInterval=function(o,i){var a=this;this.ngZone.runOutsideAngular(function(){var e=r.fromEvent(o,"mousedown"),t=r.fromEvent(o,"mouseup"),n=r.fromEvent(o,"mouseout"),e=e.pipe(s.filter(function(e){return 0===e.button&&!a.isDisabled}),s.concatMap(function(){return r.interval(150).pipe(s.startWith(-1),s.takeUntil(r.merge(t,n)))})).subscribe(function(){a.isFocused||d.invokeElementMethod(a.draghandle,"focus"),i()});a.subscriptions.add(e)})},i.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:f.trimValue(this.max,this.min,this.value),vertical:this.vertical}},i.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===c.Keys.Tab}))})},n.__decorate([o.Input(),n.__metadata("design:type",String)],i.prototype,"focusableId",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],i.prototype,"dragHandleTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],i.prototype,"incrementTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],i.prototype,"animate",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],i.prototype,"decrementTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],i.prototype,"showButtons",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],i.prototype,"value",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],i.prototype,"tabIndex",null),n.__decorate([o.ViewChild("draghandle",{static:!0}),n.__metadata("design:type",o.ElementRef)],i.prototype,"draghandle",void 0),n.__decorate([o.ViewChild("decreaseButton",{static:!1}),n.__metadata("design:type",o.ElementRef)],i.prototype,"decreaseButton",void 0),n.__decorate([o.ViewChild("increaseButton",{static:!1}),n.__metadata("design:type",o.ElementRef)],i.prototype,"increaseButton",void 0),t=n.__decorate([o.Component({exportAs:"kendoSlider",providers:[m.LocalizationService,{provide:m.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:h.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t})},{provide:c.KendoInput,useExisting:o.forwardRef(function(){return t})}],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 '}),n.__metadata("design:paramtypes",[m.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],i));function i(e,t,n,o,i,a){var r=p.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-"+c.guid(),r.animate=!0,r.showButtons=!0,r.value=r.min,r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t=e.target;r.isDisabled||l.isButton(t)||l.isButton(t.parentNode)||(t=l.eventValue(e,r.track.nativeElement,r.getProps()),r.changeValue(t)),d.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(f.trimValue(n,o,i)),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.decreaseValue=function(){r.changeValue(l.decreaseValueToStep(r.value,r.getProps()))},r.increaseValue=function(){r.changeValue(l.increaseValueToStep(r.value,r.getProps()))},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(c.hasObservers(r.onBlur)||_.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}u.SliderComponent=e},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(5),a=t(9),r=t(3),s=t(2),u=t(8),p=t(7),l=t(18),t=t(17),l=(Object.defineProperty(d.prototype,"errorClass",{get:function(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"disabledClass",{get:function(){return!!this.control&&!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),d.prototype.ngAfterViewInit=function(){this.setDescription()},d.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},d.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},d.prototype.disabledControl=function(){return this.control.disabled},d.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every(function(e){return e.nativeElement.hasAttribute("disabled")})},d.prototype.validateFormControl=function(e){if(o.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.")},d.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)})},d.prototype.isRadioControl=function(e){return e.valueAccessor instanceof i.RadioControlValueAccessor},d.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))})},d.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&r.isDocumentAvailable()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map(function(e){return e.nativeElement})},d.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(" ")},d.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},d.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)},d.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()}))},n.__decorate([o.HostBinding("class.k-form-field"),n.__metadata("design:type",Boolean)],d.prototype,"hostClass",void 0),n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",String)],d.prototype,"direction",void 0),n.__decorate([o.HostBinding("class.k-form-field-error"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"errorClass",null),n.__decorate([o.HostBinding("class.k-form-field-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"disabledClass",null),n.__decorate([o.ContentChildren(i.NgControl,{descendants:!0}),n.__metadata("design:type",o.QueryList),n.__metadata("design:paramtypes",[o.QueryList])],d.prototype,"formControls",null),n.__decorate([o.ContentChildren(i.NgControl,{read:o.ElementRef,descendants:!0}),n.__metadata("design:type",o.QueryList)],d.prototype,"controlElementRefs",void 0),n.__decorate([o.ContentChild(r.KendoInput,{static:!0}),n.__metadata("design:type",Object)],d.prototype,"kendoInput",void 0),n.__decorate([o.ContentChildren(l.ErrorComponent,{descendants:!0}),n.__metadata("design:type",o.QueryList)],d.prototype,"errorChildren",void 0),n.__decorate([o.ContentChildren(t.HintComponent,{descendants:!0}),n.__metadata("design:type",o.QueryList)],d.prototype,"hintChildren",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"showHints",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"orientation",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"showErrors",void 0),n.__decorate([o.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:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.formfield"}]}),n.__metadata("design:paramtypes",[o.Renderer2,s.LocalizationService,o.ElementRef])],d));function d(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 a.Subscription,this.rtl=!1,u.validatePackage(p.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;o.rtl=e,o.direction=o.rtl?"rtl":"ltr"}))}e.FormFieldComponent=l},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(17),n=n(18),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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(13),a=t(4),r=t(3),s=t(9),l=t(2),t=t(29),t=(Object.defineProperty(d.prototype,"isFocused",{get:function(){if(!r.isDocumentAvailable()||!a.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rgbaInputValid",{get:function(){var t=this;return Object.keys(this.rgba).every(function(e){return a.isPresent(t.rgba[e])})},enumerable:!0,configurable:!0}),d.prototype.ngAfterViewInit=function(){this.initDomEvents()},d.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},d.prototype.ngOnChanges=function(e){a.isPresent(e.value)&&!this.isFocused&&(this.hex=i.parseColor(this.value,"hex",this.opacity),this.rgba=i.getRGBA(this.value),this.rgba.a=i.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(d.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),d.prototype.handleRgbaValueChange=function(){var e=i.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=i.getRGBA(this.value),this.hex=i.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},d.prototype.handleHexValueChange=function(e){this.hex=e;e=i.parseColor(e,"rgba",this.opacity);a.isPresent(e)&&e!==this.value&&(this.value=e,this.rgba=i.getRGBA(e),this.valueChange.emit(e))},d.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=i.getRGBA(this.value))},d.prototype.handleHexInputBlur=function(){this.hex=i.parseColor(this.value,"hex",this.opacity)},d.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},d.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",function(){return e.toggleFormatView()}))},n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"focusableId",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"formatView",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"value",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],d.prototype,"opacity",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],d.prototype,"readonly",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],d.prototype,"valueChange",void 0),n.__decorate([o.HostBinding("class.k-colorgradient-inputs"),o.HostBinding("class.k-hstack"),n.__metadata("design:type",Boolean)],d.prototype,"colorInputClass",void 0),n.__decorate([o.ViewChild("opacityInput",{static:!1}),n.__metadata("design:type",t.NumericTextBoxComponent)],d.prototype,"opacityInput",void 0),n.__decorate([o.ViewChild("hexInput",{read:o.ElementRef,static:!1}),n.__metadata("design:type",o.ElementRef)],d.prototype,"hexInput",void 0),n.__decorate([o.ViewChild("blueInput",{read:o.ElementRef,static:!1}),n.__metadata("design:type",o.ElementRef)],d.prototype,"blueInput",void 0),n.__decorate([o.ViewChild("toggleFormatButton",{static:!1}),n.__metadata("design:type",o.ElementRef)],d.prototype,"toggleFormatButton",void 0),n.__decorate([o.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 '}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,l.LocalizationService])],d));function d(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+r.guid(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new o.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new s.Subscription}e.ColorInputComponent=t},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(c,u,e){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var t,n=e(0),p=e(12),s=e(1),h=e(5),f=e(9),g=e(23),m=e(46),_=e(8),o=e(3),i=e(2),v=e(7),y=e(21),a=e(16),r=e(13),l=e(4),b=e(44),C=e(14),k=["focus","blur"],e=(t=d,Object.defineProperty(d.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"value",{get:function(){return this._value},set:function(e){this._value=r.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isOpen",{get:function(){return l.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconStyles",{get:function(){return this.iconClass||(this.icon?"k-icon k-i-"+this.icon:void 0)},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var e="name"!==this.format?C.DEFAULT_PRESET:C.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&y.PALETTEPRESETS[t]?y.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},d.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)}),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},d.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=r.parseColor(this.value,this.format,this.gradientSettings.opacity)),o.isChanged("value",e)&&this.setHostElementAriaLabel()},d.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",k)},d.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},d.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},d.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),o.closest(e.target,function(e){return e===t.activeColor.nativeElement}))return e=new a.ActiveColorClickEvent(this.value),this.activeColorClick.emit(e),void(e.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen));this.toggleWithEvents(!this.isOpen)}},d.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},d.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run(function(){e.focus(),e.onFocus.emit()})},d.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},d.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run(function(){e.onBlur.emit(),e.isFocused=!1})},d.prototype.reset=function(){l.isPresent(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},d.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=l.isPresent(e)?e:!this.isOpen)&&this.openPopup())},d.prototype.handleValueChange=function(e){e=r.parseColor(e,this.format,this.gradientSettings.opacity);e!==this.value&&(this.value=e,this.valueChange.emit(e),this.setHostElementAriaLabel(),this.notifyNgChanged(e))},d.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},d.prototype.writeValue=function(e){this.value=e},d.prototype.registerOnChange=function(e){this.notifyNgChanged=e},d.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},d.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},d.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==o.Keys.ArrowDown&&e.keyCode!==o.Keys.Enter||(e.preventDefault(),this.ngZone.run(function(){t.toggleWithEvents(!0)}))},d.prototype.handlePopupKeyDown=function(e){var t,n;e.keyCode===o.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===o.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()))},d.prototype.isEmpty=function(){return!1},d.prototype.setHostElementAriaLabel=function(){var e=""+(this.value||this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},d.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,t=l.getStylingClasses("picker",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},d.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return o.closest(e.relatedTarget,function(e){return e===t.host.nativeElement})||n},d.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new a.ColorPickerOpenEvent,this.open.emit(t)):(t=new a.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},d.prototype.focusFirstElement=function(){var t=this;this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){var e;t.flatColorPicker&&((e=t.flatColorPicker.gradient)?e.gradientDragHandle:t.flatColorPicker.palette.host).nativeElement.focus()})},d.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})})},d.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(d.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(d.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}),d.prototype.handleDomEvents=function(t,e){var n=this,o=this.host.nativeElement;e.forEach(function(e){return o[t+"EventListener"](e,n.domFocusListener,!0)})},d.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&&o.closest(e.relatedTarget,function(e){return e===n.flatColorPicker.host.nativeElement}),e=o.closest(e.relatedTarget,function(e){return e===n.host.nativeElement});t||e||n.handleWrapperBlur()})),n.handleDomEvents("add",k),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)})}))}))},d.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");t?this.focusableId=t:(t="k-"+o.guid(),e.setAttribute("id",t),this.focusableId=t)},n.__decorate([s.HostBinding("class.k-colorpicker"),s.HostBinding("class.k-icon-picker"),s.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],d.prototype,"hostClasses",void 0),n.__decorate([s.HostBinding("class.k-focus"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"focusedClass",null),n.__decorate([s.HostBinding("attr.aria-disabled"),s.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"disabledClass",null),n.__decorate([s.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"ariaReadonly",null),n.__decorate([s.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"ariaExpanded",null),n.__decorate([s.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],d.prototype,"hostTabindex",null),n.__decorate([s.HostBinding("attr.dir"),n.__metadata("design:type",String)],d.prototype,"direction",void 0),n.__decorate([s.HostBinding("attr.role"),n.__metadata("design:type",String)],d.prototype,"role",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Array)],d.prototype,"views",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"view",null),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"activeView",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"readonly",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"format",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"value",null),n.__decorate([s.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],d.prototype,"popupSettings",null),n.__decorate([s.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],d.prototype,"paletteSettings",null),n.__decorate([s.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],d.prototype,"gradientSettings",null),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"icon",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Object)],d.prototype,"iconClass",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"clearButton",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],d.prototype,"tabindex",null),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"preview",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"actionsLayout",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"size",null),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"rounded",null),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"fillMode",null),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"valueChange",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"open",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"close",void 0),n.__decorate([s.Output("focus"),n.__metadata("design:type",s.EventEmitter)],d.prototype,"onFocus",void 0),n.__decorate([s.Output("blur"),n.__metadata("design:type",s.EventEmitter)],d.prototype,"onBlur",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"cancel",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"activeColorClick",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"activeViewChange",void 0),n.__decorate([s.ViewChild("container",{read:s.ViewContainerRef,static:!0}),n.__metadata("design:type",s.ViewContainerRef)],d.prototype,"container",void 0),n.__decorate([s.ViewChild("activeColor",{static:!0}),n.__metadata("design:type",s.ElementRef)],d.prototype,"activeColor",void 0),n.__decorate([s.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",s.TemplateRef)],d.prototype,"popupTemplate",void 0),n.__decorate([s.ViewChild("flatColorPicker",{static:!1}),n.__metadata("design:type",g.FlatColorPickerComponent)],d.prototype,"flatColorPicker",void 0),t=n.__decorate([s.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:h.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return t})},{provide:o.KendoInput,useExisting:s.forwardRef(function(){return t})},b.ColorPickerLocalizationService,{provide:i.LocalizationService,useExisting:b.ColorPickerLocalizationService},{provide:i.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 '}),n.__metadata("design:paramtypes",[s.ElementRef,m.PopupService,s.ChangeDetectorRef,i.LocalizationService,s.NgZone,s.Renderer2])],d));function d(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 f.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},_.validatePackage(v.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}u.ColorPickerComponent=e},function(e,t){e.exports=d},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(6),a=t(46),r=t(3),u=t(28),p=t(27),s=t(45),l=t(19),d=t(20),h=t(43),f=t(42),g=t(41),m=t(23),_=t(85),v=t(39),y=t(84),b=t(83),C=t(82),t=t(81),s=[s.ColorPickerComponent,l.ColorPaletteComponent,d.ColorGradientComponent,m.FlatColorPickerComponent,v.LocalizedColorPickerMessagesDirective,_.ColorPickerCustomMessagesComponent],l=[h.ColorInputComponent,y.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,g.FlatColorPickerActionButtonsComponent,t.ColorContrastSvgComponent],d=n.__decorate([o.NgModule({declarations:[s,l],exports:[s],imports:[u.SliderModule,p.NumericTextBoxModule,i.CommonModule,a.PopupModule,r.DraggableModule]})],k);function k(){}e.ColorPickerModule=d},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,n,o=t(0),l=t(1),u=t(9),p=t(12),h=t(5),d=t(3),i=t(2),f=t(98),a=t(4),g=t(11),m=t(11),_=t(8),v=t(7),y={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},t=(s=f.TextFieldsBase,o.__extends(r,s),n=r,Object.defineProperty(r.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),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}),Object.defineProperty(r.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),r.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?(m.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===d.Keys.Tab})),t.handleFlow()}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},r.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(h.NgControl,null),d.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=u.fromEvent(window,"resize").pipe(p.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"})},r.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(a.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},r.prototype.ngAfterViewChecked=function(){this.resize()},r.prototype.writeValue=function(e){this.value=e},r.prototype.registerOnChange=function(e){this.ngChange=e},r.prototype.registerOnTouched=function(e){this.ngTouched=e},r.prototype.updateValue=function(e){var t=this;a.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},r.prototype.ngOnDestroy=function(){s.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(r.prototype,"resizableClass",{get:function(){return y[this.resizable]},enumerable:!0,configurable:!0}),r.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},r.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},r.prototype.resize=function(){var e,t;"auto"===this.resizable&&(e=this.input.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px"),(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Object.defineProperty(r.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}),r.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},r.prototype.setSelection=function(e,t){this.isFocused&&g.invokeElementMethod(this.input,"setSelectionRange",e,t)},r.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},r.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=a.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},r.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,t=t.children[1];this.renderer.setStyle(n,"flex",e?"none":"1"),t&&this.renderer.setStyle(t,"align-items",e?"center":"start")},o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"focusableId",void 0),o.__decorate([l.HostBinding("class.k-textarea"),l.HostBinding("class.k-input"),o.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),o.__decorate([l.HostBinding("class.!k-flex-col"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"flowCol",null),o.__decorate([l.HostBinding("class.!k-flex-row"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"flowRow",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"flow",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"rows",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"cols",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"maxlength",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],r.prototype,"tabIndex",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"resizable",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"rounded",null),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"fillMode",null),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),n=o.__decorate([l.Component({exportAs:"kendoTextArea",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.textarea"},{provide:h.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return n}),multi:!0},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return n})}],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 ',styles:["\n :host {\n display: inline-flex;\n }\n "]}),o.__metadata("design:paramtypes",[i.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],r));function r(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-"+d.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()})}),d.hasObservers(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),d.hasObservers(r.inputFocus)&&(r.focusChangedProgrammatically||r.ngZone.run(function(){r.inputFocus.emit()})),r.ngZone.run(function(){r.isFocused=!0}))},_.validatePackage(v.packageMetadata),r.direction=e.rtl?"rtl":"ltr",r}e.TextAreaComponent=t},function(d,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(6),a=t(49),r=t(3),s=t(48),t=t(24),n=n.__decorate([o.NgModule({declarations:[a.TextAreaComponent,s.TextAreaSuffixComponent],exports:[a.TextAreaComponent,r.EventsModule,s.TextAreaSuffixComponent,t.SHARED_DIRECTIVES],imports:[i.CommonModule,r.EventsModule,t.SharedModule]})],l);function l(){}e.TextAreaModule=n},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){return o.detectDesktopBrowser(e).safari||o.detectMobileOS(e)&&"mobilesafari"===o.detectMobileOS(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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),u=t(54),p=t(11),i=t(5),s=t(1),h=t(8),f=t(7),g=t(11),l=t(4),d=t(3),m=t(26),_=t(25),a=t(2),v=t(54),t=(n=r,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}),Object.defineProperty(r.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(i.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},r.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?(p.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===d.Keys.Tab}))}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},r.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},r.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},r.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},r.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},r.prototype.clearTitle=function(){return this.localizationService.get("clear")},r.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},r.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},r.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},r.prototype.registerOnChange=function(e){this.ngChange=e},r.prototype.registerOnTouched=function(e){this.ngTouched=e},r.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},r.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)},r.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(r.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon||"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),r.prototype.setSelection=function(e,t){this.isFocused&&g.invokeElementMethod(this.input,"setSelectionRange",e,t)},r.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},r.prototype.updateValue=function(e){var t=this;l.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(r.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}),r.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},r.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=l.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"focusableId",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"title",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"readonly",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"value",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"selectOnFocus",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Object)],r.prototype,"showSuccessIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Object)],r.prototype,"showErrorIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"clearButton",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"successIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"errorIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"clearButtonIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"rounded",null),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"fillMode",null),o.__decorate([s.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],r.prototype,"tabIndex",null),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"placeholder",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Number)],r.prototype,"maxlength",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],r.prototype,"valueChange",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],r.prototype,"inputFocus",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],r.prototype,"inputBlur",void 0),o.__decorate([s.Output("focus"),o.__metadata("design:type",s.EventEmitter)],r.prototype,"onFocus",void 0),o.__decorate([s.Output("blur"),o.__metadata("design:type",s.EventEmitter)],r.prototype,"onBlur",void 0),o.__decorate([s.ViewChild("input",{static:!0}),o.__metadata("design:type",s.ElementRef)],r.prototype,"input",void 0),o.__decorate([s.ContentChild(m.TextBoxSuffixTemplateDirective,{static:!1}),o.__metadata("design:type",m.TextBoxSuffixTemplateDirective)],r.prototype,"suffixTemplate",void 0),o.__decorate([s.ContentChild(_.TextBoxPrefixTemplateDirective,{static:!1}),o.__metadata("design:type",_.TextBoxPrefixTemplateDirective)],r.prototype,"prefixTemplate",void 0),o.__decorate([s.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"disabledClass",null),o.__decorate([s.HostBinding("class.k-textbox"),s.HostBinding("class.k-input"),o.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),o.__decorate([s.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),n=o.__decorate([s.Component({exportAs:"kendoTextBox",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.textbox"},{provide:i.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return n}),multi:!0},{provide:d.KendoInput,useExisting:s.forwardRef(function(){return n})}],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 '}),o.__metadata("design:paramtypes",[a.LocalizationService,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.Injector,s.ElementRef])],r));function r(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-"+d.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 s.EventEmitter,this.inputFocus=new s.EventEmitter,this.inputBlur=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.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()})}),d.hasObservers(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),d.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(),(d.hasObservers(r.inputBlur)||l.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.handleInput=function(e){e=v.isSafari(navigator.userAgent)&&u.isJapanese(e.target.value)?e.data:e.target.value;r.updateValue(e)},this.ngChange=function(e){},this.ngTouched=function(){},h.validatePackage(f.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}e.TextBoxComponent=t},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),u=t(1),o=t(76),i=t(55),p=t(6),a=t(3),r=t(26),s=t(25),l=t(99),d=t(52),t=t(24),n=n.__decorate([u.NgModule({declarations:[o.TextBoxDirective,i.TextBoxComponent,r.TextBoxSuffixTemplateDirective,s.TextBoxPrefixTemplateDirective,l.TextBoxCustomMessagesComponent,d.LocalizedTextBoxMessagesDirective],exports:[o.TextBoxDirective,i.TextBoxComponent,r.TextBoxSuffixTemplateDirective,s.TextBoxPrefixTemplateDirective,a.EventsModule,l.TextBoxCustomMessagesComponent,d.LocalizedTextBoxMessagesDirective,t.SHARED_DIRECTIVES],imports:[p.CommonModule,a.EventsModule,t.SharedModule]})],h);function h(){}e.TextBoxModule=n},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(77),a=t(6),r=t(3),s=t(60),l=t(100),t=t(3),n=n.__decorate([o.NgModule({declarations:[i.SwitchComponent,l.SwitchCustomMessagesComponent,s.LocalizedSwitchMessagesDirective],exports:[i.SwitchComponent,l.SwitchCustomMessagesComponent,s.LocalizedSwitchMessagesDirective],imports:[a.CommonModule,t.EventsModule,r.ResizeSensorModule]})],d);function d(){}e.SwitchModule=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,"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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(6),a=t(68),r=t(78),s=t(63),l=t(101),t=t(15),n=n.__decorate([o.NgModule({declarations:[r.RangeSliderComponent,l.RangeSliderCustomMessagesComponent,s.LocalizedRangeSliderMessagesDirective],exports:[r.RangeSliderComponent,l.RangeSliderCustomMessagesComponent,s.LocalizedRangeSliderMessagesDirective,t.LabelTemplateDirective],imports:[i.CommonModule,a.SlidersCommonModule]})],d);function d(){}e.RangeSliderModule=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),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"> </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(s,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),l=t(1),i=t(5),u=t(2),p=t(8),h=t(7),a=t(106),d=t(3),f=t(11),c=t(4),g=Promise.resolve(null),t=(n=r,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}),Object.defineProperty(r.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(r.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(r.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(i.NgControl,null)},r.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},r.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},r.prototype.handleDragDrop=function(){return!1},r.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},r.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},r.prototype.pasteHandler=function(e){var e=e.target,t=e.selectionStart,e=e.selectionEnd;e!==t&&(this.isPasted=!0,this.selection=[t,e])},r.prototype.inputHandler=function(e){var t,n=e.target.value,o=this.selection,i=o[0],o=o[1];if(!this.mask)return this.updateValue(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.updateValue(t.value)},r.prototype.ngOnChanges=function(e){var t,n=this;e.value&&(this.value=this.normalizeValue()),this.mask?(t=this.extractChanges(e),this.updateService(t),d.isChanged("value",e)?(t=this.service.maskRaw(this.value))!==this.maskedValue&&this.updateInput(t):d.anyChanged(["promptPlaceholder","includeLiterals"],e)?g.then(function(){n.updateValue(n.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))):this.updateInput(this.value)},r.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},r.prototype.registerOnChange=function(e){this.onChange=e},r.prototype.registerOnTouched=function(e){this.onTouched=e},r.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},r.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},r.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},r.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)},r.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},{})},r.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)},r.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&f.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(r.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),r.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(r.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}),r.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=c.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:""},r.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)},o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"focusableId",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",String)],r.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"rounded",null),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"fillMode",null),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),o.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-maskedtextbox"),o.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),o.__decorate([l.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"hostDisabledClass",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"mask",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"value",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],r.prototype,"rules",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"prompt",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"promptPlaceholder",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"includeLiterals",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"maskOnFocus",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"maskValidation",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],r.prototype,"tabIndex",null),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.ViewChild("input",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"input",void 0),o.__decorate([l.HostListener("paste",["$event"]),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],r.prototype,"pasteHandler",null),o.__decorate([l.HostListener("input",["$event"]),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],r.prototype,"inputHandler",null),n=o.__decorate([l.Component({exportAs:"kendoMaskedTextBox",providers:[a.MaskingService,{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return n})},{multi:!0,provide:i.NG_VALIDATORS,useExisting:l.forwardRef(function(){return n})},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return n})}],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 '}),o.__param(6,l.Optional()),o.__param(6,l.Inject(u.RTL)),o.__metadata("design:paramtypes",[a.MaskingService,l.Renderer2,l.ElementRef,l.NgZone,l.Injector,l.ChangeDetectorRef,Boolean])],r));function r(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.hostClasses=!0,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.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)||c.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.onTouched(),s.onBlur.emit()})},this.onChange=function(e){},this.onTouched=function(){},p.validatePackage(h.packageMetadata),this.direction=r?"rtl":"ltr",this.updateService()}e.MaskedTextBoxComponent=t},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),r=t(1),i=t(5),a=t(3),u=t(4),p=t(2),s=t(9),l=t(12),t=(n=d,Object.defineProperty(d.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),d.prototype.writeValue=function(e){this.elementValue=e,this.resize()},d.prototype.registerOnChange=function(e){this.ngChange=e},d.prototype.registerOnTouched=function(e){this.ngTouched=e},d.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},d.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()})],a.isDocumentAvailable()&&t.autoSize&&(t.resizeSubscription=s.fromEvent(window,"resize").pipe(l.debounceTime(50)).subscribe(function(){return t.resize()})),t.inputSubscription=s.fromEvent(e,"input").subscribe(t.handleInput.bind(t))}),this.control=this.injector.get(i.NgControl,null)},d.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(l.take(1)).subscribe(function(){return t.resize()})},d.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(d.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),d.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},d.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"))},d.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||a.hasObservers(this.onValueChange)||a.hasObservers(this.valueChange))&&this.zone.run(function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()}),this.resize()},d.prototype.handleFocus=function(){var e=this;a.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()})},d.prototype.handleBlur=function(){var e=this;(a.hasObservers(this.onBlur)||u.requiresZoneOnBlur(this.control))&&this.zone.run(function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()})},o.__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"),o.__metadata("design:type",Boolean)],d.prototype,"elementClasses",void 0),o.__decorate([r.HostBinding("class.k-autofill"),o.__metadata("design:type",Boolean)],d.prototype,"autofillClass",void 0),o.__decorate([r.HostBinding("attr.dir"),o.__metadata("design:type",String)],d.prototype,"direction",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],d.prototype,"valueChange",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],d.prototype,"autoSize",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],d.prototype,"value",void 0),n=o.__decorate([r.Directive({providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return n}),multi:!0},{provide:a.KendoInput,useExisting:r.forwardRef(function(){return n})}],selector:"textarea[kendoTextArea]"}),o.__param(5,r.Optional()),o.__param(5,r.Inject(p.RTL)),o.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],d));function d(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"}e.TextAreaDirective=t},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),s=t(1),i=t(5),a=t(2),l=t(3),u=t(8),p=t(7),d=t(4),h=t(9),f=t(12),g=t(30),t=(n=r,Object.defineProperty(r.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),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,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ieClass",{get:function(){return g.browser&&g.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){var e,t=this;this.hostElement&&(e=this.hostElement.nativeElement,this.renderer.removeAttribute(e,"tabindex")),this.localizationChangeSubscription=this.localizationService.changes.pipe(f.skip(1)).subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.control=this.injector.get(i.NgControl,null),this.ngZone.onStable.pipe(f.take(1)).subscribe(function(){return t.initialized=!0})},r.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)},r.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},r.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},r.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},r.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},r.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},r.prototype.registerOnChange=function(e){this.ngChange=e},r.prototype.registerOnTouched=function(e){this.ngTouched=e},r.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},r.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},r.prototype.isEmpty=function(){return!1},r.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(r.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}),r.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))})},r.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"))},r.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=d.getStylingClasses("switch",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},r.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,e=d.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))},r.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,e=d.getStylingClasses("switch","rounded",this.thumbRounded,e);e.toRemove&&this.renderer.removeClass(t,e.toRemove),e.toAdd&&this.renderer.addClass(t,e.toAdd)},o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"focusableId",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"onLabel",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"offLabel",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[Boolean])],r.prototype,"checked",null),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"readonly",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"thumbRounded",null),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"trackRounded",null),o.__decorate([s.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],r.prototype,"tabIndex",null),o.__decorate([s.Output("focus"),o.__metadata("design:type",s.EventEmitter)],r.prototype,"onFocus",void 0),o.__decorate([s.Output("blur"),o.__metadata("design:type",s.EventEmitter)],r.prototype,"onBlur",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],r.prototype,"valueChange",void 0),o.__decorate([s.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),o.__decorate([s.HostBinding("class.k-ie"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"ieClass",null),o.__decorate([s.HostBinding("attr.aria-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"ariaDisabled",null),o.__decorate([s.HostBinding("attr.aria-readonly"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"ariaReadonly",null),o.__decorate([s.HostBinding("class.k-switch"),o.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),o.__decorate([s.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"disabledClass",null),o.__decorate([s.ViewChild("track",{static:!0}),o.__metadata("design:type",Object)],r.prototype,"track",void 0),o.__decorate([s.ViewChild("thumb",{static:!0}),o.__metadata("design:type",Object)],r.prototype,"thumb",void 0),n=o.__decorate([s.Component({exportAs:"kendoSwitch",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return n})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return n})}],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 '}),o.__metadata("design:paramtypes",[s.Renderer2,s.ElementRef,a.LocalizationService,s.Injector,s.ChangeDetectorRef,s.NgZone])],r));function r(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 h.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)||d.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.onBlur.emit()}))},u.validatePackage(p.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}e.SwitchComponent=t},function(a,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s,t,l=e(0),n=e(1),p=e(5),h=e(12),d=e(10),f=e(112),o=e(2),u=e(10),g=e(11),c=e(3),m=e(4),e=(s=e(79).SliderBase,l.__extends(i,s),(t=i).prototype.focus=function(){this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},i.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;g.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},i.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),s.prototype.ngOnInit.call(this)},i.prototype.ngOnChanges=function(e){var t=this;c.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&d.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(h.take(1)).subscribe(function(){t.sizeComponent()}))},i.prototype.ngAfterViewInit=function(){var e=this;c.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent()}),this.attachElementEventHandlers())},i.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},i.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(i.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),i.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();e=e.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)},i.prototype.onHandleDrag=function(e){function t(){return i.changeValue([u.eventValue(e,i.track.nativeElement,i.getProps()),i.value[1]])}function n(){return i.changeValue([i.value[0],u.eventValue(e,i.track.nativeElement,i.getProps())])}function o(){return i.changeValue([u.eventValue(e,i.track.nativeElement,i.getProps()),u.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(),r=(this.lastHandlePosition={x:r.left,y:r.top},this.dragging={value:!0,target:a},e.pageX<this.lastHandlePosition.x),a=e.pageX>this.lastHandlePosition.x,c=e.pageY>this.lastHandlePosition.y,s=u.isStartHandle(this.draggedHandle),l=this.vertical,d=!l,l=l&&c||(this.reverse?d&&a:d&&r);(this.value[0]===this.value[1]?l?s?t:o:s?o:n:s?t:n)()},i.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},i.prototype.writeValue=function(e){d.validateValue(e),this.value=e,this.sizeComponent()},i.prototype.registerOnChange=function(e){this.ngChange=e},i.prototype.registerOnTouched=function(e){this.ngTouched=e},i.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()})},i.prototype.sizeComponent=function(){var e,t,n,o,i,a;c.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 f.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(i.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),i.prototype.isEmpty=function(){return!1},Object.defineProperty(i.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.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}),i.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}},i.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===c.Keys.Tab}))})},l.__decorate([n.Input(),l.__metadata("design:type",Array)],i.prototype,"value",void 0),l.__decorate([n.ViewChild("draghandleStart",{static:!0}),l.__metadata("design:type",n.ElementRef)],i.prototype,"draghandleStart",void 0),l.__decorate([n.ViewChild("draghandleEnd",{static:!0}),l.__metadata("design:type",n.ElementRef)],i.prototype,"draghandleEnd",void 0),t=l.__decorate([n.Component({exportAs:"kendoRangeSlider",providers:[o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:p.NG_VALUE_ACCESSOR,useExisting:n.forwardRef(function(){return t})},{provide:c.KendoInput,useExisting:n.forwardRef(function(){return t})}],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",[o.LocalizationService,n.Injector,n.Renderer2,n.NgZone,n.ChangeDetectorRef,n.ElementRef])],i));function i(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-"+c.guid(),r.endHandleId="k-end-handle-"+c.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=u.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,g.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=u.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,(c.hasObservers(r.onBlur)||m.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}r.RangeSliderComponent=e},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),s=t(10),l=t(1),d=t(9),o=t(5),i=t(3),c=t(8),u=t(7),t=t(15),n=(Object.defineProperty(a.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),a.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},a.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(o.NgControl,null)},Object.defineProperty(a.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),a.prototype.isEmpty=function(){return!1},Object.defineProperty(a.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[i.Keys.ArrowLeft]=t?s.increment:s.decrement,e[i.Keys.ArrowRight]=t?s.decrement:s.increment,e[i.Keys.ArrowDown]=s.decrement,e[i.Keys.ArrowUp]=s.increment,e[i.Keys.PageUp]=s.incrementLarge,e[i.Keys.PageDown]=s.decrementLarge,e[i.Keys.Home]=function(e){return e.min},e[i.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),a.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"))})},n.__decorate([l.Input(),n.__metadata("design:type",Function)],a.prototype,"title",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],a.prototype,"tickPlacement",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],a.prototype,"vertical",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"min",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"max",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"smallStep",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"largeStep",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"fixedTickWidth",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],a.prototype,"disabled",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],a.prototype,"readonly",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"tabindex",void 0),n.__decorate([l.Output("focus"),n.__metadata("design:type",l.EventEmitter)],a.prototype,"onFocus",void 0),n.__decorate([l.Output("blur"),n.__metadata("design:type",l.EventEmitter)],a.prototype,"onBlur",void 0),n.__decorate([l.Output(),n.__metadata("design:type",l.EventEmitter)],a.prototype,"valueChange",void 0),n.__decorate([l.HostBinding("attr.dir"),n.__metadata("design:type",String)],a.prototype,"direction",void 0),n.__decorate([l.HostBinding("class.k-slider-horizontal"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"horizontalClass",null),n.__decorate([l.HostBinding("class.k-slider-vertical"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"verticalClass",null),n.__decorate([l.HostBinding("class.k-slider"),n.__metadata("design:type",Boolean)],a.prototype,"sliderClass",void 0),n.__decorate([l.HostBinding("class.k-widget"),n.__metadata("design:type",Boolean)],a.prototype,"widgetClass",void 0),n.__decorate([l.HostBinding("class.k-state-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"disabledClass",null),n.__decorate([l.ViewChild("wrap",{static:!0}),n.__metadata("design:type",l.ElementRef)],a.prototype,"wrapper",void 0),n.__decorate([l.ViewChild("track",{static:!0}),n.__metadata("design:type",l.ElementRef)],a.prototype,"track",void 0),n.__decorate([l.ViewChild("sliderSelection",{static:!0}),n.__metadata("design:type",l.ElementRef)],a.prototype,"sliderSelection",void 0),n.__decorate([l.ViewChild("ticks",{read:l.ElementRef,static:!1}),n.__metadata("design:type",l.ElementRef)],a.prototype,"ticksContainer",void 0),n.__decorate([l.ViewChild("ticks",{static:!1}),n.__metadata("design:type",Object)],a.prototype,"ticks",void 0),n.__decorate([l.ContentChild(t.LabelTemplateDirective,{static:!1}),n.__metadata("design:type",t.LabelTemplateDirective)],a.prototype,"labelTemplate",void 0),a);function a(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"}e.SliderBase=n},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(d,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(9),a=t(4),r=t(14),s=t(13),t=(l.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())})},l.prototype.ngOnChanges=function(e){a.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},l.prototype.setPaths=function(){var e=s.bezierCommand(s.controlPoint(s.line));this.paths=[s.svgPath(this.getPaths(r.AA_RATIO,r.STEP_COUNT),e),s.svgPath(this.getPaths(r.AA_RATIO,r.STEP_COUNT,!0),e),s.svgPath(this.getPaths(r.AAA_RATIO,r.STEP_COUNT),e),s.svgPath(this.getPaths(r.AAA_RATIO,r.STEP_COUNT,!0),e)]},l.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=s.getContrastFromTwoRGBAs(s.getRGBA(s.getColorFromHSV(r)),s.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)},l.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},n.__decorate([o.HostBinding("class.k-color-contrast-svg"),n.__metadata("design:type",Boolean)],l.prototype,"hostClass",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],l.prototype,"wrapper",void 0),n.__decorate([o.Input(),n.__metadata("design:type",i.BehaviorSubject)],l.prototype,"hsva",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],l.prototype,"backgroundColor",void 0),n.__decorate([o.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 '})],l));function l(){this.hostClass=!0}e.ColorContrastSvgComponent=t},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)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' ");return n}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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(28),a=t(64),r=t(61),s=t(27),l=t(57),d=t(56),u=t(50),p=t(6),h=t(47),f=t(38),g=t(36),t=t(34),n=n.__decorate([o.NgModule({exports:[u.TextAreaModule,d.TextBoxModule,i.SliderModule,a.RangeSliderModule,r.SwitchModule,s.NumericTextBoxModule,l.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,g.RadioButtonModule,t.FormFieldModule],imports:[p.CommonModule]})],m);function m(){}e.InputsModule=n},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(19)),a=(t.ColorPaletteComponent=a.ColorPaletteComponent,n(20)),a=(t.ColorGradientComponent=a.ColorGradientComponent,n(47)),a=(t.ColorPickerModule=a.ColorPickerModule,i.__exportStar(n(16),t),n(23)),i=(t.FlatColorPickerComponent=a.FlatColorPickerComponent,n(16)),a=(t.ColorPickerCancelEvent=i.ColorPickerCancelEvent,n(37)),i=(t.CheckBoxDirective=a.CheckBoxDirective,n(35)),a=(t.RadioButtonDirective=i.RadioButtonDirective,n(17)),i=(t.HintComponent=a.HintComponent,n(18)),a=(t.ErrorComponent=i.ErrorComponent,n(33)),i=(t.FormFieldComponent=a.FormFieldComponent,n(34)),a=(t.FormFieldModule=i.FormFieldModule,n(55)),i=(t.TextBoxComponent=a.TextBoxComponent,n(25)),a=(t.TextBoxPrefixTemplateDirective=i.TextBoxPrefixTemplateDirective,n(26)),i=(t.TextBoxSuffixTemplateDirective=a.TextBoxSuffixTemplateDirective,n(49)),a=(t.TextAreaComponent=i.TextAreaComponent,n(48)),i=(t.TextAreaSuffixComponent=a.TextAreaSuffixComponent,n(51)),a=(t.InputSeparatorComponent=i.InputSeparatorComponent,n(24)),i=(t.SharedModule=a.SharedModule,n(39)),a=(t.LocalizedColorPickerMessagesDirective=i.LocalizedColorPickerMessagesDirective,n(58)),i=(t.LocalizedNumericTextBoxMessagesDirective=a.LocalizedNumericTextBoxMessagesDirective,n(52)),a=(t.LocalizedTextBoxMessagesDirective=i.LocalizedTextBoxMessagesDirective,n(66)),i=(t.LocalizedSliderMessagesDirective=a.LocalizedSliderMessagesDirective,n(63)),a=(t.LocalizedRangeSliderMessagesDirective=i.LocalizedRangeSliderMessagesDirective,n(60)),r=(t.LocalizedSwitchMessagesDirective=a.LocalizedSwitchMessagesDirective,t);for(o in r)f(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/operators","@progress/kendo-angular-l10n","rxjs","@progress/kendo-licensing","@progress/kendo-common","@progress/kendo-angular-intl","@progress/kendo-drawing"],function(f){var a,r,s,l,d,c,u,p,h,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){s=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){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=p},function(e,t){e.exports=l},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=c},function(e,t){e.exports=s},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:1645798303,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=g},function(e,t){e.exports=h},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=u},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);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});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(c,u,e){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var t,n=e(0),s=e(1),p=e(5),l=e(3),o=e(2),h=e(8),f=e(12),g=e(87),m=e(7),i=e(21),a=e(13),r=e(4),e=e(86),_=0,p=(t=d,Object.defineProperty(d.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"value",{get:function(){return this._value},set:function(e){this._value=a.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=1<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this,e=("string"==typeof(e=r.isPresent(e)?e:"office")&&r.isPresent(i.PALETTEPRESETS[e])&&(this.columns=this.columns||i.PALETTEPRESETS[e].columns,e=i.PALETTEPRESETS[e].colors),"string"==typeof e?e.split(","):e);this._palette=e.map(function(e){return a.parseColor(e,t.format,!1,!1)})},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var e;0===this.colorRows.length&&(e="name"!==this.format?"office":"accessible",this.palette=this.palette||e,this.setRows())},d.prototype.ngAfterViewInit=function(){var e=this;this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe(f.take(1)).subscribe(function(){e.selectCell(e.value)})},d.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},d.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())},d.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()},d.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},d.prototype.handleCellSelection=function(e,t){this.readonly||(this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0,e=a.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))},d.prototype.writeValue=function(e){this.value=e,this.selectCell(e)},d.prototype.registerOnChange=function(e){this.notifyNgChanged=e},d.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},d.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},d.prototype.isEmpty=function(){return!1},d.prototype.reset=function(){this.focusedCell=null,r.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},d.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},d.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},d.prototype.selectCell=function(e){this.selectedCell=this.service.getCellCoordsFor(e),this.focusedCell=this.selectedCell},d.prototype.setRows=function(){r.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},d.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},d.prototype.setHostElementAriaLabel=function(){var e=a.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},d.prototype.handleEnter=function(){var e;r.isPresent(this.focusedCell)&&(e=this.service.getColorAt(this.focusedCell),this.handleCellSelection(e,this.focusedCell))},n.__decorate([s.HostBinding("attr.dir"),n.__metadata("design:type",String)],d.prototype,"direction",void 0),n.__decorate([s.HostBinding("attr.id"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],d.prototype,"paletteId",null),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"id",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"format",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"value",null),n.__decorate([s.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],d.prototype,"columns",null),n.__decorate([s.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],d.prototype,"palette",null),n.__decorate([s.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],d.prototype,"tabindex",null),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"readonly",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Object)],d.prototype,"tileSize",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"selectionChange",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"valueChange",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"cellSelection",void 0),n.__decorate([s.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],d.prototype,"hostTabindex",null),n.__decorate([s.HostBinding("class.k-colorpalette"),n.__metadata("design:type",Boolean)],d.prototype,"hostClasses",void 0),n.__decorate([s.HostBinding("attr.aria-disabled"),s.HostBinding("class.k-state-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"disabledClass",null),n.__decorate([s.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"readonlyAttribute",null),n.__decorate([s.HostListener("keydown",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],d.prototype,"handleKeydown",null),n.__decorate([s.HostListener("blur"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],d.prototype,"handleHostBlur",null),t=n.__decorate([s.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:p.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return t})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return t})},e.ColorPaletteService,g.ColorPaletteLocalizationService,{provide:o.LocalizationService,useExisting:g.ColorPaletteLocalizationService},{provide:o.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 '}),n.__metadata("design:paramtypes",[s.ElementRef,e.ColorPaletteService,s.ChangeDetectorRef,s.Renderer2,o.LocalizationService,s.NgZone])],d));function d(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-"+_++,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(){},h.validatePackage(m.packageMetadata),this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}u.ColorPaletteComponent=p},function(c,u,e){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var t,a=e(0),r=e(1),p=e(5),h=e(9),f=e(12),n=e(2),o=e(3),g=e(8),m=e(11),s=e(13),l=e(4),_=e(32),v=e(88),y=e(43),d=e(14),b=e(7),C=0,e=(t=i,Object.defineProperty(i.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(e){this._value=s.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=s.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t;l.isPresent(e)?(t=Number(e),this._tabindex=isNaN(t)?0:t):this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return!(!o.isDocumentAvailable()||!l.isPresent(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"alphaSliderValue",{get:function(){if(l.isPresent(this.hsva.value)&&l.isPresent(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&0<this.contrastTool.length},enumerable:!0,configurable:!0}),i.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},i.prototype.ngOnChanges=function(e){o.isChanged("value",e)&&!this.isFocused&&this.updateUI(),o.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},i.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},i.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},i.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},i.prototype.handleDragPress=function(e){this.disabled||this.readonly||!l.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},i.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},i.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(s.getColorFromHSV(this.hsva.value,this.format,this.opacity)))},i.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=d.DRAGHANDLE_MOVE_SPEED;break;case"ArrowLeft":o=-d.DRAGHANDLE_MOVE_SPEED;break;case"ArrowUp":i=-d.DRAGHANDLE_MOVE_SPEED;break;case"ArrowDown":i=d.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)})}},i.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)}))},i.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(s.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.backgroundColor=s.getColorFromHue(e),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.hueSliderTouched=!0},i.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(s.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.alphaSliderTouched=!0},i.prototype.handleInputsValueChange=function(e){e=s.parseColor(e,this.format,this.opacity);this.value!==e&&(this.handleValueChange(e),this.updateUI())},i.prototype.writeValue=function(e){this.value=e,l.isPresent(this.gradientWrapper)&&this.updateUI()},i.prototype.registerOnChange=function(e){this.notifyNgChanged=e},i.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},i.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(i.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=s.parseColor(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),i.prototype.isEmpty=function(){return!1},i.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,o=n.width,n=n.height,t=l.fitIntoBounds(t,0,n),e=l.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(s.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(s.getColorFromHSV(a.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},i.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},i.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},i.prototype.setAlphaSliderBackground=function(e){var t;l.isPresent(this.alphaSlider)&&(t=this.alphaSlider.track.nativeElement,this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")"))},i.prototype.setHostElementAriaLabel=function(){var e=s.parseColor(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},i.prototype.setBackgroundColor=function(e){this.renderer.setStyle(this.hsvRectangle.nativeElement,"background",e)},i.prototype.updateUI=function(){if(o.isDocumentAvailable()){if(this.hueSliderTouched||this.alphaSliderTouched)return this.hueSliderTouched=!1,void(this.alphaSliderTouched=!1);this.hsva.next(this.value?s.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=s.getColorFromHue(this.hsva.value.h),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},i.prototype.addEventListeners=function(){var a=this;this.ngZone.runOutsideAngular(function(){var e=a.renderer.listen(a.host.nativeElement,"focusout",function(e){!m.containsFocus(a.host.nativeElement,e.relatedTarget)&&m.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(s.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)})},i.prototype.subscribeChanges=function(){var t=this;this.changeRequestsSubscription=this.updateValues.pipe(f.throttleTime(this.delay)).subscribe(function(e){t.handleValueChange(e)})},i.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},a.__decorate([r.HostBinding("class.k-colorgradient"),a.__metadata("design:type",Boolean)],i.prototype,"hostClasses",void 0),a.__decorate([r.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],i.prototype,"readonlyAttribute",null),a.__decorate([r.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],i.prototype,"disabledClass",null),a.__decorate([r.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],i.prototype,"gradientId",null),a.__decorate([r.HostBinding("attr.dir"),a.__metadata("design:type",String)],i.prototype,"direction",void 0),a.__decorate([r.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],i.prototype,"hostTabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],i.prototype,"id",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],i.prototype,"opacity",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],i.prototype,"disabled",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],i.prototype,"readonly",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],i.prototype,"clearButton",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Number)],i.prototype,"delay",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],i.prototype,"value",null),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],i.prototype,"contrastTool",null),a.__decorate([r.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],i.prototype,"tabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],i.prototype,"format",void 0),a.__decorate([r.Output(),a.__metadata("design:type",r.EventEmitter)],i.prototype,"valueChange",void 0),a.__decorate([r.ViewChild("gradientDragHandle",{read:r.ElementRef,static:!1}),a.__metadata("design:type",r.ElementRef)],i.prototype,"gradientDragHandle",void 0),a.__decorate([r.ViewChild("inputs",{static:!1}),a.__metadata("design:type",y.ColorInputComponent)],i.prototype,"inputs",void 0),a.__decorate([r.ViewChild("alphaSlider",{static:!1}),a.__metadata("design:type",_.SliderComponent)],i.prototype,"alphaSlider",void 0),a.__decorate([r.ViewChild("gradientWrapper",{static:!1}),a.__metadata("design:type",r.ElementRef)],i.prototype,"gradientWrapper",void 0),a.__decorate([r.ViewChild("hsvRectangle",{static:!1}),a.__metadata("design:type",r.ElementRef)],i.prototype,"hsvRectangle",void 0),t=a.__decorate([r.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:p.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return t})},{provide:o.KendoInput,useExisting:r.forwardRef(function(){return t})},v.ColorGradientLocalizationService,{provide:n.LocalizationService,useExisting:v.ColorGradientLocalizationService},{provide:n.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,n.LocalizationService])],i));function i(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-"+C++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=d.DEFAULT_OUTPUT_FORMAT,this.valueChange=new r.EventEmitter,this.backgroundColor=d.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new h.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.hueSliderTouched=!1,this.alphaSliderTouched=!1,this.updateValues=new h.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},g.validatePackage(b.packageMetadata),this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}u.ColorGradientComponent=e},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),s=t(1),u=t(5),p=t(9),i=t(2),a=t(3),h=t(8),r=t(22),l=t(97),f=t(7),g=t(16),m=t(13),_=t(4),v=t(20),y=t(19),b=t(42),t=t(41),b=(n=d,Object.defineProperty(d.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"value",{get:function(){return this._value},set:function(e){this._value=m.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},d.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},d.prototype.ngOnChanges=function(e){a.isChanged("value",e)&&(this.selection=this.value,this.setHostElementAriaLabel()),a.isChanged("paletteSettings",e)&&this.setSizingVariables()},d.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(d.prototype,"headerHasContent",{get:function(){return this.preview||1<this.views.length||this.clearButton},enumerable:!0,configurable:!0}),d.prototype.isEmpty=function(){return!1},d.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},d.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},d.prototype.reset=function(){_.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},d.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()})}))},d.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},d.prototype.handleValueChange=function(e){this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e)},d.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},d.prototype.writeValue=function(e){this.value=e},d.prototype.registerOnChange=function(e){this.notifyNgChanged=e},d.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},d.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},d.prototype.resetSelection=function(e){e=new g.ColorPickerCancelEvent(e);this.cancel.emit(e),e.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},d.prototype.setHostElementAriaLabel=function(){var e=m.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)},d.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)},d.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},d.prototype.resetInnerComponentValue=function(){this.selection=null,(this.gradient||this.palette).reset()},d.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},d.prototype.setActiveView=function(){if(_.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]},d.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()}))}))},o.__decorate([s.HostBinding("class.k-flatcolorpicker"),s.HostBinding("class.k-coloreditor"),o.__metadata("design:type",Boolean)],d.prototype,"hostClasses",void 0),o.__decorate([s.HostBinding("class.k-state-disabled"),s.HostBinding("attr.aria-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],d.prototype,"disabledClass",null),o.__decorate([s.HostBinding("attr.aria-readonly"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],d.prototype,"ariaReadonly",null),o.__decorate([s.HostBinding("attr.dir"),o.__metadata("design:type",String)],d.prototype,"direction",void 0),o.__decorate([s.HostBinding("attr.tabindex"),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[])],d.prototype,"hostTabindex",null),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],d.prototype,"readonly",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],d.prototype,"format",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],d.prototype,"value",null),o.__decorate([s.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],d.prototype,"tabindex",null),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],d.prototype,"clearButton",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],d.prototype,"preview",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],d.prototype,"actionsLayout",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],d.prototype,"activeView",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Array)],d.prototype,"views",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],d.prototype,"gradientSettings",null),o.__decorate([s.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],d.prototype,"paletteSettings",null),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],d.prototype,"valueChange",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],d.prototype,"cancel",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],d.prototype,"activeViewChange",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],d.prototype,"actionButtonClick",void 0),o.__decorate([s.ViewChild("header",{static:!1}),o.__metadata("design:type",b.FlatColorPickerHeaderComponent)],d.prototype,"header",void 0),o.__decorate([s.ViewChild("gradient",{static:!1}),o.__metadata("design:type",v.ColorGradientComponent)],d.prototype,"gradient",void 0),o.__decorate([s.ViewChild("palette",{static:!1}),o.__metadata("design:type",y.ColorPaletteComponent)],d.prototype,"palette",void 0),o.__decorate([s.ViewChild("footer",{static:!1}),o.__metadata("design:type",t.FlatColorPickerActionButtonsComponent)],d.prototype,"footer",void 0),n=o.__decorate([s.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:u.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return n})},{provide:a.KendoInput,useExisting:s.forwardRef(function(){return n})},l.FlatColorPickerService,r.FlatColorPickerLocalizationService,{provide:i.LocalizationService,useExisting:r.FlatColorPickerLocalizationService},{provide:i.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'}),o.__metadata("design:paramtypes",[s.ElementRef,l.FlatColorPickerService,i.LocalizationService,s.ChangeDetectorRef,s.Renderer2,s.NgZone])],d));function d(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 p.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},h.validatePackage(f.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}e.FlatColorPickerComponent=b},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(d,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(29),a=t(6),r=t(58),s=t(73),t=t(3),n=n.__decorate([o.NgModule({declarations:[r.LocalizedNumericTextBoxMessagesDirective,i.NumericTextBoxComponent,s.NumericTextBoxCustomMessagesComponent],exports:[i.NumericTextBoxComponent,s.NumericTextBoxCustomMessagesComponent],imports:[a.CommonModule,t.EventsModule]})],l);function l(){}e.NumericTextBoxModule=n},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(6),a=t(32),r=t(68),s=t(66),l=t(102),t=t(15),n=n.__decorate([o.NgModule({declarations:[a.SliderComponent,l.SliderCustomMessagesComponent,s.LocalizedSliderMessagesDirective],exports:[a.SliderComponent,l.SliderCustomMessagesComponent,t.LabelTemplateDirective,s.LocalizedSliderMessagesDirective],imports:[i.CommonModule,r.SlidersCommonModule]})],d);function d(){}e.SliderModule=n},function(i,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t,n=e(0),l=e(1),d=e(3),c=e(4),s=e(11),p=e(31),h=e(111),g=e(110),m=e(5),_=e(109),v=e(2),y=e(8),b=e(7),a=e(74),f=e(108),u=e(107),C=e(30),k=["min","max","step","decimals"],S={decimals:null,max:null,min:null,step:1},e=(t=o,Object.defineProperty(o.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(o.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),o.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(m.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)))})},o.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},o.prototype.ngOnChanges=function(t){d.anyChanged(k,t,!1)&&this.parseOptions(k.filter(function(e){return t[e]})),this.verifySettings(),d.anyChanged(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?g.createMinValidator(this.min):f.noop,this.maxValidateFn=this.rangeValidation?h.createMaxValidator(this.max):f.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())},o.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})},o.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},o.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},o.prototype.writeValue=function(e){this.verifyValue(e);e=this.restrictModelValue(e);this.value=e,this.setInputValue()},o.prototype.registerOnChange=function(e){this.ngChange=e},o.prototype.registerOnTouched=function(e){this.ngTouched=e},o.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},o.prototype.focus=function(){s.invokeElementMethod(this.numericInput,"focus")},o.prototype.blur=function(){s.invokeElementMethod(this.numericInput,"blur")},o.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(o.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(o.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(o.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(o.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&0<=this.decimals},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),o.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||f.isRightClick(t)||(C.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,a.INITIAL_SPIN_DELAY):this.setInputValue())},o.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()})},o.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},o.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=f.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},o.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){n.spin(e,a.SPIN_DELAY)},t),this.addStep(e)},o.prototype.addStep=function(e){e=p.add(this.value||0,this.step*e),e=this.limitValue(e);e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)},o.prototype.setSelection=function(e,t){this.focused&&s.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},o.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(f.isNumber(this.max)&&e>this.max&&(t=this.max),f.isNumber(this.min)&&e<this.min&&(t=this.min)),t},o.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,c=t.selectionEnd,t=t.value,o=e,i=!1;if(!this.isInRange(e)){var u=t.length-String(this.inputValue).length,a=this.min,r=this.max,s=f.isNumber(r),p=f.isNumber(a),l=void 0,h=void 0,d=e;if(0===n&&this.inputValue.substr(1)===t)return{selectionEnd:c,selectionStart:n,value:null};s&&r<e?0<e?h=!0:l=r:p&&e<a&&(0<e?l=a:h=!0),l?(s=this.tryPadValue(e,l))&&f.decimalPart(e)!==f.decimalPart(l)&&(d=s,i=!0):h&&this.inputValue&&n!==t.length&&(d=parseFloat(t.substr(0,n)+t.substr(n+u))),o=this.limitValue(d),i=(i||o!==d)&&this.previousSelection&&0<this.previousSelection.end-this.previousSelection.start+u}return{selectionEnd:i?String(o).length:c,selectionStart:n,value:o}},o.prototype.tryPadValue=function(e,t){var n,t=String(Math.floor(t)).length,o=f.pad(e,t),e=f.pad(e,t+1);return this.isInRange(o)?n=o:this.isInRange(e)&&(n=e),n},o.prototype.isInRange=function(e){return!f.isNumber(e)||(!f.isNumber(this.min)||this.min<=e)&&(!f.isNumber(this.max)||e<=this.max)},o.prototype.restrictModelValue=function(e){e=this.restrictDecimals(e,!0);return e=this.autoCorrect&&this.limitValue(e)!==e?null:e},o.prototype.restrictDecimals=function(e,t){var n,o,i=e;return e&&this.hasDecimals&&(n=this.decimals,o=String(e),t||a.EXPONENT_REGEX.test(o)?i=p.toFixedPrecision(e,n):(e=(t=o.split(a.POINT))[1])&&e.length>n&&(e=e.substr(0,n),i=parseFloat(""+t[0]+a.POINT+e))),i},o.prototype.formatInputValue=function(e){var t=String(e),n=a.EXPONENT_REGEX.exec(t);return(t=n?e.toFixed(p.limitPrecision(parseInt(n[1],10))):t).replace(a.POINT,this.decimalSeparator)},o.prototype.formatValue=function(e,t){return null!==e&&f.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},o.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},o.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 "+a.MIN_DOC_LINK+" and "+a.MAX_DOC_LINK+".")},o.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.")},o.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:S[n]}}},o.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},o.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},o.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},o.prototype.selectCaret=function(){var e=f.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,e=t.substring(0,e);this.setInputValue(),e.length?(e=f.extractSignificantNumericChars(e,this.decimalSeparator),t=this.adjustSignificantChars(t,e),this.setSelection(t,t)):this.setSelection(0,0)},o.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},o.prototype.adjustSignificantChars=function(e,t){e=this.numberOfLeadingZeroes(e);return 0<e?Math.max(0,t-e):t},o.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)},n.__decorate([l.Input(),n.__metadata("design:type",String)],o.prototype,"focusableId",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"disabled",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"readonly",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],o.prototype,"title",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"autoCorrect",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],o.prototype,"format",null),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"max",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"min",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"decimals",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],o.prototype,"placeholder",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"step",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"spinners",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"rangeValidation",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"tabindex",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],o.prototype,"tabIndex",null),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"changeValueOnScroll",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],o.prototype,"selectOnFocus",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"value",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],o.prototype,"maxlength",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],o.prototype,"size",null),n.__decorate([l.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],o.prototype,"rounded",null),n.__decorate([l.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],o.prototype,"fillMode",null),n.__decorate([l.Output(),n.__metadata("design:type",l.EventEmitter)],o.prototype,"valueChange",void 0),n.__decorate([l.Output("focus"),n.__metadata("design:type",l.EventEmitter)],o.prototype,"onFocus",void 0),n.__decorate([l.Output("blur"),n.__metadata("design:type",l.EventEmitter)],o.prototype,"onBlur",void 0),n.__decorate([l.ViewChild("numericInput",{static:!0}),n.__metadata("design:type",l.ElementRef)],o.prototype,"numericInput",void 0),n.__decorate([l.HostBinding("attr.dir"),n.__metadata("design:type",String)],o.prototype,"direction",void 0),n.__decorate([l.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],o.prototype,"disableClass",null),n.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-numerictextbox"),n.__metadata("design:type",Boolean)],o.prototype,"hostClasses",void 0),t=n.__decorate([l.Component({exportAs:"kendoNumericTextBox",providers:[v.LocalizationService,{provide:v.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:m.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return t}),multi:!0},{provide:m.NG_VALIDATORS,useExisting:l.forwardRef(function(){return t}),multi:!0},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return t})}],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 '}),n.__metadata("design:paramtypes",[_.IntlService,l.Renderer2,v.LocalizationService,l.Injector,l.NgZone,l.ChangeDetectorRef,l.ElementRef])],o));function o(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=u.ArrowDirection,this.arrowDirection=u.ArrowDirection.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=f.noop,this.maxValidateFn=f.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=f.noop,this.ngTouched=f.noop,this.ngValidatorChange=f.noop,this.domEvents=[],this.increasePress=function(e){s.arrowPress(u.ArrowDirection.Up,e)},this.decreasePress=function(e){s.arrowPress(u.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(s.spinTimeout),s.arrowDirection!==u.ArrowDirection.None&&(s.arrowDirection=u.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=f.getDeltaFromMouseWheel(e),s.addStep(e))},y.validatePackage(b.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}r.NumericTextBoxComponent=e},function(e,t){e.exports=m},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(a,u,e){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var p,t,n=e(0),o=e(1),h=e(5),r=e(9),s=e(12),f=e(10),g=e(113),m=e(2),_=e(4),l=e(10),d=e(11),c=e(3),e=(p=e(79).SliderBase,n.__extends(i,p),t=i,Object.defineProperty(i.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentValue",{get:function(){return _.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),i.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,d.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},i.prototype.blur=function(){this.focusChangedProgrammatically=!0,d.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},i.prototype.ngOnChanges=function(e){var t=this;c.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(s.take(1)).subscribe(function(){t.sizeComponent(!1)})},i.prototype.ngAfterViewInit=function(){var e=this;c.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())},i.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(i.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),i.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},i.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(l.eventValue(e,this.track.nativeElement,this.getProps()))},i.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},i.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},i.prototype.registerOnChange=function(e){this.ngChange=e},i.prototype.registerOnTouched=function(e){this.ngTouched=e},i.prototype.changeValue=function(e){var t=this;_.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()})},i.prototype.sizeComponent=function(e){var t,n,o,i,a;c.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 g.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(i.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.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}),i.prototype.setValueChangeInterval=function(o,i){var a=this;this.ngZone.runOutsideAngular(function(){var e=r.fromEvent(o,"mousedown"),t=r.fromEvent(o,"mouseup"),n=r.fromEvent(o,"mouseout"),e=e.pipe(s.filter(function(e){return 0===e.button&&!a.isDisabled}),s.concatMap(function(){return r.interval(150).pipe(s.startWith(-1),s.takeUntil(r.merge(t,n)))})).subscribe(function(){a.isFocused||d.invokeElementMethod(a.draghandle,"focus"),i()});a.subscriptions.add(e)})},i.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:f.trimValue(this.max,this.min,this.value),vertical:this.vertical}},i.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===c.Keys.Tab}))})},n.__decorate([o.Input(),n.__metadata("design:type",String)],i.prototype,"focusableId",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],i.prototype,"dragHandleTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],i.prototype,"incrementTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],i.prototype,"animate",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],i.prototype,"decrementTitle",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],i.prototype,"showButtons",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],i.prototype,"value",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],i.prototype,"tabIndex",null),n.__decorate([o.ViewChild("draghandle",{static:!0}),n.__metadata("design:type",o.ElementRef)],i.prototype,"draghandle",void 0),n.__decorate([o.ViewChild("decreaseButton",{static:!1}),n.__metadata("design:type",o.ElementRef)],i.prototype,"decreaseButton",void 0),n.__decorate([o.ViewChild("increaseButton",{static:!1}),n.__metadata("design:type",o.ElementRef)],i.prototype,"increaseButton",void 0),t=n.__decorate([o.Component({exportAs:"kendoSlider",providers:[m.LocalizationService,{provide:m.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:h.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t})},{provide:c.KendoInput,useExisting:o.forwardRef(function(){return t})}],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 '}),n.__metadata("design:paramtypes",[m.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],i));function i(e,t,n,o,i,a){var r=p.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-"+c.guid(),r.animate=!0,r.showButtons=!0,r.value=r.min,r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t=e.target;r.isDisabled||l.isButton(t)||l.isButton(t.parentNode)||(t=l.eventValue(e,r.track.nativeElement,r.getProps()),r.changeValue(t)),d.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(f.trimValue(n,o,i)),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.decreaseValue=function(){r.changeValue(l.decreaseValueToStep(r.value,r.getProps()))},r.increaseValue=function(){r.changeValue(l.increaseValueToStep(r.value,r.getProps()))},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(c.hasObservers(r.onBlur)||_.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}u.SliderComponent=e},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(5),a=t(9),r=t(3),s=t(2),u=t(8),p=t(7),l=t(18),t=t(17),l=(Object.defineProperty(d.prototype,"errorClass",{get:function(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"disabledClass",{get:function(){return!!this.control&&!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),d.prototype.ngAfterViewInit=function(){this.setDescription()},d.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},d.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},d.prototype.disabledControl=function(){return this.control.disabled},d.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every(function(e){return e.nativeElement.hasAttribute("disabled")})},d.prototype.validateFormControl=function(e){if(o.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.")},d.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)})},d.prototype.isRadioControl=function(e){return e.valueAccessor instanceof i.RadioControlValueAccessor},d.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))})},d.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&r.isDocumentAvailable()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map(function(e){return e.nativeElement})},d.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(" ")},d.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},d.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)},d.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()}))},n.__decorate([o.HostBinding("class.k-form-field"),n.__metadata("design:type",Boolean)],d.prototype,"hostClass",void 0),n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",String)],d.prototype,"direction",void 0),n.__decorate([o.HostBinding("class.k-form-field-error"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"errorClass",null),n.__decorate([o.HostBinding("class.k-form-field-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"disabledClass",null),n.__decorate([o.ContentChildren(i.NgControl,{descendants:!0}),n.__metadata("design:type",o.QueryList),n.__metadata("design:paramtypes",[o.QueryList])],d.prototype,"formControls",null),n.__decorate([o.ContentChildren(i.NgControl,{read:o.ElementRef,descendants:!0}),n.__metadata("design:type",o.QueryList)],d.prototype,"controlElementRefs",void 0),n.__decorate([o.ContentChild(r.KendoInput,{static:!0}),n.__metadata("design:type",Object)],d.prototype,"kendoInput",void 0),n.__decorate([o.ContentChildren(l.ErrorComponent,{descendants:!0}),n.__metadata("design:type",o.QueryList)],d.prototype,"errorChildren",void 0),n.__decorate([o.ContentChildren(t.HintComponent,{descendants:!0}),n.__metadata("design:type",o.QueryList)],d.prototype,"hintChildren",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"showHints",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"orientation",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"showErrors",void 0),n.__decorate([o.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:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.formfield"}]}),n.__metadata("design:paramtypes",[o.Renderer2,s.LocalizationService,o.ElementRef])],d));function d(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 a.Subscription,this.rtl=!1,u.validatePackage(p.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;o.rtl=e,o.direction=o.rtl?"rtl":"ltr"}))}e.FormFieldComponent=l},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(17),n=n(18),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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(13),a=t(4),r=t(3),s=t(9),l=t(2),t=t(29),t=(Object.defineProperty(d.prototype,"isFocused",{get:function(){if(!r.isDocumentAvailable()||!a.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rgbaInputValid",{get:function(){var t=this;return Object.keys(this.rgba).every(function(e){return a.isPresent(t.rgba[e])})},enumerable:!0,configurable:!0}),d.prototype.ngAfterViewInit=function(){this.initDomEvents()},d.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},d.prototype.ngOnChanges=function(e){a.isPresent(e.value)&&!this.isFocused&&(this.hex=i.parseColor(this.value,"hex",this.opacity),this.rgba=i.getRGBA(this.value),this.rgba.a=i.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(d.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),d.prototype.handleRgbaValueChange=function(){var e=i.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=i.getRGBA(this.value),this.hex=i.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},d.prototype.handleHexValueChange=function(e){this.hex=e;e=i.parseColor(e,"rgba",this.opacity);a.isPresent(e)&&e!==this.value&&(this.value=e,this.rgba=i.getRGBA(e),this.valueChange.emit(e))},d.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=i.getRGBA(this.value))},d.prototype.handleHexInputBlur=function(){this.hex=i.parseColor(this.value,"hex",this.opacity)},d.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},d.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",function(){return e.toggleFormatView()}))},n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"focusableId",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"formatView",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],d.prototype,"value",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],d.prototype,"opacity",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],d.prototype,"readonly",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],d.prototype,"valueChange",void 0),n.__decorate([o.HostBinding("class.k-colorgradient-inputs"),o.HostBinding("class.k-hstack"),n.__metadata("design:type",Boolean)],d.prototype,"colorInputClass",void 0),n.__decorate([o.ViewChild("opacityInput",{static:!1}),n.__metadata("design:type",t.NumericTextBoxComponent)],d.prototype,"opacityInput",void 0),n.__decorate([o.ViewChild("hexInput",{read:o.ElementRef,static:!1}),n.__metadata("design:type",o.ElementRef)],d.prototype,"hexInput",void 0),n.__decorate([o.ViewChild("blueInput",{read:o.ElementRef,static:!1}),n.__metadata("design:type",o.ElementRef)],d.prototype,"blueInput",void 0),n.__decorate([o.ViewChild("toggleFormatButton",{static:!1}),n.__metadata("design:type",o.ElementRef)],d.prototype,"toggleFormatButton",void 0),n.__decorate([o.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 '}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,l.LocalizationService])],d));function d(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+r.guid(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new o.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new s.Subscription}e.ColorInputComponent=t},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(c,u,e){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var t,n=e(0),p=e(12),s=e(1),h=e(5),f=e(9),g=e(23),m=e(46),_=e(8),o=e(3),i=e(2),v=e(7),y=e(21),a=e(16),r=e(13),l=e(4),b=e(44),C=e(14),k=["focus","blur"],e=(t=d,Object.defineProperty(d.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"value",{get:function(){return this._value},set:function(e){this._value=r.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isOpen",{get:function(){return l.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconStyles",{get:function(){return this.iconClass||(this.icon?"k-icon k-i-"+this.icon:void 0)},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var e="name"!==this.format?C.DEFAULT_PRESET:C.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&y.PALETTEPRESETS[t]?y.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},d.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)}),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},d.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=r.parseColor(this.value,this.format,this.gradientSettings.opacity)),o.isChanged("value",e)&&this.setHostElementAriaLabel()},d.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",k)},d.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},d.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},d.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),o.closest(e.target,function(e){return e===t.activeColor.nativeElement}))return e=new a.ActiveColorClickEvent(this.value),this.activeColorClick.emit(e),void(e.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen));this.toggleWithEvents(!this.isOpen)}},d.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},d.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run(function(){e.focus(),e.onFocus.emit()})},d.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},d.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run(function(){e.onBlur.emit(),e.isFocused=!1})},d.prototype.reset=function(){l.isPresent(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},d.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=l.isPresent(e)?e:!this.isOpen)&&this.openPopup())},d.prototype.handleValueChange=function(e){e=r.parseColor(e,this.format,this.gradientSettings.opacity);e!==this.value&&(this.value=e,this.valueChange.emit(e),this.setHostElementAriaLabel(),this.notifyNgChanged(e))},d.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},d.prototype.writeValue=function(e){this.value=e},d.prototype.registerOnChange=function(e){this.notifyNgChanged=e},d.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},d.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},d.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==o.Keys.ArrowDown&&e.keyCode!==o.Keys.Enter||(e.preventDefault(),this.ngZone.run(function(){t.toggleWithEvents(!0)}))},d.prototype.handlePopupKeyDown=function(e){var t,n;e.keyCode===o.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===o.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()))},d.prototype.isEmpty=function(){return!1},d.prototype.setHostElementAriaLabel=function(){var e=""+(this.value||this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},d.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,t=l.getStylingClasses("picker",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},d.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return o.closest(e.relatedTarget,function(e){return e===t.host.nativeElement})||n},d.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new a.ColorPickerOpenEvent,this.open.emit(t)):(t=new a.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},d.prototype.focusFirstElement=function(){var t=this;this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){var e;t.flatColorPicker&&((e=t.flatColorPicker.gradient)?e.gradientDragHandle:t.flatColorPicker.palette.host).nativeElement.focus()})},d.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})})},d.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(d.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(d.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}),d.prototype.handleDomEvents=function(t,e){var n=this,o=this.host.nativeElement;e.forEach(function(e){return o[t+"EventListener"](e,n.domFocusListener,!0)})},d.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&&o.closest(e.relatedTarget,function(e){return e===n.flatColorPicker.host.nativeElement}),e=o.closest(e.relatedTarget,function(e){return e===n.host.nativeElement});t||e||n.handleWrapperBlur()})),n.handleDomEvents("add",k),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)})}))}))},d.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");t?this.focusableId=t:(t="k-"+o.guid(),e.setAttribute("id",t),this.focusableId=t)},n.__decorate([s.HostBinding("class.k-colorpicker"),s.HostBinding("class.k-icon-picker"),s.HostBinding("class.k-picker"),n.__metadata("design:type",Boolean)],d.prototype,"hostClasses",void 0),n.__decorate([s.HostBinding("class.k-focus"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"focusedClass",null),n.__decorate([s.HostBinding("attr.aria-disabled"),s.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"disabledClass",null),n.__decorate([s.HostBinding("attr.aria-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"ariaReadonly",null),n.__decorate([s.HostBinding("attr.aria-expanded"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],d.prototype,"ariaExpanded",null),n.__decorate([s.HostBinding("attr.tabindex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[])],d.prototype,"hostTabindex",null),n.__decorate([s.HostBinding("attr.dir"),n.__metadata("design:type",String)],d.prototype,"direction",void 0),n.__decorate([s.HostBinding("attr.role"),n.__metadata("design:type",String)],d.prototype,"role",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Array)],d.prototype,"views",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"view",null),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"activeView",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"readonly",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"format",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"value",null),n.__decorate([s.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],d.prototype,"popupSettings",null),n.__decorate([s.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],d.prototype,"paletteSettings",null),n.__decorate([s.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],d.prototype,"gradientSettings",null),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"icon",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Object)],d.prototype,"iconClass",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"clearButton",void 0),n.__decorate([s.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],d.prototype,"tabindex",null),n.__decorate([s.Input(),n.__metadata("design:type",Boolean)],d.prototype,"preview",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String)],d.prototype,"actionsLayout",void 0),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"size",null),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"rounded",null),n.__decorate([s.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],d.prototype,"fillMode",null),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"valueChange",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"open",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"close",void 0),n.__decorate([s.Output("focus"),n.__metadata("design:type",s.EventEmitter)],d.prototype,"onFocus",void 0),n.__decorate([s.Output("blur"),n.__metadata("design:type",s.EventEmitter)],d.prototype,"onBlur",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"cancel",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"activeColorClick",void 0),n.__decorate([s.Output(),n.__metadata("design:type",s.EventEmitter)],d.prototype,"activeViewChange",void 0),n.__decorate([s.ViewChild("container",{read:s.ViewContainerRef,static:!0}),n.__metadata("design:type",s.ViewContainerRef)],d.prototype,"container",void 0),n.__decorate([s.ViewChild("activeColor",{static:!0}),n.__metadata("design:type",s.ElementRef)],d.prototype,"activeColor",void 0),n.__decorate([s.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",s.TemplateRef)],d.prototype,"popupTemplate",void 0),n.__decorate([s.ViewChild("flatColorPicker",{static:!1}),n.__metadata("design:type",g.FlatColorPickerComponent)],d.prototype,"flatColorPicker",void 0),t=n.__decorate([s.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:h.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return t})},{provide:o.KendoInput,useExisting:s.forwardRef(function(){return t})},b.ColorPickerLocalizationService,{provide:i.LocalizationService,useExisting:b.ColorPickerLocalizationService},{provide:i.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 '}),n.__metadata("design:paramtypes",[s.ElementRef,m.PopupService,s.ChangeDetectorRef,i.LocalizationService,s.NgZone,s.Renderer2])],d));function d(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 f.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},_.validatePackage(v.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}u.ColorPickerComponent=e},function(e,t){e.exports=d},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(6),a=t(46),r=t(3),u=t(28),p=t(27),s=t(45),l=t(19),d=t(20),h=t(43),f=t(42),g=t(41),m=t(23),_=t(85),v=t(39),y=t(84),b=t(83),C=t(82),t=t(81),s=[s.ColorPickerComponent,l.ColorPaletteComponent,d.ColorGradientComponent,m.FlatColorPickerComponent,v.LocalizedColorPickerMessagesDirective,_.ColorPickerCustomMessagesComponent],l=[h.ColorInputComponent,y.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,g.FlatColorPickerActionButtonsComponent,t.ColorContrastSvgComponent],d=n.__decorate([o.NgModule({declarations:[s,l],exports:[s],imports:[u.SliderModule,p.NumericTextBoxModule,i.CommonModule,a.PopupModule,r.DraggableModule]})],k);function k(){}e.ColorPickerModule=d},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,n,o=t(0),l=t(1),u=t(9),p=t(12),h=t(5),d=t(3),i=t(2),f=t(98),a=t(4),g=t(11),m=t(11),_=t(8),v=t(7),y={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},t=(s=f.TextFieldsBase,o.__extends(r,s),n=r,Object.defineProperty(r.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),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}),Object.defineProperty(r.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),r.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?(m.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===d.Keys.Tab})),t.handleFlow()}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},r.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(h.NgControl,null),d.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=u.fromEvent(window,"resize").pipe(p.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"})},r.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(a.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},r.prototype.ngAfterViewChecked=function(){this.resize()},r.prototype.writeValue=function(e){this.value=e},r.prototype.registerOnChange=function(e){this.ngChange=e},r.prototype.registerOnTouched=function(e){this.ngTouched=e},r.prototype.updateValue=function(e){var t=this;a.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},r.prototype.ngOnDestroy=function(){s.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(r.prototype,"resizableClass",{get:function(){return y[this.resizable]},enumerable:!0,configurable:!0}),r.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},r.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},r.prototype.resize=function(){var e,t;"auto"===this.resizable&&(e=this.input.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px"),(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Object.defineProperty(r.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}),r.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},r.prototype.setSelection=function(e,t){this.isFocused&&g.invokeElementMethod(this.input,"setSelectionRange",e,t)},r.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},r.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=a.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},r.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,t=t.children[1];this.renderer.setStyle(n,"flex",e?"none":"1"),t&&this.renderer.setStyle(t,"align-items",e?"center":"start")},o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"focusableId",void 0),o.__decorate([l.HostBinding("class.k-textarea"),l.HostBinding("class.k-input"),o.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),o.__decorate([l.HostBinding("class.!k-flex-col"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"flowCol",null),o.__decorate([l.HostBinding("class.!k-flex-row"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"flowRow",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"flow",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"rows",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"cols",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"maxlength",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],r.prototype,"tabIndex",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"resizable",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"rounded",null),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"fillMode",null),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),n=o.__decorate([l.Component({exportAs:"kendoTextArea",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.textarea"},{provide:h.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return n}),multi:!0},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return n})}],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 ',styles:["\n :host {\n display: inline-flex;\n }\n "]}),o.__metadata("design:paramtypes",[i.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],r));function r(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-"+d.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()})}),d.hasObservers(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),d.hasObservers(r.inputFocus)&&(r.focusChangedProgrammatically||r.ngZone.run(function(){r.inputFocus.emit()})),r.ngZone.run(function(){r.isFocused=!0}))},_.validatePackage(v.packageMetadata),r.direction=e.rtl?"rtl":"ltr",r}e.TextAreaComponent=t},function(d,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(6),a=t(49),r=t(3),s=t(48),t=t(24),n=n.__decorate([o.NgModule({declarations:[a.TextAreaComponent,s.TextAreaSuffixComponent],exports:[a.TextAreaComponent,r.EventsModule,s.TextAreaSuffixComponent,t.SHARED_DIRECTIVES],imports:[i.CommonModule,r.EventsModule,t.SharedModule]})],l);function l(){}e.TextAreaModule=n},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){return o.detectDesktopBrowser(e).safari||o.detectMobileOS(e)&&"mobilesafari"===o.detectMobileOS(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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),u=t(54),p=t(11),i=t(5),s=t(1),h=t(8),f=t(7),g=t(11),l=t(4),d=t(3),m=t(26),_=t(25),a=t(2),v=t(54),t=(n=r,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}),Object.defineProperty(r.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(i.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},r.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?(p.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===d.Keys.Tab}))}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},r.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},r.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},r.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},r.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},r.prototype.clearTitle=function(){return this.localizationService.get("clear")},r.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},r.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},r.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},r.prototype.registerOnChange=function(e){this.ngChange=e},r.prototype.registerOnTouched=function(e){this.ngTouched=e},r.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},r.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)},r.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(r.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon||"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),r.prototype.setSelection=function(e,t){this.isFocused&&g.invokeElementMethod(this.input,"setSelectionRange",e,t)},r.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},r.prototype.updateValue=function(e){var t=this;l.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(r.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}),r.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},r.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=l.getStylingClasses("input",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"focusableId",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"title",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"readonly",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"value",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"selectOnFocus",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Object)],r.prototype,"showSuccessIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Object)],r.prototype,"showErrorIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"clearButton",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"successIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"errorIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"clearButtonIcon",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"rounded",null),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"fillMode",null),o.__decorate([s.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],r.prototype,"tabIndex",null),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"placeholder",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Number)],r.prototype,"maxlength",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],r.prototype,"valueChange",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],r.prototype,"inputFocus",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],r.prototype,"inputBlur",void 0),o.__decorate([s.Output("focus"),o.__metadata("design:type",s.EventEmitter)],r.prototype,"onFocus",void 0),o.__decorate([s.Output("blur"),o.__metadata("design:type",s.EventEmitter)],r.prototype,"onBlur",void 0),o.__decorate([s.ViewChild("input",{static:!0}),o.__metadata("design:type",s.ElementRef)],r.prototype,"input",void 0),o.__decorate([s.ContentChild(m.TextBoxSuffixTemplateDirective,{static:!1}),o.__metadata("design:type",m.TextBoxSuffixTemplateDirective)],r.prototype,"suffixTemplate",void 0),o.__decorate([s.ContentChild(_.TextBoxPrefixTemplateDirective,{static:!1}),o.__metadata("design:type",_.TextBoxPrefixTemplateDirective)],r.prototype,"prefixTemplate",void 0),o.__decorate([s.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"disabledClass",null),o.__decorate([s.HostBinding("class.k-textbox"),s.HostBinding("class.k-input"),o.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),o.__decorate([s.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),n=o.__decorate([s.Component({exportAs:"kendoTextBox",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.textbox"},{provide:i.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return n}),multi:!0},{provide:d.KendoInput,useExisting:s.forwardRef(function(){return n})}],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 '}),o.__metadata("design:paramtypes",[a.LocalizationService,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.Injector,s.ElementRef])],r));function r(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-"+d.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 s.EventEmitter,this.inputFocus=new s.EventEmitter,this.inputBlur=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.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()})}),d.hasObservers(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),d.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(),(d.hasObservers(r.inputBlur)||l.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.handleInput=function(e){e=v.isSafari(navigator.userAgent)&&u.isJapanese(e.target.value)?e.data:e.target.value;r.updateValue(e)},this.ngChange=function(e){},this.ngTouched=function(){},h.validatePackage(f.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}e.TextBoxComponent=t},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),u=t(1),o=t(76),i=t(55),p=t(6),a=t(3),r=t(26),s=t(25),l=t(99),d=t(52),t=t(24),n=n.__decorate([u.NgModule({declarations:[o.TextBoxDirective,i.TextBoxComponent,r.TextBoxSuffixTemplateDirective,s.TextBoxPrefixTemplateDirective,l.TextBoxCustomMessagesComponent,d.LocalizedTextBoxMessagesDirective],exports:[o.TextBoxDirective,i.TextBoxComponent,r.TextBoxSuffixTemplateDirective,s.TextBoxPrefixTemplateDirective,a.EventsModule,l.TextBoxCustomMessagesComponent,d.LocalizedTextBoxMessagesDirective,t.SHARED_DIRECTIVES],imports:[p.CommonModule,a.EventsModule,t.SharedModule]})],h);function h(){}e.TextBoxModule=n},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(77),a=t(6),r=t(3),s=t(60),l=t(100),t=t(3),n=n.__decorate([o.NgModule({declarations:[i.SwitchComponent,l.SwitchCustomMessagesComponent,s.LocalizedSwitchMessagesDirective],exports:[i.SwitchComponent,l.SwitchCustomMessagesComponent,s.LocalizedSwitchMessagesDirective],imports:[a.CommonModule,t.EventsModule,r.ResizeSensorModule]})],d);function d(){}e.SwitchModule=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,"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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(6),a=t(68),r=t(78),s=t(63),l=t(101),t=t(15),n=n.__decorate([o.NgModule({declarations:[r.RangeSliderComponent,l.RangeSliderCustomMessagesComponent,s.LocalizedRangeSliderMessagesDirective],exports:[r.RangeSliderComponent,l.RangeSliderCustomMessagesComponent,s.LocalizedRangeSliderMessagesDirective,t.LabelTemplateDirective],imports:[i.CommonModule,a.SlidersCommonModule]})],d);function d(){}e.RangeSliderModule=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),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"> </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(s,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),l=t(1),i=t(5),u=t(2),p=t(8),h=t(7),a=t(106),d=t(3),f=t(11),c=t(4),g=Promise.resolve(null),t=(n=r,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}),Object.defineProperty(r.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(r.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(r.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(i.NgControl,null)},r.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},r.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},r.prototype.handleDragDrop=function(){return!1},r.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},r.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},r.prototype.pasteHandler=function(e){var e=e.target,t=e.selectionStart,e=e.selectionEnd;e!==t&&(this.isPasted=!0,this.selection=[t,e])},r.prototype.inputHandler=function(e){var t,n=e.target.value,o=this.selection,i=o[0],o=o[1];if(!this.mask)return this.updateValue(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.updateValue(t.value)},r.prototype.ngOnChanges=function(e){var t,n=this;e.value&&(this.value=this.normalizeValue()),this.mask?(t=this.extractChanges(e),this.updateService(t),d.isChanged("value",e)?(t=this.service.maskRaw(this.value))!==this.maskedValue&&this.updateInput(t):d.anyChanged(["promptPlaceholder","includeLiterals"],e)?g.then(function(){n.updateValue(n.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))):this.updateInput(this.value)},r.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},r.prototype.registerOnChange=function(e){this.onChange=e},r.prototype.registerOnTouched=function(e){this.onTouched=e},r.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},r.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},r.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},r.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)},r.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},{})},r.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)},r.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&f.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(r.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),r.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(r.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}),r.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=c.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:""},r.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)},o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"focusableId",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",String)],r.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"rounded",null),o.__decorate([l.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"fillMode",null),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),o.__decorate([l.HostBinding("class.k-input"),l.HostBinding("class.k-maskedtextbox"),o.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),o.__decorate([l.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"hostDisabledClass",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"mask",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"value",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],r.prototype,"rules",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"prompt",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"promptPlaceholder",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"includeLiterals",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"maskOnFocus",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"maskValidation",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],r.prototype,"tabIndex",null),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.ViewChild("input",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"input",void 0),o.__decorate([l.HostListener("paste",["$event"]),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],r.prototype,"pasteHandler",null),o.__decorate([l.HostListener("input",["$event"]),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],r.prototype,"inputHandler",null),n=o.__decorate([l.Component({exportAs:"kendoMaskedTextBox",providers:[a.MaskingService,{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return n})},{multi:!0,provide:i.NG_VALIDATORS,useExisting:l.forwardRef(function(){return n})},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return n})}],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 '}),o.__param(6,l.Optional()),o.__param(6,l.Inject(u.RTL)),o.__metadata("design:paramtypes",[a.MaskingService,l.Renderer2,l.ElementRef,l.NgZone,l.Injector,l.ChangeDetectorRef,Boolean])],r));function r(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.hostClasses=!0,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.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)||c.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.onTouched(),s.onBlur.emit()})},this.onChange=function(e){},this.onTouched=function(){},p.validatePackage(h.packageMetadata),this.direction=r?"rtl":"ltr",this.updateService()}e.MaskedTextBoxComponent=t},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),r=t(1),i=t(5),a=t(3),u=t(4),p=t(2),s=t(9),l=t(12),t=(n=d,Object.defineProperty(d.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),d.prototype.writeValue=function(e){this.elementValue=e,this.resize()},d.prototype.registerOnChange=function(e){this.ngChange=e},d.prototype.registerOnTouched=function(e){this.ngTouched=e},d.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},d.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()})],a.isDocumentAvailable()&&t.autoSize&&(t.resizeSubscription=s.fromEvent(window,"resize").pipe(l.debounceTime(50)).subscribe(function(){return t.resize()})),t.inputSubscription=s.fromEvent(e,"input").subscribe(t.handleInput.bind(t))}),this.control=this.injector.get(i.NgControl,null)},d.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(l.take(1)).subscribe(function(){return t.resize()})},d.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(d.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),d.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},d.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"))},d.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||a.hasObservers(this.onValueChange)||a.hasObservers(this.valueChange))&&this.zone.run(function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()}),this.resize()},d.prototype.handleFocus=function(){var e=this;a.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()})},d.prototype.handleBlur=function(){var e=this;(a.hasObservers(this.onBlur)||u.requiresZoneOnBlur(this.control))&&this.zone.run(function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()})},o.__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"),o.__metadata("design:type",Boolean)],d.prototype,"elementClasses",void 0),o.__decorate([r.HostBinding("class.k-autofill"),o.__metadata("design:type",Boolean)],d.prototype,"autofillClass",void 0),o.__decorate([r.HostBinding("attr.dir"),o.__metadata("design:type",String)],d.prototype,"direction",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],d.prototype,"valueChange",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],d.prototype,"autoSize",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],d.prototype,"value",void 0),n=o.__decorate([r.Directive({providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return n}),multi:!0},{provide:a.KendoInput,useExisting:r.forwardRef(function(){return n})}],selector:"textarea[kendoTextArea]"}),o.__param(5,r.Optional()),o.__param(5,r.Inject(p.RTL)),o.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],d));function d(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"}e.TextAreaDirective=t},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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=t(0),s=t(1),i=t(5),a=t(2),l=t(3),u=t(8),p=t(7),d=t(4),h=t(9),f=t(12),g=t(30),t=(n=r,Object.defineProperty(r.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),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,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ieClass",{get:function(){return g.browser&&g.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){var e,t=this;this.hostElement&&(e=this.hostElement.nativeElement,this.renderer.removeAttribute(e,"tabindex")),this.localizationChangeSubscription=this.localizationService.changes.pipe(f.skip(1)).subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.control=this.injector.get(i.NgControl,null),this.ngZone.onStable.pipe(f.take(1)).subscribe(function(){return t.initialized=!0})},r.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)},r.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},r.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},r.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},r.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},r.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},r.prototype.registerOnChange=function(e){this.ngChange=e},r.prototype.registerOnTouched=function(e){this.ngTouched=e},r.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},r.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},r.prototype.isEmpty=function(){return!1},r.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(r.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}),r.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))})},r.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"))},r.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,t=d.getStylingClasses("switch",t,this[t],e);t.toRemove&&this.renderer.removeClass(n,t.toRemove),t.toAdd&&this.renderer.addClass(n,t.toAdd)},r.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,e=d.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))},r.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,e=d.getStylingClasses("switch","rounded",this.thumbRounded,e);e.toRemove&&this.renderer.removeClass(t,e.toRemove),e.toAdd&&this.renderer.addClass(t,e.toAdd)},o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"focusableId",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"onLabel",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],r.prototype,"offLabel",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[Boolean])],r.prototype,"checked",null),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],r.prototype,"readonly",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"size",null),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"thumbRounded",null),o.__decorate([s.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"trackRounded",null),o.__decorate([s.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],r.prototype,"tabIndex",null),o.__decorate([s.Output("focus"),o.__metadata("design:type",s.EventEmitter)],r.prototype,"onFocus",void 0),o.__decorate([s.Output("blur"),o.__metadata("design:type",s.EventEmitter)],r.prototype,"onBlur",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],r.prototype,"valueChange",void 0),o.__decorate([s.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),o.__decorate([s.HostBinding("class.k-ie"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"ieClass",null),o.__decorate([s.HostBinding("attr.aria-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"ariaDisabled",null),o.__decorate([s.HostBinding("attr.aria-readonly"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"ariaReadonly",null),o.__decorate([s.HostBinding("class.k-switch"),o.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),o.__decorate([s.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"disabledClass",null),o.__decorate([s.ViewChild("track",{static:!0}),o.__metadata("design:type",Object)],r.prototype,"track",void 0),o.__decorate([s.ViewChild("thumb",{static:!0}),o.__metadata("design:type",Object)],r.prototype,"thumb",void 0),n=o.__decorate([s.Component({exportAs:"kendoSwitch",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return n})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return n})}],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 '}),o.__metadata("design:paramtypes",[s.Renderer2,s.ElementRef,a.LocalizationService,s.Injector,s.ChangeDetectorRef,s.NgZone])],r));function r(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 h.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)||d.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.onBlur.emit()}))},u.validatePackage(p.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}e.SwitchComponent=t},function(a,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s,t,l=e(0),n=e(1),p=e(5),h=e(12),d=e(10),f=e(112),o=e(2),u=e(10),g=e(11),c=e(3),m=e(4),e=(s=e(79).SliderBase,l.__extends(i,s),(t=i).prototype.focus=function(){this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},i.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;g.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},i.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),s.prototype.ngOnInit.call(this)},i.prototype.ngOnChanges=function(e){var t=this;c.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&d.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(h.take(1)).subscribe(function(){t.sizeComponent()}))},i.prototype.ngAfterViewInit=function(){var e=this;c.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent()}),this.attachElementEventHandlers())},i.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},i.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(i.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),i.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();e=e.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)},i.prototype.onHandleDrag=function(e){function t(){return i.changeValue([u.eventValue(e,i.track.nativeElement,i.getProps()),i.value[1]])}function n(){return i.changeValue([i.value[0],u.eventValue(e,i.track.nativeElement,i.getProps())])}function o(){return i.changeValue([u.eventValue(e,i.track.nativeElement,i.getProps()),u.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(),r=(this.lastHandlePosition={x:r.left,y:r.top},this.dragging={value:!0,target:a},e.pageX<this.lastHandlePosition.x),a=e.pageX>this.lastHandlePosition.x,c=e.pageY>this.lastHandlePosition.y,s=u.isStartHandle(this.draggedHandle),l=this.vertical,d=!l,l=l&&c||(this.reverse?d&&a:d&&r);(this.value[0]===this.value[1]?l?s?t:o:s?o:n:s?t:n)()},i.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},i.prototype.writeValue=function(e){d.validateValue(e),this.value=e,this.sizeComponent()},i.prototype.registerOnChange=function(e){this.ngChange=e},i.prototype.registerOnTouched=function(e){this.ngTouched=e},i.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()})},i.prototype.sizeComponent=function(){var e,t,n,o,i,a;c.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 f.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(i.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),i.prototype.isEmpty=function(){return!1},Object.defineProperty(i.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.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}),i.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}},i.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===c.Keys.Tab}))})},l.__decorate([n.Input(),l.__metadata("design:type",Array)],i.prototype,"value",void 0),l.__decorate([n.ViewChild("draghandleStart",{static:!0}),l.__metadata("design:type",n.ElementRef)],i.prototype,"draghandleStart",void 0),l.__decorate([n.ViewChild("draghandleEnd",{static:!0}),l.__metadata("design:type",n.ElementRef)],i.prototype,"draghandleEnd",void 0),t=l.__decorate([n.Component({exportAs:"kendoRangeSlider",providers:[o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:p.NG_VALUE_ACCESSOR,useExisting:n.forwardRef(function(){return t})},{provide:c.KendoInput,useExisting:n.forwardRef(function(){return t})}],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",[o.LocalizationService,n.Injector,n.Renderer2,n.NgZone,n.ChangeDetectorRef,n.ElementRef])],i));function i(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-"+c.guid(),r.endHandleId="k-end-handle-"+c.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=u.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,g.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=u.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,(c.hasObservers(r.onBlur)||m.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}r.RangeSliderComponent=e},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),s=t(10),l=t(1),d=t(9),o=t(5),i=t(3),c=t(8),u=t(7),t=t(15),n=(Object.defineProperty(a.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),a.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},a.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(o.NgControl,null)},Object.defineProperty(a.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),a.prototype.isEmpty=function(){return!1},Object.defineProperty(a.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[i.Keys.ArrowLeft]=t?s.increment:s.decrement,e[i.Keys.ArrowRight]=t?s.decrement:s.increment,e[i.Keys.ArrowDown]=s.decrement,e[i.Keys.ArrowUp]=s.increment,e[i.Keys.PageUp]=s.incrementLarge,e[i.Keys.PageDown]=s.decrementLarge,e[i.Keys.Home]=function(e){return e.min},e[i.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),a.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"))})},n.__decorate([l.Input(),n.__metadata("design:type",Function)],a.prototype,"title",void 0),n.__decorate([l.Input(),n.__metadata("design:type",String)],a.prototype,"tickPlacement",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],a.prototype,"vertical",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"min",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"max",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"smallStep",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"largeStep",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"fixedTickWidth",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],a.prototype,"disabled",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Boolean)],a.prototype,"readonly",void 0),n.__decorate([l.Input(),n.__metadata("design:type",Number)],a.prototype,"tabindex",void 0),n.__decorate([l.Output("focus"),n.__metadata("design:type",l.EventEmitter)],a.prototype,"onFocus",void 0),n.__decorate([l.Output("blur"),n.__metadata("design:type",l.EventEmitter)],a.prototype,"onBlur",void 0),n.__decorate([l.Output(),n.__metadata("design:type",l.EventEmitter)],a.prototype,"valueChange",void 0),n.__decorate([l.HostBinding("attr.dir"),n.__metadata("design:type",String)],a.prototype,"direction",void 0),n.__decorate([l.HostBinding("class.k-slider-horizontal"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"horizontalClass",null),n.__decorate([l.HostBinding("class.k-slider-vertical"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"verticalClass",null),n.__decorate([l.HostBinding("class.k-slider"),n.__metadata("design:type",Boolean)],a.prototype,"sliderClass",void 0),n.__decorate([l.HostBinding("class.k-widget"),n.__metadata("design:type",Boolean)],a.prototype,"widgetClass",void 0),n.__decorate([l.HostBinding("class.k-state-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],a.prototype,"disabledClass",null),n.__decorate([l.ViewChild("wrap",{static:!0}),n.__metadata("design:type",l.ElementRef)],a.prototype,"wrapper",void 0),n.__decorate([l.ViewChild("track",{static:!0}),n.__metadata("design:type",l.ElementRef)],a.prototype,"track",void 0),n.__decorate([l.ViewChild("sliderSelection",{static:!0}),n.__metadata("design:type",l.ElementRef)],a.prototype,"sliderSelection",void 0),n.__decorate([l.ViewChild("ticks",{read:l.ElementRef,static:!1}),n.__metadata("design:type",l.ElementRef)],a.prototype,"ticksContainer",void 0),n.__decorate([l.ViewChild("ticks",{static:!1}),n.__metadata("design:type",Object)],a.prototype,"ticks",void 0),n.__decorate([l.ContentChild(t.LabelTemplateDirective,{static:!1}),n.__metadata("design:type",t.LabelTemplateDirective)],a.prototype,"labelTemplate",void 0),a);function a(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"}e.SliderBase=n},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(d,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(9),a=t(4),r=t(14),s=t(13),t=(l.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())})},l.prototype.ngOnChanges=function(e){a.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},l.prototype.setPaths=function(){var e=s.bezierCommand(s.controlPoint(s.line));this.paths=[s.svgPath(this.getPaths(r.AA_RATIO,r.STEP_COUNT),e),s.svgPath(this.getPaths(r.AA_RATIO,r.STEP_COUNT,!0),e),s.svgPath(this.getPaths(r.AAA_RATIO,r.STEP_COUNT),e),s.svgPath(this.getPaths(r.AAA_RATIO,r.STEP_COUNT,!0),e)]},l.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=s.getContrastFromTwoRGBAs(s.getRGBA(s.getColorFromHSV(r)),s.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)},l.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},n.__decorate([o.HostBinding("class.k-color-contrast-svg"),n.__metadata("design:type",Boolean)],l.prototype,"hostClass",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],l.prototype,"wrapper",void 0),n.__decorate([o.Input(),n.__metadata("design:type",i.BehaviorSubject)],l.prototype,"hsva",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],l.prototype,"backgroundColor",void 0),n.__decorate([o.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 '})],l));function l(){this.hostClass=!0}e.ColorContrastSvgComponent=t},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)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' ");return n}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(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(0),o=t(1),i=t(28),a=t(64),r=t(61),s=t(27),l=t(57),d=t(56),u=t(50),p=t(6),h=t(47),f=t(38),g=t(36),t=t(34),n=n.__decorate([o.NgModule({exports:[u.TextAreaModule,d.TextBoxModule,i.SliderModule,a.RangeSliderModule,r.SwitchModule,s.NumericTextBoxModule,l.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,g.RadioButtonModule,t.FormFieldModule],imports:[p.CommonModule]})],m);function m(){}e.InputsModule=n},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(19)),a=(t.ColorPaletteComponent=a.ColorPaletteComponent,n(20)),a=(t.ColorGradientComponent=a.ColorGradientComponent,n(47)),a=(t.ColorPickerModule=a.ColorPickerModule,i.__exportStar(n(16),t),n(23)),i=(t.FlatColorPickerComponent=a.FlatColorPickerComponent,n(16)),a=(t.ColorPickerCancelEvent=i.ColorPickerCancelEvent,n(37)),i=(t.CheckBoxDirective=a.CheckBoxDirective,n(35)),a=(t.RadioButtonDirective=i.RadioButtonDirective,n(17)),i=(t.HintComponent=a.HintComponent,n(18)),a=(t.ErrorComponent=i.ErrorComponent,n(33)),i=(t.FormFieldComponent=a.FormFieldComponent,n(34)),a=(t.FormFieldModule=i.FormFieldModule,n(55)),i=(t.TextBoxComponent=a.TextBoxComponent,n(25)),a=(t.TextBoxPrefixTemplateDirective=i.TextBoxPrefixTemplateDirective,n(26)),i=(t.TextBoxSuffixTemplateDirective=a.TextBoxSuffixTemplateDirective,n(49)),a=(t.TextAreaComponent=i.TextAreaComponent,n(48)),i=(t.TextAreaSuffixComponent=a.TextAreaSuffixComponent,n(51)),a=(t.InputSeparatorComponent=i.InputSeparatorComponent,n(24)),i=(t.SharedModule=a.SharedModule,n(39)),a=(t.LocalizedColorPickerMessagesDirective=i.LocalizedColorPickerMessagesDirective,n(58)),i=(t.LocalizedNumericTextBoxMessagesDirective=a.LocalizedNumericTextBoxMessagesDirective,n(52)),a=(t.LocalizedTextBoxMessagesDirective=i.LocalizedTextBoxMessagesDirective,n(66)),i=(t.LocalizedSliderMessagesDirective=a.LocalizedSliderMessagesDirective,n(63)),a=(t.LocalizedRangeSliderMessagesDirective=i.LocalizedRangeSliderMessagesDirective,n(60)),r=(t.LocalizedSwitchMessagesDirective=a.LocalizedSwitchMessagesDirective,t);for(o in r)f(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)}}});
|