1 line
43 KiB
JSON
1 line
43 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { UniqueComponentId, classNames, ObjectUtils, IconUtils } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\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 _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\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 _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 _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 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 AccordionTab = /*#__PURE__*/function (_Component) {\n _inherits(AccordionTab, _Component);\n\n var _super = _createSuper(AccordionTab);\n\n function AccordionTab() {\n _classCallCheck(this, AccordionTab);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(AccordionTab);\n}(Component);\n\n_defineProperty(AccordionTab, \"defaultProps\", {\n header: null,\n disabled: false,\n style: null,\n className: null,\n headerStyle: null,\n headerClassName: null,\n headerTemplate: null,\n contentStyle: null,\n contentClassName: null\n});\n\nvar Accordion = /*#__PURE__*/function (_Component2) {\n _inherits(Accordion, _Component2);\n\n var _super2 = _createSuper(Accordion);\n\n function Accordion(props) {\n var _this;\n\n _classCallCheck(this, Accordion);\n\n _this = _super2.call(this, props);\n var state = {\n id: _this.props.id\n };\n\n if (!_this.props.onTabChange) {\n state = _objectSpread(_objectSpread({}, state), {}, {\n activeIndex: props.activeIndex\n });\n }\n\n _this.state = state;\n return _this;\n }\n\n _createClass(Accordion, [{\n key: \"shouldTabRender\",\n value: function shouldTabRender(tab) {\n return tab && tab.type === AccordionTab;\n }\n }, {\n key: \"onTabHeaderClick\",\n value: function onTabHeaderClick(event, tab, index) {\n if (!tab.props.disabled) {\n var selected = this.isSelected(index);\n var newActiveIndex = null;\n\n if (this.props.multiple) {\n var indexes = (this.props.onTabChange ? this.props.activeIndex : this.state.activeIndex) || [];\n if (selected) indexes = indexes.filter(function (i) {\n return i !== index;\n });else indexes = [].concat(_toConsumableArray(indexes), [index]);\n newActiveIndex = indexes;\n } else {\n newActiveIndex = selected ? null : index;\n }\n\n var callback = selected ? this.props.onTabClose : this.props.onTabOpen;\n\n if (callback) {\n callback({\n originalEvent: event,\n index: index\n });\n }\n\n if (this.props.onTabChange) {\n this.props.onTabChange({\n originalEvent: event,\n index: newActiveIndex\n });\n } else {\n this.setState({\n activeIndex: newActiveIndex\n });\n }\n }\n\n event.preventDefault();\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(index) {\n var activeIndex = this.props.onTabChange ? this.props.activeIndex : this.state.activeIndex;\n return this.props.multiple ? activeIndex && activeIndex.indexOf(index) >= 0 : activeIndex === index;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n }\n }, {\n key: \"renderTabHeader\",\n value: function renderTabHeader(tab, selected, index) {\n var _this2 = this;\n\n var style = _objectSpread(_objectSpread({}, tab.props.headerStyle || {}), tab.props.style || {});\n\n var className = classNames('p-accordion-header', {\n 'p-highlight': selected,\n 'p-disabled': tab.props.disabled\n }, tab.props.headerClassName, tab.props.className);\n var id = this.state.id + '_header_' + index;\n var ariaControls = this.state.id + '_content_' + index;\n var tabIndex = tab.props.disabled ? -1 : null;\n var header = tab.props.headerTemplate ? ObjectUtils.getJSXElement(tab.props.headerTemplate, tab.props) : /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-accordion-header-text\"\n }, tab.props.header);\n var icon = selected ? this.props.collapseIcon : this.props.expandIcon;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: style\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: '#' + ariaControls,\n id: id,\n className: \"p-accordion-header-link\",\n \"aria-controls\": ariaControls,\n role: \"tab\",\n \"aria-expanded\": selected,\n onClick: function onClick(event) {\n return _this2.onTabHeaderClick(event, tab, index);\n },\n tabIndex: tabIndex\n }, IconUtils.getJSXIcon(icon, {\n className: 'p-accordion-toggle-icon'\n }, {\n props: this.props,\n selected: selected\n }), header));\n }\n }, {\n key: \"renderTabContent\",\n value: function renderTabContent(tab, selected, index) {\n var style = _objectSpread(_objectSpread({}, tab.props.contentStyle || {}), tab.props.style || {});\n\n var className = classNames('p-toggleable-content', tab.props.contentClassName, tab.props.className);\n var id = this.state.id + '_content_' + index;\n var toggleableContentRef = /*#__PURE__*/React.createRef();\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: toggleableContentRef,\n classNames: \"p-toggleable-content\",\n timeout: {\n enter: 1000,\n exit: 450\n },\n \"in\": selected,\n unmountOnExit: true,\n options: this.props.transitionOptions\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: toggleableContentRef,\n id: id,\n className: className,\n style: style,\n role: \"region\",\n \"aria-labelledby\": this.state.id + '_header_' + index\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-accordion-content\"\n }, tab.props.children)));\n }\n }, {\n key: \"renderTab\",\n value: function renderTab(tab, index) {\n var selected = this.isSelected(index);\n var tabHeader = this.renderTabHeader(tab, selected, index);\n var tabContent = this.renderTabContent(tab, selected, index);\n var tabClassName = classNames('p-accordion-tab', {\n 'p-accordion-tab-active': selected\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n key: tab.props.header,\n className: tabClassName\n }, tabHeader, tabContent);\n }\n }, {\n key: \"renderTabs\",\n value: function renderTabs() {\n var _this3 = this;\n\n return React.Children.map(this.props.children, function (tab, index) {\n if (_this3.shouldTabRender(tab)) {\n return _this3.renderTab(tab, index);\n }\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var className = classNames('p-accordion p-component', this.props.className);\n var tabs = this.renderTabs();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this4.container = el;\n },\n id: this.state.id,\n className: className,\n style: this.props.style\n }, tabs);\n }\n }]);\n\n return Accordion;\n}(Component);\n\n_defineProperty(Accordion, \"defaultProps\", {\n id: null,\n activeIndex: null,\n className: null,\n style: null,\n multiple: false,\n expandIcon: 'pi pi-chevron-right',\n collapseIcon: 'pi pi-chevron-down',\n transitionOptions: null,\n onTabOpen: null,\n onTabClose: null,\n onTabChange: null\n});\n\nexport { Accordion, AccordionTab };","map":{"version":3,"names":["React","Component","UniqueComponentId","classNames","ObjectUtils","IconUtils","CSSTransition","_arrayLikeToArray","arr","len","length","i","arr2","Array","_arrayWithoutHoles","isArray","_iterableToArray","iter","Symbol","iterator","from","_unsupportedIterableToArray","o","minLen","n","Object","prototype","toString","call","slice","constructor","name","test","_nonIterableSpread","TypeError","_toConsumableArray","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","_createClass","Constructor","protoProps","staticProps","_classCallCheck","instance","_setPrototypeOf","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","value","_typeof","obj","_assertThisInitialized","self","ReferenceError","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","apply","_objectSpread","arguments","source","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","AccordionTab","_Component","_super","header","disabled","style","className","headerStyle","headerClassName","headerTemplate","contentStyle","contentClassName","Accordion","_Component2","_super2","_this","state","id","onTabChange","activeIndex","shouldTabRender","tab","type","onTabHeaderClick","event","index","selected","isSelected","newActiveIndex","multiple","indexes","concat","callback","onTabClose","onTabOpen","originalEvent","setState","preventDefault","indexOf","componentDidMount","renderTabHeader","_this2","ariaControls","tabIndex","getJSXElement","createElement","icon","collapseIcon","expandIcon","href","role","onClick","getJSXIcon","renderTabContent","toggleableContentRef","createRef","nodeRef","timeout","enter","exit","unmountOnExit","options","transitionOptions","ref","children","renderTab","tabHeader","tabContent","tabClassName","renderTabs","_this3","Children","map","render","_this4","tabs","el","container"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/accordion/accordion.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { UniqueComponentId, classNames, ObjectUtils, IconUtils } from 'primereact/utils';\nimport { CSSTransition } from 'primereact/csstransition';\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\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 _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\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 _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 _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 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 AccordionTab = /*#__PURE__*/function (_Component) {\n _inherits(AccordionTab, _Component);\n\n var _super = _createSuper(AccordionTab);\n\n function AccordionTab() {\n _classCallCheck(this, AccordionTab);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(AccordionTab);\n}(Component);\n\n_defineProperty(AccordionTab, \"defaultProps\", {\n header: null,\n disabled: false,\n style: null,\n className: null,\n headerStyle: null,\n headerClassName: null,\n headerTemplate: null,\n contentStyle: null,\n contentClassName: null\n});\n\nvar Accordion = /*#__PURE__*/function (_Component2) {\n _inherits(Accordion, _Component2);\n\n var _super2 = _createSuper(Accordion);\n\n function Accordion(props) {\n var _this;\n\n _classCallCheck(this, Accordion);\n\n _this = _super2.call(this, props);\n var state = {\n id: _this.props.id\n };\n\n if (!_this.props.onTabChange) {\n state = _objectSpread(_objectSpread({}, state), {}, {\n activeIndex: props.activeIndex\n });\n }\n\n _this.state = state;\n return _this;\n }\n\n _createClass(Accordion, [{\n key: \"shouldTabRender\",\n value: function shouldTabRender(tab) {\n return tab && tab.type === AccordionTab;\n }\n }, {\n key: \"onTabHeaderClick\",\n value: function onTabHeaderClick(event, tab, index) {\n if (!tab.props.disabled) {\n var selected = this.isSelected(index);\n var newActiveIndex = null;\n\n if (this.props.multiple) {\n var indexes = (this.props.onTabChange ? this.props.activeIndex : this.state.activeIndex) || [];\n if (selected) indexes = indexes.filter(function (i) {\n return i !== index;\n });else indexes = [].concat(_toConsumableArray(indexes), [index]);\n newActiveIndex = indexes;\n } else {\n newActiveIndex = selected ? null : index;\n }\n\n var callback = selected ? this.props.onTabClose : this.props.onTabOpen;\n\n if (callback) {\n callback({\n originalEvent: event,\n index: index\n });\n }\n\n if (this.props.onTabChange) {\n this.props.onTabChange({\n originalEvent: event,\n index: newActiveIndex\n });\n } else {\n this.setState({\n activeIndex: newActiveIndex\n });\n }\n }\n\n event.preventDefault();\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(index) {\n var activeIndex = this.props.onTabChange ? this.props.activeIndex : this.state.activeIndex;\n return this.props.multiple ? activeIndex && activeIndex.indexOf(index) >= 0 : activeIndex === index;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n }\n }, {\n key: \"renderTabHeader\",\n value: function renderTabHeader(tab, selected, index) {\n var _this2 = this;\n\n var style = _objectSpread(_objectSpread({}, tab.props.headerStyle || {}), tab.props.style || {});\n\n var className = classNames('p-accordion-header', {\n 'p-highlight': selected,\n 'p-disabled': tab.props.disabled\n }, tab.props.headerClassName, tab.props.className);\n var id = this.state.id + '_header_' + index;\n var ariaControls = this.state.id + '_content_' + index;\n var tabIndex = tab.props.disabled ? -1 : null;\n var header = tab.props.headerTemplate ? ObjectUtils.getJSXElement(tab.props.headerTemplate, tab.props) : /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-accordion-header-text\"\n }, tab.props.header);\n var icon = selected ? this.props.collapseIcon : this.props.expandIcon;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: style\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: '#' + ariaControls,\n id: id,\n className: \"p-accordion-header-link\",\n \"aria-controls\": ariaControls,\n role: \"tab\",\n \"aria-expanded\": selected,\n onClick: function onClick(event) {\n return _this2.onTabHeaderClick(event, tab, index);\n },\n tabIndex: tabIndex\n }, IconUtils.getJSXIcon(icon, {\n className: 'p-accordion-toggle-icon'\n }, {\n props: this.props,\n selected: selected\n }), header));\n }\n }, {\n key: \"renderTabContent\",\n value: function renderTabContent(tab, selected, index) {\n var style = _objectSpread(_objectSpread({}, tab.props.contentStyle || {}), tab.props.style || {});\n\n var className = classNames('p-toggleable-content', tab.props.contentClassName, tab.props.className);\n var id = this.state.id + '_content_' + index;\n var toggleableContentRef = /*#__PURE__*/React.createRef();\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: toggleableContentRef,\n classNames: \"p-toggleable-content\",\n timeout: {\n enter: 1000,\n exit: 450\n },\n \"in\": selected,\n unmountOnExit: true,\n options: this.props.transitionOptions\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: toggleableContentRef,\n id: id,\n className: className,\n style: style,\n role: \"region\",\n \"aria-labelledby\": this.state.id + '_header_' + index\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-accordion-content\"\n }, tab.props.children)));\n }\n }, {\n key: \"renderTab\",\n value: function renderTab(tab, index) {\n var selected = this.isSelected(index);\n var tabHeader = this.renderTabHeader(tab, selected, index);\n var tabContent = this.renderTabContent(tab, selected, index);\n var tabClassName = classNames('p-accordion-tab', {\n 'p-accordion-tab-active': selected\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n key: tab.props.header,\n className: tabClassName\n }, tabHeader, tabContent);\n }\n }, {\n key: \"renderTabs\",\n value: function renderTabs() {\n var _this3 = this;\n\n return React.Children.map(this.props.children, function (tab, index) {\n if (_this3.shouldTabRender(tab)) {\n return _this3.renderTab(tab, index);\n }\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var className = classNames('p-accordion p-component', this.props.className);\n var tabs = this.renderTabs();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this4.container = el;\n },\n id: this.state.id,\n className: className,\n style: this.props.style\n }, tabs);\n }\n }]);\n\n return Accordion;\n}(Component);\n\n_defineProperty(Accordion, \"defaultProps\", {\n id: null,\n activeIndex: null,\n className: null,\n style: null,\n multiple: false,\n expandIcon: 'pi pi-chevron-right',\n collapseIcon: 'pi pi-chevron-down',\n transitionOptions: null,\n onTabOpen: null,\n onTabClose: null,\n onTabChange: null\n});\n\nexport { Accordion, AccordionTab };\n"],"mappings":"AAAA,OAAOA,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