2 lines
2.7 KiB
JavaScript
2 lines
2.7 KiB
JavaScript
import e,{Component as t}from"react";import{classNames as r}from"primereact/utils";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function c(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}function u(e){return u="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},u(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function f(){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 p,y,b,m=function(i){c(h,t);var u,l,p,y,b,m=(u=h,l=f(),function(){var e,t=a(u);if(l){var r=a(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function h(){return n(this,h),m.apply(this,arguments)}return p=h,(y=[{key:"render",value:function(){var t=r("p-progress-spinner",this.props.className);return e.createElement("div",{id:this.props.id,style:this.props.style,className:t,role:"alert","aria-busy":!0},e.createElement("svg",{className:"p-progress-spinner-svg",viewBox:"25 25 50 50",style:{animationDuration:this.props.animationDuration}},e.createElement("circle",{className:"p-progress-spinner-circle",cx:"50",cy:"50",r:"20",fill:this.props.fill,strokeWidth:this.props.strokeWidth,strokeMiterlimit:"10"})))}}])&&o(p.prototype,y),b&&o(p,b),Object.defineProperty(p,"prototype",{writable:!1}),h}();b={id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s"},(y="defaultProps")in(p=m)?Object.defineProperty(p,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[y]=b;export{m as ProgressSpinner};
|