ksco-liquid-route
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -22,2 +22,3 @@ import { h, Component } from 'preact'; | ||
const animationOptions = Object.assign({}, defaultOpts, animation.options); | ||
this.container.style.zIndex = '2'; | ||
this.pageholder.animate( | ||
@@ -27,2 +28,3 @@ animation.animation, | ||
).onfinish = () => { | ||
this.container.style.zIndex = ''; | ||
cb(); | ||
@@ -36,6 +38,5 @@ }; | ||
} | ||
const scrollY = window.scrollY; | ||
window.scrollTo(0, 0); | ||
this.pageholder.style.position = 'absolute'; | ||
this.container.style.transform = `translateY(${-scrollY}px)`; | ||
window.scrollY = 0; | ||
this.container.style.transform = `translateY(${-LiquidAnimator.scrollY}px)`; | ||
const animationOptions = Object.assign({}, defaultOpts, animation.options); | ||
@@ -47,4 +48,4 @@ | ||
).onfinish = () => { | ||
this.pageholder.style.position = ''; | ||
this.container.style.transform = ''; | ||
this.pageholder.style.position = ''; | ||
cb(); | ||
@@ -54,2 +55,3 @@ }; | ||
setContainer(el) { | ||
LiquidAnimator.scrollY = window.scrollY; | ||
this.container = el; | ||
@@ -56,0 +58,0 @@ } |
@@ -23,3 +23,11 @@ import { h, Component, cloneElement } from 'preact'; | ||
return ( | ||
<TransitionGroup component="div"> | ||
<TransitionGroup | ||
component="div" | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column-reverse', | ||
justifyContent: 'flex-start', | ||
alignItems: 'stretch' | ||
}} | ||
> | ||
<LiquidAnimator | ||
@@ -26,0 +34,0 @@ getEntryAnimation={() => { |
@@ -1,1 +0,1 @@ | ||
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=1)}([function(t,n,e){"use strict";function r(){}function o(t,n){var e,o,i,a,s=W;for(a=arguments.length;a-- >2;)D.push(arguments[a]);for(n&&null!=n.children&&(D.length||D.push(n.children),delete n.children);D.length;)if((o=D.pop())&&void 0!==o.pop)for(a=o.length;a--;)D.push(o[a]);else"boolean"==typeof o&&(o=null),(i="function"!=typeof t)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&e?s[s.length-1]+=o:s===W?s=[o]:s.push(o),e=i;var p=new r;return p.nodeName=t,p.children=s,p.attributes=null==n?void 0:n,p.key=null==n?void 0:n.key,void 0!==S.vnode&&S.vnode(p),p}function i(t,n){for(var e in n)t[e]=n[e];return t}function a(t,n){return o(t.nodeName,i(i({},t.attributes),n),arguments.length>2?[].slice.call(arguments,2):t.children)}function s(t){!t._dirty&&(t._dirty=!0)&&1==X.push(t)&&(S.debounceRendering||M)(p)}function p(){var t,n=X;for(X=[];t=n.pop();)t._dirty&&T(t)}function c(t,n,e){return"string"==typeof n||"number"==typeof n?void 0!==t.splitText:"string"==typeof n.nodeName?!t._componentConstructor&&u(t,n.nodeName):e||t._componentConstructor===n.nodeName}function u(t,n){return t.normalizedNodeName===n||t.nodeName.toLowerCase()===n.toLowerCase()}function l(t){var n=i({},t.attributes);n.children=t.children;var e=t.nodeName.defaultProps;if(void 0!==e)for(var r in e)void 0===n[r]&&(n[r]=e[r]);return n}function f(t,n){var e=n?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t);return e.normalizedNodeName=t,e}function h(t){var n=t.parentNode;n&&n.removeChild(t)}function d(t,n,e,r,o){if("className"===n&&(n="class"),"key"===n);else if("ref"===n)e&&e(null),r&&r(t);else if("class"!==n||o)if("style"===n){if(r&&"string"!=typeof r&&"string"!=typeof e||(t.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof e)for(var i in e)i in r||(t.style[i]="");for(var i in r)t.style[i]="number"==typeof r[i]&&!1===U.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===n)r&&(t.innerHTML=r.__html||"");else if("o"==n[0]&&"n"==n[1]){var a=n!==(n=n.replace(/Capture$/,""));n=n.toLowerCase().substring(2),r?e||t.addEventListener(n,y,a):t.removeEventListener(n,y,a),(t._listeners||(t._listeners={}))[n]=r}else if("list"!==n&&"type"!==n&&!o&&n in t)m(t,n,null==r?"":r),null!=r&&!1!==r||t.removeAttribute(n);else{var s=o&&n!==(n=n.replace(/^xlink\:?/,""));null==r||!1===r?s?t.removeAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase()):t.removeAttribute(n):"function"!=typeof r&&(s?t.setAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase(),r):t.setAttribute(n,r))}else t.className=r||""}function m(t,n,e){try{t[n]=e}catch(t){}}function y(t){return this._listeners[t.type](S.event&&S.event(t)||t)}function v(){for(var t;t=R.pop();)S.afterMount&&S.afterMount(t),t.componentDidMount&&t.componentDidMount()}function _(t,n,e,r,o,i){B++||(K=null!=o&&void 0!==o.ownerSVGElement,F=null!=t&&!("__preactattr_"in t));var a=b(t,n,e,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--B||(F=!1,i||v()),a}function b(t,n,e,r,o){var i=t,a=K;if(null!=n&&"boolean"!=typeof n||(n=""),"string"==typeof n||"number"==typeof n)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||o)?t.nodeValue!=n&&(t.nodeValue=n):(i=document.createTextNode(n),t&&(t.parentNode&&t.parentNode.replaceChild(i,t),w(t,!0))),i.__preactattr_=!0,i;var s=n.nodeName;if("function"==typeof s)return k(t,n,e,r);if(K="svg"===s||"foreignObject"!==s&&K,s=String(s),(!t||!u(t,s))&&(i=f(s,K),t)){for(;t.firstChild;)i.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(i,t),w(t,!0)}var p=i.firstChild,c=i.__preactattr_,l=n.children;if(null==c){c=i.__preactattr_={};for(var h=i.attributes,d=h.length;d--;)c[h[d].name]=h[d].value}return!F&&l&&1===l.length&&"string"==typeof l[0]&&null!=p&&void 0!==p.splitText&&null==p.nextSibling?p.nodeValue!=l[0]&&(p.nodeValue=l[0]):(l&&l.length||null!=p)&&g(i,l,e,r,F||null!=c.dangerouslySetInnerHTML),E(i,n.attributes,c),K=a,i}function g(t,n,e,r,o){var i,a,s,p,u,l=t.childNodes,f=[],d={},m=0,y=0,v=l.length,_=0,g=n?n.length:0;if(0!==v)for(var C=0;C<v;C++){var E=l[C],x=E.__preactattr_,A=g&&x?E._component?E._component.__key:x.key:null;null!=A?(m++,d[A]=E):(x||(void 0!==E.splitText?!o||E.nodeValue.trim():o))&&(f[_++]=E)}if(0!==g)for(var C=0;C<g;C++){p=n[C],u=null;var A=p.key;if(null!=A)m&&void 0!==d[A]&&(u=d[A],d[A]=void 0,m--);else if(!u&&y<_)for(i=y;i<_;i++)if(void 0!==f[i]&&c(a=f[i],p,o)){u=a,f[i]=void 0,i===_-1&&_--,i===y&&y++;break}u=b(u,p,e,r),s=l[C],u&&u!==t&&u!==s&&(null==s?t.appendChild(u):u===s.nextSibling?h(s):t.insertBefore(u,s))}if(m)for(var C in d)void 0!==d[C]&&w(d[C],!1);for(;y<=_;)void 0!==(u=f[_--])&&w(u,!1)}function w(t,n){var e=t._component;e?N(e):(null!=t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),!1!==n&&null!=t.__preactattr_||h(t),C(t))}function C(t){for(t=t.lastChild;t;){var n=t.previousSibling;w(t,!0),t=n}}function E(t,n,e){var r;for(r in e)n&&null!=n[r]||null==e[r]||d(t,r,e[r],e[r]=void 0,K);for(r in n)"children"===r||"innerHTML"===r||r in e&&n[r]===("value"===r||"checked"===r?t[r]:e[r])||d(t,r,e[r],e[r]=n[r],K)}function x(t){var n=t.constructor.name;(V[n]||(V[n]=[])).push(t)}function A(t,n,e){var r,o=V[t.name];if(t.prototype&&t.prototype.render?(r=new t(n,e),j.call(r,n,e)):(r=new j(n,e),r.constructor=t,r.render=O),o)for(var i=o.length;i--;)if(o[i].constructor===t){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function O(t,n,e){return this.constructor(t,e)}function P(t,n,e,r,o){t._disable||(t._disable=!0,(t.__ref=n.ref)&&delete n.ref,(t.__key=n.key)&&delete n.key,!t.base||o?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),r&&r!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=r),t.prevProps||(t.prevProps=t.props),t.props=n,t._disable=!1,0!==e&&(1!==e&&!1===S.syncComponentUpdates&&t.base?s(t):T(t,1,o)),t.__ref&&t.__ref(t))}function T(t,n,e,r){if(!t._disable){var o,a,s,p=t.props,c=t.state,u=t.context,f=t.prevProps||p,h=t.prevState||c,d=t.prevContext||u,m=t.base,y=t.nextBase,b=m||y,g=t._component,C=!1;if(m&&(t.props=f,t.state=h,t.context=d,2!==n&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(p,c,u)?C=!0:t.componentWillUpdate&&t.componentWillUpdate(p,c,u),t.props=p,t.state=c,t.context=u),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!C){o=t.render(p,c,u),t.getChildContext&&(u=i(i({},u),t.getChildContext()));var E,x,O=o&&o.nodeName;if("function"==typeof O){var k=l(o);a=g,a&&a.constructor===O&&k.key==a.__key?P(a,k,1,u,!1):(E=a,t._component=a=A(O,k,u),a.nextBase=a.nextBase||y,a._parentComponent=t,P(a,k,0,u,!1),T(a,1,e,!0)),x=a.base}else s=b,E=g,E&&(s=t._component=null),(b||1===n)&&(s&&(s._component=null),x=_(s,o,u,e||!m,b&&b.parentNode,!0));if(b&&x!==b&&a!==g){var j=b.parentNode;j&&x!==j&&(j.replaceChild(x,b),E||(b._component=null,w(b,!1)))}if(E&&N(E),t.base=x,x&&!r){for(var L=t,D=t;D=D._parentComponent;)(L=D).base=x;x._component=L,x._componentConstructor=L.constructor}}if(!m||e?R.unshift(t):C||(t.componentDidUpdate&&t.componentDidUpdate(f,h,d),S.afterUpdate&&S.afterUpdate(t)),null!=t._renderCallbacks)for(;t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);B||r||v()}}function k(t,n,e,r){for(var o=t&&t._component,i=o,a=t,s=o&&t._componentConstructor===n.nodeName,p=s,c=l(n);o&&!p&&(o=o._parentComponent);)p=o.constructor===n.nodeName;return o&&p&&(!r||o._component)?(P(o,c,3,e,r),t=o.base):(i&&!s&&(N(i),t=a=null),o=A(n.nodeName,c,e),t&&!o.nextBase&&(o.nextBase=t,a=null),P(o,c,1,e,r),t=o.base,a&&t!==a&&(a._component=null,w(a,!1))),t}function N(t){S.beforeUnmount&&S.beforeUnmount(t);var n=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var e=t._component;e?N(e):n&&(n.__preactattr_&&n.__preactattr_.ref&&n.__preactattr_.ref(null),t.nextBase=n,h(n),x(t),C(n)),t.__ref&&t.__ref(null)}function j(t,n){this._dirty=!0,this.context=n,this.props=t,this.state=this.state||{}}function L(t,n,e){return _(e,t,{},!1,n,!1)}Object.defineProperty(n,"__esModule",{value:!0}),e.d(n,"h",function(){return o}),e.d(n,"createElement",function(){return o}),e.d(n,"cloneElement",function(){return a}),e.d(n,"Component",function(){return j}),e.d(n,"render",function(){return L}),e.d(n,"rerender",function(){return p}),e.d(n,"options",function(){return S});var S={},D=[],W=[],M="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,U=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,X=[],R=[],B=0,K=!1,F=!1,V={};i(j.prototype,{setState:function(t,n){var e=this.state;this.prevState||(this.prevState=i({},e)),i(e,"function"==typeof t?t(e,this.props):t),n&&(this._renderCallbacks=this._renderCallbacks||[]).push(n),s(this)},forceUpdate:function(t){t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),T(this,2)},render:function(){}});var Y={h:o,createElement:o,cloneElement:a,Component:j,render:L,rerender:p,options:S};n.default=Y},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(2),o=e(6),i=e(7),a=e(8),s=e(9),p=e(10),c=e(11);e.d(n,"FadeAnimation",function(){return o.a}),e.d(n,"PopAnimation",function(){return i.a}),e.d(n,"SlideLeft",function(){return a.a}),e.d(n,"PushAndSlide",function(){return c.a}),e.d(n,"AppearFromBottomAnimation",function(){return p.a}),e.d(n,"AppearFromRightAnimation",function(){return s.a}),n.default=r.a},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function i(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var a=e(0),s=e(3),p=e.n(s),c=e(4),u=e(5),l=e.n(u),f=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},h=null,d=function(t){function n(){return r(this,n),o(this,t.call(this))}return i(n,t),n.prototype.getEntryAnimation=function(){return h&&h.getEntryAnimation()||null},n.prototype.getExitAnimation=function(){return h&&h.getExitAnimation()||null},n.prototype.setCurrentAnimation=function(){h=this.props.animator},n.prototype.render=function(t){var n=this;return Object(a.h)(p.a,{component:"div"},Object(a.h)(c.a,f({getEntryAnimation:function(){return n.getEntryAnimation()},getExitAnimation:function(){return n.getExitAnimation()},key:t.url,onSetCurrentAnimation:function(){n.setCurrentAnimation()}},t),Object(a.h)(l.a,t)))},n}(a.Component);n.a=d},function(t,n,e){!function(n,r){t.exports=r(e(0))}(0,function(t){function n(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function e(t,n){var e=t.attributes&&t.attributes.key;return null===e||void 0===e?n:e}function r(t,n){var e=t._ptgLinkedRefs||(t._ptgLinkedRefs={});return e[n]||(e[n]=function(e){t.refs[n]=e})}function o(t){for(var n={},r=0;r<t.length;r++)if(null!=t[r]){var o=e(t[r],r.toString(36));n[o]=t[r]}return n}function i(t,n){t=t||{},n=n||{};var e=function(e){return n.hasOwnProperty(e)?n[e]:t[e]},r={},o=[];for(var i in t)n.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a={};for(var s in n){if(r.hasOwnProperty(s))for(var p=0;p<r[s].length;p++){var c=r[s][p];a[r[s][p]]=e(c)}a[s]=e(s)}for(var u=0;u<o.length;u++)a[o[u]]=e(o[u]);return a}var a=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},s=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},p=function(t,n){var e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n},u=function(t){return t},l=function(e){function u(){var t,n,r;a(this,u);for(var i=arguments.length,s=Array(i),p=0;p<i;p++)s[p]=arguments[p];return t=n=c(this,e.call.apply(e,[this].concat(s))),n.refs={},n.state={children:o(n.props.children||[])},n.performEnter=function(t){n.currentlyTransitioningKeys[t]=!0;var e=n.refs[t];e.componentWillEnter?e.componentWillEnter(n._handleDoneEntering.bind(n,t)):n._handleDoneEntering(t)},n.performLeave=function(t){n.currentlyTransitioningKeys[t]=!0;var e=n.refs[t];e.componentWillLeave?e.componentWillLeave(n._handleDoneLeaving.bind(n,t)):n._handleDoneLeaving(t)},r=t,c(n,r)}return s(u,e),u.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},u.prototype.componentDidMount=function(){var t=this.state.children;for(var n in t)t[n]&&this.performAppear(n)},u.prototype.componentWillReceiveProps=function(t){var n=o(t.children||[]),e=this.state.children;this.setState({children:i(e,n)});var r=void 0;for(r in n)if(n.hasOwnProperty(r)){var a=e&&e.hasOwnProperty(r);!n[r]||a||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in e)if(e.hasOwnProperty(r)){var s=n&&n.hasOwnProperty(r);!e[r]||s||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},u.prototype.componentDidUpdate=function(){var t=this.keysToEnter;this.keysToEnter=[],t.forEach(this.performEnter);var n=this.keysToLeave;this.keysToLeave=[],n.forEach(this.performLeave)},u.prototype.performAppear=function(t){this.currentlyTransitioningKeys[t]=!0;var n=this.refs[t];n.componentWillAppear?n.componentWillAppear(this._handleDoneAppearing.bind(this,t)):this._handleDoneAppearing(t)},u.prototype._handleDoneAppearing=function(t){var n=this.refs[t];n.componentDidAppear&&n.componentDidAppear(),delete this.currentlyTransitioningKeys[t];var e=o(this.props.children||[]);e&&e.hasOwnProperty(t)||this.performLeave(t)},u.prototype._handleDoneEntering=function(t){var n=this.refs[t];n.componentDidEnter&&n.componentDidEnter(),delete this.currentlyTransitioningKeys[t];var e=o(this.props.children||[]);e&&e.hasOwnProperty(t)||this.performLeave(t)},u.prototype._handleDoneLeaving=function(t){var e=this.refs[t];e.componentDidLeave&&e.componentDidLeave(),delete this.currentlyTransitioningKeys[t];var r=o(this.props.children||[]);if(r&&r.hasOwnProperty(t))this.performEnter(t);else{var i=n({},this.state.children);delete i[t],this.setState({children:i})}},u.prototype.render=function(n,e){var o=n.childFactory,i=(n.transitionLeave,n.transitionName,n.transitionAppear,n.transitionEnter,n.transitionLeaveTimeout,n.transitionEnterTimeout,n.transitionAppearTimeout,n.component),a=p(n,["childFactory","transitionLeave","transitionName","transitionAppear","transitionEnter","transitionLeaveTimeout","transitionEnterTimeout","transitionAppearTimeout","component"]),s=e.children,c=[];for(var u in s)if(s.hasOwnProperty(u)){var l=s[u];if(l){var f=r(this,u),h=t.cloneElement(o(l),{ref:f,key:u});c.push(h)}}return t.h(i,a,c)},u}(t.Component);return l.defaultProps={component:"span",childFactory:u},l})},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function i(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var a=e(0),s={duration:300,fill:"forwards",easing:"ease-out"},p=function(t){function n(){r(this,n);var e=o(this,t.call(this));return e.setContainer=e.setContainer.bind(e),e.setPageholder=e.setPageholder.bind(e),e}return i(n,t),n.prototype.componentWillEnter=function(t){this.props.onSetCurrentAnimation&&this.props.onSetCurrentAnimation();var n=this.props.getEntryAnimation();if(!this.pageholder.animate||!n)return t();var e=Object.assign({},s,n.options);this.pageholder.animate(n.animation,e).onfinish=function(){t()}},n.prototype.componentWillLeave=function(t){var n=this,e=this.props.getExitAnimation();if(!this.pageholder.animate||!e)return t();var r=window.scrollY;this.pageholder.style.position="absolute",this.container.style.transform="translateY("+-r+"px)",window.scrollY=0;var o=Object.assign({},s,e.options);this.pageholder.animate(e.animation,o).onfinish=function(){n.container.style.transform="",n.pageholder.style.position="",t()}},n.prototype.setContainer=function(t){this.container=t},n.prototype.setPageholder=function(t){this.pageholder=t},n.prototype.render=function(){return Object(a.h)("div",{ref:this.setContainer,className:"liquid-container"},Object(a.h)("div",{className:"liquid-pageholder",ref:this.setPageholder},this.props.children))},n}(a.Component);n.a=p},function(t,n,e){!function(n,r){t.exports=r(e(0))}(0,function(t){"use strict";function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}return function(o){function i(){n(this,i);var t=e(this,o.call(this));return t.state={componentData:null},t}return r(i,o),i.prototype.loadComponent=function(){var t=this;if(this.props.component)return this.setState({componentData:this.props.component});var n=this.props.getComponent(this.props.url,function(n){var e=n.component;e&&t.setState({componentData:e})});n&&n.then&&function(e){n.then(function(n){e===t.props.url&&t.setState({componentData:n})})}(this.props.url)},i.prototype.componentDidMount=function(){this.loadComponent()},i.prototype.componentWillReceiveProps=function(t){var n=this;this.props.url&&this.props.url!==t.url&&this.setState({componentData:null},function(){n.loadComponent()})},i.prototype.render=function(){if(this.state.componentData)return t.h(this.state.componentData,this.props);if(this.props.loading){return this.props.loading()}return null},i}(t.Component)})},function(t,n,e){"use strict";var r={opacity:0},o={opacity:1};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[o,r]}}}},function(t,n,e){"use strict";var r={transform:"scale(0.5)",opacity:0},o={transform:"scale(1)",opacity:1};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[o,r]}}}},function(t,n,e){"use strict";var r={transform:"translateX(100%)",opacity:0},o={transform:"translateX(0%)",opacity:1},i={transform:"translateX(0%)",opacity:1},a={transform:"translateX(-100%)",opacity:0};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[i,a]}}}},function(t,n,e){"use strict";var r={transform:"translateX(40%)",opacity:0},o={transform:"translateX(0%)",opacity:1},i={opacity:1},a={opacity:0};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[i,a]}}}},function(t,n,e){"use strict";var r={transform:"translateY(40%)",opacity:0},o={transform:"translateY(0%)",opacity:1},i={opacity:1},a={opacity:.8};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[i,a]}}}},function(t,n,e){"use strict";var r={transform:"scale(1) translateX(0%)"},o={transform:"scale(0.5) translateX(0%)"},i={transform:"scale(0.5) translateX(-200%)"},a={transform:"scale(0.5) translateX(200%)"},s={transform:"scale(0.5) translateX(200%)",offset:.6},p={transform:"scale(0.5) translateX(0%)"},c={transform:"scale(1) translateX(0%)"};n.a={getEntryAnimation:function(){return{animation:[a,s,p,c],options:{duration:1400}}},getExitAnimation:function(){return{animation:[r,o,i],options:{duration:900}}}}}])}); | ||
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=1)}([function(t,n,e){"use strict";function r(){}function o(t,n){var e,o,i,a,s=W;for(a=arguments.length;a-- >2;)D.push(arguments[a]);for(n&&null!=n.children&&(D.length||D.push(n.children),delete n.children);D.length;)if((o=D.pop())&&void 0!==o.pop)for(a=o.length;a--;)D.push(o[a]);else"boolean"==typeof o&&(o=null),(i="function"!=typeof t)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&e?s[s.length-1]+=o:s===W?s=[o]:s.push(o),e=i;var p=new r;return p.nodeName=t,p.children=s,p.attributes=null==n?void 0:n,p.key=null==n?void 0:n.key,void 0!==S.vnode&&S.vnode(p),p}function i(t,n){for(var e in n)t[e]=n[e];return t}function a(t,n){return o(t.nodeName,i(i({},t.attributes),n),arguments.length>2?[].slice.call(arguments,2):t.children)}function s(t){!t._dirty&&(t._dirty=!0)&&1==X.push(t)&&(S.debounceRendering||M)(p)}function p(){var t,n=X;for(X=[];t=n.pop();)t._dirty&&T(t)}function c(t,n,e){return"string"==typeof n||"number"==typeof n?void 0!==t.splitText:"string"==typeof n.nodeName?!t._componentConstructor&&l(t,n.nodeName):e||t._componentConstructor===n.nodeName}function l(t,n){return t.normalizedNodeName===n||t.nodeName.toLowerCase()===n.toLowerCase()}function u(t){var n=i({},t.attributes);n.children=t.children;var e=t.nodeName.defaultProps;if(void 0!==e)for(var r in e)void 0===n[r]&&(n[r]=e[r]);return n}function f(t,n){var e=n?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t);return e.normalizedNodeName=t,e}function h(t){var n=t.parentNode;n&&n.removeChild(t)}function d(t,n,e,r,o){if("className"===n&&(n="class"),"key"===n);else if("ref"===n)e&&e(null),r&&r(t);else if("class"!==n||o)if("style"===n){if(r&&"string"!=typeof r&&"string"!=typeof e||(t.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof e)for(var i in e)i in r||(t.style[i]="");for(var i in r)t.style[i]="number"==typeof r[i]&&!1===U.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===n)r&&(t.innerHTML=r.__html||"");else if("o"==n[0]&&"n"==n[1]){var a=n!==(n=n.replace(/Capture$/,""));n=n.toLowerCase().substring(2),r?e||t.addEventListener(n,y,a):t.removeEventListener(n,y,a),(t._listeners||(t._listeners={}))[n]=r}else if("list"!==n&&"type"!==n&&!o&&n in t)m(t,n,null==r?"":r),null!=r&&!1!==r||t.removeAttribute(n);else{var s=o&&n!==(n=n.replace(/^xlink\:?/,""));null==r||!1===r?s?t.removeAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase()):t.removeAttribute(n):"function"!=typeof r&&(s?t.setAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase(),r):t.setAttribute(n,r))}else t.className=r||""}function m(t,n,e){try{t[n]=e}catch(t){}}function y(t){return this._listeners[t.type](S.event&&S.event(t)||t)}function v(){for(var t;t=R.pop();)S.afterMount&&S.afterMount(t),t.componentDidMount&&t.componentDidMount()}function _(t,n,e,r,o,i){B++||(K=null!=o&&void 0!==o.ownerSVGElement,F=null!=t&&!("__preactattr_"in t));var a=b(t,n,e,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--B||(F=!1,i||v()),a}function b(t,n,e,r,o){var i=t,a=K;if(null!=n&&"boolean"!=typeof n||(n=""),"string"==typeof n||"number"==typeof n)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||o)?t.nodeValue!=n&&(t.nodeValue=n):(i=document.createTextNode(n),t&&(t.parentNode&&t.parentNode.replaceChild(i,t),w(t,!0))),i.__preactattr_=!0,i;var s=n.nodeName;if("function"==typeof s)return k(t,n,e,r);if(K="svg"===s||"foreignObject"!==s&&K,s=String(s),(!t||!l(t,s))&&(i=f(s,K),t)){for(;t.firstChild;)i.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(i,t),w(t,!0)}var p=i.firstChild,c=i.__preactattr_,u=n.children;if(null==c){c=i.__preactattr_={};for(var h=i.attributes,d=h.length;d--;)c[h[d].name]=h[d].value}return!F&&u&&1===u.length&&"string"==typeof u[0]&&null!=p&&void 0!==p.splitText&&null==p.nextSibling?p.nodeValue!=u[0]&&(p.nodeValue=u[0]):(u&&u.length||null!=p)&&g(i,u,e,r,F||null!=c.dangerouslySetInnerHTML),C(i,n.attributes,c),K=a,i}function g(t,n,e,r,o){var i,a,s,p,l,u=t.childNodes,f=[],d={},m=0,y=0,v=u.length,_=0,g=n?n.length:0;if(0!==v)for(var x=0;x<v;x++){var C=u[x],E=C.__preactattr_,A=g&&E?C._component?C._component.__key:E.key:null;null!=A?(m++,d[A]=C):(E||(void 0!==C.splitText?!o||C.nodeValue.trim():o))&&(f[_++]=C)}if(0!==g)for(var x=0;x<g;x++){p=n[x],l=null;var A=p.key;if(null!=A)m&&void 0!==d[A]&&(l=d[A],d[A]=void 0,m--);else if(!l&&y<_)for(i=y;i<_;i++)if(void 0!==f[i]&&c(a=f[i],p,o)){l=a,f[i]=void 0,i===_-1&&_--,i===y&&y++;break}l=b(l,p,e,r),s=u[x],l&&l!==t&&l!==s&&(null==s?t.appendChild(l):l===s.nextSibling?h(s):t.insertBefore(l,s))}if(m)for(var x in d)void 0!==d[x]&&w(d[x],!1);for(;y<=_;)void 0!==(l=f[_--])&&w(l,!1)}function w(t,n){var e=t._component;e?j(e):(null!=t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),!1!==n&&null!=t.__preactattr_||h(t),x(t))}function x(t){for(t=t.lastChild;t;){var n=t.previousSibling;w(t,!0),t=n}}function C(t,n,e){var r;for(r in e)n&&null!=n[r]||null==e[r]||d(t,r,e[r],e[r]=void 0,K);for(r in n)"children"===r||"innerHTML"===r||r in e&&n[r]===("value"===r||"checked"===r?t[r]:e[r])||d(t,r,e[r],e[r]=n[r],K)}function E(t){var n=t.constructor.name;(V[n]||(V[n]=[])).push(t)}function A(t,n,e){var r,o=V[t.name];if(t.prototype&&t.prototype.render?(r=new t(n,e),N.call(r,n,e)):(r=new N(n,e),r.constructor=t,r.render=O),o)for(var i=o.length;i--;)if(o[i].constructor===t){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function O(t,n,e){return this.constructor(t,e)}function P(t,n,e,r,o){t._disable||(t._disable=!0,(t.__ref=n.ref)&&delete n.ref,(t.__key=n.key)&&delete n.key,!t.base||o?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),r&&r!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=r),t.prevProps||(t.prevProps=t.props),t.props=n,t._disable=!1,0!==e&&(1!==e&&!1===S.syncComponentUpdates&&t.base?s(t):T(t,1,o)),t.__ref&&t.__ref(t))}function T(t,n,e,r){if(!t._disable){var o,a,s,p=t.props,c=t.state,l=t.context,f=t.prevProps||p,h=t.prevState||c,d=t.prevContext||l,m=t.base,y=t.nextBase,b=m||y,g=t._component,x=!1;if(m&&(t.props=f,t.state=h,t.context=d,2!==n&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(p,c,l)?x=!0:t.componentWillUpdate&&t.componentWillUpdate(p,c,l),t.props=p,t.state=c,t.context=l),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!x){o=t.render(p,c,l),t.getChildContext&&(l=i(i({},l),t.getChildContext()));var C,E,O=o&&o.nodeName;if("function"==typeof O){var k=u(o);a=g,a&&a.constructor===O&&k.key==a.__key?P(a,k,1,l,!1):(C=a,t._component=a=A(O,k,l),a.nextBase=a.nextBase||y,a._parentComponent=t,P(a,k,0,l,!1),T(a,1,e,!0)),E=a.base}else s=b,C=g,C&&(s=t._component=null),(b||1===n)&&(s&&(s._component=null),E=_(s,o,l,e||!m,b&&b.parentNode,!0));if(b&&E!==b&&a!==g){var N=b.parentNode;N&&E!==N&&(N.replaceChild(E,b),C||(b._component=null,w(b,!1)))}if(C&&j(C),t.base=E,E&&!r){for(var L=t,D=t;D=D._parentComponent;)(L=D).base=E;E._component=L,E._componentConstructor=L.constructor}}if(!m||e?R.unshift(t):x||(t.componentDidUpdate&&t.componentDidUpdate(f,h,d),S.afterUpdate&&S.afterUpdate(t)),null!=t._renderCallbacks)for(;t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);B||r||v()}}function k(t,n,e,r){for(var o=t&&t._component,i=o,a=t,s=o&&t._componentConstructor===n.nodeName,p=s,c=u(n);o&&!p&&(o=o._parentComponent);)p=o.constructor===n.nodeName;return o&&p&&(!r||o._component)?(P(o,c,3,e,r),t=o.base):(i&&!s&&(j(i),t=a=null),o=A(n.nodeName,c,e),t&&!o.nextBase&&(o.nextBase=t,a=null),P(o,c,1,e,r),t=o.base,a&&t!==a&&(a._component=null,w(a,!1))),t}function j(t){S.beforeUnmount&&S.beforeUnmount(t);var n=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var e=t._component;e?j(e):n&&(n.__preactattr_&&n.__preactattr_.ref&&n.__preactattr_.ref(null),t.nextBase=n,h(n),E(t),x(n)),t.__ref&&t.__ref(null)}function N(t,n){this._dirty=!0,this.context=n,this.props=t,this.state=this.state||{}}function L(t,n,e){return _(e,t,{},!1,n,!1)}Object.defineProperty(n,"__esModule",{value:!0}),e.d(n,"h",function(){return o}),e.d(n,"createElement",function(){return o}),e.d(n,"cloneElement",function(){return a}),e.d(n,"Component",function(){return N}),e.d(n,"render",function(){return L}),e.d(n,"rerender",function(){return p}),e.d(n,"options",function(){return S});var S={},D=[],W=[],M="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,U=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,X=[],R=[],B=0,K=!1,F=!1,V={};i(N.prototype,{setState:function(t,n){var e=this.state;this.prevState||(this.prevState=i({},e)),i(e,"function"==typeof t?t(e,this.props):t),n&&(this._renderCallbacks=this._renderCallbacks||[]).push(n),s(this)},forceUpdate:function(t){t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),T(this,2)},render:function(){}});var Y={h:o,createElement:o,cloneElement:a,Component:N,render:L,rerender:p,options:S};n.default=Y},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(2),o=e(6),i=e(7),a=e(8),s=e(9),p=e(10),c=e(11);e.d(n,"FadeAnimation",function(){return o.a}),e.d(n,"PopAnimation",function(){return i.a}),e.d(n,"SlideLeft",function(){return a.a}),e.d(n,"PushAndSlide",function(){return c.a}),e.d(n,"AppearFromBottomAnimation",function(){return p.a}),e.d(n,"AppearFromRightAnimation",function(){return s.a}),n.default=r.a},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function i(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var a=e(0),s=e(3),p=e.n(s),c=e(4),l=e(5),u=e.n(l),f=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},h=null,d=function(t){function n(){return r(this,n),o(this,t.call(this))}return i(n,t),n.prototype.getEntryAnimation=function(){return h&&h.getEntryAnimation()||null},n.prototype.getExitAnimation=function(){return h&&h.getExitAnimation()||null},n.prototype.setCurrentAnimation=function(){h=this.props.animator},n.prototype.render=function(t){var n=this;return Object(a.h)(p.a,{component:"div",style:{display:"flex",flexDirection:"column-reverse",justifyContent:"flex-start",alignItems:"stretch"}},Object(a.h)(c.a,f({getEntryAnimation:function(){return n.getEntryAnimation()},getExitAnimation:function(){return n.getExitAnimation()},key:t.url,onSetCurrentAnimation:function(){n.setCurrentAnimation()}},t),Object(a.h)(u.a,t)))},n}(a.Component);n.a=d},function(t,n,e){!function(n,r){t.exports=r(e(0))}(0,function(t){function n(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function e(t,n){var e=t.attributes&&t.attributes.key;return null===e||void 0===e?n:e}function r(t,n){var e=t._ptgLinkedRefs||(t._ptgLinkedRefs={});return e[n]||(e[n]=function(e){t.refs[n]=e})}function o(t){for(var n={},r=0;r<t.length;r++)if(null!=t[r]){var o=e(t[r],r.toString(36));n[o]=t[r]}return n}function i(t,n){t=t||{},n=n||{};var e=function(e){return n.hasOwnProperty(e)?n[e]:t[e]},r={},o=[];for(var i in t)n.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a={};for(var s in n){if(r.hasOwnProperty(s))for(var p=0;p<r[s].length;p++){var c=r[s][p];a[r[s][p]]=e(c)}a[s]=e(s)}for(var l=0;l<o.length;l++)a[o[l]]=e(o[l]);return a}var a=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},s=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},p=function(t,n){var e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n},l=function(t){return t},u=function(e){function l(){var t,n,r;a(this,l);for(var i=arguments.length,s=Array(i),p=0;p<i;p++)s[p]=arguments[p];return t=n=c(this,e.call.apply(e,[this].concat(s))),n.refs={},n.state={children:o(n.props.children||[])},n.performEnter=function(t){n.currentlyTransitioningKeys[t]=!0;var e=n.refs[t];e.componentWillEnter?e.componentWillEnter(n._handleDoneEntering.bind(n,t)):n._handleDoneEntering(t)},n.performLeave=function(t){n.currentlyTransitioningKeys[t]=!0;var e=n.refs[t];e.componentWillLeave?e.componentWillLeave(n._handleDoneLeaving.bind(n,t)):n._handleDoneLeaving(t)},r=t,c(n,r)}return s(l,e),l.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},l.prototype.componentDidMount=function(){var t=this.state.children;for(var n in t)t[n]&&this.performAppear(n)},l.prototype.componentWillReceiveProps=function(t){var n=o(t.children||[]),e=this.state.children;this.setState({children:i(e,n)});var r=void 0;for(r in n)if(n.hasOwnProperty(r)){var a=e&&e.hasOwnProperty(r);!n[r]||a||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in e)if(e.hasOwnProperty(r)){var s=n&&n.hasOwnProperty(r);!e[r]||s||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},l.prototype.componentDidUpdate=function(){var t=this.keysToEnter;this.keysToEnter=[],t.forEach(this.performEnter);var n=this.keysToLeave;this.keysToLeave=[],n.forEach(this.performLeave)},l.prototype.performAppear=function(t){this.currentlyTransitioningKeys[t]=!0;var n=this.refs[t];n.componentWillAppear?n.componentWillAppear(this._handleDoneAppearing.bind(this,t)):this._handleDoneAppearing(t)},l.prototype._handleDoneAppearing=function(t){var n=this.refs[t];n.componentDidAppear&&n.componentDidAppear(),delete this.currentlyTransitioningKeys[t];var e=o(this.props.children||[]);e&&e.hasOwnProperty(t)||this.performLeave(t)},l.prototype._handleDoneEntering=function(t){var n=this.refs[t];n.componentDidEnter&&n.componentDidEnter(),delete this.currentlyTransitioningKeys[t];var e=o(this.props.children||[]);e&&e.hasOwnProperty(t)||this.performLeave(t)},l.prototype._handleDoneLeaving=function(t){var e=this.refs[t];e.componentDidLeave&&e.componentDidLeave(),delete this.currentlyTransitioningKeys[t];var r=o(this.props.children||[]);if(r&&r.hasOwnProperty(t))this.performEnter(t);else{var i=n({},this.state.children);delete i[t],this.setState({children:i})}},l.prototype.render=function(n,e){var o=n.childFactory,i=(n.transitionLeave,n.transitionName,n.transitionAppear,n.transitionEnter,n.transitionLeaveTimeout,n.transitionEnterTimeout,n.transitionAppearTimeout,n.component),a=p(n,["childFactory","transitionLeave","transitionName","transitionAppear","transitionEnter","transitionLeaveTimeout","transitionEnterTimeout","transitionAppearTimeout","component"]),s=e.children,c=[];for(var l in s)if(s.hasOwnProperty(l)){var u=s[l];if(u){var f=r(this,l),h=t.cloneElement(o(u),{ref:f,key:l});c.push(h)}}return t.h(i,a,c)},l}(t.Component);return u.defaultProps={component:"span",childFactory:l},u})},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function i(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var a=e(0),s={duration:300,fill:"forwards",easing:"ease-out"},p=function(t){function n(){r(this,n);var e=o(this,t.call(this));return e.setContainer=e.setContainer.bind(e),e.setPageholder=e.setPageholder.bind(e),e}return i(n,t),n.prototype.componentWillEnter=function(t){var n=this;this.props.onSetCurrentAnimation&&this.props.onSetCurrentAnimation();var e=this.props.getEntryAnimation();if(!this.pageholder.animate||!e)return t();var r=Object.assign({},s,e.options);this.container.style.zIndex="2",this.pageholder.animate(e.animation,r).onfinish=function(){n.container.style.zIndex="",t()}},n.prototype.componentWillLeave=function(t){var e=this,r=this.props.getExitAnimation();if(!this.pageholder.animate||!r)return t();window.scrollTo(0,0),this.pageholder.style.position="absolute",this.container.style.transform="translateY("+-n.scrollY+"px)";var o=Object.assign({},s,r.options);this.pageholder.animate(r.animation,o).onfinish=function(){e.pageholder.style.position="",e.container.style.transform="",t()}},n.prototype.setContainer=function(t){n.scrollY=window.scrollY,this.container=t},n.prototype.setPageholder=function(t){this.pageholder=t},n.prototype.render=function(){return Object(a.h)("div",{ref:this.setContainer,className:"liquid-container"},Object(a.h)("div",{className:"liquid-pageholder",ref:this.setPageholder},this.props.children))},n}(a.Component);n.a=p},function(t,n,e){!function(n,r){t.exports=r(e(0))}(0,function(t){"use strict";function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}return function(o){function i(){n(this,i);var t=e(this,o.call(this));return t.state={componentData:null},t}return r(i,o),i.prototype.loadComponent=function(){var t=this;if(this.props.component)return this.setState({componentData:this.props.component});var n=this.props.getComponent(this.props.url,function(n){var e=n.component;e&&t.setState({componentData:e})});n&&n.then&&function(e){n.then(function(n){e===t.props.url&&t.setState({componentData:n})})}(this.props.url)},i.prototype.componentDidMount=function(){this.loadComponent()},i.prototype.componentWillReceiveProps=function(t){var n=this;this.props.url&&this.props.url!==t.url&&this.setState({componentData:null},function(){n.loadComponent()})},i.prototype.render=function(){if(this.state.componentData)return t.h(this.state.componentData,this.props);if(this.props.loading){return this.props.loading()}return null},i}(t.Component)})},function(t,n,e){"use strict";var r={opacity:0},o={opacity:1};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[o,r]}}}},function(t,n,e){"use strict";var r={transform:"scale(0.5)",opacity:0},o={transform:"scale(1)",opacity:1};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[o,r]}}}},function(t,n,e){"use strict";var r={transform:"translateX(100%)",opacity:0},o={transform:"translateX(0%)",opacity:1},i={transform:"translateX(0%)",opacity:1},a={transform:"translateX(-100%)",opacity:0};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[i,a]}}}},function(t,n,e){"use strict";var r={transform:"translateX(40%)",opacity:0},o={transform:"translateX(0%)",opacity:1},i={opacity:1},a={opacity:0};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[i,a]}}}},function(t,n,e){"use strict";var r={transform:"translateY(40%)",opacity:0},o={transform:"translateY(0%)",opacity:1},i={opacity:1},a={opacity:.8};n.a={getEntryAnimation:function(){return{animation:[r,o]}},getExitAnimation:function(){return{animation:[i,a]}}}},function(t,n,e){"use strict";var r={transform:"scale(1) translateX(0%)"},o={transform:"scale(0.5) translateX(0%)"},i={transform:"scale(0.5) translateX(-200%)"},a={transform:"scale(0.5) translateX(200%)"},s={transform:"scale(0.5) translateX(200%)",offset:.6},p={transform:"scale(0.5) translateX(0%)"},c={transform:"scale(1) translateX(0%)"};n.a={getEntryAnimation:function(){return{animation:[a,s,p,c],options:{duration:1400}}},getExitAnimation:function(){return{animation:[r,o,i],options:{duration:900}}}}}])}); |
{ | ||
"name": "ksco-liquid-route", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
35176
279