text: define(["exports"],function(_exports){"use strict";Object.defineProperty(_exports,"__esModule",{value:!0});_exports.ProgressMixin=void 0;_exports.ProgressMixin=function ProgressMixin(superClass){return function(_superClass){babelHelpers.inherits(VaadinProgressMixin,_superClass);function VaadinProgressMixin(){babelHelpers.classCallCheck(this,VaadinProgressMixin);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(VaadinProgressMixin).apply(this,arguments))}babelHelpers.createClass(VaadinProgressMixin,[{key:"ready",value:function ready(){babelHelpers.get(babelHelpers.getPrototypeOf(VaadinProgressMixin.prototype),"ready",this).call(this);this.setAttribute("role","progressbar")}},{key:"_normalizedValueChanged",value:function _normalizedValueChanged(value,min,max){var newNormalizedValue=this._normalizeValue(value,min,max);this.style.setProperty("--vaadin-progress-value",newNormalizedValue);this.updateStyles({"--vaadin-progress-value":newNormalizedValue+""})}},{key:"_valueChanged",value:function _valueChanged(newV){this.setAttribute("aria-valuenow",newV)}},{key:"_minChanged",value:function _minChanged(newV){this.setAttribute("aria-valuemin",newV)}},{key:"_maxChanged",value:function _maxChanged(newV){this.setAttribute("aria-valuemax",newV)}},{key:"_normalizeValue",value:function _normalizeValue(value,min,max){var nV;if(!value&&0!=value){nV=0}else if(min>=max){nV=1}else{nV=(value-min)/(max-min);nV=Math.min(Math.max(nV,0),1)}return nV}}],[{key:"properties",get:function get(){return{value:{type:Number,observer:"_valueChanged"},min:{type:Number,value:0,observer:"_minChanged"},max:{type:Number,value:1,observer:"_maxChanged"},indeterminate:{type:Boolean,value:!1,reflectToAttribute:!0}}}},{key:"observers",get:function get(){return["_normalizedValueChanged(value, min, max)"]}}]);return VaadinProgressMixin}(superClass)}});