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

2 lines
2.9 KiB
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
this.primereact=this.primereact||{},this.primereact.portal=function(t,e,n,r,o){"use strict";function u(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=u(n),c=u(r);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function p(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&&f(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 y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(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 y(t)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function m(){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 h,v,O,j=function(t){p(y,t);var e,n,r,u,f,s=(e=y,n=m(),function(){var t,r=b(e);if(n){var o=b(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return d(this,t)});function y(t){var e;l(this,y),e=s.call(this,t);var n=t.visible&&o.DomHandler.hasDOM();return e.state={mounted:n},e}return r=y,(u=[{key:"componentDidMount",value:function(){o.DomHandler.hasDOM()&&!this.state.mounted&&this.setState({mounted:!0},this.props.onMounted)}},{key:"componentWillUnmount",value:function(){this.props.onUnmounted&&this.props.onUnmounted()}},{key:"render",value:function(){var t=this.props.element||this.props.children;if(t&&this.state.mounted){var e=this.props.appendTo||c.default.appendTo||document.body;return"self"===e?t:i.default.createPortal(t,e)}return null}}])&&a(r.prototype,u),f&&a(r,f),Object.defineProperty(r,"prototype",{writable:!1}),y}(e.Component);return O={element:null,appendTo:null,visible:!1,onMounted:null,onUnmounted:null},(v="defaultProps")in(h=j)?Object.defineProperty(h,v,{value:O,enumerable:!0,configurable:!0,writable:!0}):h[v]=O,t.Portal=j,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,ReactDOM,primereact.api,primereact.utils);