katoikia-app/web-ui/web-react/node_modules/primereact/badge/badge.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 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 p(e){return p="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},p(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){if(t&&("object"===p(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 l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(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 y,b,d,h=function(r){s(h,e.Component);var u,p,a,y,b,d=(u=h,p=f(),function(){var e,t=l(u);if(p){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function h(){return o(this,h),d.apply(this,arguments)}return a=h,(y=[{key:"render",value:function(){var e=t.classNames("p-badge p-component",{"p-badge-no-gutter":this.props.value&&1===String(this.props.value).length,"p-badge-dot":!this.props.value,"p-badge-lg":"large"===this.props.size,"p-badge-xl":"xlarge"===this.props.size,"p-badge-info":"info"===this.props.severity,"p-badge-success":"success"===this.props.severity,"p-badge-warning":"warning"===this.props.severity,"p-badge-danger":"danger"===this.props.severity},this.props.className);return n.default.createElement("span",{className:e,style:this.props.style},this.props.value)}}])&&i(a.prototype,y),b&&i(a,b),Object.defineProperty(a,"prototype",{writable:!1}),h}();d={value:null,severity:null,size:null,style:null,className:null},(b="defaultProps")in(y=h)?Object.defineProperty(y,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):y[b]=d,exports.Badge=h;