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

2 lines
3.1 KiB
JavaScript

import e,{Component as t}from"react";import{ObjectUtils as r,classNames as n}from"primereact/utils";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 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 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 p(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"===s(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 a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(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,d,h,m=function(c){l(b,t);var s,p,y,d,h,m=(s=b,p=f(),function(){var e,t=a(s);if(p){var r=a(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function b(){return o(this,b),m.apply(this,arguments)}return y=b,(d=[{key:"renderHeader",value:function(){return this.props.header?e.createElement("div",{className:"p-card-header"},r.getJSXElement(this.props.header,this.props)):null}},{key:"renderBody",value:function(){var t=this.props.title&&e.createElement("div",{className:"p-card-title"},r.getJSXElement(this.props.title,this.props)),n=this.props.subTitle&&e.createElement("div",{className:"p-card-subtitle"},r.getJSXElement(this.props.subTitle,this.props)),o=this.props.children&&e.createElement("div",{className:"p-card-content"},this.props.children),i=this.props.footer&&e.createElement("div",{className:"p-card-footer"},r.getJSXElement(this.props.footer,this.props));return e.createElement("div",{className:"p-card-body"},t,n,o,i)}},{key:"render",value:function(){var t=this.renderHeader(),r=this.renderBody(),o=n("p-card p-component",this.props.className);return e.createElement("div",{className:o,style:this.props.style,id:this.props.id},t,r)}}])&&i(y.prototype,d),h&&i(y,h),Object.defineProperty(y,"prototype",{writable:!1}),b}();h={id:null,header:null,footer:null,title:null,subTitle:null,style:null,className:null},(d="defaultProps")in(y=m)?Object.defineProperty(y,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[d]=h;export{m as Card};