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

2 lines
2.5 KiB
JavaScript

import t,{Component as e}from"react";import{classNames as r,ObjectUtils as o}from"primereact/utils";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 c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(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&&c(t,e)}function u(t){return u="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},u(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(){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,b,m,h=function(c){l(d,e);var u,f,y,b,m,h=(u=d,f=s(),function(){var t,e=a(u);if(f){var r=a(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function d(){return n(this,d),h.apply(this,arguments)}return y=d,(b=[{key:"render",value:function(){var e=r("p-toolbar p-component",this.props.className),n=o.getJSXElement(this.props.left,this.props),i=o.getJSXElement(this.props.right,this.props);return t.createElement("div",{id:this.props.id,className:e,style:this.props.style,role:"toolbar"},t.createElement("div",{className:"p-toolbar-group-left"},n),t.createElement("div",{className:"p-toolbar-group-right"},i))}}])&&i(y.prototype,b),m&&i(y,m),Object.defineProperty(y,"prototype",{writable:!1}),d}();m={id:null,style:null,className:null,left:null,right:null},(b="defaultProps")in(y=h)?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m;export{h as Toolbar};