katoikia-app/web-ui/web-react/node_modules/primereact/progressspinner/progressspinner.cjs.min.js

2 lines
2.8 KiB
JavaScript

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