Socket
Socket
Sign inDemoInstall

@opuscapita/react-autocompletes

Package Overview
Dependencies
7
Maintainers
14
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## [v2.0.2](https://github.com/OpusCapita/react-ui-autocompletes/compare/v2.0.1...v2.0.2) (Tue, 26 Sep 2017 13:42:44 GMT)
- Set @opuscapita/npm-scripts version to 2.0.1-beta.1 (Kirill Volkovich <kirill.volkovich@jcatalog.com>, cdb2faf)
## [v2.0.1](https://github.com/OpusCapita/react-ui-autocompletes/compare/v2.0.0...v2.0.1) (Tue, 26 Sep 2017 12:24:55 GMT)

@@ -2,0 +5,0 @@ - Remove CHANGES.txt (Kirill Volkovich <kirill.volkovich@jcatalog.com>, 928a574)

2

lib/index.js

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

!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.demopage=t(require("react")):e.demopage=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=29)}([function(t,n){t.exports=e},function(e,t,n){(function(t){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-o)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n()):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(t,n(9))},function(e,t,n){(function(t){for(var r=n(18),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],u=0;!l&&u<i.length;u++)l=o[i[u]+"Request"+a],s=o[i[u]+"Cancel"+a]||o[i[u]+"CancelRequest"+a];if(!l||!s){var c=0,f=0,p=[],d=1e3/60;l=function(e){if(0===p.length){var t=r(),n=Math.max(0,d-(t-c));c=n+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return l.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(){o.requestAnimationFrame=l,o.cancelAnimationFrame=s}}).call(t,n(28))},function(e,t,n){"use strict";function r(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(0!==n[r])return!1;var o="number"==typeof t[r]?t[r]:t[r].val;if(e[r]!==o)return!1}return!0}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n,r,i,a,l){var s=-i*(t-r),u=-a*n,c=s+u,f=n+c*e,p=t+f*e;return Math.abs(f)<l&&Math.abs(p-r)<l?(o[0]=r,o[1]=0,o):(o[0]=p,o[1]=f,o)}t.__esModule=!0,t.default=r;var o=[0,0];e.exports=t.default},function(e,t,n){"use strict";function r(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n(14).default},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){y&&d&&(y=!1,d.length?m=d.concat(m):h=-1,m.length&&l())}function l(){if(!y){var e=o(a);y=!0;for(var t=m.length;t;){for(d=m,m=[];++h<t;)d&&d[h].run();h=-1,t=m.length}d=null,y=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,f,p=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,m=[],y=!1,h=-1;p.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];m.push(new s(e,t)),1!==m.length||y||o(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.prependListener=u,p.prependOnceListener=u,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=p[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(s(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(s(r.parts[i],t));p[r.id]={id:r.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],l=o[2],s=o[3],u={css:a,media:l,sourceMap:s};n[i]?n[i].parts.push(u):t.push(n[i]={id:i,parts:[u]})}return t}function o(e,t){var n=y(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function s(e,t){var n,r,o;if(t.singleton){var s=v++;n=h||(h=a(t)),r=u.bind(null,n,s,!1),o=u.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=f.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=c.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function u(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function c(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},d=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},m=d(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),y=d(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,v=0,g=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=m()),void 0===t.insertAt&&(t.insertAt="bottom");var o=r(e);return n(o,t),function(e){for(var i=[],a=0;a<o.length;a++){var l=o[a],s=p[l.id];s.refs--,i.push(s)}if(e){n(r(e),t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete p[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n(13).default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=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},u=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}}(),c=n(0),f=r(c),p=n(26),d=r(p),m=n(17),y=r(m),h=n(7),v=r(h),g=n(23),b=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={value:e.defaultValue,isFocused:!1},n}return l(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){this.props.defaultValue!==e.defaultValue&&this.setState({value:e.defaultValue})}},{key:"focus",value:function(){this._input&&this._input.focus()}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.setState({value:t}),this.props.onChange(e,t)}},{key:"handleItemClick",value:function(e,t){this.props.onSelect(e,t),this._input.blur()}},{key:"filterItems",value:function(e,t,n){return e.filter(function(e){return t(e.value,n)})}},{key:"handleFocus",value:function(){this.focus(),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultValue,t.filter),r=t.items,i=t.maxSuggessionsHeight,a=(t.onChange,t.onSelect,t.inputElement),l=t.placeholder,u=t.origin,c=o(t,["defaultValue","filter","items","maxSuggessionsHeight","onChange","onSelect","inputElement","placeholder","origin"]),p=this.state,m=p.value,y=p.isFocused,h=this.filterItems(r,n,m),b=s({ref:function(t){return e._input=t}.bind(this),value:m,placeholder:l,onChange:this.handleInputChange.bind(this)},c),_=a?a(b):f.default.createElement("input",s({className:d.default.input},b)),T=y&&h.length,S=g.presets.stiff,P=f.default.createElement(g.Motion,{defaultStyle:{x:0,y:0},style:{x:T?(0,g.spring)(i,S):(0,g.spring)(0,S),y:T?(0,g.spring)(1,S):(0,g.spring)(0,S)}},function(t){return f.default.createElement("div",{className:"\n "+d.default.suggessionsContainer+"\n "+("top"===u?d.default.suggessionsContainerTop:" ")+"\n ",style:{maxHeight:t.x+"px",opacity:t.y}},f.default.createElement("div",{className:d.default.suggessions},f.default.createElement(v.default,{items:h,onClick:function(t,n){return e.handleItemClick(t,n)}})))});return f.default.createElement("div",{ref:function(t){return e._autocomplete=t},tabIndex:-1,className:d.default.simpleAutocomplete,onFocus:this.handleFocus.bind(this),onBlur:this.handleBlur.bind(this)},_,P)}}]),t}(c.Component);t.default=b,b.propTypes={defaultValue:c.PropTypes.string,filter:c.PropTypes.func,inputElement:c.PropTypes.func,placeholder:c.PropTypes.string,items:c.PropTypes.arrayOf(c.PropTypes.shape({key:c.PropTypes.string,value:c.PropTypes.string})),onChange:c.PropTypes.func,onSelect:c.PropTypes.func,origin:c.PropTypes.oneOf(["top","bottom"]),maxSuggessionsHeight:c.PropTypes.number},b.defaultProps={defaultValue:"",filter:function(e,t){return(0,y.default)(t.toLowerCase(),e.toLowerCase())},items:[],maxSuggessionsHeight:320,onChange:function(){},onSelect:function(){},origin:"bottom",placeholder:""}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=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},u=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}}(),c=n(0),f=r(c),p=n(27),d=r(p),m=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),u(t,[{key:"handleItemClick",value:function(e,t){(0,this.props.onClick)(e,t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=(t.onClick,o(t,["items","onClick"]));return f.default.createElement("div",s({className:d.default.verticalList},r),n.map(function(t){return f.default.createElement("div",{className:d.default.item,key:t.key,onClick:function(n){return e.handleItemClick.call(e,n,t.key)}},t.value)}))}}]),t}(c.Component);t.default=m,m.propTypes={items:c.PropTypes.arrayOf(c.PropTypes.shape({key:c.PropTypes.string,value:c.PropTypes.node})),onClick:c.PropTypes.func},m.defaultProps={items:[],onClick:function(){}}},function(e,t,n){t=e.exports=n(8)(),t.push([e.i,".SimpleAutocomplete-module__simpleAutocomplete__2-0-1_38C {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n}\n.SimpleAutocomplete-module__input__2-0-1_1gr {\n border: none;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-size: 16px;\n}\n.SimpleAutocomplete-module__input__2-0-1_1gr::-webkit-input-placeholder {\n color: #333;\n opacity: 0.6;\n}\n.SimpleAutocomplete-module__input__2-0-1_1gr::-moz-placeholder {\n color: #333;\n opacity: 0.6;\n}\n.SimpleAutocomplete-module__input__2-0-1_1gr:-ms-input-placeholder {\n color: #333;\n opacity: 0.6;\n}\n.SimpleAutocomplete-module__input__2-0-1_1gr::placeholder {\n color: #333;\n opacity: 0.6;\n}\n.SimpleAutocomplete-module__input__2-0-1_1gr:focus {\n outline: none;\n}\n.SimpleAutocomplete-module__suggessionsContainer__2-0-1_hZ- {\n background-color: #fff;\n border-bottom-left-radius: 2px;\n border-bottom-right-radius: 2px;\n bottom: auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n left: 0;\n min-width: 100%;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 100%;\n z-index: 999;\n}\n.SimpleAutocomplete-module__suggessionsContainerTop__2-0-1_3_5 {\n top: auto;\n bottom: 100%;\n}\n.SimpleAutocomplete-module__suggessionsContainer__2-0-1_hZ-:focus {\n outline: none;\n}\n.SimpleAutocomplete-module__suggessions__2-0-1_2YW {\n background-color: #fff;\n border: 1px solid rgba(0, 0, 0, 0.12);\n max-height: inherit;\n overflow: auto;\n position: relative;\n}\n",""]),t.locals={simpleAutocomplete:"SimpleAutocomplete-module__simpleAutocomplete__2-0-1_38C",input:"SimpleAutocomplete-module__input__2-0-1_1gr",suggessionsContainer:"SimpleAutocomplete-module__suggessionsContainer__2-0-1_hZ-",suggessionsContainerTop:"SimpleAutocomplete-module__suggessionsContainerTop__2-0-1_3_5",suggessions:"SimpleAutocomplete-module__suggessions__2-0-1_2YW"}},function(e,t,n){t=e.exports=n(8)(),t.push([e.i,".VerticalList-module__item__2-0-1_2Fo {\n position: relative;\n padding: 6px 12px;\n}\n.VerticalList-module__item__2-0-1_2Fo:focus {\n outline: none;\n}\n.VerticalList-module__item__2-0-1_2Fo:hover:after {\n content: '';\n cursor: pointer;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.08);\n}\n",""]),t.locals={item:"VerticalList-module__item__2-0-1_2Fo"}},function(e,t,n){"use strict";function r(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var o=0,i=0;o<r;o++){for(var a=e.charCodeAt(o);i<n;)if(t.charCodeAt(i++)===a)continue e;return!1}return!0}e.exports=r},function(e,t,n){(function(t){(function(){var n,r,o,i,a,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},i=n(),l=1e9*t.uptime(),a=i-l):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(t,n(9))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var 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},i=n(3),a=r(i),l=n(6),s=r(l),u=n(5),c=r(u),f=n(1),p=r(f),d=n(2),m=r(d),y=n(4),h=r(y),v=n(0),g=r(v),b=1e3/60,_=g.default.createClass({displayName:"Motion",propTypes:{defaultStyle:v.PropTypes.objectOf(v.PropTypes.number),style:v.PropTypes.objectOf(v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.object])).isRequired,children:v.PropTypes.func.isRequired,onRest:v.PropTypes.func},getInitialState:function(){var e=this.props,t=e.defaultStyle,n=e.style,r=t||s.default(n),o=a.default(r);return{currentStyle:r,currentVelocity:o,lastIdealStyle:r,lastIdealVelocity:o}},wasAnimating:!1,animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyle:null,clearUnreadPropStyle:function(e){var t=!1,n=this.state,r=n.currentStyle,i=n.currentVelocity,a=n.lastIdealStyle,l=n.lastIdealVelocity;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var u=e[s];"number"==typeof u&&(t||(t=!0,r=o({},r),i=o({},i),a=o({},a),l=o({},l)),r[s]=u,i[s]=0,a[s]=u,l[s]=0)}t&&this.setState({currentStyle:r,currentVelocity:i,lastIdealStyle:a,lastIdealVelocity:l})},startAnimationIfNecessary:function(){var e=this;this.animationID=m.default(function(t){var n=e.props.style;if(h.default(e.state.currentStyle,n,e.state.currentVelocity))return e.wasAnimating&&e.props.onRest&&e.props.onRest(),e.animationID=null,e.wasAnimating=!1,void(e.accumulatedTime=0);e.wasAnimating=!0;var r=t||p.default(),o=r-e.prevTime;if(e.prevTime=r,e.accumulatedTime=e.accumulatedTime+o,e.accumulatedTime>10*b&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();var i=(e.accumulatedTime-Math.floor(e.accumulatedTime/b)*b)/b,a=Math.floor(e.accumulatedTime/b),l={},s={},u={},f={};for(var d in n)if(Object.prototype.hasOwnProperty.call(n,d)){var m=n[d];if("number"==typeof m)u[d]=m,f[d]=0,l[d]=m,s[d]=0;else{for(var y=e.state.lastIdealStyle[d],v=e.state.lastIdealVelocity[d],g=0;g<a;g++){var _=c.default(b/1e3,y,v,m.val,m.stiffness,m.damping,m.precision);y=_[0],v=_[1]}var T=c.default(b/1e3,y,v,m.val,m.stiffness,m.damping,m.precision),S=T[0],P=T[1];u[d]=y+(S-y)*i,f[d]=v+(P-v)*i,l[d]=y,s[d]=v}}e.animationID=null,e.accumulatedTime-=a*b,e.setState({currentStyle:u,currentVelocity:f,lastIdealStyle:l,lastIdealVelocity:s}),e.unreadPropStyle=null,e.startAnimationIfNecessary()})},componentDidMount:function(){this.prevTime=p.default(),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=p.default(),this.startAnimationIfNecessary())},componentWillUnmount:function(){null!=this.animationID&&(m.default.cancel(this.animationID),this.animationID=null)},render:function(){var e=this.props.children(this.state.currentStyle);return e&&g.default.Children.only(e)}});t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){for(var r=0;r<e.length;r++)if(!v.default(e[r],t[r],n[r]))return!1;return!0}t.__esModule=!0;var i=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},a=n(3),l=r(a),s=n(6),u=r(s),c=n(5),f=r(c),p=n(1),d=r(p),m=n(2),y=r(m),h=n(4),v=r(h),g=n(0),b=r(g),_=1e3/60,T=b.default.createClass({displayName:"StaggeredMotion",propTypes:{defaultStyles:g.PropTypes.arrayOf(g.PropTypes.objectOf(g.PropTypes.number)),styles:g.PropTypes.func.isRequired,children:g.PropTypes.func.isRequired},getInitialState:function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=t||n().map(u.default),o=r.map(function(e){return l.default(e)});return{currentStyles:r,currentVelocities:o,lastIdealStyles:r,lastIdealVelocities:o}},animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyles:null,clearUnreadPropStyle:function(e){for(var t=this.state,n=t.currentStyles,r=t.currentVelocities,o=t.lastIdealStyles,a=t.lastIdealVelocities,l=!1,s=0;s<e.length;s++){var u=e[s],c=!1;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var p=u[f];"number"==typeof p&&(c||(c=!0,l=!0,n[s]=i({},n[s]),r[s]=i({},r[s]),o[s]=i({},o[s]),a[s]=i({},a[s])),n[s][f]=p,r[s][f]=0,o[s][f]=p,a[s][f]=0)}}l&&this.setState({currentStyles:n,currentVelocities:r,lastIdealStyles:o,lastIdealVelocities:a})},startAnimationIfNecessary:function(){var e=this;this.animationID=y.default(function(t){var n=e.props.styles(e.state.lastIdealStyles);if(o(e.state.currentStyles,n,e.state.currentVelocities))return e.animationID=null,void(e.accumulatedTime=0);var r=t||d.default(),i=r-e.prevTime;if(e.prevTime=r,e.accumulatedTime=e.accumulatedTime+i,e.accumulatedTime>10*_&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var a=(e.accumulatedTime-Math.floor(e.accumulatedTime/_)*_)/_,l=Math.floor(e.accumulatedTime/_),s=[],u=[],c=[],p=[],m=0;m<n.length;m++){var y=n[m],h={},v={},g={},b={};for(var T in y)if(Object.prototype.hasOwnProperty.call(y,T)){var S=y[T];if("number"==typeof S)h[T]=S,v[T]=0,g[T]=S,b[T]=0;else{for(var P=e.state.lastIdealStyles[m][T],w=e.state.lastIdealVelocities[m][T],x=0;x<l;x++){var O=f.default(_/1e3,P,w,S.val,S.stiffness,S.damping,S.precision);P=O[0],w=O[1]}var I=f.default(_/1e3,P,w,S.val,S.stiffness,S.damping,S.precision),k=I[0],j=I[1];h[T]=P+(k-P)*a,v[T]=w+(j-w)*a,g[T]=P,b[T]=w}}c[m]=h,p[m]=v,s[m]=g,u[m]=b}e.animationID=null,e.accumulatedTime-=l*_,e.setState({currentStyles:c,currentVelocities:p,lastIdealStyles:s,lastIdealVelocities:u}),e.unreadPropStyles=null,e.startAnimationIfNecessary()})},componentDidMount:function(){this.prevTime=d.default(),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=d.default(),this.startAnimationIfNecessary())},componentWillUnmount:function(){null!=this.animationID&&(y.default.cancel(this.animationID),this.animationID=null)},render:function(){var e=this.props.children(this.state.currentStyles);return e&&b.default.Children.only(e)}});t.default=T,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=t;return null==r?e.map(function(e,t){return{key:e.key,data:e.data,style:n[t]}}):e.map(function(e,t){for(var o=0;o<r.length;o++)if(r[o].key===e.key)return{key:r[o].key,data:r[o].data,style:n[t]};return{key:e.key,data:e.data,style:n[t]}})}function i(e,t,n,r){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o++)if(r[o].key!==t[o].key)return!1;for(var o=0;o<r.length;o++)if(!T.default(e[o],t[o].style,n[o]))return!1;return!0}function a(e,t,n,r,o,i,a,l){for(var s=y.default(n,r,function(e,n){var r=t(n);return null==r?null:T.default(o[e],r,i[e])?null:{key:n.key,data:n.data,style:r}}),c=[],f=[],p=[],d=[],m=0;m<s.length;m++){for(var h=s[m],v=null,g=0;g<n.length;g++)if(n[g].key===h.key){v=g;break}if(null==v){var b=e(h);c[m]=b,p[m]=b;var _=u.default(h.style);f[m]=_,d[m]=_}else c[m]=o[v],p[m]=a[v],f[m]=i[v],d[m]=l[v]}return[s,c,f,p,d]}t.__esModule=!0;var l=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=n(3),u=r(s),c=n(6),f=r(c),p=n(5),d=r(p),m=n(22),y=r(m),h=n(1),v=r(h),g=n(2),b=r(g),_=n(4),T=r(_),S=n(0),P=r(S),w=1e3/60,x=P.default.createClass({displayName:"TransitionMotion",propTypes:{defaultStyles:S.PropTypes.arrayOf(S.PropTypes.shape({key:S.PropTypes.string.isRequired,data:S.PropTypes.any,style:S.PropTypes.objectOf(S.PropTypes.number).isRequired})),styles:S.PropTypes.oneOfType([S.PropTypes.func,S.PropTypes.arrayOf(S.PropTypes.shape({key:S.PropTypes.string.isRequired,data:S.PropTypes.any,style:S.PropTypes.objectOf(S.PropTypes.oneOfType([S.PropTypes.number,S.PropTypes.object])).isRequired}))]).isRequired,children:S.PropTypes.func.isRequired,willLeave:S.PropTypes.func,willEnter:S.PropTypes.func},getDefaultProps:function(){return{willEnter:function(e){return f.default(e.style)},willLeave:function(){return null}}},getInitialState:function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=e.willEnter,o=e.willLeave,i="function"==typeof n?n(t):n,l=void 0;l=null==t?i:t.map(function(e){for(var t=0;t<i.length;t++)if(i[t].key===e.key)return i[t];return e});var s=null==t?i.map(function(e){return f.default(e.style)}):t.map(function(e){return f.default(e.style)}),c=null==t?i.map(function(e){return u.default(e.style)}):t.map(function(e){return u.default(e.style)}),p=a(r,o,l,i,s,c,s,c),d=p[0];return{currentStyles:p[1],currentVelocities:p[2],lastIdealStyles:p[3],lastIdealVelocities:p[4],mergedPropsStyles:d}},unmounting:!1,animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyles:null,clearUnreadPropStyle:function(e){for(var t=a(this.props.willEnter,this.props.willLeave,this.state.mergedPropsStyles,e,this.state.currentStyles,this.state.currentVelocities,this.state.lastIdealStyles,this.state.lastIdealVelocities),n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],u=0;u<e.length;u++){var c=e[u].style,f=!1;for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p)){var d=c[p];"number"==typeof d&&(f||(f=!0,r[u]=l({},r[u]),o[u]=l({},o[u]),i[u]=l({},i[u]),s[u]=l({},s[u]),n[u]={key:n[u].key,data:n[u].data,style:l({},n[u].style)}),r[u][p]=d,o[u][p]=0,i[u][p]=d,s[u][p]=0,n[u].style[p]=d)}}this.setState({currentStyles:r,currentVelocities:o,mergedPropsStyles:n,lastIdealStyles:i,lastIdealVelocities:s})},startAnimationIfNecessary:function(){var e=this;this.unmounting||(this.animationID=b.default(function(t){var n=e.props.styles,r="function"==typeof n?n(o(e.state.mergedPropsStyles,e.unreadPropStyles,e.state.lastIdealStyles)):n;if(i(e.state.currentStyles,r,e.state.currentVelocities,e.state.mergedPropsStyles))return e.animationID=null,void(e.accumulatedTime=0);var l=t||v.default(),s=l-e.prevTime;if(e.prevTime=l,e.accumulatedTime=e.accumulatedTime+s,e.accumulatedTime>10*w&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var u=(e.accumulatedTime-Math.floor(e.accumulatedTime/w)*w)/w,c=Math.floor(e.accumulatedTime/w),f=a(e.props.willEnter,e.props.willLeave,e.state.mergedPropsStyles,r,e.state.currentStyles,e.state.currentVelocities,e.state.lastIdealStyles,e.state.lastIdealVelocities),p=f[0],m=f[1],y=f[2],h=f[3],g=f[4],b=0;b<p.length;b++){var _=p[b].style,T={},S={},P={},x={};for(var O in _)if(Object.prototype.hasOwnProperty.call(_,O)){var I=_[O];if("number"==typeof I)T[O]=I,S[O]=0,P[O]=I,x[O]=0;else{for(var k=h[b][O],j=g[b][O],C=0;C<c;C++){var A=d.default(w/1e3,k,j,I.val,I.stiffness,I.damping,I.precision);k=A[0],j=A[1]}var M=d.default(w/1e3,k,j,I.val,I.stiffness,I.damping,I.precision),V=M[0],D=M[1];T[O]=k+(V-k)*u,S[O]=j+(D-j)*u,P[O]=k,x[O]=j}}h[b]=P,g[b]=x,m[b]=T,y[b]=S}e.animationID=null,e.accumulatedTime-=c*w,e.setState({currentStyles:m,currentVelocities:y,lastIdealStyles:h,lastIdealVelocities:g,mergedPropsStyles:p}),e.unreadPropStyles=null,e.startAnimationIfNecessary()}))},componentDidMount:function(){this.prevTime=v.default(),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(o(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=v.default(),this.startAnimationIfNecessary())},componentWillUnmount:function(){this.unmounting=!0,null!=this.animationID&&(b.default.cancel(this.animationID),this.animationID=null)},render:function(){var e=o(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&P.default.Children.only(t)}});t.default=x,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){for(var r={},o=0;o<e.length;o++)r[e[o].key]=o;for(var i={},o=0;o<t.length;o++)i[t[o].key]=o;for(var a=[],o=0;o<t.length;o++)a[o]=t[o];for(var o=0;o<e.length;o++)if(!Object.prototype.hasOwnProperty.call(i,e[o].key)){var l=n(o,e[o]);null!=l&&a.push(l)}return a.sort(function(e,n){var o=i[e.key],a=i[n.key],l=r[e.key],s=r[n.key];if(null!=o&&null!=a)return i[e.key]-i[n.key];if(null!=l&&null!=s)return r[e.key]-r[n.key];if(null!=o){for(var u=0;u<t.length;u++){var c=t[u].key;if(Object.prototype.hasOwnProperty.call(r,c)){if(o<i[c]&&s>r[c])return-1;if(o>i[c]&&s<r[c])return 1}}return 1}for(var u=0;u<t.length;u++){var c=t[u].key;if(Object.prototype.hasOwnProperty.call(r,c)){if(a<i[c]&&l>r[c])return 1;if(a>i[c]&&l<r[c])return-1}}return-1})}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var o=n(19);t.Motion=r(o);var i=n(20);t.StaggeredMotion=r(i);var a=n(21);t.TransitionMotion=r(a);var l=n(25);t.spring=r(l);var s=n(10);t.presets=r(s);var u=n(24);t.reorderKeys=r(u)},function(e,t,n){"use strict";function r(){}t.__esModule=!0,t.default=r;e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return i({},s,t,{val:e})}t.__esModule=!0;var i=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};t.default=o;var a=n(10),l=r(a),s=i({},l.default.noWobble,{precision:.01});e.exports=t.default},function(e,t,n){var r=n(15);"string"==typeof r&&(r=[[e.i,r,""]]);n(11)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(16);"string"==typeof r&&(r=[[e.i,r,""]]);n(11)(r,{});r.locals&&(e.exports=r.locals)},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";e.exports={SimpleAutocomplete:n(12).default,VerticalList:n(7).default}}])});
!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.demopage=t(require("react")):e.demopage=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=29)}([function(t,n){t.exports=e},function(e,t,n){(function(t){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-o)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n()):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(t,n(9))},function(e,t,n){(function(t){for(var r=n(18),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],u=0;!l&&u<i.length;u++)l=o[i[u]+"Request"+a],s=o[i[u]+"Cancel"+a]||o[i[u]+"CancelRequest"+a];if(!l||!s){var c=0,f=0,p=[],d=1e3/60;l=function(e){if(0===p.length){var t=r(),n=Math.max(0,d-(t-c));c=n+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return l.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(){o.requestAnimationFrame=l,o.cancelAnimationFrame=s}}).call(t,n(28))},function(e,t,n){"use strict";function r(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(0!==n[r])return!1;var o="number"==typeof t[r]?t[r]:t[r].val;if(e[r]!==o)return!1}return!0}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n,r,i,a,l){var s=-i*(t-r),u=-a*n,c=s+u,f=n+c*e,p=t+f*e;return Math.abs(f)<l&&Math.abs(p-r)<l?(o[0]=r,o[1]=0,o):(o[0]=p,o[1]=f,o)}t.__esModule=!0,t.default=r;var o=[0,0];e.exports=t.default},function(e,t,n){"use strict";function r(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n(14).default},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){y&&d&&(y=!1,d.length?m=d.concat(m):h=-1,m.length&&l())}function l(){if(!y){var e=o(a);y=!0;for(var t=m.length;t;){for(d=m,m=[];++h<t;)d&&d[h].run();h=-1,t=m.length}d=null,y=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,f,p=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,m=[],y=!1,h=-1;p.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];m.push(new s(e,t)),1!==m.length||y||o(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.prependListener=u,p.prependOnceListener=u,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=p[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(s(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(s(r.parts[i],t));p[r.id]={id:r.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],l=o[2],s=o[3],u={css:a,media:l,sourceMap:s};n[i]?n[i].parts.push(u):t.push(n[i]={id:i,parts:[u]})}return t}function o(e,t){var n=y(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function s(e,t){var n,r,o;if(t.singleton){var s=v++;n=h||(h=a(t)),r=u.bind(null,n,s,!1),o=u.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=f.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=c.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function u(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function c(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},d=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},m=d(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),y=d(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,v=0,g=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=m()),void 0===t.insertAt&&(t.insertAt="bottom");var o=r(e);return n(o,t),function(e){for(var i=[],a=0;a<o.length;a++){var l=o[a],s=p[l.id];s.refs--,i.push(s)}if(e){n(r(e),t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete p[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n(13).default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=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},u=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}}(),c=n(0),f=r(c),p=n(26),d=r(p),m=n(17),y=r(m),h=n(7),v=r(h),g=n(23),b=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={value:e.defaultValue,isFocused:!1},n}return l(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){this.props.defaultValue!==e.defaultValue&&this.setState({value:e.defaultValue})}},{key:"focus",value:function(){this._input&&this._input.focus()}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.setState({value:t}),this.props.onChange(e,t)}},{key:"handleItemClick",value:function(e,t){this.props.onSelect(e,t),this._input.blur()}},{key:"filterItems",value:function(e,t,n){return e.filter(function(e){return t(e.value,n)})}},{key:"handleFocus",value:function(){this.focus(),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultValue,t.filter),r=t.items,i=t.maxSuggessionsHeight,a=(t.onChange,t.onSelect,t.inputElement),l=t.placeholder,u=t.origin,c=o(t,["defaultValue","filter","items","maxSuggessionsHeight","onChange","onSelect","inputElement","placeholder","origin"]),p=this.state,m=p.value,y=p.isFocused,h=this.filterItems(r,n,m),b=s({ref:function(t){return e._input=t}.bind(this),value:m,placeholder:l,onChange:this.handleInputChange.bind(this)},c),_=a?a(b):f.default.createElement("input",s({className:d.default.input},b)),T=y&&h.length,S=g.presets.stiff,P=f.default.createElement(g.Motion,{defaultStyle:{x:0,y:0},style:{x:T?(0,g.spring)(i,S):(0,g.spring)(0,S),y:T?(0,g.spring)(1,S):(0,g.spring)(0,S)}},function(t){return f.default.createElement("div",{className:"\n "+d.default.suggessionsContainer+"\n "+("top"===u?d.default.suggessionsContainerTop:" ")+"\n ",style:{maxHeight:t.x+"px",opacity:t.y}},f.default.createElement("div",{className:d.default.suggessions},f.default.createElement(v.default,{items:h,onClick:function(t,n){return e.handleItemClick(t,n)}})))});return f.default.createElement("div",{ref:function(t){return e._autocomplete=t},tabIndex:-1,className:d.default.simpleAutocomplete,onFocus:this.handleFocus.bind(this),onBlur:this.handleBlur.bind(this)},_,P)}}]),t}(c.Component);t.default=b,b.propTypes={defaultValue:c.PropTypes.string,filter:c.PropTypes.func,inputElement:c.PropTypes.func,placeholder:c.PropTypes.string,items:c.PropTypes.arrayOf(c.PropTypes.shape({key:c.PropTypes.string,value:c.PropTypes.string})),onChange:c.PropTypes.func,onSelect:c.PropTypes.func,origin:c.PropTypes.oneOf(["top","bottom"]),maxSuggessionsHeight:c.PropTypes.number},b.defaultProps={defaultValue:"",filter:function(e,t){return(0,y.default)(t.toLowerCase(),e.toLowerCase())},items:[],maxSuggessionsHeight:320,onChange:function(){},onSelect:function(){},origin:"bottom",placeholder:""}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=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},u=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}}(),c=n(0),f=r(c),p=n(27),d=r(p),m=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),u(t,[{key:"handleItemClick",value:function(e,t){(0,this.props.onClick)(e,t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=(t.onClick,o(t,["items","onClick"]));return f.default.createElement("div",s({className:d.default.verticalList},r),n.map(function(t){return f.default.createElement("div",{className:d.default.item,key:t.key,onClick:function(n){return e.handleItemClick.call(e,n,t.key)}},t.value)}))}}]),t}(c.Component);t.default=m,m.propTypes={items:c.PropTypes.arrayOf(c.PropTypes.shape({key:c.PropTypes.string,value:c.PropTypes.node})),onClick:c.PropTypes.func},m.defaultProps={items:[],onClick:function(){}}},function(e,t,n){t=e.exports=n(8)(),t.push([e.i,".SimpleAutocomplete-module__simpleAutocomplete__2-0-2_38C {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n}\n.SimpleAutocomplete-module__input__2-0-2_1gr {\n border: none;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-size: 16px;\n}\n.SimpleAutocomplete-module__input__2-0-2_1gr::-webkit-input-placeholder {\n color: #333;\n opacity: 0.6;\n}\n.SimpleAutocomplete-module__input__2-0-2_1gr::-moz-placeholder {\n color: #333;\n opacity: 0.6;\n}\n.SimpleAutocomplete-module__input__2-0-2_1gr:-ms-input-placeholder {\n color: #333;\n opacity: 0.6;\n}\n.SimpleAutocomplete-module__input__2-0-2_1gr::placeholder {\n color: #333;\n opacity: 0.6;\n}\n.SimpleAutocomplete-module__input__2-0-2_1gr:focus {\n outline: none;\n}\n.SimpleAutocomplete-module__suggessionsContainer__2-0-2_hZ- {\n background-color: #fff;\n border-bottom-left-radius: 2px;\n border-bottom-right-radius: 2px;\n bottom: auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n left: 0;\n min-width: 100%;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 100%;\n z-index: 999;\n}\n.SimpleAutocomplete-module__suggessionsContainerTop__2-0-2_3_5 {\n top: auto;\n bottom: 100%;\n}\n.SimpleAutocomplete-module__suggessionsContainer__2-0-2_hZ-:focus {\n outline: none;\n}\n.SimpleAutocomplete-module__suggessions__2-0-2_2YW {\n background-color: #fff;\n border: 1px solid rgba(0, 0, 0, 0.12);\n max-height: inherit;\n overflow: auto;\n position: relative;\n}\n",""]),t.locals={simpleAutocomplete:"SimpleAutocomplete-module__simpleAutocomplete__2-0-2_38C",input:"SimpleAutocomplete-module__input__2-0-2_1gr",suggessionsContainer:"SimpleAutocomplete-module__suggessionsContainer__2-0-2_hZ-",suggessionsContainerTop:"SimpleAutocomplete-module__suggessionsContainerTop__2-0-2_3_5",suggessions:"SimpleAutocomplete-module__suggessions__2-0-2_2YW"}},function(e,t,n){t=e.exports=n(8)(),t.push([e.i,".VerticalList-module__item__2-0-2_2Fo {\n position: relative;\n padding: 6px 12px;\n}\n.VerticalList-module__item__2-0-2_2Fo:focus {\n outline: none;\n}\n.VerticalList-module__item__2-0-2_2Fo:hover:after {\n content: '';\n cursor: pointer;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.08);\n}\n",""]),t.locals={item:"VerticalList-module__item__2-0-2_2Fo"}},function(e,t,n){"use strict";function r(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var o=0,i=0;o<r;o++){for(var a=e.charCodeAt(o);i<n;)if(t.charCodeAt(i++)===a)continue e;return!1}return!0}e.exports=r},function(e,t,n){(function(t){(function(){var n,r,o,i,a,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},i=n(),l=1e9*t.uptime(),a=i-l):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(t,n(9))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var 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},i=n(3),a=r(i),l=n(6),s=r(l),u=n(5),c=r(u),f=n(1),p=r(f),d=n(2),m=r(d),y=n(4),h=r(y),v=n(0),g=r(v),b=1e3/60,_=g.default.createClass({displayName:"Motion",propTypes:{defaultStyle:v.PropTypes.objectOf(v.PropTypes.number),style:v.PropTypes.objectOf(v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.object])).isRequired,children:v.PropTypes.func.isRequired,onRest:v.PropTypes.func},getInitialState:function(){var e=this.props,t=e.defaultStyle,n=e.style,r=t||s.default(n),o=a.default(r);return{currentStyle:r,currentVelocity:o,lastIdealStyle:r,lastIdealVelocity:o}},wasAnimating:!1,animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyle:null,clearUnreadPropStyle:function(e){var t=!1,n=this.state,r=n.currentStyle,i=n.currentVelocity,a=n.lastIdealStyle,l=n.lastIdealVelocity;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var u=e[s];"number"==typeof u&&(t||(t=!0,r=o({},r),i=o({},i),a=o({},a),l=o({},l)),r[s]=u,i[s]=0,a[s]=u,l[s]=0)}t&&this.setState({currentStyle:r,currentVelocity:i,lastIdealStyle:a,lastIdealVelocity:l})},startAnimationIfNecessary:function(){var e=this;this.animationID=m.default(function(t){var n=e.props.style;if(h.default(e.state.currentStyle,n,e.state.currentVelocity))return e.wasAnimating&&e.props.onRest&&e.props.onRest(),e.animationID=null,e.wasAnimating=!1,void(e.accumulatedTime=0);e.wasAnimating=!0;var r=t||p.default(),o=r-e.prevTime;if(e.prevTime=r,e.accumulatedTime=e.accumulatedTime+o,e.accumulatedTime>10*b&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();var i=(e.accumulatedTime-Math.floor(e.accumulatedTime/b)*b)/b,a=Math.floor(e.accumulatedTime/b),l={},s={},u={},f={};for(var d in n)if(Object.prototype.hasOwnProperty.call(n,d)){var m=n[d];if("number"==typeof m)u[d]=m,f[d]=0,l[d]=m,s[d]=0;else{for(var y=e.state.lastIdealStyle[d],v=e.state.lastIdealVelocity[d],g=0;g<a;g++){var _=c.default(b/1e3,y,v,m.val,m.stiffness,m.damping,m.precision);y=_[0],v=_[1]}var T=c.default(b/1e3,y,v,m.val,m.stiffness,m.damping,m.precision),S=T[0],P=T[1];u[d]=y+(S-y)*i,f[d]=v+(P-v)*i,l[d]=y,s[d]=v}}e.animationID=null,e.accumulatedTime-=a*b,e.setState({currentStyle:u,currentVelocity:f,lastIdealStyle:l,lastIdealVelocity:s}),e.unreadPropStyle=null,e.startAnimationIfNecessary()})},componentDidMount:function(){this.prevTime=p.default(),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=p.default(),this.startAnimationIfNecessary())},componentWillUnmount:function(){null!=this.animationID&&(m.default.cancel(this.animationID),this.animationID=null)},render:function(){var e=this.props.children(this.state.currentStyle);return e&&g.default.Children.only(e)}});t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){for(var r=0;r<e.length;r++)if(!v.default(e[r],t[r],n[r]))return!1;return!0}t.__esModule=!0;var i=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},a=n(3),l=r(a),s=n(6),u=r(s),c=n(5),f=r(c),p=n(1),d=r(p),m=n(2),y=r(m),h=n(4),v=r(h),g=n(0),b=r(g),_=1e3/60,T=b.default.createClass({displayName:"StaggeredMotion",propTypes:{defaultStyles:g.PropTypes.arrayOf(g.PropTypes.objectOf(g.PropTypes.number)),styles:g.PropTypes.func.isRequired,children:g.PropTypes.func.isRequired},getInitialState:function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=t||n().map(u.default),o=r.map(function(e){return l.default(e)});return{currentStyles:r,currentVelocities:o,lastIdealStyles:r,lastIdealVelocities:o}},animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyles:null,clearUnreadPropStyle:function(e){for(var t=this.state,n=t.currentStyles,r=t.currentVelocities,o=t.lastIdealStyles,a=t.lastIdealVelocities,l=!1,s=0;s<e.length;s++){var u=e[s],c=!1;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var p=u[f];"number"==typeof p&&(c||(c=!0,l=!0,n[s]=i({},n[s]),r[s]=i({},r[s]),o[s]=i({},o[s]),a[s]=i({},a[s])),n[s][f]=p,r[s][f]=0,o[s][f]=p,a[s][f]=0)}}l&&this.setState({currentStyles:n,currentVelocities:r,lastIdealStyles:o,lastIdealVelocities:a})},startAnimationIfNecessary:function(){var e=this;this.animationID=y.default(function(t){var n=e.props.styles(e.state.lastIdealStyles);if(o(e.state.currentStyles,n,e.state.currentVelocities))return e.animationID=null,void(e.accumulatedTime=0);var r=t||d.default(),i=r-e.prevTime;if(e.prevTime=r,e.accumulatedTime=e.accumulatedTime+i,e.accumulatedTime>10*_&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var a=(e.accumulatedTime-Math.floor(e.accumulatedTime/_)*_)/_,l=Math.floor(e.accumulatedTime/_),s=[],u=[],c=[],p=[],m=0;m<n.length;m++){var y=n[m],h={},v={},g={},b={};for(var T in y)if(Object.prototype.hasOwnProperty.call(y,T)){var S=y[T];if("number"==typeof S)h[T]=S,v[T]=0,g[T]=S,b[T]=0;else{for(var P=e.state.lastIdealStyles[m][T],w=e.state.lastIdealVelocities[m][T],x=0;x<l;x++){var O=f.default(_/1e3,P,w,S.val,S.stiffness,S.damping,S.precision);P=O[0],w=O[1]}var I=f.default(_/1e3,P,w,S.val,S.stiffness,S.damping,S.precision),k=I[0],j=I[1];h[T]=P+(k-P)*a,v[T]=w+(j-w)*a,g[T]=P,b[T]=w}}c[m]=h,p[m]=v,s[m]=g,u[m]=b}e.animationID=null,e.accumulatedTime-=l*_,e.setState({currentStyles:c,currentVelocities:p,lastIdealStyles:s,lastIdealVelocities:u}),e.unreadPropStyles=null,e.startAnimationIfNecessary()})},componentDidMount:function(){this.prevTime=d.default(),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=d.default(),this.startAnimationIfNecessary())},componentWillUnmount:function(){null!=this.animationID&&(y.default.cancel(this.animationID),this.animationID=null)},render:function(){var e=this.props.children(this.state.currentStyles);return e&&b.default.Children.only(e)}});t.default=T,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=t;return null==r?e.map(function(e,t){return{key:e.key,data:e.data,style:n[t]}}):e.map(function(e,t){for(var o=0;o<r.length;o++)if(r[o].key===e.key)return{key:r[o].key,data:r[o].data,style:n[t]};return{key:e.key,data:e.data,style:n[t]}})}function i(e,t,n,r){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o++)if(r[o].key!==t[o].key)return!1;for(var o=0;o<r.length;o++)if(!T.default(e[o],t[o].style,n[o]))return!1;return!0}function a(e,t,n,r,o,i,a,l){for(var s=y.default(n,r,function(e,n){var r=t(n);return null==r?null:T.default(o[e],r,i[e])?null:{key:n.key,data:n.data,style:r}}),c=[],f=[],p=[],d=[],m=0;m<s.length;m++){for(var h=s[m],v=null,g=0;g<n.length;g++)if(n[g].key===h.key){v=g;break}if(null==v){var b=e(h);c[m]=b,p[m]=b;var _=u.default(h.style);f[m]=_,d[m]=_}else c[m]=o[v],p[m]=a[v],f[m]=i[v],d[m]=l[v]}return[s,c,f,p,d]}t.__esModule=!0;var l=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=n(3),u=r(s),c=n(6),f=r(c),p=n(5),d=r(p),m=n(22),y=r(m),h=n(1),v=r(h),g=n(2),b=r(g),_=n(4),T=r(_),S=n(0),P=r(S),w=1e3/60,x=P.default.createClass({displayName:"TransitionMotion",propTypes:{defaultStyles:S.PropTypes.arrayOf(S.PropTypes.shape({key:S.PropTypes.string.isRequired,data:S.PropTypes.any,style:S.PropTypes.objectOf(S.PropTypes.number).isRequired})),styles:S.PropTypes.oneOfType([S.PropTypes.func,S.PropTypes.arrayOf(S.PropTypes.shape({key:S.PropTypes.string.isRequired,data:S.PropTypes.any,style:S.PropTypes.objectOf(S.PropTypes.oneOfType([S.PropTypes.number,S.PropTypes.object])).isRequired}))]).isRequired,children:S.PropTypes.func.isRequired,willLeave:S.PropTypes.func,willEnter:S.PropTypes.func},getDefaultProps:function(){return{willEnter:function(e){return f.default(e.style)},willLeave:function(){return null}}},getInitialState:function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=e.willEnter,o=e.willLeave,i="function"==typeof n?n(t):n,l=void 0;l=null==t?i:t.map(function(e){for(var t=0;t<i.length;t++)if(i[t].key===e.key)return i[t];return e});var s=null==t?i.map(function(e){return f.default(e.style)}):t.map(function(e){return f.default(e.style)}),c=null==t?i.map(function(e){return u.default(e.style)}):t.map(function(e){return u.default(e.style)}),p=a(r,o,l,i,s,c,s,c),d=p[0];return{currentStyles:p[1],currentVelocities:p[2],lastIdealStyles:p[3],lastIdealVelocities:p[4],mergedPropsStyles:d}},unmounting:!1,animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyles:null,clearUnreadPropStyle:function(e){for(var t=a(this.props.willEnter,this.props.willLeave,this.state.mergedPropsStyles,e,this.state.currentStyles,this.state.currentVelocities,this.state.lastIdealStyles,this.state.lastIdealVelocities),n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],u=0;u<e.length;u++){var c=e[u].style,f=!1;for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p)){var d=c[p];"number"==typeof d&&(f||(f=!0,r[u]=l({},r[u]),o[u]=l({},o[u]),i[u]=l({},i[u]),s[u]=l({},s[u]),n[u]={key:n[u].key,data:n[u].data,style:l({},n[u].style)}),r[u][p]=d,o[u][p]=0,i[u][p]=d,s[u][p]=0,n[u].style[p]=d)}}this.setState({currentStyles:r,currentVelocities:o,mergedPropsStyles:n,lastIdealStyles:i,lastIdealVelocities:s})},startAnimationIfNecessary:function(){var e=this;this.unmounting||(this.animationID=b.default(function(t){var n=e.props.styles,r="function"==typeof n?n(o(e.state.mergedPropsStyles,e.unreadPropStyles,e.state.lastIdealStyles)):n;if(i(e.state.currentStyles,r,e.state.currentVelocities,e.state.mergedPropsStyles))return e.animationID=null,void(e.accumulatedTime=0);var l=t||v.default(),s=l-e.prevTime;if(e.prevTime=l,e.accumulatedTime=e.accumulatedTime+s,e.accumulatedTime>10*w&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var u=(e.accumulatedTime-Math.floor(e.accumulatedTime/w)*w)/w,c=Math.floor(e.accumulatedTime/w),f=a(e.props.willEnter,e.props.willLeave,e.state.mergedPropsStyles,r,e.state.currentStyles,e.state.currentVelocities,e.state.lastIdealStyles,e.state.lastIdealVelocities),p=f[0],m=f[1],y=f[2],h=f[3],g=f[4],b=0;b<p.length;b++){var _=p[b].style,T={},S={},P={},x={};for(var O in _)if(Object.prototype.hasOwnProperty.call(_,O)){var I=_[O];if("number"==typeof I)T[O]=I,S[O]=0,P[O]=I,x[O]=0;else{for(var k=h[b][O],j=g[b][O],C=0;C<c;C++){var A=d.default(w/1e3,k,j,I.val,I.stiffness,I.damping,I.precision);k=A[0],j=A[1]}var M=d.default(w/1e3,k,j,I.val,I.stiffness,I.damping,I.precision),V=M[0],D=M[1];T[O]=k+(V-k)*u,S[O]=j+(D-j)*u,P[O]=k,x[O]=j}}h[b]=P,g[b]=x,m[b]=T,y[b]=S}e.animationID=null,e.accumulatedTime-=c*w,e.setState({currentStyles:m,currentVelocities:y,lastIdealStyles:h,lastIdealVelocities:g,mergedPropsStyles:p}),e.unreadPropStyles=null,e.startAnimationIfNecessary()}))},componentDidMount:function(){this.prevTime=v.default(),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(o(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=v.default(),this.startAnimationIfNecessary())},componentWillUnmount:function(){this.unmounting=!0,null!=this.animationID&&(b.default.cancel(this.animationID),this.animationID=null)},render:function(){var e=o(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&P.default.Children.only(t)}});t.default=x,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){for(var r={},o=0;o<e.length;o++)r[e[o].key]=o;for(var i={},o=0;o<t.length;o++)i[t[o].key]=o;for(var a=[],o=0;o<t.length;o++)a[o]=t[o];for(var o=0;o<e.length;o++)if(!Object.prototype.hasOwnProperty.call(i,e[o].key)){var l=n(o,e[o]);null!=l&&a.push(l)}return a.sort(function(e,n){var o=i[e.key],a=i[n.key],l=r[e.key],s=r[n.key];if(null!=o&&null!=a)return i[e.key]-i[n.key];if(null!=l&&null!=s)return r[e.key]-r[n.key];if(null!=o){for(var u=0;u<t.length;u++){var c=t[u].key;if(Object.prototype.hasOwnProperty.call(r,c)){if(o<i[c]&&s>r[c])return-1;if(o>i[c]&&s<r[c])return 1}}return 1}for(var u=0;u<t.length;u++){var c=t[u].key;if(Object.prototype.hasOwnProperty.call(r,c)){if(a<i[c]&&l>r[c])return 1;if(a>i[c]&&l<r[c])return-1}}return-1})}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var o=n(19);t.Motion=r(o);var i=n(20);t.StaggeredMotion=r(i);var a=n(21);t.TransitionMotion=r(a);var l=n(25);t.spring=r(l);var s=n(10);t.presets=r(s);var u=n(24);t.reorderKeys=r(u)},function(e,t,n){"use strict";function r(){}t.__esModule=!0,t.default=r;e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return i({},s,t,{val:e})}t.__esModule=!0;var i=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};t.default=o;var a=n(10),l=r(a),s=i({},l.default.noWobble,{precision:.01});e.exports=t.default},function(e,t,n){var r=n(15);"string"==typeof r&&(r=[[e.i,r,""]]);n(11)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(16);"string"==typeof r&&(r=[[e.i,r,""]]);n(11)(r,{});r.locals&&(e.exports=r.locals)},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";e.exports={SimpleAutocomplete:n(12).default,VerticalList:n(7).default}}])});
{
"name": "@opuscapita/react-autocompletes",
"version": "2.0.1",
"version": "2.0.2",
"description": "Autocomplete components",

@@ -31,3 +31,3 @@ "scripts": {

"devDependencies": {
"@opuscapita/npm-scripts": "2.0.1-beta.2",
"@opuscapita/npm-scripts": "2.0.1-beta.1",
"@opuscapita/react-showroom-client": "1.2.2",

@@ -34,0 +34,0 @@ "@opuscapita/react-showroom-server": "1.2.0",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc