-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2-44ad3c7f65f783f9c5e2.js.map
1 lines (1 loc) · 46.9 KB
/
2-44ad3c7f65f783f9c5e2.js.map
1
{"version":3,"sources":["webpack:///./node_modules/react-modal-image/es/styles.js","webpack:///./node_modules/react-modal-image/es/icons.js","webpack:///./node_modules/react-modal-image/es/Header.js","webpack:///./node_modules/react-modal-image/es/Image.js","webpack:///./node_modules/react-modal-image/es/Lightbox.js","webpack:///./node_modules/react-modal-image/es/index.js","webpack:///./node_modules/core-js/modules/es6.string.small.js","webpack:///./node_modules/core-js/modules/_string-html.js"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_possibleConstructorReturn","self","call","ReferenceError","_assertThisInitialized","_getPrototypeOf","o","setPrototypeOf","getPrototypeOf","__proto__","_setPrototypeOf","p","StyleInjector","_Component","instance","Constructor","TypeError","_classCallCheck","this","apply","arguments","protoProps","staticProps","subClass","superClass","create","value","_inherits","react","id","css","document","head","querySelector","node","createElement","textContent","type","appendChild","appendStyle","name","getElementById","parentNode","removeChild","lightboxStyles","_ref","imageBackgroundColor","concat","icons_ZoomInIcon","react_default","a","fill","height","viewBox","width","xmlns","d","icons_ZoomOutIcon","icons_DownloadIcon","icons_CloseIcon","icons_SpinnerIcon","icons_RotateIcon","es_Header","image","alt","zoomed","toggleZoom","toggleRotate","onClose","enableDownload","enableZoom","enableRotate","className","href","download","onClick","Image_typeof","Image_defineProperties","Image_getPrototypeOf","Image_assertThisInitialized","Image_setPrototypeOf","_defineProperty","Image_Image","Image","_getPrototypeOf2","_this","Image_classCallCheck","_len","args","Array","_key","loading","setState","event","contextMenu","preventDefault","Image_inherits","_this$props","src","style","handleDoubleClick","state","onLoad","handleOnLoad","onDoubleClick","onContextMenu","handleOnContextMenu","Lightbox_typeof","Lightbox_defineProperties","Lightbox_getPrototypeOf","Lightbox_assertThisInitialized","Lightbox_setPrototypeOf","Lightbox_defineProperty","Lightbox_Lightbox","Lightbox","Lightbox_classCallCheck","move","x","y","moveStart","undefined","rotationDeg","keyCode","point","changedTouches","dim","contentEl","getBoundingClientRect","clientX","left","clientY","top","touches","coords","getCoordinatesIfOverImg","prev","prevState","Lightbox_inherits","addEventListener","handleKeyDown","removeEventListener","_this2","medium","large","hideDownload","hideZoom","showRotate","_this$props$imageBack","_this$state","onMouseDown","handleMouseDownOrTouchStart","onMouseUp","handleMouseUpOrTouchEnd","onMouseMove","handleMouseMoveOrTouchMove","onTouchStart","onTouchEnd","onTouchMove","ref","el","transform","WebkitTransform","MsTransform","es_typeof","es_defineProperties","es_getPrototypeOf","es_assertThisInitialized","es_setPrototypeOf","es_defineProperty","__webpack_require__","__webpack_exports__","es_default","_default","es_classCallCheck","modalOpen","es_inherits","small","smallSrcSet","cursor","maxWidth","maxHeight","toggleModal","srcSet","createHTML","$export","fails","defined","quot","string","tag","attribute","S","String","p1","replace","module","exports","NAME","exec","O","P","F","test","toLowerCase","split"],"mappings":"6IAKA,SAAAA,EAAAC,GAWA,OATAD,EADA,mBAAAE,QAAA,iBAAAA,OAAAC,SACA,SAAAF,GACA,cAAAA,GAGA,SAAAA,GACA,OAAAA,GAAA,mBAAAC,QAAAD,EAAAG,cAAAF,QAAAD,IAAAC,OAAAG,UAAA,gBAAAJ,IAIAA,GASA,SAAAK,EAAAC,EAAAC,GACA,QAAAC,EAAA,EAAiBA,EAAAD,EAAAE,OAAkBD,IAAA,CACnC,IAAAE,EAAAH,EAAAC,GACAE,EAAAC,WAAAD,EAAAC,aAAA,EACAD,EAAAE,cAAA,EACA,UAAAF,MAAAG,UAAA,GACAC,OAAAC,eAAAT,EAAAI,EAAAM,IAAAN,IAUA,SAAAO,EAAAC,EAAAC,GACA,OAAAA,GAAA,WAAApB,EAAAoB,IAAA,mBAAAA,EAOA,SAAAD,GACA,YAAAA,EACA,UAAAE,eAAA,6DAGA,OAAAF,EARAG,CAAAH,GAHAC,EAcA,SAAAG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,EAAQ,CACnD6B,SACAC,QACA/E,MACAI,QAAAlD,KAAAmK,YACArC,eACAC,WACAC,aACApG,+BA1IkBsH,EAAiBrJ,EAAA5B,UAAAkC,GACnCC,GAAmB8I,EAAiBrJ,EAAAO,GA8IpCsJ,EAtEA,qCC3GAH,EAAQ,IAARA,CAAwB,iBAAAc,GACxB,kBACA,OAAAA,EAAArK,KAAA,uCCJA,IAAAsK,EAAcf,EAAQ,GACtBgB,EAAYhB,EAAQ,IACpBiB,EAAcjB,EAAQ,IACtBkB,EAAA,KAEAJ,EAAA,SAAAK,EAAAC,EAAAC,EAAApK,GACA,IAAAqK,EAAAC,OAAAN,EAAAE,IACAK,EAAA,IAAAJ,EAEA,MADA,KAAAC,IAAAG,GAAA,IAAAH,EAAA,KAAAE,OAAAtK,GAAAwK,QAAAP,EAAA,UAA0F,KAC1FM,EAAA,IAAAF,EAAA,KAAAF,EAAA,KAEAM,EAAAC,QAAA,SAAAC,EAAAC,GACA,IAAAC,EAAA,GACAA,EAAAF,GAAAC,EAAAf,GACAC,IAAAgB,EAAAhB,EAAAiB,EAAAhB,EAAA,WACA,IAAAiB,EAAA,GAAAL,GAAA,KACA,OAAAK,MAAAC,eAAAD,EAAAE,MAAA,KAAApN,OAAA,IACG,SAAA+M","file":"2-44ad3c7f65f783f9c5e2.js","sourcesContent":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.object.set-prototype-of\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _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 return Constructor;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\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 _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 _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 if (superClass) _setPrototypeOf(subClass, superClass);\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\nimport { Component } from \"react\";\n\nfunction appendStyle(id, css) {\n if (!document.head.querySelector(\"#\" + id)) {\n var node = document.createElement(\"style\");\n node.textContent = css;\n node.type = \"text/css\";\n node.id = id;\n document.head.appendChild(node);\n }\n}\n\nvar StyleInjector =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(StyleInjector, _Component);\n\n function StyleInjector() {\n _classCallCheck(this, StyleInjector);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(StyleInjector).apply(this, arguments));\n }\n\n _createClass(StyleInjector, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n appendStyle(this.props.name, this.props.css);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var node = document.getElementById(this.props.name);\n node.parentNode.removeChild(node);\n }\n }, {\n key: \"render\",\n value: function render() {\n return null;\n }\n }]);\n\n return StyleInjector;\n}(Component);\n\nexport { StyleInjector as default };\nexport var lightboxStyles = function lightboxStyles(_ref) {\n var imageBackgroundColor = _ref.imageBackgroundColor;\n return \"\\n body {\\n overflow: hidden;\\n }\\n\\n .__react_modal_image__modal_container {\\n position: fixed;\\n z-index: 5000;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n background-color: rgba(0, 0, 0, 0.8);\\n touch-action: none;\\n overflow: hidden;\\n }\\n\\n .__react_modal_image__modal_content {\\n position: relative;\\n height: 100%;\\n width: 100%;\\n }\\n\\n .__react_modal_image__modal_content img, \\n .__react_modal_image__modal_content svg {\\n position: absolute;\\n top: 50%;\\n left: 50%;\\n transform: translate3d(-50%, -50%, 0);\\n -webkit-transform: translate3d(-50%, -50%, 0);\\n -ms-transform: translate3d(-50%, -50%, 0);\\n overflow: hidden;\\n }\\n\\n .__react_modal_image__medium_img {\\n max-width: 98%;\\n max-height: 98%;\\n background-color: \".concat(imageBackgroundColor, \";\\n }\\n\\n .__react_modal_image__large_img {\\n cursor: move;\\n background-color: \").concat(imageBackgroundColor, \"\\n }\\n\\n .__react_modal_image__icon_menu a {\\n display: inline-block;\\n font-size: 40px;\\n cursor: pointer;\\n line-height: 40px;\\n box-sizing: border-box;\\n border: none;\\n padding: 0px 5px 0px 5px;\\n margin-left: 10px;\\n color: white;\\n background-color: rgba(0, 0, 0, 0);\\n }\\n\\n .__react_modal_image__icon_menu {\\n display: inline-block;\\n float: right;\\n }\\n\\n .__react_modal_image__caption {\\n display: inline-block;\\n color: white;\\n font-size: 120%;\\n padding: 10px;\\n margin: 0;\\n }\\n\\n .__react_modal_image__header {\\n position: absolute;\\n top: 0;\\n width: 100%;\\n background-color: rgba(0, 0, 0, 0.7);\\n overflow: hidden;\\n }\\n\");\n};","/* \n Icons from https://material.io/icons/\n*/\nimport React from \"react\";\nexport var ZoomInIcon = function ZoomInIcon() {\n return React.createElement(\"svg\", {\n fill: \"#ffffff\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, React.createElement(\"path\", {\n d: \"M0 0h24v24H0z\",\n fill: \"none\"\n }), React.createElement(\"path\", {\n d: \"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z\"\n }));\n};\nexport var ZoomOutIcon = function ZoomOutIcon() {\n return React.createElement(\"svg\", {\n fill: \"#ffffff\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, React.createElement(\"path\", {\n d: \"M0 0h24v24H0z\",\n fill: \"none\"\n }), React.createElement(\"path\", {\n d: \"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z\"\n }));\n};\nexport var DownloadIcon = function DownloadIcon() {\n return React.createElement(\"svg\", {\n fill: \"#ffffff\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, React.createElement(\"path\", {\n d: \"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z\"\n }), React.createElement(\"path\", {\n d: \"M0 0h24v24H0z\",\n fill: \"none\"\n }));\n};\nexport var CloseIcon = function CloseIcon() {\n return React.createElement(\"svg\", {\n fill: \"#ffffff\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n width: \"24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, React.createElement(\"path\", {\n d: \"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n }), React.createElement(\"path\", {\n d: \"M0 0h24v24H0z\",\n fill: \"none\"\n }));\n};\nexport var SpinnerIcon = function SpinnerIcon() {\n return React.createElement(\"svg\", {\n fill: \"#ffffff\",\n height: \"48\",\n viewBox: \"0 0 24 24\",\n width: \"48\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, React.createElement(\"path\", {\n d: \"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z\"\n }), React.createElement(\"path\", {\n d: \"M0 0h24v24H0V0z\",\n fill: \"none\"\n }));\n};\nexport var RotateIcon = function RotateIcon() {\n return React.createElement(\"svg\", {\n fill: \"#ffffff\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, React.createElement(\"path\", {\n fill: \"none\",\n d: \"M0 0h24v24H0V0zm0 0h24v24H0V0z\"\n }), React.createElement(\"path\", {\n d: \"M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81 1.33-1.33C19.8 4.07 22.14 7.24 22.5 11H24c-.51-6.16-5.66-11-11.95-11zM16 14h2V8c0-1.11-.9-2-2-2h-6v2h6v6zm-8 2V4H6v2H4v2h2v8c0 1.1.89 2 2 2h8v2h2v-2h2v-2H8z\"\n }));\n};","import React from \"react\";\nimport { ZoomInIcon, ZoomOutIcon, DownloadIcon, CloseIcon, RotateIcon } from \"./icons\";\n\nvar Header = function Header(_ref) {\n var image = _ref.image,\n alt = _ref.alt,\n zoomed = _ref.zoomed,\n toggleZoom = _ref.toggleZoom,\n toggleRotate = _ref.toggleRotate,\n onClose = _ref.onClose,\n enableDownload = _ref.enableDownload,\n enableZoom = _ref.enableZoom,\n enableRotate = _ref.enableRotate;\n return React.createElement(\"div\", {\n className: \"__react_modal_image__header\"\n }, React.createElement(\"span\", {\n className: \"__react_modal_image__icon_menu\"\n }, enableDownload && React.createElement(\"a\", {\n href: image,\n download: true\n }, React.createElement(DownloadIcon, null)), enableZoom && React.createElement(\"a\", {\n onClick: toggleZoom\n }, zoomed ? React.createElement(ZoomOutIcon, null) : React.createElement(ZoomInIcon, null)), enableRotate && React.createElement(\"a\", {\n onClick: toggleRotate\n }, React.createElement(RotateIcon, null)), React.createElement(\"a\", {\n onClick: onClose\n }, React.createElement(CloseIcon, null))), alt && React.createElement(\"span\", {\n className: \"__react_modal_image__caption\"\n }, alt));\n};\n\nexport default Header;","import \"core-js/modules/es6.object.set-prototype-of\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _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 return Constructor;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\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 _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 _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 if (superClass) _setPrototypeOf(subClass, superClass);\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 _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\nimport React, { Component } from \"react\";\nimport { SpinnerIcon } from \"./icons\";\n\nvar Image =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Image, _Component);\n\n function Image() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Image);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Image)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n loading: true\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnLoad\", function () {\n _this.setState({\n loading: false\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnContextMenu\", function (event) {\n !_this.props.contextMenu && event.preventDefault();\n });\n\n return _this;\n }\n\n _createClass(Image, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n id = _this$props.id,\n className = _this$props.className,\n src = _this$props.src,\n style = _this$props.style,\n handleDoubleClick = _this$props.handleDoubleClick;\n return React.createElement(\"div\", null, this.state.loading && React.createElement(SpinnerIcon, null), React.createElement(\"img\", {\n id: id,\n className: className,\n src: src,\n style: style,\n onLoad: this.handleOnLoad,\n onDoubleClick: handleDoubleClick,\n onContextMenu: this.handleOnContextMenu\n }));\n }\n }]);\n\n return Image;\n}(Component);\n\nexport { Image as default };","import \"core-js/modules/es6.object.set-prototype-of\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _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 return Constructor;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\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 _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 _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 if (superClass) _setPrototypeOf(subClass, superClass);\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 _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\nimport React, { Component } from \"react\";\nimport StyleInjector, { lightboxStyles } from \"./styles\";\nimport Header from \"./Header\";\nimport Image from \"./Image\";\n\nvar Lightbox =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Lightbox, _Component);\n\n function Lightbox() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Lightbox);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Lightbox)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n move: {\n x: 0,\n y: 0\n },\n moveStart: undefined,\n zoomed: false,\n rotationDeg: 0\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleKeyDown\", function (event) {\n // ESC or ENTER closes the modal\n if (event.keyCode === 27 || event.keyCode === 13) {\n _this.props.onClose();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getCoordinatesIfOverImg\", function (event) {\n var point = event.changedTouches ? event.changedTouches[0] : event;\n\n if (point.target.id !== \"react-modal-image-img\") {\n // the img was not a target of the coordinates\n return;\n }\n\n var dim = _this.contentEl.getBoundingClientRect();\n\n var x = point.clientX - dim.left;\n var y = point.clientY - dim.top;\n return {\n x: x,\n y: y\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseDownOrTouchStart\", function (event) {\n event.preventDefault();\n\n if (event.touches && event.touches.length > 1) {\n // more than one finger, ignored\n return;\n }\n\n var coords = _this.getCoordinatesIfOverImg(event);\n\n if (!coords) {\n // click outside the img => close modal\n _this.props.onClose();\n }\n\n if (!_this.state.zoomed) {\n // do not allow drag'n'drop if zoom has not been applied\n return;\n }\n\n _this.setState(function (prev) {\n return {\n moveStart: {\n x: coords.x - prev.move.x,\n y: coords.y - prev.move.y\n }\n };\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseMoveOrTouchMove\", function (event) {\n event.preventDefault();\n\n if (!_this.state.zoomed || !_this.state.moveStart) {\n // do not allow drag'n'drop if zoom has not been applied\n // or if there has not been a click\n return;\n }\n\n if (event.touches && event.touches.length > 1) {\n // more than one finger, ignored\n return;\n }\n\n var coords = _this.getCoordinatesIfOverImg(event);\n\n if (!coords) {\n return;\n }\n\n _this.setState(function (prev) {\n return {\n move: {\n x: coords.x - prev.moveStart.x,\n y: coords.y - prev.moveStart.y\n }\n };\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseUpOrTouchEnd\", function (event) {\n _this.setState({\n moveStart: undefined\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"toggleZoom\", function (event) {\n event.preventDefault();\n\n _this.setState(function (prev) {\n return {\n zoomed: !prev.zoomed,\n // reset position if zoomed out\n move: prev.zoomed ? {\n x: 0,\n y: 0\n } : prev.move\n };\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"toggleRotate\", function (event) {\n event.preventDefault();\n var rotationDeg = _this.state.rotationDeg;\n\n if (rotationDeg === 360) {\n _this.setState({\n rotationDeg: 90\n });\n\n return;\n }\n\n _this.setState(function (prevState) {\n return {\n rotationDeg: prevState.rotationDeg += 90\n };\n });\n });\n\n return _this;\n }\n\n _createClass(Lightbox, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n document.addEventListener(\"keydown\", this.handleKeyDown, false);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n document.removeEventListener(\"keydown\", this.handleKeyDown, false);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$props = this.props,\n medium = _this$props.medium,\n large = _this$props.large,\n alt = _this$props.alt,\n onClose = _this$props.onClose,\n hideDownload = _this$props.hideDownload,\n hideZoom = _this$props.hideZoom,\n showRotate = _this$props.showRotate,\n _this$props$imageBack = _this$props.imageBackgroundColor,\n imageBackgroundColor = _this$props$imageBack === void 0 ? \"black\" : _this$props$imageBack;\n var _this$state = this.state,\n move = _this$state.move,\n zoomed = _this$state.zoomed,\n rotationDeg = _this$state.rotationDeg;\n return React.createElement(\"div\", null, React.createElement(StyleInjector, {\n name: \"__react_modal_image__lightbox\",\n css: lightboxStyles({\n imageBackgroundColor: imageBackgroundColor\n })\n }), React.createElement(\"div\", {\n className: \"__react_modal_image__modal_container\"\n }, React.createElement(\"div\", {\n className: \"__react_modal_image__modal_content\",\n onMouseDown: this.handleMouseDownOrTouchStart,\n onMouseUp: this.handleMouseUpOrTouchEnd,\n onMouseMove: this.handleMouseMoveOrTouchMove,\n onTouchStart: this.handleMouseDownOrTouchStart,\n onTouchEnd: this.handleMouseUpOrTouchEnd,\n onTouchMove: this.handleMouseMoveOrTouchMove,\n ref: function ref(el) {\n _this2.contentEl = el;\n }\n }, zoomed && React.createElement(Image, {\n id: \"react-modal-image-img\",\n className: \"__react_modal_image__large_img\",\n src: large || medium,\n style: {\n transform: \"translate3d(-50%, -50%, 0) translate3d(\".concat(move.x, \"px, \").concat(move.y, \"px, 0) rotate(\").concat(rotationDeg, \"deg)\"),\n WebkitTransform: \"translate3d(-50%, -50%, 0) translate3d(\".concat(move.x, \"px, \").concat(move.y, \"px, 0) rotate(\").concat(rotationDeg, \"deg)\"),\n MsTransform: \"translate3d(-50%, -50%, 0) translate3d(\".concat(move.x, \"px, \").concat(move.y, \"px, 0) rotate(\").concat(rotationDeg, \"deg)\")\n },\n handleDoubleClick: this.toggleZoom\n }), !zoomed && React.createElement(Image, {\n id: \"react-modal-image-img\",\n className: \"__react_modal_image__medium_img\",\n src: medium || large,\n handleDoubleClick: this.toggleZoom,\n contextMenu: !medium,\n style: {\n transform: \"translate3d(-50%, -50%, 0) rotate(\".concat(rotationDeg, \"deg)\"),\n WebkitTransform: \"translate3d(-50%, -50%, 0) rotate(\".concat(rotationDeg, \"deg)\"),\n MsTransform: \"translate3d(-50%, -50%, 0) rotate(\".concat(rotationDeg, \"deg)\")\n }\n })), React.createElement(Header, {\n image: large || medium,\n alt: alt,\n zoomed: zoomed,\n toggleZoom: this.toggleZoom,\n toggleRotate: this.toggleRotate,\n onClose: onClose,\n enableDownload: !hideDownload,\n enableZoom: !hideZoom,\n enableRotate: !!showRotate\n })));\n }\n }]);\n\n return Lightbox;\n}(Component);\n\nexport { Lightbox as default };","import \"core-js/modules/es6.string.small\";\nimport \"core-js/modules/es6.object.set-prototype-of\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _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 return Constructor;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\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 _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 _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 if (superClass) _setPrototypeOf(subClass, superClass);\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 _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\nimport React, { Component } from \"react\";\nimport Lightbox from \"./Lightbox\";\nexport { default as Lightbox } from \"./Lightbox\";\n\nvar _default =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(_default, _Component);\n\n function _default() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, _default);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(_default)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n modalOpen: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"toggleModal\", function () {\n _this.setState(function (prev) {\n return {\n modalOpen: !prev.modalOpen\n };\n });\n });\n\n return _this;\n }\n\n _createClass(_default, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n className = _this$props.className,\n small = _this$props.small,\n smallSrcSet = _this$props.smallSrcSet,\n medium = _this$props.medium,\n large = _this$props.large,\n alt = _this$props.alt,\n hideDownload = _this$props.hideDownload,\n hideZoom = _this$props.hideZoom,\n showRotate = _this$props.showRotate,\n imageBackgroundColor = _this$props.imageBackgroundColor;\n var modalOpen = this.state.modalOpen;\n return React.createElement(\"div\", null, React.createElement(\"img\", {\n className: className,\n style: {\n cursor: \"pointer\",\n maxWidth: \"100%\",\n maxHeight: \"100%\"\n },\n onClick: this.toggleModal,\n src: small,\n srcSet: smallSrcSet,\n alt: alt\n }), modalOpen && React.createElement(Lightbox, {\n medium: medium,\n large: large,\n alt: alt,\n onClose: this.toggleModal,\n hideDownload: hideDownload,\n hideZoom: hideZoom,\n showRotate: showRotate,\n imageBackgroundColor: imageBackgroundColor\n }));\n }\n }]);\n\n return _default;\n}(Component);\n\nexport { _default as default };","'use strict';\n// B.2.3.11 String.prototype.small()\nrequire('./_string-html')('small', function (createHTML) {\n return function small() {\n return createHTML(this, 'small', '', '');\n };\n});\n","var $export = require('./_export');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function (string, tag, attribute, value) {\n var S = String(defined(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\nmodule.exports = function (NAME, exec) {\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function () {\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};\n"],"sourceRoot":""}