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

2 lines
3.4 KiB
JavaScript

this.primereact=this.primereact||{},this.primereact.message=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 s(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(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&&c(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 u(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 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 m,h,b,v=function(e){l(h,e);var t,n,c,p,a,m=(t=h,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 u(this,e)});function h(){return i(this,h),m.apply(this,arguments)}return c=h,(p=[{key:"getContent",value:function(){if(this.props.content)return r.ObjectUtils.getJSXElement(this.props.content,this.props);var e=r.ObjectUtils.getJSXElement(this.props.text,this.props),t=r.classNames("p-inline-message-icon pi",{"pi-info-circle":"info"===this.props.severity,"pi-exclamation-triangle":"warn"===this.props.severity,"pi-times-circle":"error"===this.props.severity,"pi-check":"success"===this.props.severity});return o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{className:t}),o.default.createElement("span",{className:"p-inline-message-text"},e))}},{key:"render",value:function(){var e=r.classNames("p-inline-message p-component",{"p-inline-message-info":"info"===this.props.severity,"p-inline-message-warn":"warn"===this.props.severity,"p-inline-message-error":"error"===this.props.severity,"p-inline-message-success":"success"===this.props.severity,"p-inline-message-icon-only":!this.props.text},this.props.className),t=this.getContent();return o.default.createElement("div",{id:this.props.id,"aria-live":"polite",className:e,style:this.props.style,role:"alert"},t)}}])&&s(c.prototype,p),a&&s(c,a),Object.defineProperty(c,"prototype",{writable:!1}),h}(t.Component);return b={id:null,className:null,style:null,text:null,severity:"info",content:null},(h="defaultProps")in(m=v)?Object.defineProperty(m,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[h]=b,e.Message=v,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);