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

1 line
138 KiB
JSON

{"ast":null,"code":"import React, { Component } from 'react';\nimport { classNames, UniqueComponentId, DomHandler, ZIndexUtils } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport PrimeReact from 'primereact/api';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\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 _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$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 GalleriaItemComponent = /*#__PURE__*/function (_Component) {\n _inherits(GalleriaItemComponent, _Component);\n\n var _super = _createSuper$2(GalleriaItemComponent);\n\n function GalleriaItemComponent(props) {\n var _this;\n\n _classCallCheck(this, GalleriaItemComponent);\n\n _this = _super.call(this, props);\n _this.navForward = _this.navForward.bind(_assertThisInitialized(_this));\n _this.navBackward = _this.navBackward.bind(_assertThisInitialized(_this));\n _this.next = _this.next.bind(_assertThisInitialized(_this));\n _this.prev = _this.prev.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(GalleriaItemComponent, [{\n key: \"step\",\n value: function step(index) {\n if (this.itemsContainer) {\n this.itemsContainer.style.transform = this.isVertical() ? \"translate3d(0, \".concat(index * 100, \"%, 0)\") : \"translate3d(\".concat(index * 100, \"%, 0, 0)\");\n this.itemsContainer.style.transition = 'transform 500ms ease 0s';\n }\n }\n }, {\n key: \"next\",\n value: function next() {\n var nextItemIndex = this.props.activeItemIndex + 1;\n this.props.onActiveItemChange({\n index: this.props.circular && this.props.value.length - 1 === this.props.activeItemIndex ? 0 : nextItemIndex\n });\n }\n }, {\n key: \"prev\",\n value: function prev() {\n var prevItemIndex = this.props.activeItemIndex !== 0 ? this.props.activeItemIndex - 1 : 0;\n this.props.onActiveItemChange({\n index: this.props.circular && this.props.activeItemIndex === 0 ? this.props.value.length - 1 : prevItemIndex\n });\n }\n }, {\n key: \"stopSlideShow\",\n value: function stopSlideShow() {\n if (this.props.slideShowActive && this.props.stopSlideShow) {\n this.props.stopSlideShow();\n }\n }\n }, {\n key: \"navBackward\",\n value: function navBackward(e) {\n this.stopSlideShow();\n this.prev();\n\n if (e && e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"navForward\",\n value: function navForward(e) {\n this.stopSlideShow();\n this.next();\n\n if (e && e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"onIndicatorClick\",\n value: function onIndicatorClick(index) {\n this.stopSlideShow();\n this.props.onActiveItemChange({\n index: index\n });\n }\n }, {\n key: \"onIndicatorMouseEnter\",\n value: function onIndicatorMouseEnter(index) {\n if (this.props.changeItemOnIndicatorHover) {\n this.stopSlideShow();\n this.props.onActiveItemChange({\n index: index\n });\n }\n }\n }, {\n key: \"onIndicatorKeyDown\",\n value: function onIndicatorKeyDown(event, index) {\n if (event.which === 13) {\n this.stopSlideShow();\n this.props.onActiveItemChange({\n index: index\n });\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.autoPlay) {\n this.props.startSlideShow();\n }\n }\n }, {\n key: \"renderBackwardNavigator\",\n value: function renderBackwardNavigator() {\n if (this.props.showItemNavigators) {\n var isDisabled = !this.props.circular && this.props.activeItemIndex === 0;\n var buttonClassName = classNames('p-galleria-item-prev p-galleria-item-nav p-link', {\n 'p-disabled': isDisabled\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: buttonClassName,\n onClick: this.navBackward,\n disabled: isDisabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-galleria-item-prev-icon pi pi-chevron-left\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderForwardNavigator\",\n value: function renderForwardNavigator() {\n if (this.props.showItemNavigators) {\n var isDisabled = !this.props.circular && this.props.activeItemIndex === this.props.value.length - 1;\n var buttonClassName = classNames('p-galleria-item-next p-galleria-item-nav p-link', {\n 'p-disabled': isDisabled\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: buttonClassName,\n onClick: this.navForward,\n disabled: isDisabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-galleria-item-next-icon pi pi-chevron-right\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderCaption\",\n value: function renderCaption() {\n if (this.props.caption) {\n var content = this.props.caption(this.props.value[this.props.activeItemIndex]);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-caption\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderIndicator\",\n value: function renderIndicator(index) {\n var _this2 = this;\n\n var indicator = this.props.indicator && this.props.indicator(index);\n var isActive = this.props.activeItemIndex === index;\n var indicatorItemClassName = classNames('p-galleria-indicator', {\n 'p-highlight': isActive\n });\n\n if (!indicator) {\n indicator = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n tabIndex: -1,\n className: \"p-link\"\n }, /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n className: indicatorItemClassName,\n key: 'p-galleria-indicator-' + index,\n tabIndex: 0,\n onClick: function onClick() {\n return _this2.onIndicatorClick(index);\n },\n onMouseEnter: function onMouseEnter() {\n return _this2.onIndicatorMouseEnter(index);\n },\n onKeyDown: function onKeyDown(e) {\n return _this2.onIndicatorKeyDown(e, index);\n }\n }, indicator);\n }\n }, {\n key: \"renderIndicators\",\n value: function renderIndicators() {\n if (this.props.showIndicators) {\n var indicatorsContentClassName = classNames('p-galleria-indicators p-reset', this.props.indicatorsContentClassName);\n var indicators = [];\n\n for (var i = 0; i < this.props.value.length; i++) {\n indicators.push(this.renderIndicator(i));\n }\n\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: indicatorsContentClassName\n }, indicators);\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var content = this.props.itemTemplate && this.props.itemTemplate(this.props.value[this.props.activeItemIndex]);\n var backwardNavigator = this.renderBackwardNavigator();\n var forwardNavigator = this.renderForwardNavigator();\n var caption = this.renderCaption();\n var indicators = this.renderIndicators();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this3.props.forwardRef(el);\n },\n className: \"p-galleria-item-wrapper\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-item-container\"\n }, backwardNavigator, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-item\"\n }, content), forwardNavigator, caption), indicators);\n }\n }]);\n\n return GalleriaItemComponent;\n}(Component);\n\nvar GalleriaItem = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(GalleriaItemComponent, _extends({\n forwardRef: ref\n }, props));\n});\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 _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 GalleriaThumbnailItem = /*#__PURE__*/function (_Component) {\n _inherits(GalleriaThumbnailItem, _Component);\n\n var _super = _createSuper$1(GalleriaThumbnailItem);\n\n function GalleriaThumbnailItem(props) {\n var _this;\n\n _classCallCheck(this, GalleriaThumbnailItem);\n\n _this = _super.call(this, props);\n _this.onItemClick = _this.onItemClick.bind(_assertThisInitialized(_this));\n _this.onItemKeyDown = _this.onItemKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(GalleriaThumbnailItem, [{\n key: \"onItemClick\",\n value: function onItemClick(event) {\n this.props.onItemClick({\n originalEvent: event,\n index: this.props.index\n });\n }\n }, {\n key: \"onItemKeyDown\",\n value: function onItemKeyDown(event) {\n if (event.which === 13) {\n this.props.onItemClick({\n originalEvent: event,\n index: this.props.index\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var content = this.props.template && this.props.template(this.props.item);\n var itemClassName = classNames(this.props.className, 'p-galleria-thumbnail-item', {\n 'p-galleria-thumbnail-item-current': this.props.current,\n 'p-galleria-thumbnail-item-active': this.props.active,\n 'p-galleria-thumbnail-item-start': this.props.start,\n 'p-galleria-thumbnail-item-end': this.props.end\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: itemClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-thumbnail-item-content\",\n tabIndex: this.props.active ? 0 : null,\n onClick: this.onItemClick,\n onKeyDown: this.onItemKeyDown\n }, content));\n }\n }]);\n\n return GalleriaThumbnailItem;\n}(Component);\n\n_defineProperty(GalleriaThumbnailItem, \"defaultProps\", {\n index: null,\n template: null,\n item: null,\n current: false,\n active: false,\n start: false,\n end: false,\n className: null,\n onItemClick: null\n});\n\nvar GalleriaThumbnails = /*#__PURE__*/function (_Component2) {\n _inherits(GalleriaThumbnails, _Component2);\n\n var _super2 = _createSuper$1(GalleriaThumbnails);\n\n function GalleriaThumbnails(props) {\n var _this2;\n\n _classCallCheck(this, GalleriaThumbnails);\n\n _this2 = _super2.call(this, props);\n _this2.state = {\n numVisible: props.numVisible,\n totalShiftedItems: 0,\n page: 0\n };\n _this2.navForward = _this2.navForward.bind(_assertThisInitialized(_this2));\n _this2.navBackward = _this2.navBackward.bind(_assertThisInitialized(_this2));\n _this2.onTransitionEnd = _this2.onTransitionEnd.bind(_assertThisInitialized(_this2));\n _this2.onTouchStart = _this2.onTouchStart.bind(_assertThisInitialized(_this2));\n _this2.onTouchMove = _this2.onTouchMove.bind(_assertThisInitialized(_this2));\n _this2.onTouchEnd = _this2.onTouchEnd.bind(_assertThisInitialized(_this2));\n _this2.onItemClick = _this2.onItemClick.bind(_assertThisInitialized(_this2));\n _this2.attributeSelector = UniqueComponentId();\n return _this2;\n }\n\n _createClass(GalleriaThumbnails, [{\n key: \"step\",\n value: function step(dir) {\n var totalShiftedItems = this.state.totalShiftedItems + dir;\n\n if (dir < 0 && -1 * totalShiftedItems + this.state.numVisible > this.props.value.length - 1) {\n totalShiftedItems = this.state.numVisible - this.props.value.length;\n } else if (dir > 0 && totalShiftedItems > 0) {\n totalShiftedItems = 0;\n }\n\n if (this.props.circular) {\n if (dir < 0 && this.props.value.length - 1 === this.props.activeItemIndex) {\n totalShiftedItems = 0;\n } else if (dir > 0 && this.props.activeItemIndex === 0) {\n totalShiftedItems = this.state.numVisible - this.props.value.length;\n }\n }\n\n if (this.itemsContainer) {\n DomHandler.removeClass(this.itemsContainer, 'p-items-hidden');\n this.itemsContainer.style.transform = this.props.isVertical ? \"translate3d(0, \".concat(totalShiftedItems * (100 / this.state.numVisible), \"%, 0)\") : \"translate3d(\".concat(totalShiftedItems * (100 / this.state.numVisible), \"%, 0, 0)\");\n this.itemsContainer.style.transition = 'transform 500ms ease 0s';\n }\n\n this.setState({\n totalShiftedItems: totalShiftedItems\n });\n }\n }, {\n key: \"stopSlideShow\",\n value: function stopSlideShow() {\n if (this.props.slideShowActive && this.props.stopSlideShow) {\n this.props.stopSlideShow();\n }\n }\n }, {\n key: \"getMedianItemIndex\",\n value: function getMedianItemIndex() {\n var index = Math.floor(this.state.numVisible / 2);\n return this.state.numVisible % 2 ? index : index - 1;\n }\n }, {\n key: \"navBackward\",\n value: function navBackward(e) {\n this.stopSlideShow();\n var prevItemIndex = this.props.activeItemIndex !== 0 ? this.props.activeItemIndex - 1 : 0;\n var diff = prevItemIndex + this.state.totalShiftedItems;\n\n if (this.state.numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.state.totalShiftedItems !== 0 || this.props.circular)) {\n this.step(1);\n }\n\n this.props.onActiveItemChange({\n index: this.props.circular && this.props.activeItemIndex === 0 ? this.props.value.length - 1 : prevItemIndex\n });\n\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"navForward\",\n value: function navForward(e) {\n this.stopSlideShow();\n var nextItemIndex = this.props.activeItemIndex + 1;\n\n if (nextItemIndex + this.state.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.state.totalShiftedItems < this.getTotalPageNumber() - 1 || this.props.circular)) {\n this.step(-1);\n }\n\n this.props.onActiveItemChange({\n index: this.props.circular && this.props.value.length - 1 === this.props.activeItemIndex ? 0 : nextItemIndex\n });\n\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"onItemClick\",\n value: function onItemClick(event) {\n this.stopSlideShow();\n var selectedItemIndex = event.index;\n\n if (selectedItemIndex !== this.props.activeItemIndex) {\n var diff = selectedItemIndex + this.state.totalShiftedItems;\n var dir = 0;\n\n if (selectedItemIndex < this.props.activeItemIndex) {\n dir = this.state.numVisible - diff - 1 - this.getMedianItemIndex();\n\n if (dir > 0 && -1 * this.state.totalShiftedItems !== 0) {\n this.step(dir);\n }\n } else {\n dir = this.getMedianItemIndex() - diff;\n\n if (dir < 0 && -1 * this.state.totalShiftedItems < this.getTotalPageNumber() - 1) {\n this.step(dir);\n }\n }\n\n this.props.onActiveItemChange({\n index: selectedItemIndex\n });\n }\n }\n }, {\n key: \"onTransitionEnd\",\n value: function onTransitionEnd(e) {\n if (this.itemsContainer && e.propertyName === 'transform') {\n DomHandler.addClass(this.itemsContainer, 'p-items-hidden');\n this.itemsContainer.style.transition = '';\n }\n }\n }, {\n key: \"onTouchStart\",\n value: function onTouchStart(e) {\n var touchobj = e.changedTouches[0];\n this.startPos = {\n x: touchobj.pageX,\n y: touchobj.pageY\n };\n }\n }, {\n key: \"onTouchMove\",\n value: function onTouchMove(e) {\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"onTouchEnd\",\n value: function onTouchEnd(e) {\n var touchobj = e.changedTouches[0];\n\n if (this.props.isVertical) {\n this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);\n } else {\n this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);\n }\n }\n }, {\n key: \"changePageOnTouch\",\n value: function changePageOnTouch(e, diff) {\n if (diff < 0) {\n // left\n this.navForward(e);\n } else {\n // right\n this.navBackward(e);\n }\n }\n }, {\n key: \"getTotalPageNumber\",\n value: function getTotalPageNumber() {\n return this.props.value.length > this.state.numVisible ? this.props.value.length - this.state.numVisible + 1 : 0;\n }\n }, {\n key: \"createStyle\",\n value: function createStyle() {\n if (!this.thumbnailsStyle) {\n this.thumbnailsStyle = DomHandler.createInlineStyle(PrimeReact.nonce);\n }\n\n var innerHTML = \"\\n .p-galleria-thumbnail-items[\".concat(this.attributeSelector, \"] .p-galleria-thumbnail-item {\\n flex: 1 0 \").concat(100 / this.state.numVisible, \"%\\n }\\n \");\n\n if (this.props.responsiveOptions) {\n this.responsiveOptions = _toConsumableArray(this.props.responsiveOptions);\n this.responsiveOptions.sort(function (data1, data2) {\n var value1 = data1.breakpoint;\n var value2 = data2.breakpoint;\n var result = null;\n if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {\n numeric: true\n });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n return -1 * result;\n });\n\n for (var i = 0; i < this.responsiveOptions.length; i++) {\n var res = this.responsiveOptions[i];\n innerHTML += \"\\n @media screen and (max-width: \".concat(res.breakpoint, \") {\\n .p-galleria-thumbnail-items[\").concat(this.attributeSelector, \"] .p-galleria-thumbnail-item {\\n flex: 1 0 \").concat(100 / res.numVisible, \"%\\n }\\n }\\n \");\n }\n }\n\n this.thumbnailsStyle.innerHTML = innerHTML;\n }\n }, {\n key: \"calculatePosition\",\n value: function calculatePosition() {\n if (this.itemsContainer && this.responsiveOptions) {\n var windowWidth = window.innerWidth;\n var matchedResponsiveData = {\n numVisible: this.props.numVisible\n };\n\n for (var i = 0; i < this.responsiveOptions.length; i++) {\n var res = this.responsiveOptions[i];\n\n if (parseInt(res.breakpoint, 10) >= windowWidth) {\n matchedResponsiveData = res;\n }\n }\n\n if (this.state.numVisible !== matchedResponsiveData.numVisible) {\n this.setState({\n numVisible: matchedResponsiveData.numVisible\n });\n }\n }\n }\n }, {\n key: \"bindDocumentListeners\",\n value: function bindDocumentListeners() {\n var _this3 = this;\n\n if (!this.documentResizeListener) {\n this.documentResizeListener = function () {\n _this3.calculatePosition();\n };\n\n window.addEventListener('resize', this.documentResizeListener);\n }\n }\n }, {\n key: \"unbindDocumentListeners\",\n value: function unbindDocumentListeners() {\n if (this.documentResizeListener) {\n window.removeEventListener('resize', this.documentResizeListener);\n this.documentResizeListener = null;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.itemsContainer) {\n this.itemsContainer.setAttribute(this.attributeSelector, '');\n }\n\n this.createStyle();\n this.calculatePosition();\n\n if (this.props.responsiveOptions) {\n this.bindDocumentListeners();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var totalShiftedItems = this.state.totalShiftedItems;\n\n if (prevState.numVisible !== this.state.numVisible || prevProps.activeItemIndex !== this.props.activeItemIndex) {\n if (this.props.activeItemIndex <= this.getMedianItemIndex()) {\n totalShiftedItems = 0;\n } else if (this.props.value.length - this.state.numVisible + this.getMedianItemIndex() < this.props.activeItemIndex) {\n totalShiftedItems = this.state.numVisible - this.props.value.length;\n } else if (this.props.value.length - this.state.numVisible < this.props.activeItemIndex && this.state.numVisible % 2 === 0) {\n totalShiftedItems = this.props.activeItemIndex * -1 + this.getMedianItemIndex() + 1;\n } else {\n totalShiftedItems = this.props.activeItemIndex * -1 + this.getMedianItemIndex();\n }\n\n if (totalShiftedItems !== this.state.totalShiftedItems) {\n this.setState({\n totalShiftedItems: totalShiftedItems\n });\n }\n\n this.itemsContainer.style.transform = this.props.isVertical ? \"translate3d(0, \".concat(totalShiftedItems * (100 / this.state.numVisible), \"%, 0)\") : \"translate3d(\".concat(totalShiftedItems * (100 / this.state.numVisible), \"%, 0, 0)\");\n\n if (prevProps.activeItemIndex !== this.props.activeItemIndex) {\n DomHandler.removeClass(this.itemsContainer, 'p-items-hidden');\n this.itemsContainer.style.transition = 'transform 500ms ease 0s';\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.responsiveOptions) {\n this.unbindDocumentListeners();\n }\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var _this4 = this;\n\n return this.props.value.map(function (item, index) {\n var firstIndex = _this4.state.totalShiftedItems * -1,\n lastIndex = firstIndex + _this4.state.numVisible - 1,\n isActive = firstIndex <= index && lastIndex >= index,\n start = firstIndex === index,\n end = lastIndex === index,\n current = _this4.props.activeItemIndex === index;\n return /*#__PURE__*/React.createElement(GalleriaThumbnailItem, {\n key: index,\n index: index,\n template: _this4.props.itemTemplate,\n item: item,\n active: isActive,\n start: start,\n end: end,\n onItemClick: _this4.onItemClick,\n current: current\n });\n });\n }\n }, {\n key: \"renderBackwardNavigator\",\n value: function renderBackwardNavigator() {\n if (this.props.showThumbnailNavigators) {\n var isDisabled = !this.props.circular && this.props.activeItemIndex === 0 || this.props.value.length <= this.state.numVisible;\n var buttonClassName = classNames('p-galleria-thumbnail-prev p-link', {\n 'p-disabled': isDisabled\n }),\n iconClassName = classNames('p-galleria-thumbnail-prev-icon pi', {\n 'pi-chevron-left': !this.props.isVertical,\n 'pi-chevron-up': this.props.isVertical\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n className: buttonClassName,\n onClick: this.navBackward,\n disabled: isDisabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderForwardNavigator\",\n value: function renderForwardNavigator() {\n if (this.props.showThumbnailNavigators) {\n var isDisabled = !this.props.circular && this.props.activeItemIndex === this.props.value.length - 1 || this.props.value.length <= this.state.numVisible;\n var buttonClassName = classNames('p-galleria-thumbnail-next p-link', {\n 'p-disabled': isDisabled\n }),\n iconClassName = classNames('p-galleria-thumbnail-next-icon pi', {\n 'pi-chevron-right': !this.props.isVertical,\n 'pi-chevron-down': this.props.isVertical\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n className: buttonClassName,\n onClick: this.navForward,\n disabled: isDisabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this5 = this;\n\n var items = this.renderItems();\n var height = this.props.isVertical ? this.props.contentHeight : '';\n var backwardNavigator = this.renderBackwardNavigator();\n var forwardNavigator = this.renderForwardNavigator();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-thumbnail-container\"\n }, backwardNavigator, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-thumbnail-items-container\",\n style: {\n 'height': height\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.itemsContainer = el;\n },\n className: \"p-galleria-thumbnail-items\",\n onTransitionEnd: this.onTransitionEnd,\n onTouchStart: this.onTouchStart,\n onTouchMove: this.onTouchMove,\n onTouchEnd: this.onTouchEnd\n }, items)), forwardNavigator);\n }\n }, {\n key: \"render\",\n value: function render() {\n var content = this.renderContent();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-thumbnail-wrapper\"\n }, content);\n }\n }]);\n\n return GalleriaThumbnails;\n}(Component);\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 Galleria = /*#__PURE__*/function (_Component) {\n _inherits(Galleria, _Component);\n\n var _super = _createSuper(Galleria);\n\n function Galleria(props) {\n var _this;\n\n _classCallCheck(this, Galleria);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false,\n numVisible: props.numVisible,\n slideShowActive: false\n };\n\n if (!_this.props.onItemChange) {\n _this.state = _objectSpread(_objectSpread({}, _this.state), {}, {\n activeIndex: props.activeIndex\n });\n }\n\n _this.onActiveItemChange = _this.onActiveItemChange.bind(_assertThisInitialized(_this));\n _this.show = _this.show.bind(_assertThisInitialized(_this));\n _this.hide = _this.hide.bind(_assertThisInitialized(_this));\n _this.startSlideShow = _this.startSlideShow.bind(_assertThisInitialized(_this));\n _this.stopSlideShow = _this.stopSlideShow.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntering = _this.onEntering.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.galleriaRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Galleria, [{\n key: \"activeItemIndex\",\n get: function get() {\n return this.props.onItemChange ? this.props.activeIndex : this.state.activeIndex;\n }\n }, {\n key: \"onActiveItemChange\",\n value: function onActiveItemChange(event) {\n if (this.props.onItemChange) {\n this.props.onItemChange(event);\n } else {\n this.setState({\n activeIndex: event.index\n });\n }\n }\n }, {\n key: \"show\",\n value: function show() {\n this.setState({\n visible: true\n });\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.setState({\n visible: false\n });\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n DomHandler.addClass(document.body, 'p-overflow-hidden');\n }\n }, {\n key: \"onEntering\",\n value: function onEntering() {\n ZIndexUtils.set('modal', this.mask, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['modal']);\n DomHandler.addMultipleClasses(this.mask, 'p-component-overlay p-component-overlay-enter');\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onExit\",\n value: function onExit() {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n DomHandler.addClass(this.mask, 'p-component-overlay-leave');\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n ZIndexUtils.clear(this.mask);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"isAutoPlayActive\",\n value: function isAutoPlayActive() {\n return this.state.slideShowActive;\n }\n }, {\n key: \"startSlideShow\",\n value: function startSlideShow() {\n var _this2 = this;\n\n this.interval = setInterval(function () {\n var activeIndex = _this2.props.circular && _this2.props.value.length - 1 === _this2.activeItemIndex ? 0 : _this2.activeItemIndex + 1;\n\n _this2.onActiveItemChange({\n index: activeIndex\n });\n }, this.props.transitionInterval);\n this.setState({\n slideShowActive: true\n });\n }\n }, {\n key: \"stopSlideShow\",\n value: function stopSlideShow() {\n if (this.interval) {\n clearInterval(this.interval);\n }\n\n this.setState({\n slideShowActive: false\n });\n }\n }, {\n key: \"getPositionClassName\",\n value: function getPositionClassName(preClassName, position) {\n var positions = ['top', 'left', 'bottom', 'right'];\n var pos = positions.find(function (item) {\n return item === position;\n });\n return pos ? \"\".concat(preClassName, \"-\").concat(pos) : '';\n }\n }, {\n key: \"isVertical\",\n value: function isVertical() {\n return this.props.thumbnailsPosition === 'left' || this.props.thumbnailsPosition === 'right';\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (prevProps.value !== this.props.value) {\n if (this.props.value && this.props.value.length < this.state.numVisible) {\n this.setState({\n numVisible: this.props.value.length\n });\n }\n }\n\n if (prevProps.numVisible !== this.props.numVisible) {\n this.setState({\n numVisible: this.props.numVisible\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.state.slideShowActive) {\n this.stopSlideShow();\n }\n\n ZIndexUtils.clear(this.mask);\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader() {\n if (this.props.header) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-header\"\n }, this.props.header);\n }\n\n return null;\n }\n }, {\n key: \"renderFooter\",\n value: function renderFooter() {\n if (this.props.footer) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-footer\"\n }, this.props.footer);\n }\n\n return null;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this3 = this;\n\n var isVertical = this.isVertical();\n var thumbnailsPosClassName = this.props.showThumbnails && this.getPositionClassName('p-galleria-thumbnails', this.props.thumbnailsPosition);\n var indicatorPosClassName = this.props.showIndicators && this.getPositionClassName('p-galleria-indicators', this.props.indicatorsPosition);\n var galleriaClassName = classNames('p-galleria p-component', this.props.className, {\n 'p-galleria-fullscreen': this.props.fullScreen,\n 'p-galleria-indicator-onitem': this.props.showIndicatorsOnItem,\n 'p-galleria-item-nav-onhover': this.props.showItemNavigatorsOnHover && !this.props.fullScreen\n }, thumbnailsPosClassName, indicatorPosClassName);\n var closeIcon = this.props.fullScreen && /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-galleria-close p-link\",\n onClick: this.hide\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-galleria-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n var header = this.renderHeader();\n var footer = this.renderFooter();\n var element = /*#__PURE__*/React.createElement(\"div\", {\n ref: this.galleriaRef,\n id: this.props.id,\n className: galleriaClassName,\n style: this.props.style\n }, closeIcon, header, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-content\"\n }, /*#__PURE__*/React.createElement(GalleriaItem, {\n ref: function ref(el) {\n return _this3.previewContent = el;\n },\n value: this.props.value,\n activeItemIndex: this.activeItemIndex,\n onActiveItemChange: this.onActiveItemChange,\n itemTemplate: this.props.item,\n circular: this.props.circular,\n caption: this.props.caption,\n showIndicators: this.props.showIndicators,\n changeItemOnIndicatorHover: this.props.changeItemOnIndicatorHover,\n indicator: this.props.indicator,\n showItemNavigators: this.props.showItemNavigators,\n autoPlay: this.props.autoPlay,\n slideShowActive: this.state.slideShowActive,\n startSlideShow: this.startSlideShow,\n stopSlideShow: this.stopSlideShow\n }), this.props.showThumbnails && /*#__PURE__*/React.createElement(GalleriaThumbnails, {\n value: this.props.value,\n activeItemIndex: this.activeItemIndex,\n onActiveItemChange: this.onActiveItemChange,\n itemTemplate: this.props.thumbnail,\n numVisible: this.state.numVisible,\n responsiveOptions: this.props.responsiveOptions,\n circular: this.props.circular,\n isVertical: isVertical,\n contentHeight: this.props.verticalThumbnailViewPortHeight,\n showThumbnailNavigators: this.props.showThumbnailNavigators,\n autoPlay: this.props.autoPlay,\n slideShowActive: this.state.slideShowActive,\n stopSlideShow: this.stopSlideShow\n })), footer);\n return element;\n }\n }, {\n key: \"renderGalleria\",\n value: function renderGalleria() {\n var _this4 = this;\n\n var element = this.renderElement();\n\n if (this.props.fullScreen) {\n var maskClassName = classNames('p-galleria-mask', {\n 'p-galleria-visible': this.state.visible\n });\n var galleriaWrapper = /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this4.mask = el;\n },\n className: maskClassName\n }, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.galleriaRef,\n classNames: \"p-galleria\",\n \"in\": this.state.visible,\n timeout: {\n enter: 150,\n exit: 150\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntering: this.onEntering,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExited: this.onExited\n }, element));\n return /*#__PURE__*/React.createElement(Portal, {\n element: galleriaWrapper\n });\n } else {\n return element;\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.props.value && this.props.value.length > 0 && this.renderGalleria();\n }\n }]);\n\n return Galleria;\n}(Component);\n\n_defineProperty(Galleria, \"defaultProps\", {\n id: null,\n value: null,\n activeIndex: 0,\n fullScreen: false,\n item: null,\n thumbnail: null,\n indicator: null,\n caption: null,\n className: null,\n style: null,\n header: null,\n footer: null,\n numVisible: 3,\n responsiveOptions: null,\n showItemNavigators: false,\n showThumbnailNavigators: true,\n showItemNavigatorsOnHover: false,\n changeItemOnIndicatorHover: false,\n circular: false,\n autoPlay: false,\n transitionInterval: 4000,\n showThumbnails: true,\n thumbnailsPosition: \"bottom\",\n verticalThumbnailViewPortHeight: \"300px\",\n showIndicators: false,\n showIndicatorsOnItem: false,\n indicatorsPosition: \"bottom\",\n baseZIndex: 0,\n transitionOptions: null,\n onItemChange: null\n});\n\nexport { Galleria };","map":{"version":3,"names":["React","Component","classNames","UniqueComponentId","DomHandler","ZIndexUtils","Ripple","PrimeReact","CSSTransition","Portal","_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","_extends","assign","arguments","source","hasOwnProperty","apply","_createSuper$2","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$2","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","GalleriaItemComponent","_Component","_super","_this","navForward","bind","navBackward","next","prev","step","index","itemsContainer","style","transform","isVertical","concat","transition","nextItemIndex","activeItemIndex","onActiveItemChange","circular","prevItemIndex","stopSlideShow","slideShowActive","cancelable","preventDefault","onIndicatorClick","onIndicatorMouseEnter","changeItemOnIndicatorHover","onIndicatorKeyDown","event","which","componentDidMount","autoPlay","startSlideShow","renderBackwardNavigator","showItemNavigators","isDisabled","buttonClassName","createElement","type","className","onClick","disabled","renderForwardNavigator","renderCaption","caption","content","renderIndicator","_this2","indicator","isActive","indicatorItemClassName","tabIndex","onMouseEnter","onKeyDown","renderIndicators","showIndicators","indicatorsContentClassName","indicators","push","render","_this3","itemTemplate","backwardNavigator","forwardNavigator","ref","el","forwardRef","GalleriaItem","_arrayLikeToArray","arr","len","arr2","Array","_arrayWithoutHoles","isArray","_iterableToArray","iter","from","_unsupportedIterableToArray","minLen","n","toString","slice","name","test","_nonIterableSpread","_toConsumableArray","_createSuper$1","_isNativeReflectConstruct$1","GalleriaThumbnailItem","onItemClick","onItemKeyDown","originalEvent","template","item","itemClassName","current","active","start","end","GalleriaThumbnails","_Component2","_super2","state","numVisible","totalShiftedItems","page","onTransitionEnd","onTouchStart","onTouchMove","onTouchEnd","attributeSelector","dir","removeClass","setState","getMedianItemIndex","Math","floor","diff","getTotalPageNumber","selectedItemIndex","propertyName","addClass","touchobj","changedTouches","startPos","x","pageX","y","pageY","changePageOnTouch","createStyle","thumbnailsStyle","createInlineStyle","nonce","innerHTML","responsiveOptions","sort","data1","data2","value1","breakpoint","value2","localeCompare","undefined","numeric","res","calculatePosition","windowWidth","window","innerWidth","matchedResponsiveData","parseInt","bindDocumentListeners","documentResizeListener","addEventListener","unbindDocumentListeners","removeEventListener","setAttribute","componentDidUpdate","prevProps","prevState","componentWillUnmount","renderItems","_this4","map","firstIndex","lastIndex","showThumbnailNavigators","iconClassName","renderContent","_this5","items","height","contentHeight","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","_objectSpread","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","_isNativeReflectConstruct","Galleria","visible","onItemChange","activeIndex","show","hide","onEnter","onEntering","onEntered","onExit","onExited","galleriaRef","createRef","get","document","body","set","mask","autoZIndex","baseZIndex","zIndex","addMultipleClasses","onShow","clear","onHide","isAutoPlayActive","interval","setInterval","transitionInterval","clearInterval","getPositionClassName","preClassName","position","positions","pos","find","thumbnailsPosition","renderHeader","header","renderFooter","footer","renderElement","thumbnailsPosClassName","showThumbnails","indicatorPosClassName","indicatorsPosition","galleriaClassName","fullScreen","showIndicatorsOnItem","showItemNavigatorsOnHover","closeIcon","element","id","previewContent","thumbnail","verticalThumbnailViewPortHeight","renderGalleria","maskClassName","galleriaWrapper","nodeRef","timeout","enter","exit","options","transitionOptions","unmountOnExit"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/galleria/galleria.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { classNames, UniqueComponentId, DomHandler, ZIndexUtils } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport PrimeReact from 'primereact/api';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\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 _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$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; } }\n\nvar GalleriaItemComponent = /*#__PURE__*/function (_Component) {\n _inherits(GalleriaItemComponent, _Component);\n\n var _super = _createSuper$2(GalleriaItemComponent);\n\n function GalleriaItemComponent(props) {\n var _this;\n\n _classCallCheck(this, GalleriaItemComponent);\n\n _this = _super.call(this, props);\n _this.navForward = _this.navForward.bind(_assertThisInitialized(_this));\n _this.navBackward = _this.navBackward.bind(_assertThisInitialized(_this));\n _this.next = _this.next.bind(_assertThisInitialized(_this));\n _this.prev = _this.prev.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(GalleriaItemComponent, [{\n key: \"step\",\n value: function step(index) {\n if (this.itemsContainer) {\n this.itemsContainer.style.transform = this.isVertical() ? \"translate3d(0, \".concat(index * 100, \"%, 0)\") : \"translate3d(\".concat(index * 100, \"%, 0, 0)\");\n this.itemsContainer.style.transition = 'transform 500ms ease 0s';\n }\n }\n }, {\n key: \"next\",\n value: function next() {\n var nextItemIndex = this.props.activeItemIndex + 1;\n this.props.onActiveItemChange({\n index: this.props.circular && this.props.value.length - 1 === this.props.activeItemIndex ? 0 : nextItemIndex\n });\n }\n }, {\n key: \"prev\",\n value: function prev() {\n var prevItemIndex = this.props.activeItemIndex !== 0 ? this.props.activeItemIndex - 1 : 0;\n this.props.onActiveItemChange({\n index: this.props.circular && this.props.activeItemIndex === 0 ? this.props.value.length - 1 : prevItemIndex\n });\n }\n }, {\n key: \"stopSlideShow\",\n value: function stopSlideShow() {\n if (this.props.slideShowActive && this.props.stopSlideShow) {\n this.props.stopSlideShow();\n }\n }\n }, {\n key: \"navBackward\",\n value: function navBackward(e) {\n this.stopSlideShow();\n this.prev();\n\n if (e && e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"navForward\",\n value: function navForward(e) {\n this.stopSlideShow();\n this.next();\n\n if (e && e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"onIndicatorClick\",\n value: function onIndicatorClick(index) {\n this.stopSlideShow();\n this.props.onActiveItemChange({\n index: index\n });\n }\n }, {\n key: \"onIndicatorMouseEnter\",\n value: function onIndicatorMouseEnter(index) {\n if (this.props.changeItemOnIndicatorHover) {\n this.stopSlideShow();\n this.props.onActiveItemChange({\n index: index\n });\n }\n }\n }, {\n key: \"onIndicatorKeyDown\",\n value: function onIndicatorKeyDown(event, index) {\n if (event.which === 13) {\n this.stopSlideShow();\n this.props.onActiveItemChange({\n index: index\n });\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.autoPlay) {\n this.props.startSlideShow();\n }\n }\n }, {\n key: \"renderBackwardNavigator\",\n value: function renderBackwardNavigator() {\n if (this.props.showItemNavigators) {\n var isDisabled = !this.props.circular && this.props.activeItemIndex === 0;\n var buttonClassName = classNames('p-galleria-item-prev p-galleria-item-nav p-link', {\n 'p-disabled': isDisabled\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: buttonClassName,\n onClick: this.navBackward,\n disabled: isDisabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-galleria-item-prev-icon pi pi-chevron-left\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderForwardNavigator\",\n value: function renderForwardNavigator() {\n if (this.props.showItemNavigators) {\n var isDisabled = !this.props.circular && this.props.activeItemIndex === this.props.value.length - 1;\n var buttonClassName = classNames('p-galleria-item-next p-galleria-item-nav p-link', {\n 'p-disabled': isDisabled\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: buttonClassName,\n onClick: this.navForward,\n disabled: isDisabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-galleria-item-next-icon pi pi-chevron-right\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderCaption\",\n value: function renderCaption() {\n if (this.props.caption) {\n var content = this.props.caption(this.props.value[this.props.activeItemIndex]);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-caption\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderIndicator\",\n value: function renderIndicator(index) {\n var _this2 = this;\n\n var indicator = this.props.indicator && this.props.indicator(index);\n var isActive = this.props.activeItemIndex === index;\n var indicatorItemClassName = classNames('p-galleria-indicator', {\n 'p-highlight': isActive\n });\n\n if (!indicator) {\n indicator = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n tabIndex: -1,\n className: \"p-link\"\n }, /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n className: indicatorItemClassName,\n key: 'p-galleria-indicator-' + index,\n tabIndex: 0,\n onClick: function onClick() {\n return _this2.onIndicatorClick(index);\n },\n onMouseEnter: function onMouseEnter() {\n return _this2.onIndicatorMouseEnter(index);\n },\n onKeyDown: function onKeyDown(e) {\n return _this2.onIndicatorKeyDown(e, index);\n }\n }, indicator);\n }\n }, {\n key: \"renderIndicators\",\n value: function renderIndicators() {\n if (this.props.showIndicators) {\n var indicatorsContentClassName = classNames('p-galleria-indicators p-reset', this.props.indicatorsContentClassName);\n var indicators = [];\n\n for (var i = 0; i < this.props.value.length; i++) {\n indicators.push(this.renderIndicator(i));\n }\n\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: indicatorsContentClassName\n }, indicators);\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var content = this.props.itemTemplate && this.props.itemTemplate(this.props.value[this.props.activeItemIndex]);\n var backwardNavigator = this.renderBackwardNavigator();\n var forwardNavigator = this.renderForwardNavigator();\n var caption = this.renderCaption();\n var indicators = this.renderIndicators();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this3.props.forwardRef(el);\n },\n className: \"p-galleria-item-wrapper\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-item-container\"\n }, backwardNavigator, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-item\"\n }, content), forwardNavigator, caption), indicators);\n }\n }]);\n\n return GalleriaItemComponent;\n}(Component);\n\nvar GalleriaItem = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(GalleriaItemComponent, _extends({\n forwardRef: ref\n }, props));\n});\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 _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 GalleriaThumbnailItem = /*#__PURE__*/function (_Component) {\n _inherits(GalleriaThumbnailItem, _Component);\n\n var _super = _createSuper$1(GalleriaThumbnailItem);\n\n function GalleriaThumbnailItem(props) {\n var _this;\n\n _classCallCheck(this, GalleriaThumbnailItem);\n\n _this = _super.call(this, props);\n _this.onItemClick = _this.onItemClick.bind(_assertThisInitialized(_this));\n _this.onItemKeyDown = _this.onItemKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(GalleriaThumbnailItem, [{\n key: \"onItemClick\",\n value: function onItemClick(event) {\n this.props.onItemClick({\n originalEvent: event,\n index: this.props.index\n });\n }\n }, {\n key: \"onItemKeyDown\",\n value: function onItemKeyDown(event) {\n if (event.which === 13) {\n this.props.onItemClick({\n originalEvent: event,\n index: this.props.index\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var content = this.props.template && this.props.template(this.props.item);\n var itemClassName = classNames(this.props.className, 'p-galleria-thumbnail-item', {\n 'p-galleria-thumbnail-item-current': this.props.current,\n 'p-galleria-thumbnail-item-active': this.props.active,\n 'p-galleria-thumbnail-item-start': this.props.start,\n 'p-galleria-thumbnail-item-end': this.props.end\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: itemClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-thumbnail-item-content\",\n tabIndex: this.props.active ? 0 : null,\n onClick: this.onItemClick,\n onKeyDown: this.onItemKeyDown\n }, content));\n }\n }]);\n\n return GalleriaThumbnailItem;\n}(Component);\n\n_defineProperty(GalleriaThumbnailItem, \"defaultProps\", {\n index: null,\n template: null,\n item: null,\n current: false,\n active: false,\n start: false,\n end: false,\n className: null,\n onItemClick: null\n});\n\nvar GalleriaThumbnails = /*#__PURE__*/function (_Component2) {\n _inherits(GalleriaThumbnails, _Component2);\n\n var _super2 = _createSuper$1(GalleriaThumbnails);\n\n function GalleriaThumbnails(props) {\n var _this2;\n\n _classCallCheck(this, GalleriaThumbnails);\n\n _this2 = _super2.call(this, props);\n _this2.state = {\n numVisible: props.numVisible,\n totalShiftedItems: 0,\n page: 0\n };\n _this2.navForward = _this2.navForward.bind(_assertThisInitialized(_this2));\n _this2.navBackward = _this2.navBackward.bind(_assertThisInitialized(_this2));\n _this2.onTransitionEnd = _this2.onTransitionEnd.bind(_assertThisInitialized(_this2));\n _this2.onTouchStart = _this2.onTouchStart.bind(_assertThisInitialized(_this2));\n _this2.onTouchMove = _this2.onTouchMove.bind(_assertThisInitialized(_this2));\n _this2.onTouchEnd = _this2.onTouchEnd.bind(_assertThisInitialized(_this2));\n _this2.onItemClick = _this2.onItemClick.bind(_assertThisInitialized(_this2));\n _this2.attributeSelector = UniqueComponentId();\n return _this2;\n }\n\n _createClass(GalleriaThumbnails, [{\n key: \"step\",\n value: function step(dir) {\n var totalShiftedItems = this.state.totalShiftedItems + dir;\n\n if (dir < 0 && -1 * totalShiftedItems + this.state.numVisible > this.props.value.length - 1) {\n totalShiftedItems = this.state.numVisible - this.props.value.length;\n } else if (dir > 0 && totalShiftedItems > 0) {\n totalShiftedItems = 0;\n }\n\n if (this.props.circular) {\n if (dir < 0 && this.props.value.length - 1 === this.props.activeItemIndex) {\n totalShiftedItems = 0;\n } else if (dir > 0 && this.props.activeItemIndex === 0) {\n totalShiftedItems = this.state.numVisible - this.props.value.length;\n }\n }\n\n if (this.itemsContainer) {\n DomHandler.removeClass(this.itemsContainer, 'p-items-hidden');\n this.itemsContainer.style.transform = this.props.isVertical ? \"translate3d(0, \".concat(totalShiftedItems * (100 / this.state.numVisible), \"%, 0)\") : \"translate3d(\".concat(totalShiftedItems * (100 / this.state.numVisible), \"%, 0, 0)\");\n this.itemsContainer.style.transition = 'transform 500ms ease 0s';\n }\n\n this.setState({\n totalShiftedItems: totalShiftedItems\n });\n }\n }, {\n key: \"stopSlideShow\",\n value: function stopSlideShow() {\n if (this.props.slideShowActive && this.props.stopSlideShow) {\n this.props.stopSlideShow();\n }\n }\n }, {\n key: \"getMedianItemIndex\",\n value: function getMedianItemIndex() {\n var index = Math.floor(this.state.numVisible / 2);\n return this.state.numVisible % 2 ? index : index - 1;\n }\n }, {\n key: \"navBackward\",\n value: function navBackward(e) {\n this.stopSlideShow();\n var prevItemIndex = this.props.activeItemIndex !== 0 ? this.props.activeItemIndex - 1 : 0;\n var diff = prevItemIndex + this.state.totalShiftedItems;\n\n if (this.state.numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.state.totalShiftedItems !== 0 || this.props.circular)) {\n this.step(1);\n }\n\n this.props.onActiveItemChange({\n index: this.props.circular && this.props.activeItemIndex === 0 ? this.props.value.length - 1 : prevItemIndex\n });\n\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"navForward\",\n value: function navForward(e) {\n this.stopSlideShow();\n var nextItemIndex = this.props.activeItemIndex + 1;\n\n if (nextItemIndex + this.state.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.state.totalShiftedItems < this.getTotalPageNumber() - 1 || this.props.circular)) {\n this.step(-1);\n }\n\n this.props.onActiveItemChange({\n index: this.props.circular && this.props.value.length - 1 === this.props.activeItemIndex ? 0 : nextItemIndex\n });\n\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"onItemClick\",\n value: function onItemClick(event) {\n this.stopSlideShow();\n var selectedItemIndex = event.index;\n\n if (selectedItemIndex !== this.props.activeItemIndex) {\n var diff = selectedItemIndex + this.state.totalShiftedItems;\n var dir = 0;\n\n if (selectedItemIndex < this.props.activeItemIndex) {\n dir = this.state.numVisible - diff - 1 - this.getMedianItemIndex();\n\n if (dir > 0 && -1 * this.state.totalShiftedItems !== 0) {\n this.step(dir);\n }\n } else {\n dir = this.getMedianItemIndex() - diff;\n\n if (dir < 0 && -1 * this.state.totalShiftedItems < this.getTotalPageNumber() - 1) {\n this.step(dir);\n }\n }\n\n this.props.onActiveItemChange({\n index: selectedItemIndex\n });\n }\n }\n }, {\n key: \"onTransitionEnd\",\n value: function onTransitionEnd(e) {\n if (this.itemsContainer && e.propertyName === 'transform') {\n DomHandler.addClass(this.itemsContainer, 'p-items-hidden');\n this.itemsContainer.style.transition = '';\n }\n }\n }, {\n key: \"onTouchStart\",\n value: function onTouchStart(e) {\n var touchobj = e.changedTouches[0];\n this.startPos = {\n x: touchobj.pageX,\n y: touchobj.pageY\n };\n }\n }, {\n key: \"onTouchMove\",\n value: function onTouchMove(e) {\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n }, {\n key: \"onTouchEnd\",\n value: function onTouchEnd(e) {\n var touchobj = e.changedTouches[0];\n\n if (this.props.isVertical) {\n this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);\n } else {\n this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);\n }\n }\n }, {\n key: \"changePageOnTouch\",\n value: function changePageOnTouch(e, diff) {\n if (diff < 0) {\n // left\n this.navForward(e);\n } else {\n // right\n this.navBackward(e);\n }\n }\n }, {\n key: \"getTotalPageNumber\",\n value: function getTotalPageNumber() {\n return this.props.value.length > this.state.numVisible ? this.props.value.length - this.state.numVisible + 1 : 0;\n }\n }, {\n key: \"createStyle\",\n value: function createStyle() {\n if (!this.thumbnailsStyle) {\n this.thumbnailsStyle = DomHandler.createInlineStyle(PrimeReact.nonce);\n }\n\n var innerHTML = \"\\n .p-galleria-thumbnail-items[\".concat(this.attributeSelector, \"] .p-galleria-thumbnail-item {\\n flex: 1 0 \").concat(100 / this.state.numVisible, \"%\\n }\\n \");\n\n if (this.props.responsiveOptions) {\n this.responsiveOptions = _toConsumableArray(this.props.responsiveOptions);\n this.responsiveOptions.sort(function (data1, data2) {\n var value1 = data1.breakpoint;\n var value2 = data2.breakpoint;\n var result = null;\n if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {\n numeric: true\n });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n return -1 * result;\n });\n\n for (var i = 0; i < this.responsiveOptions.length; i++) {\n var res = this.responsiveOptions[i];\n innerHTML += \"\\n @media screen and (max-width: \".concat(res.breakpoint, \") {\\n .p-galleria-thumbnail-items[\").concat(this.attributeSelector, \"] .p-galleria-thumbnail-item {\\n flex: 1 0 \").concat(100 / res.numVisible, \"%\\n }\\n }\\n \");\n }\n }\n\n this.thumbnailsStyle.innerHTML = innerHTML;\n }\n }, {\n key: \"calculatePosition\",\n value: function calculatePosition() {\n if (this.itemsContainer && this.responsiveOptions) {\n var windowWidth = window.innerWidth;\n var matchedResponsiveData = {\n numVisible: this.props.numVisible\n };\n\n for (var i = 0; i < this.responsiveOptions.length; i++) {\n var res = this.responsiveOptions[i];\n\n if (parseInt(res.breakpoint, 10) >= windowWidth) {\n matchedResponsiveData = res;\n }\n }\n\n if (this.state.numVisible !== matchedResponsiveData.numVisible) {\n this.setState({\n numVisible: matchedResponsiveData.numVisible\n });\n }\n }\n }\n }, {\n key: \"bindDocumentListeners\",\n value: function bindDocumentListeners() {\n var _this3 = this;\n\n if (!this.documentResizeListener) {\n this.documentResizeListener = function () {\n _this3.calculatePosition();\n };\n\n window.addEventListener('resize', this.documentResizeListener);\n }\n }\n }, {\n key: \"unbindDocumentListeners\",\n value: function unbindDocumentListeners() {\n if (this.documentResizeListener) {\n window.removeEventListener('resize', this.documentResizeListener);\n this.documentResizeListener = null;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.itemsContainer) {\n this.itemsContainer.setAttribute(this.attributeSelector, '');\n }\n\n this.createStyle();\n this.calculatePosition();\n\n if (this.props.responsiveOptions) {\n this.bindDocumentListeners();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var totalShiftedItems = this.state.totalShiftedItems;\n\n if (prevState.numVisible !== this.state.numVisible || prevProps.activeItemIndex !== this.props.activeItemIndex) {\n if (this.props.activeItemIndex <= this.getMedianItemIndex()) {\n totalShiftedItems = 0;\n } else if (this.props.value.length - this.state.numVisible + this.getMedianItemIndex() < this.props.activeItemIndex) {\n totalShiftedItems = this.state.numVisible - this.props.value.length;\n } else if (this.props.value.length - this.state.numVisible < this.props.activeItemIndex && this.state.numVisible % 2 === 0) {\n totalShiftedItems = this.props.activeItemIndex * -1 + this.getMedianItemIndex() + 1;\n } else {\n totalShiftedItems = this.props.activeItemIndex * -1 + this.getMedianItemIndex();\n }\n\n if (totalShiftedItems !== this.state.totalShiftedItems) {\n this.setState({\n totalShiftedItems: totalShiftedItems\n });\n }\n\n this.itemsContainer.style.transform = this.props.isVertical ? \"translate3d(0, \".concat(totalShiftedItems * (100 / this.state.numVisible), \"%, 0)\") : \"translate3d(\".concat(totalShiftedItems * (100 / this.state.numVisible), \"%, 0, 0)\");\n\n if (prevProps.activeItemIndex !== this.props.activeItemIndex) {\n DomHandler.removeClass(this.itemsContainer, 'p-items-hidden');\n this.itemsContainer.style.transition = 'transform 500ms ease 0s';\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.responsiveOptions) {\n this.unbindDocumentListeners();\n }\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var _this4 = this;\n\n return this.props.value.map(function (item, index) {\n var firstIndex = _this4.state.totalShiftedItems * -1,\n lastIndex = firstIndex + _this4.state.numVisible - 1,\n isActive = firstIndex <= index && lastIndex >= index,\n start = firstIndex === index,\n end = lastIndex === index,\n current = _this4.props.activeItemIndex === index;\n return /*#__PURE__*/React.createElement(GalleriaThumbnailItem, {\n key: index,\n index: index,\n template: _this4.props.itemTemplate,\n item: item,\n active: isActive,\n start: start,\n end: end,\n onItemClick: _this4.onItemClick,\n current: current\n });\n });\n }\n }, {\n key: \"renderBackwardNavigator\",\n value: function renderBackwardNavigator() {\n if (this.props.showThumbnailNavigators) {\n var isDisabled = !this.props.circular && this.props.activeItemIndex === 0 || this.props.value.length <= this.state.numVisible;\n var buttonClassName = classNames('p-galleria-thumbnail-prev p-link', {\n 'p-disabled': isDisabled\n }),\n iconClassName = classNames('p-galleria-thumbnail-prev-icon pi', {\n 'pi-chevron-left': !this.props.isVertical,\n 'pi-chevron-up': this.props.isVertical\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n className: buttonClassName,\n onClick: this.navBackward,\n disabled: isDisabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderForwardNavigator\",\n value: function renderForwardNavigator() {\n if (this.props.showThumbnailNavigators) {\n var isDisabled = !this.props.circular && this.props.activeItemIndex === this.props.value.length - 1 || this.props.value.length <= this.state.numVisible;\n var buttonClassName = classNames('p-galleria-thumbnail-next p-link', {\n 'p-disabled': isDisabled\n }),\n iconClassName = classNames('p-galleria-thumbnail-next-icon pi', {\n 'pi-chevron-right': !this.props.isVertical,\n 'pi-chevron-down': this.props.isVertical\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n className: buttonClassName,\n onClick: this.navForward,\n disabled: isDisabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this5 = this;\n\n var items = this.renderItems();\n var height = this.props.isVertical ? this.props.contentHeight : '';\n var backwardNavigator = this.renderBackwardNavigator();\n var forwardNavigator = this.renderForwardNavigator();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-thumbnail-container\"\n }, backwardNavigator, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-thumbnail-items-container\",\n style: {\n 'height': height\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this5.itemsContainer = el;\n },\n className: \"p-galleria-thumbnail-items\",\n onTransitionEnd: this.onTransitionEnd,\n onTouchStart: this.onTouchStart,\n onTouchMove: this.onTouchMove,\n onTouchEnd: this.onTouchEnd\n }, items)), forwardNavigator);\n }\n }, {\n key: \"render\",\n value: function render() {\n var content = this.renderContent();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-thumbnail-wrapper\"\n }, content);\n }\n }]);\n\n return GalleriaThumbnails;\n}(Component);\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 Galleria = /*#__PURE__*/function (_Component) {\n _inherits(Galleria, _Component);\n\n var _super = _createSuper(Galleria);\n\n function Galleria(props) {\n var _this;\n\n _classCallCheck(this, Galleria);\n\n _this = _super.call(this, props);\n _this.state = {\n visible: false,\n numVisible: props.numVisible,\n slideShowActive: false\n };\n\n if (!_this.props.onItemChange) {\n _this.state = _objectSpread(_objectSpread({}, _this.state), {}, {\n activeIndex: props.activeIndex\n });\n }\n\n _this.onActiveItemChange = _this.onActiveItemChange.bind(_assertThisInitialized(_this));\n _this.show = _this.show.bind(_assertThisInitialized(_this));\n _this.hide = _this.hide.bind(_assertThisInitialized(_this));\n _this.startSlideShow = _this.startSlideShow.bind(_assertThisInitialized(_this));\n _this.stopSlideShow = _this.stopSlideShow.bind(_assertThisInitialized(_this));\n _this.onEnter = _this.onEnter.bind(_assertThisInitialized(_this));\n _this.onEntering = _this.onEntering.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.galleriaRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Galleria, [{\n key: \"activeItemIndex\",\n get: function get() {\n return this.props.onItemChange ? this.props.activeIndex : this.state.activeIndex;\n }\n }, {\n key: \"onActiveItemChange\",\n value: function onActiveItemChange(event) {\n if (this.props.onItemChange) {\n this.props.onItemChange(event);\n } else {\n this.setState({\n activeIndex: event.index\n });\n }\n }\n }, {\n key: \"show\",\n value: function show() {\n this.setState({\n visible: true\n });\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.setState({\n visible: false\n });\n }\n }, {\n key: \"onEnter\",\n value: function onEnter() {\n DomHandler.addClass(document.body, 'p-overflow-hidden');\n }\n }, {\n key: \"onEntering\",\n value: function onEntering() {\n ZIndexUtils.set('modal', this.mask, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['modal']);\n DomHandler.addMultipleClasses(this.mask, 'p-component-overlay p-component-overlay-enter');\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onExit\",\n value: function onExit() {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n DomHandler.addClass(this.mask, 'p-component-overlay-leave');\n }\n }, {\n key: \"onExited\",\n value: function onExited() {\n ZIndexUtils.clear(this.mask);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"isAutoPlayActive\",\n value: function isAutoPlayActive() {\n return this.state.slideShowActive;\n }\n }, {\n key: \"startSlideShow\",\n value: function startSlideShow() {\n var _this2 = this;\n\n this.interval = setInterval(function () {\n var activeIndex = _this2.props.circular && _this2.props.value.length - 1 === _this2.activeItemIndex ? 0 : _this2.activeItemIndex + 1;\n\n _this2.onActiveItemChange({\n index: activeIndex\n });\n }, this.props.transitionInterval);\n this.setState({\n slideShowActive: true\n });\n }\n }, {\n key: \"stopSlideShow\",\n value: function stopSlideShow() {\n if (this.interval) {\n clearInterval(this.interval);\n }\n\n this.setState({\n slideShowActive: false\n });\n }\n }, {\n key: \"getPositionClassName\",\n value: function getPositionClassName(preClassName, position) {\n var positions = ['top', 'left', 'bottom', 'right'];\n var pos = positions.find(function (item) {\n return item === position;\n });\n return pos ? \"\".concat(preClassName, \"-\").concat(pos) : '';\n }\n }, {\n key: \"isVertical\",\n value: function isVertical() {\n return this.props.thumbnailsPosition === 'left' || this.props.thumbnailsPosition === 'right';\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (prevProps.value !== this.props.value) {\n if (this.props.value && this.props.value.length < this.state.numVisible) {\n this.setState({\n numVisible: this.props.value.length\n });\n }\n }\n\n if (prevProps.numVisible !== this.props.numVisible) {\n this.setState({\n numVisible: this.props.numVisible\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.state.slideShowActive) {\n this.stopSlideShow();\n }\n\n ZIndexUtils.clear(this.mask);\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader() {\n if (this.props.header) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-header\"\n }, this.props.header);\n }\n\n return null;\n }\n }, {\n key: \"renderFooter\",\n value: function renderFooter() {\n if (this.props.footer) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-footer\"\n }, this.props.footer);\n }\n\n return null;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this3 = this;\n\n var isVertical = this.isVertical();\n var thumbnailsPosClassName = this.props.showThumbnails && this.getPositionClassName('p-galleria-thumbnails', this.props.thumbnailsPosition);\n var indicatorPosClassName = this.props.showIndicators && this.getPositionClassName('p-galleria-indicators', this.props.indicatorsPosition);\n var galleriaClassName = classNames('p-galleria p-component', this.props.className, {\n 'p-galleria-fullscreen': this.props.fullScreen,\n 'p-galleria-indicator-onitem': this.props.showIndicatorsOnItem,\n 'p-galleria-item-nav-onhover': this.props.showItemNavigatorsOnHover && !this.props.fullScreen\n }, thumbnailsPosClassName, indicatorPosClassName);\n var closeIcon = this.props.fullScreen && /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-galleria-close p-link\",\n onClick: this.hide\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-galleria-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n var header = this.renderHeader();\n var footer = this.renderFooter();\n var element = /*#__PURE__*/React.createElement(\"div\", {\n ref: this.galleriaRef,\n id: this.props.id,\n className: galleriaClassName,\n style: this.props.style\n }, closeIcon, header, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-galleria-content\"\n }, /*#__PURE__*/React.createElement(GalleriaItem, {\n ref: function ref(el) {\n return _this3.previewContent = el;\n },\n value: this.props.value,\n activeItemIndex: this.activeItemIndex,\n onActiveItemChange: this.onActiveItemChange,\n itemTemplate: this.props.item,\n circular: this.props.circular,\n caption: this.props.caption,\n showIndicators: this.props.showIndicators,\n changeItemOnIndicatorHover: this.props.changeItemOnIndicatorHover,\n indicator: this.props.indicator,\n showItemNavigators: this.props.showItemNavigators,\n autoPlay: this.props.autoPlay,\n slideShowActive: this.state.slideShowActive,\n startSlideShow: this.startSlideShow,\n stopSlideShow: this.stopSlideShow\n }), this.props.showThumbnails && /*#__PURE__*/React.createElement(GalleriaThumbnails, {\n value: this.props.value,\n activeItemIndex: this.activeItemIndex,\n onActiveItemChange: this.onActiveItemChange,\n itemTemplate: this.props.thumbnail,\n numVisible: this.state.numVisible,\n responsiveOptions: this.props.responsiveOptions,\n circular: this.props.circular,\n isVertical: isVertical,\n contentHeight: this.props.verticalThumbnailViewPortHeight,\n showThumbnailNavigators: this.props.showThumbnailNavigators,\n autoPlay: this.props.autoPlay,\n slideShowActive: this.state.slideShowActive,\n stopSlideShow: this.stopSlideShow\n })), footer);\n return element;\n }\n }, {\n key: \"renderGalleria\",\n value: function renderGalleria() {\n var _this4 = this;\n\n var element = this.renderElement();\n\n if (this.props.fullScreen) {\n var maskClassName = classNames('p-galleria-mask', {\n 'p-galleria-visible': this.state.visible\n });\n var galleriaWrapper = /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this4.mask = el;\n },\n className: maskClassName\n }, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.galleriaRef,\n classNames: \"p-galleria\",\n \"in\": this.state.visible,\n timeout: {\n enter: 150,\n exit: 150\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onEnter,\n onEntering: this.onEntering,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExited: this.onExited\n }, element));\n return /*#__PURE__*/React.createElement(Portal, {\n element: galleriaWrapper\n });\n } else {\n return element;\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.props.value && this.props.value.length > 0 && this.renderGalleria();\n }\n }]);\n\n return Galleria;\n}(Component);\n\n_defineProperty(Galleria, \"defaultProps\", {\n id: null,\n value: null,\n activeIndex: 0,\n fullScreen: false,\n item: null,\n thumbnail: null,\n indicator: null,\n caption: null,\n className: null,\n style: null,\n header: null,\n footer: null,\n numVisible: 3,\n responsiveOptions: null,\n showItemNavigators: false,\n showThumbnailNavigators: true,\n showItemNavigatorsOnHover: false,\n changeItemOnIndicatorHover: false,\n circular: false,\n autoPlay: false,\n transitionInterval: 4000,\n showThumbnails: true,\n thumbnailsPosition: \"bottom\",\n verticalThumbnailViewPortHeight: \"300px\",\n showIndicators: false,\n showIndicatorsOnItem: false,\n indicatorsPosition: \"bottom\",\n baseZIndex: 0,\n transitionOptions: null,\n onItemChange: null\n});\n\nexport { Galleria };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,iBAArB,EAAwCC,UAAxC,EAAoDC,WAApD,QAAuE,kBAAvE;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,SAASC,aAAT,QAA8B,0BAA9B;AACA,SAASC,MAAT,QAAuB,mBAAvB;;AAEA,SAASC,eAAT,CAAyBC,QAAzB,EAAmCC,WAAnC,EAAgD;EAC9C,IAAI,EAAED,QAAQ,YAAYC,WAAtB,CAAJ,EAAwC;IACtC,MAAM,IAAIC,SAAJ,CAAc,mCAAd,CAAN;EACD;AACF;;AAED,SAASC,iBAAT,CAA2BC,MAA3B,EAAmCC,KAAnC,EAA0C;EACxC,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGD,KAAK,CAACE,MAA1B,EAAkCD,CAAC,EAAnC,EAAuC;IACrC,IAAIE,UAAU,GAAGH,KAAK,CAACC,CAAD,CAAtB;IACAE,UAAU,CAACC,UAAX,GAAwBD,UAAU,CAACC,UAAX,IAAyB,KAAjD;IACAD,UAAU,CAACE,YAAX,GAA0B,IAA1B;IACA,IAAI,WAAWF,UAAf,EAA2BA,UAAU,CAACG,QAAX,GAAsB,IAAtB;IAC3BC,MAAM,CAACC,cAAP,CAAsBT,MAAtB,EAA8BI,UAAU,CAACM,GAAzC,EAA8CN,UAA9C;EACD;AACF;;AAED,SAASO,YAAT,CAAsBd,WAAtB,EAAmCe,UAAnC,EAA+CC,WAA/C,EAA4D;EAC1D,IAAID,UAAJ,EAAgBb,iBAAiB,CAACF,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