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CAEL,OAAQ,OAIX,kBAAkB,UAAY,CAC7B,IAAK,OAAO,UAAU,OAAO,WAC7B,QAAS,OAAO,UAAU,QAE3B,QAAiB,QAAI,kBACrB,OAAO,QAAU,QAAiB","file":"/npm/react-sphere-viewer@1.0.4/lib/ReactSphereViewer.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-sphere-viewer@1.0.4/lib/ReactSphereViewer.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n\tvalue: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = (function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _photoSphereViewerSa = require('photo-sphere-viewer-sa');\n\nvar _photoSphereViewerSa2 = _interopRequireDefault(_photoSphereViewerSa);\n\nvar _uevent = require('uevent');\n\nvar _uevent2 = _interopRequireDefault(_uevent);\n\nvar ReactSphereViewer = (function (_Component) {\n\t_inherits(ReactSphereViewer, _Component);\n\n\tfunction ReactSphereViewer() {\n\t\t_classCallCheck(this, ReactSphereViewer);\n\n\t\t_get(Object.getPrototypeOf(ReactSphereViewer.prototype), 'constructor', this).apply(this, arguments);\n\t}\n\n\t_createClass(ReactSphereViewer, [{\n\t\tkey: 'componentWillMount',\n\t\tvalue: function componentWillMount() {}\n\t}, {\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\t\t\tvar _props = this.props;\n\t\t\tvar src = _props.src;\n\t\t\tvar options = _props.options;\n\n\t\t\tthis.psv = new _photoSphereViewerSa2['default'](_extends({}, options, { panorama: src }));\n\t\t}\n\t}, {\n\t\tkey: 'componentWillUnmount',\n\t\tvalue: function componentWillUnmount() {\n\t\t\tthis.psv.destroy();\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar container = this.props.options.container;\n\n\t\t\treturn _react2['default'].createElement('div', { id: container });\n\t\t}\n\t}]);\n\n\treturn ReactSphereViewer;\n})(_react.Component);\n\n;\nReactSphereViewer.defaultProps = {\n\toptions: {\n\t\tgyroscope: false,\n\t\tloading_text: 'loading',\n\t\tcontainer: 'photosphere',\n\t\tnavbar: 'autorotate zoom fullscreen',\n\t\tsize: {\n\t\t\t// width: 500,\n\t\t\theight: 400\n\t\t}\n\t}\n};\nReactSphereViewer.propTypes = {\n\tsrc: _react.PropTypes.string.isRequired,\n\toptions: _react.PropTypes.object\n};\nexports['default'] = ReactSphereViewer;\nmodule.exports = exports['default'];"]}