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