-
Notifications
You must be signed in to change notification settings - Fork 0
/
4.f17dbf0b.js.map
1 lines (1 loc) · 50.7 KB
/
4.f17dbf0b.js.map
1
{"version":3,"sources":["webpack:///./node_modules/@material-ui/icons/AddCircleOutlineSharp.js","webpack:///./node_modules/@material-ui/icons/RemoveCircleOutlineSharp.js","webpack:///./node_modules/@material-ui/icons/PlayCircleOutlineSharp.js","webpack:///./node_modules/mirador/dist/es/src/components/icons/RestoreZoomIcon.js","webpack:///./node_modules/mirador/dist/es/src/components/ZoomControls.js","webpack:///./node_modules/mirador/dist/es/src/containers/ZoomControls.js","webpack:///./node_modules/mirador/dist/es/src/components/ViewerInfo.js","webpack:///./node_modules/mirador/dist/es/src/containers/ViewerInfo.js","webpack:///./node_modules/mirador/dist/es/src/components/ViewerNavigation.js","webpack:///./node_modules/mirador/dist/es/src/containers/ViewerNavigation.js","webpack:///./node_modules/mirador/dist/es/src/components/WindowCanvasNavigationControls.js","webpack:///./node_modules/mirador/dist/es/src/containers/WindowCanvasNavigationControls.js","webpack:///./node_modules/mirador/dist/es/src/components/WindowViewer.js","webpack:///./node_modules/mirador/dist/es/src/containers/WindowViewer.js"],"names":["_interopRequireDefault","_interopRequireWildcard","Object","defineProperty","exports","value","default","React","_default","createElement","d","RestoreZoomIcon","props","SvgIcon","xmlns","width","height","viewBox","_defineProperties","target","i","length","descriptor","enumerable","configurable","writable","key","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","prototype","valueOf","call","e","_isNativeReflectConstruct","result","Super","_getPrototypeOf","NewTarget","this","constructor","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","getPrototypeOf","_Component","subClass","superClass","TypeError","create","_inherits","ZoomControls","Constructor","protoProps","staticProps","_super","_this","instance","_classCallCheck","handleZoomInClick","bind","handleZoomOutClick","_this$props","windowId","updateViewport","zoom","viewer","_this$props2","_this$props3","displayDivider","showZoomControls","classes","t","zoomToWorld","className","zoom_controls","MiradorMenuButton","onClick","divider","Fragment","defaultProps","withTranslation","withStyles","theme","borderRight","display","margin","ListItem","paddingBottom","paddingTop","flexDirection","justifyContent","state","_ref","withPlugins","ViewerInfo","canvasCount","canvasIndex","canvasLabel","osdInfo","Typography","variant","current","total","concat","undefined","order","overflow","textOverflow","unicodeBidi","whiteSpace","canvases","canvasId","id","ViewerNavigation","hasNextCanvas","hasPreviousCanvas","setNextCanvas","setPreviousCanvas","htmlDir","previousIconStyle","nextIconStyle","viewingDirection","transform","osdNavigation","dir","disabled","style","dispatch","_ref2","WindowCanvasNavigationControls","size","visible","Paper","square","controls","canvasNav","canvasNavControlsAreStacked","canvasNavStacked","elevation","PluginHook","component","focusedWindowId","flexWrap","textAlign","backgroundColor","palette","background","paper","bottom","position","zIndex","OSDViewer","WindowViewer","error","hasError","fallback"],"mappings":"0FAEA,IAAIA,EAAyB,EAAQ,IAEjCC,EAA0B,EAAQ,IAEtCC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAElB,IAAIC,EAAQN,EAAwB,EAAQ,IAIxCO,GAAW,EAFMR,EAAuB,EAAQ,KAElBM,SAAuBC,EAAME,cAAc,OAAQ,CACnFC,EAAG,mKACD,yBAEJN,EAAQE,QAAUE,G,iCCjBlB,IAAIR,EAAyB,EAAQ,IAEjCC,EAA0B,EAAQ,IAEtCC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAElB,IAAIC,EAAQN,EAAwB,EAAQ,IAIxCO,GAAW,EAFMR,EAAuB,EAAQ,KAElBM,SAAuBC,EAAME,cAAc,OAAQ,CACnFC,EAAG,gJACD,4BAEJN,EAAQE,QAAUE,G,iCCjBlB,IAAIR,EAAyB,EAAQ,IAEjCC,EAA0B,EAAQ,IAEtCC,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAQE,aAAU,EAElB,IAAIC,EAAQN,EAAw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GAA4B,SAAU3G,IAxBjD,SAAmBC,EAAUC,GAAc,GAA0B,mBAAfA,GAA4C,OAAfA,EAAuB,MAAM,IAAIC,UAAU,sDAAyDF,EAASnB,UAAYtC,OAAO4D,OAAOF,GAAcA,EAAWpB,UAAW,CAAEU,YAAa,CAAE7C,MAAOsD,EAAUlC,UAAU,EAAMD,cAAc,KAAeoC,GAAY,GAAgBD,EAAUC,GAyBjX,CAAU0G,EAAc5G,GAExB,IA7BoBO,EAAaC,EAAYC,EA6BzCC,EAAS,GAAakG,GAG1B,SAASA,EAAa1J,GACpB,IAAIyD,EAMJ,OA3CJ,SAAyBC,EAAUL,GAAe,KAAMK,aAAoBL,GAAgB,MAAM,IAAIJ,UAAU,qCAuC5G,CAAgBZ,KAAMqH,IAEtBjG,EAAQD,EAAO1B,KAAKO,KAAMrC,IACpB6F,MAAQ,GACPpC,EAqCT,OA5EoBJ,EA4CPqG,EA5CgCnG,EAkEzC,CAAC,CACHzC,IAAK,2BACLrB,MAAO,SAAkCkK,GAEvC,MAAO,CACLC,UAAU,OAvEiBtG,EA4CN,CAAC,CAC1BxC,IAAK,SACLrB,MAIA,WACE,IAAIuE,EAAW3B,KAAKrC,MAAMgE,SAG1B,OAFe3B,KAAKwD,MAAM+D,SAGJ,IAAM/J,cAAc,IAAMmF,SAAU,MAGtC,IAAMnF,cAAc,WAAU,CAChDgK,SAAuB,IAAMhK,cAAc,MAAO,OACpC,IAAMA,cAAc4J,GAAW,CAC7CzF,SAAUA,GACI,IAAMnE,cAAc,GAAgC,CAClEmE,SAAUA,WA/D4D,GAAkBX,EAAYzB,UAAW0B,GAAiBC,GAAa,GAAkBF,EAAaE,GA4E3KmG,EAlD8B,CAmDrC,aC9EE,GAAU,kBAAQ,OAAA3D,EAAA,GAAY,iBAEnB,aAAQ","file":"4.f17dbf0b.js","sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z\"\n}), 'AddCircleOutlineSharp');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z\"\n}), 'RemoveCircleOutlineSharp');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z\"\n}), 'PlayCircleOutlineSharp');\n\nexports.default = _default;","import React from 'react';\nimport SvgIcon from '@material-ui/core/SvgIcon';\n/**\n * RestoreZoomIcon ~\n*/\n\nexport default function RestoreZoomIcon(props) {\n return /*#__PURE__*/React.createElement(SvgIcon, props, /*#__PURE__*/React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,15H9v3h2V13H6Zm9-6V6H13v5h5V9Z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8,8,8,0,0,1-8,8Z\"\n })));\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\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 _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\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; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport React, { Component } from 'react';\nimport AddCircleIcon from '@material-ui/icons/AddCircleOutlineSharp';\nimport RemoveCircleIcon from '@material-ui/icons/RemoveCircleOutlineSharp';\nimport RestoreZoomIcon from './icons/RestoreZoomIcon';\nimport MiradorMenuButton from '../containers/MiradorMenuButton';\n/**\n */\n\nexport var ZoomControls = /*#__PURE__*/function (_Component) {\n _inherits(ZoomControls, _Component);\n\n var _super = _createSuper(ZoomControls);\n\n /**\n * constructor -\n */\n function ZoomControls(props) {\n var _this;\n\n _classCallCheck(this, ZoomControls);\n\n _this = _super.call(this, props);\n _this.handleZoomInClick = _this.handleZoomInClick.bind(_assertThisInitialized(_this));\n _this.handleZoomOutClick = _this.handleZoomOutClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n /**\n * @private\n */\n\n\n _createClass(ZoomControls, [{\n key: \"handleZoomInClick\",\n value: function handleZoomInClick() {\n var _this$props = this.props,\n windowId = _this$props.windowId,\n updateViewport = _this$props.updateViewport,\n viewer = _this$props.viewer;\n updateViewport(windowId, {\n zoom: viewer.zoom * 2\n });\n }\n /**\n * @private\n */\n\n }, {\n key: \"handleZoomOutClick\",\n value: function handleZoomOutClick() {\n var _this$props2 = this.props,\n windowId = _this$props2.windowId,\n updateViewport = _this$props2.updateViewport,\n viewer = _this$props2.viewer;\n updateViewport(windowId, {\n zoom: viewer.zoom / 2\n });\n }\n /**\n * render\n * @return\n */\n\n }, {\n key: \"render\",\n value: function render() {\n var _this$props3 = this.props,\n displayDivider = _this$props3.displayDivider,\n showZoomControls = _this$props3.showZoomControls,\n classes = _this$props3.classes,\n t = _this$props3.t,\n zoomToWorld = _this$props3.zoomToWorld;\n\n if (!showZoomControls) {\n return /*#__PURE__*/React.createElement(React.Fragment, null);\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classes.zoom_controls\n }, /*#__PURE__*/React.createElement(MiradorMenuButton, {\n \"aria-label\": t('zoomIn'),\n onClick: this.handleZoomInClick\n }, /*#__PURE__*/React.createElement(AddCircleIcon, null)), /*#__PURE__*/React.createElement(MiradorMenuButton, {\n \"aria-label\": t('zoomOut'),\n onClick: this.handleZoomOutClick\n }, /*#__PURE__*/React.createElement(RemoveCircleIcon, null)), /*#__PURE__*/React.createElement(MiradorMenuButton, {\n \"aria-label\": t('zoomReset'),\n onClick: function onClick() {\n return zoomToWorld(false);\n }\n }, /*#__PURE__*/React.createElement(RestoreZoomIcon, null)), displayDivider && /*#__PURE__*/React.createElement(\"span\", {\n className: classes.divider\n }));\n }\n }]);\n\n return ZoomControls;\n}(Component);\nZoomControls.defaultProps = {\n displayDivider: true,\n showZoomControls: false,\n t: function t(key) {\n return key;\n },\n updateViewport: function updateViewport() {},\n viewer: {},\n windowId: ''\n};","import { compose } from 'redux';\nimport { connect } from 'react-redux';\nimport { withTranslation } from 'react-i18next';\nimport { withStyles } from '@material-ui/core';\nimport { withPlugins } from '../extend/withPlugins';\nimport * as actions from '../state/actions';\nimport { getShowZoomControlsConfig, getViewer } from '../state/selectors';\nimport { ZoomControls } from '../components/ZoomControls';\n/**\n * mapStateToProps - to hook up connect\n * @memberof Workspace\n * @private\n */\n\nvar mapStateToProps = function mapStateToProps(state, _ref) {\n var windowId = _ref.windowId;\n return {\n showZoomControls: getShowZoomControlsConfig(state),\n viewer: getViewer(state, {\n windowId: windowId\n })\n };\n};\n/**\n * mapDispatchToProps - used to hook up connect to action creators\n * @memberof Workspace\n * @private\n */\n\n\nvar mapDispatchToProps = {\n updateViewport: actions.updateViewport\n};\n/**\n *\n * @param theme\n * @returns {{zoom_controls: {position: string, right: number},\n * ListItem: {paddingBottom: number, paddingTop: number}}}\n */\n\nvar styles = function styles(theme) {\n return {\n divider: {\n borderRight: '1px solid #808080',\n display: 'inline-block',\n height: '24px',\n margin: '12px 6px'\n },\n ListItem: {\n paddingBottom: 0,\n paddingTop: 0\n },\n zoom_controls: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'center'\n }\n };\n};\n\nvar enhance = compose(withTranslation(), withStyles(styles), connect(mapStateToProps, mapDispatchToProps), withPlugins('ZoomControls'));\nexport default enhance(ZoomControls);","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\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 _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\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; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport React, { Component } from 'react';\nimport Typography from '@material-ui/core/Typography';\nimport classNames from 'classnames';\nimport ns from '../config/css-ns';\n/**\n *\n */\n\nexport var ViewerInfo = /*#__PURE__*/function (_Component) {\n _inherits(ViewerInfo, _Component);\n\n var _super = _createSuper(ViewerInfo);\n\n function ViewerInfo() {\n _classCallCheck(this, ViewerInfo);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ViewerInfo, [{\n key: \"render\",\n value:\n /** */\n function render() {\n var _this$props = this.props,\n canvasCount = _this$props.canvasCount,\n canvasIndex = _this$props.canvasIndex,\n canvasLabel = _this$props.canvasLabel,\n classes = _this$props.classes,\n t = _this$props.t;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(ns('osd-info'), classes.osdInfo)\n }, /*#__PURE__*/React.createElement(Typography, {\n display: \"inline\",\n variant: \"caption\",\n className: ns('canvas-count')\n }, t('pagination', {\n current: canvasIndex + 1,\n total: canvasCount\n })), /*#__PURE__*/React.createElement(Typography, {\n display: \"inline\",\n variant: \"caption\",\n className: ns('canvas-label')\n }, canvasLabel && \" \\u2022 \".concat(canvasLabel)));\n }\n }]);\n\n return ViewerInfo;\n}(Component);\nViewerInfo.defaultProps = {\n canvasLabel: undefined,\n t: function t() {}\n};","import { compose } from 'redux';\nimport { connect } from 'react-redux';\nimport { withTranslation } from 'react-i18next';\nimport { withStyles } from '@material-ui/core/styles';\nimport { withPlugins } from '../extend/withPlugins';\nimport { ViewerInfo } from '../components/ViewerInfo';\nimport { getCanvasLabel, getCanvases, getCanvasIndex, getCurrentCanvas } from '../state/selectors';\n/**\n * mapStateToProps - to hook up connect\n * @memberof Window\n * @private\n */\n\nvar mapStateToProps = function mapStateToProps(state, props) {\n var windowId = props.windowId;\n var canvases = getCanvases(state, {\n windowId: windowId\n });\n var canvasIndex = getCanvasIndex(state, {\n windowId: windowId\n });\n var canvasId = (getCurrentCanvas(state, {\n windowId: windowId\n }) || {}).id;\n return {\n canvasCount: canvases.length,\n canvasIndex: canvasIndex,\n canvasLabel: getCanvasLabel(state, {\n canvasId: canvasId,\n windowId: windowId\n })\n };\n};\n\nvar styles = {\n osdInfo: {\n order: 2,\n overflow: 'hidden',\n paddingBottom: 3,\n textOverflow: 'ellipsis',\n unicodeBidi: 'plaintext',\n whiteSpace: 'nowrap',\n width: '100%'\n }\n};\nvar enhance = compose(withStyles(styles), withTranslation(), connect(mapStateToProps, null), withPlugins('ViewerInfo'));\nexport default enhance(ViewerInfo);","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\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 _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\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; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport React, { Component } from 'react';\nimport NavigationIcon from '@material-ui/icons/PlayCircleOutlineSharp';\nimport classNames from 'classnames';\nimport MiradorMenuButton from '../containers/MiradorMenuButton';\nimport ns from '../config/css-ns';\n/**\n */\n\nexport var ViewerNavigation = /*#__PURE__*/function (_Component) {\n _inherits(ViewerNavigation, _Component);\n\n var _super = _createSuper(ViewerNavigation);\n\n function ViewerNavigation() {\n _classCallCheck(this, ViewerNavigation);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ViewerNavigation, [{\n key: \"render\",\n value:\n /**\n * Renders things\n */\n function render() {\n var _this$props = this.props,\n hasNextCanvas = _this$props.hasNextCanvas,\n hasPreviousCanvas = _this$props.hasPreviousCanvas,\n setNextCanvas = _this$props.setNextCanvas,\n setPreviousCanvas = _this$props.setPreviousCanvas,\n t = _this$props.t,\n classes = _this$props.classes,\n viewingDirection = _this$props.viewingDirection;\n var htmlDir = 'ltr';\n var previousIconStyle = {};\n var nextIconStyle = {};\n\n switch (viewingDirection) {\n case 'top-to-bottom':\n previousIconStyle = {\n transform: 'rotate(270deg)'\n };\n nextIconStyle = {\n transform: 'rotate(90deg)'\n };\n break;\n\n case 'bottom-to-top':\n previousIconStyle = {\n transform: 'rotate(90deg)'\n };\n nextIconStyle = {\n transform: 'rotate(270deg)'\n };\n break;\n\n case 'right-to-left':\n htmlDir = 'rtl';\n previousIconStyle = {};\n nextIconStyle = {\n transform: 'rotate(180deg)'\n };\n break;\n\n default:\n previousIconStyle = {\n transform: 'rotate(180deg)'\n };\n nextIconStyle = {};\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(ns('osd-navigation'), classes.osdNavigation),\n dir: htmlDir\n }, /*#__PURE__*/React.createElement(MiradorMenuButton, {\n \"aria-label\": t('previousCanvas'),\n className: ns('previous-canvas-button'),\n disabled: !hasPreviousCanvas,\n onClick: function onClick() {\n hasPreviousCanvas && setPreviousCanvas();\n }\n }, /*#__PURE__*/React.createElement(NavigationIcon, {\n style: previousIconStyle\n })), /*#__PURE__*/React.createElement(MiradorMenuButton, {\n \"aria-label\": t('nextCanvas'),\n className: ns('next-canvas-button'),\n disabled: !hasNextCanvas,\n onClick: function onClick() {\n hasNextCanvas && setNextCanvas();\n }\n }, /*#__PURE__*/React.createElement(NavigationIcon, {\n style: nextIconStyle\n })));\n }\n }]);\n\n return ViewerNavigation;\n}(Component);\nViewerNavigation.defaultProps = {\n hasNextCanvas: false,\n hasPreviousCanvas: false,\n setNextCanvas: function setNextCanvas() {},\n setPreviousCanvas: function setPreviousCanvas() {},\n viewingDirection: ''\n};","import { compose } from 'redux';\nimport { connect } from 'react-redux';\nimport { withTranslation } from 'react-i18next';\nimport { withStyles } from '@material-ui/core/styles';\nimport { withPlugins } from '../extend/withPlugins';\nimport * as actions from '../state/actions';\nimport { getSequenceViewingDirection, getNextCanvasGrouping, getPreviousCanvasGrouping } from '../state/selectors';\nimport { ViewerNavigation } from '../components/ViewerNavigation';\n/** */\n\nvar mapStateToProps = function mapStateToProps(state, _ref) {\n var windowId = _ref.windowId;\n return {\n hasNextCanvas: !!getNextCanvasGrouping(state, {\n windowId: windowId\n }),\n hasPreviousCanvas: !!getPreviousCanvasGrouping(state, {\n windowId: windowId\n }),\n viewingDirection: getSequenceViewingDirection(state, {\n windowId: windowId\n })\n };\n};\n/**\n * mapDispatchToProps - used to hook up connect to action creators\n * @memberof ManifestForm\n * @private\n */\n\n\nvar mapDispatchToProps = function mapDispatchToProps(dispatch, _ref2) {\n var windowId = _ref2.windowId;\n return {\n setNextCanvas: function setNextCanvas() {\n return dispatch(actions.setNextCanvas(windowId));\n },\n setPreviousCanvas: function setPreviousCanvas() {\n return dispatch(actions.setPreviousCanvas(windowId));\n }\n };\n};\n\nvar styles = {\n osdNavigation: {\n order: 1\n }\n};\nvar enhance = compose(withStyles(styles), withTranslation(), connect(mapStateToProps, mapDispatchToProps), withPlugins('ViewerNavigation') // further HOC go here\n);\nexport default enhance(ViewerNavigation);","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\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 _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\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; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport React, { Component } from 'react';\nimport classNames from 'classnames';\nimport Paper from '@material-ui/core/Paper';\nimport Typography from '@material-ui/core/Typography';\nimport ZoomControls from '../containers/ZoomControls';\nimport ViewerInfo from '../containers/ViewerInfo';\nimport ViewerNavigation from '../containers/ViewerNavigation';\nimport ns from '../config/css-ns';\nimport { PluginHook } from './PluginHook';\n/**\n * Represents the viewer controls in the mirador workspace.\n */\n\nexport var WindowCanvasNavigationControls = /*#__PURE__*/function (_Component) {\n _inherits(WindowCanvasNavigationControls, _Component);\n\n var _super = _createSuper(WindowCanvasNavigationControls);\n\n function WindowCanvasNavigationControls() {\n _classCallCheck(this, WindowCanvasNavigationControls);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(WindowCanvasNavigationControls, [{\n key: \"canvasNavControlsAreStacked\",\n value:\n /**\n * Determine if canvasNavControls are stacked (based on a hard-coded width)\n */\n function canvasNavControlsAreStacked() {\n var size = this.props.size;\n return size && size.width && size.width <= 253;\n }\n /** */\n\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n classes = _this$props.classes,\n visible = _this$props.visible,\n windowId = _this$props.windowId,\n zoomToWorld = _this$props.zoomToWorld;\n if (!visible) return /*#__PURE__*/React.createElement(Typography, {\n variant: \"srOnly\",\n component: \"div\"\n }, /*#__PURE__*/React.createElement(ViewerInfo, {\n windowId: windowId\n }));\n return /*#__PURE__*/React.createElement(Paper, {\n square: true,\n className: classNames(classes.controls, ns('canvas-nav'), classes.canvasNav, this.canvasNavControlsAreStacked() ? ns('canvas-nav-stacked') : null, this.canvasNavControlsAreStacked() ? classes.canvasNavStacked : null),\n elevation: 0\n }, /*#__PURE__*/React.createElement(ZoomControls, {\n displayDivider: !this.canvasNavControlsAreStacked(),\n windowId: windowId,\n zoomToWorld: zoomToWorld\n }), /*#__PURE__*/React.createElement(ViewerNavigation, {\n windowId: windowId\n }), /*#__PURE__*/React.createElement(ViewerInfo, {\n windowId: windowId\n }), /*#__PURE__*/React.createElement(PluginHook, this.props));\n }\n }]);\n\n return WindowCanvasNavigationControls;\n}(Component);\nWindowCanvasNavigationControls.defaultProps = {\n classes: {},\n visible: true\n};","import { connect } from 'react-redux';\nimport { compose } from 'redux';\nimport { withSize } from 'react-sizeme';\nimport { withStyles } from '@material-ui/core';\nimport { fade } from '@material-ui/core/styles/colorManipulator';\nimport { withPlugins } from '../extend/withPlugins';\nimport { getWorkspace } from '../state/selectors';\nimport { WindowCanvasNavigationControls } from '../components/WindowCanvasNavigationControls';\n/** */\n\nvar mapStateToProps = function mapStateToProps(state, _ref) {\n var windowId = _ref.windowId;\n return {\n visible: getWorkspace(state).focusedWindowId === windowId\n };\n};\n/**\n *\n * @param theme\n */\n\n\nvar styles = function styles(theme) {\n return {\n canvasNav: {\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n justifyContent: 'center',\n textAlign: 'center'\n },\n canvasNavStacked: {\n flexDirection: 'column'\n },\n controls: {\n backgroundColor: fade(theme.palette.background.paper, 0.5),\n bottom: 0,\n position: 'absolute',\n width: '100%',\n zIndex: 50\n }\n };\n};\n\nvar enhance = compose(connect(mapStateToProps), withStyles(styles), withSize(), withPlugins('WindowCanvasNavigationControls'));\nexport default enhance(WindowCanvasNavigationControls);","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\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 _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\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; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport React, { Component, lazy, Suspense } from 'react';\nimport WindowCanvasNavigationControls from '../containers/WindowCanvasNavigationControls';\nvar OSDViewer = /*#__PURE__*/lazy(function () {\n return import('../containers/OpenSeadragonViewer');\n});\n/**\n * Represents a WindowViewer in the mirador workspace. Responsible for mounting\n * OSD and Navigation\n */\n\nexport var WindowViewer = /*#__PURE__*/function (_Component) {\n _inherits(WindowViewer, _Component);\n\n var _super = _createSuper(WindowViewer);\n\n /** */\n function WindowViewer(props) {\n var _this;\n\n _classCallCheck(this, WindowViewer);\n\n _this = _super.call(this, props);\n _this.state = {};\n return _this;\n }\n /** */\n\n\n _createClass(WindowViewer, [{\n key: \"render\",\n value:\n /**\n * Renders things\n */\n function render() {\n var windowId = this.props.windowId;\n var hasError = this.state.hasError;\n\n if (hasError) {\n return /*#__PURE__*/React.createElement(React.Fragment, null);\n }\n\n return /*#__PURE__*/React.createElement(Suspense, {\n fallback: /*#__PURE__*/React.createElement(\"div\", null)\n }, /*#__PURE__*/React.createElement(OSDViewer, {\n windowId: windowId\n }, /*#__PURE__*/React.createElement(WindowCanvasNavigationControls, {\n windowId: windowId\n })));\n }\n }], [{\n key: \"getDerivedStateFromError\",\n value: function getDerivedStateFromError(error) {\n // Update state so the next render will show the fallback UI.\n return {\n hasError: true\n };\n }\n }]);\n\n return WindowViewer;\n}(Component);","import { compose } from 'redux';\nimport { withPlugins } from '../extend/withPlugins';\nimport { WindowViewer } from '../components/WindowViewer';\nvar enhance = compose(withPlugins('WindowViewer') // further HOC go here\n);\nexport default enhance(WindowViewer);"],"sourceRoot":""}