-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10-bd539e9dec35ec18fc1b.js
2 lines (2 loc) · 10.4 KB
/
10-bd539e9dec35ec18fc1b.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{279:function(e,n,t){"use strict";n.a=function(e){return"number"==typeof e||"string"==typeof e?[e,e]:e}},441:function(e,n,t){"use strict";t(442)("fixed",function(e){return function(){return e(this,"tt","","")}})},442:function(e,n,t){var i=t(11),a=t(24),o=t(16),s=/"/g,r=function(e,n,t,i){var a=String(o(e)),r="<"+n;return""!==t&&(r+=" "+t+'="'+String(i).replace(s,""")+'"'),r+">"+a+"</"+n+">"};e.exports=function(e,n){var t={};t[e]=n(r),i(i.P+i.F*a(function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",t)}},451:function(e,n,t){"use strict";t.d(n,"a",function(){return M});var i=t(143),a=t.n(i),o=t(273),s=t.n(o),r=t(160),c=t.n(r),l=t(146),u=t.n(l),p=t(147),d=t.n(p),h=t(148),f=t.n(h),m=t(145),b=t.n(m),v=t(149),g=t.n(v),k=t(52),P=t.n(k),O=t(51),w=t.n(O),y=t(151),R=t.n(y),x=t(222),S=t.n(x),T=t(153),C=t.n(T),V=t(223),W=t.n(V),j=(t(4),t(0)),U=t.n(j),N=t(274),B=t(277),H=t(279),A=t(259),E=t(260),M=function(e){function n(){var e,t;u()(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return t=f()(this,(e=b()(n)).call.apply(e,[this].concat(a))),w()(P()(P()(t)),"calculations",{bottomPassed:!1,bottomVisible:!1,fits:!1,passing:!1,offScreen:!1,onScreen:!1,topPassed:!1,topVisible:!1}),w()(P()(P()(t)),"firedCallbacks",[]),w()(P()(P()(t)),"fire",function(e,n){var i=e.callback,a=e.name,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t.props,r=s.continuous,c=s.once,l=t.calculations[n]!==o,u=r||t.calculations[n]!==t.oldCalculations[n];l&&u&&t.execute(i,a),c||(t.firedCallbacks=C()(t.firedCallbacks,a))}),w()(P()(P()(t)),"handleUpdate",function(){t.ticking||(t.ticking=!0,t.frameId=requestAnimationFrame(t.update))}),w()(P()(P()(t)),"update",function(){if(t.mounted){t.ticking=!1,t.oldCalculations=t.calculations,t.calculations=t.computeCalculations(),t.pageYOffset=window.pageYOffset;var e=t.props,n=e.onBottomPassed,i=e.onBottomPassedReverse,a=e.onBottomVisible,o=e.onBottomVisibleReverse,s=e.onPassing,r=e.onPassingReverse,l=e.onTopPassed,u=e.onTopPassedReverse,p=e.onTopVisible,d=e.onTopVisibleReverse,h=e.onOffScreen,f=e.onOnScreen,m=e.updateOn,b={bottomPassed:{callback:n,name:"onBottomPassed"},bottomVisible:{callback:a,name:"onBottomVisible"},passing:{callback:s,name:"onPassing"},offScreen:{callback:h,name:"onOffScreen"},onScreen:{callback:f,name:"onOnScreen"},topPassed:{callback:l,name:"onTopPassed"},topVisible:{callback:p,name:"onTopVisible"}},v={bottomPassed:{callback:i,name:"onBottomPassedReverse"},bottomVisible:{callback:o,name:"onBottomVisibleReverse"},passing:{callback:r,name:"onPassingReverse"},topPassed:{callback:u,name:"onTopPassedReverse"},topVisible:{callback:d,name:"onTopVisibleReverse"}};R()(t.props,"onUpdate",null,c()({},t.props,{calculations:t.calculations})),t.fireOnPassed(),S()(v,function(e,n){return t.fire(e,n,!0)}),S()(b,function(e,n){return t.fire(e,n)}),"repaint"===m&&t.handleUpdate()}}),w()(P()(P()(t)),"handleRef",function(e){return t.ref=e}),t}return g()(n,e),d()(n,[{key:"componentWillReceiveProps",value:function(e){var n=e.continuous,t=e.once,i=e.context,a=e.updateOn;(n!==this.props.continuous||t!==this.props.once||a!==this.props.updateOn)&&(this.firedCallbacks=[]),i===this.props.context&&a===this.props.updateOn||(this.unattachHandlers(this.props.context),this.attachHandlers(i,a))}},{key:"componentDidMount",value:function(){if(this.mounted=!0,Object(N.a)()){var e=this.props,n=e.context,t=e.fireOnMount,i=e.updateOn;this.pageYOffset=window.pageYOffset,this.attachHandlers(n,i),t&&this.update()}}},{key:"componentWillUnmount",value:function(){var e=this.props.context;this.unattachHandlers(e),this.mounted=!1}},{key:"attachHandlers",value:function(e,n){"events"!==n?this.handleUpdate():e&&(B.a.sub("resize",this.handleUpdate,{target:e}),B.a.sub("scroll",this.handleUpdate,{target:e}))}},{key:"unattachHandlers",value:function(e){e&&(B.a.unsub("resize",this.handleUpdate,{target:e}),B.a.unsub("scroll",this.handleUpdate,{target:e})),this.frameId&&cancelAnimationFrame(this.frameId)}},{key:"execute",value:function(e,n){var t=this.props.continuous;e&&(!t&&W()(this.firedCallbacks,n)||(e(null,c()({},this.props,{calculations:this.calculations})),this.firedCallbacks.push(n)))}},{key:"fireOnPassed",value:function(){var e=this,n=this.calculations,t=n.percentagePassed,i=n.pixelsPassed,a=this.props.onPassed;S()(a,function(n,a){var o=Number(a);if(o&&i>=o)e.execute(n,a);else{var s="".concat(a).match(/^(\d+)%$/);if(s){var r=Number(s[1])/100;t>=r&&e.execute(n,a)}}})}},{key:"computeCalculations",value:function(){var e=this.props.offset,n=this.ref.getBoundingClientRect(),t=n.bottom,i=n.height,a=n.top,o=n.width,r=Object(H.a)(e),c=s()(r,2),l=c[0],u=c[1],p=window.pageYOffset>this.pageYOffset?"down":"up",d=a<l,h=t<u,f=h?0:Math.max(-1*a,0),m=f/i,b=t>=u&&t<=window.innerHeight,v=a>=l&&a<=window.innerHeight,g=(v||d)&&!h;return{bottomPassed:h,bottomVisible:b,direction:p,fits:v&&b,height:i,passing:d&&!h,percentagePassed:m,pixelsPassed:f,offScreen:!g,onScreen:g,topPassed:d,topVisible:v,width:o}}},{key:"render",value:function(){var e=this.props.children,t=Object(A.a)(n,this.props),i=Object(E.a)(n,this.props);return U.a.createElement(t,a()({},i,{ref:this.handleRef}),e)}}]),n}(j.Component);w()(M,"defaultProps",{context:Object(N.a)()?window:null,continuous:!1,offset:[0,0],once:!0,updateOn:"events"}),w()(M,"handledProps",["as","children","context","continuous","fireOnMount","offset","onBottomPassed","onBottomPassedReverse","onBottomVisible","onBottomVisibleReverse","onOffScreen","onOnScreen","onPassed","onPassing","onPassingReverse","onTopPassed","onTopPassedReverse","onTopVisible","onTopVisibleReverse","onUpdate","once","updateOn"]),M.propTypes={}},460:function(e,n,t){"use strict";var i=t(143),a=t.n(i),o=t(160),s=t.n(o),r=t(146),c=t.n(r),l=t(147),u=t.n(l),p=t(148),d=t.n(p),h=t(145),f=t.n(h),m=t(149),b=t.n(m),v=t(52),g=t.n(v),k=t(51),P=t.n(k),O=t(151),w=t.n(O),y=t(278),R=t.n(y),x=t(144),S=t.n(x),T=(t(4),t(0)),C=t.n(T),V=t(449),W=t(276),j=t(161),U=t(260),N=t(259),B=t(142);function H(e){var n=e.className,t=e.children,i=e.content,o=S()("pushable",n),s=Object(U.a)(H,e),r=Object(N.a)(H,e);return C.a.createElement(r,a()({},s,{className:o}),B.a.isNil(t)?i:t)}H.handledProps=["as","children","className","content"],H.propTypes={};var A=H;function E(e){var n=e.className,t=e.dimmed,i=e.children,o=e.content,s=S()("pusher",Object(j.a)(t,"dimmed"),n),r=Object(U.a)(E,e),c=Object(N.a)(E,e);return C.a.createElement(c,a()({},r,{className:s}),B.a.isNil(i)?o:i)}E.handledProps=["as","children","className","content","dimmed"],E.propTypes={};var M=E,z=function(e){function n(){var e,t;c()(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return t=d()(this,(e=f()(n)).call.apply(e,[this].concat(a))),P()(g()(g()(t)),"state",{}),P()(g()(g()(t)),"handleAnimationStart",function(){var e=t.props,n=e.duration,i=e.visible?"onVisible":"onHide";t.setState({animating:!0},function(){clearTimeout(t.animationTimer),t.animationTimer=setTimeout(t.handleAnimationEnd,n),t.skipNextCallback?t.skipNextCallback=!1:w()(t.props,i,null,t.props)})}),P()(g()(g()(t)),"handleAnimationEnd",function(){var e=t.props.visible?"onShow":"onHidden";t.setState({animating:!1}),w()(t.props,e,null,t.props)}),P()(g()(g()(t)),"handleDocumentClick",function(e){Object(W.a)(t.ref,e)||(t.skipNextCallback=!0,w()(t.props,"onHide",e,s()({},t.props,{visible:!1})))}),P()(g()(g()(t)),"handleRef",function(e){return t.ref=e}),t}return b()(n,e),u()(n,[{key:"componentDidUpdate",value:function(e){e.visible!==this.props.visible&&this.handleAnimationStart()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.animationTimer)}},{key:"render",value:function(){var e=this.props,t=e.animation,i=e.className,o=e.children,s=e.content,r=e.direction,c=e.target,l=e.visible,u=e.width,p=this.state.animating,d=S()("ui",t,r,u,Object(j.a)(p,"animating"),Object(j.a)(l,"visible"),"sidebar",i),h=Object(U.a)(n,this.props),f=Object(N.a)(n,this.props);return C.a.createElement(V.a,{innerRef:this.handleRef},C.a.createElement(f,a()({},h,{className:d}),B.a.isNil(o)?s:o,l&&C.a.createElement(R.a,{name:"click",on:this.handleDocumentClick,target:c})))}}]),n}(T.Component);P()(z,"defaultProps",{direction:"left",duration:500}),P()(z,"autoControlledProps",["visible"]),P()(z,"Pushable",A),P()(z,"Pusher",M),P()(z,"handledProps",["animation","as","children","className","content","direction","duration","onHidden","onHide","onShow","onVisible","target","visible","width"]),z.propTypes={};n.a=z},461:function(e,n,t){"use strict";var i=t(160),a=t.n(i),o=t(146),s=t.n(o),r=t(147),c=t.n(r),l=t(148),u=t.n(l),p=t(145),d=t.n(p),h=t(149),f=t.n(h),m=t(52),b=t.n(m),v=t(51),g=t.n(v),k=t(151),P=t.n(k),O=(t(4),t(0)),w=t.n(O),y=t(277),R=t(259),x=t(260),S=t(274),T=t(155),C=t.n(T),V=function(e,n){var t=n.maxWidth;return function(e,n){return!!C()(n)||e>=n}(e,n.minWidth)&&function(e,n){return!!C()(n)||e<=n}(e,t)};t.d(n,"a",function(){return W});var W=function(e){function n(){var e,t;s()(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return t=u()(this,(e=d()(n)).call.apply(e,[this].concat(o))),g()(b()(b()(t)),"state",{visible:!0}),g()(b()(b()(t)),"handleResize",function(e){t.ticking||(t.ticking=!0,t.frameId=requestAnimationFrame(function(){return t.handleUpdate(e)}))}),g()(b()(b()(t)),"handleUpdate",function(e){t.ticking=!1;var n=t.state.visible,i=P()(t.props,"getWidth"),o=V(i,t.props);n!==o&&t.setState({visible:o}),P()(t.props,"onUpdate",e,a()({},t.props,{width:i}))}),t}return f()(n,e),c()(n,[{key:"componentDidMount",value:function(){var e=this.props.fireOnMount;y.a.sub("resize",this.handleResize,{target:"window"}),e&&this.handleUpdate()}},{key:"componentWillUnmount",value:function(){y.a.unsub("resize",this.handleResize,{target:"window"}),cancelAnimationFrame(this.frameId)}},{key:"render",value:function(){var e=this.props.children,t=this.state.visible,i=Object(R.a)(n,this.props),a=Object(x.a)(n,this.props);return t?w.a.createElement(i,a,e):null}}],[{key:"getDerivedStateFromProps",value:function(e){var n=P()(e,"getWidth");return{visible:V(n,e)}}}]),n}(O.Component);g()(W,"defaultProps",{getWidth:function(){return Object(S.a)()?window.innerWidth:0}}),g()(W,"onlyMobile",{minWidth:320,maxWidth:767}),g()(W,"onlyTablet",{minWidth:768,maxWidth:991}),g()(W,"onlyComputer",{minWidth:992}),g()(W,"onlyLargeScreen",{minWidth:1200,maxWidth:1919}),g()(W,"onlyWidescreen",{minWidth:1920}),g()(W,"handledProps",["as","children","fireOnMount","getWidth","maxWidth","minWidth","onUpdate"]),W.propTypes={}}}]);
//# sourceMappingURL=10-bd539e9dec35ec18fc1b.js.map