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

2 lines
2.9 KiB
JavaScript

this.primereact=this.primereact||{},this.primereact.badge=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 u(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 s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(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&&s(e,t)}function a(e){return a="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},a(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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,d,h,g=function(e){c(d,e);var t,n,s,a,p,b=(t=d,n=y(),function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return l(this,e)});function d(){return i(this,d),b.apply(this,arguments)}return s=d,(a=[{key:"render",value:function(){var e=r.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 o.default.createElement("span",{className:e,style:this.props.style},this.props.value)}}])&&u(s.prototype,a),p&&u(s,p),Object.defineProperty(s,"prototype",{writable:!1}),d}(t.Component);return h={value:null,severity:null,size:null,style:null,className:null},(d="defaultProps")in(b=g)?Object.defineProperty(b,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):b[d]=h,e.Badge=g,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);