katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/c4f323f4d3900b27925925e9e4b...

1 line
68 KiB
JSON

{"ast":null,"code":"import React, { Component } from 'react';\nimport { Button } from 'primereact/button';\nimport { classNames, ObjectUtils, ZIndexUtils, DomHandler, ConnectedOverlayScrollHandler, UniqueComponentId } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\nimport { tip } from 'primereact/tooltip';\nimport { OverlayService } from 'primereact/overlayservice';\nimport PrimeReact from 'primereact/api';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper$2(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$2();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$2() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar SplitButtonItem = /*#__PURE__*/function (_Component) {\n _inherits(SplitButtonItem, _Component);\n\n var _super = _createSuper$2(SplitButtonItem);\n\n function SplitButtonItem(props) {\n var _this;\n\n _classCallCheck(this, SplitButtonItem);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(SplitButtonItem, [{\n key: \"onClick\",\n value: function onClick(e) {\n if (this.props.menuitem.command) {\n this.props.menuitem.command({\n originalEvent: e,\n item: this.props.menuitem\n });\n }\n\n if (this.props.onItemClick) {\n this.props.onItemClick(e);\n }\n\n e.preventDefault();\n }\n }, {\n key: \"renderSeparator\",\n value: function renderSeparator() {\n return /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-menu-separator\",\n role: \"separator\"\n });\n }\n }, {\n key: \"renderMenuitem\",\n value: function renderMenuitem() {\n var _this2 = this;\n\n var _this$props$menuitem = this.props.menuitem,\n disabled = _this$props$menuitem.disabled,\n icon = _this$props$menuitem.icon,\n label = _this$props$menuitem.label,\n template = _this$props$menuitem.template,\n url = _this$props$menuitem.url,\n target = _this$props$menuitem.target;\n var className = classNames('p-menuitem-link', {\n 'p-disabled': disabled\n });\n var iconClassName = classNames('p-menuitem-icon', icon);\n icon = icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n label = label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, label);\n var content = /*#__PURE__*/React.createElement(\"a\", {\n href: url || '#',\n role: \"menuitem\",\n className: className,\n target: target,\n onClick: this.onClick\n }, icon, label);\n\n if (template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this2.onClick(event);\n },\n className: className,\n labelClassName: 'p-menuitem-text',\n iconClassName: iconClassName,\n element: content,\n props: this.props\n };\n content = ObjectUtils.getJSXElement(template, this.props.menuitem, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-menuitem\",\n role: \"none\"\n }, content);\n }\n }, {\n key: \"renderItem\",\n value: function renderItem() {\n if (this.props.menuitem.separator) {\n return this.renderSeparator();\n }\n\n return this.renderMenuitem();\n }\n }, {\n key: \"render\",\n value: function render() {\n var item = this.renderItem();\n return item;\n }\n }]);\n\n return SplitButtonItem;\n}(Component);\n\n_defineProperty(SplitButtonItem, \"defaultProps\", {\n menuitem: null,\n onItemClick: null\n});\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _createSuper$1(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$1();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$1() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar SplitButtonPanelComponent = /*#__PURE__*/function (_Component) {\n _inherits(SplitButtonPanelComponent, _Component);\n\n var _super = _createSuper$1(SplitButtonPanelComponent);\n\n function SplitButtonPanelComponent() {\n _classCallCheck(this, SplitButtonPanelComponent);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(SplitButtonPanelComponent, [{\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-menu p-menu-overlay p-component', this.props.menuClassName);\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.props.forwardRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.props[\"in\"],\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.props.onEnter,\n onEntered: this.props.onEntered,\n onExit: this.props.onExit,\n onExited: this.props.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.props.forwardRef,\n className: className,\n style: this.props.menuStyle,\n id: this.props.id,\n onClick: this.onClick\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-menu-list p-reset\",\n role: \"menu\"\n }, this.props.children)));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo\n });\n }\n }]);\n\n return SplitButtonPanelComponent;\n}(Component);\n\n_defineProperty(SplitButtonPanelComponent, \"defaultProps\", {\n appendTo: null,\n menuStyle: null,\n menuClassName: null,\n id: null,\n onClick: null\n});\n\nvar SplitButtonPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SplitButtonPanelComponent, _extends({\n forwardRef: ref\n }, props));\n});\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar SplitButton = /*#__PURE__*/function (_Component) {\n _inherits(SplitButton, _Component);\n\n var _super = _createSuper(SplitButton);\n\n function SplitButton(props) {\n var _this;\n\n _classCallCheck(this, SplitButton);\n\n _this = _super.call(this, props);\n _this.state = {\n id: props.id,\n overlayVisible: false\n };\n _this.onDropdownButtonClick = _this.onDropdownButtonClick.bind(_assertThisInitialized(_this));\n _this.onItemClick = _this.onItemClick.bind(_assertThisInitialized(_this));\n _this.onOverlayEnter = _this.onOverlayEnter.bind(_assertThisInitialized(_this));\n _this.onOverlayEntered = _this.onOverlayEntered.bind(_assertThisInitialized(_this));\n _this.onOverlayExit = _this.onOverlayExit.bind(_assertThisInitialized(_this));\n _this.onOverlayExited = _this.onOverlayExited.bind(_assertThisInitialized(_this));\n _this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(SplitButton, [{\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.container\n });\n }\n }, {\n key: \"onDropdownButtonClick\",\n value: function onDropdownButtonClick() {\n if (this.state.overlayVisible) this.hide();else this.show();\n }\n }, {\n key: \"onItemClick\",\n value: function onItemClick() {\n this.hide();\n }\n }, {\n key: \"show\",\n value: function show() {\n this.setState({\n overlayVisible: true\n });\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.setState({\n overlayVisible: false\n });\n }\n }, {\n key: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.alignOverlay();\n }\n }, {\n key: \"onOverlayEntered\",\n value: function onOverlayEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onOverlayExit\",\n value: function onOverlayExit() {\n this.unbindDocumentClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onOverlayExited\",\n value: function onOverlayExited() {\n ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"alignOverlay\",\n value: function alignOverlay() {\n DomHandler.alignOverlay(this.overlayRef.current, this.defaultButton.parentElement, this.props.appendTo || PrimeReact.appendTo);\n }\n }, {\n key: \"bindDocumentClickListener\",\n value: function bindDocumentClickListener() {\n var _this2 = this;\n\n if (!this.documentClickListener) {\n this.documentClickListener = function (event) {\n if (_this2.state.overlayVisible && _this2.isOutsideClicked(event)) {\n _this2.hide();\n }\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this3 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.container, function () {\n if (_this3.state.overlayVisible) {\n _this3.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this4 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.state.overlayVisible && !DomHandler.isTouchDevice()) {\n _this4.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(event) {\n return this.container && this.overlayRef && this.overlayRef.current && !this.overlayRef.current.contains(event.target);\n }\n }, {\n key: \"unbindDocumentClickListener\",\n value: function unbindDocumentClickListener() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.container,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var _this5 = this;\n\n if (this.props.model) {\n return this.props.model.map(function (menuitem, index) {\n return /*#__PURE__*/React.createElement(SplitButtonItem, {\n menuitem: menuitem,\n key: index,\n onItemClick: _this5.onItemClick\n });\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var className = classNames('p-splitbutton p-component', this.props.className, {\n 'p-disabled': this.props.disabled\n });\n var buttonClassName = classNames('p-splitbutton-defaultbutton', this.props.buttonClassName);\n var menuButtonClassName = classNames('p-splitbutton-menubutton', this.props.menuButtonClassName);\n var items = this.renderItems();\n var buttonContent = this.props.buttonTemplate ? ObjectUtils.getJSXElement(this.props.buttonTemplate, this.props) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.state.id,\n className: className,\n style: this.props.style,\n ref: function ref(el) {\n return _this6.container = el;\n }\n }, /*#__PURE__*/React.createElement(Button, {\n ref: function ref(el) {\n return _this6.defaultButton = el;\n },\n type: \"button\",\n className: buttonClassName,\n icon: this.props.icon,\n label: this.props.label,\n onClick: this.props.onClick,\n disabled: this.props.disabled,\n tabIndex: this.props.tabIndex\n }, buttonContent), /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n className: menuButtonClassName,\n icon: this.props.dropdownIcon,\n onClick: this.onDropdownButtonClick,\n disabled: this.props.disabled,\n \"aria-expanded\": this.state.overlayVisible,\n \"aria-haspopup\": true,\n \"aria-owns\": this.state.id + '_overlay'\n }), /*#__PURE__*/React.createElement(SplitButtonPanel, {\n ref: this.overlayRef,\n appendTo: this.props.appendTo,\n id: this.state.id + '_overlay',\n menuStyle: this.props.menuStyle,\n menuClassName: this.props.menuClassName,\n onClick: this.onPanelClick,\n \"in\": this.state.overlayVisible,\n onEnter: this.onOverlayEnter,\n onEntered: this.onOverlayEntered,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited,\n transitionOptions: this.props.transitionOptions\n }, items));\n }\n }]);\n\n return SplitButton;\n}(Component);\n\n_defineProperty(SplitButton, \"defaultProps\", {\n id: null,\n label: null,\n icon: null,\n model: null,\n disabled: null,\n style: null,\n className: null,\n buttonClassName: null,\n menuStyle: null,\n menuClassName: null,\n menuButtonClassName: null,\n tabIndex: null,\n appendTo: null,\n tooltip: null,\n tooltipOptions: null,\n buttonTemplate: null,\n transitionOptions: null,\n dropdownIcon: 'pi pi-chevron-down',\n onClick: null,\n onShow: null,\n onHide: null\n});\n\nexport { SplitButton };","map":{"version":3,"names":["React","Component","Button","classNames","ObjectUtils","ZIndexUtils","DomHandler","ConnectedOverlayScrollHandler","UniqueComponentId","CSSTransition","Portal","tip","OverlayService","PrimeReact","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper$2","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$2","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","SplitButtonItem","_Component","_super","_this","onClick","bind","menuitem","command","originalEvent","item","onItemClick","preventDefault","renderSeparator","createElement","className","role","renderMenuitem","_this2","_this$props$menuitem","disabled","icon","label","template","url","iconClassName","content","href","defaultContentOptions","event","labelClassName","element","getJSXElement","renderItem","separator","render","_extends","assign","source","hasOwnProperty","_createSuper$1","_isNativeReflectConstruct$1","SplitButtonPanelComponent","renderElement","menuClassName","nodeRef","forwardRef","timeout","enter","exit","options","transitionOptions","unmountOnExit","onEnter","onEntered","onExit","onExited","ref","style","menuStyle","id","children","appendTo","SplitButtonPanel","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","_objectSpread","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","_isNativeReflectConstruct","SplitButton","state","overlayVisible","onDropdownButtonClick","onOverlayEnter","onOverlayEntered","onOverlayExit","onOverlayExited","onPanelClick","overlayRef","createRef","emit","container","hide","show","setState","set","current","autoZIndex","zIndex","alignOverlay","bindDocumentClickListener","bindScrollListener","bindResizeListener","onShow","unbindDocumentClickListener","unbindScrollListener","unbindResizeListener","clear","onHide","defaultButton","parentElement","documentClickListener","isOutsideClicked","document","addEventListener","_this3","scrollHandler","_this4","resizeListener","isTouchDevice","window","removeEventListener","contains","componentDidMount","tooltip","renderTooltip","componentDidUpdate","prevProps","tooltipOptions","update","componentWillUnmount","destroy","renderItems","_this5","model","map","index","_this6","buttonClassName","menuButtonClassName","items","buttonContent","buttonTemplate","el","type","tabIndex","dropdownIcon"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/splitbutton/splitbutton.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { Button } from 'primereact/button';\nimport { classNames, ObjectUtils, ZIndexUtils, DomHandler, ConnectedOverlayScrollHandler, UniqueComponentId } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\nimport { tip } from 'primereact/tooltip';\nimport { OverlayService } from 'primereact/overlayservice';\nimport PrimeReact from 'primereact/api';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$2() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar SplitButtonItem = /*#__PURE__*/function (_Component) {\n _inherits(SplitButtonItem, _Component);\n\n var _super = _createSuper$2(SplitButtonItem);\n\n function SplitButtonItem(props) {\n var _this;\n\n _classCallCheck(this, SplitButtonItem);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(SplitButtonItem, [{\n key: \"onClick\",\n value: function onClick(e) {\n if (this.props.menuitem.command) {\n this.props.menuitem.command({\n originalEvent: e,\n item: this.props.menuitem\n });\n }\n\n if (this.props.onItemClick) {\n this.props.onItemClick(e);\n }\n\n e.preventDefault();\n }\n }, {\n key: \"renderSeparator\",\n value: function renderSeparator() {\n return /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-menu-separator\",\n role: \"separator\"\n });\n }\n }, {\n key: \"renderMenuitem\",\n value: function renderMenuitem() {\n var _this2 = this;\n\n var _this$props$menuitem = this.props.menuitem,\n disabled = _this$props$menuitem.disabled,\n icon = _this$props$menuitem.icon,\n label = _this$props$menuitem.label,\n template = _this$props$menuitem.template,\n url = _this$props$menuitem.url,\n target = _this$props$menuitem.target;\n var className = classNames('p-menuitem-link', {\n 'p-disabled': disabled\n });\n var iconClassName = classNames('p-menuitem-icon', icon);\n icon = icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n label = label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, label);\n var content = /*#__PURE__*/React.createElement(\"a\", {\n href: url || '#',\n role: \"menuitem\",\n className: className,\n target: target,\n onClick: this.onClick\n }, icon, label);\n\n if (template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this2.onClick(event);\n },\n className: className,\n labelClassName: 'p-menuitem-text',\n iconClassName: iconClassName,\n element: content,\n props: this.props\n };\n content = ObjectUtils.getJSXElement(template, this.props.menuitem, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-menuitem\",\n role: \"none\"\n }, content);\n }\n }, {\n key: \"renderItem\",\n value: function renderItem() {\n if (this.props.menuitem.separator) {\n return this.renderSeparator();\n }\n\n return this.renderMenuitem();\n }\n }, {\n key: \"render\",\n value: function render() {\n var item = this.renderItem();\n return item;\n }\n }]);\n\n return SplitButtonItem;\n}(Component);\n\n_defineProperty(SplitButtonItem, \"defaultProps\", {\n menuitem: null,\n onItemClick: null\n});\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$1() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nvar SplitButtonPanelComponent = /*#__PURE__*/function (_Component) {\n _inherits(SplitButtonPanelComponent, _Component);\n\n var _super = _createSuper$1(SplitButtonPanelComponent);\n\n function SplitButtonPanelComponent() {\n _classCallCheck(this, SplitButtonPanelComponent);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(SplitButtonPanelComponent, [{\n key: \"renderElement\",\n value: function renderElement() {\n var className = classNames('p-menu p-menu-overlay p-component', this.props.menuClassName);\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.props.forwardRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.props[\"in\"],\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.props.onEnter,\n onEntered: this.props.onEntered,\n onExit: this.props.onExit,\n onExited: this.props.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.props.forwardRef,\n className: className,\n style: this.props.menuStyle,\n id: this.props.id,\n onClick: this.onClick\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-menu-list p-reset\",\n role: \"menu\"\n }, this.props.children)));\n }\n }, {\n key: \"render\",\n value: function render() {\n var element = this.renderElement();\n return /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: this.props.appendTo\n });\n }\n }]);\n\n return SplitButtonPanelComponent;\n}(Component);\n\n_defineProperty(SplitButtonPanelComponent, \"defaultProps\", {\n appendTo: null,\n menuStyle: null,\n menuClassName: null,\n id: null,\n onClick: null\n});\n\nvar SplitButtonPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SplitButtonPanelComponent, _extends({\n forwardRef: ref\n }, props));\n});\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar SplitButton = /*#__PURE__*/function (_Component) {\n _inherits(SplitButton, _Component);\n\n var _super = _createSuper(SplitButton);\n\n function SplitButton(props) {\n var _this;\n\n _classCallCheck(this, SplitButton);\n\n _this = _super.call(this, props);\n _this.state = {\n id: props.id,\n overlayVisible: false\n };\n _this.onDropdownButtonClick = _this.onDropdownButtonClick.bind(_assertThisInitialized(_this));\n _this.onItemClick = _this.onItemClick.bind(_assertThisInitialized(_this));\n _this.onOverlayEnter = _this.onOverlayEnter.bind(_assertThisInitialized(_this));\n _this.onOverlayEntered = _this.onOverlayEntered.bind(_assertThisInitialized(_this));\n _this.onOverlayExit = _this.onOverlayExit.bind(_assertThisInitialized(_this));\n _this.onOverlayExited = _this.onOverlayExited.bind(_assertThisInitialized(_this));\n _this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(SplitButton, [{\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.container\n });\n }\n }, {\n key: \"onDropdownButtonClick\",\n value: function onDropdownButtonClick() {\n if (this.state.overlayVisible) this.hide();else this.show();\n }\n }, {\n key: \"onItemClick\",\n value: function onItemClick() {\n this.hide();\n }\n }, {\n key: \"show\",\n value: function show() {\n this.setState({\n overlayVisible: true\n });\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.setState({\n overlayVisible: false\n });\n }\n }, {\n key: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.alignOverlay();\n }\n }, {\n key: \"onOverlayEntered\",\n value: function onOverlayEntered() {\n this.bindDocumentClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onOverlayExit\",\n value: function onOverlayExit() {\n this.unbindDocumentClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onOverlayExited\",\n value: function onOverlayExited() {\n ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"alignOverlay\",\n value: function alignOverlay() {\n DomHandler.alignOverlay(this.overlayRef.current, this.defaultButton.parentElement, this.props.appendTo || PrimeReact.appendTo);\n }\n }, {\n key: \"bindDocumentClickListener\",\n value: function bindDocumentClickListener() {\n var _this2 = this;\n\n if (!this.documentClickListener) {\n this.documentClickListener = function (event) {\n if (_this2.state.overlayVisible && _this2.isOutsideClicked(event)) {\n _this2.hide();\n }\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this3 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.container, function () {\n if (_this3.state.overlayVisible) {\n _this3.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this4 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.state.overlayVisible && !DomHandler.isTouchDevice()) {\n _this4.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(event) {\n return this.container && this.overlayRef && this.overlayRef.current && !this.overlayRef.current.contains(event.target);\n }\n }, {\n key: \"unbindDocumentClickListener\",\n value: function unbindDocumentClickListener() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.container,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var _this5 = this;\n\n if (this.props.model) {\n return this.props.model.map(function (menuitem, index) {\n return /*#__PURE__*/React.createElement(SplitButtonItem, {\n menuitem: menuitem,\n key: index,\n onItemClick: _this5.onItemClick\n });\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var className = classNames('p-splitbutton p-component', this.props.className, {\n 'p-disabled': this.props.disabled\n });\n var buttonClassName = classNames('p-splitbutton-defaultbutton', this.props.buttonClassName);\n var menuButtonClassName = classNames('p-splitbutton-menubutton', this.props.menuButtonClassName);\n var items = this.renderItems();\n var buttonContent = this.props.buttonTemplate ? ObjectUtils.getJSXElement(this.props.buttonTemplate, this.props) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.state.id,\n className: className,\n style: this.props.style,\n ref: function ref(el) {\n return _this6.container = el;\n }\n }, /*#__PURE__*/React.createElement(Button, {\n ref: function ref(el) {\n return _this6.defaultButton = el;\n },\n type: \"button\",\n className: buttonClassName,\n icon: this.props.icon,\n label: this.props.label,\n onClick: this.props.onClick,\n disabled: this.props.disabled,\n tabIndex: this.props.tabIndex\n }, buttonContent), /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n className: menuButtonClassName,\n icon: this.props.dropdownIcon,\n onClick: this.onDropdownButtonClick,\n disabled: this.props.disabled,\n \"aria-expanded\": this.state.overlayVisible,\n \"aria-haspopup\": true,\n \"aria-owns\": this.state.id + '_overlay'\n }), /*#__PURE__*/React.createElement(SplitButtonPanel, {\n ref: this.overlayRef,\n appendTo: this.props.appendTo,\n id: this.state.id + '_overlay',\n menuStyle: this.props.menuStyle,\n menuClassName: this.props.menuClassName,\n onClick: this.onPanelClick,\n \"in\": this.state.overlayVisible,\n onEnter: this.onOverlayEnter,\n onEntered: this.onOverlayEntered,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited,\n transitionOptions: this.props.transitionOptions\n }, items));\n }\n }]);\n\n return SplitButton;\n}(Component);\n\n_defineProperty(SplitButton, \"defaultProps\", {\n id: null,\n label: null,\n icon: null,\n model: null,\n disabled: null,\n style: null,\n className: null,\n buttonClassName: null,\n menuStyle: null,\n menuClassName: null,\n menuButtonClassName: null,\n tabIndex: null,\n appendTo: null,\n tooltip: null,\n tooltipOptions: null,\n buttonTemplate: null,\n transitionOptions: null,\n dropdownIcon: 'pi pi-chevron-down',\n onClick: null,\n onShow: null,\n onHide: null\n});\n\nexport { SplitButton };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,WAAlC,EAA+CC,UAA/C,EAA2DC,6BAA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