@progress/kendo-angular-inputs 7.5.2 → 8.0.0-dev.202112161434

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.
Files changed (151) hide show
  1. package/dist/cdn/js/kendo-angular-inputs.js +2 -2
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/colorpicker/color-contrast-svg.component.js +95 -0
  4. package/dist/es/colorpicker/color-gradient.component.js +109 -81
  5. package/dist/es/colorpicker/color-input.component.js +39 -18
  6. package/dist/es/colorpicker/color-palette.component.js +28 -18
  7. package/dist/es/colorpicker/colorpicker.component.js +170 -76
  8. package/dist/es/colorpicker/constants.js +12 -0
  9. package/dist/es/colorpicker/contrast-validation.component.js +8 -6
  10. package/dist/es/colorpicker/contrast.component.js +6 -8
  11. package/dist/es/colorpicker/{models → events}/active-color-click-event.js +0 -0
  12. package/dist/es/colorpicker/events/cancel-event.js +19 -0
  13. package/dist/es/colorpicker/events/close-event.js +17 -0
  14. package/dist/es/colorpicker/{models → events}/kendo-drag-event.js +0 -0
  15. package/dist/es/colorpicker/events/open-event.js +17 -0
  16. package/dist/es/colorpicker/events.js +8 -0
  17. package/dist/es/colorpicker/flatcolorpicker-actions.component.js +50 -0
  18. package/dist/es/colorpicker/flatcolorpicker-header.component.js +94 -0
  19. package/dist/es/colorpicker/flatcolorpicker.component.js +553 -0
  20. package/dist/es/colorpicker/localization/colorgradient-localization.service.js +7 -7
  21. package/dist/es/colorpicker/localization/colorpalette-localization.service.js +7 -7
  22. package/dist/es/colorpicker/localization/custom-messages.component.js +1 -1
  23. package/dist/es/colorpicker/localization/flatcolorpicker-localization.service.js +34 -0
  24. package/dist/es/colorpicker/localization/localized-colorpicker-messages.directive.js +1 -1
  25. package/dist/es/colorpicker/localization/messages.js +36 -0
  26. package/dist/es/colorpicker/models/{color-picker-view.js → actions-layout.js} +0 -0
  27. package/dist/{es2015/colorpicker/models/color-picker-view.js → es/colorpicker/models/colorpicker-view.js} +0 -0
  28. package/dist/es/colorpicker/{utils → models}/palette-presets.js +0 -0
  29. package/dist/es/colorpicker/models.js +1 -2
  30. package/dist/es/colorpicker/services/flatcolorpicker.service.js +41 -0
  31. package/dist/es/colorpicker/utils/color-parser.js +18 -5
  32. package/dist/es/colorpicker/utils/contrast-curve.js +91 -0
  33. package/dist/es/colorpicker/utils.js +1 -1
  34. package/dist/es/colorpicker.module.js +9 -1
  35. package/dist/es/index.js +5 -0
  36. package/dist/es/main.js +4 -1
  37. package/dist/es/package-metadata.js +1 -1
  38. package/dist/es2015/colorpicker/color-contrast-svg.component.d.ts +26 -0
  39. package/dist/es2015/colorpicker/color-contrast-svg.component.js +97 -0
  40. package/dist/es2015/colorpicker/color-gradient.component.d.ts +32 -43
  41. package/dist/es2015/colorpicker/color-gradient.component.js +125 -92
  42. package/dist/es2015/colorpicker/color-input.component.d.ts +11 -4
  43. package/dist/es2015/colorpicker/color-input.component.js +52 -32
  44. package/dist/es2015/colorpicker/color-palette.component.d.ts +8 -3
  45. package/dist/es2015/colorpicker/color-palette.component.js +28 -18
  46. package/dist/es2015/colorpicker/colorpicker.component.d.ts +84 -24
  47. package/dist/es2015/colorpicker/colorpicker.component.js +195 -112
  48. package/dist/es2015/colorpicker/constants.d.ts +12 -0
  49. package/dist/es2015/colorpicker/constants.js +12 -0
  50. package/dist/es2015/colorpicker/contrast-validation.component.d.ts +1 -1
  51. package/dist/es2015/colorpicker/contrast-validation.component.js +16 -12
  52. package/dist/es2015/colorpicker/contrast.component.d.ts +1 -3
  53. package/dist/es2015/colorpicker/contrast.component.js +17 -17
  54. package/dist/es2015/colorpicker/{models → events}/active-color-click-event.d.ts +0 -0
  55. package/dist/es2015/colorpicker/{models → events}/active-color-click-event.js +0 -0
  56. package/dist/es2015/colorpicker/events/cancel-event.d.ts +15 -0
  57. package/dist/es2015/colorpicker/events/cancel-event.js +14 -0
  58. package/dist/es2015/colorpicker/events/close-event.d.ts +10 -0
  59. package/dist/es2015/colorpicker/events/close-event.js +10 -0
  60. package/dist/es2015/colorpicker/{models → events}/kendo-drag-event.d.ts +0 -0
  61. package/dist/es2015/colorpicker/{models → events}/kendo-drag-event.js +0 -0
  62. package/dist/es2015/colorpicker/events/open-event.d.ts +10 -0
  63. package/dist/es2015/colorpicker/events/open-event.js +10 -0
  64. package/dist/es2015/colorpicker/events.d.ts +8 -0
  65. package/dist/es2015/colorpicker/events.js +8 -0
  66. package/dist/es2015/colorpicker/flatcolorpicker-actions.component.d.ts +18 -0
  67. package/dist/es2015/colorpicker/flatcolorpicker-actions.component.js +60 -0
  68. package/dist/es2015/colorpicker/flatcolorpicker-header.component.d.ts +30 -0
  69. package/dist/es2015/colorpicker/flatcolorpicker-header.component.js +131 -0
  70. package/dist/es2015/colorpicker/flatcolorpicker.component.d.ts +214 -0
  71. package/dist/es2015/colorpicker/flatcolorpicker.component.js +593 -0
  72. package/dist/es2015/colorpicker/localization/colorgradient-localization.service.d.ts +3 -3
  73. package/dist/es2015/colorpicker/localization/colorgradient-localization.service.js +7 -7
  74. package/dist/es2015/colorpicker/localization/colorpalette-localization.service.d.ts +3 -3
  75. package/dist/es2015/colorpicker/localization/colorpalette-localization.service.js +7 -7
  76. package/dist/es2015/colorpicker/localization/custom-messages.component.js +1 -1
  77. package/dist/es2015/colorpicker/localization/flatcolorpicker-localization.service.d.ts +14 -0
  78. package/dist/es2015/colorpicker/localization/flatcolorpicker-localization.service.js +31 -0
  79. package/dist/es2015/colorpicker/localization/localized-colorpicker-messages.directive.js +1 -1
  80. package/dist/es2015/colorpicker/localization/messages.d.ts +36 -0
  81. package/dist/es2015/colorpicker/localization/messages.js +36 -0
  82. package/dist/es2015/colorpicker/models/actions-layout.d.ts +8 -0
  83. package/dist/es2015/colorpicker/models/actions-layout.js +4 -0
  84. package/dist/es2015/colorpicker/models/colorpicker-view.d.ts +8 -0
  85. package/dist/es2015/colorpicker/models/colorpicker-view.js +4 -0
  86. package/dist/es2015/colorpicker/models/gradient-settings.d.ts +4 -3
  87. package/dist/es2015/colorpicker/models/output-format.d.ts +0 -5
  88. package/dist/es2015/colorpicker/{utils → models}/palette-presets.d.ts +0 -0
  89. package/dist/es2015/colorpicker/{utils → models}/palette-presets.js +0 -0
  90. package/dist/es2015/colorpicker/models/palette-settings.d.ts +2 -3
  91. package/dist/es2015/colorpicker/models/tile-size.d.ts +1 -5
  92. package/dist/es2015/colorpicker/models.d.ts +10 -10
  93. package/dist/es2015/colorpicker/models.js +1 -2
  94. package/dist/es2015/colorpicker/{models/color-picker-view.d.ts → services/flatcolorpicker.service.d.ts} +6 -7
  95. package/dist/es2015/colorpicker/services/flatcolorpicker.service.js +38 -0
  96. package/dist/es2015/colorpicker/utils/color-parser.d.ts +8 -2
  97. package/dist/es2015/colorpicker/utils/color-parser.js +15 -5
  98. package/dist/es2015/colorpicker/utils/contrast-curve.d.ts +37 -0
  99. package/dist/es2015/colorpicker/utils/contrast-curve.js +85 -0
  100. package/dist/es2015/colorpicker/utils.d.ts +1 -1
  101. package/dist/es2015/colorpicker/utils.js +1 -1
  102. package/dist/es2015/colorpicker.module.js +9 -1
  103. package/dist/es2015/index.d.ts +5 -0
  104. package/dist/es2015/index.js +5 -0
  105. package/dist/es2015/index.metadata.json +1 -1
  106. package/dist/es2015/main.d.ts +4 -1
  107. package/dist/es2015/main.js +4 -1
  108. package/dist/es2015/package-metadata.js +1 -1
  109. package/dist/fesm2015/index.js +2207 -1043
  110. package/dist/fesm5/index.js +2010 -907
  111. package/dist/npm/colorpicker/color-contrast-svg.component.js +97 -0
  112. package/dist/npm/colorpicker/color-gradient.component.js +109 -81
  113. package/dist/npm/colorpicker/color-input.component.js +38 -17
  114. package/dist/npm/colorpicker/color-palette.component.js +29 -19
  115. package/dist/npm/colorpicker/colorpicker.component.js +177 -83
  116. package/dist/npm/colorpicker/constants.js +12 -0
  117. package/dist/npm/colorpicker/contrast-validation.component.js +8 -6
  118. package/dist/npm/colorpicker/contrast.component.js +6 -8
  119. package/dist/npm/colorpicker/{models → events}/active-color-click-event.js +0 -0
  120. package/dist/npm/colorpicker/events/cancel-event.js +21 -0
  121. package/dist/npm/colorpicker/events/close-event.js +19 -0
  122. package/dist/npm/colorpicker/{models → events}/kendo-drag-event.js +0 -0
  123. package/dist/npm/colorpicker/events/open-event.js +19 -0
  124. package/dist/npm/colorpicker/events.js +11 -0
  125. package/dist/npm/colorpicker/flatcolorpicker-actions.component.js +52 -0
  126. package/dist/npm/colorpicker/flatcolorpicker-header.component.js +96 -0
  127. package/dist/npm/colorpicker/flatcolorpicker.component.js +555 -0
  128. package/dist/npm/colorpicker/localization/colorgradient-localization.service.js +7 -7
  129. package/dist/npm/colorpicker/localization/colorpalette-localization.service.js +7 -7
  130. package/dist/npm/colorpicker/localization/custom-messages.component.js +1 -1
  131. package/dist/npm/colorpicker/localization/flatcolorpicker-localization.service.js +36 -0
  132. package/dist/npm/colorpicker/localization/localized-colorpicker-messages.directive.js +1 -1
  133. package/dist/npm/colorpicker/localization/messages.js +36 -0
  134. package/dist/npm/colorpicker/models/{color-picker-view.js → actions-layout.js} +0 -0
  135. package/dist/npm/colorpicker/models/colorpicker-view.js +6 -0
  136. package/dist/npm/colorpicker/{utils → models}/palette-presets.js +0 -0
  137. package/dist/npm/colorpicker/models.js +1 -2
  138. package/dist/npm/colorpicker/services/flatcolorpicker.service.js +43 -0
  139. package/dist/npm/colorpicker/utils/color-parser.js +18 -5
  140. package/dist/npm/colorpicker/utils/contrast-curve.js +93 -0
  141. package/dist/npm/colorpicker/utils.js +1 -1
  142. package/dist/npm/colorpicker.module.js +9 -1
  143. package/dist/npm/index.js +10 -0
  144. package/dist/npm/main.js +7 -2
  145. package/dist/npm/package-metadata.js +1 -1
  146. package/dist/systemjs/kendo-angular-inputs.js +1 -1
  147. package/package.json +3 -2
  148. package/dist/es/colorpicker/models/preventable-event.js +0 -29
  149. package/dist/es2015/colorpicker/models/preventable-event.d.ts +0 -21
  150. package/dist/es2015/colorpicker/models/preventable-event.js +0 -27
  151. package/dist/npm/colorpicker/models/preventable-event.js +0 -31
@@ -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/common","@angular/core","@progress/kendo-angular-common","@progress/kendo-angular-popup","@progress/kendo-angular-l10n","@angular/forms","rxjs/operators","@progress/kendo-common","@progress/kendo-licensing","rxjs","@progress/kendo-angular-intl","@progress/kendo-drawing"],function(a){var r,s,l,d,c,u,p,h,f,g,m,v,_;function t(e){return e.__useDefault?e.default:e}return{setters:[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){f=t(e)},function(e){g=t(e)},function(e){m=t(e)},function(e){v=t(e)},function(e){_=t(e)}],execute:function(){function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,o;n=[function(e,t){e.exports=r},function(e,t){e.exports=l},function(e,t){e.exports=u},function(e,t){e.exports=d},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isPresent=function(e){return null!=e},i.areSame=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},i.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},i.fitIntoBounds=function(e,t,n){return!i.isPresent(e)||isNaN(e)||e<=t?t:n<=e?n:e}},function(e,t){e.exports=p},function(e,t){e.exports=s},function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=t(4),d=t(26),n=t(1);l.calculateFixedTrackSize=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},l.calculateTrackSize=function(e,t,n){t=e-((n=void 0===n?!0:n)?2*parseFloat(t):0);return Math.floor(t)},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");e=Math.abs(d.subtract(t,e)),n=Math.floor(d.divide(e,n));return d.add(n,1)},l.calculateValueFromTick=function(e,t){var n=t.max,i=t.min,o=t.smallStep,a=t.reverse,t=t.vertical,o=d.add(i,d.multiply(e,o));return t||a?Math.abs(d.subtract(o,n)):o},l.calculateHandlePosition=function(e){var t=e.handleWidth,n=e.trackWidth,i=e.min,o=e.max,a=e.reverse,e=e.value,t=Math.floor(t/2),o=n/Math.abs(o-i),i=r.isPresent(e)?o*(e-i):i;return a&&(i=n-i),Math.floor(i-t)},l.decreaseValueToStep=function(e,t,n){var i=t.max,o=t.min,a=t.smallStep,t=t.largeStep,t=(n=void 0===n?!1:n)&&t?d.multiply(a,t):a,a=d.subtract(e,o),e=d.remainder(a,t),e=0===e?d.subtract(a,t):d.subtract(a,e);return l.limitValue(d.add(e,o),o,i)},l.increaseValueToStep=function(e,t,n){var i=t.max,o=t.min,a=t.smallStep,t=t.largeStep,t=(n=void 0===n?!1:n)&&t?d.multiply(a,t):a,a=d.subtract(e,o),e=d.remainder(a,t),t=d.add(d.subtract(a,e),t);return l.limitValue(d.add(t,o),o,i)},l.isStartHandle=function(e){return-1<e.id.indexOf("k-start-handle")},l.snapValue=function(e,t){var n=t.smallStep,i=t.min,o=t.max,o=l.limitValue(e,i,o);if(e!==o)return o;o=l.decreaseValueToStep(e,t),t=l.increaseValueToStep(e,t);return(e-i)%n==0?e:t-e<=(t-o)/2?t:o},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 r.areSame(e[0],t[0])&&r.areSame(e[1],t[1])},l.elementOffset=function(e){var t=e.getBoundingClientRect(),e=document.documentElement;return{left:t.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:t.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}},l.limitValue=function(e,t,n){return Math.max(Math.min(e,n),t)},l.eventValue=function(e,t,n){var i=n.min,o=n.max,a=n.vertical,r=n.rtl,s=l.elementOffset(t),t=(a?e.pageY-s.top:e.pageX-s.left)*((o-i)/(a?t.clientHeight:t.clientWidth)),i=r||a?o-t:i+t,t=d.fractionLength(n.smallStep),i=d.toFixedPrecision(i,t+1);return l.snapValue(i,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=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];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=m},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:1637576485,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,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoSliderLabelTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.LabelTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(37),t),i.__exportStar(n(38),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),o=0,n=(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}),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"align",void 0),i.__decorate([n.HostBinding("class.k-form-hint"),i.__metadata("design:type",Boolean)],a.prototype,"hostClass",void 0),i.__decorate([n.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],a.prototype,"startClass",null),i.__decorate([n.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],a.prototype,"endClass",null),i.__decorate([n.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],a.prototype,"idAttribute",null),i.__decorate([n.Component({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],a));function a(){this.align="start",this.id="kendo-hint-"+o++,this.hostClass=!0}t.HintComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),o=0,n=(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}),i.__decorate([n.HostBinding("class.k-form-error"),i.__metadata("design:type",Boolean)],a.prototype,"hostClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"align",void 0),i.__decorate([n.HostBinding("attr.role"),i.__metadata("design:type",String)],a.prototype,"roleAttribute",void 0),i.__decorate([n.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],a.prototype,"startClass",null),i.__decorate([n.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],a.prototype,"endClass",null),i.__decorate([n.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],a.prototype,"idAttribute",null),i.__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-"+o++,this.roleAttribute="alert"}t.ErrorComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),r=n(1),a=n(5),s=n(14),l=n(4),d=n(3),c=n(8),u=n(27),p=n(2),h=n(9),f=n(85),g=n(36),m=n(12),v=n(35),_=0,p=(i=y,Object.defineProperty(y.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"value",{get:function(){return this._value},set:function(e){this._value=s.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(y.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(y.prototype,"isFocused",{get:function(){return!(!d.isDocumentAvailable()||!l.isPresent(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"alphaSliderValue",{get:function(){if(l.isPresent(this.hsva)&&l.isPresent(this.hsva.a))return 100*this.hsva.a},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"contrastToolVisible",{get:function(){return"string"==typeof this.contrastTool&&""!==this.contrastTool},enumerable:!0,configurable:!0}),y.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},y.prototype.ngOnChanges=function(e){d.isChanged("value",e)&&!this.isFocused&&this.updateUI(),d.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},y.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},y.prototype.focus=function(){this.disabled||this.host.nativeElement.focus()},y.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},y.prototype.handleDragPress=function(e){this.disabled||this.readonly||!l.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},y.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},y.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(s.getColorFromHSV(this.hsva)))},y.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;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,o=0;switch(e.key){case"ArrowRight":i=v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowLeft":i=-v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowUp":o=-v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowDown":o=v.DRAGHANDLE_MOVE_SPEED}var a=parseInt(n.style.top,10)+o,r=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",a+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run(function(){return t.moveDragHandle(r,a)})}},y.prototype.changePosition=function(e){var t,n,i=this;this.disabled||this.readonly||(this.gradientDragHandle.nativeElement.focus(),t=e.clientX-this.gradientRect.left,n=e.clientY-this.gradientRect.top,this.ngZone.run(function(){return i.moveDragHandle(t,n)}))},y.prototype.handleHueSliderChange=function(e){this.handleValueChange(s.getColorFromHSV(this.hsva)),this.backgroundColor=s.getColorFromHue(e),this.setAlphaSliderBackground(this.backgroundColor)},y.prototype.handleAlphaSliderChange=function(e){this.hsva.a=e/100,this.handleValueChange(s.getColorFromHSV(this.hsva))},y.prototype.handleInputsValueChange=function(e){e=s.parseColor(e,this.format);this.value!==e&&(this.handleValueChange(e),this.updateUI())},y.prototype.writeValue=function(e){this.value=e,l.isPresent(this.gradientWrapper)&&this.updateUI()},y.prototype.registerOnChange=function(e){this.notifyNgChanged=e},y.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},y.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(y.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=s.parseColor(this.value,this.format);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),y.prototype.isEmpty=function(){return!1},y.prototype.moveDragHandle=function(e,t){t=l.fitIntoBounds(t,0,this.gradientRect.height),e=l.fitIntoBounds(e,0,this.gradientRect.width);this.setDragHandleElementPosition(t,e),this.hsva.s=e/this.gradientRect.width,this.hsva.v=1-t/this.gradientRect.height,this.updateValues.next(s.getColorFromHSV(this.hsva)),this.setAlphaSliderBackground(s.getColorFromHSV(o.__assign({},this.hsva,{a:1})))},y.prototype.updateUI=function(){var e,t;d.isDocumentAvailable()&&(this.hsva=this.value?s.getHSV(this.value):{h:0,s:0,v:1,a:1},e=(1-this.hsva.v)*this.gradientRect.height,t=this.hsva.s*this.gradientRect.width,this.setDragHandleElementPosition(e,t),this.backgroundColor=s.getColorFromHue(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel())},y.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},y.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},y.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+")"))},y.prototype.setHostElementAriaLabel=function(){var e=s.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},y.prototype.addEventListeners=function(){var a=this;this.ngZone.runOutsideAngular(function(){var e=a.renderer.listen(a.host.nativeElement,"focusout",function(e){!c.containsFocus(a.host.nativeElement,e.relatedTarget)&&c.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))})}),i=a.renderer.listen(a.gradientDragHandle.nativeElement,"focusin",function(){a.renderer.addClass(a.gradientDragHandle.nativeElement,"k-state-focus")}),o=a.renderer.listen(a.gradientDragHandle.nativeElement,"focusout",function(){a.renderer.removeClass(a.gradientDragHandle.nativeElement,"k-state-focus")});a.listeners.push(e,t,n,i,o)})},y.prototype.subscribeChanges=function(){var t=this;this.changeRequestsSubscription=this.updateValues.pipe(m.throttleTime(this.delay)).subscribe(function(e){t.handleValueChange(e)})},y.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},o.__decorate([r.HostBinding("class.k-colorgradient"),o.__metadata("design:type",Boolean)],y.prototype,"hostClasses",void 0),o.__decorate([r.HostBinding("attr.aria-readonly"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],y.prototype,"readonlyAttribute",null),o.__decorate([r.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],y.prototype,"disabledClass",null),o.__decorate([r.HostBinding("attr.tabindex"),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[])],y.prototype,"hostTabindex",null),o.__decorate([r.HostBinding("attr.id"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],y.prototype,"gradientId",null),o.__decorate([r.Input(),o.__metadata("design:type",String)],y.prototype,"id",void 0),o.__decorate([r.HostBinding("attr.dir"),o.__metadata("design:type",String)],y.prototype,"direction",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],y.prototype,"opacity",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],y.prototype,"disabled",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],y.prototype,"readonly",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],y.prototype,"clearButton",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number)],y.prototype,"delay",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],y.prototype,"value",null),o.__decorate([r.Input(),o.__metadata("design:type",String)],y.prototype,"contrastTool",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],y.prototype,"tabindex",null),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],y.prototype,"valueChange",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],y.prototype,"format",void 0),o.__decorate([r.ViewChild("gradientDragHandle",{read:r.ElementRef,static:!1}),o.__metadata("design:type",r.ElementRef)],y.prototype,"gradientDragHandle",void 0),o.__decorate([r.ViewChild("inputs",{static:!1}),o.__metadata("design:type",g.ColorInputComponent)],y.prototype,"inputs",void 0),o.__decorate([r.ViewChild("alphaSlider",{static:!1}),o.__metadata("design:type",u.SliderComponent)],y.prototype,"alphaSlider",void 0),o.__decorate([r.ViewChild("gradientWrapper",{static:!1}),o.__metadata("design:type",r.ElementRef)],y.prototype,"gradientWrapper",void 0),i=o.__decorate([r.Component({selector:"kendo-colorgradient",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return i})},{provide:d.KendoInput,useExisting:r.forwardRef(function(){return i})},f.ColorGradientLocalizationService,{provide:p.LocalizationService,useExisting:f.ColorGradientLocalizationService},{provide:p.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-hexInputPlaceholder="kendo.colorgradient.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorgradient.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorgradient.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorgradient.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorgradient.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha"\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 </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 </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-flat 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.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity && format === \'rgba\'"\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 left: 50%;\n transform: translateX(-50%);\n }\n .k-align-self-end {\n height: 140px;\n }\n "]}),o.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2,r.ChangeDetectorRef,p.LocalizationService])],y));function y(e,t,n,i,o){var a=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=o,this.hostClasses=!0,this.id="k-colorgradient-"+_++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.valueChange=new r.EventEmitter,this.backgroundColor=v.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva={},this.format=v.DEFAULT_OUTPUT_FORMAT,this._tabindex=0,this.listeners=[],this.updateValues=new h.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=o.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}t.ColorGradientComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),n=n(2),n=(i=n.LocalizationService,o.__extends(r,i),o.__decorate([o.__param(0,a.Inject(n.L10N_PREFIX)),o.__param(1,a.Optional()),o.__param(2,a.Optional()),o.__param(2,a.Inject(n.RTL)),o.__metadata("design:paramtypes",[String,n.MessageService,Boolean])],r));function r(e,t,n){return i.call(this,e,t,n)||this}t.ColorPickerLocalizationService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(46),n=n(24);t.SHARED_DIRECTIVES=[a.InputSeparatorComponent,n.TextAreaDirective];o=i.__decorate([o.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES]})],r);function r(){}t.SharedModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoTextBoxPrefixTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.TextBoxPrefixTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoTextBoxSuffixTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.TextBoxSuffixTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(70),r=n(6),s=n(53),l=n(68),n=n(3),n=i.__decorate([o.NgModule({declarations:[s.LocalizedNumericTextBoxMessagesDirective,a.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],exports:[a.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],imports:[r.CommonModule,n.EventsModule]})],d);function d(){}t.NumericTextBoxModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(6),r=n(27),s=n(63),l=n(61),d=n(93),n=n(13),s=i.__decorate([o.NgModule({declarations:[r.SliderComponent,d.SliderCustomMessagesComponent,l.LocalizedSliderMessagesDirective],exports:[r.SliderComponent,d.SliderCustomMessagesComponent,n.LabelTemplateDirective,l.LocalizedSliderMessagesDirective],imports:[a.CommonModule,s.SlidersCommonModule]})],c);function c(){}t.SliderModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),r=n(1),a=n(5),s=n(3),l=n(4),d=n(2),c=n(9),u=n(12),o=(i=p,Object.defineProperty(p.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),p.prototype.writeValue=function(e){this.elementValue=e,this.resize()},p.prototype.registerOnChange=function(e){this.ngChange=e},p.prototype.registerOnTouched=function(e){this.ngTouched=e},p.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},p.prototype.ngOnInit=function(){var t=this,e=this.element.nativeElement;this.zone.runOutsideAngular(function(){t.listeners=[t.renderer.listen(e,"focus",t.handleFocus.bind(t)),t.renderer.listen(e,"blur",t.handleBlur.bind(t)),t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})],s.isDocumentAvailable()&&t.autoSize&&(t.resizeSubscription=c.fromEvent(window,"resize").pipe(u.debounceTime(50)).subscribe(function(){return t.resize()})),t.inputSubscription=c.fromEvent(e,"input").subscribe(t.handleInput.bind(t))}),this.control=this.injector.get(a.NgControl,null)},p.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.resize()},p.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(p.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),p.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},p.prototype.resize=function(){var e,t;this.autoSize&&(e=this.element.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px",(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},p.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||s.hasObservers(this.onValueChange)||s.hasObservers(this.valueChange))&&this.zone.run(function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()}),this.resize()},p.prototype.handleFocus=function(){var e=this;s.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()})},p.prototype.handleBlur=function(){var e=this;(s.hasObservers(this.onBlur)||l.requiresZoneOnBlur(this.control))&&this.zone.run(function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()})},o.__decorate([r.HostBinding("class.k-textarea"),o.__metadata("design:type",Boolean)],p.prototype,"elementClass",void 0),o.__decorate([r.HostBinding("class.k-autofill"),o.__metadata("design:type",Boolean)],p.prototype,"autofillClass",void 0),o.__decorate([r.HostBinding("attr.dir"),o.__metadata("design:type",String)],p.prototype,"direction",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],p.prototype,"valueChange",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],p.prototype,"autoSize",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],p.prototype,"value",void 0),i=o.__decorate([r.Directive({providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return i}),multi:!0},{provide:s.KendoInput,useExisting:r.forwardRef(function(){return i})}],selector:"textarea[kendoTextArea]"}),o.__param(5,r.Optional()),o.__param(5,r.Inject(d.RTL)),o.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],p));function p(e,t,n,i,o,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=o,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new r.EventEmitter,this.autoSize=!1,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}t.TextAreaDirective=o},function(e,t){e.exports=f},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.limitPrecision=function(e){return Math.min(e,20)},i.fractionLength=function(e){return(String(e).split(".")[1]||"").length};function o(e,t){return Math.max(i.fractionLength(e),i.fractionLength(t))}i.toFixedPrecision=function(e,t){t=i.limitPrecision(t);return parseFloat(e.toFixed(t))},i.add=function(e,t){var n=o(e,t);return i.toFixedPrecision(e+t,n)},i.subtract=function(e,t){return i.add(e,-t)},i.multiply=function(e,t){var n=i.fractionLength(e)+i.fractionLength(t);return i.toFixedPrecision(e*t,n)},i.divide=function(e,t){if(0===t)return NaN;var n=o(e,t),n=Math.pow(10,n);return n*e/(n*t)},i.remainder=function(e,t){return Math.abs(i.subtract(e,i.multiply(t,Math.floor(i.divide(e,t)))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i,o=n(0),a=n(1),r=n(5),l=n(9),d=n(12),c=n(7),u=n(105),p=n(2),h=n(4),f=n(7),g=n(8),m=n(3),a=(s=n(75).SliderBase,o.__extends(v,s),i=v,Object.defineProperty(v.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"currentValue",{get:function(){return h.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),v.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},v.prototype.blur=function(){this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},v.prototype.ngOnChanges=function(e){var t=this;m.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t.sizeComponent(!1)})},v.prototype.ngAfterViewInit=function(){var e=this;m.isDocumentAvailable()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,function(){return e.increaseValue()}),this.setValueChangeInterval(this.decreaseButton.nativeElement,function(){return e.decreaseValue()})),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent(!1)}),this.attachElementEventHandlers())},v.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(v.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),v.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},v.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(f.eventValue(e,this.track.nativeElement,this.getProps()))},v.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},v.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},v.prototype.registerOnChange=function(e){this.ngChange=e},v.prototype.registerOnTouched=function(e){this.ngTouched=e},v.prototype.changeValue=function(e){var t=this;h.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()})},v.prototype.sizeComponent=function(e){var t,n,i,o,a;m.isDocumentAvailable()&&(t=this.wrapper.nativeElement,a=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandle.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null,e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([a,n,i,o,this.hostElement.nativeElement]),o=this.getProps(),(a=new u.SliderModel(o,t,a,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(i),a.positionSelection(i,n),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(v.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(v.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}),v.prototype.setValueChangeInterval=function(i,o){var a=this;this.ngZone.runOutsideAngular(function(){var e=l.fromEvent(i,"mousedown"),t=l.fromEvent(i,"mouseup"),n=l.fromEvent(i,"mouseout"),e=e.pipe(d.filter(function(e){return 0===e.button&&!a.isDisabled}),d.concatMap(function(){return l.interval(150).pipe(d.startWith(-1),d.takeUntil(l.merge(t,n)))})).subscribe(function(){a.isFocused||g.invokeElementMethod(a.draghandle,"focus"),o()});a.subscriptions.add(e)})},v.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:c.trimValue(this.max,this.min,this.value),vertical:this.vertical}},v.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!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):i||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){i=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){i=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===m.Keys.Tab}))})},o.__decorate([a.Input(),o.__metadata("design:type",String)],v.prototype,"focusableId",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],v.prototype,"dragHandleTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],v.prototype,"incrementTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Boolean)],v.prototype,"animate",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],v.prototype,"decrementTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Boolean)],v.prototype,"showButtons",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Number)],v.prototype,"value",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],v.prototype,"tabIndex",null),o.__decorate([a.ViewChild("draghandle",{static:!0}),o.__metadata("design:type",a.ElementRef)],v.prototype,"draghandle",void 0),o.__decorate([a.ViewChild("decreaseButton",{static:!1}),o.__metadata("design:type",a.ElementRef)],v.prototype,"decreaseButton",void 0),o.__decorate([a.ViewChild("increaseButton",{static:!1}),o.__metadata("design:type",a.ElementRef)],v.prototype,"increaseButton",void 0),i=o.__decorate([a.Component({exportAs:"kendoSlider",providers:[p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return i})},{provide:m.KendoInput,useExisting:a.forwardRef(function(){return i})}],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 <span\n #decreaseButton\n *ngIf="showButtons"\n class="k-button k-button-decrease"\n [title]="decrementMessage"\n role="presentation"\n >\n <span class="k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical"\n >\n </span>\n </span>\n <span\n *ngIf="showButtons"\n #increaseButton\n class="k-button k-button-increase"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.aria-label]="currentValue"\n >\n <span class="k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical"\n >\n </span>\n </span>\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 <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),o.__metadata("design:paramtypes",[p.LocalizationService,a.Injector,a.Renderer2,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],v));function v(e,t,n,i,o,a){var r=s.call(this,e,t,n,i,o,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=i,r.changeDetector=o,r.hostElement=a,r.focusableId="k-"+m.guid(),r.animate=!0,r.showButtons=!0,r.value=r.min,r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t=e.target;r.isDisabled||f.isButton(t)||f.isButton(t.parentNode)||(e=f.eventValue(e,r.track.nativeElement,r.getProps()),r.changeValue(e)),g.invokeElementMethod(r.draghandle,"focus")},r.onKeyDown=function(e){var t=r.getProps(),n=t.max,i=t.min,o=r.keyBinding[e.keyCode];!r.isDisabled&&o&&(t=o(t),r.changeValue(c.trimValue(n,i,t)),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.decreaseValue=function(){r.changeValue(f.decreaseValueToStep(r.value,r.getProps()))},r.increaseValue=function(){r.changeValue(f.increaseValueToStep(r.value,r.getProps()))},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(m.hasObservers(r.onBlur)||h.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}t.SliderComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(9),s=n(3),l=n(2),d=n(11),c=n(10),u=n(16),n=n(15),l=(Object.defineProperty(p.prototype,"errorClass",{get:function(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"disabledClass",{get:function(){return!!this.control&&!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),p.prototype.ngAfterViewInit=function(){this.setDescription()},p.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},p.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},p.prototype.disabledControl=function(){return this.control.disabled},p.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every(function(e){return e.nativeElement.hasAttribute("disabled")})},p.prototype.validateFormControl=function(e){if(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.")},p.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every(function(e){return e.name===n&&t.isRadioControl(e)})},p.prototype.isRadioControl=function(e){return e.valueAccessor instanceof a.RadioControlValueAccessor},p.prototype.updateDescription=function(){var n=this,e=this.findControlElements();e&&e.forEach(function(e){var t;(0<n.errorChildren.length||0<n.hintChildren.length)&&(t=n.generateDescriptionIds(e),n.renderer.setAttribute(e,"aria-describedby",t))})},p.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&s.isDocumentAvailable()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map(function(e){return e.nativeElement})},p.prototype.generateDescriptionIds=function(e){var t=new Set;return e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach(function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}),this.hintChildren.forEach(function(e){t.add(e.id)}),this.errorChildren.forEach(function(e){t.add(e.id)}),Array.from(t).join(" ")},p.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,e=e.pristine;return t||n&&e},p.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},p.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe(function(){return e.updateDescription()})),this.subscriptions.add(this.hintChildren.changes.subscribe(function(){return e.updateDescription()}))},i.__decorate([o.HostBinding("class.k-form-field"),i.__metadata("design:type",Boolean)],p.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],p.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-form-field-error"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],p.prototype,"errorClass",null),i.__decorate([o.HostBinding("class.k-form-field-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],p.prototype,"disabledClass",null),i.__decorate([o.ContentChildren(a.NgControl,{descendants:!0}),i.__metadata("design:type",o.QueryList),i.__metadata("design:paramtypes",[o.QueryList])],p.prototype,"formControls",null),i.__decorate([o.ContentChildren(a.NgControl,{read:o.ElementRef,descendants:!0}),i.__metadata("design:type",o.QueryList)],p.prototype,"controlElementRefs",void 0),i.__decorate([o.ContentChild(s.KendoInput,{static:!0}),i.__metadata("design:type",Object)],p.prototype,"kendoInput",void 0),i.__decorate([o.ContentChildren(u.ErrorComponent,{descendants:!0}),i.__metadata("design:type",o.QueryList)],p.prototype,"errorChildren",void 0),i.__decorate([o.ContentChildren(n.HintComponent,{descendants:!0}),i.__metadata("design:type",o.QueryList)],p.prototype,"hintChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],p.prototype,"showHints",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],p.prototype,"orientation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],p.prototype,"showErrors",void 0),i.__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:[l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.formfield"}]}),i.__metadata("design:paramtypes",[o.Renderer2,l.LocalizationService,o.ElementRef])],p));function p(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new r.Subscription,this.rtl=!1,d.validatePackage(c.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;i.rtl=e,i.direction=i.rtl?"rtl":"ltr"}))}t.FormFieldComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(6),r=n(28),s=n(15),n=n(16),a=i.__decorate([o.NgModule({declarations:[s.HintComponent,n.ErrorComponent,r.FormFieldComponent],exports:[s.HintComponent,n.ErrorComponent,r.FormFieldComponent],imports:[a.CommonModule]})],l);function l(){}t.FormFieldModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(i.__decorate([n.HostBinding("class.k-radio"),i.__metadata("design:type",Boolean)],o.prototype,"kendoClass",void 0),i.__decorate([n.Directive({selector:"input[kendoRadioButton]"})],o));function o(){this.kendoClass=!0}t.RadioButtonDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(i.__decorate([n.HostBinding("class.k-checkbox"),i.__metadata("design:type",Boolean)],o.prototype,"kendoClass",void 0),i.__decorate([n.Directive({selector:"input[kendoCheckBox]"})],o));function o(){this.kendoClass=!0}t.CheckBoxDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(33),s=(i=n.ColorPickerMessages,a.__extends(l,i),o=l,o=a.__decorate([r.Directive({providers:[{provide:n.ColorPickerMessages,useExisting:r.forwardRef(function(){return o})}],selector:"[kendoColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedColorPickerMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),o=(i=n(2).ComponentMessages,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"colorPaletteNoColor",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"colorGradientNoColor",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"colorGradientHandle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"clearButton",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"hueSliderHandle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"opacitySliderHandle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"hexInputPlaceholder",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"redInputPlaceholder",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"greenInputPlaceholder",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"blueInputPlaceholder",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"alphaInputPlaceholder",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"passContrast",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"failContrast",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"contrastRatio",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.ColorPickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),r=n(1),a=n(5),s=n(14),l=n(4),d=n(84),c=n(3),u=n(2),n=n(83),p=0,u=(i=h,Object.defineProperty(h.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"value",{get:function(){return this._value},set:function(e){this._value=s.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=1<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;"string"==typeof(e=!l.isPresent(e)?"office":e)&&l.isPresent(s.PALETTEPRESETS[e])&&(this.columns=this.columns||s.PALETTEPRESETS[e].columns,e=s.PALETTEPRESETS[e].colors);e="string"==typeof e?e.split(","):e;this._palette=e.map(function(e){return s.parseColor(e,t.format,!1)})},enumerable:!0,configurable:!0}),Object.defineProperty(h.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(h.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var e;0===this.colorRows.length&&(e="name"!==this.format?"office":"accessible",this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value))},h.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},h.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},h.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())},h.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case c.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case c.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case c.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case c.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case c.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},h.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},h.prototype.handleCellSelection=function(e,t){this.readonly||(this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0,e=s.parseColor(e,this.format,!1),this.cellSelection.emit(e),this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel()),this.selection!==e&&(this.selection=e,this.selectionChange.emit(e)),t&&(this.activeCellId=this.selectedCell.row+"-"+this.selectedCell.col))},h.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},h.prototype.registerOnChange=function(e){this.notifyNgChanged=e},h.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},h.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},h.prototype.isEmpty=function(){return!1},h.prototype.reset=function(){this.focusedCell=null,l.isPresent(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},h.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},h.prototype.setRows=function(){l.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},h.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},h.prototype.setHostElementAriaLabel=function(){var e=s.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},h.prototype.handleEnter=function(){var e;l.isPresent(this.focusedCell)&&(e=this.service.getColorAt(this.focusedCell),this.handleCellSelection(e,this.focusedCell))},o.__decorate([r.HostBinding("attr.dir"),o.__metadata("design:type",String)],h.prototype,"direction",void 0),o.__decorate([r.HostBinding("attr.id"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],h.prototype,"paletteId",null),o.__decorate([r.Input(),o.__metadata("design:type",String)],h.prototype,"id",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],h.prototype,"format",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],h.prototype,"value",null),o.__decorate([r.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],h.prototype,"columns",null),o.__decorate([r.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],h.prototype,"palette",null),o.__decorate([r.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],h.prototype,"tabindex",null),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],h.prototype,"disabled",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],h.prototype,"readonly",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],h.prototype,"tileSize",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],h.prototype,"selectionChange",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],h.prototype,"valueChange",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],h.prototype,"cellSelection",void 0),o.__decorate([r.HostBinding("attr.tabindex"),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[])],h.prototype,"hostTabindex",null),o.__decorate([r.HostBinding("class.k-colorpalette"),o.__metadata("design:type",Boolean)],h.prototype,"hostClasses",void 0),o.__decorate([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],h.prototype,"disabledClass",null),o.__decorate([r.HostBinding("attr.aria-readonly"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],h.prototype,"readonlyAttribute",null),o.__decorate([r.HostListener("keydown",["$event"]),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],h.prototype,"handleKeydown",null),o.__decorate([r.HostListener("blur"),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],h.prototype,"handleHostBlur",null),i=o.__decorate([r.Component({selector:"kendo-colorpalette",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return i})},{provide:c.KendoInput,useExisting:r.forwardRef(function(){return i})},d.ColorPaletteService,n.ColorPaletteLocalizationService,{provide:u.LocalizationService,useExisting:n.ColorPaletteLocalizationService},{provide:u.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]="rowIndex + \'-\' + colIndex"\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 '}),o.__metadata("design:paramtypes",[r.ElementRef,d.ColorPaletteService,r.ChangeDetectorRef,r.Renderer2,u.LocalizationService])],h));function h(e,t,n,i,o){var a=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=o,this.id="k-colorpalette-"+p++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.cellSelection=new r.EventEmitter,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.dynamicRTLSubscription=o.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}t.ColorPaletteComponent=u},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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(14),r=n(4),s=n(3),l=n(2),d=n(9),l=(Object.defineProperty(c.prototype,"isFocused",{get:function(){if(!s.isDocumentAvailable()||!r.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rgbaInputValid",{get:function(){var t=this;return Object.keys(this.rgba).every(function(e){return r.isPresent(t.rgba[e])})},enumerable:!0,configurable:!0}),c.prototype.ngAfterViewInit=function(){this.initDomEvents()},c.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},c.prototype.ngOnChanges=function(e){r.isPresent(e.value)&&!this.isFocused&&(this.hex=a.parseColor(this.value,"hex"),this.rgba=a.getRGBA(this.value),this.rgba.a=a.parseColor(this.value,"rgba")?this.rgba.a:1)},c.prototype.handleRgbaValueChange=function(){var e=a.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=a.getRGBA(this.value),this.hex=a.parseColor(e,"hex"),this.valueChange.emit(e))},c.prototype.handleHexValueChange=function(e){this.hex=e;e=a.parseColor(e,"rgba");r.isPresent(e)&&e!==this.value&&(this.value=e,this.rgba=a.getRGBA(e),this.valueChange.emit(e))},c.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=a.getRGBA(this.value))},c.prototype.handleHexInputBlur=function(){this.hex=a.parseColor(this.value,"hex")},c.prototype.textFor=function(e){return this.localization.get(e)},c.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},c.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",function(){return e.toggleFormatView()}))},i.__decorate([o.Input(),i.__metadata("design:type",String)],c.prototype,"formatView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],c.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"opacity",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"readonly",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],c.prototype,"valueChange",void 0),i.__decorate([o.HostBinding("class.k-colorgradient-inputs"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],c.prototype,"colorInputClass",void 0),i.__decorate([o.ViewChild("opacityInput",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],c.prototype,"opacityInput",void 0),i.__decorate([o.ViewChild("toggleFormatButton",{static:!1}),i.__metadata("design:type",o.ElementRef)],c.prototype,"toggleFormatButton",void 0),i.__decorate([o.Component({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button class="k-colorgradient-toggle-mode k-button k-icon-button k-flat" #toggleFormatButton>\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <input *ngIf="formatView === \'hex\'"\n #hexInput\n class="k-textbox k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n [placeholder]="textFor(\'hexInputPlaceholder\')"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\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 [placeholder]="textFor(\'redInputPlaceholder\')"\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 [placeholder]="textFor(\'greenInputPlaceholder\')"\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 [placeholder]="textFor(\'blueInputPlaceholder\')"\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 [placeholder]="textFor(\'alphaInputPlaceholder\')"\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 '}),i.__metadata("design:paramtypes",[l.LocalizationService,o.ElementRef,o.Renderer2])],c));function c(e,t,n){this.localization=e,this.host=t,this.renderer=n,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new o.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new d.Subscription}t.ColorInputComponent=l},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,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(86),s=t(4);function i(t,e){if(t=t.toLowerCase().trim(),s.isPresent(o.namedColors[t]))return t;o.parseColor(t,e)&&(t=o.parseColor(t,e).toHex());var n=Object.keys(o.namedColors).find(function(e){return o.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 shoud be set to 'hex' or 'rgba' ");return n}n.parseColor=function(e,t,n){if(void 0===n&&(n=!0),-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(s.isPresent(e)){if("name"===t)return i(e,n);n=o.parseColor(e.trim(),n);return s.isPresent(n)?"hex"===t?n.toCss():n.toCssRgba():void 0}},n.getHSV=function(e,t){t=o.parseColor(e,t=void 0===t?!0:t);return s.isPresent(t)?t.toHSV():{}},n.getRGBA=function(e,t){t=o.parseColor(e,t=void 0===t?!0:t);return s.isPresent(t)?t.toBytes():{}},n.getColorFromHSV=function(e){var t=s.fitIntoBounds(e.h,0,359.9),n=s.fitIntoBounds(e.s,0,1),i=s.fitIntoBounds(e.v,0,1),e=s.fitIntoBounds(e.a,0,1);return o.Color.fromHSV(t,n,i,e).toCssRgba()},n.getColorFromHue=function(e){return n.getColorFromHSV({h:e,s:1,v:1,a:1})},n.getColorFromRGBA=function(e){var t=s.fitIntoBounds(e.r,0,255),n=s.fitIntoBounds(e.g,0,255),i=s.fitIntoBounds(e.b,0,255),e=s.fitIntoBounds(e.a,0,1);return o.Color.fromBytes(t,n,i,e).toCssRgba()},n.nameFormat=i,n.getRGBFromRGBA=function(e,t){var n=s.fitIntoBounds(e.r,0,255),i=s.fitIntoBounds(e.g,0,255),o=s.fitIntoBounds(e.b,0,255),a=s.fitIntoBounds(e.a,0,1),r=s.fitIntoBounds(t.r,0,255),e=s.fitIntoBounds(t.g,0,255),t=s.fitIntoBounds(t.b,0,255);return{r:Math.round((1-a)*r+a*n),g:Math.round((1-a)*e+a*i),b:Math.round((1-a)*t+a*o)}},n.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]},n.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},n.getContrastFromTwoRGBAs=function(e,t){return n.getContrast(n.getLuminance(n.getRGBFromRGBA(e,t)),n.getLuminance(n.getRGBFromRGBA(t,{r:0,g:0,b:0,a:1})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(88),t),i.__exportStar(n(87),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(5),s=n(41),l=n(11),d=n(10),c=n(39),u=n(38),p=n(4),h=n(3),f=n(2),g=n(37),m=n(18),n=n(17),v=0,f=(i=_,Object.defineProperty(_.prototype,"value",{get:function(){return this._value},set:function(e){this._value=u.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isOpen",{get:function(){return p.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"iconStyles",{get:function(){return this.iconClass||(this.icon?"k-icon k-i-"+this.icon:void 0)},enumerable:!0,configurable:!0}),_.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&g.PALETTEPRESETS[t]?g.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},_.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=u.parseColor(this.value,this.format))},_.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},_.prototype.handleWrapperClick=function(){this.toggleWithEvents(!this.isOpen),this.focus()},_.prototype.handleActiveColorClick=function(){this.focus();var e=new c.ActiveColorClickEvent(this.value);this.activeColorClick.emit(e),e.isOpenPrevented()&&!this.isOpen||this.handleWrapperClick()},_.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},_.prototype.handleWrapperFocus=function(){p.isPresent(this.palette)&&this.palette.nativeElement.focus(),this.isFocused||(this.isFocused=!0,this.onFocus.emit())},_.prototype.blur=function(){this.wrapper.nativeElement.blur()},_.prototype.handleWrapperBlur=function(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())},_.prototype.reset=function(){p.isPresent(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},_.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=p.isPresent(e)?e:!this.isOpen)&&this.openPopup())},_.prototype.handleValueChange=function(e,t){var n=u.parseColor(e,this.format),e=n!==this.value;t&&(this.toggleWithEvents(!1),this.focus()),e&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n))},_.prototype.handlePopupBlur=function(e){var t=this.popupRef.popupElement.contains(e.relatedTarget),e=e.relatedTarget===this.wrapper.nativeElement;!this.isFocused||e||t||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},_.prototype.writeValue=function(e){this.value=e},_.prototype.registerOnChange=function(e){this.notifyNgChanged=e},_.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},_.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},_.prototype.handleWrapperKeyDown=function(e){e.keyCode!==h.Keys.ArrowDown&&e.keyCode!==h.Keys.Enter||(e.preventDefault(),this.toggleWithEvents(!0))},_.prototype.handlePopupKeyDown=function(e){if(e.keyCode===h.Keys.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),e.keyCode===h.Keys.Tab){var t=(this.colorGradient?this.colorGradient.gradientDragHandle:this.palette).nativeElement,n=this.palette?this.palette.nativeElement:this.colorGradient.inputs.opacityInput.nativeElement.childNodes[1].children[0];if(e.shiftKey){if(e.target===t)return e.preventDefault(),void n.focus()}else if(e.target===n)return e.preventDefault(),void t.focus()}},_.prototype.isEmpty=function(){return!1},_.prototype.toggleWithEvents=function(e){var t=this,n=this.isOpen===e;this.disabled||this.readonly||n||(n=new c.PreventableEvent,(e?this.open:this.close).emit(n),n.isDefaultPrevented()||this.toggle(e),e&&this.ngZone.runOutsideAngular(function(){setTimeout(function(){t.colorGradient&&t.colorGradient.gradientDragHandle.nativeElement.focus()})}))},_.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,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.wrapper.nativeElement.focus({preventScroll:!0})})},_.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null,this.palette=null)},o.__decorate([a.HostBinding("class.k-widget"),a.HostBinding("class.k-colorpicker"),o.__metadata("design:type",Boolean)],_.prototype,"hostClasses",void 0),o.__decorate([a.HostBinding("attr.dir"),o.__metadata("design:type",String)],_.prototype,"direction",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],_.prototype,"focusableId",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],_.prototype,"view",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Boolean)],_.prototype,"readonly",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],_.prototype,"format",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],_.prototype,"value",null),o.__decorate([a.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],_.prototype,"popupSettings",null),o.__decorate([a.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],_.prototype,"paletteSettings",null),o.__decorate([a.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],_.prototype,"gradientSettings",null),o.__decorate([a.Input(),o.__metadata("design:type",String)],_.prototype,"icon",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Object)],_.prototype,"iconClass",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],_.prototype,"tabindex",null),o.__decorate([a.Output(),o.__metadata("design:type",a.EventEmitter)],_.prototype,"valueChange",void 0),o.__decorate([a.Output(),o.__metadata("design:type",a.EventEmitter)],_.prototype,"open",void 0),o.__decorate([a.Output(),o.__metadata("design:type",a.EventEmitter)],_.prototype,"close",void 0),o.__decorate([a.Output("focus"),o.__metadata("design:type",a.EventEmitter)],_.prototype,"onFocus",void 0),o.__decorate([a.Output("blur"),o.__metadata("design:type",a.EventEmitter)],_.prototype,"onBlur",void 0),o.__decorate([a.Output(),o.__metadata("design:type",a.EventEmitter)],_.prototype,"activeColorClick",void 0),o.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),o.__metadata("design:type",a.ViewContainerRef)],_.prototype,"container",void 0),o.__decorate([a.ViewChild("wrapper",{static:!0}),o.__metadata("design:type",a.ElementRef)],_.prototype,"wrapper",void 0),o.__decorate([a.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",a.TemplateRef)],_.prototype,"popupTemplate",void 0),o.__decorate([a.ViewChild("palette",{read:a.ElementRef,static:!1}),o.__metadata("design:type",a.ElementRef)],_.prototype,"palette",void 0),o.__decorate([a.ViewChild("colorGradient",{static:!1}),o.__metadata("design:type",n.ColorGradientComponent)],_.prototype,"colorGradient",void 0),i=o.__decorate([a.Component({selector:"kendo-colorpicker",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return i})},{provide:h.KendoInput,useExisting:a.forwardRef(function(){return i})},m.ColorPickerLocalizationService,{provide:f.LocalizationService,useExisting:m.ColorPickerLocalizationService},{provide:f.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorGradient="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradient="kendo.colorpalette.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-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorpicker.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorpicker.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorpicker.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha">\n </ng-container>\n <span\n #wrapper\n [ngClass]="{\n \'k-picker-wrap\': true,\n \'k-state-disabled\': this.disabled,\n \'k-state-focused\': this.isFocused\n }"\n role="listbox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.aria-disabled]="disabled"\n [attr.aria-label]="value"\n [id]="focusableId"\n [attr.tabindex]="tabindex"\n (focus)="handleWrapperFocus()"\n (blur)="handleWrapperBlur()"\n (mousedown)="$event.preventDefault()"\n (keydown)="handleWrapperKeyDown($event)"\n >\n <span *ngIf="!iconStyles" class="k-selected-color" [style.background-color]="value" (click)="handleActiveColorClick()">\n <span class="k-icon k-i-line" *ngIf="!value"></span>\n </span>\n <span *ngIf="iconStyles" class="k-tool-icon" [ngClass]="iconStyles" (click)="handleActiveColorClick()">\n <span class="k-selected-color" [style.background-color]="value"></span>\n </span>\n <span class="k-select" (click)="handleWrapperClick()">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <kendo-colorgradient #colorGradient\n *ngIf="view === \'gradient\' || view === \'combo\'"\n [value]="value"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [clearButton]="gradientSettings.clearButton"\n [delay]="gradientSettings.delay"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event, false)"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette\n #palette\n *ngIf="view === \'palette\' || view === \'combo\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="value"\n (blur)="handlePopupBlur($event)"\n (cellSelection)="handleValueChange($event, true)"\n (mousedown)="$event.preventDefault()"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorpalette>\n </ng-template>\n <ng-container #container></ng-container>\n '}),o.__metadata("design:paramtypes",[s.PopupService,a.ChangeDetectorRef,f.LocalizationService,a.NgZone])],_));function _(e,t,n,i){var o=this;this.popupService=e,this.cdr=t,this.localizationService=n,this.ngZone=i,this.hostClasses=!0,this.focusableId="k-colorpicker-"+v++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.activeColorClick=new a.EventEmitter,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1,delay:0},this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},l.validatePackage(d.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;o.direction=e?"rtl":"ltr"})}t.ColorPickerComponent=f},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(6),r=n(41),s=n(3),l=n(23),d=n(22),c=n(40),u=n(34),p=n(17),h=n(36),f=n(82),g=n(32),m=n(81),v=n(80),n=n(79),f=[c.ColorPickerComponent,u.ColorPaletteComponent,p.ColorGradientComponent,g.LocalizedColorPickerMessagesDirective,f.ColorPickerCustomMessagesComponent],v=[h.ColorInputComponent,m.FocusOnDomReadyDirective,n.ContrastComponent,v.ContrastValidationComponent],s=i.__decorate([o.NgModule({declarations:[f,v],exports:[f],imports:[l.SliderModule,d.NumericTextBoxModule,a.CommonModule,r.PopupModule,s.DraggableModule]})],_);function _(){}t.ColorPickerModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(i.__decorate([n.HostBinding("class.k-textarea-suffix"),i.__metadata("design:type",Boolean)],o.prototype,"hostClass",void 0),i.__decorate([n.Component({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],o));function o(){this.hostClass=!0}t.TextAreaSuffixComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i,o=n(0),l=n(1),a=n(9),r=n(12),d=n(5),c=n(3),u=n(2),p=n(89),h=n(4),f=n(8),g=n(8),m=n(11),v=n(10),_={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},u=(s=p.TextFieldsBase,o.__extends(y,s),i=y,Object.defineProperty(y.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),y.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!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&&(i?(g.closest(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),i=!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){i=e.keyCode===c.Keys.Tab}))})},y.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(d.NgControl,null),c.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=a.fromEvent(window,"resize").pipe(r.debounceTime(50)).subscribe(function(){return t.resize()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},y.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.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&&(h.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},y.prototype.ngAfterViewChecked=function(){this.resize()},y.prototype.writeValue=function(e){this.value=e},y.prototype.registerOnChange=function(e){this.ngChange=e},y.prototype.registerOnTouched=function(e){this.ngTouched=e},y.prototype.updateValue=function(e){var t=this;h.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},y.prototype.ngOnDestroy=function(){s.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(y.prototype,"resizableClass",{get:function(){return _[this.resizable]},enumerable:!0,configurable:!0}),y.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},y.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},y.prototype.resize=function(){var e,t;"auto"===this.resizable&&(e=this.input.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px"),(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Object.defineProperty(y.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e&&!this.disabled?this.renderer.addClass(t,"k-state-focus"):this.renderer.removeClass(t,"k-state-focus"),this._isFocused=e)},enumerable:!0,configurable:!0}),y.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},y.prototype.setSelection=function(e,t){this.isFocused&&f.invokeElementMethod(this.input,"setSelectionRange",e,t)},y.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},o.__decorate([l.Input(),o.__metadata("design:type",String)],y.prototype,"focusableId",void 0),o.__decorate([l.HostBinding("class.k-textarea"),o.__metadata("design:type",Boolean)],y.prototype,"hostClass",void 0),o.__decorate([l.HostBinding("class.k-flex-col"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],y.prototype,"flowCol",null),o.__decorate([l.HostBinding("class.k-flex-row"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],y.prototype,"flowRow",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],y.prototype,"flow",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],y.prototype,"rows",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],y.prototype,"cols",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],y.prototype,"maxlength",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],y.prototype,"tabindex",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],y.prototype,"tabIndex",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],y.prototype,"resizable",void 0),o.__decorate([l.Output("focus"),o.__metadata("design:type",l.EventEmitter)],y.prototype,"onFocus",void 0),o.__decorate([l.Output("blur"),o.__metadata("design:type",l.EventEmitter)],y.prototype,"onBlur",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],y.prototype,"valueChange",void 0),i=o.__decorate([l.Component({exportAs:"kendoTextArea",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.textarea"},{provide:d.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return i}),multi:!0},{provide:c.KendoInput,useExisting:l.forwardRef(function(){return i})}],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"\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 '}),o.__metadata("design:paramtypes",[u.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],y));function y(e,t,n,i,o,a){var r=s.call(this,e,t,n,i,o,a)||this;return r.localizationService=e,r.ngZone=t,r.changeDetector=n,r.renderer=i,r.injector=o,r.hostElement=a,r.focusableId="k-"+c.guid(),r.hostClass=!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.handleInput=function(e){e=e.target.value;r.updateValue(e),r.resize()},r.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),c.hasObservers(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),c.hasObservers(r.inputFocus)&&(r.focusChangedProgrammatically||r.ngZone.run(function(){r.inputFocus.emit()})),r.ngZone.run(function(){r.isFocused=!0}))},m.validatePackage(v.packageMetadata),r.direction=e.rtl?"rtl":"ltr",r}t.TextAreaComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(6),r=n(44),s=n(3),l=n(43),n=n(19),n=i.__decorate([o.NgModule({declarations:[r.TextAreaComponent,l.TextAreaSuffixComponent],exports:[r.TextAreaComponent,s.EventsModule,l.TextAreaSuffixComponent,n.SHARED_DIRECTIVES],imports:[a.CommonModule,s.EventsModule,n.SharedModule]})],d);function d(){}t.TextAreaModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(i.__decorate([n.HostBinding("class.k-input-separator"),i.__metadata("design:type",Boolean)],o.prototype,"hostClass",void 0),i.__decorate([n.Component({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],o));function o(){this.hostClass=!0}t.InputSeparatorComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(48),s=(i=n.TextBoxMessages,a.__extends(l,i),o=l,o=a.__decorate([r.Directive({providers:[{provide:n.TextBoxMessages,useExisting:r.forwardRef(function(){return o})}],selector:"[kendoTextBoxLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),o=(i=n(2).ComponentMessages,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"clear",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.TextBoxMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25);t.isSafari=function(e){return i.detectDesktopBrowser(e).safari||i.detectMobileOS(e)&&"mobilesafari"===i.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),s=n(49),a=n(8),r=n(5),l=n(1),d=n(11),c=n(10),u=n(8),p=n(4),h=n(3),f=n(21),g=n(20),m=n(2),v=n(49),m=(i=_,Object.defineProperty(_.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),_.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(r.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},_.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!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&&(i?(a.closest(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),i=!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){i=e.keyCode===h.Keys.Tab}))})},_.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},_.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},_.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},_.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},_.prototype.clearTitle=function(){return this.localizationService.get("clear")},_.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},_.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},_.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},_.prototype.registerOnChange=function(e){this.ngChange=e},_.prototype.registerOnTouched=function(e){this.ngTouched=e},_.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},_.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)},_.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(_.prototype,"successIconClasses",{get:function(){return this.successIcon?"k-text-success "+this.successIcon:"k-text-success k-icon k-i-check-outline"},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"errorIconClasses",{get:function(){return this.errorIcon?"k-text-error "+this.errorIcon:"k-text-error k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon||"k-icon k-i-close-circle"},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),_.prototype.setSelection=function(e,t){this.isFocused&&u.invokeElementMethod(this.input,"setSelectionRange",e,t)},_.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},_.prototype.updateValue=function(e){var t=this;p.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()})},Object.defineProperty(_.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-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this._isFocused=e)},enumerable:!0,configurable:!0}),_.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"focusableId",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"readonly",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],_.prototype,"tabindex",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"value",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"selectOnFocus",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Object)],_.prototype,"showSuccessIcon",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Object)],_.prototype,"showErrorIcon",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],_.prototype,"clearButton",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"successIcon",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"errorIcon",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"clearButtonIcon",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],_.prototype,"tabIndex",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],_.prototype,"placeholder",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],_.prototype,"maxlength",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],_.prototype,"valueChange",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],_.prototype,"inputFocus",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],_.prototype,"inputBlur",void 0),o.__decorate([l.Output("focus"),o.__metadata("design:type",l.EventEmitter)],_.prototype,"onFocus",void 0),o.__decorate([l.Output("blur"),o.__metadata("design:type",l.EventEmitter)],_.prototype,"onBlur",void 0),o.__decorate([l.ViewChild("input",{static:!0}),o.__metadata("design:type",l.ElementRef)],_.prototype,"input",void 0),o.__decorate([l.ContentChild(f.TextBoxSuffixTemplateDirective,{static:!1}),o.__metadata("design:type",f.TextBoxSuffixTemplateDirective)],_.prototype,"suffixTemplate",void 0),o.__decorate([l.ContentChild(g.TextBoxPrefixTemplateDirective,{static:!1}),o.__metadata("design:type",g.TextBoxPrefixTemplateDirective)],_.prototype,"prefixTemplate",void 0),o.__decorate([l.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],_.prototype,"disabledClass",null),o.__decorate([l.HostBinding("class.k-textbox"),o.__metadata("design:type",Boolean)],_.prototype,"hostClass",void 0),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],_.prototype,"direction",void 0),i=o.__decorate([l.Component({exportAs:"kendoTextBox",providers:[m.LocalizationService,{provide:m.L10N_PREFIX,useValue:"kendo.textbox"},{provide:r.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return i}),multi:!0},{provide:h.KendoInput,useExisting:l.forwardRef(function(){return i})}],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\n class="k-input"\n #input\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 <span class="k-input-suffix">\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\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 >\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),o.__metadata("design:paramtypes",[m.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],_));function _(e,t,n,i,o,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=a,this.focusableId="k-"+h.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new l.EventEmitter,this.inputFocus=new l.EventEmitter,this.inputBlur=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),h.hasObservers(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),h.hasObservers(r.inputFocus)&&(!r.focusChangedProgrammatically||r.focusChangedProgrammatically&&r.clearButtonClicked)&&r.ngZone.run(function(){r.inputFocus.emit()}),r.ngZone.run(function(){r.isFocused=!0}))},this.handleInputBlur=function(){r.changeDetector.markForCheck(),(h.hasObservers(r.inputBlur)||p.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.handleInput=function(e){e=v.isSafari(navigator.userAgent)&&s.isJapanese(e.target.value)?e.data:e.target.value;r.updateValue(e)},this.ngChange=function(e){},this.ngTouched=function(){},d.validatePackage(c.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}t.TextBoxComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(71),r=n(72),s=n(50),l=n(6),d=n(3),c=n(21),u=n(20),p=n(90),h=n(47),n=n(19),n=i.__decorate([o.NgModule({declarations:[a.TextBoxDirective,r.TextBoxContainerComponent,s.TextBoxComponent,c.TextBoxSuffixTemplateDirective,u.TextBoxPrefixTemplateDirective,p.TextBoxCustomMessagesComponent,h.LocalizedTextBoxMessagesDirective],exports:[a.TextBoxDirective,r.TextBoxContainerComponent,s.TextBoxComponent,c.TextBoxSuffixTemplateDirective,u.TextBoxPrefixTemplateDirective,d.EventsModule,p.TextBoxCustomMessagesComponent,h.LocalizedTextBoxMessagesDirective,n.SHARED_DIRECTIVES],imports:[l.CommonModule,d.EventsModule,n.SharedModule]})],f);function f(){}t.TextBoxModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(66),r=n(6),n=n(3),n=i.__decorate([o.NgModule({declarations:[a.MaskedTextBoxComponent],exports:[a.MaskedTextBoxComponent],imports:[r.CommonModule,n.EventsModule]})],s);function s(){}t.MaskedTextBoxModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(67),s=(i=n.NumericTextBoxMessages,a.__extends(l,i),o=l,o=a.__decorate([r.Directive({providers:[{provide:n.NumericTextBoxMessages,useExisting:r.forwardRef(function(){return o})}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedNumericTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),o=(i=n(2).ComponentMessages,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"on",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"off",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(54),s=(i=n.Messages,a.__extends(l,i),o=l,o=a.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"[kendoSwitchLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedSwitchMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(73),r=n(6),s=n(3),l=n(55),d=n(91),n=n(3),s=i.__decorate([o.NgModule({declarations:[a.SwitchComponent,d.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],exports:[a.SwitchComponent,d.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],imports:[r.CommonModule,n.EventsModule,s.ResizeSensorModule]})],c);function c(){}t.SwitchModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),o=(i=n(2).ComponentMessages,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"dragHandleStart",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"dragHandleEnd",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.RangeSliderMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(57),s=(i=n.RangeSliderMessages,a.__extends(l,i),o=l,o=a.__decorate([r.Directive({providers:[{provide:n.RangeSliderMessages,useExisting:r.forwardRef(function(){return o})}],selector:"[kendoSliderLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedRangeSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(6),r=n(63),s=n(74),l=n(58),d=n(92),n=n(13),r=i.__decorate([o.NgModule({declarations:[s.RangeSliderComponent,d.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective],exports:[s.RangeSliderComponent,d.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective,n.LabelTemplateDirective],imports:[a.CommonModule,r.SlidersCommonModule]})],c);function c(){}t.RangeSliderModule=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),o=(i=n(2).ComponentMessages,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"decrement",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"increment",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"dragHandle",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.SliderMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(60),s=(i=n.SliderMessages,a.__extends(l,i),o=l,o=a.__decorate([r.Directive({providers:[{provide:n.SliderMessages,useExisting:r.forwardRef(function(){return o})}],selector:"[kendoSliderLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(2),r=n(7),s=function(e){this.value=e,this.classes={"k-tick":!0}},i=(l.prototype.ngOnChanges=function(e){this.createTicks()},l.prototype.createTicks=function(){for(var e=r.calculateTicksCount(this.min,this.max,this.step),t=this.largeStep,n={max:this.max,min:this.min,smallStep:this.step},i=[],o=0;o<e;o++)i.push(new s(r.calculateValueFromTick(o,n))),t&&o%t==0&&(i[o].large=!0,i[o].classes["k-tick-large"]=!0);0<(i=this.rtl||this.vertical?i.reverse():i).length&&(Object.assign(i[0].classes,this.endTickClasses(!0)),Object.assign(i[i.length-1].classes,this.endTickClasses(!1))),this.ticks=i},l.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},i.__decorate([o.HostBinding("class"),i.__metadata("design:type",String)],l.prototype,"wrapperClasses",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],l.prototype,"tickTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],l.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],l.prototype,"step",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],l.prototype,"largeStep",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],l.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],l.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],l.prototype,"labelTemplate",void 0),i.__decorate([o.ViewChildren("tickElement"),i.__metadata("design:type",o.QueryList)],l.prototype,"tickElements",void 0),i.__decorate([o.Component({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false">&nbsp;</ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '}),i.__param(0,o.Optional()),i.__param(0,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[Boolean])],l));function l(e){this.rtl=e,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}t.SliderTicksComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(6),r=n(62),s=n(13),n=n(3),n=i.__decorate([o.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=n},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(o=i=t.ResultType||(t.ResultType={}))[o.Literal=0]="Literal",o[o.Mask=1]="Mask",o[o.Undefined=2]="Undefined";var o=(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+" })"},a);function a(e,t,n){void 0===n&&(n=i.Undefined),this.value=e,this.rest=t,this.type=n}t.Result=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return(e||"").split("")}var r=n(64),o=n(95),s=(a.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof o.Stream?this.parse(e):this.parse(new o.Stream(i(e),i(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 o=e.prompt,a=e.promptPlaceholder;return function(i){return new s(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===t&&t===o)return e.eat(),new r.Result(o,e,r.ResultType.Mask);if(i.test(n))return e.eat(),new r.Result(n,e,r.ResultType.Mask);if(n===a)return e.eat(),new r.Result(o,e,r.ResultType.Mask);e.eat_input()}return e.eat(),new r.Result(o,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(o){return function(i){return new s(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===o&&t===o)return e.eat(),new r.Result(n,e);if(i.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(i,o){return new s(function(e){var t=e.next().char,n=i[t];return"\\"===t?(t=e.next().char,new r.Result(o.literal(t),e)):n?new r.Result(o.mask(n),e):new r.Result(o.literal(t),e)})},t.rawMask=function(e){var n=e.prompt,i=e.promptPlaceholder;return new s(function(e){var t=e.next().char;return t===n?new r.Result(i,e):new r.Result(t,e)})},t.rawLiteral=function(n){return new s(function(e){var t=e.next().char;return n?new r.Result(t,e):new r.Result("",e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),l=n(1),a=n(5),r=n(2),d=n(11),c=n(10),s=n(97),u=n(3),p=n(8),h=n(4),f=Promise.resolve(null),s=(i=g,Object.defineProperty(g.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),g.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(a.NgControl,null)},g.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},g.prototype.handleDragDrop=function(){return!1},g.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},g.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},g.prototype.pasteHandler=function(e){var t=e.target,e=t.selectionStart,t=t.selectionEnd;t!==e&&(this.isPasted=!0,this.selection=[e,t])},g.prototype.inputHandler=function(e){var t=e.target.value,n=this.selection,i=n[0],o=n[1];if(!this.mask)return this.updateValue(t),void(this.isPasted=!1);e=this.isPasted?(this.isPasted=!1,n=this.maskedValue.length-o,n=t.length-n,this.service.maskInRange(t.slice(i,n),this.maskedValue,i,o)):this.service.maskInput(t,this.maskedValue,e.target.selectionStart),this.updateInput(e.value,e.selection),this.updateValue(e.value)},g.prototype.ngOnChanges=function(e){var t,n=this;e.value&&(this.value=this.normalizeValue()),this.mask?(t=this.extractChanges(e),this.updateService(t),u.isChanged("value",e)?(t=this.service.maskRaw(this.value))!==this.maskedValue&&this.updateInput(t):u.anyChanged(["promptPlaceholder","includeLiterals"],e)?f.then(function(){n.updateValue(n.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))):this.updateInput(this.value)},g.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},g.prototype.registerOnChange=function(e){this.onChange=e},g.prototype.registerOnTouched=function(e){this.onTouched=e},g.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},g.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},g.prototype.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)},g.prototype.updateInput=function(e,t){this.maskedValue=e=void 0===e?"":e;e=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",e),void 0!==t&&this.setSelection(t,t)},g.prototype.extractChanges=function(n){return Object.keys(n).filter(function(e){return"rules"!==e}).reduce(function(e,t){return e[t]=n[t].currentValue,e},{})},g.prototype.updateService=function(e){e=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(e)},g.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&p.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(g.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),g.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;0<=t&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(g.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e)},enumerable:!0,configurable:!0}),g.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=h.isPresent(e);if(t&&"string"!=typeof e){if(l.isDevMode())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},o.__decorate([l.Input(),o.__metadata("design:type",String)],g.prototype,"focusableId",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],g.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],g.prototype,"readonly",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],g.prototype,"title",void 0),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],g.prototype,"direction",void 0),o.__decorate([l.HostBinding("class.k-widget"),l.HostBinding("class.k-maskedtextbox"),o.__metadata("design:type",Boolean)],g.prototype,"hostClasses",void 0),o.__decorate([l.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],g.prototype,"hostDisabledClass",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],g.prototype,"mask",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],g.prototype,"value",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],g.prototype,"rules",null),o.__decorate([l.Input(),o.__metadata("design:type",String)],g.prototype,"prompt",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],g.prototype,"promptPlaceholder",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],g.prototype,"includeLiterals",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],g.prototype,"maskOnFocus",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],g.prototype,"maskValidation",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],g.prototype,"tabindex",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],g.prototype,"tabIndex",null),o.__decorate([l.Output("focus"),o.__metadata("design:type",l.EventEmitter)],g.prototype,"onFocus",void 0),o.__decorate([l.Output("blur"),o.__metadata("design:type",l.EventEmitter)],g.prototype,"onBlur",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],g.prototype,"valueChange",void 0),o.__decorate([l.ViewChild("input",{static:!0}),o.__metadata("design:type",l.ElementRef)],g.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)],g.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)],g.prototype,"inputHandler",null),i=o.__decorate([l.Component({exportAs:"kendoMaskedTextBox",providers:[s.MaskingService,{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return i})},{multi:!0,provide:a.NG_VALIDATORS,useExisting:l.forwardRef(function(){return i})},{provide:u.KendoInput,useExisting:l.forwardRef(function(){return i})}],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-textbox"\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(r.RTL)),o.__metadata("design:paramtypes",[s.MaskingService,l.Renderer2,l.ElementRef,l.NgZone,l.Injector,l.ChangeDetectorRef,Boolean])],g));function g(e,t,n,i,o,a,r){var s=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=o,this.changeDetector=a,this.focusableId="k-"+u.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.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)})),u.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),(u.hasObservers(s.onBlur)||h.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.onTouched(),s.onBlur.emit()})},this.onChange=function(e){},this.onTouched=function(){},d.validatePackage(c.packageMetadata),this.direction=r?"rtl":"ltr",this.updateService()}t.MaskedTextBoxComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),o=(i=n(2).ComponentMessages,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"decrement",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"increment",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.NumericTextBoxMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(67),s=(i=n.NumericTextBoxMessages,a.__extends(l,i),o=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:n.NumericTextBoxMessages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-numerictextbox-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.NumericTextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min",t.MAX_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max",t.POINT=".",t.INITIAL_SPIN_DELAY=500,t.SPIN_DELAY=50,t.EXPONENT_REGEX=/[eE][\-+]?([0-9]+)/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),l=n(1),d=n(3),c=n(4),a=n(8),r=n(26),s=n(102),u=n(101),p=n(5),h=n(100),f=n(2),g=n(11),m=n(10),v=n(69),_=n(99),y=n(98),b=n(25),C=["min","max","step","decimals"],k={decimals:null,max:null,min:null,step:1},f=(i=S,Object.defineProperty(S.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),S.prototype.ngOnInit=function(){var t=this;this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(p.NgControl,null)},S.prototype.ngOnChanges=function(t){d.anyChanged(C,t,!1)&&this.parseOptions(C.filter(function(e){return t[e]})),this.verifySettings(),d.anyChanged(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?u.createMinValidator(this.min):_.noop,this.maxValidateFn=this.rangeValidation?s.createMaxValidator(this.max):_.noop,this.ngValidatorChange()),d.anyChanged(["autoCorrect","decimals","min"],t)&&delete this.numericRegex,d.anyChanged(["value","format"],t,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},S.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)},S.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},S.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},S.prototype.writeValue=function(e){this.verifyValue(e);e=this.restrictModelValue(e);this.value=e,this.setInputValue()},S.prototype.registerOnChange=function(e){this.ngChange=e},S.prototype.registerOnTouched=function(e){this.ngTouched=e},S.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},S.prototype.focus=function(){a.invokeElementMethod(this.numericInput,"focus")},S.prototype.blur=function(){a.invokeElementMethod(this.numericInput,"blur")},S.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(S.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t,n;this.isFocused!==e&&this.numericWrap&&(t=this.numericWrap.nativeElement,n=this.numericInput.nativeElement,e?(this.renderer.addClass(t,"k-state-focused"),this.isDisabled||this.renderer.removeClass(n,"k-formatted-value")):(this.renderer.removeClass(t,"k-state-focused"),this.renderer.addClass(n,"k-formatted-value")),this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&0<=this.decimals},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),S.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||_.isRightClick(t)||(b.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,v.INITIAL_SPIN_DELAY):this.setInputValue())},S.prototype.updateValue=function(e){var t=this;c.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},S.prototype.replaceNumpadDotValue=function(){var e,t,n,i,o,a=this.inputValue||"";return this.previousSelection&&(t=(e=this.numericInput.nativeElement).selectionStart,n=e.selectionEnd,i=(o=this.previousSelection).start,o=o.end,e.value=a=a.substring(0,i)+this.decimalSeparator+a.substring(o),this.setSelection(t,n)),a},S.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=_.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},S.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){n.spin(e,v.SPIN_DELAY)},t),this.addStep(e)},S.prototype.addStep=function(e){e=r.add(this.value||0,this.step*e),e=this.limitValue(e);e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)},S.prototype.setSelection=function(e,t){this.focused&&a.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},S.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(_.isNumber(this.max)&&e>this.max&&(t=this.max),_.isNumber(this.min)&&e<this.min&&(t=this.min)),t},S.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=t.value,a=e,r=!1;if(!this.isInRange(e)){var s=o.length-String(this.inputValue).length,l=this.min,d=this.max,c=_.isNumber(d),u=_.isNumber(l),p=void 0,h=void 0,t=e;if(0===n&&this.inputValue.substr(1)===o)return{selectionEnd:i,selectionStart:n,value:null};c&&d<e?0<e?h=!0:p=d:u&&e<l&&(0<e?p=l:h=!0),p?(l=this.tryPadValue(e,p))&&_.decimalPart(e)!==_.decimalPart(p)&&(t=l,r=!0):h&&this.inputValue&&n!==o.length&&(t=parseFloat(o.substr(0,n)+o.substr(n+s))),a=this.limitValue(t),r=(r||a!==t)&&this.previousSelection&&0<this.previousSelection.end-this.previousSelection.start+s}return{selectionEnd:r?String(a).length:i,selectionStart:n,value:a}},S.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,t=_.pad(e,i),i=_.pad(e,i+1);return this.isInRange(t)?n=t:this.isInRange(i)&&(n=i),n},S.prototype.isInRange=function(e){return!_.isNumber(e)||(!_.isNumber(this.min)||this.min<=e)&&(!_.isNumber(this.max)||e<=this.max)},S.prototype.restrictModelValue=function(e){e=this.restrictDecimals(e,!0);return e=this.autoCorrect&&this.limitValue(e)!==e?null:e},S.prototype.restrictDecimals=function(e,t){var n,i,o=e;return e&&this.hasDecimals&&(n=this.decimals,i=String(e),t||v.EXPONENT_REGEX.test(i)?o=r.toFixedPrecision(e,n):(i=(e=i.split(v.POINT))[1])&&i.length>n&&(i=i.substr(0,n),o=parseFloat(""+e[0]+v.POINT+i))),o},S.prototype.formatInputValue=function(e){var t=String(e),n=v.EXPONENT_REGEX.exec(t);return(t=n?e.toFixed(r.limitPrecision(parseInt(n[1],10))):t).replace(v.POINT,this.decimalSeparator)},S.prototype.formatValue=function(e,t){return null!==e&&_.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},S.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);t=this.formatValue(e,t);this.elementValue=t,this.inputValue=t},S.prototype.verifySettings=function(){if(l.isDevMode()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+v.MIN_DOC_LINK+" and "+v.MAX_DOC_LINK+".")},S.prototype.verifyValue=function(e){if(l.isDevMode()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},S.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var o=parseFloat(i),a=!isNaN(o);if(l.isDevMode()&&!a&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=a?o:k[n]}}},S.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},S.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){e=e.split(this.decimalSeparator)[1];return e&&e.length>this.decimals&&e.lastIndexOf("0")===e.length-1}},S.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},S.prototype.selectCaret=function(){var e=_.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,e=t.substring(0,e);this.setInputValue(),e.length?(e=_.extractSignificantNumericChars(e,this.decimalSeparator),e=this.adjustSignificantChars(t,e),this.setSelection(e,e)):this.setSelection(0,0)},S.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){e=n[0].length,n=n[1].length;return e===t?n-1:n}return 0},S.prototype.adjustSignificantChars=function(e,t){e=this.numberOfLeadingZeroes(e);return 0<e?Math.max(0,t-e):t},o.__decorate([l.Input(),o.__metadata("design:type",String)],S.prototype,"focusableId",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],S.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],S.prototype,"readonly",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],S.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],S.prototype,"autoCorrect",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],S.prototype,"format",null),o.__decorate([l.Input(),o.__metadata("design:type",Number)],S.prototype,"max",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],S.prototype,"min",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],S.prototype,"decimals",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],S.prototype,"placeholder",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],S.prototype,"step",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],S.prototype,"spinners",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],S.prototype,"rangeValidation",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],S.prototype,"tabindex",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],S.prototype,"tabIndex",null),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],S.prototype,"changeValueOnScroll",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],S.prototype,"selectOnFocus",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],S.prototype,"value",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],S.prototype,"maxlength",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],S.prototype,"valueChange",void 0),o.__decorate([l.Output("focus"),o.__metadata("design:type",l.EventEmitter)],S.prototype,"onFocus",void 0),o.__decorate([l.Output("blur"),o.__metadata("design:type",l.EventEmitter)],S.prototype,"onBlur",void 0),o.__decorate([l.ViewChild("numericInput",{static:!0}),o.__metadata("design:type",l.ElementRef)],S.prototype,"numericInput",void 0),o.__decorate([l.ViewChild("numericWrap",{static:!0}),o.__metadata("design:type",l.ElementRef)],S.prototype,"numericWrap",void 0),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],S.prototype,"direction",void 0),o.__decorate([l.HostBinding("class.k-widget"),l.HostBinding("class.k-numerictextbox"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],S.prototype,"widgetClasses",null),i=o.__decorate([l.Component({exportAs:"kendoNumericTextBox",providers:[f.LocalizationService,{provide:f.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:p.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return i}),multi:!0},{provide:p.NG_VALIDATORS,useExisting:l.forwardRef(function(){return i}),multi:!0},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return i})}],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 <span\n class="k-numeric-wrap"\n [class.k-state-disabled]="disabled"\n [kendoEventsOutsideAngular]="{ mousewheel: handleWheel, DOMMouseScroll: handleWheel }"\n #numericWrap>\n <input\n role="spinbutton"\n class="k-input k-formatted-value"\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 class="k-select" *ngIf="spinners" [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }">\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Up"\n class="k-link k-link-increase"\n >\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Down"\n class="k-link k-link-decrease"\n >\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),o.__metadata("design:paramtypes",[h.IntlService,l.Renderer2,f.LocalizationService,l.Injector,l.NgZone,l.ChangeDetectorRef,l.ElementRef])],S));function S(e,t,n,i,o,a,r){var s=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=o,this.changeDetector=a,this.hostElement=r,this.focusableId="k-"+d.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.ArrowDirection=y.ArrowDirection,this.arrowDirection=y.ArrowDirection.None,this.inputValue="",this.minValidateFn=_.noop,this.maxValidateFn=_.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=_.noop,this.ngTouched=_.noop,this.ngValidatorChange=_.noop,this.increasePress=function(e){s.arrowPress(y.ArrowDirection.Up,e)},this.decreasePress=function(e){s.arrowPress(y.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(s.spinTimeout),s.arrowDirection!==y.ArrowDirection.None&&(s.arrowDirection=y.ArrowDirection.None,s.changeDetector.detectChanges())},this.handlePaste=function(){s.isPasted=!0},this.handleInput=function(){var e=s.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(s.pressedKey===d.Keys.NumpadDecimal&&(i=s.replaceNumpadDotValue()),s.isPasted&&(i=s.formatInputValue(s.intl.parseNumber(i))),!s.isValid(i))return e.value=s.inputValue,void s.setSelection(t-1,n-1);var o,a=s.intl.parseNumber(i),r=s.restrictDecimals(a);s.autoCorrect&&(r=(o=s.limitInputValue(r)).value,t=o.selectionStart,n=o.selectionEnd),a!==r||s.hasTrailingZeros(i)||!s.focused?(s.setInputValue(r),s.setSelection(t,n)):s.inputValue=i,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=_.getDeltaFromMouseWheel(e),s.addStep(e))},g.validatePackage(m.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}t.NumericTextBoxComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),n=n(3),o=(i=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()})},o.__decorate([a.HostBinding("class.k-textbox"),o.__metadata("design:type",Boolean)],r.prototype,"hostClass",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],r.prototype,"value",null),i=o.__decorate([a.Directive({selector:"input[kendoTextBox]",providers:[{provide:n.KendoInput,useExisting:a.forwardRef(function(){return i})}]}),o.__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.hostClass=!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=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return"[object Function]"===Object.prototype.toString.call(e)}var o=n(0),a=n(1),r=n(2),s=n(24),l=n(5),d=n(3),c=n(103),o=(Object.defineProperty(u.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"textareaElementClass",{get:function(){return!!this.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),u.prototype.ngAfterContentInit=function(){var t=this;if(this.formControl||this.kendoInput){var e=new c.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl),n=function(e){return function(){t.focused=e,t.updateState()}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.subscribe(e,"autoFillStart",function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")}),this.subscribe(e,"autoFillEnd",function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))});n=function(){return t.updateState()};n(),this.subscribe(e,"onValueChange",n),this.id&&e.focusableId?this.id=e.focusableId:this.id?e.focusableId=this.id:e.focusableId?this.id=e.focusableId:(n="_"+d.guid(),e.focusableId=n,this.id=n)}else if(a.isDevMode())throw new Error("The TextBoxContainer requires a Kendo Input component or a forms-bound component to function properly.")},u.prototype.ngOnDestroy=function(){this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions=[]},u.prototype.subscribe=function(e,t,n){e[t]instanceof a.EventEmitter&&(n=e[t].subscribe(n),this._subscriptions.push(n))},u.prototype.updateState=function(){function e(e){return!(0===e||!1===e||(!Array.isArray(e)||e.length)&&e)}var t,n=this.formControl;n?(t=n.valueAccessor,i(t.isEmpty)?this.empty=t.isEmpty():this.empty=e(n.value),this.invalid=n.invalid&&(n.touched||n.dirty)):this.empty=i(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value),this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},o.__decorate([a.HostBinding("class.k-textbox-container"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],u.prototype,"hostClasses",null),o.__decorate([a.HostBinding("class.k-textarea-wrapper"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],u.prototype,"textareaElementClass",null),o.__decorate([a.HostBinding("class.k-state-focused"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],u.prototype,"focusedClass",null),o.__decorate([a.HostBinding("class.k-state-invalid"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],u.prototype,"invalidClass",null),o.__decorate([a.HostBinding("attr.dir"),o.__metadata("design:type",String)],u.prototype,"direction",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],u.prototype,"id",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],u.prototype,"floatingLabel",void 0),o.__decorate([a.ContentChild(d.KendoInput,{static:!1}),o.__metadata("design:type",Object)],u.prototype,"kendoInput",void 0),o.__decorate([a.ContentChild(s.TextAreaDirective,{static:!1}),o.__metadata("design:type",s.TextAreaDirective)],u.prototype,"textarea",void 0),o.__decorate([a.ContentChild(l.NgControl,{static:!1}),o.__metadata("design:type",l.NgControl)],u.prototype,"formControl",void 0),o.__decorate([a.Component({selector:"kendo-textbox-container",template:'\n <ng-content></ng-content>\n <label *ngIf="floatingLabel" [for]="id" class="k-label">{{ floatingLabel }}</label>\n '}),o.__param(3,a.Optional()),o.__param(3,a.Inject(r.RTL)),o.__metadata("design:paramtypes",[a.ElementRef,a.Renderer2,a.ChangeDetectorRef,Boolean])],u));function u(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.focused=!1,this.empty=!0,this.invalid=!1,this._subscriptions=[],this.autoFillStarted=!1,this.direction=i?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}t.TextBoxContainerComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),s=n(1),a=n(5),r=n(2),l=n(3),d=n(11),c=n(10),u=n(4),p=n(12),h=n(25),r=(i=f,Object.defineProperty(f.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"ieClass",{get:function(){return h.browser&&h.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),f.prototype.ngOnInit=function(){var e,t=this;this.hostElement&&(e=this.hostElement.nativeElement,this.renderer.removeAttribute(e,"tabindex")),this.localizationChangeSubscription=this.localizationService.changes.pipe(p.skip(1)).subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.control=this.injector.get(a.NgControl,null),this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){return t.initialized=!0})},f.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},f.prototype.focus=function(){this.wrapper&&this.wrapper.nativeElement.focus()},f.prototype.blur=function(){this.wrapper&&this.wrapper.nativeElement.blur()},f.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},f.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},f.prototype.registerOnChange=function(e){this.ngChange=e},f.prototype.registerOnTouched=function(e){this.ngTouched=e},f.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},f.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},f.prototype.isEmpty=function(){return!1},f.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(f.prototype,"focused",{set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e)},enumerable:!0,configurable:!0}),f.prototype.setHostClasses=function(e){e?(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-off"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-on")):(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-on"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-off"))},o.__decorate([s.Input(),o.__metadata("design:type",String)],f.prototype,"focusableId",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],f.prototype,"onLabel",void 0),o.__decorate([s.Input(),o.__metadata("design:type",String)],f.prototype,"offLabel",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[Boolean])],f.prototype,"checked",null),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],f.prototype,"disabled",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Boolean)],f.prototype,"readonly",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Number)],f.prototype,"tabindex",void 0),o.__decorate([s.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],f.prototype,"tabIndex",null),o.__decorate([s.Output("focus"),o.__metadata("design:type",s.EventEmitter)],f.prototype,"onFocus",void 0),o.__decorate([s.Output("blur"),o.__metadata("design:type",s.EventEmitter)],f.prototype,"onBlur",void 0),o.__decorate([s.Output(),o.__metadata("design:type",s.EventEmitter)],f.prototype,"valueChange",void 0),o.__decorate([s.ViewChild("wrapper",{static:!0}),o.__metadata("design:type",Object)],f.prototype,"wrapper",void 0),o.__decorate([s.HostBinding("attr.dir"),o.__metadata("design:type",String)],f.prototype,"direction",void 0),o.__decorate([s.HostBinding("class.k-ie"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],f.prototype,"ieClass",null),o.__decorate([s.HostBinding("attr.aria-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],f.prototype,"ariaDisabled",null),o.__decorate([s.HostBinding("attr.aria-readonly"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],f.prototype,"ariaReadonly",null),o.__decorate([s.HostBinding("class.k-switch"),o.__metadata("design:type",Boolean)],f.prototype,"hostClasses",void 0),o.__decorate([s.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],f.prototype,"disabledClass",null),i=o.__decorate([s.Component({exportAs:"kendoSwitch",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return i})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return i})}],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 #wrapper\n class="k-switch-container"\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]="{ click: clickHandler, 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 class="k-switch-handle" [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"></span>\n </span>\n '}),o.__metadata("design:paramtypes",[s.Renderer2,s.ElementRef,r.LocalizationService,s.Injector,s.ChangeDetectorRef,s.NgZone])],f));function f(e,t,n,i,o,a){var r=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=o,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._checked=!1,this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){r.focused=!0,l.hasObservers(r.onFocus)&&r.ngZone.run(function(){r.onFocus.emit()})},this.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(l.hasObservers(r.onBlur)||u.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.onBlur.emit()})},d.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}t.SwitchComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i,l=n(0),o=n(1),a=n(5),r=n(12),d=n(7),c=n(104),u=n(2),p=n(7),h=n(8),f=n(3),g=n(4),o=(s=n(75).SliderBase,l.__extends(m,s),(i=m).prototype.focus=function(){this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},m.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;h.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},m.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),s.prototype.ngOnInit.call(this)},m.prototype.ngOnChanges=function(e){var t=this;f.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&d.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(r.take(1)).subscribe(function(){t.sizeComponent()}))},m.prototype.ngAfterViewInit=function(){var e=this;f.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent()}),this.attachElementEventHandlers())},m.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},m.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(m.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),m.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();e=e.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)},m.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};function o(){return t.changeValue([p.eventValue(e,t.track.nativeElement,t.getProps()),t.value[1]])}function a(){return t.changeValue([t.value[0],p.eventValue(e,t.track.nativeElement,t.getProps())])}function r(){return t.changeValue([p.eventValue(e,t.track.nativeElement,t.getProps()),p.eventValue(e,t.track.nativeElement,t.getProps())])}var s=e.pageX<this.lastHandlePosition.x,l=e.pageX>this.lastHandlePosition.x,d=e.pageY>this.lastHandlePosition.y,c=p.isStartHandle(this.draggedHandle),i=this.vertical,n=!i,s=i&&d||(this.reverse?n&&l:n&&s);(this.value[0]===this.value[1]?s?c?o:r:c?r:a:c?o:a)()},m.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},m.prototype.writeValue=function(e){d.validateValue(e),this.value=e,this.sizeComponent()},m.prototype.registerOnChange=function(e){this.ngChange=e},m.prototype.registerOnTouched=function(e){this.ngTouched=e},m.prototype.changeValue=function(e){var t=this;this.value&&d.isSameRange(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.value&&t.valueChange.emit(e),t.sizeComponent()})},m.prototype.sizeComponent=function(){var e,t,n,i,o,a;f.isDocumentAvailable()&&(e=this.wrapper.nativeElement,a=this.track.nativeElement,t=this.sliderSelection.nativeElement,n=this.draghandleStart.nativeElement,i=this.draghandleEnd.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null,this.resetStyles([a,t,n,i,o,this.hostElement.nativeElement]),o=this.getProps(),(a=new c.RangeSliderModel(o,e,a,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(n),a.positionHandle(i),a.positionSelection(n,t),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(m.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),m.prototype.isEmpty=function(){return!1},Object.defineProperty(m.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd&&(t=this.sliderSelection.nativeElement,n=e.target,e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value)},enumerable:!0,configurable:!0}),m.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:d.trimValueRange(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},m.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!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):i||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){i=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){i=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===f.Keys.Tab}))})},l.__decorate([o.Input(),l.__metadata("design:type",Array)],m.prototype,"value",void 0),l.__decorate([o.ViewChild("draghandleStart",{static:!0}),l.__metadata("design:type",o.ElementRef)],m.prototype,"draghandleStart",void 0),l.__decorate([o.ViewChild("draghandleEnd",{static:!0}),l.__metadata("design:type",o.ElementRef)],m.prototype,"draghandleEnd",void 0),i=l.__decorate([o.Component({exportAs:"kendoRangeSlider",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return i})},{provide:f.KendoInput,useExisting:o.forwardRef(function(){return i})}],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 <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\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),l.__metadata("design:paramtypes",[u.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],m));function m(e,t,n,i,o,a){var r=s.call(this,e,t,n,i,o,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=i,r.changeDetector=o,r.hostElement=a,r.startHandleId="k-start-handle-"+f.guid(),r.endHandleId="k-end-handle-"+f.guid(),r.focusableId=r.startHandleId,r.handleZIndex=0,r.activeHandle="startHandle",r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t,n,i;r.isDisabled||(r.value=r.value||[r.min,r.min],i=p.eventValue(e,r.track.nativeElement,r.getProps()),t=void 0,e=(n=t=r.value)[0],n=n[1],i<=e?(t=[i,n],r.activeHandle="startHandle"):e<i&&i<n?i<(e+n)/2?(t=[i,n],r.activeHandle="startHandle"):(t=[e,i],r.activeHandle="endHandle"):n<=i&&(t=[e,i],r.activeHandle="endHandle"),i="startHandle"===r.activeHandle?r.draghandleStart:r.draghandleEnd,h.invokeElementMethod(i,"focus"),r.changeValue(t))},r.onKeyDown=function(e){r.value=r.value||[r.min,r.min];var t,n=r.getProps(),i=n.max,o=n.min,a=r.keyBinding[e.keyCode];!r.isDisabled&&a&&(r.renderer.setStyle(e.target,"zIndex",++r.handleZIndex),t=p.isStartHandle(e.target),n=a(l.__assign({},n,{value:t?r.value[0]:r.value[1]})),t?n>r.value[1]&&(r.value[1]=n):n<r.value[0]&&(r.value[0]=n),n=d.trimValue(i,o,n),n=t?[n,r.value[1]]:[r.value[0],n],r.changeValue(n),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(f.hasObservers(r.onBlur)||g.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}t.RangeSliderComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(7),l=n(1),d=n(9),o=n(5),a=n(3),c=n(11),u=n(10),n=n(13),n=(Object.defineProperty(r.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),r.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},r.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null)},Object.defineProperty(r.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),r.prototype.isEmpty=function(){return!1},Object.defineProperty(r.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[a.Keys.ArrowLeft]=t?s.increment:s.decrement,e[a.Keys.ArrowRight]=t?s.decrement:s.increment,e[a.Keys.ArrowDown]=s.decrement,e[a.Keys.ArrowUp]=s.increment,e[a.Keys.PageUp]=s.incrementLarge,e[a.Keys.PageDown]=s.decrementLarge,e[a.Keys.Home]=function(e){return e.min},e[a.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),r.prototype.resetStyles=function(e){var t=this;e.forEach(function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))})},i.__decorate([l.Input(),i.__metadata("design:type",Function)],r.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],r.prototype,"tickPlacement",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],r.prototype,"vertical",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],r.prototype,"min",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],r.prototype,"max",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],r.prototype,"smallStep",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],r.prototype,"largeStep",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],r.prototype,"fixedTickWidth",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],r.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],r.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],r.prototype,"onBlur",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],r.prototype,"valueChange",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],r.prototype,"direction",void 0),i.__decorate([l.HostBinding("class.k-slider-horizontal"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"horizontalClass",null),i.__decorate([l.HostBinding("class.k-slider-vertical"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"verticalClass",null),i.__decorate([l.HostBinding("class.k-slider"),i.__metadata("design:type",Boolean)],r.prototype,"sliderClass",void 0),i.__decorate([l.HostBinding("class.k-widget"),i.__metadata("design:type",Boolean)],r.prototype,"widgetClass",void 0),i.__decorate([l.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"disabledClass",null),i.__decorate([l.ViewChild("wrap",{static:!0}),i.__metadata("design:type",l.ElementRef)],r.prototype,"wrapper",void 0),i.__decorate([l.ViewChild("track",{static:!0}),i.__metadata("design:type",l.ElementRef)],r.prototype,"track",void 0),i.__decorate([l.ViewChild("sliderSelection",{static:!0}),i.__metadata("design:type",l.ElementRef)],r.prototype,"sliderSelection",void 0),i.__decorate([l.ViewChild("ticks",{read:l.ElementRef,static:!1}),i.__metadata("design:type",l.ElementRef)],r.prototype,"ticksContainer",void 0),i.__decorate([l.ViewChild("ticks",{static:!1}),i.__metadata("design:type",Object)],r.prototype,"ticks",void 0),i.__decorate([l.ContentChild(n.LabelTemplateDirective,{static:!1}),i.__metadata("design:type",n.LabelTemplateDirective)],r.prototype,"labelTemplate",void 0),r);function r(e,t,n,i,o,a){var r=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=o,this.hostElement=a,this.title=s.identity,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new d.Subscription,this.ifEnabled=function(e,t){r.isDisabled||e.call(r,t)},c.validatePackage(u.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}t.SliderBase=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=n(7),p=n(26),n=(i.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.trackWidth();this.track.style[e]=t+"px"},i.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map(function(e,t){return e.style[i]=n.tickSizes[t]+"px"}),this.props.vertical&&this.adjustPadding(e)},i.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=this.elementSize(this.wrapper),n=u.calculateTrackSize(t,this.elementOffset(this.track)),i=u.calculateFixedTrackSize(this.props);this.wrapper.parentElement.style[e]=i<n?t-(n-i)+"px":t+(i-n)+"px"},i.prototype.trackWidth=function(){return this.props.fixedTickWidth?u.calculateFixedTrackSize(this.props):u.calculateTrackSize(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)},i.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,o=u.calculateTicksCount(t,n,i),e=this.trackWidth(),a=e/p.subtract(n,t),r=[],s=0,l=0,d=0;d<o;d++){var l=+(l+=0===d||d===o-1?i/2*a:i*a).toFixed(2)-.01,c=Math.round(l-s);r.push(c),s+=c}return e<=s&&--r[r.length-1],r},i.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")},i.prototype.elementOffset=function(e){var t=this.props.vertical,e=getComputedStyle(e);return parseInt(t?e.bottom:e.left,10)},i.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},i);function i(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}t.SliderModelBase=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(30),n=n(6),n=i.__decorate([o.NgModule({declarations:[a.RadioButtonDirective],exports:[a.RadioButtonDirective],imports:[n.CommonModule]})],r);function r(){}t.RadioButtonModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(31),n=n(6),n=i.__decorate([o.NgModule({declarations:[a.CheckBoxDirective],exports:[a.CheckBoxDirective],imports:[n.CommonModule]})],r);function r(){}t.CheckBoxModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(2),a=n(1),r=n(14),s=n(35),o=(Object.defineProperty(l.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"contrastRatioMessage",{get:function(){return this.localization.get("contrastRatio")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=this.aaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=this.aaaRatio},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}),i.__decorate([a.Input(),i.__metadata("design:type",String)],l.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],l.prototype,"ratio",void 0),i.__decorate([a.Component({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioMessage}}: {{formatedRatio}}</span>\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 </div>\n <div kendoContrastValidation\n type="AA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAAACondition">\n </div>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],l));function l(e){this.localization=e,this.aaRatio=s.AA_RATIO,this.aaaRatio=s.AAA_RATIO}t.ContrastComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(2),n=n(1),o=(Object.defineProperty(a.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"contrastText",{get:function(){return this.type+": "+this.ratio.toFixed(1)},enumerable:!0,configurable:!0}),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],a.prototype,"ratio",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],a.prototype,"pass",void 0),i.__decorate([n.Component({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\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 '}),i.__metadata("design:paramtypes",[o.LocalizationService])],a));function a(e){this.localization=e}t.ContrastValidationComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(o.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},o.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular(function(){return setTimeout(function(){return e.host.nativeElement.focus()})})},i.__decorate([n.Directive({selector:"[kendoFocusOnDomReady]"}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone])],o));function o(e,t){this.host=e,this.ngZone=t}t.FocusOnDomReadyDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(33),s=(i=n.ColorPickerMessages,a.__extends(l,i),o=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:n.ColorPickerMessages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-colorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.ColorPickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),r=n(2),n=n(18),n=(o=r.LocalizationService,i.__extends(s,o),s.prototype.get=function(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):o.prototype.get.call(this,e)},i.__decorate([i.__param(0,a.Inject(r.L10N_PREFIX)),i.__param(1,a.Optional()),i.__param(2,a.Optional()),i.__param(2,a.Inject(r.RTL)),i.__param(3,a.Optional()),i.__param(3,a.Inject(n.ColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,n.ColorPickerLocalizationService])],s));function s(e,t,n,i){n=o.call(this,e,t,n)||this;return n.colorPickerLocalization=i,n}t.ColorPaletteLocalizationService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),o=(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 i=e.slice(n,t+n);this.colorRows.push(i)}}},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},i.__decorate([o.Injectable()],r));function r(){this.colorRows=[]}t.ColorPaletteService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),r=n(2),n=n(18),n=(o=r.LocalizationService,i.__extends(s,o),s.prototype.get=function(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):o.prototype.get.call(this,e)},i.__decorate([i.__param(0,a.Inject(r.L10N_PREFIX)),i.__param(1,a.Optional()),i.__param(2,a.Optional()),i.__param(2,a.Inject(r.RTL)),i.__param(3,a.Optional()),i.__param(3,a.Inject(n.ColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,n.ColorPickerLocalizationService])],s));function s(e,t,n,i){n=o.call(this,e,t,n)||this;return n.colorPickerLocalization=i,n}t.ColorGradientLocalizationService=n},function(e,t){e.exports=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(o.prototype.preventOpen=function(){this.openPrevented=!0},o.prototype.isOpenPrevented=function(){return this.openPrevented},o);function o(e){this.color=e,this.openPrevented=!1}t.ActiveColorClickEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(o.prototype.preventDefault=function(){this.prevented=!0},o.prototype.isDefaultPrevented=function(){return this.prevented},o);function o(){this.prevented=!1}t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(9),l=n(1),d=n(4),c=n(3),i=(Object.defineProperty(o.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},o.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},i.__decorate([l.Input(),i.__metadata("design:type",String)],o.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],o.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],o.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],o.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],o.prototype,"selectOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],o.prototype,"placeholder",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],o.prototype,"inputFocus",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],o.prototype,"inputBlur",void 0),i.__decorate([l.ViewChild("input",{static:!0}),i.__metadata("design:type",l.ElementRef)],o.prototype,"input",void 0),i.__decorate([l.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],o.prototype,"disabledClass",null),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],o.prototype,"direction",void 0),o);function o(e,t,n,i,o,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(48),s=(i=n.TextBoxMessages,a.__extends(l,i),o=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:n.TextBoxMessages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-textbox-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.TextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(54),s=(i=n.Messages,a.__extends(l,i),o=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-switch-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.SwitchCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(57),s=(i=n.RangeSliderMessages,a.__extends(l,i),o=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:n.RangeSliderMessages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-rangeslider-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.RangeSliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(2),n=n(60),s=(i=n.SliderMessages,a.__extends(l,i),o=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:n.SliderMessages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-slider-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=i.call(this)||this;return t.service=e,t}t.SliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(23),r=n(59),s=n(56),l=n(22),d=n(52),c=n(51),u=n(45),p=n(6),h=n(42),f=n(78),g=n(77),n=n(29),p=i.__decorate([o.NgModule({exports:[u.TextAreaModule,c.TextBoxModule,a.SliderModule,r.RangeSliderModule,s.SwitchModule,l.NumericTextBoxModule,d.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,g.RadioButtonModule,n.FormFieldModule],imports:[p.CommonModule]})],m);function m(){}t.InputsModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(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++},o);function o(e,t){void 0===t&&(t=[]),this.input=e=void 0===e?[]:e,this.control=t,this.inputCursor=0,this.controlCursor=0}t.Stream=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),o=n(64);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 i.Parser(function(e){return new o.Result(t,e)})));var t},t.greedy=function(n){return new i.Parser(function(e){for(var t=new o.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 i=n(0),o=n(1),l=n(96),a=n(65),o=(r.prototype.update=function(e){var t=e.mask,n=e.prompt,i=void 0===n?"":n,o=e.promptPlaceholder,n=void 0===o?" ":o,o=e.rules,o=void 0===o?{}:o,e=e.includeLiterals,e=void 0!==e&&e;this.mask=void 0===t?"":t,this.prompt=i,this.promptPlaceholder=n,this.rules=o,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,i){var o="",a=i,r=t.split("").slice(0,n),s=t.split("").slice(i);return l.sequence(this.maskTokens.slice(n,i)).run(e).fold(function(e){o=r.concat(e).concat(s).join("")}),{selection:a,value:o}},r.prototype.maskRemoved=function(e,t,n){var i=this,o="",a=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),n=this.maskTokens.length-(e.length-n);return l.sequence(this.maskTokens.slice(0,n)).run(s,t).fold(function(e){a=i.adjustPosition(e,a),o=e.concat(r).join("")}),{selection:a,value:o}},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 i=this,o="",a=t,t=e.slice(0,t);return l.sequence(this.unmaskTokens).run(t,n).chain(function(e){a=e.join("").length;var t=n.slice(a);return l.sequence(i.maskTokens).run(e.join("")+t,n)}).fold(function(e){o=e.join("")}),{selection:a,value:o}},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,i=this.includeLiterals;return{literal:function(e){return a.rawLiteral(i)},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})},i.__decorate([o.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=o},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 o=n(69);t.numericRegex=function(e){var t=e.autoCorrect,n=e.decimals,i=e.min,e=e.separator;return e===o.POINT&&(e="\\"+e),new RegExp("^"+(t&&null!==i&&0<=i?"":"-?")+(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 n=t-String(e).length,t=e;return 0<n&&(n=new Array(1+n).join("0"),t=parseFloat(e+n)),t},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=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMinValidator=function(t){return function(e){return!i.isPresent(t)||!i.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 i=n(4);t.createMaxValidator=function(t){return function(e){return!i.isPresent(t)||!i.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 i=n(9),o=n(1),n=(Object.defineProperty(a.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),a);function a(e,t){function n(e){return e instanceof i.Observable||e instanceof o.EventEmitter}n((this.component=e).onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}t.FloatingLabelInputAdapter=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),s=n(7),l=n(7),o=(i=n(76).SliderModelBase,o.__extends(a,i),a.prototype.positionHandle=function(e){var t,n,i,o,a,r;e.id&&(t=(r=this.props).max,n=r.min,i=r.reverse,o=r.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:i,value:r,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,o,this.startHandlePosition+"px")):(this.endHandlePosition=l.calculateHandlePosition({min:n,max:t,reverse:i,value:r,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,o,this.endHandlePosition+"px")))},a.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical,a=o?"height":"width",r=o?"bottom":i?"right":"left",s=Math.floor(e.offsetWidth/2),n=Math.abs(this.endHandlePosition-this.startHandlePosition),e=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,a,n+"px"),this.renderer.setStyle(t,r,i?this.trackWidth()-parseFloat(e)-s+"px":parseFloat(e)+s+"px")},a);function a(){return null!==i&&i.apply(this,arguments)||this}t.RangeSliderModel=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),s=n(7),o=(i=n(76).SliderModelBase,o.__extends(a,i),a.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,o=t.reverse,a=t.vertical?"bottom":"left",r=this.trackWidth(),t=s.trimValue(n,i,this.props.value);this.handlePosition=s.calculateHandlePosition({min:i,max:n,reverse:o,value:t,trackWidth:r,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,a,this.handlePosition+"px")},a.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,n=n.vertical?"height":"width",e=Math.floor(e.offsetWidth/2),e=this.handlePosition+e;i&&(e=this.trackWidth()-e),this.renderer.setStyle(t,n,e+"px")},a);function a(){return null!==i&&i.apply(this,arguments)||this}t.SliderModel=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(27);t.SliderComponent=i.SliderComponent;i=n(74);t.RangeSliderComponent=i.RangeSliderComponent;i=n(13);t.LabelTemplateDirective=i.LabelTemplateDirective;i=n(73);t.SwitchComponent=i.SwitchComponent;i=n(72);t.TextBoxContainerComponent=i.TextBoxContainerComponent;i=n(71);t.TextBoxDirective=i.TextBoxDirective;i=n(24);t.TextAreaDirective=i.TextAreaDirective;i=n(70);t.NumericTextBoxComponent=i.NumericTextBoxComponent;i=n(68);t.NumericTextBoxCustomMessagesComponent=i.NumericTextBoxCustomMessagesComponent;i=n(66);t.MaskedTextBoxComponent=i.MaskedTextBoxComponent;i=n(94);t.InputsModule=i.InputsModule;i=n(62);t.SliderTicksComponent=i.SliderTicksComponent;i=n(23);t.SliderModule=i.SliderModule;i=n(59);t.RangeSliderModule=i.RangeSliderModule;i=n(56);t.SwitchModule=i.SwitchModule;i=n(22);t.NumericTextBoxModule=i.NumericTextBoxModule;i=n(52);t.MaskedTextBoxModule=i.MaskedTextBoxModule;i=n(51);t.TextBoxModule=i.TextBoxModule;i=n(45);t.TextAreaModule=i.TextAreaModule;i=n(40);t.ColorPickerComponent=i.ColorPickerComponent;i=n(34);t.ColorPaletteComponent=i.ColorPaletteComponent;i=n(17);t.ColorGradientComponent=i.ColorGradientComponent;i=n(42);t.ColorPickerModule=i.ColorPickerModule;i=n(39);t.ActiveColorClickEvent=i.ActiveColorClickEvent;i=n(31);t.CheckBoxDirective=i.CheckBoxDirective;i=n(30);t.RadioButtonDirective=i.RadioButtonDirective;i=n(15);t.HintComponent=i.HintComponent;i=n(16);t.ErrorComponent=i.ErrorComponent;i=n(28);t.FormFieldComponent=i.FormFieldComponent;i=n(29);t.FormFieldModule=i.FormFieldModule;i=n(50);t.TextBoxComponent=i.TextBoxComponent;i=n(20);t.TextBoxPrefixTemplateDirective=i.TextBoxPrefixTemplateDirective;i=n(21);t.TextBoxSuffixTemplateDirective=i.TextBoxSuffixTemplateDirective;i=n(44);t.TextAreaComponent=i.TextAreaComponent;i=n(43);t.TextAreaSuffixComponent=i.TextAreaSuffixComponent;i=n(46);t.InputSeparatorComponent=i.InputSeparatorComponent;i=n(19);t.SharedModule=i.SharedModule;i=n(32);t.LocalizedColorPickerMessagesDirective=i.LocalizedColorPickerMessagesDirective;i=n(53);t.LocalizedNumericTextBoxMessagesDirective=i.LocalizedNumericTextBoxMessagesDirective;i=n(47);t.LocalizedTextBoxMessagesDirective=i.LocalizedTextBoxMessagesDirective;i=n(61);t.LocalizedSliderMessagesDirective=i.LocalizedSliderMessagesDirective;i=n(58);t.LocalizedRangeSliderMessagesDirective=i.LocalizedRangeSliderMessagesDirective;n=n(55);t.LocalizedSwitchMessagesDirective=n.LocalizedSwitchMessagesDirective,function(e){for(var t in e)a(t,e[t])}(t)}],o={},i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=106)}}});
5
+ System.register("@progress/kendo-angular-inputs",["tslib","@angular/core","@angular/common","@progress/kendo-angular-common","@progress/kendo-angular-popup","@progress/kendo-angular-l10n","@angular/forms","rxjs/operators","rxjs","@progress/kendo-common","@progress/kendo-licensing","@progress/kendo-angular-intl","@progress/kendo-drawing"],function(a){var r,s,l,d,c,u,p,h,f,g,m,v,_;function t(e){return e.__useDefault?e.default:e}return{setters:[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){f=t(e)},function(e){g=t(e)},function(e){m=t(e)},function(e){v=t(e)},function(e){_=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;i={},o.m=n=[function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t){e.exports=u},function(e,t){e.exports=d},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isPresent=function(e){return null!=e},o.areSame=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},o.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},o.fitIntoBounds=function(e,t,n){return!o.isPresent(e)||isNaN(e)||e<=t?t:n<=e?n:e}},function(e,t){e.exports=p},function(e,t){e.exports=l},function(e,t){e.exports=f},function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=t(4),d=t(32),n=t(1);l.calculateFixedTrackSize=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},l.calculateTrackSize=function(e,t,n){t=e-((n=void 0===n?!0:n)?2*parseFloat(t):0);return Math.floor(t)},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");e=Math.abs(d.subtract(t,e)),n=Math.floor(d.divide(e,n));return d.add(n,1)},l.calculateValueFromTick=function(e,t){var n=t.max,o=t.min,i=t.smallStep,a=t.reverse,t=t.vertical,i=d.add(o,d.multiply(e,i));return t||a?Math.abs(d.subtract(i,n)):i},l.calculateHandlePosition=function(e){var t=e.handleWidth,n=e.trackWidth,o=e.min,i=e.max,a=e.reverse,e=e.value,t=Math.floor(t/2),i=n/Math.abs(i-o),o=r.isPresent(e)?i*(e-o):o;return a&&(o=n-o),Math.floor(o-t)},l.decreaseValueToStep=function(e,t,n){var o=t.max,i=t.min,a=t.smallStep,t=t.largeStep,t=(n=void 0===n?!1:n)&&t?d.multiply(a,t):a,a=d.subtract(e,i),e=d.remainder(a,t),e=0===e?d.subtract(a,t):d.subtract(a,e);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,t=(n=void 0===n?!1:n)&&t?d.multiply(a,t):a,a=d.subtract(e,i),e=d.remainder(a,t),t=d.add(d.subtract(a,e),t);return l.limitValue(d.add(t,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 r.areSame(e[0],t[0])&&r.areSame(e[1],t[1])},l.elementOffset=function(e){var t=e.getBoundingClientRect(),e=document.documentElement;return{left:t.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:t.top+(window.pageYOffset||e.scrollTop)-(e.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),t=(a?e.pageY-s.top:e.pageX-s.left)*((i-o)/(a?t.clientHeight:t.clientWidth)),o=r||a?i-t:o+t,t=d.fractionLength(n.smallStep),o=d.toFixedPrecision(o,t+1);return l.snapValue(o,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,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:1639665048,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);o.__exportStar(n(92),t),o.__exportStar(n(90),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){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),n=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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);o.__exportStar(n(96),t),o.__exportStar(n(95),t),o.__exportStar(n(94),t),o.__exportStar(n(93),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),i=0,n=(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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),i=0,n=(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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),r=n(1),a=n(5),s=n(21),l=n(12),d=n(4),c=n(88),u=n(3),p=n(2),n=n(87),h=0,p=(o=f,Object.defineProperty(f.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"value",{get:function(){return this._value},set:function(e){this._value=l.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=1<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;"string"==typeof(e=!d.isPresent(e)?"office":e)&&d.isPresent(s.PALETTEPRESETS[e])&&(this.columns=this.columns||s.PALETTEPRESETS[e].columns,e=s.PALETTEPRESETS[e].colors);e="string"==typeof e?e.split(","):e;this._palette=e.map(function(e){return l.parseColor(e,t.format,!1,!1)})},enumerable:!0,configurable:!0}),Object.defineProperty(f.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(f.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),f.prototype.ngOnInit=function(){var e;0===this.colorRows.length&&(e="name"!==this.format?"office":"accessible",this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value))},f.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},f.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},f.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())},f.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case u.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case u.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case u.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case u.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case u.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},f.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},f.prototype.handleCellSelection=function(e,t){this.readonly||(this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0,e=l.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))},f.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},f.prototype.registerOnChange=function(e){this.notifyNgChanged=e},f.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},f.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},f.prototype.isEmpty=function(){return!1},f.prototype.reset=function(){this.focusedCell=null,d.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},f.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},f.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},f.prototype.setRows=function(){d.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},f.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},f.prototype.setHostElementAriaLabel=function(){var e=l.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},f.prototype.handleEnter=function(){var e;d.isPresent(this.focusedCell)&&(e=this.service.getColorAt(this.focusedCell),this.handleCellSelection(e,this.focusedCell))},i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],f.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],f.prototype,"paletteId",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],f.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],f.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],f.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],f.prototype,"columns",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],f.prototype,"palette",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],f.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],f.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],f.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],f.prototype,"tileSize",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],f.prototype,"selectionChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],f.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],f.prototype,"cellSelection",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],f.prototype,"hostTabindex",null),i.__decorate([r.HostBinding("class.k-colorpalette"),i.__metadata("design:type",Boolean)],f.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],f.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],f.prototype,"readonlyAttribute",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],f.prototype,"handleKeydown",null),i.__decorate([r.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],f.prototype,"handleHostBlur",null),o=i.__decorate([r.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return o})},{provide:u.KendoInput,useExisting:r.forwardRef(function(){return o})},c.ColorPaletteService,n.ColorPaletteLocalizationService,{provide:p.LocalizationService,useExisting:n.ColorPaletteLocalizationService},{provide:p.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,c.ColorPaletteService,r.ChangeDetectorRef,r.Renderer2,p.LocalizationService])],f));function f(e,t,n,o,i){var a=this;this.host=e,this.service=t,this.cdr=n,this.renderer=o,this.localizationService=i,this.id="k-colorpalette-"+h++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.cellSelection=new r.EventEmitter,this.hostClasses=!0,this.uniqueId=u.guid(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}t.ColorPaletteComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(0),r=n(1),i=n(5),s=n(7),l=n(14),d=n(2),c=n(3),u=n(9),p=n(12),h=n(4),f=n(33),g=n(89),m=n(42),v=n(13),_=0,d=(o=y,Object.defineProperty(y.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"value",{get:function(){return this._value},set:function(e){this._value=p.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=p.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t;h.isPresent(e)?(t=Number(e),this._tabindex=isNaN(t)?0:t):this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isFocused",{get:function(){return!(!c.isDocumentAvailable()||!h.isPresent(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"alphaSliderValue",{get:function(){if(h.isPresent(this.hsva.value)&&h.isPresent(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&0<this.contrastTool.length},enumerable:!0,configurable:!0}),y.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},y.prototype.ngOnChanges=function(e){c.isChanged("value",e)&&!this.isFocused&&this.updateUI(),c.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},y.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},y.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},y.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},y.prototype.handleDragPress=function(e){this.disabled||this.readonly||!h.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},y.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},y.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)))},y.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;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var o=0,i=0;switch(e.key){case"ArrowRight":o=v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowLeft":o=-v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowUp":i=-v.DRAGHANDLE_MOVE_SPEED;break;case"ArrowDown":i=v.DRAGHANDLE_MOVE_SPEED}var a=parseInt(n.style.top,10)+i,r=parseInt(n.style.left,10)+o;this.renderer.setStyle(n,"top",a+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run(function(){return t.moveDragHandle(r,a)})}},y.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)}))},y.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.backgroundColor=p.getColorFromHue(e),this.setAlphaSliderBackground(this.backgroundColor)},y.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity))},y.prototype.handleInputsValueChange=function(e){e=p.parseColor(e,this.format,this.opacity);this.value!==e&&(this.handleValueChange(e),this.updateUI())},y.prototype.writeValue=function(e){this.value=e,h.isPresent(this.gradientWrapper)&&this.updateUI()},y.prototype.registerOnChange=function(e){this.notifyNgChanged=e},y.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},y.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(y.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=p.parseColor(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),y.prototype.isEmpty=function(){return!1},y.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,o=n.width,i=n.height,n=h.fitIntoBounds(t,0,i),t=h.fitIntoBounds(e,0,o);this.setDragHandleElementPosition(n,t);e=this.hsva.value;e.s=t/o,e.v=1-n/i,this.hsva.next(e),this.updateValues.next(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(p.getColorFromHSV(a.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},y.prototype.updateUI=function(){var e,t;c.isDocumentAvailable()&&(this.hsva.next(this.value?p.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=p.getColorFromHue(this.hsva.value.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel())},y.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},y.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},y.prototype.setAlphaSliderBackground=function(e){var t;h.isPresent(this.alphaSlider)&&(t=this.alphaSlider.track.nativeElement,this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")"))},y.prototype.setHostElementAriaLabel=function(){var e=p.parseColor(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},y.prototype.addEventListeners=function(){var a=this;this.ngZone.runOutsideAngular(function(){var e=a.renderer.listen(a.host.nativeElement,"focusout",function(e){!u.containsFocus(a.host.nativeElement,e.relatedTarget)&&u.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(p.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)})},y.prototype.subscribeChanges=function(){var t=this;this.changeRequestsSubscription=this.updateValues.pipe(l.throttleTime(this.delay)).subscribe(function(e){t.handleValueChange(e)})},y.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},a.__decorate([r.HostBinding("class.k-colorgradient"),a.__metadata("design:type",Boolean)],y.prototype,"hostClasses",void 0),a.__decorate([r.HostBinding("attr.aria-readonly"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],y.prototype,"readonlyAttribute",null),a.__decorate([r.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],y.prototype,"disabledClass",null),a.__decorate([r.HostBinding("attr.id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],y.prototype,"gradientId",null),a.__decorate([r.HostBinding("attr.dir"),a.__metadata("design:type",String)],y.prototype,"direction",void 0),a.__decorate([r.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],y.prototype,"hostTabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],y.prototype,"id",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],y.prototype,"opacity",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],y.prototype,"disabled",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],y.prototype,"readonly",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],y.prototype,"clearButton",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Number)],y.prototype,"delay",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],y.prototype,"value",null),a.__decorate([r.Input(),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[String])],y.prototype,"contrastTool",null),a.__decorate([r.Input(),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[Number])],y.prototype,"tabindex",null),a.__decorate([r.Input(),a.__metadata("design:type",String)],y.prototype,"format",void 0),a.__decorate([r.Output(),a.__metadata("design:type",r.EventEmitter)],y.prototype,"valueChange",void 0),a.__decorate([r.ViewChild("gradientDragHandle",{read:r.ElementRef,static:!1}),a.__metadata("design:type",r.ElementRef)],y.prototype,"gradientDragHandle",void 0),a.__decorate([r.ViewChild("inputs",{static:!1}),a.__metadata("design:type",m.ColorInputComponent)],y.prototype,"inputs",void 0),a.__decorate([r.ViewChild("alphaSlider",{static:!1}),a.__metadata("design:type",f.SliderComponent)],y.prototype,"alphaSlider",void 0),a.__decorate([r.ViewChild("gradientWrapper",{static:!1}),a.__metadata("design:type",r.ElementRef)],y.prototype,"gradientWrapper",void 0),o=a.__decorate([r.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return o})},{provide:c.KendoInput,useExisting:r.forwardRef(function(){return o})},g.ColorGradientLocalizationService,{provide:d.LocalizationService,useExisting:g.ColorGradientLocalizationService},{provide:d.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [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-flat 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,d.LocalizationService])],y));function y(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-"+_++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=v.DEFAULT_OUTPUT_FORMAT,this.valueChange=new r.EventEmitter,this.backgroundColor=v.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new s.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.updateValues=new s.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=i.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}t.ColorGradientComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(97),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(43),n=(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){n=i.call(this,e,t,n)||this;return n.colorPickerLocalization=o,n}t.FlatColorPickerLocalizationService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(1),a=n(5),l=n(7),r=n(2),d=n(3),c=n(22),u=n(98),p=n(16),h=n(12),f=n(4),g=n(20),m=n(19),v=n(41),n=n(40),r=(o=_,Object.defineProperty(_.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"value",{get:function(){return this._value},set:function(e){this._value=h.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),_.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},_.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},_.prototype.ngOnChanges=function(e){d.isChanged("value",e)&&this.setHostElementAriaLabel(),d.isChanged("paletteSettings",e)&&this.setSizingVariables()},_.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(_.prototype,"headerHasContent",{get:function(){return this.preview||1<this.views.length||this.clearButton},enumerable:!0,configurable:!0}),_.prototype.isEmpty=function(){return!1},_.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},_.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},_.prototype.reset=function(){f.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},_.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()})}))},_.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},_.prototype.handleValueChange=function(e){this.value!==e&&(this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e))},_.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},_.prototype.writeValue=function(e){this.value=e},_.prototype.registerOnChange=function(e){this.notifyNgChanged=e},_.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},_.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},_.prototype.resetSelection=function(e){e=new p.ColorPickerCancelEvent(e);this.cancel.emit(e),e.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},_.prototype.setHostElementAriaLabel=function(){var e=h.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)},_.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)},_.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},_.prototype.resetInnerComponentValue=function(){this.selection=null,(this.gradient||this.palette).reset()},_.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},_.prototype.setActiveView=function(){if(f.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]},_.prototype.initDomEvents=function(){var e,t=this;this.host&&(e=this.host.nativeElement,this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focus",function(){t.focused=!0})),t.subscriptions.add(t.renderer.listen(e,"blur",function(){t.focused=!1,t.notifyNgTouched()}))}))},i.__decorate([s.HostBinding("class.k-flatcolorpicker"),s.HostBinding("class.k-coloreditor"),i.__metadata("design:type",Boolean)],_.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("class.k-state-disabled"),s.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],_.prototype,"disabledClass",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],_.prototype,"ariaReadonly",null),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],_.prototype,"direction",void 0),i.__decorate([s.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],_.prototype,"hostTabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],_.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],_.prototype,"format",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],_.prototype,"value",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],_.prototype,"tabindex",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],_.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],_.prototype,"preview",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],_.prototype,"actionsLayout",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],_.prototype,"activeView",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Array)],_.prototype,"views",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],_.prototype,"gradientSettings",null),i.__decorate([s.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],_.prototype,"paletteSettings",null),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"cancel",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"activeViewChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],_.prototype,"actionButtonClick",void 0),i.__decorate([s.ViewChild("header",{static:!1}),i.__metadata("design:type",v.FlatColorPickerHeaderComponent)],_.prototype,"header",void 0),i.__decorate([s.ViewChild("gradient",{static:!1}),i.__metadata("design:type",g.ColorGradientComponent)],_.prototype,"gradient",void 0),i.__decorate([s.ViewChild("palette",{static:!1}),i.__metadata("design:type",m.ColorPaletteComponent)],_.prototype,"palette",void 0),i.__decorate([s.ViewChild("footer",{static:!1}),i.__metadata("design:type",n.FlatColorPickerActionButtonsComponent)],_.prototype,"footer",void 0),o=i.__decorate([s.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:d.KendoInput,useExisting:s.forwardRef(function(){return o})},u.FlatColorPickerService,c.FlatColorPickerLocalizationService,{provide:r.LocalizationService,useExisting:c.FlatColorPickerLocalizationService},{provide:r.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),i.__metadata("design:paramtypes",[u.FlatColorPickerService,s.ElementRef,r.LocalizationService,s.ChangeDetectorRef,s.Renderer2,s.NgZone])],_));function _(e,t,n,o,i,a){var r=this;this.service=e,this.host=t,this.localizationService=n,this.cdr=o,this.renderer=i,this.ngZone=a,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new s.EventEmitter,this.cancel=new s.EventEmitter,this.activeViewChange=new s.EventEmitter,this.actionButtonClick=new s.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new l.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}t.FlatColorPickerComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(50),n=n(30);t.SHARED_DIRECTIVES=[a.InputSeparatorComponent,n.TextAreaDirective];i=o.__decorate([i.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES]})],r);function r(){}t.SharedModule=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),n=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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),n=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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(29),r=n(6),s=n(57),l=n(72),n=n(3),n=o.__decorate([i.NgModule({declarations:[s.LocalizedNumericTextBoxMessagesDirective,a.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],exports:[a.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],imports:[r.CommonModule,n.EventsModule]})],d);function d(){}t.NumericTextBoxModule=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(33),s=n(67),l=n(65),d=n(103),n=n(15),s=o.__decorate([i.NgModule({declarations:[r.SliderComponent,d.SliderCustomMessagesComponent,l.LocalizedSliderMessagesDirective],exports:[r.SliderComponent,d.SliderCustomMessagesComponent,n.LabelTemplateDirective,l.LocalizedSliderMessagesDirective],imports:[a.CommonModule,s.SlidersCommonModule]})],c);function c(){}t.SliderModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),l=n(1),d=n(3),c=n(4),a=n(9),r=n(32),s=n(112),u=n(111),p=n(5),h=n(110),f=n(2),g=n(11),m=n(10),v=n(73),_=n(109),y=n(108),b=n(31),C=["min","max","step","decimals"],k={decimals:null,max:null,min:null,step:1},f=(o=S,Object.defineProperty(S.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),S.prototype.ngOnInit=function(){var t=this;this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(p.NgControl,null)},S.prototype.ngOnChanges=function(t){d.anyChanged(C,t,!1)&&this.parseOptions(C.filter(function(e){return t[e]})),this.verifySettings(),d.anyChanged(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?u.createMinValidator(this.min):_.noop,this.maxValidateFn=this.rangeValidation?s.createMaxValidator(this.max):_.noop,this.ngValidatorChange()),d.anyChanged(["autoCorrect","decimals","min"],t)&&delete this.numericRegex,d.anyChanged(["value","format"],t,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},S.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)},S.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},S.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},S.prototype.writeValue=function(e){this.verifyValue(e);e=this.restrictModelValue(e);this.value=e,this.setInputValue()},S.prototype.registerOnChange=function(e){this.ngChange=e},S.prototype.registerOnTouched=function(e){this.ngTouched=e},S.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},S.prototype.focus=function(){a.invokeElementMethod(this.numericInput,"focus")},S.prototype.blur=function(){a.invokeElementMethod(this.numericInput,"blur")},S.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(S.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t,n;this.isFocused!==e&&this.numericWrap&&(t=this.numericWrap.nativeElement,n=this.numericInput.nativeElement,e?(this.renderer.addClass(t,"k-state-focused"),this.isDisabled||this.renderer.removeClass(n,"k-formatted-value")):(this.renderer.removeClass(t,"k-state-focused"),this.renderer.addClass(n,"k-formatted-value")),this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&0<=this.decimals},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),S.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||_.isRightClick(t)||(b.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,v.INITIAL_SPIN_DELAY):this.setInputValue())},S.prototype.updateValue=function(e){var t=this;c.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},S.prototype.replaceNumpadDotValue=function(){var e,t,n,o,i,a=this.inputValue||"";return this.previousSelection&&(t=(e=this.numericInput.nativeElement).selectionStart,n=e.selectionEnd,o=(i=this.previousSelection).start,i=i.end,e.value=a=a.substring(0,o)+this.decimalSeparator+a.substring(i),this.setSelection(t,n)),a},S.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=_.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},S.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){n.spin(e,v.SPIN_DELAY)},t),this.addStep(e)},S.prototype.addStep=function(e){e=r.add(this.value||0,this.step*e),e=this.limitValue(e);e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)},S.prototype.setSelection=function(e,t){this.focused&&a.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},S.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(_.isNumber(this.max)&&e>this.max&&(t=this.max),_.isNumber(this.min)&&e<this.min&&(t=this.min)),t},S.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,o=t.selectionEnd,i=t.value,a=e,r=!1;if(!this.isInRange(e)){var s=i.length-String(this.inputValue).length,l=this.min,d=this.max,c=_.isNumber(d),u=_.isNumber(l),p=void 0,h=void 0,t=e;if(0===n&&this.inputValue.substr(1)===i)return{selectionEnd:o,selectionStart:n,value:null};c&&d<e?0<e?h=!0:p=d:u&&e<l&&(0<e?p=l:h=!0),p?(l=this.tryPadValue(e,p))&&_.decimalPart(e)!==_.decimalPart(p)&&(t=l,r=!0):h&&this.inputValue&&n!==i.length&&(t=parseFloat(i.substr(0,n)+i.substr(n+s))),a=this.limitValue(t),r=(r||a!==t)&&this.previousSelection&&0<this.previousSelection.end-this.previousSelection.start+s}return{selectionEnd:r?String(a).length:o,selectionStart:n,value:a}},S.prototype.tryPadValue=function(e,t){var n,o=String(Math.floor(t)).length,t=_.pad(e,o),o=_.pad(e,o+1);return this.isInRange(t)?n=t:this.isInRange(o)&&(n=o),n},S.prototype.isInRange=function(e){return!_.isNumber(e)||(!_.isNumber(this.min)||this.min<=e)&&(!_.isNumber(this.max)||e<=this.max)},S.prototype.restrictModelValue=function(e){e=this.restrictDecimals(e,!0);return e=this.autoCorrect&&this.limitValue(e)!==e?null:e},S.prototype.restrictDecimals=function(e,t){var n,o,i=e;return e&&this.hasDecimals&&(n=this.decimals,o=String(e),t||v.EXPONENT_REGEX.test(o)?i=r.toFixedPrecision(e,n):(o=(e=o.split(v.POINT))[1])&&o.length>n&&(o=o.substr(0,n),i=parseFloat(""+e[0]+v.POINT+o))),i},S.prototype.formatInputValue=function(e){var t=String(e),n=v.EXPONENT_REGEX.exec(t);return(t=n?e.toFixed(r.limitPrecision(parseInt(n[1],10))):t).replace(v.POINT,this.decimalSeparator)},S.prototype.formatValue=function(e,t){return null!==e&&_.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},S.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);t=this.formatValue(e,t);this.elementValue=t,this.inputValue=t},S.prototype.verifySettings=function(){if(l.isDevMode()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+v.MIN_DOC_LINK+" and "+v.MAX_DOC_LINK+".")},S.prototype.verifyValue=function(e){if(l.isDevMode()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},S.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],o=this[n];if("string"==typeof o){var i=parseFloat(o),a=!isNaN(i);if(l.isDevMode()&&!a&&""!==o)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(o)+" was set.");this[n]=a?i:k[n]}}},S.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},S.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){e=e.split(this.decimalSeparator)[1];return e&&e.length>this.decimals&&e.lastIndexOf("0")===e.length-1}},S.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},S.prototype.selectCaret=function(){var e=_.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,e=t.substring(0,e);this.setInputValue(),e.length?(e=_.extractSignificantNumericChars(e,this.decimalSeparator),e=this.adjustSignificantChars(t,e),this.setSelection(e,e)):this.setSelection(0,0)},S.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){e=n[0].length,n=n[1].length;return e===t?n-1:n}return 0},S.prototype.adjustSignificantChars=function(e,t){e=this.numberOfLeadingZeroes(e);return 0<e?Math.max(0,t-e):t},i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"autoCorrect",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],S.prototype,"format",null),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"max",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"min",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"decimals",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],S.prototype,"placeholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"step",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"spinners",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"rangeValidation",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],S.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"changeValueOnScroll",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],S.prototype,"selectOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],S.prototype,"maxlength",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],S.prototype,"valueChange",void 0),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],S.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],S.prototype,"onBlur",void 0),i.__decorate([l.ViewChild("numericInput",{static:!0}),i.__metadata("design:type",l.ElementRef)],S.prototype,"numericInput",void 0),i.__decorate([l.ViewChild("numericWrap",{static:!0}),i.__metadata("design:type",l.ElementRef)],S.prototype,"numericWrap",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],S.prototype,"direction",void 0),i.__decorate([l.HostBinding("class.k-widget"),l.HostBinding("class.k-numerictextbox"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],S.prototype,"widgetClasses",null),o=i.__decorate([l.Component({exportAs:"kendoNumericTextBox",providers:[f.LocalizationService,{provide:f.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:p.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:p.NG_VALIDATORS,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:d.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <span\n class="k-numeric-wrap"\n [class.k-state-disabled]="disabled"\n [kendoEventsOutsideAngular]="{ mousewheel: handleWheel, DOMMouseScroll: handleWheel }"\n #numericWrap>\n <input\n role="spinbutton"\n class="k-input k-formatted-value"\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 class="k-select" *ngIf="spinners" [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }">\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Up"\n class="k-link k-link-increase"\n >\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Down"\n class="k-link k-link-decrease"\n >\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),i.__metadata("design:paramtypes",[h.IntlService,l.Renderer2,f.LocalizationService,l.Injector,l.NgZone,l.ChangeDetectorRef,l.ElementRef])],S));function S(e,t,n,o,i,a,r){var s=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=o,this.ngZone=i,this.changeDetector=a,this.hostElement=r,this.focusableId="k-"+d.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.ArrowDirection=y.ArrowDirection,this.arrowDirection=y.ArrowDirection.None,this.inputValue="",this.minValidateFn=_.noop,this.maxValidateFn=_.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=_.noop,this.ngTouched=_.noop,this.ngValidatorChange=_.noop,this.increasePress=function(e){s.arrowPress(y.ArrowDirection.Up,e)},this.decreasePress=function(e){s.arrowPress(y.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(s.spinTimeout),s.arrowDirection!==y.ArrowDirection.None&&(s.arrowDirection=y.ArrowDirection.None,s.changeDetector.detectChanges())},this.handlePaste=function(){s.isPasted=!0},this.handleInput=function(){var e=s.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,o=e.value;if(s.pressedKey===d.Keys.NumpadDecimal&&(o=s.replaceNumpadDotValue()),s.isPasted&&(o=s.formatInputValue(s.intl.parseNumber(o))),!s.isValid(o))return e.value=s.inputValue,void s.setSelection(t-1,n-1);var i,a=s.intl.parseNumber(o),r=s.restrictDecimals(a);s.autoCorrect&&(r=(i=s.limitInputValue(r)).value,t=i.selectionStart,n=i.selectionEnd),a!==r||s.hasTrailingZeros(o)||!s.focused?(s.setInputValue(r),s.setSelection(t,n)):s.inputValue=o,s.isPasted&&(e.value=s.inputValue),s.updateValue(r),s.previousSelection=null,s.isPasted=!1},this.handleDragEnter=function(){s.focused||s.isDisabled||s.setInputValue(s.value,!0)},this.handleMouseDown=function(){s.mouseDown=!0},this.handleFocus=function(){var e;s.focused||(s.focused=!0,s.isDisabled)||(e=s.selectOnFocus||!s.mouseDown,s.ngZone.runOutsideAngular(function(){setTimeout(function(){e?s.selectAll():s.selectCaret()},0)})),s.mouseDown=!1,d.hasObservers(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.inputValue!==s.elementValue&&s.handleInput(),s.setInputValue(),(d.hasObservers(s.onBlur)||c.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.ngTouched(),s.onBlur.emit()})},this.handleKeyDown=function(e){var t;s.isDisabled||(e.keyCode===d.Keys.ArrowDown?t=-1:e.keyCode===d.Keys.ArrowUp&&(t=1),t&&s.step&&(e.preventDefault(),s.addStep(t)),t=s.numericInput.nativeElement,s.previousSelection={end:t.selectionEnd,start:t.selectionStart},s.pressedKey=e.keyCode)},this.handleWheel=function(e){s.focused&&!s.isDisabled&&s.changeValueOnScroll&&(e.preventDefault(),e=_.getDeltaFromMouseWheel(e),s.addStep(e))},g.validatePackage(m.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}t.NumericTextBoxComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),r=n(1),a=n(5),s=n(3),l=n(4),d=n(2),c=n(7),u=n(14),i=(o=p,Object.defineProperty(p.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),p.prototype.writeValue=function(e){this.elementValue=e,this.resize()},p.prototype.registerOnChange=function(e){this.ngChange=e},p.prototype.registerOnTouched=function(e){this.ngTouched=e},p.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},p.prototype.ngOnInit=function(){var t=this,e=this.element.nativeElement;this.zone.runOutsideAngular(function(){t.listeners=[t.renderer.listen(e,"focus",t.handleFocus.bind(t)),t.renderer.listen(e,"blur",t.handleBlur.bind(t)),t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})],s.isDocumentAvailable()&&t.autoSize&&(t.resizeSubscription=c.fromEvent(window,"resize").pipe(u.debounceTime(50)).subscribe(function(){return t.resize()})),t.inputSubscription=c.fromEvent(e,"input").subscribe(t.handleInput.bind(t))}),this.control=this.injector.get(a.NgControl,null)},p.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.resize()},p.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(p.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),p.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},p.prototype.resize=function(){var e,t;this.autoSize&&(e=this.element.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px",(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},p.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||s.hasObservers(this.onValueChange)||s.hasObservers(this.valueChange))&&this.zone.run(function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()}),this.resize()},p.prototype.handleFocus=function(){var e=this;s.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()})},p.prototype.handleBlur=function(){var e=this;(s.hasObservers(this.onBlur)||l.requiresZoneOnBlur(this.control))&&this.zone.run(function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()})},i.__decorate([r.HostBinding("class.k-textarea"),i.__metadata("design:type",Boolean)],p.prototype,"elementClass",void 0),i.__decorate([r.HostBinding("class.k-autofill"),i.__metadata("design:type",Boolean)],p.prototype,"autofillClass",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],p.prototype,"direction",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],p.prototype,"valueChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],p.prototype,"autoSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],p.prototype,"value",void 0),o=i.__decorate([r.Directive({providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return o}),multi:!0},{provide:s.KendoInput,useExisting:r.forwardRef(function(){return o})}],selector:"textarea[kendoTextArea]"}),i.__param(5,r.Optional()),i.__param(5,r.Inject(d.RTL)),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],p));function p(e,t,n,o,i,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=o,this.injector=i,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new r.EventEmitter,this.autoSize=!1,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}t.TextAreaDirective=i},function(e,t){e.exports=g},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.limitPrecision=function(e){return Math.min(e,20)},o.fractionLength=function(e){return(String(e).split(".")[1]||"").length};function i(e,t){return Math.max(o.fractionLength(e),o.fractionLength(t))}o.toFixedPrecision=function(e,t){t=o.limitPrecision(t);return parseFloat(e.toFixed(t))},o.add=function(e,t){var n=i(e,t);return o.toFixedPrecision(e+t,n)},o.subtract=function(e,t){return o.add(e,-t)},o.multiply=function(e,t){var n=o.fractionLength(e)+o.fractionLength(t);return o.toFixedPrecision(e*t,n)},o.divide=function(e,t){if(0===t)return NaN;var n=i(e,t),n=Math.pow(10,n);return n*e/(n*t)},o.remainder=function(e,t){return Math.abs(o.subtract(e,o.multiply(t,Math.floor(o.divide(e,t)))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(0),a=n(1),r=n(5),l=n(7),d=n(14),c=n(8),u=n(115),p=n(2),h=n(4),f=n(8),g=n(9),m=n(3),a=(s=n(78).SliderBase,i.__extends(v,s),o=v,Object.defineProperty(v.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"currentValue",{get:function(){return h.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),v.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},v.prototype.blur=function(){this.focusChangedProgrammatically=!0,g.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},v.prototype.ngOnChanges=function(e){var t=this;m.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(d.take(1)).subscribe(function(){t.sizeComponent(!1)})},v.prototype.ngAfterViewInit=function(){var e=this;m.isDocumentAvailable()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,function(){return e.increaseValue()}),this.setValueChangeInterval(this.decreaseButton.nativeElement,function(){return e.decreaseValue()})),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent(!1)}),this.attachElementEventHandlers())},v.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(v.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),v.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},v.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(f.eventValue(e,this.track.nativeElement,this.getProps()))},v.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},v.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},v.prototype.registerOnChange=function(e){this.ngChange=e},v.prototype.registerOnTouched=function(e){this.ngTouched=e},v.prototype.changeValue=function(e){var t=this;h.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()})},v.prototype.sizeComponent=function(e){var t,n,o,i,a;m.isDocumentAvailable()&&(t=this.wrapper.nativeElement,a=this.track.nativeElement,n=this.sliderSelection.nativeElement,o=this.draghandle.nativeElement,i=this.ticks?this.ticksContainer.nativeElement:null,e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([a,n,o,i,this.hostElement.nativeElement]),i=this.getProps(),(a=new u.SliderModel(i,t,a,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(o),a.positionSelection(o,n),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(v.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(v.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}),v.prototype.setValueChangeInterval=function(o,i){var a=this;this.ngZone.runOutsideAngular(function(){var e=l.fromEvent(o,"mousedown"),t=l.fromEvent(o,"mouseup"),n=l.fromEvent(o,"mouseout"),e=e.pipe(d.filter(function(e){return 0===e.button&&!a.isDisabled}),d.concatMap(function(){return l.interval(150).pipe(d.startWith(-1),d.takeUntil(l.merge(t,n)))})).subscribe(function(){a.isFocused||g.invokeElementMethod(a.draghandle,"focus"),i()});a.subscriptions.add(e)})},v.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:c.trimValue(this.max,this.min,this.value),vertical:this.vertical}},v.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandle.nativeElement&&t.handleBlur(),n=!1):o||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){o=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){o=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===m.Keys.Tab}))})},i.__decorate([a.Input(),i.__metadata("design:type",String)],v.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],v.prototype,"dragHandleTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],v.prototype,"incrementTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],v.prototype,"animate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],v.prototype,"decrementTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],v.prototype,"showButtons",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],v.prototype,"value",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],v.prototype,"tabIndex",null),i.__decorate([a.ViewChild("draghandle",{static:!0}),i.__metadata("design:type",a.ElementRef)],v.prototype,"draghandle",void 0),i.__decorate([a.ViewChild("decreaseButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],v.prototype,"decreaseButton",void 0),i.__decorate([a.ViewChild("increaseButton",{static:!1}),i.__metadata("design:type",a.ElementRef)],v.prototype,"increaseButton",void 0),o=i.__decorate([a.Component({exportAs:"kendoSlider",providers:[p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return o})},{provide:m.KendoInput,useExisting:a.forwardRef(function(){return o})}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <span\n #decreaseButton\n *ngIf="showButtons"\n class="k-button k-button-decrease"\n [title]="decrementMessage"\n role="presentation"\n >\n <span class="k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical"\n >\n </span>\n </span>\n <span\n *ngIf="showButtons"\n #increaseButton\n class="k-button k-button-increase"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.aria-label]="currentValue"\n >\n <span class="k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical"\n >\n </span>\n </span>\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 <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[p.LocalizationService,a.Injector,a.Renderer2,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],v));function v(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=o,r.changeDetector=i,r.hostElement=a,r.focusableId="k-"+m.guid(),r.animate=!0,r.showButtons=!0,r.value=r.min,r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t=e.target;r.isDisabled||f.isButton(t)||f.isButton(t.parentNode)||(e=f.eventValue(e,r.track.nativeElement,r.getProps()),r.changeValue(e)),g.invokeElementMethod(r.draghandle,"focus")},r.onKeyDown=function(e){var t=r.getProps(),n=t.max,o=t.min,i=r.keyBinding[e.keyCode];!r.isDisabled&&i&&(t=i(t),r.changeValue(c.trimValue(n,o,t)),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.decreaseValue=function(){r.changeValue(f.decreaseValueToStep(r.value,r.getProps()))},r.increaseValue=function(){r.changeValue(f.increaseValueToStep(r.value,r.getProps()))},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(m.hasObservers(r.onBlur)||h.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}t.SliderComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(5),r=n(7),s=n(3),l=n(2),d=n(11),c=n(10),u=n(18),n=n(17),l=(Object.defineProperty(p.prototype,"errorClass",{get:function(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"disabledClass",{get:function(){return!!this.control&&!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),p.prototype.ngAfterViewInit=function(){this.setDescription()},p.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},p.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},p.prototype.disabledControl=function(){return this.control.disabled},p.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every(function(e){return e.nativeElement.hasAttribute("disabled")})},p.prototype.validateFormControl=function(e){if(i.isDevMode()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},p.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every(function(e){return e.name===n&&t.isRadioControl(e)})},p.prototype.isRadioControl=function(e){return e.valueAccessor instanceof a.RadioControlValueAccessor},p.prototype.updateDescription=function(){var n=this,e=this.findControlElements();e&&e.forEach(function(e){var t;(0<n.errorChildren.length||0<n.hintChildren.length)&&(t=n.generateDescriptionIds(e),n.renderer.setAttribute(e,"aria-describedby",t))})},p.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&s.isDocumentAvailable()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map(function(e){return e.nativeElement})},p.prototype.generateDescriptionIds=function(e){var t=new Set;return e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach(function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}),this.hintChildren.forEach(function(e){t.add(e.id)}),this.errorChildren.forEach(function(e){t.add(e.id)}),Array.from(t).join(" ")},p.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,e=e.pristine;return t||n&&e},p.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},p.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe(function(){return e.updateDescription()})),this.subscriptions.add(this.hintChildren.changes.subscribe(function(){return e.updateDescription()}))},o.__decorate([i.HostBinding("class.k-form-field"),o.__metadata("design:type",Boolean)],p.prototype,"hostClass",void 0),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],p.prototype,"direction",void 0),o.__decorate([i.HostBinding("class.k-form-field-error"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],p.prototype,"errorClass",null),o.__decorate([i.HostBinding("class.k-form-field-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],p.prototype,"disabledClass",null),o.__decorate([i.ContentChildren(a.NgControl,{descendants:!0}),o.__metadata("design:type",i.QueryList),o.__metadata("design:paramtypes",[i.QueryList])],p.prototype,"formControls",null),o.__decorate([i.ContentChildren(a.NgControl,{read:i.ElementRef,descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"controlElementRefs",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!0}),o.__metadata("design:type",Object)],p.prototype,"kendoInput",void 0),o.__decorate([i.ContentChildren(u.ErrorComponent,{descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"errorChildren",void 0),o.__decorate([i.ContentChildren(n.HintComponent,{descendants:!0}),o.__metadata("design:type",i.QueryList)],p.prototype,"hintChildren",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"showHints",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"orientation",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"showErrors",void 0),o.__decorate([i.Component({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.formfield"}]}),o.__metadata("design:paramtypes",[i.Renderer2,l.LocalizationService,i.ElementRef])],p));function p(e,t,n){var o=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new r.Subscription,this.rtl=!1,d.validatePackage(c.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;o.rtl=e,o.direction=o.rtl?"rtl":"ltr"}))}t.FormFieldComponent=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(34),s=n(17),n=n(18),a=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=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),n=(o.__decorate([n.HostBinding("class.k-radio"),o.__metadata("design:type",Boolean)],i.prototype,"kendoClass",void 0),o.__decorate([n.Directive({selector:"input[kendoRadioButton]"})],i));function i(){this.kendoClass=!0}t.RadioButtonDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),n=(o.__decorate([n.HostBinding("class.k-checkbox"),o.__metadata("design:type",Boolean)],i.prototype,"kendoClass",void 0),o.__decorate([n.Directive({selector:"input[kendoCheckBox]"})],i));function i(){this.kendoClass=!0}t.CheckBoxDirective=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(39),s=(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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),i=(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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),n=n(2),n=(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\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),n=n(2),n=(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 (click)="onViewButtonClick(view)"\n class="k-button k-icon-button k-flat"\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 class="k-button k-icon-button k-flat 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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(12),r=n(4),s=n(3),l=n(7),d=n(2),n=n(29),d=(Object.defineProperty(c.prototype,"isFocused",{get:function(){if(!s.isDocumentAvailable()||!r.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rgbaInputValid",{get:function(){var t=this;return Object.keys(this.rgba).every(function(e){return r.isPresent(t.rgba[e])})},enumerable:!0,configurable:!0}),c.prototype.ngAfterViewInit=function(){this.initDomEvents()},c.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},c.prototype.ngOnChanges=function(e){r.isPresent(e.value)&&!this.isFocused&&(this.hex=a.parseColor(this.value,"hex",this.opacity),this.rgba=a.getRGBA(this.value),this.rgba.a=a.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(c.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),c.prototype.handleRgbaValueChange=function(){var e=a.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=a.getRGBA(this.value),this.hex=a.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},c.prototype.handleHexValueChange=function(e){this.hex=e;e=a.parseColor(e,"rgba",this.opacity);r.isPresent(e)&&e!==this.value&&(this.value=e,this.rgba=a.getRGBA(e),this.valueChange.emit(e))},c.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=a.getRGBA(this.value))},c.prototype.handleHexInputBlur=function(){this.hex=a.parseColor(this.value,"hex",this.opacity)},c.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},c.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",function(){return e.toggleFormatView()}))},o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"focusableId",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"formatView",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"opacity",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"disabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"readonly",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"valueChange",void 0),o.__decorate([i.HostBinding("class.k-colorgradient-inputs"),i.HostBinding("class.k-hstack"),o.__metadata("design:type",Boolean)],c.prototype,"colorInputClass",void 0),o.__decorate([i.ViewChild("opacityInput",{static:!1}),o.__metadata("design:type",n.NumericTextBoxComponent)],c.prototype,"opacityInput",void 0),o.__decorate([i.ViewChild("hexInput",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"hexInput",void 0),o.__decorate([i.ViewChild("blueInput",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"blueInput",void 0),o.__decorate([i.ViewChild("toggleFormatButton",{static:!1}),o.__metadata("design:type",i.ElementRef)],c.prototype,"toggleFormatButton",void 0),o.__decorate([i.Component({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-icon-button k-flat"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\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-textbox k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,d.LocalizationService])],c));function c(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+s.guid(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new i.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new l.Subscription}t.ColorInputComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=n(2),n=(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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),r=n(5),s=n(23),l=n(45),d=n(11),c=n(3),u=n(2),p=n(10),h=n(21),f=n(16),g=n(12),m=n(4),v=n(43),_=n(13),y=0,u=(o=b,Object.defineProperty(b.prototype,"value",{get:function(){return this._value},set:function(e){this._value=g.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isOpen",{get:function(){return m.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"iconStyles",{get:function(){return this.iconClass||(this.icon?"k-icon k-i-"+this.icon:void 0)},enumerable:!0,configurable:!0}),b.prototype.ngOnInit=function(){var e="name"!==this.format?_.DEFAULT_PRESET:_.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&h.PALETTEPRESETS[t]?h.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},b.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=g.parseColor(this.value,this.format,this.gradientSettings.opacity))},b.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(b.prototype,"colorPickerAriaLabel",{get:function(){return this.value||this.localizationService.get("colorPickerNoColor")},enumerable:!0,configurable:!0}),b.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},b.prototype.togglePopup=function(){this.toggleWithEvents(!this.isOpen),this.focus()},b.prototype.handleActiveColorClick=function(){this.focus();var e=new f.ActiveColorClickEvent(this.value);this.activeColorClick.emit(e),e.isOpenPrevented()&&!this.isOpen||this.togglePopup()},b.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},b.prototype.handleWrapperFocus=function(){this.isFocused||(this.isFocused=!0,this.onFocus.emit())},b.prototype.blur=function(){this.wrapper.nativeElement.blur()},b.prototype.handleWrapperBlur=function(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())},b.prototype.reset=function(){m.isPresent(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},b.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=m.isPresent(e)?e:!this.isOpen)&&this.openPopup())},b.prototype.handleValueChange=function(e){e=g.parseColor(e,this.format,this.gradientSettings.opacity);e!==this.value&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e))},b.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},b.prototype.writeValue=function(e){this.value=e},b.prototype.registerOnChange=function(e){this.notifyNgChanged=e},b.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},b.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},b.prototype.handleWrapperKeyDown=function(e){e.keyCode!==c.Keys.ArrowDown&&e.keyCode!==c.Keys.Enter||(e.preventDefault(),this.toggleWithEvents(!0))},b.prototype.handlePopupKeyDown=function(e){var t,n;e.keyCode===c.Keys.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),e.keyCode===c.Keys.Tab&&(t=(e.shiftKey?this.firstFocusableElement:this.lastFocusableElement).nativeElement,n=(e.shiftKey?this.lastFocusableElement:this.firstFocusableElement).nativeElement,e.target===t&&(e.preventDefault(),n.nativeElement.focus()))},b.prototype.isEmpty=function(){return!1},b.prototype.popupBlurInvalid=function(e){var t=this.popupRef.popupElement.contains(e.relatedTarget),e=e.relatedTarget===this.wrapper.nativeElement;return!this.isFocused||e||t},b.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new f.ColorPickerOpenEvent,this.open.emit(t)):(t=new f.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},b.prototype.focusFirstElement=function(){var e=this;this.ngZone.runOutsideAngular(function(){setTimeout(function(){(e.flatColorPicker.gradient?e.flatColorPicker.gradient.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()})})},b.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,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.wrapper.nativeElement.focus({preventScroll:!0})})},b.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(b.prototype,"firstFocusableElement",{get:function(){return!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton?this.flatColorPicker.gradient?this.flatColorPicker.gradient.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(b.prototype,"lastFocusableElement",{get:function(){return this.preview?this.flatColorPicker.footer.lastButton:this.flatColorPicker.palette?this.flatColorPicker.palette.host:this.gradientSettings.opacity?this.flatColorPicker.gradient.inputs.opacityInput.numericInput:this.flatColorPicker.gradient.inputs.blueInput},enumerable:!0,configurable:!0}),i.__decorate([a.HostBinding("class.k-colorpicker"),i.__metadata("design:type",Boolean)],b.prototype,"hostClasses",void 0),i.__decorate([a.HostBinding("attr.dir"),i.__metadata("design:type",String)],b.prototype,"direction",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],b.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],b.prototype,"views",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],b.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],b.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],b.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],b.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],b.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],b.prototype,"popupSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],b.prototype,"paletteSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],b.prototype,"gradientSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],b.prototype,"icon",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],b.prototype,"iconClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],b.prototype,"clearButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],b.prototype,"tabindex",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],b.prototype,"preview",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],b.prototype,"actionsLayout",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],b.prototype,"valueChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],b.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],b.prototype,"close",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],b.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],b.prototype,"onBlur",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],b.prototype,"cancel",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],b.prototype,"activeColorClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],b.prototype,"activeViewChange",void 0),i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),i.__metadata("design:type",a.ViewContainerRef)],b.prototype,"container",void 0),i.__decorate([a.ViewChild("wrapper",{static:!0}),i.__metadata("design:type",a.ElementRef)],b.prototype,"wrapper",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],b.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("flatColorPicker",{static:!1}),i.__metadata("design:type",s.FlatColorPickerComponent)],b.prototype,"flatColorPicker",void 0),o=i.__decorate([a.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return o})},{provide:c.KendoInput,useExisting:a.forwardRef(function(){return o})},v.ColorPickerLocalizationService,{provide:u.LocalizationService,useExisting:v.ColorPickerLocalizationService},{provide:u.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\n #wrapper\n [ngClass]="{\n \'k-picker-wrap\': true,\n \'k-state-disabled\': this.disabled,\n \'k-state-focused\': this.isFocused\n }"\n role="listbox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.aria-disabled]="disabled"\n [attr.aria-label]="colorPickerAriaLabel"\n [id]="focusableId"\n [attr.tabindex]="tabindex"\n (focus)="handleWrapperFocus()"\n (blur)="handleWrapperBlur()"\n (mousedown)="$event.preventDefault()"\n (keydown)="handleWrapperKeyDown($event)"\n >\n <span *ngIf="!iconStyles" class="k-selected-color" [style.background]="value" (click)="handleActiveColorClick()">\n <span class="k-icon k-i-line" *ngIf="!value"></span>\n </span>\n <span *ngIf="iconStyles" class="k-tool-icon" [ngClass]="iconStyles" (click)="handleActiveColorClick()">\n <span class="k-selected-color" [style.background-color]="value"></span>\n </span>\n <span class="k-select" (click)="togglePopup()">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\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 (focusout)="handlePopupBlur($event)"\n (cancel)="handleCancelEvent($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[l.PopupService,a.ChangeDetectorRef,u.LocalizationService,a.NgZone])],b));function b(e,t,n,o){var i=this;this.popupService=e,this.cdr=t,this.localizationService=n,this.ngZone=o,this.hostClasses=!0,this.focusableId="k-colorpicker-"+y++,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 a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.cancel=new a.EventEmitter,this.activeColorClick=new a.EventEmitter,this.activeViewChange=new a.EventEmitter,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},d.validatePackage(p.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;i.direction=e?"rtl":"ltr"})}t.ColorPickerComponent=u},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(45),s=n(3),l=n(28),d=n(27),c=n(44),u=n(19),p=n(20),h=n(42),f=n(41),g=n(40),m=n(23),v=n(86),_=n(38),y=n(85),b=n(84),C=n(83),n=n(82),v=[c.ColorPickerComponent,u.ColorPaletteComponent,p.ColorGradientComponent,m.FlatColorPickerComponent,_.LocalizedColorPickerMessagesDirective,v.ColorPickerCustomMessagesComponent],n=[h.ColorInputComponent,y.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,g.FlatColorPickerActionButtonsComponent,n.ColorContrastSvgComponent],s=o.__decorate([i.NgModule({declarations:[v,n],exports:[v],imports:[l.SliderModule,d.NumericTextBoxModule,a.CommonModule,r.PopupModule,s.DraggableModule]})],k);function k(){}t.ColorPickerModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),n=(o.__decorate([n.HostBinding("class.k-textarea-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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,i=n(0),l=n(1),a=n(7),r=n(14),d=n(5),c=n(3),u=n(2),p=n(99),h=n(4),f=n(9),g=n(9),m=n(11),v=n(10),_={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},u=(s=p.TextFieldsBase,i.__extends(y,s),o=y,Object.defineProperty(y.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),y.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(o?(g.closest(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),o=!1):n||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){o=e.keyCode===c.Keys.Tab}))})},y.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(d.NgControl,null),c.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=a.fromEvent(window,"resize").pipe(r.debounceTime(50)).subscribe(function(){return t.resize()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},y.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.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&&(h.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},y.prototype.ngAfterViewChecked=function(){this.resize()},y.prototype.writeValue=function(e){this.value=e},y.prototype.registerOnChange=function(e){this.ngChange=e},y.prototype.registerOnTouched=function(e){this.ngTouched=e},y.prototype.updateValue=function(e){var t=this;h.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},y.prototype.ngOnDestroy=function(){s.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(y.prototype,"resizableClass",{get:function(){return _[this.resizable]},enumerable:!0,configurable:!0}),y.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},y.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},y.prototype.resize=function(){var e,t;"auto"===this.resizable&&(e=this.input.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px"),(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Object.defineProperty(y.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e&&!this.disabled?this.renderer.addClass(t,"k-state-focus"):this.renderer.removeClass(t,"k-state-focus"),this._isFocused=e)},enumerable:!0,configurable:!0}),y.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},y.prototype.setSelection=function(e,t){this.isFocused&&f.invokeElementMethod(this.input,"setSelectionRange",e,t)},y.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"focusableId",void 0),i.__decorate([l.HostBinding("class.k-textarea"),i.__metadata("design:type",Boolean)],y.prototype,"hostClass",void 0),i.__decorate([l.HostBinding("class.k-flex-col"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],y.prototype,"flowCol",null),i.__decorate([l.HostBinding("class.k-flex-row"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],y.prototype,"flowRow",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"flow",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"rows",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"cols",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"maxlength",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],y.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],y.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],y.prototype,"resizable",void 0),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],y.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],y.prototype,"onBlur",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],y.prototype,"valueChange",void 0),o=i.__decorate([l.Component({exportAs:"kendoTextArea",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.textarea"},{provide:d.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:c.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n '}),i.__metadata("design:paramtypes",[u.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],y));function y(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localizationService=e,r.ngZone=t,r.changeDetector=n,r.renderer=o,r.injector=i,r.hostElement=a,r.focusableId="k-"+c.guid(),r.hostClass=!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.handleInput=function(e){e=e.target.value;r.updateValue(e),r.resize()},r.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),c.hasObservers(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),c.hasObservers(r.inputFocus)&&(r.focusChangedProgrammatically||r.ngZone.run(function(){r.inputFocus.emit()})),r.ngZone.run(function(){r.isFocused=!0}))},m.validatePackage(v.packageMetadata),r.direction=e.rtl?"rtl":"ltr",r}t.TextAreaComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(48),s=n(3),l=n(47),n=n(24),n=o.__decorate([i.NgModule({declarations:[r.TextAreaComponent,l.TextAreaSuffixComponent],exports:[r.TextAreaComponent,s.EventsModule,l.TextAreaSuffixComponent,n.SHARED_DIRECTIVES],imports:[a.CommonModule,s.EventsModule,n.SharedModule]})],d);function d(){}t.TextAreaModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),n=(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=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(52),s=(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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),i=(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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(31);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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(53),a=n(9),r=n(5),l=n(1),d=n(11),c=n(10),u=n(9),p=n(4),h=n(3),f=n(26),g=n(25),m=n(2),v=n(53),m=(o=_,Object.defineProperty(_.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),_.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(r.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},_.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(o?(a.closest(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),o=!1):n||t.clearButtonClicked||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){o=e.keyCode===h.Keys.Tab}))})},_.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},_.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},_.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},_.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},_.prototype.clearTitle=function(){return this.localizationService.get("clear")},_.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},_.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},_.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},_.prototype.registerOnChange=function(e){this.ngChange=e},_.prototype.registerOnTouched=function(e){this.ngTouched=e},_.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},_.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)},_.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(_.prototype,"successIconClasses",{get:function(){return this.successIcon?"k-text-success "+this.successIcon:"k-text-success k-icon k-i-check-outline"},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"errorIconClasses",{get:function(){return this.errorIcon?"k-text-error "+this.errorIcon:"k-text-error k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon||"k-icon k-i-close-circle"},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),_.prototype.setSelection=function(e,t){this.isFocused&&u.invokeElementMethod(this.input,"setSelectionRange",e,t)},_.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},_.prototype.updateValue=function(e){var t=this;p.areSame(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()})},Object.defineProperty(_.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-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this._isFocused=e)},enumerable:!0,configurable:!0}),_.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},i.__decorate([l.Input(),i.__metadata("design:type",String)],_.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],_.prototype,"title",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],_.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],_.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],_.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],_.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],_.prototype,"selectOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object)],_.prototype,"showSuccessIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object)],_.prototype,"showErrorIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],_.prototype,"clearButton",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],_.prototype,"successIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],_.prototype,"errorIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],_.prototype,"clearButtonIcon",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],_.prototype,"tabIndex",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],_.prototype,"placeholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],_.prototype,"maxlength",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],_.prototype,"valueChange",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],_.prototype,"inputFocus",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],_.prototype,"inputBlur",void 0),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],_.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],_.prototype,"onBlur",void 0),i.__decorate([l.ViewChild("input",{static:!0}),i.__metadata("design:type",l.ElementRef)],_.prototype,"input",void 0),i.__decorate([l.ContentChild(f.TextBoxSuffixTemplateDirective,{static:!1}),i.__metadata("design:type",f.TextBoxSuffixTemplateDirective)],_.prototype,"suffixTemplate",void 0),i.__decorate([l.ContentChild(g.TextBoxPrefixTemplateDirective,{static:!1}),i.__metadata("design:type",g.TextBoxPrefixTemplateDirective)],_.prototype,"prefixTemplate",void 0),i.__decorate([l.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],_.prototype,"disabledClass",null),i.__decorate([l.HostBinding("class.k-textbox"),i.__metadata("design:type",Boolean)],_.prototype,"hostClass",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],_.prototype,"direction",void 0),o=i.__decorate([l.Component({exportAs:"kendoTextBox",providers:[m.LocalizationService,{provide:m.L10N_PREFIX,useValue:"kendo.textbox"},{provide:r.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o}),multi:!0},{provide:h.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input\n class="k-input"\n #input\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 <span class="k-input-suffix">\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\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 >\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),i.__metadata("design:paramtypes",[m.LocalizationService,l.NgZone,l.ChangeDetectorRef,l.Renderer2,l.Injector,l.ElementRef])],_));function _(e,t,n,o,i,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=o,this.injector=i,this.hostElement=a,this.focusableId="k-"+h.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new l.EventEmitter,this.inputFocus=new l.EventEmitter,this.inputBlur=new l.EventEmitter,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),h.hasObservers(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),h.hasObservers(r.inputFocus)&&(!r.focusChangedProgrammatically||r.focusChangedProgrammatically&&r.clearButtonClicked)&&r.ngZone.run(function(){r.inputFocus.emit()}),r.ngZone.run(function(){r.isFocused=!0}))},this.handleInputBlur=function(){r.changeDetector.markForCheck(),(h.hasObservers(r.inputBlur)||p.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.handleInput=function(e){e=v.isSafari(navigator.userAgent)&&s.isJapanese(e.target.value)?e.data:e.target.value;r.updateValue(e)},this.ngChange=function(e){},this.ngTouched=function(){},d.validatePackage(c.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}t.TextBoxComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(74),r=n(75),s=n(54),l=n(6),d=n(3),c=n(26),u=n(25),p=n(100),h=n(51),n=n(24),n=o.__decorate([i.NgModule({declarations:[a.TextBoxDirective,r.TextBoxContainerComponent,s.TextBoxComponent,c.TextBoxSuffixTemplateDirective,u.TextBoxPrefixTemplateDirective,p.TextBoxCustomMessagesComponent,h.LocalizedTextBoxMessagesDirective],exports:[a.TextBoxDirective,r.TextBoxContainerComponent,s.TextBoxComponent,c.TextBoxSuffixTemplateDirective,u.TextBoxPrefixTemplateDirective,d.EventsModule,p.TextBoxCustomMessagesComponent,h.LocalizedTextBoxMessagesDirective,n.SHARED_DIRECTIVES],imports:[l.CommonModule,d.EventsModule,n.SharedModule]})],f);function f(){}t.TextBoxModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(70),r=n(6),n=n(3),n=o.__decorate([i.NgModule({declarations:[a.MaskedTextBoxComponent],exports:[a.MaskedTextBoxComponent],imports:[r.CommonModule,n.EventsModule]})],s);function s(){}t.MaskedTextBoxModule=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(71),s=(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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),i=(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=i},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(58),s=(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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(76),r=n(6),s=n(3),l=n(59),d=n(101),n=n(3),s=o.__decorate([i.NgModule({declarations:[a.SwitchComponent,d.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],exports:[a.SwitchComponent,d.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],imports:[r.CommonModule,n.EventsModule,s.ResizeSensorModule]})],c);function c(){}t.SwitchModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),i=(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=i},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(61),s=(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=s},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(77),l=n(62),d=n(102),n=n(15),r=o.__decorate([i.NgModule({declarations:[s.RangeSliderComponent,d.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective],exports:[s.RangeSliderComponent,d.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective,n.LabelTemplateDirective],imports:[a.CommonModule,r.SlidersCommonModule]})],c);function c(){}t.RangeSliderModule=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),i=(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=i},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(64),s=(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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(2),r=n(8),s=function(e){this.value=e,this.classes={"k-tick":!0}},o=(l.prototype.ngOnChanges=function(e){this.createTicks()},l.prototype.createTicks=function(){for(var e=r.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 s(r.calculateValueFromTick(i,n))),t&&i%t==0&&(o[i].large=!0,o[i].classes["k-tick-large"]=!0);0<(o=this.rtl||this.vertical?o.reverse():o).length&&(Object.assign(o[0].classes,this.endTickClasses(!0)),Object.assign(o[o.length-1].classes,this.endTickClasses(!1))),this.ticks=o},l.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)],l.prototype,"wrapperClasses",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function)],l.prototype,"tickTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],l.prototype,"vertical",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],l.prototype,"step",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],l.prototype,"largeStep",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],l.prototype,"min",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],l.prototype,"max",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],l.prototype,"labelTemplate",void 0),o.__decorate([i.ViewChildren("tickElement"),o.__metadata("design:type",i.QueryList)],l.prototype,"tickElements",void 0),o.__decorate([i.Component({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false">&nbsp;</ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '}),o.__param(0,i.Optional()),o.__param(0,i.Inject(a.RTL)),o.__metadata("design:paramtypes",[Boolean])],l));function l(e){this.rtl=e,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}t.SliderTicksComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(6),r=n(66),s=n(15),n=n(3),n=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=n},function(e,t,n){"use strict";var o;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";var i=(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+" })"},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(68),i=n(105),s=(a.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof i.Stream?this.parse(e):this.parse(new i.Stream(o(e),o(t)))},a.prototype.map=function(t){var n=this;return new a(function(e){return n.parse(e).map(t)})},a.prototype.chain=function(n){var t=this;return new a(function(e){return t.parse(e).chain(function(e,t){return n(e).run(t)})})},a.prototype.isLiteral=function(e){return this.run(e).type===r.ResultType.Literal},a);function a(e){this.parse=e}t.Parser=s,t.mask=function(e){var i=e.prompt,a=e.promptPlaceholder;return function(o){return new s(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===t&&t===i)return e.eat(),new r.Result(i,e,r.ResultType.Mask);if(o.test(n))return e.eat(),new r.Result(n,e,r.ResultType.Mask);if(n===a)return e.eat(),new r.Result(i,e,r.ResultType.Mask);e.eat_input()}return e.eat(),new r.Result(i,e,r.ResultType.Mask)})}},t.literal=function(t){return new s(function(e){return e.peek().char===t&&e.eat(),new r.Result(t,e,r.ResultType.Literal)})},t.unmask=function(i){return function(o){return new s(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===i&&t===i)return e.eat(),new r.Result(n,e);if(o.test(n))return e.eat(),new r.Result(n,e);e.eat_input()}return e.eat(),new r.Result("",e)})}},t.unliteral=function(t){return new s(function(e){return e.eof()?new r.Result("",e):(e.peek().char===t&&e.eat(),new r.Result(t,e))})},t.token=function(o,i){return new s(function(e){var t=e.next().char,n=o[t];return"\\"===t?(t=e.next().char,new r.Result(i.literal(t),e)):n?new r.Result(i.mask(n),e):new r.Result(i.literal(t),e)})},t.rawMask=function(e){var n=e.prompt,o=e.promptPlaceholder;return new s(function(e){var t=e.next().char;return t===n?new r.Result(o,e):new r.Result(t,e)})},t.rawLiteral=function(n){return new s(function(e){var t=e.next().char;return n?new r.Result(t,e):new r.Result("",e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),l=n(1),a=n(5),r=n(2),d=n(11),c=n(10),s=n(107),u=n(3),p=n(9),h=n(4),f=Promise.resolve(null),s=(o=g,Object.defineProperty(g.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),g.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(a.NgControl,null)},g.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},g.prototype.handleDragDrop=function(){return!1},g.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},g.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},g.prototype.pasteHandler=function(e){var t=e.target,e=t.selectionStart,t=t.selectionEnd;t!==e&&(this.isPasted=!0,this.selection=[e,t])},g.prototype.inputHandler=function(e){var t=e.target.value,n=this.selection,o=n[0],i=n[1];if(!this.mask)return this.updateValue(t),void(this.isPasted=!1);e=this.isPasted?(this.isPasted=!1,n=this.maskedValue.length-i,n=t.length-n,this.service.maskInRange(t.slice(o,n),this.maskedValue,o,i)):this.service.maskInput(t,this.maskedValue,e.target.selectionStart),this.updateInput(e.value,e.selection),this.updateValue(e.value)},g.prototype.ngOnChanges=function(e){var t,n=this;e.value&&(this.value=this.normalizeValue()),this.mask?(t=this.extractChanges(e),this.updateService(t),u.isChanged("value",e)?(t=this.service.maskRaw(this.value))!==this.maskedValue&&this.updateInput(t):u.anyChanged(["promptPlaceholder","includeLiterals"],e)?f.then(function(){n.updateValue(n.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))):this.updateInput(this.value)},g.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},g.prototype.registerOnChange=function(e){this.onChange=e},g.prototype.registerOnTouched=function(e){this.onTouched=e},g.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},g.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},g.prototype.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)},g.prototype.updateInput=function(e,t){this.maskedValue=e=void 0===e?"":e;e=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",e),void 0!==t&&this.setSelection(t,t)},g.prototype.extractChanges=function(n){return Object.keys(n).filter(function(e){return"rules"!==e}).reduce(function(e,t){return e[t]=n[t].currentValue,e},{})},g.prototype.updateService=function(e){e=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(e)},g.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&p.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(g.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),g.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;0<=t&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(g.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e)},enumerable:!0,configurable:!0}),g.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=h.isPresent(e);if(t&&"string"!=typeof e){if(l.isDevMode())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"focusableId",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"disabled",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"readonly",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"title",void 0),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String)],g.prototype,"direction",void 0),i.__decorate([l.HostBinding("class.k-widget"),l.HostBinding("class.k-maskedtextbox"),i.__metadata("design:type",Boolean)],g.prototype,"hostClasses",void 0),i.__decorate([l.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],g.prototype,"hostDisabledClass",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"mask",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"value",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],g.prototype,"rules",null),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"prompt",void 0),i.__decorate([l.Input(),i.__metadata("design:type",String)],g.prototype,"promptPlaceholder",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"includeLiterals",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"maskOnFocus",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],g.prototype,"maskValidation",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number)],g.prototype,"tabindex",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],g.prototype,"tabIndex",null),i.__decorate([l.Output("focus"),i.__metadata("design:type",l.EventEmitter)],g.prototype,"onFocus",void 0),i.__decorate([l.Output("blur"),i.__metadata("design:type",l.EventEmitter)],g.prototype,"onBlur",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],g.prototype,"valueChange",void 0),i.__decorate([l.ViewChild("input",{static:!0}),i.__metadata("design:type",l.ElementRef)],g.prototype,"input",void 0),i.__decorate([l.HostListener("paste",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],g.prototype,"pasteHandler",null),i.__decorate([l.HostListener("input",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],g.prototype,"inputHandler",null),o=i.__decorate([l.Component({exportAs:"kendoMaskedTextBox",providers:[s.MaskingService,{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:l.forwardRef(function(){return o})},{multi:!0,provide:a.NG_VALIDATORS,useExisting:l.forwardRef(function(){return o})},{provide:u.KendoInput,useExisting:l.forwardRef(function(){return o})}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-textbox"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),i.__param(6,l.Optional()),i.__param(6,l.Inject(r.RTL)),i.__metadata("design:paramtypes",[s.MaskingService,l.Renderer2,l.ElementRef,l.NgZone,l.Injector,l.ChangeDetectorRef,Boolean])],g));function g(e,t,n,o,i,a,r){var s=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=o,this.injector=i,this.changeDetector=a,this.focusableId="k-"+u.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.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)})),u.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),(u.hasObservers(s.onBlur)||h.requiresZoneOnBlur(s.control))&&s.ngZone.run(function(){s.onTouched(),s.onBlur.emit()})},this.onChange=function(e){},this.onTouched=function(){},d.validatePackage(c.packageMetadata),this.direction=r?"rtl":"ltr",this.updateService()}t.MaskedTextBoxComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),i=(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=i},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(71),s=(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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min",t.MAX_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max",t.POINT=".",t.INITIAL_SPIN_DELAY=500,t.SPIN_DELAY=50,t.EXPONENT_REGEX=/[eE][\-+]?([0-9]+)/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),a=n(1),n=n(3),i=(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"),i.__metadata("design:type",Boolean)],r.prototype,"hostClass",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.hostClass=!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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return"[object Function]"===Object.prototype.toString.call(e)}var i=n(0),a=n(1),r=n(2),s=n(30),l=n(5),d=n(3),c=n(113),i=(Object.defineProperty(u.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"textareaElementClass",{get:function(){return!!this.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),u.prototype.ngAfterContentInit=function(){var t=this;if(this.formControl||this.kendoInput){var e=new c.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl),n=function(e){return function(){t.focused=e,t.updateState()}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.subscribe(e,"autoFillStart",function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")}),this.subscribe(e,"autoFillEnd",function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))});var n=function(){return t.updateState()};n(),this.subscribe(e,"onValueChange",n),this.id&&e.focusableId?this.id=e.focusableId:this.id?e.focusableId=this.id:e.focusableId?this.id=e.focusableId:(n="_"+d.guid(),e.focusableId=n,this.id=n)}else if(a.isDevMode())throw new Error("The TextBoxContainer requires a Kendo Input component or a forms-bound component to function properly.")},u.prototype.ngOnDestroy=function(){this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions=[]},u.prototype.subscribe=function(e,t,n){e[t]instanceof a.EventEmitter&&(n=e[t].subscribe(n),this._subscriptions.push(n))},u.prototype.updateState=function(){function e(e){return!(0===e||!1===e||(!Array.isArray(e)||e.length)&&e)}var t,n=this.formControl;n?(t=n.valueAccessor,o(t.isEmpty)?this.empty=t.isEmpty():this.empty=e(n.value),this.invalid=n.invalid&&(n.touched||n.dirty)):this.empty=o(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value),this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},i.__decorate([a.HostBinding("class.k-textbox-container"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],u.prototype,"hostClasses",null),i.__decorate([a.HostBinding("class.k-textarea-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],u.prototype,"textareaElementClass",null),i.__decorate([a.HostBinding("class.k-state-focused"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],u.prototype,"focusedClass",null),i.__decorate([a.HostBinding("class.k-state-invalid"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],u.prototype,"invalidClass",null),i.__decorate([a.HostBinding("attr.dir"),i.__metadata("design:type",String)],u.prototype,"direction",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],u.prototype,"id",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],u.prototype,"floatingLabel",void 0),i.__decorate([a.ContentChild(d.KendoInput,{static:!1}),i.__metadata("design:type",Object)],u.prototype,"kendoInput",void 0),i.__decorate([a.ContentChild(s.TextAreaDirective,{static:!1}),i.__metadata("design:type",s.TextAreaDirective)],u.prototype,"textarea",void 0),i.__decorate([a.ContentChild(l.NgControl,{static:!1}),i.__metadata("design:type",l.NgControl)],u.prototype,"formControl",void 0),i.__decorate([a.Component({selector:"kendo-textbox-container",template:'\n <ng-content></ng-content>\n <label *ngIf="floatingLabel" [for]="id" class="k-label">{{ floatingLabel }}</label>\n '}),i.__param(3,a.Optional()),i.__param(3,a.Inject(r.RTL)),i.__metadata("design:paramtypes",[a.ElementRef,a.Renderer2,a.ChangeDetectorRef,Boolean])],u));function u(e,t,n,o){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.focused=!1,this.empty=!0,this.invalid=!1,this._subscriptions=[],this.autoFillStarted=!1,this.direction=o?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}t.TextBoxContainerComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(1),a=n(5),r=n(2),l=n(3),d=n(11),c=n(10),u=n(4),p=n(14),h=n(31),r=(o=f,Object.defineProperty(f.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"ieClass",{get:function(){return h.browser&&h.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),f.prototype.ngOnInit=function(){var e,t=this;this.hostElement&&(e=this.hostElement.nativeElement,this.renderer.removeAttribute(e,"tabindex")),this.localizationChangeSubscription=this.localizationService.changes.pipe(p.skip(1)).subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.control=this.injector.get(a.NgControl,null),this.ngZone.onStable.pipe(p.take(1)).subscribe(function(){return t.initialized=!0})},f.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},f.prototype.focus=function(){this.wrapper&&this.wrapper.nativeElement.focus()},f.prototype.blur=function(){this.wrapper&&this.wrapper.nativeElement.blur()},f.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},f.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},f.prototype.registerOnChange=function(e){this.ngChange=e},f.prototype.registerOnTouched=function(e){this.ngTouched=e},f.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},f.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},f.prototype.isEmpty=function(){return!1},f.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(f.prototype,"focused",{set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e)},enumerable:!0,configurable:!0}),f.prototype.setHostClasses=function(e){e?(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-off"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-on")):(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-on"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-off"))},i.__decorate([s.Input(),i.__metadata("design:type",String)],f.prototype,"focusableId",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],f.prototype,"onLabel",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],f.prototype,"offLabel",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],f.prototype,"checked",null),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],f.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],f.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],f.prototype,"tabindex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],f.prototype,"tabIndex",null),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],f.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],f.prototype,"onBlur",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],f.prototype,"valueChange",void 0),i.__decorate([s.ViewChild("wrapper",{static:!0}),i.__metadata("design:type",Object)],f.prototype,"wrapper",void 0),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],f.prototype,"direction",void 0),i.__decorate([s.HostBinding("class.k-ie"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],f.prototype,"ieClass",null),i.__decorate([s.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],f.prototype,"ariaDisabled",null),i.__decorate([s.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],f.prototype,"ariaReadonly",null),i.__decorate([s.HostBinding("class.k-switch"),i.__metadata("design:type",Boolean)],f.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],f.prototype,"disabledClass",null),o=i.__decorate([s.Component({exportAs:"kendoSwitch",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return o})},{provide:l.KendoInput,useExisting:s.forwardRef(function(){return o})}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #wrapper\n class="k-switch-container"\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]="{ click: clickHandler, 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 class="k-switch-handle" [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"></span>\n </span>\n '}),i.__metadata("design:paramtypes",[s.Renderer2,s.ElementRef,r.LocalizationService,s.Injector,s.ChangeDetectorRef,s.NgZone])],f));function f(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._checked=!1,this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){r.focused=!0,l.hasObservers(r.onFocus)&&r.ngZone.run(function(){r.onFocus.emit()})},this.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(l.hasObservers(r.onBlur)||u.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.onBlur.emit()})},d.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}t.SwitchComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,o,l=n(0),i=n(1),a=n(5),r=n(14),d=n(8),c=n(114),u=n(2),p=n(8),h=n(9),f=n(3),g=n(4),i=(s=n(78).SliderBase,l.__extends(m,s),(o=m).prototype.focus=function(){this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},m.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;h.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},m.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),s.prototype.ngOnInit.call(this)},m.prototype.ngOnChanges=function(e){var t=this;f.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&d.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(r.take(1)).subscribe(function(){t.sizeComponent()}))},m.prototype.ngAfterViewInit=function(){var e=this;f.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent()}),this.attachElementEventHandlers())},m.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},m.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(m.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),m.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();e=e.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)},m.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,o=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:o.left,y:o.top},this.dragging={value:!0,target:n};function i(){return t.changeValue([p.eventValue(e,t.track.nativeElement,t.getProps()),t.value[1]])}function a(){return t.changeValue([t.value[0],p.eventValue(e,t.track.nativeElement,t.getProps())])}function r(){return t.changeValue([p.eventValue(e,t.track.nativeElement,t.getProps()),p.eventValue(e,t.track.nativeElement,t.getProps())])}var s=e.pageX<this.lastHandlePosition.x,l=e.pageX>this.lastHandlePosition.x,d=e.pageY>this.lastHandlePosition.y,c=p.isStartHandle(this.draggedHandle),o=this.vertical,n=!o,s=o&&d||(this.reverse?n&&l:n&&s);(this.value[0]===this.value[1]?s?c?i:r:c?r:a:c?i:a)()},m.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},m.prototype.writeValue=function(e){d.validateValue(e),this.value=e,this.sizeComponent()},m.prototype.registerOnChange=function(e){this.ngChange=e},m.prototype.registerOnTouched=function(e){this.ngTouched=e},m.prototype.changeValue=function(e){var t=this;this.value&&d.isSameRange(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.value&&t.valueChange.emit(e),t.sizeComponent()})},m.prototype.sizeComponent=function(){var e,t,n,o,i,a;f.isDocumentAvailable()&&(e=this.wrapper.nativeElement,a=this.track.nativeElement,t=this.sliderSelection.nativeElement,n=this.draghandleStart.nativeElement,o=this.draghandleEnd.nativeElement,i=this.ticks?this.ticksContainer.nativeElement:null,this.resetStyles([a,t,n,o,i,this.hostElement.nativeElement]),i=this.getProps(),(a=new c.RangeSliderModel(i,e,a,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(n),a.positionHandle(o),a.positionSelection(n,t),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(m.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),m.prototype.isEmpty=function(){return!1},Object.defineProperty(m.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd&&(t=this.sliderSelection.nativeElement,n=e.target,e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value)},enumerable:!0,configurable:!0}),m.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:d.trimValueRange(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},m.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,o=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandleStart.nativeElement&&e.relatedTarget!==t.draghandleEnd.nativeElement&&t.handleBlur(),n=!1):o||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){o=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){o=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===f.Keys.Tab}))})},l.__decorate([i.Input(),l.__metadata("design:type",Array)],m.prototype,"value",void 0),l.__decorate([i.ViewChild("draghandleStart",{static:!0}),l.__metadata("design:type",i.ElementRef)],m.prototype,"draghandleStart",void 0),l.__decorate([i.ViewChild("draghandleEnd",{static:!0}),l.__metadata("design:type",i.ElementRef)],m.prototype,"draghandleEnd",void 0),o=l.__decorate([i.Component({exportAs:"kendoRangeSlider",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return o})},{provide:f.KendoInput,useExisting:i.forwardRef(function(){return o})}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <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\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),l.__metadata("design:paramtypes",[u.LocalizationService,i.Injector,i.Renderer2,i.NgZone,i.ChangeDetectorRef,i.ElementRef])],m));function m(e,t,n,o,i,a){var r=s.call(this,e,t,n,o,i,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=o,r.changeDetector=i,r.hostElement=a,r.startHandleId="k-start-handle-"+f.guid(),r.endHandleId="k-end-handle-"+f.guid(),r.focusableId=r.startHandleId,r.handleZIndex=0,r.activeHandle="startHandle",r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t,n,o;r.isDisabled||(r.value=r.value||[r.min,r.min],o=p.eventValue(e,r.track.nativeElement,r.getProps()),t=void 0,e=(n=t=r.value)[0],n=n[1],o<=e?(t=[o,n],r.activeHandle="startHandle"):e<o&&o<n?o<(e+n)/2?(t=[o,n],r.activeHandle="startHandle"):(t=[e,o],r.activeHandle="endHandle"):n<=o&&(t=[e,o],r.activeHandle="endHandle"),o="startHandle"===r.activeHandle?r.draghandleStart:r.draghandleEnd,h.invokeElementMethod(o,"focus"),r.changeValue(t))},r.onKeyDown=function(e){r.value=r.value||[r.min,r.min];var t,n=r.getProps(),o=n.max,i=n.min,a=r.keyBinding[e.keyCode];!r.isDisabled&&a&&(r.renderer.setStyle(e.target,"zIndex",++r.handleZIndex),t=p.isStartHandle(e.target),n=a(l.__assign({},n,{value:t?r.value[0]:r.value[1]})),t?n>r.value[1]&&(r.value[1]=n):n<r.value[0]&&(r.value[0]=n),n=d.trimValue(o,i,n),n=t?[n,r.value[1]]:[r.value[0],n],r.changeValue(n),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(f.hasObservers(r.onBlur)||g.requiresZoneOnBlur(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}t.RangeSliderComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(8),l=n(1),d=n(7),i=n(5),a=n(3),c=n(11),u=n(10),n=n(15),n=(Object.defineProperty(r.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),r.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},r.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(i.NgControl,null)},Object.defineProperty(r.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),r.prototype.isEmpty=function(){return!1},Object.defineProperty(r.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[a.Keys.ArrowLeft]=t?s.increment:s.decrement,e[a.Keys.ArrowRight]=t?s.decrement:s.increment,e[a.Keys.ArrowDown]=s.decrement,e[a.Keys.ArrowUp]=s.increment,e[a.Keys.PageUp]=s.incrementLarge,e[a.Keys.PageDown]=s.decrementLarge,e[a.Keys.Home]=function(e){return e.min},e[a.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),r.prototype.resetStyles=function(e){var t=this;e.forEach(function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))})},o.__decorate([l.Input(),o.__metadata("design:type",Function)],r.prototype,"title",void 0),o.__decorate([l.Input(),o.__metadata("design:type",String)],r.prototype,"tickPlacement",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"vertical",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"min",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"max",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"smallStep",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"largeStep",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"fixedTickWidth",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Boolean)],r.prototype,"readonly",void 0),o.__decorate([l.Input(),o.__metadata("design:type",Number)],r.prototype,"tabindex",void 0),o.__decorate([l.Output("focus"),o.__metadata("design:type",l.EventEmitter)],r.prototype,"onFocus",void 0),o.__decorate([l.Output("blur"),o.__metadata("design:type",l.EventEmitter)],r.prototype,"onBlur",void 0),o.__decorate([l.Output(),o.__metadata("design:type",l.EventEmitter)],r.prototype,"valueChange",void 0),o.__decorate([l.HostBinding("attr.dir"),o.__metadata("design:type",String)],r.prototype,"direction",void 0),o.__decorate([l.HostBinding("class.k-slider-horizontal"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"horizontalClass",null),o.__decorate([l.HostBinding("class.k-slider-vertical"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"verticalClass",null),o.__decorate([l.HostBinding("class.k-slider"),o.__metadata("design:type",Boolean)],r.prototype,"sliderClass",void 0),o.__decorate([l.HostBinding("class.k-widget"),o.__metadata("design:type",Boolean)],r.prototype,"widgetClass",void 0),o.__decorate([l.HostBinding("class.k-state-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],r.prototype,"disabledClass",null),o.__decorate([l.ViewChild("wrap",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"wrapper",void 0),o.__decorate([l.ViewChild("track",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"track",void 0),o.__decorate([l.ViewChild("sliderSelection",{static:!0}),o.__metadata("design:type",l.ElementRef)],r.prototype,"sliderSelection",void 0),o.__decorate([l.ViewChild("ticks",{read:l.ElementRef,static:!1}),o.__metadata("design:type",l.ElementRef)],r.prototype,"ticksContainer",void 0),o.__decorate([l.ViewChild("ticks",{static:!1}),o.__metadata("design:type",Object)],r.prototype,"ticks",void 0),o.__decorate([l.ContentChild(n.LabelTemplateDirective,{static:!1}),o.__metadata("design:type",n.LabelTemplateDirective)],r.prototype,"labelTemplate",void 0),r);function r(e,t,n,o,i,a){var r=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=o,this.changeDetector=i,this.hostElement=a,this.title=s.identity,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new l.EventEmitter,this.onBlur=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new d.Subscription,this.ifEnabled=function(e,t){r.isDisabled||e.call(r,t)},c.validatePackage(u.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}t.SliderBase=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=n(8),p=n(32),n=(o.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.trackWidth();this.track.style[e]=t+"px"},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=this.elementSize(this.wrapper),n=u.calculateTrackSize(t,this.elementOffset(this.track)),o=u.calculateFixedTrackSize(this.props);this.wrapper.parentElement.style[e]=o<n?t-(n-o)+"px":t+(o-n)+"px"},o.prototype.trackWidth=function(){return this.props.fixedTickWidth?u.calculateFixedTrackSize(this.props):u.calculateTrackSize(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)},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},o);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()}t.SliderModelBase=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(36),n=n(6),n=o.__decorate([i.NgModule({declarations:[a.RadioButtonDirective],exports:[a.RadioButtonDirective],imports:[n.CommonModule]})],r);function r(){}t.RadioButtonModule=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),n=o.__decorate([i.NgModule({declarations:[a.CheckBoxDirective],exports:[a.CheckBoxDirective],imports:[n.CommonModule]})],r);function r(){}t.CheckBoxModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(7),r=n(4),s=n(13),l=n(12),i=(d.prototype.ngAfterViewInit=function(){var t=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe(function(e){e.h===t.oldH&&e.a===t.oldA||(t.oldH=e.h,t.oldA=e.a,t.setPaths())})},d.prototype.ngOnChanges=function(e){r.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},d.prototype.setPaths=function(){var e=l.bezierCommand(l.controlPoint(l.line));this.paths=[l.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT),e),l.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT,!0),e),l.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT),e),l.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT,!0),e)]},d.prototype.findValue=function(e,t,n,o,i){var a=(n+o)/2,r=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-a/this.metrics.height}),r=l.getContrastFromTwoRGBAs(l.getRGBA(l.getColorFromHSV(r)),l.getRGBA(this.backgroundColor||""));return o<n+.5?r<e+1&&e-1<r?a:null:i(r,e)?this.findValue(e,t,n,o-(o-n)/2,i):this.findValue(e,t,n+(o-n)/2,o,i)},d.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var o=[],i=0;i<=this.metrics.width;i+=this.metrics.width/t){var a=this.findValue(e,i,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return t<e});null!==a&&o.push([i,a])}return o},o.__decorate([i.HostBinding("class.k-color-contrast-svg"),o.__metadata("design:type",Boolean)],d.prototype,"hostClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],d.prototype,"wrapper",void 0),o.__decorate([i.Input(),o.__metadata("design:type",a.BehaviorSubject)],d.prototype,"hsva",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],d.prototype,"backgroundColor",void 0),o.__decorate([i.Component({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],d));function d(){this.hostClass=!0}t.ColorContrastSvgComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(2),r=n(12),s=n(13),a=(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=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(13),a=n(2),n=n(1),a=(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=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),n=n(1),n=(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=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(39),s=(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=s},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),n=(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){n=i.call(this,e,t,n)||this;return n.flatColorPickerLocalization=o,n}t.ColorPaletteLocalizationService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(4),i=(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=i},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),n=(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){n=i.call(this,e,t,n)||this;return n.flatColorPickerLocalization=o,n}t.ColorGradientLocalizationService=n},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],t=a(e,n[t-1],n[t+1],!0);return"C "+i+","+o+" "+t[0]+","+t[1]+" "+e[0]+","+e[1]}},t.controlPoint=function(i){return function(e,t,n,o){n=i(t||e,n||e),o=n.angle+(o?Math.PI:0),n=.1*n.length;return[e[0]+Math.cos(o)*n,e[1]+Math.sin(o)*n]}},t.line=function(e,t){var n=t[0]-e[0],e=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(e,2)),angle:Math.atan2(e,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=_},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=t(91),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);o=s.parseColor(e.trim(),o);return l.isPresent(o)?"hex"===t?r.getHexValue(o,n):o.toCssRgba():void 0}},r.getHSV=function(e,t){t=s.parseColor(e,t=void 0===t?!0:t);return l.isPresent(t)?t.toHSV():{}},r.getRGBA=function(e,t){t=s.parseColor(e,t=void 0===t?!0:t);return l.isPresent(t)?t.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),e=s.Color.fromHSV(o,i,a,e);return"hex"===t?r.getHexValue(e,n):e.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),a=l.fitIntoBounds(e.a,0,1),r=l.fitIntoBounds(t.r,0,255),e=l.fitIntoBounds(t.g,0,255),t=l.fitIntoBounds(t.b,0,255);return{r:Math.round((1-a)*r+a*n),g:Math.round((1-a)*e+a*o),b:Math.round((1-a)*t+a*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";Object.defineProperty(t,"__esModule",{value:!0});var o=(i.prototype.preventOpen=function(){this.openPrevented=!0},i.prototype.isOpenPrevented=function(){return this.openPrevented},i);function i(e){this.color=e,this.openPrevented=!1}t.ActiveColorClickEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),i=(o=n(3).PreventableEvent,i.__extends(a,o),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.ColorPickerOpenEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),i=(o=n(3).PreventableEvent,i.__extends(a,o),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.ColorPickerCloseEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),i=(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=i},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(13),r=n(21),i=(s.prototype.getPaletteSettings=function(e,t){var n="name"!==t?a.DEFAULT_PRESET:a.DEFAULT_ACCESSIBLE_PRESET,o=e.palette,t="string"==typeof o&&r.PALETTEPRESETS[o]?r.PALETTEPRESETS[o].columns:void 0;return{palette:o||n,tileSize:e.tileSize||24,columns:e.columns||t||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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(7),l=n(1),d=n(4),c=n(3),o=(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-state-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=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(52),s=(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=s},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(58),s=(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=s},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(61),s=(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=s},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(64),s=(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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(1),a=n(28),r=n(63),s=n(60),l=n(27),d=n(56),c=n(55),u=n(49),p=n(6),h=n(46),f=n(81),g=n(80),n=n(35),p=o.__decorate([i.NgModule({exports:[u.TextAreaModule,c.TextBoxModule,a.SliderModule,r.RangeSliderModule,s.SwitchModule,l.NumericTextBoxModule,d.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,g.RadioButtonModule,n.FormFieldModule],imports:[p.CommonModule]})],m);function m(){}t.InputsModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=(i.prototype.eof=function(){return this.inputCursor>=this.input.length},i.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},i.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},i.prototype.eat_input=function(){this.inputCursor++},i.prototype.eat_control=function(){this.controlCursor++},i.prototype.eat=function(){this.inputCursor++,this.controlCursor++},i);function i(e,t){void 0===t&&(t=[]),this.input=e=void 0===e?[]:e,this.control=t,this.inputCursor=0,this.controlCursor=0}t.Stream=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(69),i=n(68);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(106),a=n(69),i=(r.prototype.update=function(e){var t=e.mask,n=e.prompt,o=void 0===n?"":n,i=e.promptPlaceholder,n=void 0===i?" ":i,i=e.rules,i=void 0===i?{}:i,e=e.includeLiterals,e=void 0!==e&&e;this.mask=void 0===t?"":t,this.prompt=o,this.promptPlaceholder=n,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(""),n=this.maskTokens.length-(e.length-n);return l.sequence(this.maskTokens.slice(0,n)).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,t=e.slice(0,t);return l.sequence(this.unmaskTokens).run(t,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=i},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(73);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 n=t-String(e).length,t=e;return 0<n&&(n=new Array(1+n).join("0"),t=parseFloat(e+n)),t},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=v},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=n(7),i=n(1),n=(Object.defineProperty(a.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),a);function a(e,t){function n(e){return e instanceof o.Observable||e instanceof i.EventEmitter}n((this.component=e).onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}t.FloatingLabelInputAdapter=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(8),l=n(8),i=(o=n(79).SliderModelBase,i.__extends(a,o),a.prototype.positionHandle=function(e){var t,n,o,i,a,r;e.id&&(t=(r=this.props).max,n=r.min,o=r.reverse,i=r.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,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,i,this.startHandlePosition+"px")):(this.endHandlePosition=l.calculateHandlePosition({min:n,max:t,reverse:o,value:r,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,i,this.endHandlePosition+"px")))},a.prototype.positionSelection=function(e,t){var n=this.props,o=n.reverse,i=n.vertical,a=i?"height":"width",r=i?"bottom":o?"right":"left",s=Math.floor(e.offsetWidth/2),n=Math.abs(this.endHandlePosition-this.startHandlePosition),e=i?e.style.bottom:e.style.left;this.renderer.setStyle(t,a,n+"px"),this.renderer.setStyle(t,r,o?this.trackWidth()-parseFloat(e)-s+"px":parseFloat(e)+s+"px")},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.RangeSliderModel=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),s=n(8),i=(o=n(79).SliderModelBase,i.__extends(a,o),a.prototype.positionHandle=function(e){var t=this.props,n=t.max,o=t.min,i=t.reverse,a=t.vertical?"bottom":"left",r=this.trackWidth(),t=s.trimValue(n,o,this.props.value);this.handlePosition=s.calculateHandlePosition({min:o,max:n,reverse:i,value:t,trackWidth:r,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,a,this.handlePosition+"px")},a.prototype.positionSelection=function(e,t){var n=this.props,o=n.reverse,n=n.vertical?"height":"width",e=Math.floor(e.offsetWidth/2),e=this.handlePosition+e;o&&(e=this.trackWidth()-e),this.renderer.setStyle(t,n,e+"px")},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.SliderModel=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(33);t.SliderComponent=i.SliderComponent;i=n(77);t.RangeSliderComponent=i.RangeSliderComponent;i=n(15);t.LabelTemplateDirective=i.LabelTemplateDirective;i=n(76);t.SwitchComponent=i.SwitchComponent;i=n(75);t.TextBoxContainerComponent=i.TextBoxContainerComponent;i=n(74);t.TextBoxDirective=i.TextBoxDirective;i=n(30);t.TextAreaDirective=i.TextAreaDirective;i=n(29);t.NumericTextBoxComponent=i.NumericTextBoxComponent;i=n(72);t.NumericTextBoxCustomMessagesComponent=i.NumericTextBoxCustomMessagesComponent;i=n(70);t.MaskedTextBoxComponent=i.MaskedTextBoxComponent;i=n(104);t.InputsModule=i.InputsModule;i=n(66);t.SliderTicksComponent=i.SliderTicksComponent;i=n(28);t.SliderModule=i.SliderModule;i=n(63);t.RangeSliderModule=i.RangeSliderModule;i=n(60);t.SwitchModule=i.SwitchModule;i=n(27);t.NumericTextBoxModule=i.NumericTextBoxModule;i=n(56);t.MaskedTextBoxModule=i.MaskedTextBoxModule;i=n(55);t.TextBoxModule=i.TextBoxModule;i=n(49);t.TextAreaModule=i.TextAreaModule;i=n(44);t.ColorPickerComponent=i.ColorPickerComponent;i=n(19);t.ColorPaletteComponent=i.ColorPaletteComponent;i=n(20);t.ColorGradientComponent=i.ColorGradientComponent;i=n(46);t.ColorPickerModule=i.ColorPickerModule,o.__exportStar(n(16),t);o=n(23);t.FlatColorPickerComponent=o.FlatColorPickerComponent;o=n(16);t.ColorPickerCancelEvent=o.ColorPickerCancelEvent;o=n(37);t.CheckBoxDirective=o.CheckBoxDirective;o=n(36);t.RadioButtonDirective=o.RadioButtonDirective;o=n(17);t.HintComponent=o.HintComponent;o=n(18);t.ErrorComponent=o.ErrorComponent;o=n(34);t.FormFieldComponent=o.FormFieldComponent;o=n(35);t.FormFieldModule=o.FormFieldModule;o=n(54);t.TextBoxComponent=o.TextBoxComponent;o=n(25);t.TextBoxPrefixTemplateDirective=o.TextBoxPrefixTemplateDirective;o=n(26);t.TextBoxSuffixTemplateDirective=o.TextBoxSuffixTemplateDirective;o=n(48);t.TextAreaComponent=o.TextAreaComponent;o=n(47);t.TextAreaSuffixComponent=o.TextAreaSuffixComponent;o=n(50);t.InputSeparatorComponent=o.InputSeparatorComponent;o=n(24);t.SharedModule=o.SharedModule;o=n(38);t.LocalizedColorPickerMessagesDirective=o.LocalizedColorPickerMessagesDirective;o=n(57);t.LocalizedNumericTextBoxMessagesDirective=o.LocalizedNumericTextBoxMessagesDirective;o=n(51);t.LocalizedTextBoxMessagesDirective=o.LocalizedTextBoxMessagesDirective;o=n(65);t.LocalizedSliderMessagesDirective=o.LocalizedSliderMessagesDirective;o=n(62);t.LocalizedRangeSliderMessagesDirective=o.LocalizedRangeSliderMessagesDirective;n=n(59);t.LocalizedSwitchMessagesDirective=n.LocalizedSwitchMessagesDirective,function(e){for(var t in e)a(t,e[t])}(t)}],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=116)}}});