text: System.register("@telerik/kendo-inputs-common",[],function(k){return{setters:[],execute:function(){function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var i,n;n={},r.m=i=[function(t,e,i){"use strict";i.r(e);function s(t,e,i){var r=t.max,n=t.min,a=t.reverse,o=r-n,s=e/i*o,c=r;return e/i<100/o*(o-o%t.smallStep)/100&&(c=a?r-s:s+n),l(u(t,{value:c}))}function a(t){var e=t.max,i=t.min,r=t.smallStep,n=t.value;return c(e,i,n%r==0?n-r:n-n%r)}function o(t){var e=t.max,i=t.min,r=t.smallStep,n=t.value;return c(e,i,n-n%r+r)}function r(t,e,i){this.props=t,this.wrapper=e,this.track=i,this.tickSizes=this.getTickSizes()}var l=function(t){var e=t.smallStep,i=t.value,r=a(t),n=o(t);return i%e==0?i:n-i<=e/2?n:r},c=function(t,e,i){return t<i?t:i<e?e:i},u=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];return Object.assign.apply(Object,[{},t].concat(e))},h={calculateFixedTrackSize:function(t){return(t.max-t.min)/t.smallStep*t.fixedTickWidth},calculateValueFromTick:function(t,e){var i=e.max,r=e.min,n=e.smallStep,a=e.reverse,o=r+t*n;return e.vertical||a?Math.abs(o-i):o},calculateValueFromTrack:function(t,e,i){var r,n,a,o;return a=i.vertical?(n=t.top-(r=t.bottom),e.pageY-r):(o=t.left,n=t.right-o,e.pageX-o),s(i,a,n)},calculateTrackSize:function(t,e,i){return void 0===i&&(i=!0),t-(i?2*parseFloat(e,10):0)},calculateTicksCount:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=1),function(t,e,i){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=1),i<=0)throw new Error("Invalid argument: smallStep must be a positive number");return Math.floor(Math.abs(e-t)/i)}(t,e,i)+1},calculateTickSizes:function(t,e,i,r){for(var n=Math.floor((i-e)/r)+1,a=t/(i-e),o=[],s=0,c=0,l=0;l<n;l++){c+=0===l||l===n-1?r/2*a:r*a;var u=Math.round(c-s);o.push(u),s+=u}return o},calculateHandlePosition:function(t){var e=t.handleWidth,i=t.trackWidth,r=t.min,n=t.max,a=t.reverse,o=t.value,s=Math.floor(e/2),c=i/Math.abs(n-r)*(o-r);return a&&(c=i-c),Math.floor(c-s)},decreaseValueToStep:a,identity:function(t){return t},increaseValueToStep:o,trimValue:c,snapValue:l,valueFromTrack:s};r.prototype.getTickSizes=function(){var t=this.props,e=t.max,i=t.min,r=t.smallStep,n=this.trackWidth();return h.calculateTickSizes(n,i,e,r)},r.prototype.trackWidth=function(){return this.props.fixedTickWidth?h.calculateFixedTrackSize(this.props):h.calculateTrackSize(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)},r.prototype.resizeTrack=function(){var t=this.props.vertical?"height":"width",e=this.trackWidth();this.track.style[t]=e+"px"},r.prototype.resizeTicks=function(t,e){var i=this,r=this.props.vertical?"height":"width";Array.prototype.slice.call(e).map(function(t,e){return t.style[r]=i.tickSizes[e]+"px"}),this.props.vertical&&this.adjustPadding(t)},r.prototype.resizeWrapper=function(){var t=this.props.vertical?"height":"width",e=this.elementSize(this.wrapper),i=h.calculateTrackSize(e,this.elementOffset(this.track)),r=h.calculateFixedTrackSize(this.props);this.wrapper.parentElement.style[t]=r<i?e-(i-r)+"px":e+(r-i)+"px"},r.prototype.positionHandle=function(t){var e=this.props,i=e.max,r=e.min,n=e.reverse,a=e.vertical?"bottom":"left",o=this.trackWidth(),s=h.trimValue(i,r,this.props.value);this.handlePosition=h.calculateHandlePosition({min:r,max:i,reverse:n,value:s,trackWidth:o,handleWidth:t.offsetWidth}),t.style[a]=this.handlePosition+"px"},r.prototype.positionSelection=function(t,e){var i=this.props,r=i.reverse,n=i.vertical?"height":"width",a=Math.floor(t.offsetWidth/2),o=this.handlePosition+a;r&&(o=this.trackWidth()-o),e.style[n]=o+"px"},r.prototype.adjustPadding=function(t){var e,i=this.tickSizes.reduce(function(t,e){return t+e},0),r=this.trackWidth()-i;0!=r&&(e=r+this.elementOffset(this.track),t.style.paddingTop=e+"px")},r.prototype.elementOffset=function(t){var e=this.props.vertical,i=getComputedStyle(t);return parseInt(e?i.bottom:i.left,10)},r.prototype.elementSize=function(t){return this.props.vertical?t.clientHeight:t.clientWidth};function n(t,e){void 0===t&&(t=0),this.handle={transform:"translateX("+t+"px)",transition:e}}function p(){}function d(t,e){var s=this;void 0===t&&(t=p),void 0===e&&(e=p),this.handlePosition=0,this.wrapperOffset=0,this.handleOffset=0,this.handleMargin=4,this.updateView=t,this.onChange=e,this.change=function(t){s.checked=t,s.updateView(s.updateModel(t?s.constrain:0)),s.onChange(t)},this.limit=function(t){return t>s.constrain?s.constrain:t<0?0:t},this.addAnimation=function(t){return!0===t.transition?t.transition="all 200ms ease-out":t.transition="none",t},this.onPress=function(t){var e=t.pageX;s.lastPressX=s.originalPressX=e},this.onRelease=function(t){var e=t.pageX,i=Math.abs(s.originalPressX-e),r=s.constrain/2,n=i<5?!s.checked:s.handlePosition>r;s.change(n)},this.onDrag=function(t){var e,i,r=t.pageX,n=s.coords,a=n.left,o=n.right;a<r&&r<o&&(e=s.reverse?s.lastPressX-r:r-s.lastPressX,i=s.limit(s.handlePosition+e),s.lastPressX=r,s.handlePosition=i,s.updateView(s.updateModel(s.handlePosition))),o<r&&s.updateView(s.updateModel(s.reverse?0:s.constrain)),r<a&&s.updateView(s.updateModel(s.reverse?s.constrain:0))}}var f=r,v={constrain:{configurable:!0}};v.constrain.get=function(){return this.wrapperOffset-this.handleOffset-this.handleMargin},d.prototype.updateState=function(t){var e=t.wrapperOffset,i=t.handleOffset,r=t.checked,n=t.animate;void 0===n&&(n=!0);var a=t.coords,o=t.handleMargin,s=t.reverse;this.wrapperOffset=e,this.handleOffset=i,this.coords=a,this.handleMargin=o,this.checked=r,this.reverse=s,this.updateView(this.updateModel(r?this.constrain:0,n))},d.prototype.updateModel=function(t,e){void 0===e&&(e=!0);var i=this.reverse?this.wrapperOffset/2-t:t;return new n(i,e)},Object.defineProperties(d.prototype,v);var m=d;i.d(e,"SliderModel",function(){return f}),i.d(e,"SliderUtil",function(){return h}),i.d(e,"SwitchController",function(){return m}),function(t){for(var e in t)k(e,t[e])}(e)}],r.c=n,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}}});