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

2 lines
3.2 KiB
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
this.primereact=this.primereact||{},this.primereact.divider=function(t,e,r){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=o(e);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}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(t){return!1}}var d,h,b,v=function(t){s(h,t);var e,o,l,a,p,d=(e=h,o=y(),function(){var t,r=f(e);if(o){var n=f(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return u(this,t)});function h(){return i(this,h),d.apply(this,arguments)}return l=h,(a=[{key:"isHorizontal",get:function(){return"horizontal"===this.props.layout}},{key:"isVertical",get:function(){return"vertical"===this.props.layout}},{key:"render",value:function(){var t=r.classNames("p-divider p-component p-divider-".concat(this.props.layout," p-divider-").concat(this.props.type),{"p-divider-left":this.isHorizontal&&(!this.props.align||"left"===this.props.align),"p-divider-right":this.isHorizontal&&"right"===this.props.align,"p-divider-center":this.isHorizontal&&"center"===this.props.align||this.isVertical&&(!this.props.align||"center"===this.props.align),"p-divider-top":this.isVertical&&"top"===this.props.align,"p-divider-bottom":this.isVertical&&"bottom"===this.props.align},this.props.className);return n.default.createElement("div",{className:t,style:this.props.style,role:"separator"},n.default.createElement("div",{className:"p-divider-content"},this.props.children))}}])&&c(l.prototype,a),p&&c(l,p),Object.defineProperty(l,"prototype",{writable:!1}),h}(e.Component);return b={align:null,layout:"horizontal",type:"solid",style:null,className:null},(h="defaultProps")in(d=v)?Object.defineProperty(d,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):d[h]=b,t.Divider=v,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.utils);