{"ast":null,"code":"import React, { Component } from 'react';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { DomHandler, ZIndexUtils, classNames, ObjectUtils } from 'primereact/utils';\nimport { Portal } from 'primereact/portal';\nimport PrimeReact from 'primereact/api';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper(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 Image = /*#__PURE__*/function (_Component) {\n _inherits(Image, _Component);\n\n var _super = _createSuper(Image);\n\n function Image(props) {\n var _this;\n\n _classCallCheck(this, Image);\n\n _this = _super.call(this, props);\n _this.state = {\n maskVisible: false,\n previewVisible: false,\n rotate: 0,\n scale: 1\n };\n _this.onImageClick = _this.onImageClick.bind(_assertThisInitialized(_this));\n _this.onMaskClick = _this.onMaskClick.bind(_assertThisInitialized(_this));\n _this.onDownload = _this.onDownload.bind(_assertThisInitialized(_this));\n _this.rotateRight = _this.rotateRight.bind(_assertThisInitialized(_this));\n _this.rotateLeft = _this.rotateLeft.bind(_assertThisInitialized(_this));\n _this.zoomIn = _this.zoomIn.bind(_assertThisInitialized(_this));\n _this.zoomOut = _this.zoomOut.bind(_assertThisInitialized(_this));\n _this.onEntering = _this.onEntering.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onPreviewImageClick = _this.onPreviewImageClick.bind(_assertThisInitialized(_this));\n _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));\n _this.onExiting = _this.onExiting.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.previewRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Image, [{\n key: \"onImageClick\",\n value: function onImageClick() {\n var _this2 = this;\n\n if (this.props.preview) {\n this.setState({\n maskVisible: true\n });\n setTimeout(function () {\n _this2.setState({\n previewVisible: true\n });\n }, 25);\n }\n }\n }, {\n key: \"onPreviewImageClick\",\n value: function onPreviewImageClick() {\n this.previewClick = true;\n }\n }, {\n key: \"onMaskClick\",\n value: function onMaskClick() {\n if (!this.previewClick) {\n this.setState({\n previewVisible: false\n });\n this.setState({\n rotate: 0\n });\n this.setState({\n scale: 1\n });\n }\n\n this.previewClick = false;\n }\n }, {\n key: \"onDownload\",\n value: function onDownload() {\n var _this$props = this.props,\n name = _this$props.alt,\n src = _this$props.src;\n DomHandler.saveAs({\n name: name,\n src: src\n });\n this.previewClick = true;\n }\n }, {\n key: \"rotateRight\",\n value: function rotateRight() {\n this.setState(function (prevState) {\n return {\n rotate: prevState.rotate + 90\n };\n });\n this.previewClick = true;\n }\n }, {\n key: \"rotateLeft\",\n value: function rotateLeft() {\n this.setState(function (prevState) {\n return {\n rotate: prevState.rotate - 90\n };\n });\n this.previewClick = true;\n }\n }, {\n key: \"zoomIn\",\n value: function zoomIn() {\n this.setState(function (prevState) {\n return {\n scale: prevState.scale + 0.1\n };\n });\n this.previewClick = true;\n }\n }, {\n key: \"zoomOut\",\n value: function zoomOut() {\n this.setState(function (prevState) {\n return {\n scale: prevState.scale - 0.1\n };\n });\n this.previewClick = true;\n }\n }, {\n key: \"onEntering\",\n value: function onEntering() {\n ZIndexUtils.set('modal', this.mask, PrimeReact.autoZIndex, PrimeReact.zIndex['modal']);\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n if (this.props.onShow) {\n this.props.onShow();\n }\n }\n }, {\n key: \"onExit\",\n value: function onExit() {\n DomHandler.addClass(this.mask, 'p-component-overlay-leave');\n }\n }, {\n key: \"onExiting\",\n value: function onExiting() {\n if (this.props.onHide) {\n this.props.onHide();\n }\n }\n }, {\n key: \"onExited\",\n value: function onExited(el) {\n ZIndexUtils.clear(el);\n this.setState({\n maskVisible: false\n });\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.mask) {\n ZIndexUtils.clear(this.container);\n }\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this3 = this;\n\n var downloadable = this.props.downloadable;\n var imagePreviewStyle = {\n transform: 'rotate(' + this.state.rotate + 'deg) scale(' + this.state.scale + ')'\n };\n var zoomDisabled = this.state.scale <= 0.5 || this.state.scale >= 1.5; // const rotateClassName = 'p-image-preview-rotate-' + this.state.rotate;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this3.mask = el;\n },\n className: \"p-image-mask p-component-overlay p-component-overlay-enter\",\n onClick: this.onMaskClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-image-toolbar\"\n }, downloadable && /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.onDownload,\n type: \"button\"\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-download\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.rotateRight,\n type: \"button\"\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-refresh\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.rotateLeft,\n type: \"button\"\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-undo\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.zoomOut,\n type: \"button\",\n disabled: zoomDisabled\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-search-minus\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.zoomIn,\n type: \"button\",\n disabled: zoomDisabled\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-search-plus\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n type: \"button\",\n onClick: this.hidePreview\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-times\"\n }))), /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.previewRef,\n classNames: \"p-image-preview\",\n \"in\": this.state.previewVisible,\n timeout: {\n enter: 150,\n exit: 150\n },\n unmountOnExit: true,\n onEntering: this.onEntering,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.previewRef\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: this.props.src,\n className: \"p-image-preview\",\n style: imagePreviewStyle,\n onClick: this.onPreviewImageClick,\n alt: this.props.alt\n }))));\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var containerClassName = classNames('p-image p-component', this.props.className, {\n 'p-image-preview-container': this.props.preview\n });\n var element = this.renderElement();\n var content = this.props.template ? ObjectUtils.getJSXElement(this.props.template, this.props) : /*#__PURE__*/React.createElement(\"i\", {\n className: \"p-image-preview-icon pi pi-eye\"\n });\n var _this$props2 = this.props,\n src = _this$props2.src,\n alt = _this$props2.alt,\n width = _this$props2.width,\n height = _this$props2.height;\n return /*#__PURE__*/React.createElement(\"span\", {\n ref: function ref(el) {\n return _this4.container = el;\n },\n className: containerClassName,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: src,\n className: this.props.imageClassName,\n width: width,\n height: height,\n style: this.props.imageStyle,\n alt: alt\n }), this.props.preview && /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-image-preview-indicator\",\n onClick: this.onImageClick\n }, content), this.state.maskVisible && /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: document.body\n }));\n }\n }]);\n\n return Image;\n}(Component);\n\n_defineProperty(Image, \"defaultProps\", {\n preview: false,\n className: null,\n downloadable: false,\n style: null,\n imageStyle: null,\n imageClassName: null,\n template: null,\n src: null,\n alt: null,\n width: null,\n height: null\n});\n\nexport { Image };","map":{"version":3,"names":["React","Component","CSSTransition","DomHandler","ZIndexUtils","classNames","ObjectUtils","Portal","PrimeReact","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","Image","_Component","_super","_this","state","maskVisible","previewVisible","rotate","scale","onImageClick","bind","onMaskClick","onDownload","rotateRight","rotateLeft","zoomIn","zoomOut","onEntering","onEntered","onPreviewImageClick","onExit","onExiting","onExited","previewRef","createRef","_this2","preview","setState","setTimeout","previewClick","_this$props","name","alt","src","saveAs","prevState","set","mask","autoZIndex","zIndex","onShow","addClass","onHide","el","clear","componentWillUnmount","container","renderElement","_this3","downloadable","imagePreviewStyle","transform","zoomDisabled","createElement","ref","className","onClick","type","disabled","hidePreview","nodeRef","timeout","enter","exit","unmountOnExit","style","render","_this4","containerClassName","element","content","template","getJSXElement","_this$props2","width","height","imageClassName","imageStyle","appendTo","document","body"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/image/image.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { DomHandler, ZIndexUtils, classNames, ObjectUtils } from 'primereact/utils';\nimport { Portal } from 'primereact/portal';\nimport PrimeReact from 'primereact/api';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper(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 Image = /*#__PURE__*/function (_Component) {\n _inherits(Image, _Component);\n\n var _super = _createSuper(Image);\n\n function Image(props) {\n var _this;\n\n _classCallCheck(this, Image);\n\n _this = _super.call(this, props);\n _this.state = {\n maskVisible: false,\n previewVisible: false,\n rotate: 0,\n scale: 1\n };\n _this.onImageClick = _this.onImageClick.bind(_assertThisInitialized(_this));\n _this.onMaskClick = _this.onMaskClick.bind(_assertThisInitialized(_this));\n _this.onDownload = _this.onDownload.bind(_assertThisInitialized(_this));\n _this.rotateRight = _this.rotateRight.bind(_assertThisInitialized(_this));\n _this.rotateLeft = _this.rotateLeft.bind(_assertThisInitialized(_this));\n _this.zoomIn = _this.zoomIn.bind(_assertThisInitialized(_this));\n _this.zoomOut = _this.zoomOut.bind(_assertThisInitialized(_this));\n _this.onEntering = _this.onEntering.bind(_assertThisInitialized(_this));\n _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));\n _this.onPreviewImageClick = _this.onPreviewImageClick.bind(_assertThisInitialized(_this));\n _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));\n _this.onExiting = _this.onExiting.bind(_assertThisInitialized(_this));\n _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));\n _this.previewRef = /*#__PURE__*/React.createRef();\n return _this;\n }\n\n _createClass(Image, [{\n key: \"onImageClick\",\n value: function onImageClick() {\n var _this2 = this;\n\n if (this.props.preview) {\n this.setState({\n maskVisible: true\n });\n setTimeout(function () {\n _this2.setState({\n previewVisible: true\n });\n }, 25);\n }\n }\n }, {\n key: \"onPreviewImageClick\",\n value: function onPreviewImageClick() {\n this.previewClick = true;\n }\n }, {\n key: \"onMaskClick\",\n value: function onMaskClick() {\n if (!this.previewClick) {\n this.setState({\n previewVisible: false\n });\n this.setState({\n rotate: 0\n });\n this.setState({\n scale: 1\n });\n }\n\n this.previewClick = false;\n }\n }, {\n key: \"onDownload\",\n value: function onDownload() {\n var _this$props = this.props,\n name = _this$props.alt,\n src = _this$props.src;\n DomHandler.saveAs({\n name: name,\n src: src\n });\n this.previewClick = true;\n }\n }, {\n key: \"rotateRight\",\n value: function rotateRight() {\n this.setState(function (prevState) {\n return {\n rotate: prevState.rotate + 90\n };\n });\n this.previewClick = true;\n }\n }, {\n key: \"rotateLeft\",\n value: function rotateLeft() {\n this.setState(function (prevState) {\n return {\n rotate: prevState.rotate - 90\n };\n });\n this.previewClick = true;\n }\n }, {\n key: \"zoomIn\",\n value: function zoomIn() {\n this.setState(function (prevState) {\n return {\n scale: prevState.scale + 0.1\n };\n });\n this.previewClick = true;\n }\n }, {\n key: \"zoomOut\",\n value: function zoomOut() {\n this.setState(function (prevState) {\n return {\n scale: prevState.scale - 0.1\n };\n });\n this.previewClick = true;\n }\n }, {\n key: \"onEntering\",\n value: function onEntering() {\n ZIndexUtils.set('modal', this.mask, PrimeReact.autoZIndex, PrimeReact.zIndex['modal']);\n }\n }, {\n key: \"onEntered\",\n value: function onEntered() {\n if (this.props.onShow) {\n this.props.onShow();\n }\n }\n }, {\n key: \"onExit\",\n value: function onExit() {\n DomHandler.addClass(this.mask, 'p-component-overlay-leave');\n }\n }, {\n key: \"onExiting\",\n value: function onExiting() {\n if (this.props.onHide) {\n this.props.onHide();\n }\n }\n }, {\n key: \"onExited\",\n value: function onExited(el) {\n ZIndexUtils.clear(el);\n this.setState({\n maskVisible: false\n });\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.mask) {\n ZIndexUtils.clear(this.container);\n }\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this3 = this;\n\n var downloadable = this.props.downloadable;\n var imagePreviewStyle = {\n transform: 'rotate(' + this.state.rotate + 'deg) scale(' + this.state.scale + ')'\n };\n var zoomDisabled = this.state.scale <= 0.5 || this.state.scale >= 1.5; // const rotateClassName = 'p-image-preview-rotate-' + this.state.rotate;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this3.mask = el;\n },\n className: \"p-image-mask p-component-overlay p-component-overlay-enter\",\n onClick: this.onMaskClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-image-toolbar\"\n }, downloadable && /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.onDownload,\n type: \"button\"\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-download\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.rotateRight,\n type: \"button\"\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-refresh\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.rotateLeft,\n type: \"button\"\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-undo\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.zoomOut,\n type: \"button\",\n disabled: zoomDisabled\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-search-minus\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n onClick: this.zoomIn,\n type: \"button\",\n disabled: zoomDisabled\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-search-plus\"\n })), /*#__PURE__*/React.createElement(\"button\", {\n className: \"p-image-action p-link\",\n type: \"button\",\n onClick: this.hidePreview\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"pi pi-times\"\n }))), /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.previewRef,\n classNames: \"p-image-preview\",\n \"in\": this.state.previewVisible,\n timeout: {\n enter: 150,\n exit: 150\n },\n unmountOnExit: true,\n onEntering: this.onEntering,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.previewRef\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: this.props.src,\n className: \"p-image-preview\",\n style: imagePreviewStyle,\n onClick: this.onPreviewImageClick,\n alt: this.props.alt\n }))));\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var containerClassName = classNames('p-image p-component', this.props.className, {\n 'p-image-preview-container': this.props.preview\n });\n var element = this.renderElement();\n var content = this.props.template ? ObjectUtils.getJSXElement(this.props.template, this.props) : /*#__PURE__*/React.createElement(\"i\", {\n className: \"p-image-preview-icon pi pi-eye\"\n });\n var _this$props2 = this.props,\n src = _this$props2.src,\n alt = _this$props2.alt,\n width = _this$props2.width,\n height = _this$props2.height;\n return /*#__PURE__*/React.createElement(\"span\", {\n ref: function ref(el) {\n return _this4.container = el;\n },\n className: containerClassName,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: src,\n className: this.props.imageClassName,\n width: width,\n height: height,\n style: this.props.imageStyle,\n alt: alt\n }), this.props.preview && /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-image-preview-indicator\",\n onClick: this.onImageClick\n }, content), this.state.maskVisible && /*#__PURE__*/React.createElement(Portal, {\n element: element,\n appendTo: document.body\n }));\n }\n }]);\n\n return Image;\n}(Component);\n\n_defineProperty(Image, \"defaultProps\", {\n preview: false,\n className: null,\n downloadable: false,\n style: null,\n imageStyle: null,\n imageClassName: null,\n template: null,\n src: null,\n alt: null,\n width: null,\n height: null\n});\n\nexport { Image };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,0BAA9B;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,UAAlC,EAA8CC,WAA9C,QAAiE,kBAAjE;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,OAAOC,UAAP,MAAuB,gBAAvB;;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,C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