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

2 lines
3.1 KiB
JavaScript

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("primereact/utils");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(t);function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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 c(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 s(t){return s="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},s(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){if(e&&("object"===s(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 u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}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(t){return!1}}var y,d,h,b=function(r){c(b,t.Component);var l,s,p,y,d,h=(l=b,s=f(),function(){var t,e=u(l);if(s){var r=u(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return a(this,t)});function b(){return n(this,b),h.apply(this,arguments)}return p=b,(y=[{key:"isHorizontal",get:function(){return"horizontal"===this.props.layout}},{key:"isVertical",get:function(){return"vertical"===this.props.layout}},{key:"render",value:function(){var t=e.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 o.default.createElement("div",{className:t,style:this.props.style,role:"separator"},o.default.createElement("div",{className:"p-divider-content"},this.props.children))}}])&&i(p.prototype,y),d&&i(p,d),Object.defineProperty(p,"prototype",{writable:!1}),b}();h={align:null,layout:"horizontal",type:"solid",style:null,className:null},(d="defaultProps")in(y=b)?Object.defineProperty(y,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[d]=h,exports.Divider=b;