-
Notifications
You must be signed in to change notification settings - Fork 0
/
7.58e89c1e.js.map
1 lines (1 loc) · 39.1 KB
/
7.58e89c1e.js.map
1
{"version":3,"sources":["webpack:///./node_modules/@material-ui/core/esm/internal/svg-icons/Person.js","webpack:///./node_modules/@material-ui/core/esm/Avatar/Avatar.js","webpack:///./node_modules/mirador/dist/es/src/components/GalleryViewThumbnail.js","webpack:///./node_modules/mirador/dist/es/src/containers/GalleryViewThumbnail.js","webpack:///./node_modules/mirador/dist/es/src/components/GalleryView.js","webpack:///./node_modules/mirador/dist/es/src/containers/GalleryView.js"],"names":["createSvgIcon","d","props","ref","alt","childrenProp","children","classes","className","_props$component","component","Component","imgProps","sizes","src","srcSet","_props$variant","variant","other","loaded","_ref","_React$useState","setLoaded","active","image","Image","onload","onerror","useLoaded","hasImg","hasImgNotFailing","img","Person","fallback","root","system","colorDefault","withStyles","theme","position","display","alignItems","justifyContent","flexShrink","width","height","fontFamily","typography","fontSize","pxToRem","lineHeight","borderRadius","overflow","userSelect","color","palette","background","default","backgroundColor","type","grey","circle","circular","rounded","shape","square","textAlign","objectFit","textIndent","name","_defineProperties","target","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","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","value","_inherits","GalleryViewThumbnail","Constructor","protoProps","staticProps","_super","_this","instance","_classCallCheck","state","requestedAnnotations","handleSelect","bind","handleKey","handleIntersection","_this$props","canvas","selected","setCanvas","focusOnCanvas","id","event","_this$props2","keys","enter","space","chars","which","isIntersecting","_this$props3","annotationsCount","requestCanvasAnnotations","undefined","setState","_this$props4","searchAnnotationsCount","config","miradorCanvas","MiradorCanvas","createElement","onChange","index","galleryViewItem","hasAnnotations","onClick","onKeyUp","role","tabIndex","IIIFThumbnail","resource","labelled","maxWidth","maxHeight","style","margin","concat","Math","ceil","aspectRatio","chips","Chip","avatar","avatarIcon","label","searchChip","size","annotationIcon","annotationsChip","defaultProps","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","_objectSpread","source","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","obj","windowId","currentCanvas","searchAnnotations","canvasAnnotations","map","a","resources","targetId","hasOpenAnnotationsWindow","content","canvasId","reduce","v","r","galleryView","dispatch","_ref2","_len","args","Array","_key","actions","caption","opacity","right","top","border","action","primary","main","outline","hover","cursor","spacing","minWidth","padding","highlights","marginTop","GalleryView","canvases","viewingDirection","htmlDir","Paper","dir","elevation","galleryContainer","flexDirection","flexWrap","overflowX","overflowY","withPlugins"],"mappings":"qPAMe,SAAAA,EAAA,GAA4B,gBAAoB,OAAQ,CACrEC,EAAG,kHACD,UCuGJ,IAAI,EAAsB,cAAiB,SAAgBC,EAAOC,GAChE,IAAIC,EAAMF,EAAME,IACZC,EAAeH,EAAMI,SACrBC,EAAUL,EAAMK,QAChBC,EAAYN,EAAMM,UAClBC,EAAmBP,EAAMQ,UACzBC,OAAiC,IAArBF,EAA8B,MAAQA,EAClDG,EAAWV,EAAMU,SACjBC,EAAQX,EAAMW,MACdC,EAAMZ,EAAMY,IACZC,EAASb,EAAMa,OACfC,EAAiBd,EAAMe,QACvBA,OAA6B,IAAnBD,EAA4B,SAAWA,EACjDE,EAAQ,YAAyBhB,EAAO,CAAC,MAAO,WAAY,UAAW,YAAa,YAAa,WAAY,QAAS,MAAO,SAAU,YAEvII,EAAW,KAEXa,EA3DN,SAAmBC,GACjB,IAAIN,EAAMM,EAAKN,IACXC,EAASK,EAAKL,OAEdM,EAAkB,YAAe,GACjCF,EAASE,EAAgB,GACzBC,EAAYD,EAAgB,GAiChC,OA/BA,aAAgB,WACd,GAAKP,GAAQC,EAAb,C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GACxB,OAAoB,IAAMuB,cAAc,EAAsB,CAC5D7E,IAAKsD,EAAOI,GACZiE,SAAUA,EACVrE,OAAQA,aA1D4D,EAAkBd,EAAY1B,UAAW2B,GAAiBC,GAAa,EAAkBF,EAAaE,GAgE3KuH,EAzC6B,CA0CpC,aACF,GAAYvD,aAAe,CACzBnL,QAAS,GACT4O,iBAAkB,I,aC7BhB,GAAU,kBAAQ,OAAA9M,EAAA,IAfT,SAAgBC,GAC3B,MAAO,CACLkN,iBAAkB,CAChB/M,WAAY,aACZD,QAAS,OACTiN,cAAe,MACfC,SAAU,OACVC,UAAW,SACXC,UAAW,SACXd,QAAS,mBACTlM,MAAO,YAK6B,aA/BpB,SAAyBmF,EAAO3G,GACpD,IAAIuL,EAAWvL,EAAKuL,SACpB,MAAO,CACLuC,SAAU,YAAYnH,EAAO,CAC3B4E,SAAUA,IAEZwC,iBAAkB,aAA4BpH,EAAO,CACnD4E,SAAUA,QAwBoD,OAAAkD,EAAA,GAAY,gBAEjE,aAAQ","file":"7.58e89c1e.js","sourcesContent":["import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"\n}), 'Person');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport Person from '../internal/svg-icons/Person';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n position: 'relative',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n width: 40,\n height: 40,\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.pxToRem(20),\n lineHeight: 1,\n borderRadius: '50%',\n overflow: 'hidden',\n userSelect: 'none'\n },\n\n /* Styles applied to the root element if not `src` or `srcSet`. */\n colorDefault: {\n color: theme.palette.background.default,\n backgroundColor: theme.palette.type === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]\n },\n\n /* Styles applied to the root element if `variant=\"circle\"`. */\n circle: {},\n\n /* Styles applied to the root element if `variant=\"circular\"`. */\n circular: {},\n\n /* Styles applied to the root element if `variant=\"rounded\"`. */\n rounded: {\n borderRadius: theme.shape.borderRadius\n },\n\n /* Styles applied to the root element if `variant=\"square\"`. */\n square: {\n borderRadius: 0\n },\n\n /* Styles applied to the img element if either `src` or `srcSet` is defined. */\n img: {\n width: '100%',\n height: '100%',\n textAlign: 'center',\n // Handle non-square image. The property isn't supported by IE 11.\n objectFit: 'cover',\n // Hide alt text.\n color: 'transparent',\n // Hide the image broken icon, only works on Chrome.\n textIndent: 10000\n },\n\n /* Styles applied to the fallback icon */\n fallback: {\n width: '75%',\n height: '75%'\n }\n };\n};\n\nfunction useLoaded(_ref) {\n var src = _ref.src,\n srcSet = _ref.srcSet;\n\n var _React$useState = React.useState(false),\n loaded = _React$useState[0],\n setLoaded = _React$useState[1];\n\n React.useEffect(function () {\n if (!src && !srcSet) {\n return undefined;\n }\n\n setLoaded(false);\n var active = true;\n var image = new Image();\n image.src = src;\n image.srcSet = srcSet;\n\n image.onload = function () {\n if (!active) {\n return;\n }\n\n setLoaded('loaded');\n };\n\n image.onerror = function () {\n if (!active) {\n return;\n }\n\n setLoaded('error');\n };\n\n return function () {\n active = false;\n };\n }, [src, srcSet]);\n return loaded;\n}\n\nvar Avatar = /*#__PURE__*/React.forwardRef(function Avatar(props, ref) {\n var alt = props.alt,\n childrenProp = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'div' : _props$component,\n imgProps = props.imgProps,\n sizes = props.sizes,\n src = props.src,\n srcSet = props.srcSet,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'circle' : _props$variant,\n other = _objectWithoutProperties(props, [\"alt\", \"children\", \"classes\", \"className\", \"component\", \"imgProps\", \"sizes\", \"src\", \"srcSet\", \"variant\"]);\n\n var children = null; // Use a hook instead of onError on the img element to support server-side rendering.\n\n var loaded = useLoaded({\n src: src,\n srcSet: srcSet\n });\n var hasImg = src || srcSet;\n var hasImgNotFailing = hasImg && loaded !== 'error';\n\n if (hasImgNotFailing) {\n children = /*#__PURE__*/React.createElement(\"img\", _extends({\n alt: alt,\n src: src,\n srcSet: srcSet,\n sizes: sizes,\n className: classes.img\n }, imgProps));\n } else if (childrenProp != null) {\n children = childrenProp;\n } else if (hasImg && alt) {\n children = alt[0];\n } else {\n children = /*#__PURE__*/React.createElement(Person, {\n className: classes.fallback\n });\n }\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, classes.system, classes[variant], className, !hasImgNotFailing && classes.colorDefault),\n ref: ref\n }, other), children);\n});\nprocess.env.NODE_ENV !== \"production\" ? Avatar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Used in combination with `src` or `srcSet` to\n * provide an alt attribute for the rendered `img` element.\n */\n alt: PropTypes.string,\n\n /**\n * Used to render icon or text elements inside the Avatar if `src` is not set.\n * This can be an element, or just a string.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * Attributes applied to the `img` element if the component is used to display an image.\n * It can be used to listen for the loading error event.\n */\n imgProps: PropTypes.object,\n\n /**\n * The `sizes` attribute for the `img` element.\n */\n sizes: PropTypes.string,\n\n /**\n * The `src` attribute for the `img` element.\n */\n src: PropTypes.string,\n\n /**\n * The `srcSet` attribute for the `img` element.\n * Use this attribute for responsive image display.\n */\n srcSet: PropTypes.string,\n\n /**\n * The shape of the avatar.\n */\n variant: PropTypes.oneOf(['circle', 'circular', 'rounded', 'square'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAvatar'\n})(Avatar);","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 Avatar from '@material-ui/core/Avatar';\nimport Chip from '@material-ui/core/Chip';\nimport AnnotationIcon from '@material-ui/icons/CommentSharp';\nimport SearchIcon from '@material-ui/icons/SearchSharp';\nimport classNames from 'classnames';\nimport 'intersection-observer'; // polyfill needed for Safari\n\nimport IntersectionObserver from '@researchgate/react-intersection-observer';\nimport MiradorCanvas from '../lib/MiradorCanvas';\nimport IIIFThumbnail from '../containers/IIIFThumbnail';\n/**\n * Represents a WindowViewer in the mirador workspace. Responsible for mounting\n * OSD and Navigation\n */\n\nexport var GalleryViewThumbnail = /*#__PURE__*/function (_Component) {\n _inherits(GalleryViewThumbnail, _Component);\n\n var _super = _createSuper(GalleryViewThumbnail);\n\n /** */\n function GalleryViewThumbnail(props) {\n var _this;\n\n _classCallCheck(this, GalleryViewThumbnail);\n\n _this = _super.call(this, props);\n _this.state = {\n requestedAnnotations: false\n };\n _this.handleSelect = _this.handleSelect.bind(_assertThisInitialized(_this));\n _this.handleKey = _this.handleKey.bind(_assertThisInitialized(_this));\n _this.handleIntersection = _this.handleIntersection.bind(_assertThisInitialized(_this));\n return _this;\n }\n /** @private */\n\n\n _createClass(GalleryViewThumbnail, [{\n key: \"handleSelect\",\n value: function handleSelect() {\n var _this$props = this.props,\n canvas = _this$props.canvas,\n selected = _this$props.selected,\n setCanvas = _this$props.setCanvas,\n focusOnCanvas = _this$props.focusOnCanvas;\n\n if (selected) {\n focusOnCanvas();\n } else {\n setCanvas(canvas.id);\n }\n }\n /** @private */\n\n }, {\n key: \"handleKey\",\n value: function handleKey(event) {\n var _this$props2 = this.props,\n canvas = _this$props2.canvas,\n setCanvas = _this$props2.setCanvas,\n focusOnCanvas = _this$props2.focusOnCanvas;\n this.keys = {\n enter: 'Enter',\n space: ' '\n };\n this.chars = {\n enter: 13,\n space: 32\n };\n var enterOrSpace = event.key === this.keys.enter || event.which === this.chars.enter || event.key === this.keys.space || event.which === this.chars.space;\n\n if (enterOrSpace) {\n focusOnCanvas();\n } else {\n setCanvas(canvas.id);\n }\n }\n /** */\n\n }, {\n key: \"handleIntersection\",\n value: function handleIntersection(_ref) {\n var isIntersecting = _ref.isIntersecting;\n var _this$props3 = this.props,\n annotationsCount = _this$props3.annotationsCount,\n requestCanvasAnnotations = _this$props3.requestCanvasAnnotations;\n var requestedAnnotations = this.state.requestedAnnotations;\n if (!isIntersecting || annotationsCount === undefined || annotationsCount > 0 || requestedAnnotations) return;\n this.setState({\n requestedAnnotations: true\n });\n requestCanvasAnnotations();\n }\n /**\n * Renders things\n */\n\n }, {\n key: \"render\",\n value: function render() {\n var _this$props4 = this.props,\n annotationsCount = _this$props4.annotationsCount,\n searchAnnotationsCount = _this$props4.searchAnnotationsCount,\n canvas = _this$props4.canvas,\n classes = _this$props4.classes,\n config = _this$props4.config,\n selected = _this$props4.selected;\n var miradorCanvas = new MiradorCanvas(canvas);\n return /*#__PURE__*/React.createElement(IntersectionObserver, {\n onChange: this.handleIntersection\n }, /*#__PURE__*/React.createElement(\"div\", {\n key: canvas.index,\n className: classNames(classes.galleryViewItem, selected ? classes.selected : '', searchAnnotationsCount > 0 ? classes.hasAnnotations : ''),\n onClick: this.handleSelect,\n onKeyUp: this.handleKey,\n role: \"button\",\n tabIndex: 0\n }, /*#__PURE__*/React.createElement(IIIFThumbnail, {\n resource: canvas,\n labelled: true,\n variant: \"outside\",\n maxWidth: config.width,\n maxHeight: config.height,\n style: {\n margin: '0 auto',\n maxWidth: \"\".concat(Math.ceil(config.height * miradorCanvas.aspectRatio), \"px\")\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: classes.chips\n }, searchAnnotationsCount > 0 && /*#__PURE__*/React.createElement(Chip, {\n avatar: /*#__PURE__*/React.createElement(Avatar, {\n className: classes.avatar,\n classes: {\n circle: classes.avatarIcon\n }\n }, /*#__PURE__*/React.createElement(SearchIcon, {\n fontSize: \"small\"\n })),\n label: searchAnnotationsCount,\n className: classNames(classes.searchChip),\n size: \"small\"\n }), (annotationsCount || 0) > 0 && /*#__PURE__*/React.createElement(Chip, {\n avatar: /*#__PURE__*/React.createElement(Avatar, {\n className: classes.avatar,\n classes: {\n circle: classes.avatarIcon\n }\n }, /*#__PURE__*/React.createElement(AnnotationIcon, {\n className: classes.annotationIcon\n })),\n label: annotationsCount,\n className: classNames(classes.annotationsChip),\n size: \"small\"\n })))));\n }\n }]);\n\n return GalleryViewThumbnail;\n}(Component);\nGalleryViewThumbnail.defaultProps = {\n annotationsCount: undefined,\n config: {\n height: 100,\n width: null\n },\n requestCanvasAnnotations: function requestCanvasAnnotations() {},\n searchAnnotationsCount: 0,\n selected: false\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { compose } from 'redux';\nimport { connect } from 'react-redux';\nimport flatten from 'lodash/flatten';\nimport { withStyles } from '@material-ui/core/styles';\nimport * as actions from '../state/actions';\nimport { GalleryViewThumbnail } from '../components/GalleryViewThumbnail';\nimport { getSearchAnnotationsForWindow, getCurrentCanvas, getConfig, getPresentAnnotationsOnSelectedCanvases, getCompanionWindowsForContent } from '../state/selectors';\n/**\n * Styles to be passed to the withStyles HOC\n */\n\nvar styles = function styles(theme) {\n return {\n annotationIcon: {\n height: '1rem',\n width: '1rem'\n },\n annotationsChip: _objectSpread({}, theme.typography.caption),\n avatar: {\n backgroundColor: 'transparent'\n },\n chips: {\n opacity: 0.875,\n position: 'absolute',\n right: 0,\n textAlign: 'right',\n top: 0\n },\n galleryViewItem: {\n '&$hasAnnotations': {\n border: \"2px solid \".concat(theme.palette.action.selected)\n },\n '&$selected,&$selected$hasAnnotations': {\n border: \"2px solid \".concat(theme.palette.primary.main)\n },\n '&:focus': {\n outline: 'none'\n },\n '&:hover': {\n backgroundColor: theme.palette.action.hover\n },\n border: '2px solid transparent',\n cursor: 'pointer',\n display: 'inline-block',\n margin: \"\".concat(theme.spacing(1), \"px \").concat(theme.spacing(0.5), \"px\"),\n maxHeight: function maxHeight(props) {\n return props.config.height + 45;\n },\n minWidth: '60px',\n overflow: 'hidden',\n padding: theme.spacing(0.5),\n position: 'relative',\n width: 'min-content'\n },\n hasAnnotations: {},\n searchChip: _objectSpread(_objectSpread({}, theme.typography.caption), {}, {\n '&$selected $avatar': {\n backgroundColor: theme.palette.highlights.primary\n },\n marginTop: 2\n }),\n selected: {}\n };\n};\n/** */\n\n\nvar mapStateToProps = function mapStateToProps(state, _ref) {\n var canvas = _ref.canvas,\n windowId = _ref.windowId;\n var currentCanvas = getCurrentCanvas(state, {\n windowId: windowId\n });\n var searchAnnotations = getSearchAnnotationsForWindow(state, {\n windowId: windowId\n });\n var canvasAnnotations = flatten(searchAnnotations.map(function (a) {\n return a.resources;\n })).filter(function (a) {\n return a.targetId === canvas.id;\n });\n var hasOpenAnnotationsWindow = getCompanionWindowsForContent(state, {\n content: 'annotations',\n windowId: windowId\n }).length > 0;\n return {\n annotationsCount: function () {\n if (!hasOpenAnnotationsWindow) return undefined;\n var annotations = getPresentAnnotationsOnSelectedCanvases(state, {\n canvasId: canvas.id\n });\n return annotations.reduce(function (v, a) {\n return v + a.resources.filter(function (r) {\n return r.targetId === canvas.id;\n }).length;\n }, 0);\n }(),\n config: getConfig(state).galleryView,\n searchAnnotationsCount: canvasAnnotations.length,\n selected: currentCanvas && currentCanvas.id === canvas.id\n };\n};\n/**\n * mapDispatchToProps - used to hook up connect to action creators\n * @memberof WindowViewer\n * @private\n */\n\n\nvar mapDispatchToProps = function mapDispatchToProps(dispatch, _ref2) {\n var canvas = _ref2.canvas,\n id = _ref2.id,\n windowId = _ref2.windowId;\n return {\n focusOnCanvas: function focusOnCanvas() {\n return dispatch(actions.setWindowViewType(windowId, 'single'));\n },\n requestCanvasAnnotations: function requestCanvasAnnotations() {\n return dispatch(actions.requestCanvasAnnotations(windowId, canvas.id));\n },\n setCanvas: function setCanvas() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return dispatch(actions.setCanvas.apply(actions, [windowId].concat(args)));\n }\n };\n};\n\nvar enhance = compose(connect(mapStateToProps, mapDispatchToProps), withStyles(styles) // further HOC go here\n);\nexport default enhance(GalleryViewThumbnail);","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 Paper from '@material-ui/core/Paper';\nimport GalleryViewThumbnail from '../containers/GalleryViewThumbnail';\n/**\n * Renders a GalleryView overview of the manifest.\n */\n\nexport var GalleryView = /*#__PURE__*/function (_Component) {\n _inherits(GalleryView, _Component);\n\n var _super = _createSuper(GalleryView);\n\n function GalleryView() {\n _classCallCheck(this, GalleryView);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(GalleryView, [{\n key: \"render\",\n value:\n /**\n * Renders things\n */\n function render() {\n var _this$props = this.props,\n canvases = _this$props.canvases,\n classes = _this$props.classes,\n viewingDirection = _this$props.viewingDirection,\n windowId = _this$props.windowId;\n var htmlDir = viewingDirection === 'right-to-left' ? 'rtl' : 'ltr';\n return /*#__PURE__*/React.createElement(Paper, {\n component: \"section\",\n dir: htmlDir,\n square: true,\n elevation: 0,\n className: classes.galleryContainer,\n id: \"\".concat(windowId, \"-gallery\")\n }, canvases.map(function (canvas) {\n return /*#__PURE__*/React.createElement(GalleryViewThumbnail, {\n key: canvas.id,\n windowId: windowId,\n canvas: canvas\n });\n }));\n }\n }]);\n\n return GalleryView;\n}(Component);\nGalleryView.defaultProps = {\n classes: {},\n viewingDirection: ''\n};","import { compose } from 'redux';\nimport { connect } from 'react-redux';\nimport { withStyles } from '@material-ui/core/styles';\nimport { withPlugins } from '../extend/withPlugins';\nimport { GalleryView } from '../components/GalleryView';\nimport { getCanvases, getSequenceViewingDirection } from '../state/selectors';\n/**\n * mapStateToProps - to hook up connect\n * @memberof WindowViewer\n * @private\n */\n\nvar mapStateToProps = function mapStateToProps(state, _ref) {\n var windowId = _ref.windowId;\n return {\n canvases: getCanvases(state, {\n windowId: windowId\n }),\n viewingDirection: getSequenceViewingDirection(state, {\n windowId: windowId\n })\n };\n};\n/**\n * Styles to be passed to the withStyles HOC\n */\n\n\nvar styles = function styles(theme) {\n return {\n galleryContainer: {\n alignItems: 'flex-start',\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n overflowX: 'hidden',\n overflowY: 'scroll',\n padding: '50px 0 50px 20px',\n width: '100%'\n }\n };\n};\n\nvar enhance = compose(withStyles(styles), connect(mapStateToProps), withPlugins('GalleryView') // further HOC go here\n);\nexport default enhance(GalleryView);"],"sourceRoot":""}