(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("React")); else if(typeof define === 'function' && define.amd) define(["React"], factory); else if(typeof exports === 'object') exports["ReactDisqusThread"] = factory(require("React")); else root["ReactDisqusThread"] = factory(root["React"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; module.exports = __webpack_require__(1); /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var DISQUS_CONFIG = ['shortname', 'identifier', 'title', 'url', 'category_id', 'onNewComment']; var __disqusAdded = false; function copyProps(context, props) { var prefix = arguments.length <= 2 || arguments[2] === undefined ? '' : arguments[2]; Object.keys(props).forEach(function (prop) { context[prefix + prop] = props[prop]; }); if (typeof props.onNewComment === 'function') { context[prefix + 'config'] = function config() { this.callbacks.onNewComment = [function handleNewComment(comment) { props.onNewComment(comment); }]; }; } } module.exports = _react2['default'].createClass({ displayName: 'DisqusThread', propTypes: { id: _react2['default'].PropTypes.string, /** * `shortname` tells the Disqus service your forum's shortname, * which is the unique identifier for your website as registered * on Disqus. If undefined , the Disqus embed will not load. */ shortname: _react2['default'].PropTypes.string.isRequired, /** * `identifier` tells the Disqus service how to identify the * current page. When the Disqus embed is loaded, the identifier * is used to look up the correct thread. If disqus_identifier * is undefined, the page's URL will be used. The URL can be * unreliable, such as when renaming an article slug or changing * domains, so we recommend using your own unique way of * identifying a thread. */ identifier: _react2['default'].PropTypes.string, /** * `title` tells the Disqus service the title of the current page. * This is used when creating the thread on Disqus for the first time. * If undefined, Disqus will use the