@progress/kendo-angular-inputs 8.0.3-dev.202202071301 → 8.0.5-dev.202202180904
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-inputs.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/colorpicker/color-palette.component.js +18 -6
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/shared/textarea.directive.js +3 -0
- package/dist/es/textbox/textbox.directive.js +3 -0
- package/dist/es2015/colorpicker/color-palette.component.d.ts +4 -2
- package/dist/es2015/colorpicker/color-palette.component.js +17 -6
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/shared/textarea.directive.js +3 -0
- package/dist/es2015/textbox/textbox.directive.js +3 -0
- package/dist/fesm2015/index.js +22 -6
- package/dist/fesm5/index.js +23 -6
- package/dist/npm/colorpicker/color-palette.component.js +17 -5
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/shared/textarea.directive.js +3 -0
- package/dist/npm/textbox/textbox.directive.js +3 -0
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +1 -1
|
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
17
17
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
18
|
PERFORMANCE OF THIS SOFTWARE.
|
|
19
19
|
***************************************************************************** */
|
|
20
|
-
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function u(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function p(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(l,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:_(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return Z})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return S})),n.d(t,"DraggableModule",(function(){return E})),n.d(t,"closestInScope",(function(){return w})),n.d(t,"closest",(function(){return x})),n.d(t,"contains",(function(){return O})),n.d(t,"findElement",(function(){return P})),n.d(t,"findFocusableChild",(function(){return R})),n.d(t,"findFocusable",(function(){return M})),n.d(t,"hasClasses",(function(){return A})),n.d(t,"isFocusableWithTabKey",(function(){return j})),n.d(t,"isFocusable",(function(){return B})),n.d(t,"isVisible",(function(){return T})),n.d(t,"matchesClasses",(function(){return z})),n.d(t,"matchesNodeName",(function(){return F})),n.d(t,"rtlScrollPosition",(function(){return H})),n.d(t,"EventsOutsideAngularDirective",(function(){return L})),n.d(t,"EventsModule",(function(){return K})),n.d(t,"ResizeSensorComponent",(function(){return Y})),n.d(t,"ResizeBatchService",(function(){return $})),n.d(t,"ResizeCompatService",(function(){return W})),n.d(t,"ResizeObserverService",(function(){return X})),n.d(t,"ResizeSensorModule",(function(){return Q})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return _})),n.d(t,"isChanged",(function(){return y})),n.d(t,"anyChanged",(function(){return b})),n.d(t,"hasObservers",(function(){return C})),n.d(t,"guid",(function(){return k})),n.d(t,"Keys",(function(){return N}));var i=n(0),o=n(1),r=function(e,t){return function(n){return t(e(n))}},a=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},s=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},l=function(){},c=function(e){return e.preventDefault()},d=/touch/;function u(e){return e.type.match(d)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var p=function(e){var t=this,n=e.press;void 0===n&&(n=l);var i=e.drag;void 0===i&&(i=l);var o=e.release;void 0===o&&(o=l);var d=e.mouseOnly;void 0===d&&(d=!1),this._pressHandler=r(u,n),this._dragHandler=r(u,i),this._releaseHandler=r(u,o),this._ignoreMouse=!1,this._mouseOnly=d,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",c),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",c),t._releaseHandler(e))}},h={document:{configurable:!0}};p.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},p.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},p.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?a(e,"pointerdown",this._pointerdown):(a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend)))},p.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return s(e,"pointerdown",this._pointerdown),s(this.document,"pointermove",this._pointermove),s(this.document,"pointerup",this._pointerup),s(this.document,"contextmenu",c),void s(this.document,"pointercancel",this._pointerup);s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend))},p.prototype._usePointers=function(){return!this._mouseOnly&&p.supportPointerEvent()},p.prototype.update=function(e){var t=e.press;void 0===t&&(t=l);var n=e.drag;void 0===n&&(n=l);var i=e.release;void 0===i&&(i=l);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=r(u,t),this._dragHandler=r(u,n),this._releaseHandler=r(u,i),this._mouseOnly=o},p.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(p.prototype,h),p.default=p;var f=p,g=n(6),m=n(10),v=n(5),_=function(){return"undefined"!=typeof document},y=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},b=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return y(e,t,n)}))},C=function(e){return e&&e.observers.length>0},k=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},S=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){y("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;_()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),E=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[S],exports:[S],imports:[g.CommonModule]})],e)}(),w=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},x=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},O=function(e,t,n){if(void 0===n&&(n=!1),!x(t,(function(t){return t===e})))return!1;var i=x(t,(function(e){return e===t}));return i&&(n||i!==e)},P=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=P(e,t);if(i)return i}e=e.nextSibling}}},I=/^(?:a|input|select|option|textarea|button|object)$/i,B=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&I.test(t)||n},T=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,i=0!==t.x&&0!==t.y;return(n||i)&&"hidden"!==window.getComputedStyle(e).visibility},j=function(e,t){if(void 0===t&&(t=!0),!B(e))return!1;var n=e.getAttribute("tabIndex");return(!t||T(e))&&"-1"!==n},R=function(e,t){return void 0===t&&(t=!0),P(e,(function(e){return j(e,t)}),!1)},M=function(e,t){return void 0===t&&(t=!0),P(e,(function(e){return j(e,t)}))},D=function(e){return String(e).trim().split(" ")},A=function(e,t){var n=D(t);return Boolean(D(e.className).find((function(e){return n.indexOf(e)>=0})))},z=function(e){return function(t){return A(t,e)}},V={},F=function(e){return V[e]||(V[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),V[e]};function H(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var N,L=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(i.__decorate)([Object(o.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2])],e)}(),K=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[L],exports:[L]})],e)}(),Z=function(){function e(e){this.resizeBatchService=e,this.resize=new o.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){_()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),G=function(e){var t=document.createElement("div");return t.style.cssText=e,t},U="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",W=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=U,e.setAttribute("dir","ltr"),this.expand=G(U),this.expandChild=G("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=G(U);var t=G("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(v.merge)(Object(v.fromEvent)(e.shrink,"scroll"),Object(v.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(Z),q="undefined"!=typeof ResizeObserver,X=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.supported=function(){return q},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(Z),$=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(v.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[o.NgZone])],e)}(),Y=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=X.supported()?X:W;this.resizeService=new r(e,t,n);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(m.auditTime)(a)).subscribe((function(){i.resizeService.acceptedSize||i.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"resize",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[$,o.ElementRef,o.NgZone])],e)}(),J=[Y],Q=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[J],exports:[J],providers:[$]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(N||(N={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.areSame=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},t.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},t.fitIntoBounds=function(e,n,i){return!t.isPresent(e)||isNaN(e)||e<=n?n:e>=i?i:e};var i={small:"sm",medium:"md",large:"lg"},o={small:"sm",medium:"md",large:"lg",full:"full"};t.getStylingClasses=function(e,t,n,r){switch(t){case"size":return{toRemove:"k-"+e+"-"+i[n],toAdd:r?"k-"+e+"-"+i[r]:null};case"rounded":return{toRemove:"k-rounded-"+o[n],toAdd:r?"k-rounded-"+o[r]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:r?"k-"+e+"-"+r:null}}}},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return c})),n.d(t,"validatePackage",(function(){return d}));var i,o,r=["AgfZ","turOExC=","zNvUy3rPB24=","z3jVDxa=","ChvIBgLZAerHDgu=","zgf0yq==","DgLTzxn0yw1W","vM5SC2O=","rejpz2u=","DfvPvvq=","D01gsvi=","u0Xdu2y=","C2nYAxb0s2v5","Dg9mB2nHBgvtDhjPBMC=","r3bNtu8=","C2v0","ChjVzhvJDe5HBwu=","BgLJzw5ZAw5Nrg9JC1vYBa==","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","DMvYC2LVBG==","C1DHyu0=","ChjVzhvJDhm=","CNfLrgK=","uKP0uwG=","CgfYC2u=","y3DYvhq=","zxHWAxj5rgf0zq==","uMLXufK=","tM8GBgLJzw5ZzsbMB3vUzc4k","tNz1Awe=","z3jVDxbfBMq=","sK1Vvey=","zMLUza==","D2fYBG==","tfDRtxq=","CgfJA2fNzu5HBwu=","Dw5KzwzPBMvK","C3niBfO=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","ChjVzhvJDenVzgvZ","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","uhjVz3jLC3mG","tfLwDLa=","BgvUz3rO","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","uvPnu2m=","BMfTzq==","B2jQzwn0","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","zvn3tLG=","u2vLia==","s0PPBvO=","zxbwz0u=","zg9JC1vYBa==","z2v0","DhLWzq==","y29Kzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G"];i=r,o=391,function(e){for(;--e;)i.push(i.shift())}(++o);var a=function(e,t){var n=r[e-=0];if(void 0===a.IhMVZF){a.uAzrZg=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),o="",r=0,a=0;n=i.charAt(a++);~n&&(t=r%4?64*t+n:n,r++%4)?o+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return o}(e),n=[],i=0,o=t.length;i<o;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)},a.jhAfvh={},a.IhMVZF=!0}var i=a.jhAfvh[e];return void 0===i?(n=a.uAzrZg(n),a.jhAfvh[e]=n):n=i,n},s={data:' {"timestamp":1643626140,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1656874800},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1656874800},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1656874800},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1656874800}],"integrity":"l37ZhWg17/MGXmBvfpw8DLk3814="} '},l=new Map;function c(e){}function d(e){if(l[a("0xf")](e[a("0x3")])){if(a("0x8")==a("0x8"))return l[a("0xb")](e[a("0x3")])}var t,n=e[a("0x22")]?" v"+e[a("0x22")]:"",i=e[a("0x3")]+n,o=JSON[a("0x27")](s[a("0x14")]),r=!o[a("0x1b")]&&!o[a("0x15")],c=o[a("0x1b")]&&typeof KendoLicensing===a("0x33"),d=function(e,t){var n=e[a("0x24")];if(!n||!n[a("0x0")]){if(a("0x26")!==a("0x23"))return null}var i=new Set(t);return n[a("0x2f")]((function(e){if(a("0x39")==a("0x39"))return i[a("0xf")](e[a("0xd")])}))}(o,e[a("0x36")]);if(r||c)if(a("0x1d")==a("0x1d"))t={type:0,packageName:i,docsUrl:e[a("0x20")]};else{}else if(a("0x25")===a("0x10")){}else if(d){if(a("0x6")===a("0x2")){}else if(d[a("0x35")]<e[a("0x13")])if(a("0x2e")==a("0x2e"))t={type:2,packageName:i,publishDate:u(e[a("0x13")]),expiryDate:u(d[a("0x35")]),docsUrl:e[a("0x20")]};else{}}else if(a("0x31")!=a("0x31")){}else t={type:1,packageName:i,docsUrl:e[a("0x20")]};if(t&&typeof console===a("0x4"))if(a("0x17")!==a("0x2c")){var p=a("0x38")+e[a("0x1f")],h=typeof console[a("0x12")]===a("0x11");if(h)if(a("0x18")==a("0x18"))console[a("0x12")](p);else{}else if(a("0x2a")==a("0x2a"))console[a("0x30")](p);else{}if(console[a("0x30")](function(e){var t=a("0x37")+e[a("0x32")]+"\n";if(2===e[a("0xc")])if(a("0x16")!=a("0x16")){}else t+=a("0xe")+e[a("0x29")][a("0x1c")]()+a("0x1")+e[a("0x13")][a("0x1c")]()+".\n";else if(0===e[a("0xc")])if(a("0x28")===a("0x34")){}else t+=a("0x2b");else if(1===e[a("0xc")])if(a("0x9")===a("0x1a")){}else t+=a("0x21");return t+=a("0x7")+e[a("0xa")]+a("0x5")}(t)),h)if(a("0x19")!=a("0x19")){}else console[a("0x2d")]()}else{}var f=!t;return l[a("0x1e")](e[a("0x3")],f),f}function u(e){return new Date(1e3*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:1644238730,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=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(19),r=n(1);t.calculateFixedTrackSize=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},t.calculateTrackSize=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},t.calculateTicksCount=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(o.subtract(t,e)),r=Math.floor(o.divide(i,n));return o.add(r,1)},t.calculateValueFromTick=function(e,t){var n=t.max,i=t.min,r=t.smallStep,a=t.reverse,s=t.vertical,l=o.add(i,o.multiply(e,r));return s||a?Math.abs(o.subtract(l,n)):l},t.calculateHandlePosition=function(e){var t=e.trackWidth,n=e.min,o=e.max,r=e.reverse,a=e.value,s=t/Math.abs(o-n),l=i.isPresent(a)?s*(a-n):n;return r&&(l=t-l),Math.floor(l)},t.decreaseValueToStep=function(e,n,i){var r=n.max,a=n.min,s=n.smallStep,l=n.largeStep;void 0===i&&(i=!1);var c,d=i&&l?o.multiply(s,l):s,u=o.subtract(e,a),p=o.remainder(u,d);return c=0===p?o.subtract(u,d):o.subtract(u,p),t.limitValue(o.add(c,a),a,r)},t.increaseValueToStep=function(e,n,i){var r=n.max,a=n.min,s=n.smallStep,l=n.largeStep;void 0===i&&(i=!1);var c=i&&l?o.multiply(s,l):s,d=o.subtract(e,a),u=o.remainder(d,c),p=o.add(o.subtract(d,u),c);return t.limitValue(o.add(p,a),a,r)},t.isStartHandle=function(e){return e.id.indexOf("k-start-handle")>-1},t.snapValue=function(e,n){var i=n.smallStep,o=n.min,r=n.max,a=t.limitValue(e,o,r);if(e!==a)return a;var s=t.decreaseValueToStep(e,n),l=t.increaseValueToStep(e,n);return(e-o)%i==0?e:l-e<=(l-s)/2?l:s},t.trimValue=function(e,t,n){return n>e?e:n<t?t:n},t.trimValueRange=function(e,n,i){return i?[t.trimValue(e,n,i[0]),t.trimValue(e,n,i[1])]:[n,n]},t.identity=function(e){return e},t.isSameRange=function(e,t){return i.areSame(e[0],t[0])&&i.areSame(e[1],t[1])},t.elementOffset=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}},t.limitValue=function(e,t,n){return Math.max(Math.min(e,n),t)},t.eventValue=function(e,n,i){var r=i.min,a=i.max,s=i.vertical,l=i.rtl,c=t.elementOffset(n),d=(s?e.pageY-c.top:e.pageX-c.left)*((a-r)/(s?n.clientHeight:n.clientWidth)),u=l||s?a-d:r+d,p=o.fractionLength(i.smallStep);return u=o.toFixedPrecision(u,p+1),t.snapValue(u,i)},t.isButton=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},t.increment=function(e){return t.increaseValueToStep(e.value,e)},t.decrement=function(e){return t.decreaseValueToStep(e.value,e)},t.incrementLarge=function(e){return t.increaseValueToStep(e.value,e,!0)},t.decrementLarge=function(e){return t.decreaseValueToStep(e.value,e,!0)},t.validateValue=function(e){if(r.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},t.default={calculateFixedTrackSize:t.calculateFixedTrackSize,calculateValueFromTick:t.calculateValueFromTick,calculateTrackSize:t.calculateTrackSize,calculateTicksCount:t.calculateTicksCount,calculateHandlePosition:t.calculateHandlePosition,decreaseValueToStep:t.decreaseValueToStep,decrement:t.decrement,decrementLarge:t.decrementLarge,eventValue:t.eventValue,identity:t.identity,increment:t.increment,incrementLarge:t.incrementLarge,isButton:t.isButton,isSameRange:t.isSameRange,isStartHandle:t.isStartHandle,increaseValueToStep:t.increaseValueToStep,trimValue:t.trimValue,trimValueRange:t.trimValueRange,snapValue:t.snapValue,validateValue:t.validateValue}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hasClass=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n},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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(105),t),i.__exportStar(n(107),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTPUT_FORMAT="rgba",t.DEFAULT_GRADIENT_BACKGROUND_COLOR="rgba(255, 0, 0, 1)",t.DRAGHANDLE_MOVE_SPEED=5,t.AAA_RATIO=7,t.AA_RATIO=4.5,t.DEFAULT_PRESET="office",t.DEFAULT_ACCESSIBLE_PRESET="accessible",t.STEP_COUNT=16},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoSliderLabelTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.LabelTemplateDirective=r},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(101),t),i.__exportStar(n(102),t),i.__exportStar(n(103),t),i.__exportStar(n(104),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(5),s=n(10),l=n(11),c=n(83),d=n(3),u=n(4),p=n(11),h=n(12),f=n(2),g=n(35),m=function(e){function t(t,n,i,o,r,a){var s=e.call(this,t,n,i,o,r,a)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=o,s.changeDetector=r,s.hostElement=a,s.focusableId="k-"+f.guid(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!p.isButton(t)&&!p.isButton(t.parentNode)){var n=p.eventValue(e,s.track.nativeElement,s.getProps());s.changeValue(n)}h.invokeElementMethod(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,o=s.keyBinding[e.keyCode];if(!s.isDisabled&&o){var r=o(t);s.changeValue(l.trimValue(n,i,r)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(p.decreaseValueToStep(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(p.increaseValueToStep(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(f.hasObservers(s.onBlur)||u.requiresZoneOnBlur(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return u.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;f.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(s.take(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;f.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())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(p.eventValue(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;u.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()}))},t.prototype.sizeComponent=function(e){if(f.isDocumentAvailable()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,o=this.draghandle.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new c.SliderModel(a,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(o),s.positionSelection(i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var 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}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=a.fromEvent(e,"mousedown"),o=a.fromEvent(e,"mouseup"),r=a.fromEvent(e,"mouseout"),l=i.pipe(s.filter((function(e){return 0===e.button&&!n.isDisabled})),s.concatMap((function(){return a.interval(150).pipe(s.startWith(-1),s.takeUntil(a.merge(o,r)))}))).subscribe((function(){n.isFocused||h.invokeElementMethod(n.draghandle,"focus"),t()}));n.subscriptions.add(l)}))},t.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:l.trimValue(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===f.Keys.Tab})))}))},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"incrementTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"decrementTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"showButtons",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([o.ViewChild("draghandle",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"draghandle",void 0),i.__decorate([o.ViewChild("decreaseButton",{static:!1}),i.__metadata("design:type",o.ElementRef)],t.prototype,"decreaseButton",void 0),i.__decorate([o.ViewChild("increaseButton",{static:!1}),i.__metadata("design:type",o.ElementRef)],t.prototype,"increaseButton",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoSlider",providers:[d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return n}))},{provide:f.KendoInput,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[d.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(g.SliderBase);t.SliderComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.limitPrecision=function(e){return Math.min(e,20)},t.fractionLength=function(e){return(String(e).split(".")[1]||"").length};var i=function(e,n){return Math.max(t.fractionLength(e),t.fractionLength(n))};t.toFixedPrecision=function(e,n){var i=t.limitPrecision(n);return parseFloat(e.toFixed(i))},t.add=function(e,n){var o=i(e,n);return t.toFixedPrecision(e+n,o)},t.subtract=function(e,n){return t.add(e,-n)},t.multiply=function(e,n){var i=t.fractionLength(e)+t.fractionLength(n);return t.toFixedPrecision(e*n,i)},t.divide=function(e,t){if(0===t)return NaN;var n=i(e,t),o=Math.pow(10,n);return o*e/(o*t)},t.remainder=function(e,n){return Math.abs(t.subtract(e,t.multiply(n,Math.floor(t.divide(e,n)))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(4),s=n(12),l=n(19),c=n(85),d=n(86),u=n(7),p=n(87),h=n(3),f=n(8),g=n(9),m=n(40),v=n(88),_=n(89),y=n(33),b=["min","max","step","decimals"],C={decimals:null,max:null,min:null,step:1},k=function(){function e(e,t,n,i,s,l,c){var d=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=s,this.changeDetector=l,this.hostElement=c,this.focusableId="k-"+r.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 o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.ArrowDirection=_.ArrowDirection,this.arrowDirection=_.ArrowDirection.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=v.noop,this.maxValidateFn=v.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=v.noop,this.ngTouched=v.noop,this.ngValidatorChange=v.noop,this.domEvents=[],this.increasePress=function(e){d.arrowPress(_.ArrowDirection.Up,e)},this.decreasePress=function(e){d.arrowPress(_.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(d.spinTimeout),d.arrowDirection!==_.ArrowDirection.None&&(d.arrowDirection=_.ArrowDirection.None,d.changeDetector.detectChanges())},this.handlePaste=function(){d.isPasted=!0},this.handleInput=function(){var e=d.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(d.pressedKey===r.Keys.NumpadDecimal&&(i=d.replaceNumpadDotValue()),d.isPasted&&(i=d.formatInputValue(d.intl.parseNumber(i))),!d.isValid(i))return e.value=d.inputValue,void d.setSelection(t-1,n-1);var o=d.intl.parseNumber(i),a=d.restrictDecimals(o);if(d.autoCorrect){var s=d.limitInputValue(a);a=s.value,t=s.selectionStart,n=s.selectionEnd}o!==a||d.hasTrailingZeros(i)||!d.focused?(d.setInputValue(a),d.setSelection(t,n)):d.inputValue=i,d.isPasted&&(e.value=d.inputValue),d.updateValue(a),d.previousSelection=null,d.isPasted=!1},this.handleDragEnter=function(){d.focused||d.isDisabled||d.setInputValue(d.value,!0)},this.handleMouseDown=function(){d.mouseDown=!0},this.handleFocus=function(){if(!d.focused&&(d.focused=!0,!d.isDisabled)){var e=d.selectOnFocus||!d.mouseDown;d.ngZone.runOutsideAngular((function(){setTimeout((function(){e?d.selectAll():d.selectCaret()}),0)}))}d.mouseDown=!1,r.hasObservers(d.onFocus)&&d.ngZone.run((function(){d.onFocus.emit()}))},this.handleBlur=function(){d.changeDetector.markForCheck(),d.focused=!1,d.inputValue!==d.elementValue&&d.handleInput(),d.setInputValue(),(r.hasObservers(d.onBlur)||a.requiresZoneOnBlur(d.control))&&d.ngZone.run((function(){d.ngTouched(),d.onBlur.emit()}))},this.handleKeyDown=function(e){if(!d.isDisabled){var t;e.keyCode===r.Keys.ArrowDown?t=-1:e.keyCode===r.Keys.ArrowUp&&(t=1),t&&d.step&&(e.preventDefault(),d.addStep(t));var n=d.numericInput.nativeElement;d.previousSelection={end:n.selectionEnd,start:n.selectionStart},d.pressedKey=e.keyCode}},this.handleWheel=function(e){if(d.focused&&!d.isDisabled&&d.changeValueOnScroll){e.preventDefault();var t=v.getDeltaFromMouseWheel(e);d.addStep(t)}},f.validatePackage(g.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.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(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"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(u.NgControl,null),this.ngZone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))}))},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){r.anyChanged(b,e,!1)&&this.parseOptions(b.filter((function(t){return e[t]}))),this.verifySettings(),r.anyChanged(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?d.createMinValidator(this.min):v.noop,this.maxValidateFn=this.rangeValidation?c.createMaxValidator(this.max):v.noop,this.ngValidatorChange()),r.anyChanged(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,r.anyChanged(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){s.invokeElementMethod(this.numericInput,"focus")},e.prototype.blur=function(){s.invokeElementMethod(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||v.isRightClick(t)||(y.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,m.INITIAL_SPIN_DELAY):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;a.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=this.previousSelection,r=o.start,a=o.end;t.value=e=e.substring(0,r)+this.decimalSeparator+e.substring(a),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=v.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,m.SPIN_DELAY)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=l.add(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&s.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(v.isNumber(this.max)&&e>this.max&&(t=this.max),v.isNumber(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=t.value,r=e,a=!1;if(!this.isInRange(e)){var s=o.length-String(this.inputValue).length,l=this.min,c=this.max,d=v.isNumber(c),u=v.isNumber(l),p=void 0,h=void 0,f=e;if(0===n&&this.inputValue.substr(1)===o)return{selectionEnd:i,selectionStart:n,value:null};if(d&&e>c?e>0?h=!0:p=c:u&&e<l&&(e>0?p=l:h=!0),p){var g=this.tryPadValue(e,p);g&&v.decimalPart(e)!==v.decimalPart(p)&&(f=g,a=!0)}else h&&this.inputValue&&n!==o.length&&(f=parseFloat(o.substr(0,n)+o.substr(n+s)));r=this.limitValue(f),a=(a||r!==f)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:a?String(r).length:i,selectionStart:n,value:r}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,o=v.pad(e,i),r=v.pad(e,i+1);return this.isInRange(o)?n=o:this.isInRange(r)&&(n=r),n},e.prototype.isInRange=function(e){return!v.isNumber(e)||(!v.isNumber(this.min)||this.min<=e)&&(!v.isNumber(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,o=String(e);if(t||m.EXPONENT_REGEX.test(o))n=l.toFixedPrecision(e,i);else{var r=o.split(m.POINT),a=r[1];a&&a.length>i&&(a=a.substr(0,i),n=parseFloat(""+r[0]+m.POINT+a))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=m.EXPONENT_REGEX.exec(t);return n&&(t=e.toFixed(l.limitPrecision(parseInt(n[1],10)))),t.replace(m.POINT,this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&v.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(o.isDevMode()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+m.MIN_DOC_LINK+" and "+m.MAX_DOC_LINK+".")},e.prototype.verifyValue=function(e){if(o.isDevMode()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var r=parseFloat(i),a=!isNaN(r);if(o.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?r:C[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e=v.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,n=t.substring(0,e);if(this.setInputValue(),n.length){var i=v.extractSignificantNumericChars(n,this.decimalSeparator),o=this.adjustSignificantChars(t,i);this.setSelection(o,o)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,o=n[1].length;return i===t?o-1:o}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=a.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoCorrect",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"format",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"decimals",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"spinners",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"maxlength",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.ViewChild("numericInput",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"numericInput",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disableClass",null),i.__decorate([o.HostBinding("class.k-input"),o.HostBinding("class.k-numerictextbox"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoNumericTextBox",providers:[h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:u.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t})),multi:!0},{provide:u.NG_VALIDATORS,useExisting:o.forwardRef((function(){return t})),multi:!0},{provide:r.KendoInput,useExisting:o.forwardRef((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[p.IntlService,o.Renderer2,h.LocalizationService,o.Injector,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],e)}();t.NumericTextBoxComponent=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(18),s=n(46),l=n(48),c=n(94),d=n(15),u=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[a.SliderComponent,c.SliderCustomMessagesComponent,l.LocalizedSliderMessagesDirective],exports:[a.SliderComponent,c.SliderCustomMessagesComponent,d.LabelTemplateDirective,l.LocalizedSliderMessagesDirective],imports:[r.CommonModule,s.SlidersCommonModule]})],e)}();t.SliderModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(20),a=n(6),s=n(56),l=n(41),c=n(2),d=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[s.LocalizedNumericTextBoxMessagesDirective,r.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],exports:[r.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],imports:[a.CommonModule,c.EventsModule]})],e)}();t.NumericTextBoxModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTextBoxSuffixTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.TextBoxSuffixTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTextBoxPrefixTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.TextBoxPrefixTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(63),a=n(39);t.SHARED_DIRECTIVES=[r.InputSeparatorComponent,a.TextAreaDirective];var s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES]})],e)}();t.SharedModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(5),s=n(3),l=n(2),c=n(8),d=n(27),u=n(99),p=n(9),h=n(17),f=n(13),g=n(4),m=n(29),v=n(30),_=n(71),y=n(72),b=function(){function e(e,t,n,i,r,s){var l=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=i,this.renderer=r,this.ngZone=s,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 o.EventEmitter,this.cancel=new o.EventEmitter,this.activeViewChange=new o.EventEmitter,this.actionButtonClick=new o.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new a.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},c.validatePackage(p.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;l.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=f.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},e.prototype.ngOnChanges=function(e){l.isChanged("value",e)&&this.setHostElementAriaLabel(),l.isChanged("paletteSettings",e)&&this.setSizingVariables()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"headerHasContent",{get:function(){return this.preview||this.views.length>1||this.clearButton},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},e.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},e.prototype.reset=function(){g.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},e.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()}))})))},e.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},e.prototype.handleValueChange=function(e){this.value!==e&&(this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e))},e.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.resetSelection=function(e){var t=new h.ColorPickerCancelEvent(e);this.cancel.emit(t),t.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},e.prototype.setHostElementAriaLabel=function(){var e=f.parseColor(this.value,this.format,this.gradientSettings.opacity),t=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",t)},e.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),t="--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",t)},e.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},e.prototype.resetInnerComponentValue=function(){this.selection=null,this.gradient?this.gradient.reset():this.palette.reset()},e.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setActiveView=function(){if(g.isPresent(this.activeView)){if(o.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]},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focus",(function(){e.focused=!0}))),e.subscriptions.add(e.renderer.listen(t,"blur",(function(){e.focused=!1,e.notifyNgTouched()})))}))}},i.__decorate([o.HostBinding("class.k-flatcolorpicker"),o.HostBinding("class.k-coloreditor"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.k-state-disabled"),o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"actionButtonClick",void 0),i.__decorate([o.ViewChild("header",{static:!1}),i.__metadata("design:type",_.FlatColorPickerHeaderComponent)],e.prototype,"header",void 0),i.__decorate([o.ViewChild("gradient",{static:!1}),i.__metadata("design:type",m.ColorGradientComponent)],e.prototype,"gradient",void 0),i.__decorate([o.ViewChild("palette",{static:!1}),i.__metadata("design:type",v.ColorPaletteComponent)],e.prototype,"palette",void 0),i.__decorate([o.ViewChild("footer",{static:!1}),i.__metadata("design:type",y.FlatColorPickerActionButtonsComponent)],e.prototype,"footer",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:l.KendoInput,useExisting:o.forwardRef((function(){return t}))},u.FlatColorPickerService,d.FlatColorPickerLocalizationService,{provide:s.LocalizationService,useExisting:d.FlatColorPickerLocalizationService},{provide:s.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",[o.ElementRef,u.FlatColorPickerService,s.LocalizationService,o.ChangeDetectorRef,o.Renderer2,o.NgZone])],e)}();t.FlatColorPickerComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(69),s=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.colorPickerLocalization=o,r}return i.__extends(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__param(3,o.Optional()),i.__param(3,o.Inject(a.ColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,a.ColorPickerLocalizationService])],t)}(r.LocalizationService);t.FlatColorPickerLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(100),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(5),s=n(10),l=n(3),c=n(2),d=n(8),u=n(12),p=n(13),h=n(4),f=n(18),g=n(108),m=n(70),v=n(14),_=n(9),y=0,b=function(){function e(e,t,n,i,r){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=r,this.hostClasses=!0,this.id="k-colorgradient-"+y++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=v.DEFAULT_OUTPUT_FORMAT,this.valueChange=new o.EventEmitter,this.backgroundColor=v.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new a.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.updateValues=new a.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},d.validatePackage(_.packageMetadata),this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){if(h.isPresent(e)){var t=Number(e);this._tabindex=isNaN(t)?0:t}else this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&this.contrastTool.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){c.isChanged("value",e)&&!this.isFocused&&this.updateUI(),c.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!h.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.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)))},e.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 r=parseInt(n.style.top,10)+o,a=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",a+"px"),this.ngZone.run((function(){return t.moveDragHandle(a,r)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=this.gradientRect,i=e.clientX-n.left,o=e.clientY-n.top;this.ngZone.run((function(){return t.moveDragHandle(i,o)}))}},e.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)},e.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))},e.prototype.handleInputsValueChange=function(e){var t=p.parseColor(e,this.format,this.opacity);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,h.isPresent(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,o=n.width,r=n.height,a=h.fitIntoBounds(t,0,r),s=h.fitIntoBounds(e,0,o);this.setDragHandleElementPosition(a,s);var l=this.hsva.value;l.s=s/o,l.v=1-a/r,this.hsva.next(l),this.updateValues.next(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(p.getColorFromHSV(i.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},e.prototype.updateUI=function(){if(c.isDocumentAvailable()){this.hsva.next(this.value?p.getHSV(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,n=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,n),this.backgroundColor=p.getColorFromHue(this.hsva.value.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(h.isPresent(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.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")))},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){!u.containsFocus(e.host.nativeElement,t.relatedTarget)&&u.isUntouched(e.host)&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(p.getColorFromHSV(e.hsva.value,e.format,e.opacity))}))})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),r=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,o,r)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(s.throttleTime(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},i.__decorate([o.HostBinding("class.k-colorgradient"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),i.__decorate([o.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"gradientId",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"opacity",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"delay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"contrastTool",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.ViewChild("gradientDragHandle",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"gradientDragHandle",void 0),i.__decorate([o.ViewChild("inputs",{static:!1}),i.__metadata("design:type",m.ColorInputComponent)],e.prototype,"inputs",void 0),i.__decorate([o.ViewChild("alphaSlider",{static:!1}),i.__metadata("design:type",f.SliderComponent)],e.prototype,"alphaSlider",void 0),i.__decorate([o.ViewChild("gradientWrapper",{static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"gradientWrapper",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:c.KendoInput,useExisting:o.forwardRef((function(){return t}))},g.ColorGradientLocalizationService,{provide:l.LocalizationService,useExisting:g.ColorGradientLocalizationService},{provide:l.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [style.background]="backgroundColor">\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [smallStep]="5"\n [largeStep]="10"\n [value]="hsva.value.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox" *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,o.ChangeDetectorRef,l.LocalizationService])],e)}();t.ColorGradientComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(2),s=n(3),l=n(8),c=n(109),d=n(9),u=n(28),p=n(13),h=n(4),f=n(110),g=0,m=function(){function e(e,t,n,i,r){var s=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=r,this.id="k-colorpalette-"+g++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellSelection=new o.EventEmitter,this.hostClasses=!0,this.uniqueId=a.guid(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},l.validatePackage(d.packageMetadata),this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=p.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;h.isPresent(e)||(e="office"),"string"==typeof e&&h.isPresent(u.PALETTEPRESETS[e])&&(this.columns=this.columns||u.PALETTEPRESETS[e].columns,e=u.PALETTEPRESETS[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return p.parseColor(e,t.format,!1,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.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())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case a.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case a.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case a.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case a.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case a.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=p.parseColor(e,this.format,!1,!1);this.cellSelection.emit(n),this.handleValueChange(n),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId)}},e.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,h.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.setRows=function(){h.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=p.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(h.isPresent(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"paletteId",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"columns",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"palette",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"tileSize",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cellSelection",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([o.HostBinding("class.k-colorpalette"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),i.__decorate([o.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=i.__decorate([o.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:a.KendoInput,useExisting:o.forwardRef((function(){return t}))},f.ColorPaletteService,c.ColorPaletteLocalizationService,{provide:s.LocalizationService,useExisting:c.ColorPaletteLocalizationService},{provide:s.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",[o.ElementRef,f.ColorPaletteService,o.ChangeDetectorRef,o.Renderer2,s.LocalizationService])],e)}();t.ColorPaletteComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=0,a=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+r++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),i.__decorate([o.HostBinding("class.k-form-error"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"roleAttribute",void 0),i.__decorate([o.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"startClass",null),i.__decorate([o.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"endClass",null),i.__decorate([o.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"idAttribute",null),e=i.__decorate([o.Component({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}();t.ErrorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=0,a=function(){function e(){this.align="start",this.id="kendo-hint-"+r++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([o.HostBinding("class.k-form-hint"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"startClass",null),i.__decorate([o.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"endClass",null),i.__decorate([o.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"idAttribute",null),e=i.__decorate([o.Component({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}();t.HintComponent=a},function(e,t,n){"use strict";n.r(t),n.d(t,"detectMobileOS",(function(){return c})),n.d(t,"detectDesktopBrowser",(function(){return d})),n.d(t,"browser",(function(){return p})),n.d(t,"mobileOS",(function(){return h})),n.d(t,"touch",(function(){return f})),n.d(t,"msPointers",(function(){return g})),n.d(t,"pointers",(function(){return m})),n.d(t,"touchEnabled",(function(){return v})),n.d(t,"getter",(function(){return C})),n.d(t,"setter",(function(){return E}));var i=function(){return"undefined"!=typeof window},o={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},r={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},s={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},l=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},c=function(e){var t,n=[];for(var i in o)if(o.hasOwnProperty(i)){if(!(n=e.match(o[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var a={};return a.device=i,a.browser=l(e,s,"default"),a.name=l(i,r),a[a.name]=!0,a.majorVersion=n[2],a.minorVersion=n[3]?n[3].replace("_","."):".0",t=a.minorVersion.replace(".","").substr(0,2),a.flatVersion=a.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),a.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,a.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||a.cordova,a}return null},d=function(e){var t=null,n=[];for(var i in a)if(a.hasOwnProperty(i)&&(n=e.match(a[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},u=i()&&window.navigator?window.navigator.userAgent:null,p=u?d(u):null,h=u?c(u):null,f=i()&&"ontouchstart"in window,g=p&&!p.chrome&&window.MSPointerEvent,m=p&&!p.chrome&&window.PointerEvent,v=h&&(f||g||m),_=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function y(e){var t=[];return e.replace(_,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),t}var b={};function C(e){if(b[e])return b[e];var t=y(e);return b[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},b[e]}b[void 0]=function(e){return e};var k={undefined:function(e){return e}},S=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function E(e){if(k[e])return k[e];var t=y(e);return k[e]=function(e,n,i){for(var o=e,r=t.length-1,a=0;a<r&&o;a++)o=o[t[a]]=o[t[a]]||S(t[a+1],i);o[t[r]]=n},k[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),o=n(19),r=function(){function e(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()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},e.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)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=i.calculateFixedTrackSize(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?i.calculateFixedTrackSize(this.props):this.elementSize(this.track.parentElement)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,r=e.smallStep,a=i.calculateTicksCount(t,n,r),s=this.trackWidth(),l=s/o.subtract(n,t),c=[],d=0,u=0,p=0;p<a;p++){u=+(u+=0===p||p===a-1?r/2*l:r*l).toFixed(2)-.01;var h=Math.round(u-d);c.push(h),d+=h}return d>=s&&(c[c.length-1]-=1),c},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}();t.SliderModelBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(1),a=n(5),s=n(7),l=n(2),c=n(8),d=n(9),u=n(15),p=function(){function e(e,t,n,i,s,l){var u=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=s,this.hostElement=l,this.title=o.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 r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new a.Subscription,this.ifEnabled=function(e,t){u.isDisabled||e.call(u,t)},c.validatePackage(d.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(s.NgControl,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[l.Keys.ArrowLeft]=t?o.increment:o.decrement,e[l.Keys.ArrowRight]=t?o.decrement:o.increment,e[l.Keys.ArrowDown]=o.decrement,e[l.Keys.ArrowUp]=o.increment,e[l.Keys.PageUp]=o.incrementLarge,e[l.Keys.PageDown]=o.decrementLarge,e[l.Keys.Home]=function(e){return e.min},e[l.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.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([r.Input(),i.__metadata("design:type",Function)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"tickPlacement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"smallStep",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"largeStep",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"fixedTickWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-slider-horizontal"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"horizontalClass",null),i.__decorate([r.HostBinding("class.k-slider-vertical"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"verticalClass",null),i.__decorate([r.HostBinding("class.k-slider"),i.__metadata("design:type",Boolean)],e.prototype,"sliderClass",void 0),i.__decorate([r.HostBinding("class.k-widget"),i.__metadata("design:type",Boolean)],e.prototype,"widgetClass",void 0),i.__decorate([r.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.ViewChild("wrap",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"wrapper",void 0),i.__decorate([r.ViewChild("track",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"track",void 0),i.__decorate([r.ViewChild("sliderSelection",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"sliderSelection",void 0),i.__decorate([r.ViewChild("ticks",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"ticksContainer",void 0),i.__decorate([r.ViewChild("ticks",{static:!1}),i.__metadata("design:type",Object)],e.prototype,"ticks",void 0),i.__decorate([r.ContentChild(u.LabelTemplateDirective,{static:!1}),i.__metadata("design:type",u.LabelTemplateDirective)],e.prototype,"labelTemplate",void 0),e}();t.SliderBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(10),s=n(11),l=n(84),c=n(3),d=n(11),u=n(12),p=n(2),h=n(4),f=n(35),g=function(e){function t(t,n,o,r,a,l){var c=e.call(this,t,n,o,r,a,l)||this;return c.localization=t,c.injector=n,c.renderer=o,c.ngZone=r,c.changeDetector=a,c.hostElement=l,c.startHandleId="k-start-handle-"+p.guid(),c.endHandleId="k-end-handle-"+p.guid(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=d.eventValue(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,o=i[0],r=i[1];t<=o?(n=[t,r],c.activeHandle="startHandle"):o<t&&t<r?t<(o+r)/2?(n=[t,r],c.activeHandle="startHandle"):(n=[o,t],c.activeHandle="endHandle"):t>=r&&(n=[o,t],c.activeHandle="endHandle");var a="startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd;u.invokeElementMethod(a,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,o=t.min,r=c.keyBinding[e.keyCode];if(!c.isDisabled&&r){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var a=d.isStartHandle(e.target),l=r(i.__assign({},t,{value:a?c.value[0]:c.value[1]}));a?l>c.value[1]&&(c.value[1]=l):l<c.value[0]&&(c.value[0]=l);var u=s.trimValue(n,o,l),p=a?[u,c.value[1]]:[c.value[0],u];c.changeValue(p),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(p.hasObservers(c.onBlur)||h.requiresZoneOnBlur(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return i.__extends(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,u.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;u.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;p.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&s.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(a.take(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;p.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.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};var o=e.pageX<this.lastHandlePosition.x,r=e.pageX>this.lastHandlePosition.x,a=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([d.eventValue(e,t.track.nativeElement,t.getProps()),t.value[1]])},l=function(){return t.changeValue([t.value[0],d.eventValue(e,t.track.nativeElement,t.getProps())])},c=function(){return t.changeValue([d.eventValue(e,t.track.nativeElement,t.getProps()),d.eventValue(e,t.track.nativeElement,t.getProps())])},u=d.isStartHandle(this.draggedHandle),p=this.vertical,h=!p,f=p&&a||(this.reverse?h&&r:h&&o);this.value[0]===this.value[1]?f?u?s():c():u?c():l():u?s():l()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){s.validateValue(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;this.value&&s.isSameRange(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.value&&t.valueChange.emit(e),t.sizeComponent()}))},t.prototype.sizeComponent=function(){if(p.isDocumentAvailable()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,o=this.draghandleEnd.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new l.RangeSliderModel(a,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(o),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var 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}),t.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:s.trimValueRange(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===p.Keys.Tab})))}))},i.__decorate([o.Input(),i.__metadata("design:type",Array)],t.prototype,"value",void 0),i.__decorate([o.ViewChild("draghandleStart",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"draghandleStart",void 0),i.__decorate([o.ViewChild("draghandleEnd",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return n}))},{provide:p.KendoInput,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(f.SliderBase);t.RangeSliderComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(3),s=n(2),l=n(8),c=n(9),d=n(4),u=n(5),p=n(10),h=n(33),f=function(){function e(e,t,n,i,r,a){var p=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=r,this.ngZone=a,this.focusableId="k-"+s.guid(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new u.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){p.isFocused||(p.focused=!0,s.hasObservers(p.onFocus)&&p.ngZone.run((function(){p.onFocus.emit()})))},this.handleBlur=function(e){var t=e&&e.relatedTarget;p.hostElement.nativeElement.contains(t)||(p.changeDetector.markForCheck(),p.focused=!1,(s.hasObservers(p.onBlur)||d.requiresZoneOnBlur(p.control))&&p.ngZone.run((function(){p.ngTouched(),p.onBlur.emit()})))},l.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return h.browser&&h.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(p.skip(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(r.NgControl,null),this.ngZone.onStable.pipe(p.take(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},e.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},e.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==s.Keys.Space&&t!==s.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.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(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))}))},e.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=d.getStylingClasses("switch",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,i=d.getStylingClasses("switch","rounded",this.trackRounded,e);i.toRemove&&(this.renderer.removeClass(t,i.toRemove),this.renderer.removeClass(n,i.toRemove)),i.toAdd&&(this.renderer.addClass(t,i.toAdd),this.renderer.addClass(n,i.toAdd))},e.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,n=d.getStylingClasses("switch","rounded",this.thumbRounded,e);n.toRemove&&this.renderer.removeClass(t,n.toRemove),n.toAdd&&this.renderer.addClass(t,n.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"onLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"offLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"checked",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"thumbRounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"trackRounded",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-ie"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ieClass",null),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([o.HostBinding("class.k-switch"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.ViewChild("track",{static:!0}),i.__metadata("design:type",Object)],e.prototype,"track",void 0),i.__decorate([o.ViewChild("thumb",{static:!0}),i.__metadata("design:type",Object)],e.prototype,"thumb",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoSwitch",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:s.KendoInput,useExisting:o.forwardRef((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef,a.LocalizationService,o.Injector,o.ChangeDetectorRef,o.NgZone])],e)}();t.SwitchComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.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(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},i.__decorate([o.HostBinding("class.k-textbox"),o.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),e=t=i.__decorate([o.Directive({selector:"input[kendoTextBox]",providers:[{provide:r.KendoInput,useExisting:o.forwardRef((function(){return t}))}]}),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone])],e)}();t.TextBoxDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(2),s=n(4),l=n(3),c=n(5),d=n(10),u=function(){function e(e,t,n,i,r,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=r,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new o.EventEmitter,this.autoSize=!1,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],a.isDocumentAvailable()&&e.autoSize&&(e.resizeSubscription=c.fromEvent(window,"resize").pipe(d.debounceTime(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=c.fromEvent(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(r.NgControl,null)},e.prototype.ngOnChanges=function(e){var t=this,n=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=n.offsetHeight,this.renderer.setStyle(n,"resize","none")):(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),this.zone.onStable.pipe(d.take(1)).subscribe((function(){return t.resize()}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||a.hasObservers(this.onValueChange)||a.hasObservers(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;a.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(a.hasObservers(this.onBlur)||s.requiresZoneOnBlur(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},i.__decorate([o.HostBinding("class.k-textarea"),o.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"elementClasses",void 0),i.__decorate([o.HostBinding("class.k-autofill"),i.__metadata("design:type",Boolean)],e.prototype,"autofillClass",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoSize",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),e=t=i.__decorate([o.Directive({providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t})),multi:!0},{provide:a.KendoInput,useExisting:o.forwardRef((function(){return t}))}],selector:"textarea[kendoTextArea]"}),i.__param(5,o.Optional()),i.__param(5,o.Inject(l.RTL)),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone,o.ChangeDetectorRef,o.Injector,Boolean])],e)}();t.TextAreaDirective=u},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=n(0),o=n(1),r=n(3),a=n(42),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.NumericTextBoxMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.NumericTextBoxMessages);t.NumericTextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),t}(n(3).ComponentMessages);t.NumericTextBoxMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(3),s=n(8),l=n(9),c=n(90),d=n(2),u=n(12),p=n(4),h=Promise.resolve(null),f=function(){function e(e,t,n,i,r,a,c){var u=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=r,this.changeDetector=a,this.focusableId="k-"+d.guid(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){u.focused=!0,u.maskOnFocus&&u.emptyMask&&(u.updateInput(u.service.maskRaw(u.value)),u.ngZone.runOutsideAngular((function(){setTimeout((function(){u.setSelection(0,0)}),0)}))),d.hasObservers(u.onFocus)&&u.ngZone.run((function(){u.onFocus.emit()}))},this.handleClick=function(){if(u.focused&&!u.focusClick){u.focusClick=!0;var e=u.input.nativeElement;e.selectionStart===e.selectionEnd&&u.setFocusSelection()}},this.handleBlur=function(){u.changeDetector.markForCheck(),u.focused=!1,u.focusClick=!1,u.maskOnFocus&&u.emptyMask&&u.updateInput(u.maskedValue),(d.hasObservers(u.onBlur)||p.requiresZoneOnBlur(u.control))&&u.ngZone.run((function(){u.onTouched(),u.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},s.validatePackage(l.packageMetadata),this.direction=c?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(r.NgControl,null)},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,o=i[0],r=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var a=this.maskedValue.length-r,s=n.length-a;t=this.service.maskInRange(n.slice(o,s),this.maskedValue,o,r)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),d.isChanged("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else d.anyChanged(["promptPlaceholder","includeLiterals"],e)?h.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.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},e.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)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&u.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=p.isPresent(e);if(t&&"string"!=typeof e){if(o.isDevMode())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=p.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-input"),o.HostBinding("class.k-maskedtextbox"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"mask",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"rules",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"prompt",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"promptPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"includeLiterals",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"maskValidation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.ViewChild("input",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"input",void 0),i.__decorate([o.HostListener("paste",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"pasteHandler",null),i.__decorate([o.HostListener("input",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=i.__decorate([o.Component({exportAs:"kendoMaskedTextBox",providers:[c.MaskingService,{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{multi:!0,provide:r.NG_VALIDATORS,useExisting:o.forwardRef((function(){return t}))},{provide:d.KendoInput,useExisting:o.forwardRef((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),i.__param(6,o.Optional()),i.__param(6,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[c.MaskingService,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,o.ChangeDetectorRef,Boolean])],e)}();t.MaskedTextBoxComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),o=n(92),r=function(e){return(e||"").split("")},a=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof o.Stream?this.parse(e):this.parse(new o.Stream(r(e),r(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===i.ResultType.Literal},e}();t.Parser=a,t.mask=function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new a((function(o){for(;!o.eof();){var r=o.peek(),a=r.char,s=r.control;if(a===s&&s===t)return o.eat(),new i.Result(t,o,i.ResultType.Mask);if(e.test(a))return o.eat(),new i.Result(a,o,i.ResultType.Mask);if(a===n)return o.eat(),new i.Result(t,o,i.ResultType.Mask);o.eat_input()}return o.eat(),new i.Result(t,o,i.ResultType.Mask)}))}},t.literal=function(e){return new a((function(t){return t.peek().char===e?(t.eat(),new i.Result(e,t,i.ResultType.Literal)):new i.Result(e,t,i.ResultType.Literal)}))},t.unmask=function(e){return function(t){return new a((function(n){for(;!n.eof();){var o=n.peek(),r=o.char,a=o.control;if(r===e&&a===e)return n.eat(),new i.Result(r,n);if(t.test(r))return n.eat(),new i.Result(r,n);n.eat_input()}return n.eat(),new i.Result("",n)}))}},t.unliteral=function(e){return new a((function(t){return t.eof()?new i.Result("",t):(t.peek().char===e&&t.eat(),new i.Result(e,t))}))},t.token=function(e,t){return new a((function(n){var o=n.next().char,r=e[o];return"\\"===o?(o=n.next().char,new i.Result(t.literal(o),n)):r?new i.Result(t.mask(r),n):new i.Result(t.literal(o),n)}))},t.rawMask=function(e){var t=e.prompt,n=e.promptPlaceholder;return new a((function(e){var o=e.next().char;return o===t?new i.Result(n,e):new i.Result(o,e)}))},t.rawLiteral=function(e){return new a((function(t){var n=t.next().char;return e?new i.Result(n,t):new i.Result("",t)}))}},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(i=t.ResultType||(t.ResultType={}));var o=function(){function e(e,t,n){void 0===n&&(n=i.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}();t.Result=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(47),s=n(15),l=n(2),c=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[a.SliderTicksComponent,s.LabelTemplateDirective],exports:[s.LabelTemplateDirective,a.SliderTicksComponent,l.DraggableModule,l.EventsModule,l.ResizeSensorModule],imports:[r.CommonModule,l.DraggableModule,l.EventsModule,l.ResizeSensorModule]})],e)}();t.SlidersCommonModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(11),a=function(e){this.value=e,this.classes={"k-tick":!0}},s=function(){function e(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.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 a(r.calculateValueFromTick(o,n))),t&&o%t==0&&(i[o].large=!0,i[o].classes["k-tick-large"]=!0);i.length>0&&(Object.assign(i[0].classes,this.endTickClasses(!0)),Object.assign(i[i.length-1].classes,this.endTickClasses(!1))),this.ticks=i},e.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)],e.prototype,"wrapperClasses",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"tickTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"largeStep",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"labelTemplate",void 0),i.__decorate([o.ViewChildren("tickElement"),i.__metadata("design:type",o.QueryList)],e.prototype,"tickElements",void 0),e=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"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],e)}();t.SliderTicksComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(49),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.SliderMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.SliderMessages);t.LocalizedSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandle",void 0),t}(n(3).ComponentMessages);t.SliderMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(46),s=n(36),l=n(51),c=n(95),d=n(15),u=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[s.RangeSliderComponent,c.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective],exports:[s.RangeSliderComponent,c.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective,d.LabelTemplateDirective],imports:[r.CommonModule,a.SlidersCommonModule]})],e)}();t.RangeSliderModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(52),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.RangeSliderMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.RangeSliderMessages);t.LocalizedRangeSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(n(3).ComponentMessages);t.RangeSliderMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(37),a=n(6),s=n(2),l=n(54),c=n(96),d=n(2),u=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.SwitchComponent,c.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],exports:[r.SwitchComponent,c.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],imports:[a.CommonModule,d.EventsModule,s.ResizeSensorModule]})],e)}();t.SwitchModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(55),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedSwitchMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"on",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"off",void 0),t}(n(3).ComponentMessages);t.Messages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(42),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.NumericTextBoxMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.NumericTextBoxMessages);t.LocalizedNumericTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(43),a=n(6),s=n(2),l=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.MaskedTextBoxComponent],exports:[r.MaskedTextBoxComponent],imports:[a.CommonModule,s.EventsModule]})],e)}();t.MaskedTextBoxModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(38),a=n(59),s=n(6),l=n(2),c=n(23),d=n(24),u=n(97),p=n(62),h=n(25),f=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.TextBoxDirective,a.TextBoxComponent,c.TextBoxSuffixTemplateDirective,d.TextBoxPrefixTemplateDirective,u.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective],exports:[r.TextBoxDirective,a.TextBoxComponent,c.TextBoxSuffixTemplateDirective,d.TextBoxPrefixTemplateDirective,l.EventsModule,u.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective,h.SHARED_DIRECTIVES],imports:[s.CommonModule,l.EventsModule,h.SharedModule]})],e)}();t.TextBoxModule=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(60),r=n(12),a=n(7),s=n(1),l=n(8),c=n(9),d=n(12),u=n(4),p=n(2),h=n(23),f=n(24),g=n(3),m=n(60),v=function(){function e(e,t,n,i,r,a){var d=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=r,this.hostElement=a,this.focusableId="k-"+p.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new s.EventEmitter,this.inputFocus=new s.EventEmitter,this.inputBlur=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){d.disabled||(d.selectOnFocus&&d.value&&d.ngZone.run((function(){setTimeout((function(){d.selectAll()}))})),p.hasObservers(d.onFocus)&&(d.isFocused||d.ngZone.run((function(){d.onFocus.emit()}))),p.hasObservers(d.inputFocus)&&(!d.focusChangedProgrammatically||d.focusChangedProgrammatically&&d.clearButtonClicked)&&d.ngZone.run((function(){d.inputFocus.emit()})),d.ngZone.run((function(){d.isFocused=!0})))},this.handleInputBlur=function(){d.changeDetector.markForCheck(),(p.hasObservers(d.inputBlur)||u.requiresZoneOnBlur(d.control))&&d.ngZone.run((function(){d.ngTouched(),d.inputBlur.emit()}))},this.handleInput=function(e){var t=m.isSafari(navigator.userAgent)&&o.isJapanese(e.target.value)?e.data:e.target.value;d.updateValue(t)},this.ngChange=function(e){},this.ngTouched=function(){},l.validatePackage(c.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(a.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(r.closest(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===p.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.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},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&d.invokeElementMethod(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;u.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(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=u.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"showSuccessIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"showErrorIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"successIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"errorIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"clearButtonIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"maxlength",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"inputFocus",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"inputBlur",void 0),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([s.ViewChild("input",{static:!0}),i.__metadata("design:type",s.ElementRef)],e.prototype,"input",void 0),i.__decorate([s.ContentChild(h.TextBoxSuffixTemplateDirective,{static:!1}),i.__metadata("design:type",h.TextBoxSuffixTemplateDirective)],e.prototype,"suffixTemplate",void 0),i.__decorate([s.ContentChild(f.TextBoxPrefixTemplateDirective,{static:!1}),i.__metadata("design:type",f.TextBoxPrefixTemplateDirective)],e.prototype,"prefixTemplate",void 0),i.__decorate([s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([s.HostBinding("class.k-textbox"),s.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e=t=i.__decorate([s.Component({exportAs:"kendoTextBox",providers:[g.LocalizationService,{provide:g.L10N_PREFIX,useValue:"kendo.textbox"},{provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef((function(){return t})),multi:!0},{provide:p.KendoInput,useExisting:s.forwardRef((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),i.__metadata("design:paramtypes",[g.LocalizationService,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.Injector,s.ElementRef])],e)}();t.TextBoxComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(33);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=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"clear",void 0),t}(n(3).ComponentMessages);t.TextBoxMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(61),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.TextBoxMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.TextBoxMessages);t.LocalizedTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(){this.hostClass=!0}return i.__decorate([o.HostBinding("class.k-input-separator"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Component({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}();t.InputSeparatorComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(65),s=n(2),l=n(66),c=n(25),d=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[a.TextAreaComponent,l.TextAreaSuffixComponent],exports:[a.TextAreaComponent,s.EventsModule,l.TextAreaSuffixComponent,c.SHARED_DIRECTIVES],imports:[r.CommonModule,s.EventsModule,c.SharedModule]})],e)}();t.TextAreaModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(5),a=n(10),s=n(7),l=n(2),c=n(3),d=n(98),u=n(4),p=n(12),h=n(12),f=n(8),g=n(9),m={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},v=function(e){function t(t,n,i,r,a,s){var c=e.call(this,t,n,i,r,a,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=r,c.injector=a,c.hostElement=s,c.focusableId="k-"+l.guid(),c.hostClasses=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new o.EventEmitter,c.onBlur=new o.EventEmitter,c.valueChange=new o.EventEmitter,c._size="medium",c._rounded="medium",c._fillMode="solid",c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),l.hasObservers(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),l.hasObservers(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},f.validatePackage(g.packageMetadata),c.direction=t.rtl?"rtl":"ltr",c}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(h.closest(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===l.Keys.Tab}))),e.handleFlow()}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(s.NgControl,null),l.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=r.fromEvent(window,"resize").pipe(a.debounceTime(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(u.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;u.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return m[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&p.invokeElementMethod(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},t.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=u.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},t.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,i=t.children[1];this.renderer.setStyle(n,"flex",e?"none":"1"),i&&this.renderer.setStyle(i,"align-items",e?"center":"start")},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"focusableId",void 0),i.__decorate([o.HostBinding("class.k-textarea"),o.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.!k-flex-col"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"flowCol",null),i.__decorate([o.HostBinding("class.!k-flex-row"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"flowRow",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"flow",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"rows",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"cols",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"maxlength",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"resizable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"fillMode",null),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"valueChange",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:s.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return n})),multi:!0},{provide:l.KendoInput,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n ',styles:["\n :host {\n display: inline-flex;\n }\n "]}),i.__metadata("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],t)}(d.TextFieldsBase);t.TextAreaComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(){this.hostClass=!0}return i.__decorate([o.HostBinding("class.k-input-suffix"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Component({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}();t.TextAreaSuffixComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(81),s=n(2),l=n(21),c=n(22),d=n(68),u=n(30),p=n(29),h=n(70),f=n(71),g=n(72),m=n(26),v=n(111),_=n(74),y=n(112),b=n(113),C=n(114),k=n(115),S=[d.ColorPickerComponent,u.ColorPaletteComponent,p.ColorGradientComponent,m.FlatColorPickerComponent,_.LocalizedColorPickerMessagesDirective,v.ColorPickerCustomMessagesComponent],E=[h.ColorInputComponent,y.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,g.FlatColorPickerActionButtonsComponent,k.ColorContrastSvgComponent],w=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[S,E],exports:[S],imports:[l.SliderModule,c.NumericTextBoxModule,r.CommonModule,a.PopupModule,s.DraggableModule]})],e)}();t.ColorPickerModule=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(10),r=n(1),a=n(7),s=n(5),l=n(26),c=n(81),d=n(8),u=n(2),p=n(3),h=n(9),f=n(28),g=n(17),m=n(13),v=n(4),_=n(69),y=n(14),b=["focus","blur"],C=function(){function e(e,t,n,i,o,a){var l=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=i,this.ngZone=o,this.renderer=a,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new r.EventEmitter,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.cancel=new r.EventEmitter,this.activeColorClick=new r.EventEmitter,this.activeViewChange=new r.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new s.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},d.validatePackage(h.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;l.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=m.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?y.DEFAULT_PRESET:y.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&f.PALETTEPRESETS[t]?f.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)})),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=m.parseColor(this.value,this.format,this.gradientSettings.opacity)),u.isChanged("value",e)&&this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",b)},e.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},e.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},e.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),u.closest(e.target,(function(e){return e===t.activeColor.nativeElement}))){var n=new g.ActiveColorClickEvent(this.value);return this.activeColorClick.emit(n),void(n.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}},e.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run((function(){e.focus(),e.onFocus.emit()}))},e.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},e.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run((function(){e.onBlur.emit(),e.isFocused=!1}))},e.prototype.reset=function(){v.isPresent(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=v.isPresent(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e){var t=m.parseColor(e,this.format,this.gradientSettings.opacity);t!==this.value&&(this.value=t,this.valueChange.emit(t),this.setHostElementAriaLabel(),this.notifyNgChanged(t))},e.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==u.Keys.ArrowDown&&e.keyCode!==u.Keys.Enter||(e.preventDefault(),this.ngZone.run((function(){t.toggleWithEvents(!0)})))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===u.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===u.Keys.Tab){var t=e.shiftKey?this.firstFocusableElement.nativeElement:this.lastFocusableElement.nativeElement,n=e.shiftKey?this.lastFocusableElement.nativeElement:this.firstFocusableElement.nativeElement;e.target===t&&(e.preventDefault(),n.focus())}},e.prototype.isEmpty=function(){return!1},e.prototype.setHostElementAriaLabel=function(){var e=""+(this.value?this.value:this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},e.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,i=v.getStylingClasses("picker",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return u.closest(e.relatedTarget,(function(e){return e===t.host.nativeElement}))||n},e.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new g.ColorPickerOpenEvent,this.open.emit(t)):(t=new g.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},e.prototype.focusFirstElement=function(){var e=this;this.ngZone.onStable.pipe(o.take(1)).subscribe((function(){if(e.flatColorPicker){var t=e.flatColorPicker.gradient;(t?t.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()}}))},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(e.prototype,"firstFocusableElement",{get:function(){if(!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton){var e=this.flatColorPicker.gradient;return e?e.gradientDragHandle:this.flatColorPicker.palette.host}return this.views.length>1?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFocusableElement",{get:function(){if(this.preview)return this.flatColorPicker.footer.lastButton;if(this.flatColorPicker.palette)return this.flatColorPicker.palette.host;var e=this.flatColorPicker.gradient,t=e&&e.inputs;return e&&t&&"hex"===t.formatView?t.hexInput:this.gradientSettings.opacity?t.opacityInput.numericInput:t.blueInput},enumerable:!0,configurable:!0}),e.prototype.handleDomEvents=function(e,t){var n=this,i=this.host.nativeElement;t.forEach((function(t){return i[e+"EventListener"](t,n.domFocusListener,!0)}))},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.handleWrapperFocus()}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){var n=!!e.popupRef&&u.closest(t.relatedTarget,(function(t){return t===e.flatColorPicker.host.nativeElement})),i=u.closest(t.relatedTarget,(function(t){return t===e.host.nativeElement}));n||i||e.handleWrapperBlur()}))),e.handleDomEvents("add",b),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(t){e.handleWrapperKeyDown(t)}))),e.subscriptions.add(e.renderer.listen(t,"click",(function(t){e.ngZone.run((function(){e.handleWrapperClick(t)}))})))}))}},e.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");if(t)this.focusableId=t;else{var n="k-"+u.guid();e.setAttribute("id",n),this.focusableId=n}},i.__decorate([r.HostBinding("class.k-colorpicker"),r.HostBinding("class.k-icon-picker"),r.HostBinding("class.k-picker"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),i.__decorate([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([r.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaExpanded",null),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"view",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"iconClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeColorClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("activeColor",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"activeColor",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild("flatColorPicker",{static:!1}),i.__metadata("design:type",l.FlatColorPickerComponent)],e.prototype,"flatColorPicker",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:u.KendoInput,useExisting:r.forwardRef((function(){return t}))},_.ColorPickerLocalizationService,{provide:p.LocalizationService,useExisting:_.ColorPickerLocalizationService},{provide:p.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n tabindex="-1"\n type="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,c.PopupService,r.ChangeDetectorRef,p.LocalizationService,r.NgZone,r.Renderer2])],e)}();t.ColorPickerComponent=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean])],t)}(r.LocalizationService);t.ColorPickerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(13),a=n(4),s=n(2),l=n(5),c=n(3),d=n(20),u=function(){function e(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 o.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new l.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!s.isDocumentAvailable()||!a.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return a.isPresent(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){a.isPresent(e.value)&&!this.isFocused&&(this.hex=r.parseColor(this.value,"hex",this.opacity),this.rgba=r.getRGBA(this.value),this.rgba.a=r.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(e.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),e.prototype.handleRgbaValueChange=function(){var e=r.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=r.getRGBA(this.value),this.hex=r.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=r.parseColor(e,"rgba",this.opacity);a.isPresent(t)&&t!==this.value&&(this.value=t,this.rgba=r.getRGBA(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=r.getRGBA(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=r.parseColor(this.value,"hex",this.opacity)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.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)],e.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"formatView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"opacity",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.HostBinding("class.k-colorgradient-inputs"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"colorInputClass",void 0),i.__decorate([o.ViewChild("opacityInput",{static:!1}),i.__metadata("design:type",d.NumericTextBoxComponent)],e.prototype,"opacityInput",void 0),i.__decorate([o.ViewChild("hexInput",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"hexInput",void 0),i.__decorate([o.ViewChild("blueInput",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"blueInput",void 0),i.__decorate([o.ViewChild("toggleFormatButton",{static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=i.__decorate([o.Component({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n type="button"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,c.LocalizationService])],e)}();t.ColorInputComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new o.EventEmitter,this.valuePaneClick=new o.EventEmitter,this.clearButtonClick=new o.EventEmitter}return e.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(e.prototype,"viewButtons",{get:function(){return this.views&&this.views.indexOf("gradient")>=0&&this.views.indexOf("palette")>=0},enumerable:!0,configurable:!0}),e.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},e.prototype.getText=function(e){return this.localizationService.get(e)},i.__decorate([o.HostBinding("class.k-coloreditor-header"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"viewChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valuePaneClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"clearButtonClick",void 0),i.__decorate([o.ViewChildren("viewButtons",{read:o.ElementRef}),i.__metadata("design:type",o.QueryList)],e.prototype,"viewButtonsCollection",void 0),i.__decorate([o.ViewChild("clearButton",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"clearButtonElement",void 0),e=i.__decorate([o.Component({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n type="button"\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n type="button"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.FlatColorPickerHeaderComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new o.EventEmitter}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.onActionButtonClick=function(e,t){var n={target:e,originalEvent:t};this.actionButtonClick.emit(n)},i.__decorate([o.HostBinding("class.k-coloreditor-footer"),o.HostBinding("class.k-actions"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"actionButtonClick",void 0),i.__decorate([o.ViewChild("last",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"lastButton",void 0),e=i.__decorate([o.Component({selector:"[kendoFlatColorPickerActionButtons]",template:'\n <button\n class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"\n [attr.title]="getText(\'cancelButton\')"\n (click)="onActionButtonClick(\'cancel\', $event)"\n type="button"\n >{{getText(\'cancelButton\')}}</button>\n <button #last\n class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"\n [attr.title]="getText(\'applyButton\')"\n (click)="onActionButtonClick(\'apply\', $event)"\n type="button"\n >{{getText(\'applyButton\')}}</button>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.FlatColorPickerActionButtonsComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"colorGradientNoColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"flatColorPickerNoColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"colorPickerNoColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"colorGradientHandle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"hueSliderHandle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"opacitySliderHandle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"redInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"passContrast",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"failContrast",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"contrastRatio",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"previewColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"revertSelection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"gradientView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"paletteView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"formatButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"applyButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cancelButton",void 0),t}(n(3).ComponentMessages);t.ColorPickerMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(73),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.ColorPickerMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.ColorPickerMessages);t.LocalizedColorPickerMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(76),a=n(6),s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.CheckBoxDirective],exports:[r.CheckBoxDirective],imports:[a.CommonModule]})],e)}();t.CheckBoxModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=r.getStylingClasses("checkbox",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.HostBinding("class.k-checkbox"),i.__metadata("design:type",Boolean)],e.prototype,"kendoClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),e=i.__decorate([o.Directive({selector:"input[kendoCheckBox]"}),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}();t.CheckBoxDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(78),a=n(6),s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.RadioButtonDirective],exports:[r.RadioButtonDirective],imports:[a.CommonModule]})],e)}();t.RadioButtonModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(8),a=n(4),s=n(9),l=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",r.validatePackage(s.packageMetadata)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=a.getStylingClasses("radio",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.HostBinding("class.k-radio"),i.__metadata("design:type",Boolean)],e.prototype,"kendoClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),e=i.__decorate([o.Directive({selector:"input[kendoRadioButton]"}),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}();t.RadioButtonDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(80),s=n(32),l=n(31),c=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[s.HintComponent,l.ErrorComponent,a.FormFieldComponent],exports:[s.HintComponent,l.ErrorComponent,a.FormFieldComponent],imports:[r.CommonModule]})],e)}();t.FormFieldModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(5),s=n(2),l=n(3),c=n(8),d=n(9),u=n(31),p=n(32),h=function(){function e(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 a.Subscription,this.rtl=!1,c.validatePackage(d.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.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.")},e.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)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof r.RadioControlValueAccessor},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.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}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.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)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-form-field-error"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"errorClass",null),i.__decorate([o.HostBinding("class.k-form-field-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.ContentChildren(r.NgControl,{descendants:!0}),i.__metadata("design:type",o.QueryList),i.__metadata("design:paramtypes",[o.QueryList])],e.prototype,"formControls",null),i.__decorate([o.ContentChildren(r.NgControl,{read:o.ElementRef,descendants:!0}),i.__metadata("design:type",o.QueryList)],e.prototype,"controlElementRefs",void 0),i.__decorate([o.ContentChild(s.KendoInput,{static:!0}),i.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),i.__decorate([o.ContentChildren(u.ErrorComponent,{descendants:!0}),i.__metadata("design:type",o.QueryList)],e.prototype,"errorChildren",void 0),i.__decorate([o.ContentChildren(p.HintComponent,{descendants:!0}),i.__metadata("design:type",o.QueryList)],e.prototype,"hintChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"showHints",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"orientation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"showErrors",void 0),e=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])],e)}();t.FormFieldComponent=h},function(e,t,n){"use strict";n.r(t),n.d(t,"AlignService",(function(){return te})),n.d(t,"AnimationService",(function(){return ae})),n.d(t,"DOMService",(function(){return Q})),n.d(t,"PositionService",(function(){return ne})),n.d(t,"ResizeService",(function(){return ie})),n.d(t,"ScrollableService",(function(){return oe})),n.d(t,"PopupService",(function(){return ue})),n.d(t,"POPUP_CONTAINER",(function(){return de})),n.d(t,"PopupComponent",(function(){return ce})),n.d(t,"PopupModule",(function(){return he})),n.d(t,"SCALE",(function(){return ee}));var i=n(0),o=n(1),r="bottom",a="center",s="middle",l="left",c="right",d="top",u=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,l=e.margin;void 0===l&&(l={});var d=n.horizontal,u=n.vertical,p=o.horizontal,h=o.vertical,f=l.horizontal||0,g=l.vertical||0,m=t.top,v=t.left;return u===r&&(m+=t.height),u!==a&&u!==s||(m+=Math.round(t.height/2)),h===r&&(m-=i.height,g*=-1),h!==a&&h!==s||(m-=Math.round(i.height/2),g*=-1),d===c&&(v+=t.width),d!==a&&d!==s||(v+=Math.round(t.width/2)),p===c&&(v-=i.width,f*=-1),p!==a&&p!==s||(v-=Math.round(i.width/2),f*=-1),{top:m+g,left:v+f}};function p(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},g=function(e){return h(e).documentElement},m=0;function v(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function _(e){var t=f(e),n=g(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=v()),i}var y=function(e){if(!e.getBoundingClientRect){var t=_(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},b=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||g(e)},C=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}},k=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function S(e){var t=g(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?S(e):{x:e.scrollLeft,y:e.scrollTop}};var w=function(e,t){var n=f(e),i=n.getComputedStyle(e),o=C(e),r=t||b(e),a=e.ownerDocument,s=r!==a.body&&r!==a.documentElement,l={top:0,left:0};if("fixed"!==i.position&&s){var c=n.getComputedStyle(r);(l=C(r)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},x=function(e,t){return e?E(e):function(e){var t=b(e);return t?E(t):{x:0,y:0}}(t)},O=function(e,t,n){void 0===n&&(n=1);var i=t?b(t):null,o=w(e,i),r=o.top,a=o.left,s=o.height,l=o.width,c=x(i,e),d=c.x,u=c.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:r+u*h,left:a+d*h,height:s,width:l}};function P(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var I="fit",B="flip",T=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},j=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,c=e.elementAlignPoint,u=0,p=2*e.margin;if(c!==r&&!(c===a||c===s)&&!(r===a||r===s)){var h=r===d||r===l;t<0&&h?t+(u=n+i+p)+n>o&&(u=0):t>=0&&!h&&(t+n>o&&(u+=-(i+n+p)),t+u<0&&(u=0))}return u},R=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=i.top,c=i.left,d=i.height,u=i.width,p=a.height,h=a.width,f=s.horizontal||0,g=s.vertical||0,m=0,v=0,_=r.vertical===I,y=r.horizontal===I,b=r.vertical===B,C=r.horizontal===B;_&&(v+=T(l,d,p)),y&&(m+=T(c,u,h)),b&&(v+=j({margin:g,offset:l,size:d,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),C&&(m+=j({margin:f,offset:c,size:u,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var k=b&&0!==v,S=C&&0!==m,E=_&&0!==v,w=y&&0!==m;return{flipped:S||k,fitted:E||w,flip:{horizontal:S,vertical:k},fit:{horizontal:w,vertical:E},offset:{left:m,top:v}}},M=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},D=function(e,t){for(var n,i,o=k(e),r=t;r&&(n=M(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};A=function(e){if(!F())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},V=!1;var A,z,V,F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},H=n(2),N=n(5),L=n(10),K=n(16),Z=n(8),G=n(6),U=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},W=function(){return"undefined"!=typeof window},q=/auto|scroll/,X=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var $=function(e){var t,n=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n||(t=e.apply(void 0,i),n=!0),t}}((function(){if(!Object(H.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t})),Y=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},J=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return p(e,t)},e.prototype.align=function(e){return u(e)},e.prototype.boundingOffset=function(e){return y(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return J.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return W()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?C(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,o=i.left,r=i.top,a=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=C(n);return n.style.left=o,n.style.top=r,n.offsetHeight,n.style.transition=a,s},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?O(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return P(e,t)},e.prototype.restrictToView=function(e){return R(e)},e.prototype.scrollPosition=function(e){return S(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(H.isDocumentAvailable)()||!W())return t;for(var n=e.parentElement;n;)(q.test(X(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?C(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!$())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return _(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(H.isDocumentAvailable)()||!W())return null;var n=D(e,t);if(!n)return null;var i=[e].concat(k(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(H.isDocumentAvailable)()&&W()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),ee=new o.InjectionToken("Popup Document Scale"),te=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,r=e.margin,a=e.offset,s=e.positionMode,l=this.scale||1,c="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,l):this.relativeRect(t,n,a,l),d=Y(this._dom.offset(n),l);return this._dom.align({anchorAlign:i,anchorRect:c,elementAlign:o,elementRect:d,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=U(this._dom.offset(e),n),a=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=a,s.y/=a);var l=this._dom.stackingElementOffset(t);return 1!==i&&l&&(l.left/=a,l.top/=a),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(Y(r,i),l),s),o)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var o=U(this._dom.position(e,t,i),n);return Y(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(ee)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[Q,Number])],e)}(),ne=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,i=e.element,o=e.anchorAlign,r=e.elementAlign,a=e.collisions,s=e.margin,l=this._dom,c=this.scale||1,d=l.offsetAtPoint(i,n),u=Y(d,c),p=Y(l.offset(t),c),h=U(p,n),f=e.viewPort||l.windowViewPort(i);f.width=f.width/c,f.height=f.height/c;var g=l.restrictToView({anchorAlign:o,anchorRect:h,collisions:a,elementAlign:r,elementRect:u,margin:s,viewPort:f}),m=l.addOffset(n,g.offset);return{flip:g.flip,flipped:g.flipped,offset:m}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(ee)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[Q,Number])],e)}(),ie=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(H.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(N.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(L.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[Q,o.NgZone])],e)}(),oe=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(H.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var o=i.map((function(e){return Object(N.fromEvent)(e,"scroll").pipe(Object(L.auditTime)(1e3/60))}));t.subscription=N.merge.apply(void 0,o).subscribe((function(o){var r=o.target,a=i.filter((function(e){return e===r})).length>0,s=r===document,l=r===window;(a||s||l)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[Q,o.NgZone])],e)}(),re={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},ae=function(){function e(e){this.animationBuilder=e,this.start=new o.EventEmitter,this.end=new o.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=t.type||"slide",r=re[i];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var o=n.duration||100,r=this.animationBuilder.build([Object(K.style)(t.start),Object(K.animate)(o+"ms ease-in",Object(K.style)(t.end))]),a=this.player=r.create(e);a.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),a.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[K.AnimationBuilder])],e)}(),se={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583997,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"},le={left:-1e4,top:0},ce=function(){function e(e,t,n,i,r,a,s,l,c){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=a,this.animationService=s,this._renderer=l,this._zone=c,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=le,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(Z.validatePackage)(se),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=le,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(N.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(H.isDocumentAvailable)()){var t,n,i,o,r,a,s=this.position(),l=s.flip,c=s.offset;(!this.currentOffset||(t=this.currentOffset,n=c,i=t.left,o=t.top,r=n.left,a=n.top,Math.abs(i-r)>=1||Math.abs(o-a)>=1))&&(this.currentOffset=c,Object(H.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:c,flip:l})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,l),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(H.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(H.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",H.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[te,ae,Q,ne,ie,oe],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,te,Q,ne,ie,oe,ae,o.Renderer2,o.NgZone])],e)}(),de=new o.InjectionToken("Popup Container"),ue=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,i=t.nodes,o=this.appendPopup(i,e.appendTo),r=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var a=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=a)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:a,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(ce,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var o=i.create(this.injector,t);return this.applicationRef.attachView(o.hostView),o},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof o.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof o.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(de)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),pe=[ce],he=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[pe],entryComponents:[pe],exports:[pe],imports:[G.CommonModule,H.ResizeSensorModule],providers:[ue]})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(18);t.SliderComponent=o.SliderComponent;var r=n(36);t.RangeSliderComponent=r.RangeSliderComponent;var a=n(15);t.LabelTemplateDirective=a.LabelTemplateDirective;var s=n(37);t.SwitchComponent=s.SwitchComponent;var l=n(38);t.TextBoxDirective=l.TextBoxDirective;var c=n(39);t.TextAreaDirective=c.TextAreaDirective;var d=n(20);t.NumericTextBoxComponent=d.NumericTextBoxComponent;var u=n(41);t.NumericTextBoxCustomMessagesComponent=u.NumericTextBoxCustomMessagesComponent;var p=n(43);t.MaskedTextBoxComponent=p.MaskedTextBoxComponent;var h=n(93);t.InputsModule=h.InputsModule;var f=n(47);t.SliderTicksComponent=f.SliderTicksComponent;var g=n(21);t.SliderModule=g.SliderModule;var m=n(50);t.RangeSliderModule=m.RangeSliderModule;var v=n(53);t.SwitchModule=v.SwitchModule;var _=n(22);t.NumericTextBoxModule=_.NumericTextBoxModule;var y=n(57);t.MaskedTextBoxModule=y.MaskedTextBoxModule;var b=n(58);t.TextBoxModule=b.TextBoxModule;var C=n(64);t.TextAreaModule=C.TextAreaModule;var k=n(75);t.CheckBoxModule=k.CheckBoxModule;var S=n(77);t.RadioButtonModule=S.RadioButtonModule;var E=n(68);t.ColorPickerComponent=E.ColorPickerComponent;var w=n(30);t.ColorPaletteComponent=w.ColorPaletteComponent;var x=n(29);t.ColorGradientComponent=x.ColorGradientComponent;var O=n(67);t.ColorPickerModule=O.ColorPickerModule,i.__exportStar(n(17),t);var P=n(26);t.FlatColorPickerComponent=P.FlatColorPickerComponent;var I=n(17);t.ColorPickerCancelEvent=I.ColorPickerCancelEvent;var B=n(76);t.CheckBoxDirective=B.CheckBoxDirective;var T=n(78);t.RadioButtonDirective=T.RadioButtonDirective;var j=n(32);t.HintComponent=j.HintComponent;var R=n(31);t.ErrorComponent=R.ErrorComponent;var M=n(80);t.FormFieldComponent=M.FormFieldComponent;var D=n(79);t.FormFieldModule=D.FormFieldModule;var A=n(59);t.TextBoxComponent=A.TextBoxComponent;var z=n(24);t.TextBoxPrefixTemplateDirective=z.TextBoxPrefixTemplateDirective;var V=n(23);t.TextBoxSuffixTemplateDirective=V.TextBoxSuffixTemplateDirective;var F=n(65);t.TextAreaComponent=F.TextAreaComponent;var H=n(66);t.TextAreaSuffixComponent=H.TextAreaSuffixComponent;var N=n(63);t.InputSeparatorComponent=N.InputSeparatorComponent;var L=n(25);t.SharedModule=L.SharedModule;var K=n(74);t.LocalizedColorPickerMessagesDirective=K.LocalizedColorPickerMessagesDirective;var Z=n(56);t.LocalizedNumericTextBoxMessagesDirective=Z.LocalizedNumericTextBoxMessagesDirective;var G=n(62);t.LocalizedTextBoxMessagesDirective=G.LocalizedTextBoxMessagesDirective;var U=n(48);t.LocalizedSliderMessagesDirective=U.LocalizedSliderMessagesDirective;var W=n(51);t.LocalizedRangeSliderMessagesDirective=W.LocalizedRangeSliderMessagesDirective;var q=n(54);t.LocalizedSwitchMessagesDirective=q.LocalizedSwitchMessagesDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,r=t.reverse,a=t.vertical?"bottom":"left",s=this.trackWidth(),l=o.trimValue(n,i,this.props.value);this.handlePosition=o.calculateHandlePosition({min:i,max:n,reverse:r,value:l,trackWidth:s}),this.renderer.setStyle(e,a,this.handlePosition+"px")},t.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",o=this.handlePosition;n&&(o=this.trackWidth()-o),this.renderer.setStyle(e,i,o+"px")},t}(n(34).SliderModelBase);t.SliderModel=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(11),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,a=t.reverse,s=t.vertical?"bottom":"left",l=this.trackWidth(),c=o.isStartHandle(e)?r.trimValueRange(n,i,this.props.value)[0]:r.trimValueRange(n,i,this.props.value)[1];o.isStartHandle(e)?(this.startHandlePosition=r.calculateHandlePosition({min:i,max:n,reverse:a,value:c,trackWidth:l}),this.renderer.setStyle(e,s,this.startHandlePosition+"px")):(this.endHandlePosition=r.calculateHandlePosition({min:i,max:n,reverse:a,value:c,trackWidth:l}),this.renderer.setStyle(e,s,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical,r=o?"height":"width",a=o?"bottom":i?"right":"left",s=Math.abs(this.endHandlePosition-this.startHandlePosition),l=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,r,s+"px"),this.renderer.setStyle(t,a,i?this.trackWidth()-parseFloat(l)+"px":parseFloat(l)+"px")},t}(n(34).SliderModelBase);t.RangeSliderModel=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMaxValidator=function(e){return function(t){return!i.isPresent(e)||!i.isPresent(t.value)||t.value<=e?null:{maxError:{maxValue:e,value:t.value}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMinValidator=function(e){return function(t){return!i.isPresent(e)||!i.isPresent(t.value)||t.value>=e?null:{minError:{minValue:e,value:t.value}}}}},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40);t.numericRegex=function(e){var t,n=e.autoCorrect,o=e.decimals,r=e.min,a=e.separator;return a===i.POINT&&(a="\\"+a),t=0===o?"\\d*":"(?:(?:\\d+("+a+"\\d*)?)|(?:"+a+"\\d*))?",new RegExp("^"+(n&&null!==r&&r>=0?"":"-?")+t+"$")},t.decimalPart=function(e){return e>=0?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,i=e;if(n>0){var o=new Array(n+1).join("0");i=parseFloat(e+o)}return i},t.getDeltaFromMouseWheel=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?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,n=e.which&&3===e.which;return t||n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(t.ArrowDirection||(t.ArrowDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(91),a=n(44),s=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,o=void 0===i?"":i,r=e.promptPlaceholder,a=void 0===r?" ":r,s=e.rules,l=void 0===s?{}:s,c=e.includeLiterals,d=void 0!==c&&c;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=l,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return r.sequence(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(r.sequence(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(r.sequence(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var o="",a=i,s=t.split("").slice(0,n),l=t.split("").slice(i);return r.sequence(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=s.concat(e).concat(l).join("")})),{selection:a,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",a=n,s=e.split("").slice(n),l=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return r.sequence(this.maskTokens.slice(0,c)).run(l,t).fold((function(e){a=i.adjustPosition(e,a),o=e.concat(s).join("")})),{selection:a,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,o="",a=n,s=e.slice(0,n);return r.sequence(this.unmaskTokens).run(s,t).chain((function(e){a=e.join("").length;var n=t.slice(a);return r.sequence(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:a,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return a.literal(e)},mask:function(n){return a.mask({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return a.unliteral(e)},mask:function(t){return a.unmask(e.prompt)(t)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return a.rawLiteral(n)},mask:function(n){return a.rawMask({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return a.rawLiteral(!1)},mask:function(t){return a.rawMask({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;r.greedy(a.token(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),r.greedy(a.token(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),r.greedy(a.token(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),r.greedy(a.token(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=i.__decorate([o.Injectable()],e)}();t.MaskingService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),o=n(45);t.sequence=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new i.Parser((function(e){return new o.Result(t,e)}))));var t},t.greedy=function(e){return new i.Parser((function(t){for(var n=new o.Result([],t);!t.eof();)n=n.concat(e.run(t));return n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}();t.Stream=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(21),a=n(50),s=n(53),l=n(22),c=n(57),d=n(58),u=n(64),p=n(6),h=n(67),f=n(75),g=n(77),m=n(79),v=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[u.TextAreaModule,d.TextBoxModule,r.SliderModule,a.RangeSliderModule,s.SwitchModule,l.NumericTextBoxModule,c.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,g.RadioButtonModule,m.FormFieldModule],imports:[p.CommonModule]})],e)}();t.InputsModule=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(49),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.SliderMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-slider-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.SliderMessages);t.SliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(52),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.RangeSliderMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.RangeSliderMessages);t.RangeSliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(55),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-switch-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.SwitchCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(61),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.TextBoxMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.TextBoxMessages);t.TextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(1),a=n(4),s=n(2),l=function(){function e(e,t,n,i,l,c){var d=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=l,this.hostElement=c,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new r.EventEmitter,this.inputBlur=new r.EventEmitter,this.subscriptions=new o.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){d.changeDetector.markForCheck(),(s.hasObservers(d.inputBlur)||a.requiresZoneOnBlur(d.control))&&d.ngZone.run((function(){d.ngTouched(),d.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"inputFocus",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"inputBlur",void 0),i.__decorate([r.ViewChild("input",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"input",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e}();t.TextFieldsBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(14),a=n(28),s=function(){function e(){}return e.prototype.getPaletteSettings=function(e,t){var n="name"!==t?r.DEFAULT_PRESET:r.DEFAULT_ACCESSIBLE_PRESET,i=e.palette,o="string"==typeof i&&a.PALETTEPRESETS[i]?a.PALETTEPRESETS[i].columns:void 0;return{palette:i||n,tileSize:e.tileSize||24,columns:e.columns||o||10}},e.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width?e.width:e.height,height:e.height?e.height:e.width}},e=i.__decorate([o.Injectable()],e)}();t.FlatColorPickerService=s},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 i=n(0),o=function(e){function t(t){var n=e.call(this)||this;return n.originalEvent=t,n}return i.__extends(t,e),t}(n(2).PreventableEvent);t.ColorPickerCancelEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(2).PreventableEvent);t.ColorPickerCloseEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(2).PreventableEvent);t.ColorPickerOpenEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}();t.ActiveColorClickEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),o=n(4);function r(e,t){if(e=e.toLowerCase().trim(),o.isPresent(i.namedColors[e]))return e;i.parseColor(e,t)&&(e=i.parseColor(e,t).toHex());var n=Object.keys(i.namedColors).find((function(t){return i.namedColors[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property should be set to 'hex' or 'rgba' ");return n}t.parseColor=function(e,n,a,s){void 0===a&&(a=!1),void 0===s&&(s=!0);if(-1===["hex","rgba","name"].indexOf(n))throw new Error("Unsupported color output format '"+n+"'. The available options are 'hex', 'rgba' or 'name'.");if(o.isPresent(e)){if("name"===n)return r(e,s);var l=i.parseColor(e.trim(),s);if(o.isPresent(l))return"hex"===n?t.getHexValue(l,a):l.toCssRgba()}},t.getHSV=function(e,t){void 0===t&&(t=!0);var n=i.parseColor(e,t);return o.isPresent(n)?n.toHSV():{}},t.getRGBA=function(e,t){void 0===t&&(t=!0);var n=i.parseColor(e,t);return o.isPresent(n)?n.toBytes():{}},t.getColorFromHSV=function(e,n,r){void 0===n&&(n="rgba"),void 0===r&&(r=!1);var a=o.fitIntoBounds(e.h,0,359.9),s=o.fitIntoBounds(e.s,0,1),l=o.fitIntoBounds(e.v,0,1),c=o.fitIntoBounds(e.a,0,1),d=i.Color.fromHSV(a,s,l,c);return"hex"===n?t.getHexValue(d,r):d.toCssRgba()},t.getHexValue=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},t.getColorFromHue=function(e){return t.getColorFromHSV({h:e,s:1,v:1,a:1})},t.getColorFromRGBA=function(e){var t=o.fitIntoBounds(e.r,0,255),n=o.fitIntoBounds(e.g,0,255),r=o.fitIntoBounds(e.b,0,255),a=o.fitIntoBounds(e.a,0,1);return i.Color.fromBytes(t,n,r,a).toCssRgba()},t.nameFormat=r,t.getRGBFromRGBA=function(e,t){var n=o.fitIntoBounds(e.r,0,255),i=o.fitIntoBounds(e.g,0,255),r=o.fitIntoBounds(e.b,0,255),a=o.fitIntoBounds(e.a,0,1),s=o.fitIntoBounds(t.r,0,255),l=o.fitIntoBounds(t.g,0,255),c=o.fitIntoBounds(t.b,0,255);return{r:Math.round((1-a)*s+a*n),g:Math.round((1-a)*l+a*i),b:Math.round((1-a)*c+a*r)}},t.getLuminance=function(e){var t=[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*t[0]+.7152*t[1]+.0722*t[2]},t.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},t.getContrastFromTwoRGBAs=function(e,n){return t.getContrast(t.getLuminance(t.getRGBFromRGBA(e,n)),t.getLuminance(t.getRGBFromRGBA(n,{r:0,g:0,b:0,a:1})))}},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCommand=function(e){return function(t,n,i){var o=e(i[n-1],i[n-2],t),r=o[0],a=o[1],s=e(t,i[n-1],i[n+1],!0);return"C "+r+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]}},t.controlPoint=function(e){return function(t,n,i,o){var r=e(n||t,i||t),a=r.angle+(o?Math.PI:0),s=.1*r.length;return[t[0]+Math.cos(a)*s,t[1]+Math.sin(a)*s]}},t.line=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},t.d=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,o){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,o)}),"")},t.svgPath=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,o){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,o)}),"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(27),s=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.flatColorPickerLocalization=o,r}return i.__extends(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__param(3,o.Optional()),i.__param(3,o.Inject(a.FlatColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,a.FlatColorPickerLocalizationService])],t)}(r.LocalizationService);t.ColorGradientLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(27),s=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.flatColorPickerLocalization=o,r}return i.__extends(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__param(3,o.Optional()),i.__param(3,o.Inject(a.FlatColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,a.FlatColorPickerLocalizationService])],t)}(r.LocalizationService);t.ColorPaletteLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],r.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)}}},e.prototype.getCellCoordsFor=function(e){if(r.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}},e.prototype.getColorAt=function(e){if(r.isPresent(e)&&r.isPresent(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(r.isPresent(e)&&r.isPresent(e.row)&&r.isPresent(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=i.__decorate([o.Injectable()],e)}();t.ColorPaletteService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(73),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.ColorPickerMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.ColorPickerMessages);t.ColorPickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=i.__decorate([o.Directive({selector:"[kendoFocusOnDomReady]"}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone])],e)}();t.FocusOnDomReadyDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(14),r=n(3),a=n(1),s=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){var e="AA"===this.type?o.AA_RATIO:o.AAA_RATIO;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"pass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),e=i.__decorate([a.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 '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.ContrastValidationComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(13),s=n(14),l=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=s.AA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=s.AAA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return a.getContrastFromTwoRGBAs(a.getRGBA(this.value),a.getRGBA(this.ratio))},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"ratio",void 0),e=i.__decorate([o.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 '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.ContrastComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(5),a=n(4),s=n(14),l=n(13),c=function(){function e(){this.hostClass=!0}return e.prototype.ngAfterViewInit=function(){var e=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe((function(t){t.h===e.oldH&&t.a===e.oldA||(e.oldH=t.h,e.oldA=t.a,e.setPaths())}))},e.prototype.ngOnChanges=function(e){a.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},e.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)]},e.prototype.findValue=function(e,t,n,i,o){var r=(n+i)/2,a=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-r/this.metrics.height}),s=l.getContrastFromTwoRGBAs(l.getRGBA(l.getColorFromHSV(a)),l.getRGBA(this.backgroundColor||""));return n+.5>i?s<e+1&&s>e-1?r:null:o(s,e)?this.findValue(e,t,n,i-(i-n)/2,o):this.findValue(e,t,n+(i-n)/2,i,o)},e.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var i=[],o=0;o<=this.metrics.width;o+=this.metrics.width/t){var r=this.findValue(e,o,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==r&&i.push([o,r])}return i},i.__decorate([o.HostBinding("class.k-color-contrast-svg"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"wrapper",void 0),i.__decorate([o.Input(),i.__metadata("design:type",r.BehaviorSubject)],e.prototype,"hsva",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"backgroundColor",void 0),e=i.__decorate([o.Component({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],e)}();t.ColorContrastSvgComponent=c}])}));
|
|
20
|
+
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function u(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function p(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(l,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:_(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return Z})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return S})),n.d(t,"DraggableModule",(function(){return E})),n.d(t,"closestInScope",(function(){return w})),n.d(t,"closest",(function(){return x})),n.d(t,"contains",(function(){return O})),n.d(t,"findElement",(function(){return P})),n.d(t,"findFocusableChild",(function(){return R})),n.d(t,"findFocusable",(function(){return M})),n.d(t,"hasClasses",(function(){return A})),n.d(t,"isFocusableWithTabKey",(function(){return j})),n.d(t,"isFocusable",(function(){return B})),n.d(t,"isVisible",(function(){return T})),n.d(t,"matchesClasses",(function(){return z})),n.d(t,"matchesNodeName",(function(){return F})),n.d(t,"rtlScrollPosition",(function(){return H})),n.d(t,"EventsOutsideAngularDirective",(function(){return L})),n.d(t,"EventsModule",(function(){return K})),n.d(t,"ResizeSensorComponent",(function(){return Y})),n.d(t,"ResizeBatchService",(function(){return $})),n.d(t,"ResizeCompatService",(function(){return W})),n.d(t,"ResizeObserverService",(function(){return X})),n.d(t,"ResizeSensorModule",(function(){return Q})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return _})),n.d(t,"isChanged",(function(){return y})),n.d(t,"anyChanged",(function(){return b})),n.d(t,"hasObservers",(function(){return C})),n.d(t,"guid",(function(){return k})),n.d(t,"Keys",(function(){return N}));var i=n(0),o=n(1),r=function(e,t){return function(n){return t(e(n))}},a=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},s=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},l=function(){},c=function(e){return e.preventDefault()},d=/touch/;function u(e){return e.type.match(d)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var p=function(e){var t=this,n=e.press;void 0===n&&(n=l);var i=e.drag;void 0===i&&(i=l);var o=e.release;void 0===o&&(o=l);var d=e.mouseOnly;void 0===d&&(d=!1),this._pressHandler=r(u,n),this._dragHandler=r(u,i),this._releaseHandler=r(u,o),this._ignoreMouse=!1,this._mouseOnly=d,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",c),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",c),t._releaseHandler(e))}},h={document:{configurable:!0}};p.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},p.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},p.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?a(e,"pointerdown",this._pointerdown):(a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend)))},p.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return s(e,"pointerdown",this._pointerdown),s(this.document,"pointermove",this._pointermove),s(this.document,"pointerup",this._pointerup),s(this.document,"contextmenu",c),void s(this.document,"pointercancel",this._pointerup);s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend))},p.prototype._usePointers=function(){return!this._mouseOnly&&p.supportPointerEvent()},p.prototype.update=function(e){var t=e.press;void 0===t&&(t=l);var n=e.drag;void 0===n&&(n=l);var i=e.release;void 0===i&&(i=l);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=r(u,t),this._dragHandler=r(u,n),this._releaseHandler=r(u,i),this._mouseOnly=o},p.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(p.prototype,h),p.default=p;var f=p,g=n(6),m=n(9),v=n(5),_=function(){return"undefined"!=typeof document},y=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},b=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return y(e,t,n)}))},C=function(e){return e&&e.observers.length>0},k=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},S=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){y("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;_()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),E=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[S],exports:[S],imports:[g.CommonModule]})],e)}(),w=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},x=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},O=function(e,t,n){if(void 0===n&&(n=!1),!x(t,(function(t){return t===e})))return!1;var i=x(t,(function(e){return e===t}));return i&&(n||i!==e)},P=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=P(e,t);if(i)return i}e=e.nextSibling}}},I=/^(?:a|input|select|option|textarea|button|object)$/i,B=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&I.test(t)||n},T=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,i=0!==t.x&&0!==t.y;return(n||i)&&"hidden"!==window.getComputedStyle(e).visibility},j=function(e,t){if(void 0===t&&(t=!0),!B(e))return!1;var n=e.getAttribute("tabIndex");return(!t||T(e))&&"-1"!==n},R=function(e,t){return void 0===t&&(t=!0),P(e,(function(e){return j(e,t)}),!1)},M=function(e,t){return void 0===t&&(t=!0),P(e,(function(e){return j(e,t)}))},D=function(e){return String(e).trim().split(" ")},A=function(e,t){var n=D(t);return Boolean(D(e.className).find((function(e){return n.indexOf(e)>=0})))},z=function(e){return function(t){return A(t,e)}},V={},F=function(e){return V[e]||(V[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),V[e]};function H(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var N,L=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(i.__decorate)([Object(o.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2])],e)}(),K=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[L],exports:[L]})],e)}(),Z=function(){function e(e){this.resizeBatchService=e,this.resize=new o.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){_()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),G=function(e){var t=document.createElement("div");return t.style.cssText=e,t},U="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",W=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=U,e.setAttribute("dir","ltr"),this.expand=G(U),this.expandChild=G("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=G(U);var t=G("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(v.merge)(Object(v.fromEvent)(e.shrink,"scroll"),Object(v.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(Z),q="undefined"!=typeof ResizeObserver,X=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.supported=function(){return q},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(Z),$=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(v.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[o.NgZone])],e)}(),Y=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=X.supported()?X:W;this.resizeService=new r(e,t,n);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(m.auditTime)(a)).subscribe((function(){i.resizeService.acceptedSize||i.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"resize",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[$,o.ElementRef,o.NgZone])],e)}(),J=[Y],Q=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[J],exports:[J],providers:[$]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(N||(N={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.areSame=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},t.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},t.fitIntoBounds=function(e,n,i){return!t.isPresent(e)||isNaN(e)||e<=n?n:e>=i?i:e};var i={small:"sm",medium:"md",large:"lg"},o={small:"sm",medium:"md",large:"lg",full:"full"};t.getStylingClasses=function(e,t,n,r){switch(t){case"size":return{toRemove:"k-"+e+"-"+i[n],toAdd:r?"k-"+e+"-"+i[r]:null};case"rounded":return{toRemove:"k-rounded-"+o[n],toAdd:r?"k-rounded-"+o[r]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:r?"k-"+e+"-"+r:null}}}},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return c})),n.d(t,"validatePackage",(function(){return d}));var i,o,r=["AgfZ","turOExC=","zNvUy3rPB24=","z3jVDxa=","ChvIBgLZAerHDgu=","zgf0yq==","DgLTzxn0yw1W","vM5SC2O=","rejpz2u=","DfvPvvq=","D01gsvi=","u0Xdu2y=","C2nYAxb0s2v5","Dg9mB2nHBgvtDhjPBMC=","r3bNtu8=","C2v0","ChjVzhvJDe5HBwu=","BgLJzw5ZAw5Nrg9JC1vYBa==","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","DMvYC2LVBG==","C1DHyu0=","ChjVzhvJDhm=","CNfLrgK=","uKP0uwG=","CgfYC2u=","y3DYvhq=","zxHWAxj5rgf0zq==","uMLXufK=","tM8GBgLJzw5ZzsbMB3vUzc4k","tNz1Awe=","z3jVDxbfBMq=","sK1Vvey=","zMLUza==","D2fYBG==","tfDRtxq=","CgfJA2fNzu5HBwu=","Dw5KzwzPBMvK","C3niBfO=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","ChjVzhvJDenVzgvZ","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","uhjVz3jLC3mG","tfLwDLa=","BgvUz3rO","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","uvPnu2m=","BMfTzq==","B2jQzwn0","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","zvn3tLG=","u2vLia==","s0PPBvO=","zxbwz0u=","zg9JC1vYBa==","z2v0","DhLWzq==","y29Kzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G"];i=r,o=391,function(e){for(;--e;)i.push(i.shift())}(++o);var a=function(e,t){var n=r[e-=0];if(void 0===a.IhMVZF){a.uAzrZg=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),o="",r=0,a=0;n=i.charAt(a++);~n&&(t=r%4?64*t+n:n,r++%4)?o+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return o}(e),n=[],i=0,o=t.length;i<o;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)},a.jhAfvh={},a.IhMVZF=!0}var i=a.jhAfvh[e];return void 0===i?(n=a.uAzrZg(n),a.jhAfvh[e]=n):n=i,n},s={data:' {"timestamp":1643626140,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1656874800},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1656874800},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1656874800},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1656874800}],"integrity":"l37ZhWg17/MGXmBvfpw8DLk3814="} '},l=new Map;function c(e){}function d(e){if(l[a("0xf")](e[a("0x3")])){if(a("0x8")==a("0x8"))return l[a("0xb")](e[a("0x3")])}var t,n=e[a("0x22")]?" v"+e[a("0x22")]:"",i=e[a("0x3")]+n,o=JSON[a("0x27")](s[a("0x14")]),r=!o[a("0x1b")]&&!o[a("0x15")],c=o[a("0x1b")]&&typeof KendoLicensing===a("0x33"),d=function(e,t){var n=e[a("0x24")];if(!n||!n[a("0x0")]){if(a("0x26")!==a("0x23"))return null}var i=new Set(t);return n[a("0x2f")]((function(e){if(a("0x39")==a("0x39"))return i[a("0xf")](e[a("0xd")])}))}(o,e[a("0x36")]);if(r||c)if(a("0x1d")==a("0x1d"))t={type:0,packageName:i,docsUrl:e[a("0x20")]};else{}else if(a("0x25")===a("0x10")){}else if(d){if(a("0x6")===a("0x2")){}else if(d[a("0x35")]<e[a("0x13")])if(a("0x2e")==a("0x2e"))t={type:2,packageName:i,publishDate:u(e[a("0x13")]),expiryDate:u(d[a("0x35")]),docsUrl:e[a("0x20")]};else{}}else if(a("0x31")!=a("0x31")){}else t={type:1,packageName:i,docsUrl:e[a("0x20")]};if(t&&typeof console===a("0x4"))if(a("0x17")!==a("0x2c")){var p=a("0x38")+e[a("0x1f")],h=typeof console[a("0x12")]===a("0x11");if(h)if(a("0x18")==a("0x18"))console[a("0x12")](p);else{}else if(a("0x2a")==a("0x2a"))console[a("0x30")](p);else{}if(console[a("0x30")](function(e){var t=a("0x37")+e[a("0x32")]+"\n";if(2===e[a("0xc")])if(a("0x16")!=a("0x16")){}else t+=a("0xe")+e[a("0x29")][a("0x1c")]()+a("0x1")+e[a("0x13")][a("0x1c")]()+".\n";else if(0===e[a("0xc")])if(a("0x28")===a("0x34")){}else t+=a("0x2b");else if(1===e[a("0xc")])if(a("0x9")===a("0x1a")){}else t+=a("0x21");return t+=a("0x7")+e[a("0xa")]+a("0x5")}(t)),h)if(a("0x19")!=a("0x19")){}else console[a("0x2d")]()}else{}var f=!t;return l[a("0x1e")](e[a("0x3")],f),f}function u(e){return new Date(1e3*e)}},function(e,t){e.exports=r},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:1645174882,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(19),r=n(1);t.calculateFixedTrackSize=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},t.calculateTrackSize=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},t.calculateTicksCount=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(o.subtract(t,e)),r=Math.floor(o.divide(i,n));return o.add(r,1)},t.calculateValueFromTick=function(e,t){var n=t.max,i=t.min,r=t.smallStep,a=t.reverse,s=t.vertical,l=o.add(i,o.multiply(e,r));return s||a?Math.abs(o.subtract(l,n)):l},t.calculateHandlePosition=function(e){var t=e.trackWidth,n=e.min,o=e.max,r=e.reverse,a=e.value,s=t/Math.abs(o-n),l=i.isPresent(a)?s*(a-n):n;return r&&(l=t-l),Math.floor(l)},t.decreaseValueToStep=function(e,n,i){var r=n.max,a=n.min,s=n.smallStep,l=n.largeStep;void 0===i&&(i=!1);var c,d=i&&l?o.multiply(s,l):s,u=o.subtract(e,a),p=o.remainder(u,d);return c=0===p?o.subtract(u,d):o.subtract(u,p),t.limitValue(o.add(c,a),a,r)},t.increaseValueToStep=function(e,n,i){var r=n.max,a=n.min,s=n.smallStep,l=n.largeStep;void 0===i&&(i=!1);var c=i&&l?o.multiply(s,l):s,d=o.subtract(e,a),u=o.remainder(d,c),p=o.add(o.subtract(d,u),c);return t.limitValue(o.add(p,a),a,r)},t.isStartHandle=function(e){return e.id.indexOf("k-start-handle")>-1},t.snapValue=function(e,n){var i=n.smallStep,o=n.min,r=n.max,a=t.limitValue(e,o,r);if(e!==a)return a;var s=t.decreaseValueToStep(e,n),l=t.increaseValueToStep(e,n);return(e-o)%i==0?e:l-e<=(l-s)/2?l:s},t.trimValue=function(e,t,n){return n>e?e:n<t?t:n},t.trimValueRange=function(e,n,i){return i?[t.trimValue(e,n,i[0]),t.trimValue(e,n,i[1])]:[n,n]},t.identity=function(e){return e},t.isSameRange=function(e,t){return i.areSame(e[0],t[0])&&i.areSame(e[1],t[1])},t.elementOffset=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}},t.limitValue=function(e,t,n){return Math.max(Math.min(e,n),t)},t.eventValue=function(e,n,i){var r=i.min,a=i.max,s=i.vertical,l=i.rtl,c=t.elementOffset(n),d=(s?e.pageY-c.top:e.pageX-c.left)*((a-r)/(s?n.clientHeight:n.clientWidth)),u=l||s?a-d:r+d,p=o.fractionLength(i.smallStep);return u=o.toFixedPrecision(u,p+1),t.snapValue(u,i)},t.isButton=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},t.increment=function(e){return t.increaseValueToStep(e.value,e)},t.decrement=function(e){return t.decreaseValueToStep(e.value,e)},t.incrementLarge=function(e){return t.increaseValueToStep(e.value,e,!0)},t.decrementLarge=function(e){return t.decreaseValueToStep(e.value,e,!0)},t.validateValue=function(e){if(r.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},t.default={calculateFixedTrackSize:t.calculateFixedTrackSize,calculateValueFromTick:t.calculateValueFromTick,calculateTrackSize:t.calculateTrackSize,calculateTicksCount:t.calculateTicksCount,calculateHandlePosition:t.calculateHandlePosition,decreaseValueToStep:t.decreaseValueToStep,decrement:t.decrement,decrementLarge:t.decrementLarge,eventValue:t.eventValue,identity:t.identity,increment:t.increment,incrementLarge:t.incrementLarge,isButton:t.isButton,isSameRange:t.isSameRange,isStartHandle:t.isStartHandle,increaseValueToStep:t.increaseValueToStep,trimValue:t.trimValue,trimValueRange:t.trimValueRange,snapValue:t.snapValue,validateValue:t.validateValue}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hasClass=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n},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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(105),t),i.__exportStar(n(107),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTPUT_FORMAT="rgba",t.DEFAULT_GRADIENT_BACKGROUND_COLOR="rgba(255, 0, 0, 1)",t.DRAGHANDLE_MOVE_SPEED=5,t.AAA_RATIO=7,t.AA_RATIO=4.5,t.DEFAULT_PRESET="office",t.DEFAULT_ACCESSIBLE_PRESET="accessible",t.STEP_COUNT=16},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoSliderLabelTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.LabelTemplateDirective=r},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(101),t),i.__exportStar(n(102),t),i.__exportStar(n(103),t),i.__exportStar(n(104),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(5),s=n(9),l=n(11),c=n(83),d=n(3),u=n(4),p=n(11),h=n(12),f=n(2),g=n(35),m=function(e){function t(t,n,i,o,r,a){var s=e.call(this,t,n,i,o,r,a)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=o,s.changeDetector=r,s.hostElement=a,s.focusableId="k-"+f.guid(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!p.isButton(t)&&!p.isButton(t.parentNode)){var n=p.eventValue(e,s.track.nativeElement,s.getProps());s.changeValue(n)}h.invokeElementMethod(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,o=s.keyBinding[e.keyCode];if(!s.isDisabled&&o){var r=o(t);s.changeValue(l.trimValue(n,i,r)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(p.decreaseValueToStep(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(p.increaseValueToStep(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(f.hasObservers(s.onBlur)||u.requiresZoneOnBlur(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return u.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;f.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(s.take(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;f.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())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(p.eventValue(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;u.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()}))},t.prototype.sizeComponent=function(e){if(f.isDocumentAvailable()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,o=this.draghandle.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new c.SliderModel(a,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(o),s.positionSelection(i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var 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}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=a.fromEvent(e,"mousedown"),o=a.fromEvent(e,"mouseup"),r=a.fromEvent(e,"mouseout"),l=i.pipe(s.filter((function(e){return 0===e.button&&!n.isDisabled})),s.concatMap((function(){return a.interval(150).pipe(s.startWith(-1),s.takeUntil(a.merge(o,r)))}))).subscribe((function(){n.isFocused||h.invokeElementMethod(n.draghandle,"focus"),t()}));n.subscriptions.add(l)}))},t.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:l.trimValue(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===f.Keys.Tab})))}))},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"incrementTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"decrementTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"showButtons",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([o.ViewChild("draghandle",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"draghandle",void 0),i.__decorate([o.ViewChild("decreaseButton",{static:!1}),i.__metadata("design:type",o.ElementRef)],t.prototype,"decreaseButton",void 0),i.__decorate([o.ViewChild("increaseButton",{static:!1}),i.__metadata("design:type",o.ElementRef)],t.prototype,"increaseButton",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoSlider",providers:[d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return n}))},{provide:f.KendoInput,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[d.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(g.SliderBase);t.SliderComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.limitPrecision=function(e){return Math.min(e,20)},t.fractionLength=function(e){return(String(e).split(".")[1]||"").length};var i=function(e,n){return Math.max(t.fractionLength(e),t.fractionLength(n))};t.toFixedPrecision=function(e,n){var i=t.limitPrecision(n);return parseFloat(e.toFixed(i))},t.add=function(e,n){var o=i(e,n);return t.toFixedPrecision(e+n,o)},t.subtract=function(e,n){return t.add(e,-n)},t.multiply=function(e,n){var i=t.fractionLength(e)+t.fractionLength(n);return t.toFixedPrecision(e*n,i)},t.divide=function(e,t){if(0===t)return NaN;var n=i(e,t),o=Math.pow(10,n);return o*e/(o*t)},t.remainder=function(e,n){return Math.abs(t.subtract(e,t.multiply(n,Math.floor(t.divide(e,n)))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(4),s=n(12),l=n(19),c=n(85),d=n(86),u=n(7),p=n(87),h=n(3),f=n(8),g=n(10),m=n(40),v=n(88),_=n(89),y=n(33),b=["min","max","step","decimals"],C={decimals:null,max:null,min:null,step:1},k=function(){function e(e,t,n,i,s,l,c){var d=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=s,this.changeDetector=l,this.hostElement=c,this.focusableId="k-"+r.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 o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.ArrowDirection=_.ArrowDirection,this.arrowDirection=_.ArrowDirection.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=v.noop,this.maxValidateFn=v.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=v.noop,this.ngTouched=v.noop,this.ngValidatorChange=v.noop,this.domEvents=[],this.increasePress=function(e){d.arrowPress(_.ArrowDirection.Up,e)},this.decreasePress=function(e){d.arrowPress(_.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(d.spinTimeout),d.arrowDirection!==_.ArrowDirection.None&&(d.arrowDirection=_.ArrowDirection.None,d.changeDetector.detectChanges())},this.handlePaste=function(){d.isPasted=!0},this.handleInput=function(){var e=d.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(d.pressedKey===r.Keys.NumpadDecimal&&(i=d.replaceNumpadDotValue()),d.isPasted&&(i=d.formatInputValue(d.intl.parseNumber(i))),!d.isValid(i))return e.value=d.inputValue,void d.setSelection(t-1,n-1);var o=d.intl.parseNumber(i),a=d.restrictDecimals(o);if(d.autoCorrect){var s=d.limitInputValue(a);a=s.value,t=s.selectionStart,n=s.selectionEnd}o!==a||d.hasTrailingZeros(i)||!d.focused?(d.setInputValue(a),d.setSelection(t,n)):d.inputValue=i,d.isPasted&&(e.value=d.inputValue),d.updateValue(a),d.previousSelection=null,d.isPasted=!1},this.handleDragEnter=function(){d.focused||d.isDisabled||d.setInputValue(d.value,!0)},this.handleMouseDown=function(){d.mouseDown=!0},this.handleFocus=function(){if(!d.focused&&(d.focused=!0,!d.isDisabled)){var e=d.selectOnFocus||!d.mouseDown;d.ngZone.runOutsideAngular((function(){setTimeout((function(){e?d.selectAll():d.selectCaret()}),0)}))}d.mouseDown=!1,r.hasObservers(d.onFocus)&&d.ngZone.run((function(){d.onFocus.emit()}))},this.handleBlur=function(){d.changeDetector.markForCheck(),d.focused=!1,d.inputValue!==d.elementValue&&d.handleInput(),d.setInputValue(),(r.hasObservers(d.onBlur)||a.requiresZoneOnBlur(d.control))&&d.ngZone.run((function(){d.ngTouched(),d.onBlur.emit()}))},this.handleKeyDown=function(e){if(!d.isDisabled){var t;e.keyCode===r.Keys.ArrowDown?t=-1:e.keyCode===r.Keys.ArrowUp&&(t=1),t&&d.step&&(e.preventDefault(),d.addStep(t));var n=d.numericInput.nativeElement;d.previousSelection={end:n.selectionEnd,start:n.selectionStart},d.pressedKey=e.keyCode}},this.handleWheel=function(e){if(d.focused&&!d.isDisabled&&d.changeValueOnScroll){e.preventDefault();var t=v.getDeltaFromMouseWheel(e);d.addStep(t)}},f.validatePackage(g.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.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(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"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(u.NgControl,null),this.ngZone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))}))},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){r.anyChanged(b,e,!1)&&this.parseOptions(b.filter((function(t){return e[t]}))),this.verifySettings(),r.anyChanged(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?d.createMinValidator(this.min):v.noop,this.maxValidateFn=this.rangeValidation?c.createMaxValidator(this.max):v.noop,this.ngValidatorChange()),r.anyChanged(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,r.anyChanged(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){s.invokeElementMethod(this.numericInput,"focus")},e.prototype.blur=function(){s.invokeElementMethod(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||v.isRightClick(t)||(y.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,m.INITIAL_SPIN_DELAY):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;a.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=this.previousSelection,r=o.start,a=o.end;t.value=e=e.substring(0,r)+this.decimalSeparator+e.substring(a),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=v.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,m.SPIN_DELAY)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=l.add(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&s.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(v.isNumber(this.max)&&e>this.max&&(t=this.max),v.isNumber(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=t.value,r=e,a=!1;if(!this.isInRange(e)){var s=o.length-String(this.inputValue).length,l=this.min,c=this.max,d=v.isNumber(c),u=v.isNumber(l),p=void 0,h=void 0,f=e;if(0===n&&this.inputValue.substr(1)===o)return{selectionEnd:i,selectionStart:n,value:null};if(d&&e>c?e>0?h=!0:p=c:u&&e<l&&(e>0?p=l:h=!0),p){var g=this.tryPadValue(e,p);g&&v.decimalPart(e)!==v.decimalPart(p)&&(f=g,a=!0)}else h&&this.inputValue&&n!==o.length&&(f=parseFloat(o.substr(0,n)+o.substr(n+s)));r=this.limitValue(f),a=(a||r!==f)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:a?String(r).length:i,selectionStart:n,value:r}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,o=v.pad(e,i),r=v.pad(e,i+1);return this.isInRange(o)?n=o:this.isInRange(r)&&(n=r),n},e.prototype.isInRange=function(e){return!v.isNumber(e)||(!v.isNumber(this.min)||this.min<=e)&&(!v.isNumber(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,o=String(e);if(t||m.EXPONENT_REGEX.test(o))n=l.toFixedPrecision(e,i);else{var r=o.split(m.POINT),a=r[1];a&&a.length>i&&(a=a.substr(0,i),n=parseFloat(""+r[0]+m.POINT+a))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=m.EXPONENT_REGEX.exec(t);return n&&(t=e.toFixed(l.limitPrecision(parseInt(n[1],10)))),t.replace(m.POINT,this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&v.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(o.isDevMode()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+m.MIN_DOC_LINK+" and "+m.MAX_DOC_LINK+".")},e.prototype.verifyValue=function(e){if(o.isDevMode()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var r=parseFloat(i),a=!isNaN(r);if(o.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?r:C[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e=v.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,n=t.substring(0,e);if(this.setInputValue(),n.length){var i=v.extractSignificantNumericChars(n,this.decimalSeparator),o=this.adjustSignificantChars(t,i);this.setSelection(o,o)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,o=n[1].length;return i===t?o-1:o}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=a.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoCorrect",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"format",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"decimals",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"spinners",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"maxlength",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.ViewChild("numericInput",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"numericInput",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disableClass",null),i.__decorate([o.HostBinding("class.k-input"),o.HostBinding("class.k-numerictextbox"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoNumericTextBox",providers:[h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:u.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t})),multi:!0},{provide:u.NG_VALIDATORS,useExisting:o.forwardRef((function(){return t})),multi:!0},{provide:r.KendoInput,useExisting:o.forwardRef((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[p.IntlService,o.Renderer2,h.LocalizationService,o.Injector,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],e)}();t.NumericTextBoxComponent=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(18),s=n(46),l=n(48),c=n(94),d=n(15),u=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[a.SliderComponent,c.SliderCustomMessagesComponent,l.LocalizedSliderMessagesDirective],exports:[a.SliderComponent,c.SliderCustomMessagesComponent,d.LabelTemplateDirective,l.LocalizedSliderMessagesDirective],imports:[r.CommonModule,s.SlidersCommonModule]})],e)}();t.SliderModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(20),a=n(6),s=n(56),l=n(41),c=n(2),d=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[s.LocalizedNumericTextBoxMessagesDirective,r.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],exports:[r.NumericTextBoxComponent,l.NumericTextBoxCustomMessagesComponent],imports:[a.CommonModule,c.EventsModule]})],e)}();t.NumericTextBoxModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTextBoxSuffixTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.TextBoxSuffixTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTextBoxPrefixTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.TextBoxPrefixTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(63),a=n(39);t.SHARED_DIRECTIVES=[r.InputSeparatorComponent,a.TextAreaDirective];var s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES]})],e)}();t.SharedModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(5),s=n(3),l=n(2),c=n(8),d=n(27),u=n(99),p=n(10),h=n(17),f=n(13),g=n(4),m=n(29),v=n(30),_=n(71),y=n(72),b=function(){function e(e,t,n,i,r,s){var l=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=i,this.renderer=r,this.ngZone=s,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 o.EventEmitter,this.cancel=new o.EventEmitter,this.activeViewChange=new o.EventEmitter,this.actionButtonClick=new o.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new a.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},c.validatePackage(p.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;l.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=f.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},e.prototype.ngOnChanges=function(e){l.isChanged("value",e)&&this.setHostElementAriaLabel(),l.isChanged("paletteSettings",e)&&this.setSizingVariables()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"headerHasContent",{get:function(){return this.preview||this.views.length>1||this.clearButton},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},e.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},e.prototype.reset=function(){g.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},e.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()}))})))},e.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},e.prototype.handleValueChange=function(e){this.value!==e&&(this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e))},e.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.resetSelection=function(e){var t=new h.ColorPickerCancelEvent(e);this.cancel.emit(t),t.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},e.prototype.setHostElementAriaLabel=function(){var e=f.parseColor(this.value,this.format,this.gradientSettings.opacity),t=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",t)},e.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),t="--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",t)},e.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},e.prototype.resetInnerComponentValue=function(){this.selection=null,this.gradient?this.gradient.reset():this.palette.reset()},e.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setActiveView=function(){if(g.isPresent(this.activeView)){if(o.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]},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focus",(function(){e.focused=!0}))),e.subscriptions.add(e.renderer.listen(t,"blur",(function(){e.focused=!1,e.notifyNgTouched()})))}))}},i.__decorate([o.HostBinding("class.k-flatcolorpicker"),o.HostBinding("class.k-coloreditor"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.k-state-disabled"),o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"actionButtonClick",void 0),i.__decorate([o.ViewChild("header",{static:!1}),i.__metadata("design:type",_.FlatColorPickerHeaderComponent)],e.prototype,"header",void 0),i.__decorate([o.ViewChild("gradient",{static:!1}),i.__metadata("design:type",m.ColorGradientComponent)],e.prototype,"gradient",void 0),i.__decorate([o.ViewChild("palette",{static:!1}),i.__metadata("design:type",v.ColorPaletteComponent)],e.prototype,"palette",void 0),i.__decorate([o.ViewChild("footer",{static:!1}),i.__metadata("design:type",y.FlatColorPickerActionButtonsComponent)],e.prototype,"footer",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:l.KendoInput,useExisting:o.forwardRef((function(){return t}))},u.FlatColorPickerService,d.FlatColorPickerLocalizationService,{provide:s.LocalizationService,useExisting:d.FlatColorPickerLocalizationService},{provide:s.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",[o.ElementRef,u.FlatColorPickerService,s.LocalizationService,o.ChangeDetectorRef,o.Renderer2,o.NgZone])],e)}();t.FlatColorPickerComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(69),s=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.colorPickerLocalization=o,r}return i.__extends(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__param(3,o.Optional()),i.__param(3,o.Inject(a.ColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,a.ColorPickerLocalizationService])],t)}(r.LocalizationService);t.FlatColorPickerLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(100),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(5),s=n(9),l=n(3),c=n(2),d=n(8),u=n(12),p=n(13),h=n(4),f=n(18),g=n(108),m=n(70),v=n(14),_=n(10),y=0,b=function(){function e(e,t,n,i,r){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=r,this.hostClasses=!0,this.id="k-colorgradient-"+y++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=v.DEFAULT_OUTPUT_FORMAT,this.valueChange=new o.EventEmitter,this.backgroundColor=v.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new a.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.updateValues=new a.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},d.validatePackage(_.packageMetadata),this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){if(h.isPresent(e)){var t=Number(e);this._tabindex=isNaN(t)?0:t}else this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&this.contrastTool.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){c.isChanged("value",e)&&!this.isFocused&&this.updateUI(),c.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!h.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.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)))},e.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 r=parseInt(n.style.top,10)+o,a=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",a+"px"),this.ngZone.run((function(){return t.moveDragHandle(a,r)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=this.gradientRect,i=e.clientX-n.left,o=e.clientY-n.top;this.ngZone.run((function(){return t.moveDragHandle(i,o)}))}},e.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)},e.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))},e.prototype.handleInputsValueChange=function(e){var t=p.parseColor(e,this.format,this.opacity);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,h.isPresent(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,o=n.width,r=n.height,a=h.fitIntoBounds(t,0,r),s=h.fitIntoBounds(e,0,o);this.setDragHandleElementPosition(a,s);var l=this.hsva.value;l.s=s/o,l.v=1-a/r,this.hsva.next(l),this.updateValues.next(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(p.getColorFromHSV(i.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},e.prototype.updateUI=function(){if(c.isDocumentAvailable()){this.hsva.next(this.value?p.getHSV(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,n=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,n),this.backgroundColor=p.getColorFromHue(this.hsva.value.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(h.isPresent(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.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")))},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){!u.containsFocus(e.host.nativeElement,t.relatedTarget)&&u.isUntouched(e.host)&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(p.getColorFromHSV(e.hsva.value,e.format,e.opacity))}))})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),r=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,o,r)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(s.throttleTime(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},i.__decorate([o.HostBinding("class.k-colorgradient"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),i.__decorate([o.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"gradientId",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"opacity",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"delay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"contrastTool",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.ViewChild("gradientDragHandle",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"gradientDragHandle",void 0),i.__decorate([o.ViewChild("inputs",{static:!1}),i.__metadata("design:type",m.ColorInputComponent)],e.prototype,"inputs",void 0),i.__decorate([o.ViewChild("alphaSlider",{static:!1}),i.__metadata("design:type",f.SliderComponent)],e.prototype,"alphaSlider",void 0),i.__decorate([o.ViewChild("gradientWrapper",{static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"gradientWrapper",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:c.KendoInput,useExisting:o.forwardRef((function(){return t}))},g.ColorGradientLocalizationService,{provide:l.LocalizationService,useExisting:g.ColorGradientLocalizationService},{provide:l.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [style.background]="backgroundColor">\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [smallStep]="5"\n [largeStep]="10"\n [value]="hsva.value.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox" *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,o.ChangeDetectorRef,l.LocalizationService])],e)}();t.ColorGradientComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(2),s=n(3),l=n(8),c=n(9),d=n(109),u=n(10),p=n(28),h=n(13),f=n(4),g=n(110),m=0,v=function(){function e(e,t,n,i,r,s){var c=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=r,this.ngZone=s,this.id="k-colorpalette-"+m++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellSelection=new o.EventEmitter,this.hostClasses=!0,this.uniqueId=a.guid(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},l.validatePackage(u.packageMetadata),this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;c.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=h.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;f.isPresent(e)||(e="office"),"string"==typeof e&&f.isPresent(p.PALETTEPRESETS[e])&&(this.columns=this.columns||p.PALETTEPRESETS[e].columns,e=p.PALETTEPRESETS[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return h.parseColor(e,t.format,!1,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows()}},e.prototype.ngAfterViewInit=function(){var e=this;this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe(c.take(1)).subscribe((function(){e.selectCell(e.value)}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case a.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case a.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case a.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case a.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case a.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=h.parseColor(e,this.format,!1,!1);this.cellSelection.emit(n),this.handleValueChange(n),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId)}},e.prototype.writeValue=function(e){this.value=e,this.selectCell(e)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,f.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.selectCell=function(e){this.selectedCell=this.service.getCellCoordsFor(e),this.focusedCell=this.selectedCell},e.prototype.setRows=function(){f.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=h.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(f.isPresent(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"paletteId",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"columns",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"palette",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"tileSize",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cellSelection",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([o.HostBinding("class.k-colorpalette"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),i.__decorate([o.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=i.__decorate([o.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:a.KendoInput,useExisting:o.forwardRef((function(){return t}))},g.ColorPaletteService,d.ColorPaletteLocalizationService,{provide:s.LocalizationService,useExisting:d.ColorPaletteLocalizationService},{provide:s.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",[o.ElementRef,g.ColorPaletteService,o.ChangeDetectorRef,o.Renderer2,s.LocalizationService,o.NgZone])],e)}();t.ColorPaletteComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=0,a=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+r++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),i.__decorate([o.HostBinding("class.k-form-error"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"roleAttribute",void 0),i.__decorate([o.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"startClass",null),i.__decorate([o.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"endClass",null),i.__decorate([o.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"idAttribute",null),e=i.__decorate([o.Component({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}();t.ErrorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=0,a=function(){function e(){this.align="start",this.id="kendo-hint-"+r++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([o.HostBinding("class.k-form-hint"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"startClass",null),i.__decorate([o.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"endClass",null),i.__decorate([o.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"idAttribute",null),e=i.__decorate([o.Component({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}();t.HintComponent=a},function(e,t,n){"use strict";n.r(t),n.d(t,"detectMobileOS",(function(){return c})),n.d(t,"detectDesktopBrowser",(function(){return d})),n.d(t,"browser",(function(){return p})),n.d(t,"mobileOS",(function(){return h})),n.d(t,"touch",(function(){return f})),n.d(t,"msPointers",(function(){return g})),n.d(t,"pointers",(function(){return m})),n.d(t,"touchEnabled",(function(){return v})),n.d(t,"getter",(function(){return C})),n.d(t,"setter",(function(){return E}));var i=function(){return"undefined"!=typeof window},o={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},r={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},s={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},l=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},c=function(e){var t,n=[];for(var i in o)if(o.hasOwnProperty(i)){if(!(n=e.match(o[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var a={};return a.device=i,a.browser=l(e,s,"default"),a.name=l(i,r),a[a.name]=!0,a.majorVersion=n[2],a.minorVersion=n[3]?n[3].replace("_","."):".0",t=a.minorVersion.replace(".","").substr(0,2),a.flatVersion=a.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),a.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,a.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||a.cordova,a}return null},d=function(e){var t=null,n=[];for(var i in a)if(a.hasOwnProperty(i)&&(n=e.match(a[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},u=i()&&window.navigator?window.navigator.userAgent:null,p=u?d(u):null,h=u?c(u):null,f=i()&&"ontouchstart"in window,g=p&&!p.chrome&&window.MSPointerEvent,m=p&&!p.chrome&&window.PointerEvent,v=h&&(f||g||m),_=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function y(e){var t=[];return e.replace(_,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),t}var b={};function C(e){if(b[e])return b[e];var t=y(e);return b[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},b[e]}b[void 0]=function(e){return e};var k={undefined:function(e){return e}},S=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function E(e){if(k[e])return k[e];var t=y(e);return k[e]=function(e,n,i){for(var o=e,r=t.length-1,a=0;a<r&&o;a++)o=o[t[a]]=o[t[a]]||S(t[a+1],i);o[t[r]]=n},k[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),o=n(19),r=function(){function e(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()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},e.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)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=i.calculateFixedTrackSize(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?i.calculateFixedTrackSize(this.props):this.elementSize(this.track.parentElement)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,r=e.smallStep,a=i.calculateTicksCount(t,n,r),s=this.trackWidth(),l=s/o.subtract(n,t),c=[],d=0,u=0,p=0;p<a;p++){u=+(u+=0===p||p===a-1?r/2*l:r*l).toFixed(2)-.01;var h=Math.round(u-d);c.push(h),d+=h}return d>=s&&(c[c.length-1]-=1),c},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}();t.SliderModelBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(1),a=n(5),s=n(7),l=n(2),c=n(8),d=n(10),u=n(15),p=function(){function e(e,t,n,i,s,l){var u=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=s,this.hostElement=l,this.title=o.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 r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new a.Subscription,this.ifEnabled=function(e,t){u.isDisabled||e.call(u,t)},c.validatePackage(d.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(s.NgControl,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[l.Keys.ArrowLeft]=t?o.increment:o.decrement,e[l.Keys.ArrowRight]=t?o.decrement:o.increment,e[l.Keys.ArrowDown]=o.decrement,e[l.Keys.ArrowUp]=o.increment,e[l.Keys.PageUp]=o.incrementLarge,e[l.Keys.PageDown]=o.decrementLarge,e[l.Keys.Home]=function(e){return e.min},e[l.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.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([r.Input(),i.__metadata("design:type",Function)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"tickPlacement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"smallStep",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"largeStep",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"fixedTickWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-slider-horizontal"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"horizontalClass",null),i.__decorate([r.HostBinding("class.k-slider-vertical"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"verticalClass",null),i.__decorate([r.HostBinding("class.k-slider"),i.__metadata("design:type",Boolean)],e.prototype,"sliderClass",void 0),i.__decorate([r.HostBinding("class.k-widget"),i.__metadata("design:type",Boolean)],e.prototype,"widgetClass",void 0),i.__decorate([r.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.ViewChild("wrap",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"wrapper",void 0),i.__decorate([r.ViewChild("track",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"track",void 0),i.__decorate([r.ViewChild("sliderSelection",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"sliderSelection",void 0),i.__decorate([r.ViewChild("ticks",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"ticksContainer",void 0),i.__decorate([r.ViewChild("ticks",{static:!1}),i.__metadata("design:type",Object)],e.prototype,"ticks",void 0),i.__decorate([r.ContentChild(u.LabelTemplateDirective,{static:!1}),i.__metadata("design:type",u.LabelTemplateDirective)],e.prototype,"labelTemplate",void 0),e}();t.SliderBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(9),s=n(11),l=n(84),c=n(3),d=n(11),u=n(12),p=n(2),h=n(4),f=n(35),g=function(e){function t(t,n,o,r,a,l){var c=e.call(this,t,n,o,r,a,l)||this;return c.localization=t,c.injector=n,c.renderer=o,c.ngZone=r,c.changeDetector=a,c.hostElement=l,c.startHandleId="k-start-handle-"+p.guid(),c.endHandleId="k-end-handle-"+p.guid(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=d.eventValue(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,o=i[0],r=i[1];t<=o?(n=[t,r],c.activeHandle="startHandle"):o<t&&t<r?t<(o+r)/2?(n=[t,r],c.activeHandle="startHandle"):(n=[o,t],c.activeHandle="endHandle"):t>=r&&(n=[o,t],c.activeHandle="endHandle");var a="startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd;u.invokeElementMethod(a,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,o=t.min,r=c.keyBinding[e.keyCode];if(!c.isDisabled&&r){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var a=d.isStartHandle(e.target),l=r(i.__assign({},t,{value:a?c.value[0]:c.value[1]}));a?l>c.value[1]&&(c.value[1]=l):l<c.value[0]&&(c.value[0]=l);var u=s.trimValue(n,o,l),p=a?[u,c.value[1]]:[c.value[0],u];c.changeValue(p),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(p.hasObservers(c.onBlur)||h.requiresZoneOnBlur(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return i.__extends(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,u.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;u.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;p.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&s.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(a.take(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;p.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.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};var o=e.pageX<this.lastHandlePosition.x,r=e.pageX>this.lastHandlePosition.x,a=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([d.eventValue(e,t.track.nativeElement,t.getProps()),t.value[1]])},l=function(){return t.changeValue([t.value[0],d.eventValue(e,t.track.nativeElement,t.getProps())])},c=function(){return t.changeValue([d.eventValue(e,t.track.nativeElement,t.getProps()),d.eventValue(e,t.track.nativeElement,t.getProps())])},u=d.isStartHandle(this.draggedHandle),p=this.vertical,h=!p,f=p&&a||(this.reverse?h&&r:h&&o);this.value[0]===this.value[1]?f?u?s():c():u?c():l():u?s():l()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){s.validateValue(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;this.value&&s.isSameRange(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.value&&t.valueChange.emit(e),t.sizeComponent()}))},t.prototype.sizeComponent=function(){if(p.isDocumentAvailable()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,o=this.draghandleEnd.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new l.RangeSliderModel(a,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(o),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var 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}),t.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:s.trimValueRange(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===p.Keys.Tab})))}))},i.__decorate([o.Input(),i.__metadata("design:type",Array)],t.prototype,"value",void 0),i.__decorate([o.ViewChild("draghandleStart",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"draghandleStart",void 0),i.__decorate([o.ViewChild("draghandleEnd",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return n}))},{provide:p.KendoInput,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(f.SliderBase);t.RangeSliderComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(3),s=n(2),l=n(8),c=n(10),d=n(4),u=n(5),p=n(9),h=n(33),f=function(){function e(e,t,n,i,r,a){var p=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=r,this.ngZone=a,this.focusableId="k-"+s.guid(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new u.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){p.isFocused||(p.focused=!0,s.hasObservers(p.onFocus)&&p.ngZone.run((function(){p.onFocus.emit()})))},this.handleBlur=function(e){var t=e&&e.relatedTarget;p.hostElement.nativeElement.contains(t)||(p.changeDetector.markForCheck(),p.focused=!1,(s.hasObservers(p.onBlur)||d.requiresZoneOnBlur(p.control))&&p.ngZone.run((function(){p.ngTouched(),p.onBlur.emit()})))},l.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return h.browser&&h.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(p.skip(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(r.NgControl,null),this.ngZone.onStable.pipe(p.take(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},e.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},e.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==s.Keys.Space&&t!==s.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.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(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))}))},e.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=d.getStylingClasses("switch",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,i=d.getStylingClasses("switch","rounded",this.trackRounded,e);i.toRemove&&(this.renderer.removeClass(t,i.toRemove),this.renderer.removeClass(n,i.toRemove)),i.toAdd&&(this.renderer.addClass(t,i.toAdd),this.renderer.addClass(n,i.toAdd))},e.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,n=d.getStylingClasses("switch","rounded",this.thumbRounded,e);n.toRemove&&this.renderer.removeClass(t,n.toRemove),n.toAdd&&this.renderer.addClass(t,n.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"onLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"offLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"checked",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"thumbRounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"trackRounded",null),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-ie"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ieClass",null),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([o.HostBinding("class.k-switch"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.ViewChild("track",{static:!0}),i.__metadata("design:type",Object)],e.prototype,"track",void 0),i.__decorate([o.ViewChild("thumb",{static:!0}),i.__metadata("design:type",Object)],e.prototype,"thumb",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoSwitch",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:s.KendoInput,useExisting:o.forwardRef((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef,a.LocalizationService,o.Injector,o.ChangeDetectorRef,o.NgZone])],e)}();t.SwitchComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.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(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},i.__decorate([o.HostBinding("class.k-textbox"),o.HostBinding("class.k-input"),o.HostBinding("class.k-input-md"),o.HostBinding("class.k-rounded-md"),o.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),e=t=i.__decorate([o.Directive({selector:"input[kendoTextBox]",providers:[{provide:r.KendoInput,useExisting:o.forwardRef((function(){return t}))}]}),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone])],e)}();t.TextBoxDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(2),s=n(4),l=n(3),c=n(5),d=n(9),u=function(){function e(e,t,n,i,r,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=r,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new o.EventEmitter,this.autoSize=!1,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],a.isDocumentAvailable()&&e.autoSize&&(e.resizeSubscription=c.fromEvent(window,"resize").pipe(d.debounceTime(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=c.fromEvent(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(r.NgControl,null)},e.prototype.ngOnChanges=function(e){var t=this,n=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=n.offsetHeight,this.renderer.setStyle(n,"resize","none")):(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),this.zone.onStable.pipe(d.take(1)).subscribe((function(){return t.resize()}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||a.hasObservers(this.onValueChange)||a.hasObservers(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;a.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(a.hasObservers(this.onBlur)||s.requiresZoneOnBlur(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},i.__decorate([o.HostBinding("class.k-textarea"),o.HostBinding("class.k-input"),o.HostBinding("class.k-input-md"),o.HostBinding("class.k-rounded-md"),o.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],e.prototype,"elementClasses",void 0),i.__decorate([o.HostBinding("class.k-autofill"),i.__metadata("design:type",Boolean)],e.prototype,"autofillClass",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoSize",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),e=t=i.__decorate([o.Directive({providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t})),multi:!0},{provide:a.KendoInput,useExisting:o.forwardRef((function(){return t}))}],selector:"textarea[kendoTextArea]"}),i.__param(5,o.Optional()),i.__param(5,o.Inject(l.RTL)),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone,o.ChangeDetectorRef,o.Injector,Boolean])],e)}();t.TextAreaDirective=u},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=n(0),o=n(1),r=n(3),a=n(42),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.NumericTextBoxMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.NumericTextBoxMessages);t.NumericTextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),t}(n(3).ComponentMessages);t.NumericTextBoxMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(3),s=n(8),l=n(10),c=n(90),d=n(2),u=n(12),p=n(4),h=Promise.resolve(null),f=function(){function e(e,t,n,i,r,a,c){var u=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=r,this.changeDetector=a,this.focusableId="k-"+d.guid(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){u.focused=!0,u.maskOnFocus&&u.emptyMask&&(u.updateInput(u.service.maskRaw(u.value)),u.ngZone.runOutsideAngular((function(){setTimeout((function(){u.setSelection(0,0)}),0)}))),d.hasObservers(u.onFocus)&&u.ngZone.run((function(){u.onFocus.emit()}))},this.handleClick=function(){if(u.focused&&!u.focusClick){u.focusClick=!0;var e=u.input.nativeElement;e.selectionStart===e.selectionEnd&&u.setFocusSelection()}},this.handleBlur=function(){u.changeDetector.markForCheck(),u.focused=!1,u.focusClick=!1,u.maskOnFocus&&u.emptyMask&&u.updateInput(u.maskedValue),(d.hasObservers(u.onBlur)||p.requiresZoneOnBlur(u.control))&&u.ngZone.run((function(){u.onTouched(),u.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},s.validatePackage(l.packageMetadata),this.direction=c?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(r.NgControl,null)},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,o=i[0],r=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var a=this.maskedValue.length-r,s=n.length-a;t=this.service.maskInRange(n.slice(o,s),this.maskedValue,o,r)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),d.isChanged("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else d.anyChanged(["promptPlaceholder","includeLiterals"],e)?h.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.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},e.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)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&u.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=p.isPresent(e);if(t&&"string"!=typeof e){if(o.isDevMode())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=p.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-input"),o.HostBinding("class.k-maskedtextbox"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"mask",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"rules",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"prompt",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"promptPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"includeLiterals",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"maskValidation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.ViewChild("input",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"input",void 0),i.__decorate([o.HostListener("paste",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"pasteHandler",null),i.__decorate([o.HostListener("input",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=i.__decorate([o.Component({exportAs:"kendoMaskedTextBox",providers:[c.MaskingService,{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{multi:!0,provide:r.NG_VALIDATORS,useExisting:o.forwardRef((function(){return t}))},{provide:d.KendoInput,useExisting:o.forwardRef((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),i.__param(6,o.Optional()),i.__param(6,o.Inject(a.RTL)),i.__metadata("design:paramtypes",[c.MaskingService,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,o.ChangeDetectorRef,Boolean])],e)}();t.MaskedTextBoxComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),o=n(92),r=function(e){return(e||"").split("")},a=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof o.Stream?this.parse(e):this.parse(new o.Stream(r(e),r(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===i.ResultType.Literal},e}();t.Parser=a,t.mask=function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new a((function(o){for(;!o.eof();){var r=o.peek(),a=r.char,s=r.control;if(a===s&&s===t)return o.eat(),new i.Result(t,o,i.ResultType.Mask);if(e.test(a))return o.eat(),new i.Result(a,o,i.ResultType.Mask);if(a===n)return o.eat(),new i.Result(t,o,i.ResultType.Mask);o.eat_input()}return o.eat(),new i.Result(t,o,i.ResultType.Mask)}))}},t.literal=function(e){return new a((function(t){return t.peek().char===e?(t.eat(),new i.Result(e,t,i.ResultType.Literal)):new i.Result(e,t,i.ResultType.Literal)}))},t.unmask=function(e){return function(t){return new a((function(n){for(;!n.eof();){var o=n.peek(),r=o.char,a=o.control;if(r===e&&a===e)return n.eat(),new i.Result(r,n);if(t.test(r))return n.eat(),new i.Result(r,n);n.eat_input()}return n.eat(),new i.Result("",n)}))}},t.unliteral=function(e){return new a((function(t){return t.eof()?new i.Result("",t):(t.peek().char===e&&t.eat(),new i.Result(e,t))}))},t.token=function(e,t){return new a((function(n){var o=n.next().char,r=e[o];return"\\"===o?(o=n.next().char,new i.Result(t.literal(o),n)):r?new i.Result(t.mask(r),n):new i.Result(t.literal(o),n)}))},t.rawMask=function(e){var t=e.prompt,n=e.promptPlaceholder;return new a((function(e){var o=e.next().char;return o===t?new i.Result(n,e):new i.Result(o,e)}))},t.rawLiteral=function(e){return new a((function(t){var n=t.next().char;return e?new i.Result(n,t):new i.Result("",t)}))}},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(i=t.ResultType||(t.ResultType={}));var o=function(){function e(e,t,n){void 0===n&&(n=i.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}();t.Result=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(47),s=n(15),l=n(2),c=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[a.SliderTicksComponent,s.LabelTemplateDirective],exports:[s.LabelTemplateDirective,a.SliderTicksComponent,l.DraggableModule,l.EventsModule,l.ResizeSensorModule],imports:[r.CommonModule,l.DraggableModule,l.EventsModule,l.ResizeSensorModule]})],e)}();t.SlidersCommonModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(11),a=function(e){this.value=e,this.classes={"k-tick":!0}},s=function(){function e(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.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 a(r.calculateValueFromTick(o,n))),t&&o%t==0&&(i[o].large=!0,i[o].classes["k-tick-large"]=!0);i.length>0&&(Object.assign(i[0].classes,this.endTickClasses(!0)),Object.assign(i[i.length-1].classes,this.endTickClasses(!1))),this.ticks=i},e.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)],e.prototype,"wrapperClasses",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"tickTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"largeStep",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"labelTemplate",void 0),i.__decorate([o.ViewChildren("tickElement"),i.__metadata("design:type",o.QueryList)],e.prototype,"tickElements",void 0),e=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"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],e)}();t.SliderTicksComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(49),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.SliderMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.SliderMessages);t.LocalizedSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandle",void 0),t}(n(3).ComponentMessages);t.SliderMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(46),s=n(36),l=n(51),c=n(95),d=n(15),u=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[s.RangeSliderComponent,c.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective],exports:[s.RangeSliderComponent,c.RangeSliderCustomMessagesComponent,l.LocalizedRangeSliderMessagesDirective,d.LabelTemplateDirective],imports:[r.CommonModule,a.SlidersCommonModule]})],e)}();t.RangeSliderModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(52),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.RangeSliderMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.RangeSliderMessages);t.LocalizedRangeSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(n(3).ComponentMessages);t.RangeSliderMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(37),a=n(6),s=n(2),l=n(54),c=n(96),d=n(2),u=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.SwitchComponent,c.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],exports:[r.SwitchComponent,c.SwitchCustomMessagesComponent,l.LocalizedSwitchMessagesDirective],imports:[a.CommonModule,d.EventsModule,s.ResizeSensorModule]})],e)}();t.SwitchModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(55),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedSwitchMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"on",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"off",void 0),t}(n(3).ComponentMessages);t.Messages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(42),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.NumericTextBoxMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.NumericTextBoxMessages);t.LocalizedNumericTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(43),a=n(6),s=n(2),l=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.MaskedTextBoxComponent],exports:[r.MaskedTextBoxComponent],imports:[a.CommonModule,s.EventsModule]})],e)}();t.MaskedTextBoxModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(38),a=n(59),s=n(6),l=n(2),c=n(23),d=n(24),u=n(97),p=n(62),h=n(25),f=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.TextBoxDirective,a.TextBoxComponent,c.TextBoxSuffixTemplateDirective,d.TextBoxPrefixTemplateDirective,u.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective],exports:[r.TextBoxDirective,a.TextBoxComponent,c.TextBoxSuffixTemplateDirective,d.TextBoxPrefixTemplateDirective,l.EventsModule,u.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective,h.SHARED_DIRECTIVES],imports:[s.CommonModule,l.EventsModule,h.SharedModule]})],e)}();t.TextBoxModule=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(60),r=n(12),a=n(7),s=n(1),l=n(8),c=n(10),d=n(12),u=n(4),p=n(2),h=n(23),f=n(24),g=n(3),m=n(60),v=function(){function e(e,t,n,i,r,a){var d=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=r,this.hostElement=a,this.focusableId="k-"+p.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new s.EventEmitter,this.inputFocus=new s.EventEmitter,this.inputBlur=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){d.disabled||(d.selectOnFocus&&d.value&&d.ngZone.run((function(){setTimeout((function(){d.selectAll()}))})),p.hasObservers(d.onFocus)&&(d.isFocused||d.ngZone.run((function(){d.onFocus.emit()}))),p.hasObservers(d.inputFocus)&&(!d.focusChangedProgrammatically||d.focusChangedProgrammatically&&d.clearButtonClicked)&&d.ngZone.run((function(){d.inputFocus.emit()})),d.ngZone.run((function(){d.isFocused=!0})))},this.handleInputBlur=function(){d.changeDetector.markForCheck(),(p.hasObservers(d.inputBlur)||u.requiresZoneOnBlur(d.control))&&d.ngZone.run((function(){d.ngTouched(),d.inputBlur.emit()}))},this.handleInput=function(e){var t=m.isSafari(navigator.userAgent)&&o.isJapanese(e.target.value)?e.data:e.target.value;d.updateValue(t)},this.ngChange=function(e){},this.ngTouched=function(){},l.validatePackage(c.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(a.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(r.closest(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===p.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.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},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&d.invokeElementMethod(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;u.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(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=u.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"showSuccessIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"showErrorIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"successIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"errorIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"clearButtonIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"maxlength",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"inputFocus",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"inputBlur",void 0),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([s.ViewChild("input",{static:!0}),i.__metadata("design:type",s.ElementRef)],e.prototype,"input",void 0),i.__decorate([s.ContentChild(h.TextBoxSuffixTemplateDirective,{static:!1}),i.__metadata("design:type",h.TextBoxSuffixTemplateDirective)],e.prototype,"suffixTemplate",void 0),i.__decorate([s.ContentChild(f.TextBoxPrefixTemplateDirective,{static:!1}),i.__metadata("design:type",f.TextBoxPrefixTemplateDirective)],e.prototype,"prefixTemplate",void 0),i.__decorate([s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([s.HostBinding("class.k-textbox"),s.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e=t=i.__decorate([s.Component({exportAs:"kendoTextBox",providers:[g.LocalizationService,{provide:g.L10N_PREFIX,useValue:"kendo.textbox"},{provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef((function(){return t})),multi:!0},{provide:p.KendoInput,useExisting:s.forwardRef((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),i.__metadata("design:paramtypes",[g.LocalizationService,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.Injector,s.ElementRef])],e)}();t.TextBoxComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(33);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=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"clear",void 0),t}(n(3).ComponentMessages);t.TextBoxMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(61),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.TextBoxMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.TextBoxMessages);t.LocalizedTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(){this.hostClass=!0}return i.__decorate([o.HostBinding("class.k-input-separator"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Component({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}();t.InputSeparatorComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(65),s=n(2),l=n(66),c=n(25),d=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[a.TextAreaComponent,l.TextAreaSuffixComponent],exports:[a.TextAreaComponent,s.EventsModule,l.TextAreaSuffixComponent,c.SHARED_DIRECTIVES],imports:[r.CommonModule,s.EventsModule,c.SharedModule]})],e)}();t.TextAreaModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(5),a=n(9),s=n(7),l=n(2),c=n(3),d=n(98),u=n(4),p=n(12),h=n(12),f=n(8),g=n(10),m={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},v=function(e){function t(t,n,i,r,a,s){var c=e.call(this,t,n,i,r,a,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=r,c.injector=a,c.hostElement=s,c.focusableId="k-"+l.guid(),c.hostClasses=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new o.EventEmitter,c.onBlur=new o.EventEmitter,c.valueChange=new o.EventEmitter,c._size="medium",c._rounded="medium",c._fillMode="solid",c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),l.hasObservers(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),l.hasObservers(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},f.validatePackage(g.packageMetadata),c.direction=t.rtl?"rtl":"ltr",c}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(h.closest(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===l.Keys.Tab}))),e.handleFlow()}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(s.NgControl,null),l.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=r.fromEvent(window,"resize").pipe(a.debounceTime(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(u.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;u.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return m[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&p.invokeElementMethod(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},t.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=u.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},t.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,i=t.children[1];this.renderer.setStyle(n,"flex",e?"none":"1"),i&&this.renderer.setStyle(i,"align-items",e?"center":"start")},i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"focusableId",void 0),i.__decorate([o.HostBinding("class.k-textarea"),o.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.!k-flex-col"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"flowCol",null),i.__decorate([o.HostBinding("class.!k-flex-row"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"flowRow",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"flow",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"rows",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"cols",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"maxlength",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"resizable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"fillMode",null),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],t.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"valueChange",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:s.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return n})),multi:!0},{provide:l.KendoInput,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n ',styles:["\n :host {\n display: inline-flex;\n }\n "]}),i.__metadata("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],t)}(d.TextFieldsBase);t.TextAreaComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(){this.hostClass=!0}return i.__decorate([o.HostBinding("class.k-input-suffix"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Component({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}();t.TextAreaSuffixComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(81),s=n(2),l=n(21),c=n(22),d=n(68),u=n(30),p=n(29),h=n(70),f=n(71),g=n(72),m=n(26),v=n(111),_=n(74),y=n(112),b=n(113),C=n(114),k=n(115),S=[d.ColorPickerComponent,u.ColorPaletteComponent,p.ColorGradientComponent,m.FlatColorPickerComponent,_.LocalizedColorPickerMessagesDirective,v.ColorPickerCustomMessagesComponent],E=[h.ColorInputComponent,y.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,g.FlatColorPickerActionButtonsComponent,k.ColorContrastSvgComponent],w=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[S,E],exports:[S],imports:[l.SliderModule,c.NumericTextBoxModule,r.CommonModule,a.PopupModule,s.DraggableModule]})],e)}();t.ColorPickerModule=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(9),r=n(1),a=n(7),s=n(5),l=n(26),c=n(81),d=n(8),u=n(2),p=n(3),h=n(10),f=n(28),g=n(17),m=n(13),v=n(4),_=n(69),y=n(14),b=["focus","blur"],C=function(){function e(e,t,n,i,o,a){var l=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=i,this.ngZone=o,this.renderer=a,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new r.EventEmitter,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.cancel=new r.EventEmitter,this.activeColorClick=new r.EventEmitter,this.activeViewChange=new r.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new s.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},d.validatePackage(h.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;l.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=m.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?y.DEFAULT_PRESET:y.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&f.PALETTEPRESETS[t]?f.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)})),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=m.parseColor(this.value,this.format,this.gradientSettings.opacity)),u.isChanged("value",e)&&this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",b)},e.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},e.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},e.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),u.closest(e.target,(function(e){return e===t.activeColor.nativeElement}))){var n=new g.ActiveColorClickEvent(this.value);return this.activeColorClick.emit(n),void(n.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}},e.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run((function(){e.focus(),e.onFocus.emit()}))},e.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},e.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run((function(){e.onBlur.emit(),e.isFocused=!1}))},e.prototype.reset=function(){v.isPresent(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=v.isPresent(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e){var t=m.parseColor(e,this.format,this.gradientSettings.opacity);t!==this.value&&(this.value=t,this.valueChange.emit(t),this.setHostElementAriaLabel(),this.notifyNgChanged(t))},e.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==u.Keys.ArrowDown&&e.keyCode!==u.Keys.Enter||(e.preventDefault(),this.ngZone.run((function(){t.toggleWithEvents(!0)})))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===u.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===u.Keys.Tab){var t=e.shiftKey?this.firstFocusableElement.nativeElement:this.lastFocusableElement.nativeElement,n=e.shiftKey?this.lastFocusableElement.nativeElement:this.firstFocusableElement.nativeElement;e.target===t&&(e.preventDefault(),n.focus())}},e.prototype.isEmpty=function(){return!1},e.prototype.setHostElementAriaLabel=function(){var e=""+(this.value?this.value:this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},e.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,i=v.getStylingClasses("picker",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return u.closest(e.relatedTarget,(function(e){return e===t.host.nativeElement}))||n},e.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new g.ColorPickerOpenEvent,this.open.emit(t)):(t=new g.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},e.prototype.focusFirstElement=function(){var e=this;this.ngZone.onStable.pipe(o.take(1)).subscribe((function(){if(e.flatColorPicker){var t=e.flatColorPicker.gradient;(t?t.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()}}))},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(e.prototype,"firstFocusableElement",{get:function(){if(!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton){var e=this.flatColorPicker.gradient;return e?e.gradientDragHandle:this.flatColorPicker.palette.host}return this.views.length>1?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFocusableElement",{get:function(){if(this.preview)return this.flatColorPicker.footer.lastButton;if(this.flatColorPicker.palette)return this.flatColorPicker.palette.host;var e=this.flatColorPicker.gradient,t=e&&e.inputs;return e&&t&&"hex"===t.formatView?t.hexInput:this.gradientSettings.opacity?t.opacityInput.numericInput:t.blueInput},enumerable:!0,configurable:!0}),e.prototype.handleDomEvents=function(e,t){var n=this,i=this.host.nativeElement;t.forEach((function(t){return i[e+"EventListener"](t,n.domFocusListener,!0)}))},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.handleWrapperFocus()}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){var n=!!e.popupRef&&u.closest(t.relatedTarget,(function(t){return t===e.flatColorPicker.host.nativeElement})),i=u.closest(t.relatedTarget,(function(t){return t===e.host.nativeElement}));n||i||e.handleWrapperBlur()}))),e.handleDomEvents("add",b),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(t){e.handleWrapperKeyDown(t)}))),e.subscriptions.add(e.renderer.listen(t,"click",(function(t){e.ngZone.run((function(){e.handleWrapperClick(t)}))})))}))}},e.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");if(t)this.focusableId=t;else{var n="k-"+u.guid();e.setAttribute("id",n),this.focusableId=n}},i.__decorate([r.HostBinding("class.k-colorpicker"),r.HostBinding("class.k-icon-picker"),r.HostBinding("class.k-picker"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),i.__decorate([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([r.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaExpanded",null),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"view",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"iconClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeColorClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("activeColor",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"activeColor",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild("flatColorPicker",{static:!1}),i.__metadata("design:type",l.FlatColorPickerComponent)],e.prototype,"flatColorPicker",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:u.KendoInput,useExisting:r.forwardRef((function(){return t}))},_.ColorPickerLocalizationService,{provide:p.LocalizationService,useExisting:_.ColorPickerLocalizationService},{provide:p.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n tabindex="-1"\n type="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,c.PopupService,r.ChangeDetectorRef,p.LocalizationService,r.NgZone,r.Renderer2])],e)}();t.ColorPickerComponent=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean])],t)}(r.LocalizationService);t.ColorPickerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(13),a=n(4),s=n(2),l=n(5),c=n(3),d=n(20),u=function(){function e(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 o.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new l.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!s.isDocumentAvailable()||!a.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return a.isPresent(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){a.isPresent(e.value)&&!this.isFocused&&(this.hex=r.parseColor(this.value,"hex",this.opacity),this.rgba=r.getRGBA(this.value),this.rgba.a=r.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(e.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),e.prototype.handleRgbaValueChange=function(){var e=r.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=r.getRGBA(this.value),this.hex=r.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=r.parseColor(e,"rgba",this.opacity);a.isPresent(t)&&t!==this.value&&(this.value=t,this.rgba=r.getRGBA(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=r.getRGBA(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=r.parseColor(this.value,"hex",this.opacity)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.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)],e.prototype,"focusableId",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"formatView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"opacity",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.HostBinding("class.k-colorgradient-inputs"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"colorInputClass",void 0),i.__decorate([o.ViewChild("opacityInput",{static:!1}),i.__metadata("design:type",d.NumericTextBoxComponent)],e.prototype,"opacityInput",void 0),i.__decorate([o.ViewChild("hexInput",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"hexInput",void 0),i.__decorate([o.ViewChild("blueInput",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"blueInput",void 0),i.__decorate([o.ViewChild("toggleFormatButton",{static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=i.__decorate([o.Component({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n type="button"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,c.LocalizationService])],e)}();t.ColorInputComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new o.EventEmitter,this.valuePaneClick=new o.EventEmitter,this.clearButtonClick=new o.EventEmitter}return e.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(e.prototype,"viewButtons",{get:function(){return this.views&&this.views.indexOf("gradient")>=0&&this.views.indexOf("palette")>=0},enumerable:!0,configurable:!0}),e.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},e.prototype.getText=function(e){return this.localizationService.get(e)},i.__decorate([o.HostBinding("class.k-coloreditor-header"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"viewChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valuePaneClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"clearButtonClick",void 0),i.__decorate([o.ViewChildren("viewButtons",{read:o.ElementRef}),i.__metadata("design:type",o.QueryList)],e.prototype,"viewButtonsCollection",void 0),i.__decorate([o.ViewChild("clearButton",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"clearButtonElement",void 0),e=i.__decorate([o.Component({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n type="button"\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n type="button"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.FlatColorPickerHeaderComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new o.EventEmitter}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.onActionButtonClick=function(e,t){var n={target:e,originalEvent:t};this.actionButtonClick.emit(n)},i.__decorate([o.HostBinding("class.k-coloreditor-footer"),o.HostBinding("class.k-actions"),o.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"actionButtonClick",void 0),i.__decorate([o.ViewChild("last",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"lastButton",void 0),e=i.__decorate([o.Component({selector:"[kendoFlatColorPickerActionButtons]",template:'\n <button\n class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"\n [attr.title]="getText(\'cancelButton\')"\n (click)="onActionButtonClick(\'cancel\', $event)"\n type="button"\n >{{getText(\'cancelButton\')}}</button>\n <button #last\n class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"\n [attr.title]="getText(\'applyButton\')"\n (click)="onActionButtonClick(\'apply\', $event)"\n type="button"\n >{{getText(\'applyButton\')}}</button>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.FlatColorPickerActionButtonsComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"colorGradientNoColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"flatColorPickerNoColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"colorPickerNoColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"colorGradientHandle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"hueSliderHandle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"opacitySliderHandle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"redInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"passContrast",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"failContrast",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"contrastRatio",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"previewColor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"revertSelection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"gradientView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"paletteView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"formatButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"applyButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cancelButton",void 0),t}(n(3).ComponentMessages);t.ColorPickerMessages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(73),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:a.ColorPickerMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.ColorPickerMessages);t.LocalizedColorPickerMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(76),a=n(6),s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.CheckBoxDirective],exports:[r.CheckBoxDirective],imports:[a.CommonModule]})],e)}();t.CheckBoxModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=r.getStylingClasses("checkbox",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.HostBinding("class.k-checkbox"),i.__metadata("design:type",Boolean)],e.prototype,"kendoClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),e=i.__decorate([o.Directive({selector:"input[kendoCheckBox]"}),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}();t.CheckBoxDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(78),a=n(6),s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r.RadioButtonDirective],exports:[r.RadioButtonDirective],imports:[a.CommonModule]})],e)}();t.RadioButtonModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(8),a=n(4),s=n(10),l=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",r.validatePackage(s.packageMetadata)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=a.getStylingClasses("radio",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([o.HostBinding("class.k-radio"),i.__metadata("design:type",Boolean)],e.prototype,"kendoClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),e=i.__decorate([o.Directive({selector:"input[kendoRadioButton]"}),i.__metadata("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}();t.RadioButtonDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(80),s=n(32),l=n(31),c=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[s.HintComponent,l.ErrorComponent,a.FormFieldComponent],exports:[s.HintComponent,l.ErrorComponent,a.FormFieldComponent],imports:[r.CommonModule]})],e)}();t.FormFieldModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(5),s=n(2),l=n(3),c=n(8),d=n(10),u=n(31),p=n(32),h=function(){function e(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 a.Subscription,this.rtl=!1,c.validatePackage(d.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.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.")},e.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)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof r.RadioControlValueAccessor},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.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}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.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)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-form-field-error"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"errorClass",null),i.__decorate([o.HostBinding("class.k-form-field-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.ContentChildren(r.NgControl,{descendants:!0}),i.__metadata("design:type",o.QueryList),i.__metadata("design:paramtypes",[o.QueryList])],e.prototype,"formControls",null),i.__decorate([o.ContentChildren(r.NgControl,{read:o.ElementRef,descendants:!0}),i.__metadata("design:type",o.QueryList)],e.prototype,"controlElementRefs",void 0),i.__decorate([o.ContentChild(s.KendoInput,{static:!0}),i.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),i.__decorate([o.ContentChildren(u.ErrorComponent,{descendants:!0}),i.__metadata("design:type",o.QueryList)],e.prototype,"errorChildren",void 0),i.__decorate([o.ContentChildren(p.HintComponent,{descendants:!0}),i.__metadata("design:type",o.QueryList)],e.prototype,"hintChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"showHints",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"orientation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"showErrors",void 0),e=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])],e)}();t.FormFieldComponent=h},function(e,t,n){"use strict";n.r(t),n.d(t,"AlignService",(function(){return te})),n.d(t,"AnimationService",(function(){return ae})),n.d(t,"DOMService",(function(){return Q})),n.d(t,"PositionService",(function(){return ne})),n.d(t,"ResizeService",(function(){return ie})),n.d(t,"ScrollableService",(function(){return oe})),n.d(t,"PopupService",(function(){return ue})),n.d(t,"POPUP_CONTAINER",(function(){return de})),n.d(t,"PopupComponent",(function(){return ce})),n.d(t,"PopupModule",(function(){return he})),n.d(t,"SCALE",(function(){return ee}));var i=n(0),o=n(1),r="bottom",a="center",s="middle",l="left",c="right",d="top",u=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,l=e.margin;void 0===l&&(l={});var d=n.horizontal,u=n.vertical,p=o.horizontal,h=o.vertical,f=l.horizontal||0,g=l.vertical||0,m=t.top,v=t.left;return u===r&&(m+=t.height),u!==a&&u!==s||(m+=Math.round(t.height/2)),h===r&&(m-=i.height,g*=-1),h!==a&&h!==s||(m-=Math.round(i.height/2),g*=-1),d===c&&(v+=t.width),d!==a&&d!==s||(v+=Math.round(t.width/2)),p===c&&(v-=i.width,f*=-1),p!==a&&p!==s||(v-=Math.round(i.width/2),f*=-1),{top:m+g,left:v+f}};function p(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},g=function(e){return h(e).documentElement},m=0;function v(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function _(e){var t=f(e),n=g(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=v()),i}var y=function(e){if(!e.getBoundingClientRect){var t=_(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},b=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||g(e)},C=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}},k=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function S(e){var t=g(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?S(e):{x:e.scrollLeft,y:e.scrollTop}};var w=function(e,t){var n=f(e),i=n.getComputedStyle(e),o=C(e),r=t||b(e),a=e.ownerDocument,s=r!==a.body&&r!==a.documentElement,l={top:0,left:0};if("fixed"!==i.position&&s){var c=n.getComputedStyle(r);(l=C(r)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}},x=function(e,t){return e?E(e):function(e){var t=b(e);return t?E(t):{x:0,y:0}}(t)},O=function(e,t,n){void 0===n&&(n=1);var i=t?b(t):null,o=w(e,i),r=o.top,a=o.left,s=o.height,l=o.width,c=x(i,e),d=c.x,u=c.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:r+u*h,left:a+d*h,height:s,width:l}};function P(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var I="fit",B="flip",T=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},j=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,c=e.elementAlignPoint,u=0,p=2*e.margin;if(c!==r&&!(c===a||c===s)&&!(r===a||r===s)){var h=r===d||r===l;t<0&&h?t+(u=n+i+p)+n>o&&(u=0):t>=0&&!h&&(t+n>o&&(u+=-(i+n+p)),t+u<0&&(u=0))}return u},R=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=i.top,c=i.left,d=i.height,u=i.width,p=a.height,h=a.width,f=s.horizontal||0,g=s.vertical||0,m=0,v=0,_=r.vertical===I,y=r.horizontal===I,b=r.vertical===B,C=r.horizontal===B;_&&(v+=T(l,d,p)),y&&(m+=T(c,u,h)),b&&(v+=j({margin:g,offset:l,size:d,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),C&&(m+=j({margin:f,offset:c,size:u,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var k=b&&0!==v,S=C&&0!==m,E=_&&0!==v,w=y&&0!==m;return{flipped:S||k,fitted:E||w,flip:{horizontal:S,vertical:k},fit:{horizontal:w,vertical:E},offset:{left:m,top:v}}},M=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},D=function(e,t){for(var n,i,o=k(e),r=t;r&&(n=M(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};A=function(e){if(!F())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},V=!1;var A,z,V,F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},H=n(2),N=n(5),L=n(9),K=n(16),Z=n(8),G=n(6),U=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},W=function(){return"undefined"!=typeof window},q=/auto|scroll/,X=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var $=function(e){var t,n=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n||(t=e.apply(void 0,i),n=!0),t}}((function(){if(!Object(H.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t})),Y=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},J=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return p(e,t)},e.prototype.align=function(e){return u(e)},e.prototype.boundingOffset=function(e){return y(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return J.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return W()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?C(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,o=i.left,r=i.top,a=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=C(n);return n.style.left=o,n.style.top=r,n.offsetHeight,n.style.transition=a,s},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?O(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return P(e,t)},e.prototype.restrictToView=function(e){return R(e)},e.prototype.scrollPosition=function(e){return S(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(H.isDocumentAvailable)()||!W())return t;for(var n=e.parentElement;n;)(q.test(X(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?C(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!$())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return _(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(H.isDocumentAvailable)()||!W())return null;var n=D(e,t);if(!n)return null;var i=[e].concat(k(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(H.isDocumentAvailable)()&&W()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),ee=new o.InjectionToken("Popup Document Scale"),te=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,r=e.margin,a=e.offset,s=e.positionMode,l=this.scale||1,c="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,l):this.relativeRect(t,n,a,l),d=Y(this._dom.offset(n),l);return this._dom.align({anchorAlign:i,anchorRect:c,elementAlign:o,elementRect:d,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=U(this._dom.offset(e),n),a=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=a,s.y/=a);var l=this._dom.stackingElementOffset(t);return 1!==i&&l&&(l.left/=a,l.top/=a),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(Y(r,i),l),s),o)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var o=U(this._dom.position(e,t,i),n);return Y(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(ee)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[Q,Number])],e)}(),ne=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,i=e.element,o=e.anchorAlign,r=e.elementAlign,a=e.collisions,s=e.margin,l=this._dom,c=this.scale||1,d=l.offsetAtPoint(i,n),u=Y(d,c),p=Y(l.offset(t),c),h=U(p,n),f=e.viewPort||l.windowViewPort(i);f.width=f.width/c,f.height=f.height/c;var g=l.restrictToView({anchorAlign:o,anchorRect:h,collisions:a,elementAlign:r,elementRect:u,margin:s,viewPort:f}),m=l.addOffset(n,g.offset);return{flip:g.flip,flipped:g.flipped,offset:m}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(ee)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[Q,Number])],e)}(),ie=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(H.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(N.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(L.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[Q,o.NgZone])],e)}(),oe=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(H.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var o=i.map((function(e){return Object(N.fromEvent)(e,"scroll").pipe(Object(L.auditTime)(1e3/60))}));t.subscription=N.merge.apply(void 0,o).subscribe((function(o){var r=o.target,a=i.filter((function(e){return e===r})).length>0,s=r===document,l=r===window;(a||s||l)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[Q,o.NgZone])],e)}(),re={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},ae=function(){function e(e){this.animationBuilder=e,this.start=new o.EventEmitter,this.end=new o.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=t.type||"slide",r=re[i];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var o=n.duration||100,r=this.animationBuilder.build([Object(K.style)(t.start),Object(K.animate)(o+"ms ease-in",Object(K.style)(t.end))]),a=this.player=r.create(e);a.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),a.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[K.AnimationBuilder])],e)}(),se={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583997,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"},le={left:-1e4,top:0},ce=function(){function e(e,t,n,i,r,a,s,l,c){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=a,this.animationService=s,this._renderer=l,this._zone=c,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=le,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(Z.validatePackage)(se),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=le,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(N.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(H.isDocumentAvailable)()){var t,n,i,o,r,a,s=this.position(),l=s.flip,c=s.offset;(!this.currentOffset||(t=this.currentOffset,n=c,i=t.left,o=t.top,r=n.left,a=n.top,Math.abs(i-r)>=1||Math.abs(o-a)>=1))&&(this.currentOffset=c,Object(H.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:c,flip:l})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,l),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(H.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(H.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",H.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[te,ae,Q,ne,ie,oe],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,te,Q,ne,ie,oe,ae,o.Renderer2,o.NgZone])],e)}(),de=new o.InjectionToken("Popup Container"),ue=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,i=t.nodes,o=this.appendPopup(i,e.appendTo),r=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var a=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=a)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:a,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(ce,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var o=i.create(this.injector,t);return this.applicationRef.attachView(o.hostView),o},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof o.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof o.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(de)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),pe=[ce],he=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[pe],entryComponents:[pe],exports:[pe],imports:[G.CommonModule,H.ResizeSensorModule],providers:[ue]})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(18);t.SliderComponent=o.SliderComponent;var r=n(36);t.RangeSliderComponent=r.RangeSliderComponent;var a=n(15);t.LabelTemplateDirective=a.LabelTemplateDirective;var s=n(37);t.SwitchComponent=s.SwitchComponent;var l=n(38);t.TextBoxDirective=l.TextBoxDirective;var c=n(39);t.TextAreaDirective=c.TextAreaDirective;var d=n(20);t.NumericTextBoxComponent=d.NumericTextBoxComponent;var u=n(41);t.NumericTextBoxCustomMessagesComponent=u.NumericTextBoxCustomMessagesComponent;var p=n(43);t.MaskedTextBoxComponent=p.MaskedTextBoxComponent;var h=n(93);t.InputsModule=h.InputsModule;var f=n(47);t.SliderTicksComponent=f.SliderTicksComponent;var g=n(21);t.SliderModule=g.SliderModule;var m=n(50);t.RangeSliderModule=m.RangeSliderModule;var v=n(53);t.SwitchModule=v.SwitchModule;var _=n(22);t.NumericTextBoxModule=_.NumericTextBoxModule;var y=n(57);t.MaskedTextBoxModule=y.MaskedTextBoxModule;var b=n(58);t.TextBoxModule=b.TextBoxModule;var C=n(64);t.TextAreaModule=C.TextAreaModule;var k=n(75);t.CheckBoxModule=k.CheckBoxModule;var S=n(77);t.RadioButtonModule=S.RadioButtonModule;var E=n(68);t.ColorPickerComponent=E.ColorPickerComponent;var w=n(30);t.ColorPaletteComponent=w.ColorPaletteComponent;var x=n(29);t.ColorGradientComponent=x.ColorGradientComponent;var O=n(67);t.ColorPickerModule=O.ColorPickerModule,i.__exportStar(n(17),t);var P=n(26);t.FlatColorPickerComponent=P.FlatColorPickerComponent;var I=n(17);t.ColorPickerCancelEvent=I.ColorPickerCancelEvent;var B=n(76);t.CheckBoxDirective=B.CheckBoxDirective;var T=n(78);t.RadioButtonDirective=T.RadioButtonDirective;var j=n(32);t.HintComponent=j.HintComponent;var R=n(31);t.ErrorComponent=R.ErrorComponent;var M=n(80);t.FormFieldComponent=M.FormFieldComponent;var D=n(79);t.FormFieldModule=D.FormFieldModule;var A=n(59);t.TextBoxComponent=A.TextBoxComponent;var z=n(24);t.TextBoxPrefixTemplateDirective=z.TextBoxPrefixTemplateDirective;var V=n(23);t.TextBoxSuffixTemplateDirective=V.TextBoxSuffixTemplateDirective;var F=n(65);t.TextAreaComponent=F.TextAreaComponent;var H=n(66);t.TextAreaSuffixComponent=H.TextAreaSuffixComponent;var N=n(63);t.InputSeparatorComponent=N.InputSeparatorComponent;var L=n(25);t.SharedModule=L.SharedModule;var K=n(74);t.LocalizedColorPickerMessagesDirective=K.LocalizedColorPickerMessagesDirective;var Z=n(56);t.LocalizedNumericTextBoxMessagesDirective=Z.LocalizedNumericTextBoxMessagesDirective;var G=n(62);t.LocalizedTextBoxMessagesDirective=G.LocalizedTextBoxMessagesDirective;var U=n(48);t.LocalizedSliderMessagesDirective=U.LocalizedSliderMessagesDirective;var W=n(51);t.LocalizedRangeSliderMessagesDirective=W.LocalizedRangeSliderMessagesDirective;var q=n(54);t.LocalizedSwitchMessagesDirective=q.LocalizedSwitchMessagesDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,r=t.reverse,a=t.vertical?"bottom":"left",s=this.trackWidth(),l=o.trimValue(n,i,this.props.value);this.handlePosition=o.calculateHandlePosition({min:i,max:n,reverse:r,value:l,trackWidth:s}),this.renderer.setStyle(e,a,this.handlePosition+"px")},t.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",o=this.handlePosition;n&&(o=this.trackWidth()-o),this.renderer.setStyle(e,i,o+"px")},t}(n(34).SliderModelBase);t.SliderModel=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(11),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,a=t.reverse,s=t.vertical?"bottom":"left",l=this.trackWidth(),c=o.isStartHandle(e)?r.trimValueRange(n,i,this.props.value)[0]:r.trimValueRange(n,i,this.props.value)[1];o.isStartHandle(e)?(this.startHandlePosition=r.calculateHandlePosition({min:i,max:n,reverse:a,value:c,trackWidth:l}),this.renderer.setStyle(e,s,this.startHandlePosition+"px")):(this.endHandlePosition=r.calculateHandlePosition({min:i,max:n,reverse:a,value:c,trackWidth:l}),this.renderer.setStyle(e,s,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical,r=o?"height":"width",a=o?"bottom":i?"right":"left",s=Math.abs(this.endHandlePosition-this.startHandlePosition),l=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,r,s+"px"),this.renderer.setStyle(t,a,i?this.trackWidth()-parseFloat(l)+"px":parseFloat(l)+"px")},t}(n(34).SliderModelBase);t.RangeSliderModel=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMaxValidator=function(e){return function(t){return!i.isPresent(e)||!i.isPresent(t.value)||t.value<=e?null:{maxError:{maxValue:e,value:t.value}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMinValidator=function(e){return function(t){return!i.isPresent(e)||!i.isPresent(t.value)||t.value>=e?null:{minError:{minValue:e,value:t.value}}}}},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40);t.numericRegex=function(e){var t,n=e.autoCorrect,o=e.decimals,r=e.min,a=e.separator;return a===i.POINT&&(a="\\"+a),t=0===o?"\\d*":"(?:(?:\\d+("+a+"\\d*)?)|(?:"+a+"\\d*))?",new RegExp("^"+(n&&null!==r&&r>=0?"":"-?")+t+"$")},t.decimalPart=function(e){return e>=0?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,i=e;if(n>0){var o=new Array(n+1).join("0");i=parseFloat(e+o)}return i},t.getDeltaFromMouseWheel=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?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,n=e.which&&3===e.which;return t||n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(t.ArrowDirection||(t.ArrowDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(91),a=n(44),s=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,o=void 0===i?"":i,r=e.promptPlaceholder,a=void 0===r?" ":r,s=e.rules,l=void 0===s?{}:s,c=e.includeLiterals,d=void 0!==c&&c;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=l,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return r.sequence(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(r.sequence(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(r.sequence(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var o="",a=i,s=t.split("").slice(0,n),l=t.split("").slice(i);return r.sequence(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=s.concat(e).concat(l).join("")})),{selection:a,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",a=n,s=e.split("").slice(n),l=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return r.sequence(this.maskTokens.slice(0,c)).run(l,t).fold((function(e){a=i.adjustPosition(e,a),o=e.concat(s).join("")})),{selection:a,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,o="",a=n,s=e.slice(0,n);return r.sequence(this.unmaskTokens).run(s,t).chain((function(e){a=e.join("").length;var n=t.slice(a);return r.sequence(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:a,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return a.literal(e)},mask:function(n){return a.mask({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return a.unliteral(e)},mask:function(t){return a.unmask(e.prompt)(t)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return a.rawLiteral(n)},mask:function(n){return a.rawMask({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return a.rawLiteral(!1)},mask:function(t){return a.rawMask({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;r.greedy(a.token(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),r.greedy(a.token(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),r.greedy(a.token(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),r.greedy(a.token(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=i.__decorate([o.Injectable()],e)}();t.MaskingService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),o=n(45);t.sequence=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new i.Parser((function(e){return new o.Result(t,e)}))));var t},t.greedy=function(e){return new i.Parser((function(t){for(var n=new o.Result([],t);!t.eof();)n=n.concat(e.run(t));return n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}();t.Stream=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(21),a=n(50),s=n(53),l=n(22),c=n(57),d=n(58),u=n(64),p=n(6),h=n(67),f=n(75),g=n(77),m=n(79),v=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[u.TextAreaModule,d.TextBoxModule,r.SliderModule,a.RangeSliderModule,s.SwitchModule,l.NumericTextBoxModule,c.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,g.RadioButtonModule,m.FormFieldModule],imports:[p.CommonModule]})],e)}();t.InputsModule=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(49),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.SliderMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-slider-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.SliderMessages);t.SliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(52),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.RangeSliderMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.RangeSliderMessages);t.RangeSliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(55),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-switch-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.SwitchCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(61),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.TextBoxMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.TextBoxMessages);t.TextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(1),a=n(4),s=n(2),l=function(){function e(e,t,n,i,l,c){var d=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=l,this.hostElement=c,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new r.EventEmitter,this.inputBlur=new r.EventEmitter,this.subscriptions=new o.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){d.changeDetector.markForCheck(),(s.hasObservers(d.inputBlur)||a.requiresZoneOnBlur(d.control))&&d.ngZone.run((function(){d.ngTouched(),d.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"inputFocus",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"inputBlur",void 0),i.__decorate([r.ViewChild("input",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"input",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e}();t.TextFieldsBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(14),a=n(28),s=function(){function e(){}return e.prototype.getPaletteSettings=function(e,t){var n="name"!==t?r.DEFAULT_PRESET:r.DEFAULT_ACCESSIBLE_PRESET,i=e.palette,o="string"==typeof i&&a.PALETTEPRESETS[i]?a.PALETTEPRESETS[i].columns:void 0;return{palette:i||n,tileSize:e.tileSize||24,columns:e.columns||o||10}},e.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width?e.width:e.height,height:e.height?e.height:e.width}},e=i.__decorate([o.Injectable()],e)}();t.FlatColorPickerService=s},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 i=n(0),o=function(e){function t(t){var n=e.call(this)||this;return n.originalEvent=t,n}return i.__extends(t,e),t}(n(2).PreventableEvent);t.ColorPickerCancelEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(2).PreventableEvent);t.ColorPickerCloseEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(2).PreventableEvent);t.ColorPickerOpenEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}();t.ActiveColorClickEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),o=n(4);function r(e,t){if(e=e.toLowerCase().trim(),o.isPresent(i.namedColors[e]))return e;i.parseColor(e,t)&&(e=i.parseColor(e,t).toHex());var n=Object.keys(i.namedColors).find((function(t){return i.namedColors[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property should be set to 'hex' or 'rgba' ");return n}t.parseColor=function(e,n,a,s){void 0===a&&(a=!1),void 0===s&&(s=!0);if(-1===["hex","rgba","name"].indexOf(n))throw new Error("Unsupported color output format '"+n+"'. The available options are 'hex', 'rgba' or 'name'.");if(o.isPresent(e)){if("name"===n)return r(e,s);var l=i.parseColor(e.trim(),s);if(o.isPresent(l))return"hex"===n?t.getHexValue(l,a):l.toCssRgba()}},t.getHSV=function(e,t){void 0===t&&(t=!0);var n=i.parseColor(e,t);return o.isPresent(n)?n.toHSV():{}},t.getRGBA=function(e,t){void 0===t&&(t=!0);var n=i.parseColor(e,t);return o.isPresent(n)?n.toBytes():{}},t.getColorFromHSV=function(e,n,r){void 0===n&&(n="rgba"),void 0===r&&(r=!1);var a=o.fitIntoBounds(e.h,0,359.9),s=o.fitIntoBounds(e.s,0,1),l=o.fitIntoBounds(e.v,0,1),c=o.fitIntoBounds(e.a,0,1),d=i.Color.fromHSV(a,s,l,c);return"hex"===n?t.getHexValue(d,r):d.toCssRgba()},t.getHexValue=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},t.getColorFromHue=function(e){return t.getColorFromHSV({h:e,s:1,v:1,a:1})},t.getColorFromRGBA=function(e){var t=o.fitIntoBounds(e.r,0,255),n=o.fitIntoBounds(e.g,0,255),r=o.fitIntoBounds(e.b,0,255),a=o.fitIntoBounds(e.a,0,1);return i.Color.fromBytes(t,n,r,a).toCssRgba()},t.nameFormat=r,t.getRGBFromRGBA=function(e,t){var n=o.fitIntoBounds(e.r,0,255),i=o.fitIntoBounds(e.g,0,255),r=o.fitIntoBounds(e.b,0,255),a=o.fitIntoBounds(e.a,0,1),s=o.fitIntoBounds(t.r,0,255),l=o.fitIntoBounds(t.g,0,255),c=o.fitIntoBounds(t.b,0,255);return{r:Math.round((1-a)*s+a*n),g:Math.round((1-a)*l+a*i),b:Math.round((1-a)*c+a*r)}},t.getLuminance=function(e){var t=[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*t[0]+.7152*t[1]+.0722*t[2]},t.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},t.getContrastFromTwoRGBAs=function(e,n){return t.getContrast(t.getLuminance(t.getRGBFromRGBA(e,n)),t.getLuminance(t.getRGBFromRGBA(n,{r:0,g:0,b:0,a:1})))}},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCommand=function(e){return function(t,n,i){var o=e(i[n-1],i[n-2],t),r=o[0],a=o[1],s=e(t,i[n-1],i[n+1],!0);return"C "+r+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]}},t.controlPoint=function(e){return function(t,n,i,o){var r=e(n||t,i||t),a=r.angle+(o?Math.PI:0),s=.1*r.length;return[t[0]+Math.cos(a)*s,t[1]+Math.sin(a)*s]}},t.line=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},t.d=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,o){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,o)}),"")},t.svgPath=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,o){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,o)}),"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(27),s=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.flatColorPickerLocalization=o,r}return i.__extends(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__param(3,o.Optional()),i.__param(3,o.Inject(a.FlatColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,a.FlatColorPickerLocalizationService])],t)}(r.LocalizationService);t.ColorGradientLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(27),s=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.flatColorPickerLocalization=o,r}return i.__extends(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__param(3,o.Optional()),i.__param(3,o.Inject(a.FlatColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,a.FlatColorPickerLocalizationService])],t)}(r.LocalizationService);t.ColorPaletteLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],r.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)}}},e.prototype.getCellCoordsFor=function(e){if(r.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}},e.prototype.getColorAt=function(e){if(r.isPresent(e)&&r.isPresent(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(r.isPresent(e)&&r.isPresent(e.row)&&r.isPresent(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=i.__decorate([o.Injectable()],e)}();t.ColorPaletteService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(73),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:a.ColorPickerMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.ColorPickerMessages);t.ColorPickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=i.__decorate([o.Directive({selector:"[kendoFocusOnDomReady]"}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone])],e)}();t.FocusOnDomReadyDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(14),r=n(3),a=n(1),s=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){var e="AA"===this.type?o.AA_RATIO:o.AAA_RATIO;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"pass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),e=i.__decorate([a.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 '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.ContrastValidationComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(13),s=n(14),l=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=s.AA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=s.AAA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return a.getContrastFromTwoRGBAs(a.getRGBA(this.value),a.getRGBA(this.ratio))},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"ratio",void 0),e=i.__decorate([o.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 '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.ContrastComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(5),a=n(4),s=n(14),l=n(13),c=function(){function e(){this.hostClass=!0}return e.prototype.ngAfterViewInit=function(){var e=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe((function(t){t.h===e.oldH&&t.a===e.oldA||(e.oldH=t.h,e.oldA=t.a,e.setPaths())}))},e.prototype.ngOnChanges=function(e){a.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},e.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)]},e.prototype.findValue=function(e,t,n,i,o){var r=(n+i)/2,a=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-r/this.metrics.height}),s=l.getContrastFromTwoRGBAs(l.getRGBA(l.getColorFromHSV(a)),l.getRGBA(this.backgroundColor||""));return n+.5>i?s<e+1&&s>e-1?r:null:o(s,e)?this.findValue(e,t,n,i-(i-n)/2,o):this.findValue(e,t,n+(i-n)/2,i,o)},e.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var i=[],o=0;o<=this.metrics.width;o+=this.metrics.width/t){var r=this.findValue(e,o,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==r&&i.push([o,r])}return i},i.__decorate([o.HostBinding("class.k-color-contrast-svg"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"wrapper",void 0),i.__decorate([o.Input(),i.__metadata("design:type",r.BehaviorSubject)],e.prototype,"hsva",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"backgroundColor",void 0),e=i.__decorate([o.Component({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],e)}();t.ColorContrastSvgComponent=c}])}));
|