this.primereact=this.primereact||{},this.primereact.rating=function(t,e,n,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(e);function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;nt.props.value,"pi pi-star-fill":e<=t.props.value});return i.default.createElement("span",{className:o,onClick:function(n){return t.rate(n,e)},key:e,tabIndex:t.getFocusIndex(),onKeyDown:function(n){return t.onStarKeyDown(n,e)}})}))}},{key:"renderCancelIcon",value:function(){return this.props.cancel?i.default.createElement("span",{className:"p-rating-icon p-rating-cancel pi pi-ban",onClick:this.clear,tabIndex:this.getFocusIndex(),onKeyDown:this.onCancelKeyDown}):null}},{key:"render",value:function(){var t=this,e=n.classNames("p-rating",{"p-disabled":this.props.disabled,"p-rating-readonly":this.props.readOnly},this.props.className),o=this.renderCancelIcon(),r=this.renderStars();return i.default.createElement("div",{ref:function(e){return t.element=e},id:this.props.id,className:e,style:this.props.style},o,r)}}])&&a(s.prototype,c),h&&a(s,h),Object.defineProperty(s,"prototype",{writable:!1}),m}(e.Component);return h(m,"defaultProps",{id:null,value:null,disabled:!1,readOnly:!1,stars:5,cancel:!0,style:null,className:null,tooltip:null,tooltipOptions:null,onChange:null}),t.Rating=m,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.utils,primereact.tooltip);