text: this.primereact=this.primereact||{},this.primereact.steps=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(t);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?u(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var d,y,b,h=function(e){s(y,e);var t,r,i,c,u,d=(t=y,r=m(),function(){var e,n=f(t);if(r){var l=f(this).constructor;e=Reflect.construct(n,arguments,l)}else e=n.apply(this,arguments);return p(this,e)});function y(){return o(this,y),d.apply(this,arguments)}return i=y,(c=[{key:"itemClick",value:function(e,t,n){this.props.readOnly||t.disabled?e.preventDefault():(this.props.onSelect&&this.props.onSelect({originalEvent:e,item:t,index:n}),t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t,index:n}))}},{key:"renderItem",value:function(e,t){var r=this,o=t===this.props.activeIndex,a=e.disabled||t!==this.props.activeIndex&&this.props.readOnly,i=n.classNames("p-steps-item",e.className,{"p-highlight p-steps-current":o,"p-disabled":a}),s=e.label&&l.default.createElement("span",{className:"p-steps-title"},e.label),c=a?-1:"",u=l.default.createElement("a",{href:e.url||"#",className:"p-menuitem-link",role:"presentation",target:e.target,onClick:function(n){return r.itemClick(n,e,t)},tabIndex:c,"aria-disabled":a},l.default.createElement("span",{className:"p-steps-number"},t+1),s);return e.template&&(u=n.ObjectUtils.getJSXElement(e.template,e,{onClick:function(n){return r.itemClick(n,e,t)},className:"p-menuitem-link",labelClassName:"p-steps-title",numberClassName:"p-steps-number",element:u,props:this.props,tabIndex:c,active:o,disabled:a})),l.default.createElement("li",{key:e.label+"_"+t,className:i,style:e.style,role:"tab","aria-selected":o,"aria-expanded":o},u)}},{key:"renderItems",value:function(){var e=this;if(this.props.model){var t=this.props.model.map((function(t,n){return e.renderItem(t,n)}));return l.default.createElement("ul",{role:"tablist"},t)}return null}},{key:"render",value:function(){var e=n.classNames("p-steps p-component",this.props.className,{"p-readonly":this.props.readOnly}),t=this.renderItems();return l.default.createElement("div",{id:this.props.id,className:e,style:this.props.style},t)}}])&&a(i.prototype,c),u&&a(i,u),y}(t.Component);return b={id:null,model:null,activeIndex:0,readOnly:!0,style:null,className:null,onSelect:null},(y="defaultProps")in(d=h)?Object.defineProperty(d,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):d[y]=b,e.Steps=h,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.core);
  