configs/walls/vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515.a73b09779fef250d3e5a.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2019-03-12 18:36:46 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"],{"./node_modules/@researchgate/react-intersection-observer/lib/es/index.js":function(t,e,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/react-dom/index.js");r("./node_modules/@researchgate/react-intersection-observer/node_modules/prop-types/index.js"),r("./node_modules/invariant/browser.js");function s(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length?t.some(function(r,n){return s(t[n],e[n])}):t!==e}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.root||null,r=function(t){var e=/^-?\d*\.?\d+(px|%)$/,r=(t||"0px").split(/\s+/).map(function(t){if(!e.test(t))throw new Error("rootMargin must be specified in pixels or percent");return t});return r[1]=r[1]||r[0],r[2]=r[2]||r[0],r[3]=r[3]||r[1],r.join(" ")}(t.rootMargin),n=Array.isArray(t.threshold)?t.threshold:[void 0!==t.threshold?t.threshold:0],o=a.keys(),i=Array.isArray(o),c=0;for(o=i?o:o[Symbol.iterator]();;){var h;if(i){if(c>=o.length)break;h=o[c++]}else{if((c=o.next()).done)break;h=c.value}var u=h;if(![[e,u.root],[r,u.rootMargin],[n,u.thresholds]].some(function(t){return s.apply(void 0,t)}))return u}return null}var a=new Map,h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.create=function(t,e){return c(e)||new IntersectionObserver(t,e)},t.findElement=function(t,e){var r=a.get(e);if(r){var n=r.values(),o=Array.isArray(n),i=0;for(n=o?n:n[Symbol.iterator]();;){var s;if(o){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var c=s;if(c.target===t.target)return c}}return null},t.observe=function(t){var e=void 0;a.has(t.observer)?e=a.get(t.observer):(e=new Set,a.set(t.observer,e)),e.add(t),t.observer.observe(t.target)},t.unobserve=function(t){if(a.has(t.observer)){var e=a.get(t.observer);e.delete(t)&&(e.size>0?t.observer.unobserve(t.target):(t.observer.disconnect(),a.delete(t.observer)))}},t.clear=function(){a.clear()},t.count=function(){return a.size},t}(),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){t.forEach(function(t){var r=h.findElement(t,e);r&&r.handleChange(t)})}var d=["root","rootMargin","threshold"],f=Object.prototype,v=function(t){function e(){var r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=n=p(this,t.call.apply(t,[this].concat(i))),n.handleChange=function(t){n.props.onChange(t),n.props.onlyOnce&&t.isIntersecting&&n.unobserve()},n.handleNode=function(t){"function"==typeof n.props.children.ref&&n.props.children.ref(t),n.currentTarget&&t&&n.currentTarget!==t&&(n.unobserve(),n.shouldResetObserver=!0),n.target=t},p(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.observe=function(){var t;this.target=(t=this.target,o.a.isValidElement(t)&&"string"==typeof t.type?this.target:Object(i.findDOMNode)(this.target)),this.observer=h.create(l,this.options),h.observe(this)},e.prototype.unobserve=function(){h.unobserve(this)},e.prototype.reobserve=function(){this.unobserve(),this.props.disabled||this.observe()},e.prototype.componentDidMount=function(){this.props.disabled||this.observe()},e.prototype.componentWillUnmount=function(
//# sourceMappingURL=vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515.a73b09779fef250d3e5a.js.map