New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cantonjs/react-scroll-view

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cantonjs/react-scroll-view - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

dist/@cantonjs/react-scroll-view.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.ReactScrollView=t(require("React")):e.ReactScrollView=t(e.React)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(19)()},function(e,t,n){"use strict";n.d(t,"e",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"f",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return c}),n.d(t,"c",function(){return s});var r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),o=function e(){return(e.id=(e.id||0)+1).toString()},i=function(){};function a(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,a=function a(){var c=Date.now()-r;c<t&&c>=0?n=setTimeout(a,t-c):(n=null,i=e.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(o)),o=null)},c=function(){for(var e=arguments.length,c=Array(e),s=0;s<e;s++)c[s]=arguments[s];return o=c,r=Date.now(),n||(n=setTimeout(a,t)),i};return c.clearDebounce=function(){n&&clearTimeout(n)},c}function c(e,t){e&&("function"==typeof e?e(t):e.current=t)}var s=function(){var e=!1,t=Object.defineProperty({},"passive",{get:function(){return e=!0}});try{window.addEventListener("test",null,t)}catch(e){}return!!e&&{passive:!1,capture:!1}}()},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"a",function(){return c}),n.d(t,"c",function(){return s});var r=n(6),o=n.n(r),i=o()({ref:function(){},isIntersecting:!0}),a=o()(),c=o()(),s=o()()},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return a});var r=n(1),o=Object(r.oneOfType)([r.func,r.object]),i=Object(r.oneOfType)([r.number,Object(r.arrayOf)(r.number)]),a=Object(r.oneOfType)([r.func,r.node])},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(0)),o=i(n(14));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(3),s=n(8),u=n(2),l=n(4),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(t){function n(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=r=h(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),d.call(r),h(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r["Component"]),f(n,[{key:"componentDidMount",value:function(){var t=this,n=this.onEnter,r=this.onLeave,o=this.dom,i=this.props,a=i.rootMargin,c=i.threshold,u=i.onIntersect,l=i.debugId;e.nextTick(function(){var e=new s.a({onEnter:n,onLeave:r,onIntersect:u,debugId:l});if(o){var i={rootMargin:a,threshold:c};t.observer.observe(o,e,i)}})}},{key:"componentWillUnmount",value:function(){var e=this.dom;e&&this.observer.unobserve(e)}},{key:"render",value:function(){return o.a.createElement(c.b.Consumer,null,this.renderChildren)}}]),n}();p.propTypes={children:a.a.func.isRequired,onEnter:a.a.func,onLeave:a.a.func,onIntersect:a.a.func,rootMargin:a.a.string,threshold:l.c,innerRef:l.a,debugId:a.a.string};var d=function(){var e=this;this.state={isIntersecting:!1,ref:function(t){Object(u.d)(e.props.innerRef,t),e.dom=t}},this.onEnter=function(){var t=e.state.isIntersecting,n=e.props.onEnter;!t&&e.setState({isIntersecting:!0}),n&&n.apply(void 0,arguments)},this.onLeave=function(){var t=e.state.isIntersecting,n=e.props.onLeave;t&&e.setState({isIntersecting:!1}),n&&n.apply(void 0,arguments)},this.renderChildren=function(t){var n=e.state,r=e.props.children;return e.observer=t,r(n)}};t.a=p}).call(this,n(15))},function(e,t,n){"use strict";var r=n(2),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entry=t,this.debugId=n}return o(e,[{key:"isOffsetTop",get:function(){var e=this.entry;return!e.isIntersecting&&e.boundingClientRect.bottom<e.rootBounds.bottom}},{key:"isOffsetBottom",get:function(){var e=this.entry;return!e.isIntersecting&&e.boundingClientRect.bottom>e.rootBounds.bottom}},{key:"isTopVisible",get:function(){var e=this.entry;return e.isIntersecting&&e.boundingClientRect.top>=e.rootBounds.top}},{key:"isBottomVisible",get:function(){var e=this.entry;return e.isIntersecting&&e.boundingClientRect.bottom<=e.rootBounds.bottom}},{key:"isTopBoundary",get:function(){var e=this.entry;return e.isIntersecting&&e.boundingClientRect.top===e.rootBounds.top}},{key:"isBottomBoundary",get:function(){var e=this.entry;return e.isIntersecting&&e.boundingClientRect.bottom===e.rootBounds.bottom}}]),e}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var c=function(){function e(t){var n=t.onEnter,o=t.onLeave,i=t.onIntersect,a=t.debugId,c=void 0===a?"":a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._onIntersect=i||r.f,this.onEnter=n||r.f,this.onLeave=o||r.f,this._isIntersecting=!1,this.debugId=c}return a(e,[{key:"onIntersect",value:function(e){var t=e.entry,n=t.isIntersecting,r=new i(t,this.debugId);this._isIntersecting!==n&&(this._isIntersecting=n,this[n?"onEnter":"onLeave"](r)),this._onIntersect(r)}}]),e}();t.a=c},function(e,t,n){"use strict";n.r(t);var r=n(2),o=function(e,t){return e===t};var i=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1,c=function(e,n){return t(e,i[n])};return function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return a&&n===this&&o.length===i.length&&o.every(c)?r:(r=e.apply(this,o),a=!0,n=this,i=o,r)}};function a(e){return function(){return Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]="function"==typeof r?i(r):r,t},{})}}var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=a({container:function(e){return c({position:"relative"},e)},main:function(e,t){var n,o="vertical"===e?"overflowY":"overflowX",i=(s(n={position:"relative",height:"100%",width:"100%"},"vertical"===e?"overflowX":"overflowY","hidden"),s(n,o,t?"hidden":r.e?"scroll":"auto"),n);return r.e&&(i.WebkitOverflowScrolling="touch"),i},background:function(e){return c({position:"absolute",top:0,left:0,zIndex:-1},"vertical"===e?{width:"100%",height:"calc(100% + 1px)"}:{width:"calc(100% + 1px)",height:"100%"})},endHook:function(e){return{position:"relative",bottom:e}},fixedContainer:function(e){return c({},e,{position:"absolute",left:0,right:0,top:0,height:0,zIndex:666666})}}),l=n(0),f=n.n(l),h=n(1),p=n.n(h),d=n(4),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._store=[],this._key="__map"+Object(r.a)()}return v(e,[{key:"has",value:function(e){return!!~this._store.indexOf(e)}},{key:"set",value:function(e,t){this.has(e)||(e[this._key]=t,this._store.push(e))}},{key:"get",value:function(e){if(this.has(e))return e[this._key]}},{key:"delete",value:function(e){var t=this._store.indexOf(e);t>-1&&(delete e[this._key],this._store.splice(t,1))}},{key:"size",get:function(){return this._store.length}}]),e}(),b=Map||y,m=n(5),g=n.n(m),w=n(8),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();if(!IntersectionObserver)throw new Error(["react-scroll-view requires `IntersectionObserver`.","You may add this polyfill to fix the issue.","`https://github.com/w3c/IntersectionObserver/tree/master/polyfill`"].join(" "));var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._boxes=new b,this._prevScrollPos=0,this._currScrollPos=0}return _(e,[{key:"mount",value:function(e){this.root=e}},{key:"observe",value:function(e,t,n){var r=this;if(!this.root)return g()(!1,"Should call observer.mount(root) before calling observer.observe()");if(t instanceof w.a&&!this._boxes.has(e)){var o=new IntersectionObserver(function(e){return e.forEach(function(e){var t=e.target;r._boxes.has(t)&&r._boxes.get(t).intersection.onIntersect({entry:e})})},O({root:this.root},n)),i=function(e,t){return{observer:e,intersection:t}}(o,t);this._boxes.set(e,i),o.observe(e)}}},{key:"unobserve",value:function(e){var t=this._boxes.get(e);if(t){var n=t.observer;n.unobserve(e),n.disconnect(),this._boxes.delete(e)}}}]),e}(),j=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var k=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=[]}return j(e,[{key:"bind",value:function(e){this.forceUpdate||(this.forceUpdate=e.forceUpdate.bind(e))}},{key:"unbind",value:function(){this.forceUpdate=null}},{key:"_findIndexByKey",value:function(e){for(var t=this.children,n=t.length,r=-1,o=0;o<n;o++){var i=t[o];if(i&&i.key===e){r=o;break}}return r}},{key:"unmount",value:function(e){var t=this._findIndexByKey(e);t>-1&&(this.children.splice(t,1),this.forceUpdate&&this.forceUpdate())}},{key:"render",value:function(e){var t=this.children,n=e.key,r=this._findIndexByKey(n);r>-1?t.splice(r,1,e):t.push(e),this.forceUpdate&&this.forceUpdate()}}]),e}(),T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var x=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return T(e,[{key:"mount",value:function(e){this.reactInstance=e}},{key:"unmount",value:function(){this.reactInstance=null}},{key:"call",value:function(e){if(this.reactInstance){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.reactInstance)[e].apply(t,r)}}}]),e}(),R=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var C=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._preventWindowScroll=function(e){!1!==e.cancelable&&e.preventDefault()},this._dom=t,this.isActive=!1}return R(e,[{key:"start",value:function(){window.addEventListener("touchmove",this._preventWindowScroll,r.c),this.isActive=!0,this._overflowStyle=this._dom.style.overflowY,this._dom.style.overflowY="hidden"}},{key:"stop",value:function(){window.removeEventListener("touchmove",this._preventWindowScroll,r.c),this.isActive=!1,this._dom.style.overflowY=this._overflowStyle}}]),e}(),P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S=a({hook:function(e){return P({pointerEvents:"none"},e)}}),I=n(7),A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function L(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var B=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=L(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.styles=S(),L(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),A(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style"]),r=this.styles;return f.a.createElement(I.a,n,function(e){var n=e.ref;return f.a.createElement("div",{role:"none","aria-label":"react-scroll-hook",ref:n,style:r.hook(t)})})}}]),t}();B.propTypes={style:p.a.object};var D=B,U=n(3),H=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function M(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var N=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=M(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderChildren=function(e){r.fixedState=e,r.unbind=e.bind(r);var t=e.children;return t.length?f.a.createElement("div",r.props,t):null},M(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),H(t,[{key:"componentWillUnmount",value:function(){this.fixedState.unbind()}},{key:"render",value:function(){return f.a.createElement(U.a.Consumer,null,this.renderChildren)}}]),t}(),W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var z=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));V.call(n);var o=e.isHorizontal,i=e.onEndReached,a=e.refreshControl;return g()(!o||!a,"`refreshControl` with `isHorizontal` is NOT supported, `refreshControl` will be ignored"),g()(!o||!i,"`onEndReached` with `isHorizontal` is NOT supported, `onEndReached` will be ignored"),n.styles=u(),n.observer=new E,n.toEmitOnScrollEnd=Object(r.b)(function(e){var t=n.props.onScrollEnd;n.isScrolling=!1,t&&t(e)},100),n.fixedState=new k,e.refreshControl&&(n.refreshState=new x),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),q(t,[{key:"componentDidMount",value:function(){var e=this.dom;this.observer.mount(e),this.registerTouchEvents(e)}},{key:"componentWillUnmount",value:function(){var e=this.dom;this.toEmitOnScrollEnd.clearDebounce(),this.unregisterTouchEvents(e)}},{key:"scrollTo",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.props.isHorizontal?[t,0]:[0,t];(e=this.dom).scrollTo.apply(e,n)}},{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,o=e.contentContainerStyle,i=e.contentContainerClassName,a=e.children,c=(e.onScrollStart,e.onScrollEnd,e.onEndReached,e.endReachedThreshold),s=e.isHorizontal,u=e.disabled,l=e.refreshControl,h=(e.innerRef,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","contentContainerStyle","contentContainerClassName","children","onScrollStart","onScrollEnd","onEndReached","endReachedThreshold","isHorizontal","disabled","refreshControl","innerRef"])),p=this.styles,d=this.observer,v=this.fixedState,y=this.refreshState,b=s?"horizontal":"vertical";return f.a.createElement(U.b.Provider,{value:d},f.a.createElement(U.a.Provider,{value:v},f.a.createElement(U.c.Provider,{value:y},f.a.createElement("div",{style:p.container(t),className:n},f.a.createElement("div",W({},h,{style:p.main(b,u),ref:this.scrollViewRef,onScroll:this.handleScroll}),!s&&l,f.a.createElement("div",{style:o,className:i},a),r.e&&f.a.createElement("div",{style:p.background(b)}),!s&&f.a.createElement(D,{style:p.endHook(c),onEnter:this.handleEndEnter})),f.a.createElement(N,{style:p.fixedContainer(o)},v.children)))))}}]),t}();z.propTypes={style:p.a.object,className:p.a.string,contentContainerStyle:p.a.object,contentContainerClassName:p.a.string,children:p.a.node,onScrollStart:p.a.func,onScroll:p.a.func,onScrollEnd:p.a.func,onEndReached:p.a.func,endReachedThreshold:p.a.number,isHorizontal:p.a.bool,innerRef:d.a,disabled:p.a.bool,refreshControl:p.a.node},z.defaultProps={endReachedThreshold:0,isHorizontal:!1,disabled:!1};var V=function(){var e=this;this.scrollViewRef=function(t){Object(r.d)(e.props.innerRef,t),e.dom=t},this.registerTouchEvents=function(t){e.refreshState&&(e.pullingDown=new C(e.dom),t.addEventListener("touchstart",e.handleTouchStart,r.c),t.addEventListener("touchmove",e.handleTouchMove,r.c),t.addEventListener("touchend",e.handleTouchEnd,r.c))},this.unregisterTouchEvents=function(t){e.refreshState&&(t.removeEventListener("touchstart",e.handleTouchStart,r.c),t.removeEventListener("touchmove",e.handleTouchMove,r.c),t.removeEventListener("touchend",e.handleTouchEnd,r.c))},this.handleEndEnter=function(){var t=e.props.onEndReached;t&&t()},this.handleScroll=function(t){var n=e.props,r=n.onScrollStart,o=n.onScroll;e.isScrolling||(e.isScrolling=!0,r&&r(t)),o&&o(t),e.toEmitOnScrollEnd(t)},this.handleTouchStart=function(t){e.y0=t.touches[0].clientY},this.handleTouchMove=function(t){var n=t.touches[0],r=n.clientY-e.y0;e.pullingDown.isActive?r<=0&&(e.refreshState.call("setHeight",0),e.pullingDown.stop()):e.dom.scrollTop<=0?r>0&&(e.pullingDown.start(),e.refreshState.call("disableTransition")):e.y0=n.clientY,e.pullingDown.isActive&&e.refreshState.call("setHeight",r)},this.handleTouchEnd=function(){e.y0=0,e.pullingDown.isActive&&(e.refreshState.call("attemptToRefresh"),e.pullingDown.stop())}},Y=z,F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z=a({container:function(e){return F({position:"relative"},e)},topHook:{position:"absolute",top:0},bottomHook:function(){return{position:"absolute",bottom:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,top:0,left:0,right:0,zIndex:-666}},sticky:function(e){return{zIndex:e}}}),K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var X=a({fixed:function(e){return K({position:"absolute",top:0,left:"inherit",right:"inherit",paddingLeft:"inherit",paddingRight:"inherit",marginLeft:"inherit",marginRight:"inherit"},e)},relative:function(e,t){return K((o=0,(r=t)in(n={position:"absolute",zIndex:1,left:0,right:0})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n),e);var n,r,o}}),G=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var J=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderChildren=function(e){return n.fixedContext=e,null},n.fixedId=Object(r.a)(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),G(t,[{key:"componentDidMount",value:function(){this.renderInContext()}},{key:"componentDidUpdate",value:function(e){e.children!==this.props.children&&this.renderInContext()}},{key:"componentWillUnmount",value:function(){this.fixedContext.unmount(this.fixedId)}},{key:"renderInContext",value:function(){var e=this.fixedContext,t=this.fixedId,n=this.props.children;e.render&&e.render(Object(l.cloneElement)(l.Children.only(n),{key:t}))}},{key:"render",value:function(){return f.a.createElement(U.a.Consumer,null,this.renderChildren)}}]),t}();J.propTypes={children:p.a.node};var Q=J,$=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function ee(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var te=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ee(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.styles=X(),r.saveDOMNode=function(e){if(e&&!r.dom&&r.stickyContext){var t=e.getBoundingClientRect().height;r.stickyContext.setStickyStyle({height:t})}r.dom=e},r.renderChildren=function(e){r.stickyContext=e;var t=r,n=t.props.style,o=t.stickyContext.position,i=t.styles;if("fixed"===o)return f.a.createElement(Q,null,f.a.createElement("div",{ref:r.saveDOMNode,style:i.fixed(n)},r.returnChildren(o)));var a=o;return f.a.createElement("div",{ref:r.saveDOMNode,style:i.relative(n,a)},r.returnChildren(o))},ee(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),$(t,[{key:"returnChildren",value:function(e){var t=this.props.children;return Object(l.isValidElement)(t)?t:t(e)}},{key:"render",value:function(){return f.a.createElement(U.d.Consumer,null,this.renderChildren)}}]),t}();te.propTypes={children:d.b,style:p.a.object};var ne=te,re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function ie(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ae=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ie(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={stickyStyle:{},position:"top",setStickyStyle:function(e){r.setState({stickyStyle:e})},stickyZIndex:1},r.styles=Z(),r.handleTopEnter=function(e){r.setPosition(e.isTopBoundary?"fixed":"top")},r.handleTopLeave=function(e){e.isOffsetTop&&r.setPosition("fixed")},r.handleIntersect=function(e){e.isTopBoundary||e.isBottomVisible&&!e.isTopVisible?r.setPosition("fixed"):e.isTopVisible||e.isOffsetBottom?r.setPosition("top"):e.isOffsetTop&&r.setPosition("bottom")},ie(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),oe(t,[{key:"setPosition",value:function(e){this.state.position!==e&&this.setState({position:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.sticky,r=e.stickyZIndex,o=e.style,i=e.debugId,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","sticky","stickyZIndex","style","debugId"]),c=this.state.stickyStyle,s=this.styles;return f.a.createElement(U.d.Provider,{value:this.state},f.a.createElement("div",re({},a,{style:s.container(o)}),f.a.createElement("div",{style:c}),f.a.createElement(D,{debugId:i+"(top)",onEnter:this.handleTopEnter,onLeave:this.handleTopLeave,style:s.topHook}),t,n&&f.a.createElement(ne,{style:s.sticky(r)},n),f.a.createElement(D,{debugId:i+"(bottom)",onIntersect:this.handleIntersect,style:s.bottomHook(c.height)})))}}]),t}();ae.propTypes={children:p.a.node,sticky:d.b,style:p.a.object,stickyZIndex:p.a.number,debugId:p.a.string};var ce=ae,se=a({iconContainer:{width:100,height:32,position:"absolute",left:"50%",bottom:24,marginLeft:-50,textAlign:"center"},arrowIcon:function(e){return{transform:"rotateZ("+(e?180:0)+"deg)",transition:"transform 0.3s"}}}),ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function le(e){var t=e.color,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["color"]);return f.a.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",width:"32px",height:"32px"},n),f.a.createElement("line",{x1:"20",y1:"4",x2:"20",y2:"32",strokeLinecap:"round",strokeWidth:3,stroke:t}),f.a.createElement("polyline",{points:"10 24 20 34 30 24",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,fill:"none",stroke:t}))}le.propTypes={color:p.a.string.isRequired};var fe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function he(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var pe={transition:"opacity 0.3s"},de=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=he(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.highlighted=0,r.circles=[6,20,34],he(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),fe(t,[{key:"componentDidMount",value:function(){var e=this,t=this.circles.length;this.intervalId=setInterval(function(){var n=e.highlighted+1;e.highlighted=n>=t?0:n,e.forceUpdate()},300)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){clearInterval(this.intervalId)}},{key:"render",value:function(){var e=this.props.color,t=this.highlighted,n=this.circles;return f.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",width:"32px",height:"32px"},n.map(function(n,r){return f.a.createElement("circle",{key:r,cx:n,cy:"20",r:"3",fill:e,opacity:t===r?1:.2,style:pe})}))}}]),t}();de.propTypes={color:p.a.string.isRequired};var ve=de,ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be=a({container:function(e,t){return ye({},e,{height:0,overflow:"hidden",position:"relative",minHeight:t?80:0})}}),me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ge=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function we(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Oe=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=we(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.styles=be(),r.state={isActive:!1},r.domRef=function(e){r.dom=e},r.renderChildren=function(e){r.refreshState||(r.refreshState=e,e.mount(r));var t=r,n=t.props,o=n.children,i=n.style,a=n.isRefreshing,c=(n.onRefresh,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["children","style","isRefreshing","onRefresh"])),s=t.state.isActive,u=t.styles;return f.a.createElement("div",me({},c,{style:u.container(i,a),ref:r.domRef}),o({isRefreshing:a,isActive:s}))},we(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),ge(t,[{key:"componentDidUpdate",value:function(e){!e.isRefreshing&&this.props.isRefreshing?(this.enableTransition(),this.setHeight(80)):e.isRefreshing&&!this.props.isRefreshing&&(this.end(),this.setHeight(0))}},{key:"componentWillUnmount",value:function(){this.refreshState.unmount()}},{key:"requestRefresh",value:function(){var e=this.props.onRefresh;e&&e()}},{key:"setHeight",value:function(e){var t=e>0?e>80?80+(e-80)/2:e:0,n=this.state.isActive;this.dom.style.height=t+"px",t>=80&&!n?this.setState({isActive:!0}):t<80&&n&&this.setState({isActive:!1})}},{key:"enableTransition",value:function(){this.dom.style.transition="height 0.3s ease-out, min-height 0.3s ease-out"}},{key:"disableTransition",value:function(){this.dom.style.transition="none"}},{key:"end",value:function(){this.state.isActive&&(this.enableTransition(),this.setState({isActive:!1}))}},{key:"attemptToRefresh",value:function(){var e=this.props,t=e.onRefresh,n=e.isRefreshing,r=this.state.isActive;t&&!n&&r&&t(),this.end(),n?this.setHeight(80):this.setHeight(0)}},{key:"render",value:function(){return f.a.createElement(U.c.Consumer,null,this.renderChildren)}}]),t}();Oe.propTypes={isRefreshing:p.a.bool.isRequired,onRefresh:p.a.func,style:p.a.object,children:p.a.func.isRequired};var _e=Oe,Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function ke(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Te=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ke(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.styles=se(),r.saveRef=function(e){r.refreshControl=e},ke(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),je(t,[{key:"requestRefresh",value:function(){var e=this.refreshControl;e&&e.requestRefresh()}},{key:"render",value:function(){var e=this.props,t=e.color,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["color"]),r=this.styles;return f.a.createElement(_e,Ee({},n,{ref:this.saveRef}),function(e){var n=e.isRefreshing,o=e.isActive;return f.a.createElement("div",{style:r.iconContainer},n?f.a.createElement(ve,{color:t}):f.a.createElement(le,{color:t,style:r.arrowIcon(o)}))})}}]),t}();Te.propTypes={isRefreshing:p.a.bool.isRequired,onRefresh:p.a.func,color:p.a.string,style:p.a.object},Te.defaultProps={color:"#333"};var xe=Te;n.d(t,"ScrollView",function(){return Y}),n.d(t,"ScrollObserver",function(){return I.a}),n.d(t,"StickySection",function(){return ce}),n.d(t,"Fixed",function(){return Q}),n.d(t,"RefreshControl",function(){return xe}),n.d(t,"RefreshControlObserver",function(){return _e})},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=n(10);e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(12))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),o=(a(r),a(n(1))),i=a(n(13));a(n(11));function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=1073741823;t.default=function(e,t){var n,a,f="__create-react-context-"+(0,i.default)()+"__",h=function(e){function n(){var t,r,o,i;c(this,n);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return t=r=s(this,e.call.apply(e,[this].concat(u))),r.emitter=(o=r.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter(function(t){return t!==e})},get:function(){return o},set:function(e,t){o=e,i.forEach(function(e){return e(o,t)})}}),s(r,t)}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[f]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)?o=0:(o="function"==typeof t?t(n,r):l,0!=(o|=0)&&this.emitter.set(e.value,o))}var i,a},n.prototype.render=function(){return this.props.children},n}(r.Component);h.childContextTypes=((n={})[f]=o.default.object.isRequired,n);var p=function(t){function n(){var e,r;c(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=s(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},s(r,e)}return u(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((a={})[f]=o.default.object,a),{Provider:h,Consumer:p}},e.exports=t.default},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,f=-1;function h(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=c(h);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||l||c(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,c,s){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,c,s],f=0;(u=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=n(18),o=n(17),i=n(16);e.exports=function(){function e(e,t,n,r,a,c){c!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.ReactScrollView=t(require("React")):e.ReactScrollView=t(e.React)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(19)()},function(e,t,n){"use strict";n.d(t,"e",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"f",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return c}),n.d(t,"c",function(){return s});var r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),o=function e(){return(e.id=(e.id||0)+1).toString()},i=function(){};function a(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,a=function a(){var c=Date.now()-r;c<t&&c>=0?n=setTimeout(a,t-c):(n=null,i=e.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(o)),o=null)},c=function(){for(var e=arguments.length,c=Array(e),s=0;s<e;s++)c[s]=arguments[s];return o=c,r=Date.now(),n||(n=setTimeout(a,t)),i};return c.clearDebounce=function(){n&&clearTimeout(n)},c}function c(e,t){e&&("function"==typeof e?e(t):e.current=t)}var s=function(){var e=!1,t=Object.defineProperty({},"passive",{get:function(){return e=!0}});try{window.addEventListener("test",null,t)}catch(e){}return!!e&&{passive:!1,capture:!1}}()},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"a",function(){return c}),n.d(t,"c",function(){return s});var r=n(6),o=n.n(r),i=o()({ref:function(){},isIntersecting:!0}),a=o()(),c=o()(),s=o()()},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return a});var r=n(1),o=Object(r.oneOfType)([r.func,r.object]),i=Object(r.oneOfType)([r.number,Object(r.arrayOf)(r.number)]),a=Object(r.oneOfType)([r.func,r.node])},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(0)),o=i(n(14));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(3),s=n(8),u=n(2),l=n(4),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(t){function n(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=r=h(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),d.call(r),h(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r["Component"]),f(n,[{key:"componentDidMount",value:function(){var t=this,n=this.onEnter,r=this.onLeave,o=this.dom,i=this.props,a=i.rootMargin,c=i.threshold,u=i.onIntersect,l=i.debugId;e.nextTick(function(){var e=new s.a({onEnter:n,onLeave:r,onIntersect:u,debugId:l});if(o){var i={rootMargin:a,threshold:c};t.observer.observe(o,e,i)}})}},{key:"componentWillUnmount",value:function(){var e=this.dom;e&&this.observer.unobserve(e)}},{key:"render",value:function(){return o.a.createElement(c.b.Consumer,null,this.renderChildren)}}]),n}();p.propTypes={children:a.a.func.isRequired,onEnter:a.a.func,onLeave:a.a.func,onIntersect:a.a.func,rootMargin:a.a.string,threshold:l.c,innerRef:l.a,debugId:a.a.string};var d=function(){var e=this;this.state={isIntersecting:!1,ref:function(t){Object(u.d)(e.props.innerRef,t),e.dom=t}},this.onEnter=function(){var t=e.state.isIntersecting,n=e.props.onEnter;!t&&e.setState({isIntersecting:!0}),n&&n.apply(void 0,arguments)},this.onLeave=function(){var t=e.state.isIntersecting,n=e.props.onLeave;t&&e.setState({isIntersecting:!1}),n&&n.apply(void 0,arguments)},this.renderChildren=function(t){var n=e.state,r=e.props.children;return e.observer=t,r(n)}};t.a=p}).call(this,n(15))},function(e,t,n){"use strict";var r=n(2),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entry=t,this.debugId=n}return o(e,[{key:"isOffsetTop",get:function(){var e=this.entry;return!e.isIntersecting&&e.boundingClientRect.bottom<e.rootBounds.bottom}},{key:"isOffsetBottom",get:function(){var e=this.entry;return!e.isIntersecting&&e.boundingClientRect.bottom>e.rootBounds.bottom}},{key:"isTopVisible",get:function(){var e=this.entry;return e.isIntersecting&&e.boundingClientRect.top>=e.rootBounds.top}},{key:"isBottomVisible",get:function(){var e=this.entry;return e.isIntersecting&&e.boundingClientRect.bottom<=e.rootBounds.bottom}},{key:"isTopBoundary",get:function(){var e=this.entry;return e.isIntersecting&&e.boundingClientRect.top===e.rootBounds.top}},{key:"isBottomBoundary",get:function(){var e=this.entry;return e.isIntersecting&&e.boundingClientRect.bottom===e.rootBounds.bottom}}]),e}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var c=function(){function e(t){var n=t.onEnter,o=t.onLeave,i=t.onIntersect,a=t.debugId,c=void 0===a?"":a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._onIntersect=i||r.f,this.onEnter=n||r.f,this.onLeave=o||r.f,this._isIntersecting=!1,this.debugId=c}return a(e,[{key:"onIntersect",value:function(e){var t=e.entry,n=t.isIntersecting,r=new i(t,this.debugId);this._isIntersecting!==n&&(this._isIntersecting=n,this[n?"onEnter":"onLeave"](r)),this._onIntersect(r)}}]),e}();t.a=c},function(e,t,n){"use strict";n.r(t);var r=n(2),o=function(e,t){return e===t};var i=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1,c=function(e,n){return t(e,i[n])};return function(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return a&&n===this&&o.length===i.length&&o.every(c)?r:(r=e.apply(this,o),a=!0,n=this,i=o,r)}};function a(e){return function(){return Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]="function"==typeof r?i(r):r,t},{})}}var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=a({container:function(e){return c({position:"relative"},e)},main:function(e,t){var n,o="vertical"===e?"overflowY":"overflowX",i=(s(n={position:"relative",height:"100%",width:"100%"},"vertical"===e?"overflowX":"overflowY","hidden"),s(n,o,t?"hidden":r.e?"scroll":"auto"),n);return r.e&&(i.WebkitOverflowScrolling="touch"),i},background:function(e){return c({position:"absolute",top:0,left:0,zIndex:-1},"vertical"===e?{width:"100%",height:"calc(100% + 1px)"}:{width:"calc(100% + 1px)",height:"100%"})},endHook:function(e){return{position:"relative",bottom:e}},fixedContainer:function(e){return c({},e,{position:"absolute",left:0,right:0,top:0,height:0,zIndex:666666})}}),l=n(0),f=n.n(l),h=n(1),p=n.n(h),d=n(4),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._store=[],this._key="__map"+Object(r.a)()}return v(e,[{key:"has",value:function(e){return!!~this._store.indexOf(e)}},{key:"set",value:function(e,t){this.has(e)||(e[this._key]=t,this._store.push(e))}},{key:"get",value:function(e){if(this.has(e))return e[this._key]}},{key:"delete",value:function(e){var t=this._store.indexOf(e);t>-1&&(delete e[this._key],this._store.splice(t,1))}},{key:"size",get:function(){return this._store.length}}]),e}(),b=Map||y,m=n(5),g=n.n(m),w=n(8),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();if(!IntersectionObserver)throw new Error(["react-scroll-view requires `IntersectionObserver`.","You may add this polyfill to fix the issue.","`https://github.com/w3c/IntersectionObserver/tree/master/polyfill`"].join(" "));var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._boxes=new b,this._prevScrollPos=0,this._currScrollPos=0}return _(e,[{key:"mount",value:function(e){this.root=e}},{key:"observe",value:function(e,t,n){var r=this;if(!this.root)return g()(!1,"Should call observer.mount(root) before calling observer.observe()");if(t instanceof w.a&&!this._boxes.has(e)){var o=new IntersectionObserver(function(e){return e.forEach(function(e){var t=e.target;r._boxes.has(t)&&r._boxes.get(t).intersection.onIntersect({entry:e})})},O({root:this.root},n)),i=function(e,t){return{observer:e,intersection:t}}(o,t);this._boxes.set(e,i),o.observe(e)}}},{key:"unobserve",value:function(e){var t=this._boxes.get(e);if(t){var n=t.observer;n.unobserve(e),n.disconnect(),this._boxes.delete(e)}}}]),e}(),j=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var k=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=[]}return j(e,[{key:"bind",value:function(e){this.forceUpdate||(this.forceUpdate=e.forceUpdate.bind(e))}},{key:"unbind",value:function(){this.forceUpdate=null}},{key:"_findIndexByKey",value:function(e){for(var t=this.children,n=t.length,r=-1,o=0;o<n;o++){var i=t[o];if(i&&i.key===e){r=o;break}}return r}},{key:"unmount",value:function(e){var t=this._findIndexByKey(e);t>-1&&(this.children.splice(t,1),this.forceUpdate&&this.forceUpdate())}},{key:"render",value:function(e){var t=this.children,n=e.key,r=this._findIndexByKey(n);r>-1?t.splice(r,1,e):t.push(e),this.forceUpdate&&this.forceUpdate()}}]),e}(),T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var x=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return T(e,[{key:"mount",value:function(e){this.reactInstance=e}},{key:"unmount",value:function(){this.reactInstance=null}},{key:"call",value:function(e){if(this.reactInstance){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.reactInstance)[e].apply(t,r)}}}]),e}(),R=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var C=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._preventWindowScroll=function(e){!1!==e.cancelable&&e.preventDefault()},this._dom=t,this.isActive=!1}return R(e,[{key:"start",value:function(){window.addEventListener("touchmove",this._preventWindowScroll,r.c),this.isActive=!0,this._overflowStyle=this._dom.style.overflowY,this._dom.style.overflowY="hidden"}},{key:"stop",value:function(){window.removeEventListener("touchmove",this._preventWindowScroll,r.c),this.isActive=!1,this._dom.style.overflowY=this._overflowStyle}}]),e}(),P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S=a({hook:function(e){return P({pointerEvents:"none"},e)}}),I=n(7),A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function L(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var B=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=L(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.styles=S(),L(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),A(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style"]),r=this.styles;return f.a.createElement(I.a,n,function(e){var n=e.ref;return f.a.createElement("div",{role:"none","aria-label":"react-scroll-hook",ref:n,style:r.hook(t)})})}}]),t}();B.propTypes={style:p.a.object};var D=B,U=n(3),H=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function M(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var N=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=M(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderChildren=function(e){r.fixedState=e,r.unbind=e.bind(r);var t=e.children;return t.length?f.a.createElement("div",r.props,t):null},M(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),H(t,[{key:"componentWillUnmount",value:function(){this.fixedState.unbind()}},{key:"render",value:function(){return f.a.createElement(U.a.Consumer,null,this.renderChildren)}}]),t}(),W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var z=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));V.call(n);var o=e.isHorizontal,i=e.onEndReached,a=e.refreshControl;return g()(!o||!a,"`refreshControl` with `isHorizontal` is NOT supported, `refreshControl` will be ignored"),g()(!o||!i,"`onEndReached` with `isHorizontal` is NOT supported, `onEndReached` will be ignored"),n.styles=u(),n.observer=new E,n.toEmitOnScrollEnd=Object(r.b)(function(e){var t=n.props.onScrollEnd;n.isScrolling=!1,t&&t(e)},100),n.fixedState=new k,e.refreshControl&&(n.refreshState=new x),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),q(t,[{key:"componentDidMount",value:function(){var e=this.dom;this.observer.mount(e),this.registerTouchEvents(e)}},{key:"componentWillUnmount",value:function(){var e=this.dom;this.toEmitOnScrollEnd.clearDebounce(),this.unregisterTouchEvents(e)}},{key:"scrollTo",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.props.isHorizontal?[t,0]:[0,t];(e=this.dom).scrollTo.apply(e,n)}},{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,o=e.contentContainerStyle,i=e.contentContainerClassName,a=e.children,c=(e.onScrollStart,e.onScrollEnd,e.onEndReached,e.endReachedThreshold),s=e.isHorizontal,u=e.disabled,l=e.refreshControl,h=(e.innerRef,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","className","contentContainerStyle","contentContainerClassName","children","onScrollStart","onScrollEnd","onEndReached","endReachedThreshold","isHorizontal","disabled","refreshControl","innerRef"])),p=this.styles,d=this.observer,v=this.fixedState,y=this.refreshState,b=s?"horizontal":"vertical";return f.a.createElement(U.b.Provider,{value:d},f.a.createElement(U.a.Provider,{value:v},f.a.createElement(U.c.Provider,{value:y},f.a.createElement("div",{style:p.container(t),className:n},f.a.createElement("div",W({},h,{style:p.main(b,u),ref:this.scrollViewRef,onScroll:this.handleScroll}),!s&&l,f.a.createElement("div",{style:o,className:i},a),r.e&&f.a.createElement("div",{style:p.background(b)}),!s&&f.a.createElement(D,{style:p.endHook(c),onEnter:this.handleEndEnter})),f.a.createElement(N,{style:p.fixedContainer(o)},v.children)))))}}]),t}();z.propTypes={style:p.a.object,className:p.a.string,contentContainerStyle:p.a.object,contentContainerClassName:p.a.string,children:p.a.node,onScrollStart:p.a.func,onScroll:p.a.func,onScrollEnd:p.a.func,onEndReached:p.a.func,endReachedThreshold:p.a.number,isHorizontal:p.a.bool,innerRef:d.a,disabled:p.a.bool,refreshControl:p.a.node},z.defaultProps={endReachedThreshold:0,isHorizontal:!1,disabled:!1};var V=function(){var e=this;this.scrollViewRef=function(t){Object(r.d)(e.props.innerRef,t),e.dom=t},this.registerTouchEvents=function(t){e.refreshState&&(e.pullingDown=new C(e.dom),t.addEventListener("touchstart",e.handleTouchStart,r.c))},this.unregisterTouchEvents=function(t){e.refreshState&&t.removeEventListener("touchstart",e.handleTouchStart,r.c)},this.handleEndEnter=function(){var t=e.props.onEndReached;t&&t()},this.handleScroll=function(t){var n=e.props,r=n.onScrollStart,o=n.onScroll;e.isScrolling||(e.isScrolling=!0,r&&r(t)),o&&o(t),e.toEmitOnScrollEnd(t)},this.handleTouchStart=function(t){var n=e.dom;e.y0=t.touches[0].clientY,n.addEventListener("touchmove",e.handleTouchMove,r.c),n.addEventListener("touchend",e.handleTouchEnd,r.c)},this.handleTouchMove=function(t){var n=t.touches[0],r=n.clientY-e.y0;e.pullingDown.isActive?r<=0&&(e.refreshState.call("setHeight",0),e.pullingDown.stop()):e.dom.scrollTop<=0?r>0&&(e.pullingDown.start(),e.refreshState.call("disableTransition")):e.y0=n.clientY,e.pullingDown.isActive&&e.refreshState.call("setHeight",r)},this.handleTouchEnd=function(){var t=e.dom;e.y0=0,e.pullingDown.isActive&&(e.refreshState.call("attemptToRefresh"),e.pullingDown.stop()),t.removeEventListener("touchmove",e.handleTouchMove,r.c),t.removeEventListener("touchend",e.handleTouchEnd,r.c)}},Y=z,F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z=a({container:function(e){return F({position:"relative"},e)},topHook:{position:"absolute",top:0},bottomHook:function(){return{position:"absolute",bottom:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,top:0,left:0,right:0,zIndex:-666}},sticky:function(e){return{zIndex:e}}}),K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var X=a({fixed:function(e){return K({position:"absolute",top:0,left:"inherit",right:"inherit",paddingLeft:"inherit",paddingRight:"inherit",marginLeft:"inherit",marginRight:"inherit"},e)},relative:function(e,t){return K((o=0,(r=t)in(n={position:"absolute",zIndex:1,left:0,right:0})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n),e);var n,r,o}}),G=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var J=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderChildren=function(e){return n.fixedContext=e,null},n.fixedId=Object(r.a)(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),G(t,[{key:"componentDidMount",value:function(){this.renderInContext()}},{key:"componentDidUpdate",value:function(e){e.children!==this.props.children&&this.renderInContext()}},{key:"componentWillUnmount",value:function(){this.fixedContext.unmount(this.fixedId)}},{key:"renderInContext",value:function(){var e=this.fixedContext,t=this.fixedId,n=this.props.children;e.render&&e.render(Object(l.cloneElement)(l.Children.only(n),{key:t}))}},{key:"render",value:function(){return f.a.createElement(U.a.Consumer,null,this.renderChildren)}}]),t}();J.propTypes={children:p.a.node};var Q=J,$=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function ee(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var te=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ee(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.styles=X(),r.saveDOMNode=function(e){if(e&&!r.dom&&r.stickyContext){var t=e.getBoundingClientRect().height;r.stickyContext.setStickyStyle({height:t})}r.dom=e},r.renderChildren=function(e){r.stickyContext=e;var t=r,n=t.props.style,o=t.stickyContext.position,i=t.styles;if("fixed"===o)return f.a.createElement(Q,null,f.a.createElement("div",{ref:r.saveDOMNode,style:i.fixed(n)},r.returnChildren(o)));var a=o;return f.a.createElement("div",{ref:r.saveDOMNode,style:i.relative(n,a)},r.returnChildren(o))},ee(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),$(t,[{key:"returnChildren",value:function(e){var t=this.props.children;return Object(l.isValidElement)(t)?t:t(e)}},{key:"render",value:function(){return f.a.createElement(U.d.Consumer,null,this.renderChildren)}}]),t}();te.propTypes={children:d.b,style:p.a.object};var ne=te,re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function ie(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ae=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ie(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={stickyStyle:{},position:"top",setStickyStyle:function(e){r.setState({stickyStyle:e})},stickyZIndex:1},r.styles=Z(),r.handleTopEnter=function(e){r.setPosition(e.isTopBoundary?"fixed":"top")},r.handleTopLeave=function(e){e.isOffsetTop&&r.setPosition("fixed")},r.handleIntersect=function(e){e.isTopBoundary||e.isBottomVisible&&!e.isTopVisible?r.setPosition("fixed"):e.isTopVisible||e.isOffsetBottom?r.setPosition("top"):e.isOffsetTop&&r.setPosition("bottom")},ie(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),oe(t,[{key:"setPosition",value:function(e){this.state.position!==e&&this.setState({position:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.sticky,r=e.stickyZIndex,o=e.style,i=e.debugId,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","sticky","stickyZIndex","style","debugId"]),c=this.state.stickyStyle,s=this.styles;return f.a.createElement(U.d.Provider,{value:this.state},f.a.createElement("div",re({},a,{style:s.container(o)}),f.a.createElement("div",{style:c}),f.a.createElement(D,{debugId:i+"(top)",onEnter:this.handleTopEnter,onLeave:this.handleTopLeave,style:s.topHook}),t,n&&f.a.createElement(ne,{style:s.sticky(r)},n),f.a.createElement(D,{debugId:i+"(bottom)",onIntersect:this.handleIntersect,style:s.bottomHook(c.height)})))}}]),t}();ae.propTypes={children:p.a.node,sticky:d.b,style:p.a.object,stickyZIndex:p.a.number,debugId:p.a.string};var ce=ae,se=a({iconContainer:{width:100,height:32,position:"absolute",left:"50%",bottom:24,marginLeft:-50,textAlign:"center"},arrowIcon:function(e){return{transform:"rotateZ("+(e?180:0)+"deg)",transition:"transform 0.3s"}}}),ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function le(e){var t=e.color,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["color"]);return f.a.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",width:"32px",height:"32px"},n),f.a.createElement("line",{x1:"20",y1:"4",x2:"20",y2:"32",strokeLinecap:"round",strokeWidth:3,stroke:t}),f.a.createElement("polyline",{points:"10 24 20 34 30 24",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,fill:"none",stroke:t}))}le.propTypes={color:p.a.string.isRequired};var fe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function he(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var pe={transition:"opacity 0.3s"},de=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=he(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.highlighted=0,r.circles=[6,20,34],he(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),fe(t,[{key:"componentDidMount",value:function(){var e=this,t=this.circles.length;this.intervalId=setInterval(function(){var n=e.highlighted+1;e.highlighted=n>=t?0:n,e.forceUpdate()},300)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){clearInterval(this.intervalId)}},{key:"render",value:function(){var e=this.props.color,t=this.highlighted,n=this.circles;return f.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",width:"32px",height:"32px"},n.map(function(n,r){return f.a.createElement("circle",{key:r,cx:n,cy:"20",r:"3",fill:e,opacity:t===r?1:.2,style:pe})}))}}]),t}();de.propTypes={color:p.a.string.isRequired};var ve=de,ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be=a({container:function(e,t){return ye({},e,{height:0,overflow:"hidden",position:"relative",minHeight:t?80:0})}}),me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ge=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function we(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Oe=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=we(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.styles=be(),r.state={isActive:!1},r.domRef=function(e){r.dom=e},r.renderChildren=function(e){r.refreshState||(r.refreshState=e,e.mount(r));var t=r,n=t.props,o=n.children,i=n.style,a=n.isRefreshing,c=(n.onRefresh,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["children","style","isRefreshing","onRefresh"])),s=t.state.isActive,u=t.styles;return f.a.createElement("div",me({},c,{style:u.container(i,a),ref:r.domRef}),o({isRefreshing:a,isActive:s}))},we(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),ge(t,[{key:"componentDidUpdate",value:function(e){!e.isRefreshing&&this.props.isRefreshing?(this.enableTransition(),this.setHeight(80)):e.isRefreshing&&!this.props.isRefreshing&&(this.end(),this.setHeight(0))}},{key:"componentWillUnmount",value:function(){this.refreshState.unmount()}},{key:"requestRefresh",value:function(){var e=this.props.onRefresh;e&&e()}},{key:"setHeight",value:function(e){var t=e>0?e>80?80+(e-80)/2:e:0,n=this.state.isActive;this.dom.style.height=t+"px",t>=80&&!n?this.setState({isActive:!0}):t<80&&n&&this.setState({isActive:!1})}},{key:"enableTransition",value:function(){this.dom.style.transition="height 0.3s ease-out, min-height 0.3s ease-out"}},{key:"disableTransition",value:function(){this.dom.style.transition="none"}},{key:"end",value:function(){this.state.isActive&&(this.enableTransition(),this.setState({isActive:!1}))}},{key:"attemptToRefresh",value:function(){var e=this.props,t=e.onRefresh,n=e.isRefreshing,r=this.state.isActive;t&&!n&&r&&t(),this.end(),n?this.setHeight(80):this.setHeight(0)}},{key:"render",value:function(){return f.a.createElement(U.c.Consumer,null,this.renderChildren)}}]),t}();Oe.propTypes={isRefreshing:p.a.bool.isRequired,onRefresh:p.a.func,style:p.a.object,children:p.a.func.isRequired};var _e=Oe,Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function ke(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Te=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ke(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.styles=se(),r.saveRef=function(e){r.refreshControl=e},ke(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l["Component"]),je(t,[{key:"requestRefresh",value:function(){var e=this.refreshControl;e&&e.requestRefresh()}},{key:"render",value:function(){var e=this.props,t=e.color,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["color"]),r=this.styles;return f.a.createElement(_e,Ee({},n,{ref:this.saveRef}),function(e){var n=e.isRefreshing,o=e.isActive;return f.a.createElement("div",{style:r.iconContainer},n?f.a.createElement(ve,{color:t}):f.a.createElement(le,{color:t,style:r.arrowIcon(o)}))})}}]),t}();Te.propTypes={isRefreshing:p.a.bool.isRequired,onRefresh:p.a.func,color:p.a.string,style:p.a.object},Te.defaultProps={color:"#333"};var xe=Te;n.d(t,"ScrollView",function(){return Y}),n.d(t,"ScrollObserver",function(){return I.a}),n.d(t,"StickySection",function(){return ce}),n.d(t,"Fixed",function(){return Q}),n.d(t,"RefreshControl",function(){return xe}),n.d(t,"RefreshControlObserver",function(){return _e})},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=n(10);e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(12))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),o=(a(r),a(n(1))),i=a(n(13));a(n(11));function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=1073741823;t.default=function(e,t){var n,a,f="__create-react-context-"+(0,i.default)()+"__",h=function(e){function n(){var t,r,o,i;c(this,n);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return t=r=s(this,e.call.apply(e,[this].concat(u))),r.emitter=(o=r.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter(function(t){return t!==e})},get:function(){return o},set:function(e,t){o=e,i.forEach(function(e){return e(o,t)})}}),s(r,t)}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[f]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)?o=0:(o="function"==typeof t?t(n,r):l,0!=(o|=0)&&this.emitter.set(e.value,o))}var i,a},n.prototype.render=function(){return this.props.children},n}(r.Component);h.childContextTypes=((n={})[f]=o.default.object.isRequired,n);var p=function(t){function n(){var e,r;c(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=s(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},s(r,e)}return u(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((a={})[f]=o.default.object,a),{Provider:h,Consumer:p}},e.exports=t.default},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,f=-1;function h(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=c(h);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||l||c(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,c,s){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,c,s],f=0;(u=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=n(18),o=n(17),i=n(16);e.exports=function(){function e(e,t,n,r,a,c){c!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}}])});
//# sourceMappingURL=react-scroll-view.min.js.map

@@ -196,4 +196,2 @@ var _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; };

dom.addEventListener('touchstart', _this2.handleTouchStart, eventOptions);
dom.addEventListener('touchmove', _this2.handleTouchMove, eventOptions);
dom.addEventListener('touchend', _this2.handleTouchEnd, eventOptions);
};

@@ -204,4 +202,2 @@

dom.removeEventListener('touchstart', _this2.handleTouchStart, eventOptions);
dom.removeEventListener('touchmove', _this2.handleTouchMove, eventOptions);
dom.removeEventListener('touchend', _this2.handleTouchEnd, eventOptions);
};

@@ -230,3 +226,7 @@

this.handleTouchStart = function (ev) {
var dom = _this2.dom;
_this2.y0 = ev.touches[0].clientY;
dom.addEventListener('touchmove', _this2.handleTouchMove, eventOptions);
dom.addEventListener('touchend', _this2.handleTouchEnd, eventOptions);
};

@@ -257,2 +257,4 @@

this.handleTouchEnd = function () {
var dom = _this2.dom;
_this2.y0 = 0;

@@ -263,2 +265,5 @@ if (_this2.pullingDown.isActive) {

}
dom.removeEventListener('touchmove', _this2.handleTouchMove, eventOptions);
dom.removeEventListener('touchend', _this2.handleTouchEnd, eventOptions);
};

@@ -265,0 +270,0 @@ };

@@ -236,4 +236,2 @@ 'use strict';

dom.addEventListener('touchstart', _this2.handleTouchStart, _util.eventOptions);
dom.addEventListener('touchmove', _this2.handleTouchMove, _util.eventOptions);
dom.addEventListener('touchend', _this2.handleTouchEnd, _util.eventOptions);
};

@@ -244,4 +242,2 @@

dom.removeEventListener('touchstart', _this2.handleTouchStart, _util.eventOptions);
dom.removeEventListener('touchmove', _this2.handleTouchMove, _util.eventOptions);
dom.removeEventListener('touchend', _this2.handleTouchEnd, _util.eventOptions);
};

@@ -270,3 +266,7 @@

this.handleTouchStart = function (ev) {
var dom = _this2.dom;
_this2.y0 = ev.touches[0].clientY;
dom.addEventListener('touchmove', _this2.handleTouchMove, _util.eventOptions);
dom.addEventListener('touchend', _this2.handleTouchEnd, _util.eventOptions);
};

@@ -297,2 +297,4 @@

this.handleTouchEnd = function () {
var dom = _this2.dom;
_this2.y0 = 0;

@@ -303,2 +305,5 @@ if (_this2.pullingDown.isActive) {

}
dom.removeEventListener('touchmove', _this2.handleTouchMove, _util.eventOptions);
dom.removeEventListener('touchend', _this2.handleTouchEnd, _util.eventOptions);
};

@@ -305,0 +310,0 @@ };

{
"name": "@cantonjs/react-scroll-view",
"version": "0.4.1",
"version": "0.4.2",
"description": "react scroll component using intersection observer API",

@@ -5,0 +5,0 @@ "repository": "cantonjs/react-scroll-view",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc