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

2 lines
4.9 KiB
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),n=require("react-transition-group"),e=require("primereact/api"),o=require("primereact/utils");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(t),s=r(e);function p(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function u(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function c(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,n){return a=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},a(t,n)}function l(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&a(t,n)}function h(t){return h="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},h(t)}function E(t,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function y(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function b(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?y(Object(e),!0).forEach((function(n){p(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):y(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function g(){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}}exports.CSSTransition=function(e){l(O,t.Component);var r,p,a,h,y,x=(r=O,p=g(),function(){var t,n=d(r);if(p){var e=d(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return E(this,t)});function O(t){var n;return u(this,O),(n=x.call(this,t)).onEnter=n.onEnter.bind(f(n)),n.onEntering=n.onEntering.bind(f(n)),n.onEntered=n.onEntered.bind(f(n)),n.onExit=n.onExit.bind(f(n)),n.onExiting=n.onExiting.bind(f(n)),n.onExited=n.onExited.bind(f(n)),n}return a=O,(h=[{key:"disabled",get:function(){return this.props.disabled||this.props.options&&this.props.options.disabled||!s.default.cssTransition}},{key:"onEnter",value:function(t,n){this.props.onEnter&&this.props.onEnter(t,n),this.props.options&&this.props.options.onEnter&&this.props.options.onEnter(t,n)}},{key:"onEntering",value:function(t,n){this.props.onEntering&&this.props.onEntering(t,n),this.props.options&&this.props.options.onEntering&&this.props.options.onEntering(t,n)}},{key:"onEntered",value:function(t,n){this.props.onEntered&&this.props.onEntered(t,n),this.props.options&&this.props.options.onEntered&&this.props.options.onEntered(t,n)}},{key:"onExit",value:function(t){this.props.onExit&&this.props.onExit(t),this.props.options&&this.props.options.onExit&&this.props.options.onExit(t)}},{key:"onExiting",value:function(t){this.props.onExiting&&this.props.onExiting(t),this.props.options&&this.props.options.onExiting&&this.props.options.onExiting(t)}},{key:"onExited",value:function(t){this.props.onExited&&this.props.onExited(t),this.props.options&&this.props.options.onExited&&thi