react-select-input-v2 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +82 -0
- package/es/index.js +316 -0
- package/es/react-select-input.css +92 -0
- package/lib/index.js +328 -0
- package/lib/react-select-input.css +92 -0
- package/package.json +69 -0
- package/umd/react-select-input.js +2144 -0
- package/umd/react-select-input.min.js +6 -0
- package/umd/react-select-input.min.js.map +1 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* react-select-input v1.0.6 - https://samrith-s.github.io/react-select-input
|
|
3
|
+
* MIT Licensed
|
|
4
|
+
*/
|
|
5
|
+
!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.inputSelect=t(require("react")):e.inputSelect=t(e.React)}(this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},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=1)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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 i(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)}function a(e){var t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return e&&n.test(e)?e.replace(t,"\\$&"):e||""}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return c});var s=n(0),p=n.n(s),l=n(3),u=n.n(l),c=function(e){function t(){o(this,t);var n=r(this,e.call(this));return n.renderOptions=function(e){return e&&e.length>0?e.map(function(e,t){return p.a.createElement("div",{className:"ris-option"+(n.state.selectedOption===e[n.props.valueKey]?" selected":"")+(n.state.currentOption===t?" current":""),key:n.props.uniqueKey+"-option-"+t,onClick:n.handleClick.bind(n,t),ref:function(t){return n["option-"+e[n.props.valueKey]]=t}},e[n.props.labelKey])}):null},n.handleSelect=function(e,t){var o=n.manipState(n.state,"value",e[n.props.labelKey]);o=n.manipState(o,"selectedOption",e[n.props.valueKey]),o=n.manipState(o,"currentOption",-1),n.props.collapseOnSelect&&(o=n.setIsOpen(o,!1)),o=n.manipState(o,"searchMatchOptions",n.matchingOptions(n.props.options,o.value)),n.setState(o),n.isFunction(n.props.onSelect)&&n.props.onSelect(e)},n.handleClick=function(e,t){var o=n.pickOption(e);n.handleSelect(o,e)},n.handleChange=function(e){var t=n.manipState(n.state,"value",e.target.value);t=n.manipState(t,"searchMatchOptions",n.matchingOptions(n.props.options,e.target.value)),t=n.setIsOpen(t,!0),t.value||(t=n.manipState(t,"currentOption",-1),t=n.manipState(t,"selectedOption",null)),n.isFunction(n.props.onChange)&&n.props.onChange(e),n.setState(t)},n.handleFocus=function(e){var t=n.setIsOpen(n.state,!0);t=n.manipState(t,"searchMatchOptions",n.matchingOptions(n.props.options,e.target.value)),n.setState(t),n.isFunction(n.props.onFocus)&&n.props.onFocus(e)},n.handleClear=function(){var e=n.manipState(n.state,"value","");e=n.manipState(e,"searchMatchOptions",n.matchingOptions(n.props.options,e.value)),e=n.manipState(e,"currentOption",-1),e=n.manipState(e,"selectedOption",null),n.setState(e),n.isFunction(n.props.onClear)&&n.props.onClear()},n.handleBlur=function(e){if(n.props.collapseOnBlur){var t=n.setIsOpen(n.state,!1);n.setState(t)}n.isFunction(n.props.onBlur)&&n.props.onBlur(e)},n.handleKeyUp=function(e){"Enter"===e.key&&n.state.currentOption>-1?n.handleSelect(n.pickOption()):"Enter"===e.key&&-1===n.state.currentOption&&n.handleSelect(n.pickOption()),"Escape"===e.key&&n.props.collapseOnEscape&&n.setState(n.setIsOpen(n.state,!1)),n.isFunction(n.props.onKeyUp)&&n.props.onKeyUp(e)},n.handleKeyDown=function(e){if("Enter"===e.key&&n.props.disableEnter&&e.preventDefault(),"Escape"===e.key&&n.props.collapseOnEscape){var t=n.setIsOpen(n.state,!1);n.setState(t)}n.handleOptionNavigation(e),n.isFunction(n.props.onKeyDown)&&n.props.onKeyDown(e)},n.handleOptionNavigation=function(e){var t={},o=n.state.currentOption;("ArrowUp"===e.key||"ArrowDown"===e.key&&n.disableEnter)&&e.preventDefault(),"ArrowUp"===e.key&&-1===o&&n.props.openUp&&(o=n.state.searchMatchOptions.length),n.props.openUp?"ArrowDown"===e.key?o>-1?o++:o=-1:"ArrowUp"===e.key&&o--:"ArrowDown"===e.key?o++:"ArrowUp"===e.key&&o--,o<-1?o=-1:o>n.state.searchMatchOptions.length-1&&!n.props.openUp?o=n.state.searchMatchOptions.length-1:o>n.state.searchMatchOptions.length-1&&n.props.openUp&&(o=-1),t=n.manipState(n.state,"currentOption",o);var r=o>-1?n["option-"+n.state.searchMatchOptions[o][n.props.valueKey]]:null;r&&r.scrollIntoViewIfNeeded(!1),n.setState(t)},n.matchingOptions=function(e,t){t=a(t);var o=t.replace(/\s/g,""),r=[];return r=e&&e.length>0&&t?e.filter(function(e,t){var r=new RegExp(o,"gi"),i=e[n.props.valueKey]||"",a=e[n.props.labelKey]||"";return r.test(a.replace(/\s/g,""))||r.test(i.replace(/\s/g,""))}):e.slice(0,e.length),n.props.openUp&&r.reverse(),r},n.pickOption=function(e){var t;return e=null!==e&&void 0!==e?e:n.state.currentOption,e>-1?n.state.searchMatchOptions[e]:(t={},t[n.props.labelKey]=n.input.value.trim(),t[n.props.valueKey]=n.input.value.trim(),t)},n.setIsOpen=function(e,t){return Object.assign({},e,{isOpen:t||!1})},n.manipState=function(e,t,n){var o;return Object.assign({},e,(o={},o[t]=n,o))},n.isFunction=function(e){return"function"==typeof e},n.handleOutsideClick=function(e){!n.ris.contains(e.target)&&n.props.collapseOnBlur&&n.setState(n.setIsOpen(n.state,!1))},n.state={isOpen:!1,value:null,currentOption:-1,selectedOption:null,searchMatchOptions:[]},n}return i(t,e),t.prototype.componentDidMount=function(){document.addEventListener("click",this.handleOutsideClick)},t.prototype.componentDidUpdate=function(){this.props.openUp&&-1===this.state.currentOption&&this.state.isOpen&&!this.state.selectedOption?this.options.scrollTop=this.options.scrollHeight:this.props.openUp&&this.state.selectedOption&&this.state.isOpen&&this["option-"+this.state.selectedOption].scrollIntoViewIfNeeded(!0)},t.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.handleOutsideClick)},t.prototype.render=function(){var e=this;return p.a.createElement("div",{className:"ris"+(this.props.openUp?" ris-open-up":"")+(this.props.clearable?" ris-is-clearable":"")+(this.props.className?" "+this.props.className:""),key:"ris-"+this.props.uniqueKey,ref:function(t){return e.ris=t},style:this.props.style},p.a.createElement(u.a,{className:"ris-input",value:null!==this.state.value?this.state.value:this.props.value,placeholder:this.props.placeholder,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.props.onBlur,onKeyUp:this.handleKeyUp,onKeyDown:this.handleKeyDown,autoFocus:this.props.autoFocus,innerRef:function(t){return e.input=t}}),this.props.clearable?p.a.createElement("div",{className:"ris-clearable",onClick:this.handleClear},"x"):null,this.state.isOpen?this.state.searchMatchOptions.length>0?p.a.createElement("div",{className:"ris-options",ref:function(t){return e.options=t}},this.renderOptions(this.state.searchMatchOptions)):this.props.noOptions?p.a.createElement("div",{className:"ris-options ris-no-options"},this.props.noOptions):null:null)},t}(s.Component);c.defaultProps={uniqueKey:"react-select-input",style:null,ref:null,value:"",valueKey:"value",labelKey:"label",placeholder:"Enter text",className:"",openUp:!1,disableEnter:!0,collapseOnBlur:!0,collapseOnEscape:!0,collapseOnSelect:!0,autoFocus:!0,clearable:!0,options:[],onChange:void 0,onSelect:void 0,onFocus:void 0,onBlur:void 0,onKeyUp:void 0,onKeyDown:void 0,onClear:void 0,noOptions:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(4),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);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 s(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 p,l,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),f=n(0),d=o(f),h=n(5),v=o(h),y=n(8),O=o(y),m=n(9),g=o(m),b=(l=p=function(e){function t(){var e,n,o,s;i(this,t);for(var p=arguments.length,l=Array(p),c=0;c<p;c++)l[c]=arguments[c];return n=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.state={lineHeight:null},o.dispatchEvent=function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!1),o.textarea.dispatchEvent(t)},o.getValue=function(e){var t=e.valueLink,n=e.value;return t?t.value:n},o.updateLineHeight=function(){o.setState({lineHeight:(0,g.default)(o.textarea)})},o.onChange=function(e){o.currentValue=e.target.value,o.props.onChange&&o.props.onChange(e)},o.saveDOMNodeRef=function(e){var t=o.props.innerRef;t&&t(e),o.textarea=e},o.getLocals=function(){var e=o,t=e.props,n=(t.onResize,t.maxRows),i=(t.onChange,t.style),a=(t.innerRef,r(t,["onResize","maxRows","onChange","style","innerRef"])),s=e.state.lineHeight,p=e.saveDOMNodeRef,l=n&&s?s*n:null;return u({},a,{saveDOMNodeRef:p,style:l?u({},i,{maxHeight:l}):i,onChange:o.onChange})},s=n,a(o,s)}return s(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows?(this.updateLineHeight(),setTimeout(function(){return(0,O.default)(e.textarea)})):(0,O.default)(this.textarea),n&&this.textarea.addEventListener("autosize:resized",this.props.onResize)}},{key:"componentWillUnmount",value:function(){this.props.onResize&&this.textarea.removeEventListener("autosize:resized",this.props.onResize),this.dispatchEvent("autosize:destroy")}},{key:"render",value:function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,o=r(e,["children","saveDOMNodeRef"]);return d.default.createElement("textarea",u({},o,{ref:n}),t)}},{key:"componentDidUpdate",value:function(){this.getValue(this.props)!==this.currentValue&&this.dispatchEvent("autosize:update")}}]),t}(d.default.Component),p.defaultProps={rows:1},l);t.default=b,b.propTypes={rows:v.default.number,maxRows:v.default.number,onResize:v.default.func,innerRef:v.default.func}},function(e,t,n){e.exports=n(6)()},function(e,t,n){"use strict";function o(){}function r(){}var i=n(7);r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var o,r,i;!function(n,a){r=[t,e],o=a,void 0!==(i="function"==typeof o?o.apply(t,r):o)&&(e.exports=i)}(0,function(e,t){"use strict";function n(e){function t(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function n(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function o(){var t=e.style.height,o=n(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="auto";var i=e.scrollHeight+s;if(0===e.scrollHeight)return void(e.style.height=t);e.style.height=i+"px",p=e.clientWidth,o.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)}function r(){o();var n=Math.round(parseFloat(e.style.height)),r=window.getComputedStyle(e,null),i="content-box"===r.boxSizing?Math.round(parseFloat(r.height)):e.offsetHeight;if(i!==n?"hidden"===r.overflowY&&(t("scroll"),o(),i="content-box"===r.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==r.overflowY&&(t("hidden"),o(),i="content-box"===r.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==i){l=i;var s=a("autosize:resized");try{e.dispatchEvent(s)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!i.has(e)){var s=null,p=e.clientWidth,l=null,u=function(){e.clientWidth!==p&&r()},c=function(t){window.removeEventListener("resize",u,!1),e.removeEventListener("input",r,!1),e.removeEventListener("keyup",r,!1),e.removeEventListener("autosize:destroy",c,!1),e.removeEventListener("autosize:update",r,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),i.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",c,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",r,!1),window.addEventListener("resize",u,!1),e.addEventListener("input",r,!1),e.addEventListener("autosize:update",r,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",i.set(e,{destroy:c,update:r}),function(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),s="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(s)&&(s=0),r()}()}}function o(e){var t=i.get(e);t&&t.destroy()}function r(e){var t=i.get(e);t&&t.update()}var i="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,o){-1===e.indexOf(n)&&(e.push(n),t.push(o))},delete:function(n){var o=e.indexOf(n);o>-1&&(e.splice(o,1),t.splice(o,1))}}}(),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(s=function(e){return e},s.destroy=function(e){return e},s.update=function(e){return e}):(s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e)}),e},s.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.exports=s})},function(e,t,n){function o(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,a=document.createElement(i);a.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&a.setAttribute("rows","1");var s=r(e,"font-size");a.style.fontSize=s,a.style.padding="0px",a.style.border="0px";var p=document.body;p.appendChild(a);n=a.offsetHeight,p.removeChild(a)}return n}var r=n(10);e.exports=o},function(e,t){var n=function(e,t,n){return n=window.getComputedStyle,(n?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]};e.exports=n}])});
|
|
6
|
+
//# sourceMappingURL=react-select-input.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap a962473df5784dbb8abd","webpack:///react-select-input.min.js","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///./src/index.js","webpack:///./node_modules/react-autosize-textarea/lib/index.js","webpack:///./node_modules/react-autosize-textarea/lib/TextareaAutosize.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/autosize/dist/autosize.js","webpack:///./node_modules/line-height/lib/line-height.js","webpack:///./node_modules/computed-style/dist/computedStyle.commonjs.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_0__","__webpack_require__","moduleId","installedModules","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","__webpack_exports__","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","create","constructor","value","writable","setPrototypeOf","__proto__","escapeRegExp","string","reRegExpChar","reHasRegExpChar","RegExp","source","test","replace","SelectInput","__WEBPACK_IMPORTED_MODULE_0_react__","__WEBPACK_IMPORTED_MODULE_0_react___default","__WEBPACK_IMPORTED_MODULE_1_react_autosize_textarea__","__WEBPACK_IMPORTED_MODULE_1_react_autosize_textarea___default","renderOptions","options","length","map","option","index","className","state","selectedOption","props","valueKey","currentOption","key","uniqueKey","onClick","handleClick","bind","ref","labelKey","handleSelect","manipState","collapseOnSelect","setIsOpen","matchingOptions","setState","isFunction","onSelect","event","pickOption","handleChange","target","onChange","handleFocus","onFocus","handleClear","onClear","handleBlur","collapseOnBlur","onBlur","handleKeyUp","collapseOnEscape","onKeyUp","handleKeyDown","disableEnter","preventDefault","handleOptionNavigation","onKeyDown","openUp","searchMatchOptions","optionRef","scrollIntoViewIfNeeded","searchValue","searchOptions","filter","regexp","label","slice","reverse","undefined","input","trim","show","assign","isOpen","obj","handleOutsideClick","ris","contains","_Component","componentDidMount","document","addEventListener","componentDidUpdate","scrollTop","scrollHeight","componentWillUnmount","removeEventListener","render","clearable","style","placeholder","autoFocus","innerRef","noOptions","Component","defaultProps","default","_TextareaAutosize","_TextareaAutosize2","_interopRequireDefault","_objectWithoutProperties","keys","indexOf","_class","_temp2","_extends","arguments","_createClass","defineProperties","descriptor","protoProps","staticProps","_react","_react2","_propTypes","_propTypes2","_autosize","_autosize2","_lineHeight","_lineHeight2","TextareaAutosize","_React$Component","_ref","_temp","_this","_ret","_len","args","Array","_key","getPrototypeOf","apply","concat","lineHeight","dispatchEvent","EVENT_TYPE","createEvent","initEvent","textarea","getValue","_ref2","valueLink","updateLineHeight","e","currentValue","saveDOMNodeRef","getLocals","_this2","_this2$props","maxRows","onResize","maxHeight","_this3","_props","setTimeout","_getLocals","children","locals","createElement","rows","propTypes","number","func","emptyFunction","emptyFunctionWithReset","ReactPropTypesSecret","resetWarningCache","shim","propName","componentName","location","propFullName","secret","err","Error","getShim","isRequired","ReactPropTypes","array","bigint","bool","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","global","ta","changeOverflow","width","offsetWidth","overflowY","getParentOverflows","el","arr","parentNode","Element","push","resize","originalHeight","height","overflows","docTop","documentElement","endHeight","heightOffset","clientWidth","forEach","update","styleHeight","Math","round","parseFloat","computed","window","getComputedStyle","actualHeight","boxSizing","offsetHeight","cachedHeight","evt","nodeName","has","pageResize","destroy","overflowX","wordWrap","set","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth","isNaN","methods","Map","values","splice","Event","bubbles","autosize","x","lnHeightStr","computedStyle","lnHeight","_lnHeightStyle","_node","innerHTML","toUpperCase","setAttribute","fontSizeStr","fontSize","padding","border","body","appendChild","removeChild","prop","currentStyle","word","letter"],"mappings":";;;;CAAA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,UACR,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,SAAUJ,GACQ,gBAAZC,SACdA,QAAqB,YAAID,EAAQG,QAAQ,UAEzCJ,EAAkB,YAAIC,EAAQD,EAAY,QACzCO,KAAM,SAASC,GAClB,M,aCNE,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUR,OAGnC,IAAIC,GAASQ,EAAiBD,IAC7BE,EAAGF,EACHG,GAAG,EACHX,WAUD,OANAY,GAAQJ,GAAUK,KAAKZ,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOU,GAAI,EAGJV,EAAOD,QAvBf,GAAIS,KA4DJ,OAhCAF,GAAoBO,EAAIF,EAGxBL,EAAoBQ,EAAIN,EAGxBF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root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"inputSelect\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"inputSelect\"] = factory(root[\"React\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap a962473df5784dbb8abd","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"inputSelect\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"inputSelect\"] = factory(root[\"React\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 1);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(2);\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectInput; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_autosize_textarea__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_autosize_textarea___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_autosize_textarea__);\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n\n\n\n\nfunction escapeRegExp(string) {\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n var reHasRegExpChar = RegExp(reRegExpChar.source);\n return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, '\\\\$&') : string || '';\n}\n\nvar SelectInput = function (_Component) {\n _inherits(SelectInput, _Component);\n\n function SelectInput() {\n _classCallCheck(this, SelectInput);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this));\n\n _this.renderOptions = function (options) {\n return options && options.length > 0 ? options.map(function (option, index) {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n 'div',\n {\n className: 'ris-option' + (_this.state.selectedOption === option[_this.props.valueKey] ? ' selected' : '') + (_this.state.currentOption === index ? ' current' : ''),\n key: _this.props.uniqueKey + '-option-' + index,\n onClick: _this.handleClick.bind(_this, index),\n ref: function ref(_ref) {\n return _this['option-' + option[_this.props.valueKey]] = _ref;\n }\n },\n option[_this.props.labelKey]\n );\n }) : null;\n };\n\n _this.handleSelect = function (option, index) {\n var state = _this.manipState(_this.state, 'value', option[_this.props.labelKey]);\n state = _this.manipState(state, 'selectedOption', option[_this.props.valueKey]);\n state = _this.manipState(state, 'currentOption', -1);\n if (_this.props.collapseOnSelect) state = _this.setIsOpen(state, false);\n state = _this.manipState(state, 'searchMatchOptions', _this.matchingOptions(_this.props.options, state.value));\n _this.setState(state);\n\n if (_this.isFunction(_this.props.onSelect)) _this.props.onSelect(option);\n };\n\n _this.handleClick = function (index, event) {\n var option = _this.pickOption(index);\n _this.handleSelect(option, index);\n };\n\n _this.handleChange = function (event) {\n var state = _this.manipState(_this.state, 'value', event.target.value);\n state = _this.manipState(state, 'searchMatchOptions', _this.matchingOptions(_this.props.options, event.target.value));\n state = _this.setIsOpen(state, true);\n\n if (!state.value) {\n state = _this.manipState(state, 'currentOption', -1);\n state = _this.manipState(state, 'selectedOption', null);\n }\n\n if (_this.isFunction(_this.props.onChange)) _this.props.onChange(event);\n\n _this.setState(state);\n };\n\n _this.handleFocus = function (event) {\n var state = _this.setIsOpen(_this.state, true);\n state = _this.manipState(state, 'searchMatchOptions', _this.matchingOptions(_this.props.options, event.target.value));\n _this.setState(state);\n\n if (_this.isFunction(_this.props.onFocus)) _this.props.onFocus(event);\n };\n\n _this.handleClear = function () {\n var value = '';\n var state = _this.manipState(_this.state, 'value', value);\n state = _this.manipState(state, 'searchMatchOptions', _this.matchingOptions(_this.props.options, state.value));\n state = _this.manipState(state, 'currentOption', -1);\n state = _this.manipState(state, 'selectedOption', null);\n _this.setState(state);\n\n if (_this.isFunction(_this.props.onClear)) _this.props.onClear();\n };\n\n _this.handleBlur = function (event) {\n if (_this.props.collapseOnBlur) {\n var state = _this.setIsOpen(_this.state, false);\n _this.setState(state);\n }\n\n if (_this.isFunction(_this.props.onBlur)) _this.props.onBlur(event);\n };\n\n _this.handleKeyUp = function (event) {\n if (event.key === 'Enter' && _this.state.currentOption > -1) {\n _this.handleSelect(_this.pickOption());\n } else if (event.key === 'Enter' && _this.state.currentOption === -1) {\n _this.handleSelect(_this.pickOption());\n }\n\n if (event.key === 'Escape' && _this.props.collapseOnEscape) {\n _this.setState(_this.setIsOpen(_this.state, false));\n }\n\n if (_this.isFunction(_this.props.onKeyUp)) _this.props.onKeyUp(event);\n };\n\n _this.handleKeyDown = function (event) {\n if (event.key === 'Enter' && _this.props.disableEnter) event.preventDefault();\n\n if (event.key === 'Escape' && _this.props.collapseOnEscape) {\n var state = _this.setIsOpen(_this.state, false);\n _this.setState(state);\n }\n\n _this.handleOptionNavigation(event);\n\n if (_this.isFunction(_this.props.onKeyDown)) _this.props.onKeyDown(event);\n };\n\n _this.handleOptionNavigation = function (event) {\n var state = {};\n var currentOption = _this.state.currentOption;\n\n if (event.key === 'ArrowUp' || event.key === 'ArrowDown' && _this.disableEnter) event.preventDefault();\n\n if (event.key === 'ArrowUp' && currentOption === -1 && _this.props.openUp) currentOption = _this.state.searchMatchOptions.length;\n\n if (_this.props.openUp) {\n if (event.key === 'ArrowDown') {\n if (currentOption > -1) currentOption++;else currentOption = -1;\n } else if (event.key === 'ArrowUp') currentOption--;\n } else {\n if (event.key === 'ArrowDown') currentOption++;else if (event.key === 'ArrowUp') currentOption--;\n }\n\n if (currentOption < -1) currentOption = -1;else if (currentOption > _this.state.searchMatchOptions.length - 1 && !_this.props.openUp) currentOption = _this.state.searchMatchOptions.length - 1;else if (currentOption > _this.state.searchMatchOptions.length - 1 && _this.props.openUp) currentOption = -1;\n\n state = _this.manipState(_this.state, 'currentOption', currentOption);\n var optionRef = currentOption > -1 ? _this['option-' + _this.state.searchMatchOptions[currentOption][_this.props.valueKey]] : null;\n if (optionRef) optionRef.scrollIntoViewIfNeeded(false);\n\n _this.setState(state);\n };\n\n _this.matchingOptions = function (options, value) {\n value = escapeRegExp(value);\n var searchValue = value.replace(/\\s/g, '');\n var searchOptions = [];\n\n if (options && options.length > 0 && value) searchOptions = options.filter(function (option, index) {\n var regexp = new RegExp(searchValue, 'gi');\n var value = option[_this.props.valueKey] || '';\n var label = option[_this.props.labelKey] || '';\n return regexp.test(label.replace(/\\s/g, '')) || regexp.test(value.replace(/\\s/g, ''));\n });else searchOptions = options.slice(0, options.length);\n\n if (_this.props.openUp) searchOptions.reverse();\n\n return searchOptions;\n };\n\n _this.pickOption = function (index) {\n var _ref2;\n\n index = index !== null && index !== undefined ? index : _this.state.currentOption;\n if (index > -1) return _this.state.searchMatchOptions[index];else return _ref2 = {}, _ref2[_this.props.labelKey] = _this.input.value.trim(), _ref2[_this.props.valueKey] = _this.input.value.trim(), _ref2;\n };\n\n _this.setIsOpen = function (state, show) {\n return Object.assign({}, state, {\n isOpen: show || false\n });\n };\n\n _this.manipState = function (state, key, value) {\n var _Object$assign;\n\n return Object.assign({}, state, (_Object$assign = {}, _Object$assign[key] = value, _Object$assign));\n };\n\n _this.isFunction = function (obj) {\n return typeof obj === 'function';\n };\n\n _this.handleOutsideClick = function (event) {\n if (!_this.ris.contains(event.target) && _this.props.collapseOnBlur) _this.setState(_this.setIsOpen(_this.state, false));\n };\n\n _this.state = {\n isOpen: false,\n value: null,\n currentOption: -1,\n selectedOption: null,\n searchMatchOptions: []\n };\n return _this;\n }\n\n SelectInput.prototype.componentDidMount = function componentDidMount() {\n document.addEventListener('click', this.handleOutsideClick);\n };\n\n SelectInput.prototype.componentDidUpdate = function componentDidUpdate() {\n if (this.props.openUp && this.state.currentOption === -1 && this.state.isOpen && !this.state.selectedOption) {\n this.options.scrollTop = this.options.scrollHeight;\n } else if (this.props.openUp && this.state.selectedOption && this.state.isOpen) {\n this['option-' + this.state.selectedOption].scrollIntoViewIfNeeded(true);\n }\n };\n\n SelectInput.prototype.componentWillUnmount = function componentWillUnmount() {\n document.removeEventListener('click', this.handleOutsideClick);\n };\n\n /*\r\n Various renderers\r\n */\n\n /*\r\n Handle different events\r\n */\n\n /*\r\n Searching function\r\n */\n\n /*\r\n Various helpers\r\n */\n\n SelectInput.prototype.render = function render() {\n var _this2 = this;\n\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n 'div',\n {\n className: 'ris' + (this.props.openUp ? ' ris-open-up' : '') + (this.props.clearable ? ' ris-is-clearable' : '') + (this.props.className ? ' ' + this.props.className : ''),\n key: 'ris-' + this.props.uniqueKey,\n ref: function ref(_ref4) {\n return _this2.ris = _ref4;\n },\n style: this.props.style\n },\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_react_autosize_textarea___default.a, {\n className: 'ris-input',\n value: this.state.value !== null ? this.state.value : this.props.value,\n placeholder: this.props.placeholder,\n onChange: this.handleChange,\n onFocus: this.handleFocus,\n onBlur: this.props.onBlur,\n onKeyUp: this.handleKeyUp,\n onKeyDown: this.handleKeyDown,\n autoFocus: this.props.autoFocus,\n innerRef: function innerRef(ref) {\n return _this2.input = ref;\n }\n }),\n this.props.clearable ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n 'div',\n { className: 'ris-clearable', onClick: this.handleClear },\n 'x'\n ) : null,\n this.state.isOpen ? this.state.searchMatchOptions.length > 0 ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n 'div',\n { className: 'ris-options', ref: function ref(_ref3) {\n return _this2.options = _ref3;\n } },\n this.renderOptions(this.state.searchMatchOptions)\n ) : this.props.noOptions ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n 'div',\n { className: 'ris-options ris-no-options' },\n this.props.noOptions\n ) : null : null\n );\n };\n\n return SelectInput;\n}(__WEBPACK_IMPORTED_MODULE_0_react__[\"Component\"]);\n\n\n\n\nSelectInput.defaultProps = {\n uniqueKey: 'react-select-input', //String\n style: null, //Object\n ref: null, //Function\n value: '', //String\n valueKey: 'value', //String\n labelKey: 'label', //String\n placeholder: 'Enter text', //String\n className: '', //String\n openUp: false, //Boolean\n disableEnter: true, //Boolean\n collapseOnBlur: true, //Boolean\n collapseOnEscape: true, //Boolean\n collapseOnSelect: true, //Boolean\n autoFocus: true, //Boolean\n clearable: true, //Boolean\n options: [], //Array\n onChange: undefined, //Function\n onSelect: undefined, //Function\n onFocus: undefined, //Function\n onBlur: undefined, //Function\n onKeyUp: undefined, //Function\n onKeyDown: undefined, //Function\n onClear: undefined, //Function\n noOptions: undefined //JSX\n};\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _TextareaAutosize = __webpack_require__(4);\n\nvar _TextareaAutosize2 = _interopRequireDefault(_TextareaAutosize);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _TextareaAutosize2.default;\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp2;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(5);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _autosize = __webpack_require__(8);\n\nvar _autosize2 = _interopRequireDefault(_autosize);\n\nvar _lineHeight = __webpack_require__(9);\n\nvar _lineHeight2 = _interopRequireDefault(_lineHeight);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar UPDATE = 'autosize:update',\n DESTROY = 'autosize:destroy',\n RESIZED = 'autosize:resized';\n\n/** A light replacement for built-in textarea component\n * which automaticaly adjusts its height to match the content\n * @param onResize - called whenever the textarea resizes\n * @param rows - minimum number of visible rows\n * @param maxRows - maximum number of visible rows\n * @param innerRef - called with the ref to the DOM node\n */\nvar TextareaAutosize = (_temp2 = _class = function (_React$Component) {\n _inherits(TextareaAutosize, _React$Component);\n\n function TextareaAutosize() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, TextareaAutosize);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TextareaAutosize.__proto__ || Object.getPrototypeOf(TextareaAutosize)).call.apply(_ref, [this].concat(args))), _this), _this.state = {\n lineHeight: null\n }, _this.dispatchEvent = function (EVENT_TYPE) {\n var event = document.createEvent('Event');\n event.initEvent(EVENT_TYPE, true, false);\n\n _this.textarea.dispatchEvent(event);\n }, _this.getValue = function (_ref2) {\n var valueLink = _ref2.valueLink,\n value = _ref2.value;\n return valueLink ? valueLink.value : value;\n }, _this.updateLineHeight = function () {\n _this.setState({\n lineHeight: (0, _lineHeight2.default)(_this.textarea)\n });\n }, _this.onChange = function (e) {\n _this.currentValue = e.target.value;\n _this.props.onChange && _this.props.onChange(e);\n }, _this.saveDOMNodeRef = function (ref) {\n var innerRef = _this.props.innerRef;\n\n\n if (innerRef) {\n innerRef(ref);\n }\n\n _this.textarea = ref;\n }, _this.getLocals = function () {\n var _this2 = _this,\n _this2$props = _this2.props,\n onResize = _this2$props.onResize,\n maxRows = _this2$props.maxRows,\n onChange = _this2$props.onChange,\n style = _this2$props.style,\n innerRef = _this2$props.innerRef,\n props = _objectWithoutProperties(_this2$props, ['onResize', 'maxRows', 'onChange', 'style', 'innerRef']),\n lineHeight = _this2.state.lineHeight,\n saveDOMNodeRef = _this2.saveDOMNodeRef;\n\n var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null;\n\n return _extends({}, props, {\n saveDOMNodeRef: saveDOMNodeRef,\n style: maxHeight ? _extends({}, style, { maxHeight: maxHeight }) : style,\n onChange: _this.onChange\n });\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(TextareaAutosize, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this3 = this;\n\n var _props = this.props,\n onResize = _props.onResize,\n maxRows = _props.maxRows;\n\n\n if (typeof maxRows === 'number') {\n this.updateLineHeight();\n\n // this trick is needed to force \"autosize\" to activate the scrollbar\n setTimeout(function () {\n return (0, _autosize2.default)(_this3.textarea);\n });\n } else {\n (0, _autosize2.default)(this.textarea);\n }\n\n if (onResize) {\n this.textarea.addEventListener(RESIZED, this.props.onResize);\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.props.onResize) {\n this.textarea.removeEventListener(RESIZED, this.props.onResize);\n }\n this.dispatchEvent(DESTROY);\n }\n }, {\n key: 'render',\n value: function render() {\n var _getLocals = this.getLocals(),\n children = _getLocals.children,\n saveDOMNodeRef = _getLocals.saveDOMNodeRef,\n locals = _objectWithoutProperties(_getLocals, ['children', 'saveDOMNodeRef']);\n\n return _react2.default.createElement(\n 'textarea',\n _extends({}, locals, { ref: saveDOMNodeRef }),\n children\n );\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.getValue(this.props) !== this.currentValue) {\n this.dispatchEvent(UPDATE);\n }\n }\n }]);\n\n return TextareaAutosize;\n}(_react2.default.Component), _class.defaultProps = {\n rows: 1\n}, _temp2);\nexports.default = TextareaAutosize;\n\n\nTextareaAutosize.propTypes = {\n rows: _propTypes2.default.number,\n maxRows: _propTypes2.default.number,\n onResize: _propTypes2.default.func,\n innerRef: _propTypes2.default.func\n};\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (false) {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = __webpack_require__(6)();\n}\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactPropTypesSecret = __webpack_require__(7);\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\tAutosize 3.0.21\n\tlicense: MIT\n\thttp://www.jacklmoore.com/autosize\n*/\n(function (global, factory) {\n\tif (true) {\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, module], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {\n\t\tfactory(exports, module);\n\t} else {\n\t\tvar mod = {\n\t\t\texports: {}\n\t\t};\n\t\tfactory(mod.exports, mod);\n\t\tglobal.autosize = mod.exports;\n\t}\n})(this, function (exports, module) {\n\t'use strict';\n\n\tvar map = typeof Map === \"function\" ? new Map() : (function () {\n\t\tvar keys = [];\n\t\tvar values = [];\n\n\t\treturn {\n\t\t\thas: function has(key) {\n\t\t\t\treturn keys.indexOf(key) > -1;\n\t\t\t},\n\t\t\tget: function get(key) {\n\t\t\t\treturn values[keys.indexOf(key)];\n\t\t\t},\n\t\t\tset: function set(key, value) {\n\t\t\t\tif (keys.indexOf(key) === -1) {\n\t\t\t\t\tkeys.push(key);\n\t\t\t\t\tvalues.push(value);\n\t\t\t\t}\n\t\t\t},\n\t\t\t'delete': function _delete(key) {\n\t\t\t\tvar index = keys.indexOf(key);\n\t\t\t\tif (index > -1) {\n\t\t\t\t\tkeys.splice(index, 1);\n\t\t\t\t\tvalues.splice(index, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t})();\n\n\tvar createEvent = function createEvent(name) {\n\t\treturn new Event(name, { bubbles: true });\n\t};\n\ttry {\n\t\tnew Event('test');\n\t} catch (e) {\n\t\t// IE does not support `new Event()`\n\t\tcreateEvent = function (name) {\n\t\t\tvar evt = document.createEvent('Event');\n\t\t\tevt.initEvent(name, true, false);\n\t\t\treturn evt;\n\t\t};\n\t}\n\n\tfunction assign(ta) {\n\t\tif (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return;\n\n\t\tvar heightOffset = null;\n\t\tvar clientWidth = ta.clientWidth;\n\t\tvar cachedHeight = null;\n\n\t\tfunction init() {\n\t\t\tvar style = window.getComputedStyle(ta, null);\n\n\t\t\tif (style.resize === 'vertical') {\n\t\t\t\tta.style.resize = 'none';\n\t\t\t} else if (style.resize === 'both') {\n\t\t\t\tta.style.resize = 'horizontal';\n\t\t\t}\n\n\t\t\tif (style.boxSizing === 'content-box') {\n\t\t\t\theightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n\t\t\t} else {\n\t\t\t\theightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n\t\t\t}\n\t\t\t// Fix when a textarea is not on document body and heightOffset is Not a Number\n\t\t\tif (isNaN(heightOffset)) {\n\t\t\t\theightOffset = 0;\n\t\t\t}\n\n\t\t\tupdate();\n\t\t}\n\n\t\tfunction changeOverflow(value) {\n\t\t\t{\n\t\t\t\t// Chrome/Safari-specific fix:\n\t\t\t\t// When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space\n\t\t\t\t// made available by removing the scrollbar. The following forces the necessary text reflow.\n\t\t\t\tvar width = ta.style.width;\n\t\t\t\tta.style.width = '0px';\n\t\t\t\t// Force reflow:\n\t\t\t\t/* jshint ignore:start */\n\t\t\t\tta.offsetWidth;\n\t\t\t\t/* jshint ignore:end */\n\t\t\t\tta.style.width = width;\n\t\t\t}\n\n\t\t\tta.style.overflowY = value;\n\t\t}\n\n\t\tfunction getParentOverflows(el) {\n\t\t\tvar arr = [];\n\n\t\t\twhile (el && el.parentNode && el.parentNode instanceof Element) {\n\t\t\t\tif (el.parentNode.scrollTop) {\n\t\t\t\t\tarr.push({\n\t\t\t\t\t\tnode: el.parentNode,\n\t\t\t\t\t\tscrollTop: el.parentNode.scrollTop\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tel = el.parentNode;\n\t\t\t}\n\n\t\t\treturn arr;\n\t\t}\n\n\t\tfunction resize() {\n\t\t\tvar originalHeight = ta.style.height;\n\t\t\tvar overflows = getParentOverflows(ta);\n\t\t\tvar docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240)\n\n\t\t\tta.style.height = 'auto';\n\n\t\t\tvar endHeight = ta.scrollHeight + heightOffset;\n\n\t\t\tif (ta.scrollHeight === 0) {\n\t\t\t\t// If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM.\n\t\t\t\tta.style.height = originalHeight;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tta.style.height = endHeight + 'px';\n\n\t\t\t// used to check if an update is actually necessary on window.resize\n\t\t\tclientWidth = ta.clientWidth;\n\n\t\t\t// prevents scroll-position jumping\n\t\t\toverflows.forEach(function (el) {\n\t\t\t\tel.node.scrollTop = el.scrollTop;\n\t\t\t});\n\n\t\t\tif (docTop) {\n\t\t\t\tdocument.documentElement.scrollTop = docTop;\n\t\t\t}\n\t\t}\n\n\t\tfunction update() {\n\t\t\tresize();\n\n\t\t\tvar styleHeight = Math.round(parseFloat(ta.style.height));\n\t\t\tvar computed = window.getComputedStyle(ta, null);\n\n\t\t\t// Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box\n\t\t\tvar actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight;\n\n\t\t\t// The actual height not matching the style height (set via the resize method) indicates that\n\t\t\t// the max-height has been exceeded, in which case the overflow should be allowed.\n\t\t\tif (actualHeight !== styleHeight) {\n\t\t\t\tif (computed.overflowY === 'hidden') {\n\t\t\t\t\tchangeOverflow('scroll');\n\t\t\t\t\tresize();\n\t\t\t\t\tactualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands.\n\t\t\t\tif (computed.overflowY !== 'hidden') {\n\t\t\t\t\tchangeOverflow('hidden');\n\t\t\t\t\tresize();\n\t\t\t\t\tactualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (cachedHeight !== actualHeight) {\n\t\t\t\tcachedHeight = actualHeight;\n\t\t\t\tvar evt = createEvent('autosize:resized');\n\t\t\t\ttry {\n\t\t\t\t\tta.dispatchEvent(evt);\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Firefox will throw an error on dispatchEvent for a detached element\n\t\t\t\t\t// https://bugzilla.mozilla.org/show_bug.cgi?id=889376\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tvar pageResize = function pageResize() {\n\t\t\tif (ta.clientWidth !== clientWidth) {\n\t\t\t\tupdate();\n\t\t\t}\n\t\t};\n\n\t\tvar destroy = (function (style) {\n\t\t\twindow.removeEventListener('resize', pageResize, false);\n\t\t\tta.removeEventListener('input', update, false);\n\t\t\tta.removeEventListener('keyup', update, false);\n\t\t\tta.removeEventListener('autosize:destroy', destroy, false);\n\t\t\tta.removeEventListener('autosize:update', update, false);\n\n\t\t\tObject.keys(style).forEach(function (key) {\n\t\t\t\tta.style[key] = style[key];\n\t\t\t});\n\n\t\t\tmap['delete'](ta);\n\t\t}).bind(ta, {\n\t\t\theight: ta.style.height,\n\t\t\tresize: ta.style.resize,\n\t\t\toverflowY: ta.style.overflowY,\n\t\t\toverflowX: ta.style.overflowX,\n\t\t\twordWrap: ta.style.wordWrap\n\t\t});\n\n\t\tta.addEventListener('autosize:destroy', destroy, false);\n\n\t\t// IE9 does not fire onpropertychange or oninput for deletions,\n\t\t// so binding to onkeyup to catch most of those events.\n\t\t// There is no way that I know of to detect something like 'cut' in IE9.\n\t\tif ('onpropertychange' in ta && 'oninput' in ta) {\n\t\t\tta.addEventListener('keyup', update, false);\n\t\t}\n\n\t\twindow.addEventListener('resize', pageResize, false);\n\t\tta.addEventListener('input', update, false);\n\t\tta.addEventListener('autosize:update', update, false);\n\t\tta.style.overflowX = 'hidden';\n\t\tta.style.wordWrap = 'break-word';\n\n\t\tmap.set(ta, {\n\t\t\tdestroy: destroy,\n\t\t\tupdate: update\n\t\t});\n\n\t\tinit();\n\t}\n\n\tfunction destroy(ta) {\n\t\tvar methods = map.get(ta);\n\t\tif (methods) {\n\t\t\tmethods.destroy();\n\t\t}\n\t}\n\n\tfunction update(ta) {\n\t\tvar methods = map.get(ta);\n\t\tif (methods) {\n\t\t\tmethods.update();\n\t\t}\n\t}\n\n\tvar autosize = null;\n\n\t// Do nothing in Node.js environment and IE8 (or lower)\n\tif (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') {\n\t\tautosize = function (el) {\n\t\t\treturn el;\n\t\t};\n\t\tautosize.destroy = function (el) {\n\t\t\treturn el;\n\t\t};\n\t\tautosize.update = function (el) {\n\t\t\treturn el;\n\t\t};\n\t} else {\n\t\tautosize = function (el, options) {\n\t\t\tif (el) {\n\t\t\t\tArray.prototype.forEach.call(el.length ? el : [el], function (x) {\n\t\t\t\t\treturn assign(x, options);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn el;\n\t\t};\n\t\tautosize.destroy = function (el) {\n\t\t\tif (el) {\n\t\t\t\tArray.prototype.forEach.call(el.length ? el : [el], destroy);\n\t\t\t}\n\t\t\treturn el;\n\t\t};\n\t\tautosize.update = function (el) {\n\t\t\tif (el) {\n\t\t\t\tArray.prototype.forEach.call(el.length ? el : [el], update);\n\t\t\t}\n\t\t\treturn el;\n\t\t};\n\t}\n\n\tmodule.exports = autosize;\n});\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Load in dependencies\nvar computedStyle = __webpack_require__(10);\n\n/**\n * Calculate the `line-height` of a given node\n * @param {HTMLElement} node Element to calculate line height of. Must be in the DOM.\n * @returns {Number} `line-height` of the element in pixels\n */\nfunction lineHeight(node) {\n // Grab the line-height via style\n var lnHeightStr = computedStyle(node, 'line-height');\n var lnHeight = parseFloat(lnHeightStr, 10);\n\n // If the lineHeight did not contain a unit (i.e. it was numeric), convert it to ems (e.g. '2.3' === '2.3em')\n if (lnHeightStr === lnHeight + '') {\n // Save the old lineHeight style and update the em unit to the element\n var _lnHeightStyle = node.style.lineHeight;\n node.style.lineHeight = lnHeightStr + 'em';\n\n // Calculate the em based height\n lnHeightStr = computedStyle(node, 'line-height');\n lnHeight = parseFloat(lnHeightStr, 10);\n\n // Revert the lineHeight style\n if (_lnHeightStyle) {\n node.style.lineHeight = _lnHeightStyle;\n } else {\n delete node.style.lineHeight;\n }\n }\n\n // If the lineHeight is in `pt`, convert it to pixels (4px for 3pt)\n // DEV: `em` units are converted to `pt` in IE6\n // Conversion ratio from https://developer.mozilla.org/en-US/docs/Web/CSS/length\n if (lnHeightStr.indexOf('pt') !== -1) {\n lnHeight *= 4;\n lnHeight /= 3;\n // Otherwise, if the lineHeight is in `mm`, convert it to pixels (96px for 25.4mm)\n } else if (lnHeightStr.indexOf('mm') !== -1) {\n lnHeight *= 96;\n lnHeight /= 25.4;\n // Otherwise, if the lineHeight is in `cm`, convert it to pixels (96px for 2.54cm)\n } else if (lnHeightStr.indexOf('cm') !== -1) {\n lnHeight *= 96;\n lnHeight /= 2.54;\n // Otherwise, if the lineHeight is in `in`, convert it to pixels (96px for 1in)\n } else if (lnHeightStr.indexOf('in') !== -1) {\n lnHeight *= 96;\n // Otherwise, if the lineHeight is in `pc`, convert it to pixels (12pt for 1pc)\n } else if (lnHeightStr.indexOf('pc') !== -1) {\n lnHeight *= 16;\n }\n\n // Continue our computation\n lnHeight = Math.round(lnHeight);\n\n // If the line-height is \"normal\", calculate by font-size\n if (lnHeightStr === 'normal') {\n // Create a temporary node\n var nodeName = node.nodeName;\n var _node = document.createElement(nodeName);\n _node.innerHTML = ' ';\n\n // If we have a text area, reset it to only 1 row\n // https://github.com/twolfson/line-height/issues/4\n if (nodeName.toUpperCase() === 'TEXTAREA') {\n _node.setAttribute('rows', '1');\n }\n\n // Set the font-size of the element\n var fontSizeStr = computedStyle(node, 'font-size');\n _node.style.fontSize = fontSizeStr;\n\n // Remove default padding/border which can affect offset height\n // https://github.com/twolfson/line-height/issues/4\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight\n _node.style.padding = '0px';\n _node.style.border = '0px';\n\n // Append it to the body\n var body = document.body;\n body.appendChild(_node);\n\n // Assume the line height of the element is the height\n var height = _node.offsetHeight;\n lnHeight = height;\n\n // Remove our child from the DOM\n body.removeChild(_node);\n }\n\n // Return the calculated height\n return lnHeight;\n}\n\n// Export lineHeight\nmodule.exports = lineHeight;\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports) {\n\n// This code has been refactored for 140 bytes\n// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js\nvar computedStyle = function (el, prop, getComputedStyle) {\n getComputedStyle = window.getComputedStyle;\n\n // In one fell swoop\n return (\n // If we have getComputedStyle\n getComputedStyle ?\n // Query it\n // TODO: From CSS-Query notes, we might need (node, null) for FF\n getComputedStyle(el) :\n\n // Otherwise, we are in IE and use currentStyle\n el.currentStyle\n )[\n // Switch to camelCase for CSSOM\n // DEV: Grabbed from jQuery\n // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194\n // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597\n prop.replace(/-(\\w)/gi, function (word, letter) {\n return letter.toUpperCase();\n })\n ];\n};\n\nmodule.exports = computedStyle;\n\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// react-select-input.min.js","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 0\n// module chunks = 0","import React, { Component } from 'react';\r\n\r\nimport Textarea from 'react-autosize-textarea';\r\n\r\nfunction escapeRegExp(string) {\r\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g\r\n var reHasRegExpChar = RegExp(reRegExpChar.source)\r\n return (string && reHasRegExpChar.test(string))\r\n ? string.replace(reRegExpChar, '\\\\$&')\r\n : (string || '')\r\n}\r\n\r\nexport default class SelectInput extends Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n isOpen: false,\r\n value: null,\r\n currentOption: -1,\r\n selectedOption: null,\r\n searchMatchOptions: []\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n document.addEventListener('click', this.handleOutsideClick);\r\n }\r\n\r\n componentDidUpdate() {\r\n if (\r\n this.props.openUp &&\r\n this.state.currentOption === -1 &&\r\n this.state.isOpen &&\r\n !this.state.selectedOption\r\n ) {\r\n this.options.scrollTop = this.options.scrollHeight;\r\n } else if (\r\n this.props.openUp &&\r\n this.state.selectedOption &&\r\n this.state.isOpen\r\n ) {\r\n this['option-' + this.state.selectedOption].scrollIntoViewIfNeeded(true);\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n document.removeEventListener('click', this.handleOutsideClick);\r\n }\r\n\r\n /*\r\n Various renderers\r\n */\r\n\r\n renderOptions = options => {\r\n return options && options.length > 0\r\n ? options.map((option, index) => {\r\n return (\r\n <div\r\n className={\r\n 'ris-option' +\r\n (this.state.selectedOption === option[this.props.valueKey]\r\n ? ' selected'\r\n : '') +\r\n (this.state.currentOption === index ? ' current' : '')\r\n }\r\n key={`${this.props.uniqueKey}-option-${index}`}\r\n onClick={this.handleClick.bind(this, index)}\r\n ref={ref => (this['option-' + option[this.props.valueKey]] = ref)}\r\n >\r\n {option[this.props.labelKey]}\r\n </div>\r\n );\r\n })\r\n : null;\r\n };\r\n\r\n /*\r\n Handle different events\r\n */\r\n\r\n handleSelect = (option, index) => {\r\n let state = this.manipState(\r\n this.state,\r\n 'value',\r\n option[this.props.labelKey]\r\n );\r\n state = this.manipState(\r\n state,\r\n 'selectedOption',\r\n option[this.props.valueKey]\r\n );\r\n state = this.manipState(state, 'currentOption', -1);\r\n if (this.props.collapseOnSelect) state = this.setIsOpen(state, false);\r\n state = this.manipState(\r\n state,\r\n 'searchMatchOptions',\r\n this.matchingOptions(this.props.options, state.value)\r\n );\r\n this.setState(state);\r\n\r\n if (this.isFunction(this.props.onSelect)) this.props.onSelect(option);\r\n };\r\n\r\n handleClick = (index, event) => {\r\n let option = this.pickOption(index);\r\n this.handleSelect(option, index);\r\n };\r\n\r\n handleChange = event => {\r\n let state = this.manipState(this.state, 'value', event.target.value);\r\n state = this.manipState(\r\n state,\r\n 'searchMatchOptions',\r\n this.matchingOptions(this.props.options, event.target.value)\r\n );\r\n state = this.setIsOpen(state, true);\r\n\r\n if (!state.value) {\r\n state = this.manipState(state, 'currentOption', -1);\r\n state = this.manipState(state, 'selectedOption', null);\r\n }\r\n\r\n if (this.isFunction(this.props.onChange)) this.props.onChange(event);\r\n\r\n this.setState(state);\r\n };\r\n\r\n handleFocus = event => {\r\n let state = this.setIsOpen(this.state, true);\r\n state = this.manipState(\r\n state,\r\n 'searchMatchOptions',\r\n this.matchingOptions(this.props.options, event.target.value)\r\n );\r\n this.setState(state);\r\n\r\n if (this.isFunction(this.props.onFocus)) this.props.onFocus(event);\r\n };\r\n\r\n handleClear = () => {\r\n let value = '';\r\n let state = this.manipState(this.state, 'value', value);\r\n state = this.manipState(\r\n state,\r\n 'searchMatchOptions',\r\n this.matchingOptions(this.props.options, state.value)\r\n );\r\n state = this.manipState(state, 'currentOption', -1);\r\n state = this.manipState(state, 'selectedOption', null);\r\n this.setState(state);\r\n\r\n if (this.isFunction(this.props.onClear)) this.props.onClear();\r\n };\r\n\r\n handleBlur = event => {\r\n if (this.props.collapseOnBlur) {\r\n let state = this.setIsOpen(this.state, false);\r\n this.setState(state);\r\n }\r\n\r\n if (this.isFunction(this.props.onBlur)) this.props.onBlur(event);\r\n };\r\n\r\n handleKeyUp = event => {\r\n if (event.key === 'Enter' && this.state.currentOption > -1) {\r\n this.handleSelect(this.pickOption());\r\n } else if (event.key === 'Enter' && this.state.currentOption === -1) {\r\n this.handleSelect(this.pickOption());\r\n }\r\n\r\n if (event.key === 'Escape' && this.props.collapseOnEscape) {\r\n this.setState(this.setIsOpen(this.state, false));\r\n }\r\n\r\n if (this.isFunction(this.props.onKeyUp)) this.props.onKeyUp(event);\r\n };\r\n\r\n handleKeyDown = event => {\r\n if (event.key === 'Enter' && this.props.disableEnter)\r\n event.preventDefault();\r\n\r\n if (event.key === 'Escape' && this.props.collapseOnEscape) {\r\n let state = this.setIsOpen(this.state, false);\r\n this.setState(state);\r\n }\r\n\r\n this.handleOptionNavigation(event);\r\n\r\n if (this.isFunction(this.props.onKeyDown)) this.props.onKeyDown(event);\r\n };\r\n\r\n handleOptionNavigation = event => {\r\n let state = {};\r\n let currentOption = this.state.currentOption;\r\n\r\n if (\r\n event.key === 'ArrowUp' ||\r\n (event.key === 'ArrowDown' && this.disableEnter)\r\n )\r\n event.preventDefault();\r\n\r\n if (event.key === 'ArrowUp' && currentOption === -1 && this.props.openUp)\r\n currentOption = this.state.searchMatchOptions.length;\r\n\r\n if (this.props.openUp) {\r\n if (event.key === 'ArrowDown')\r\n if (currentOption > -1) currentOption++;\r\n else currentOption = -1;\r\n else if (event.key === 'ArrowUp') currentOption--;\r\n } else {\r\n if (event.key === 'ArrowDown') currentOption++;\r\n else if (event.key === 'ArrowUp') currentOption--;\r\n }\r\n\r\n if (currentOption < -1) currentOption = -1;\r\n else if (\r\n currentOption > this.state.searchMatchOptions.length - 1 &&\r\n !this.props.openUp\r\n )\r\n currentOption = this.state.searchMatchOptions.length - 1;\r\n else if (\r\n currentOption > this.state.searchMatchOptions.length - 1 &&\r\n this.props.openUp\r\n )\r\n currentOption = -1;\r\n\r\n state = this.manipState(this.state, 'currentOption', currentOption);\r\n let optionRef =\r\n currentOption > -1\r\n ? this[\r\n 'option-' +\r\n this.state.searchMatchOptions[currentOption][this.props.valueKey]\r\n ]\r\n : null;\r\n if (optionRef) optionRef.scrollIntoViewIfNeeded(false);\r\n\r\n this.setState(state);\r\n };\r\n\r\n /*\r\n Searching function\r\n */\r\n\r\n matchingOptions = (options, value) => {\r\n\t value = escapeRegExp(value);\r\n let searchValue = value.replace(/\\s/g, '');\r\n let searchOptions = [];\r\n\r\n if (options && options.length > 0 && value)\r\n searchOptions = options.filter((option, index) => {\r\n let regexp = new RegExp(searchValue, 'gi');\r\n let value = option[this.props.valueKey] || '';\r\n let label = option[this.props.labelKey] || '';\r\n return (\r\n regexp.test(label.replace(/\\s/g, '')) ||\r\n regexp.test(value.replace(/\\s/g, ''))\r\n );\r\n });\r\n else searchOptions = options.slice(0, options.length);\r\n\r\n if (this.props.openUp) searchOptions.reverse();\r\n\r\n return searchOptions;\r\n };\r\n\r\n /*\r\n Various helpers\r\n */\r\n\r\n pickOption = index => {\r\n index =\r\n index !== null && index !== undefined ? index : this.state.currentOption;\r\n if (index > -1) return this.state.searchMatchOptions[index];\r\n else\r\n return {\r\n [this.props.labelKey]: this.input.value.trim(),\r\n [this.props.valueKey]: this.input.value.trim()\r\n };\r\n };\r\n\r\n setIsOpen = (state, show) => {\r\n return Object.assign({}, state, {\r\n isOpen: show || false\r\n });\r\n };\r\n\r\n manipState = (state, key, value) => {\r\n return Object.assign({}, state, {\r\n [key]: value\r\n });\r\n };\r\n\r\n isFunction = obj => {\r\n return typeof obj === 'function';\r\n };\r\n\r\n handleOutsideClick = event => {\r\n if (!this.ris.contains(event.target) && this.props.collapseOnBlur)\r\n this.setState(this.setIsOpen(this.state, false));\r\n };\r\n\r\n render() {\r\n return (\r\n <div\r\n className={\r\n 'ris' +\r\n (this.props.openUp ? ' ris-open-up' : '') +\r\n (this.props.clearable ? ' ris-is-clearable' : '') +\r\n (this.props.className ? ' ' + this.props.className : '')\r\n }\r\n key={'ris-' + this.props.uniqueKey}\r\n ref={ref => (this.ris = ref)}\r\n style={this.props.style}\r\n >\r\n <Textarea\r\n className=\"ris-input\"\r\n value={\r\n this.state.value !== null ? this.state.value : this.props.value\r\n }\r\n placeholder={this.props.placeholder}\r\n onChange={this.handleChange}\r\n onFocus={this.handleFocus}\r\n onBlur={this.props.onBlur}\r\n onKeyUp={this.handleKeyUp}\r\n onKeyDown={this.handleKeyDown}\r\n autoFocus={this.props.autoFocus}\r\n innerRef={ref => (this.input = ref)}\r\n />\r\n {this.props.clearable ? (\r\n <div className=\"ris-clearable\" onClick={this.handleClear}>\r\n x\r\n </div>\r\n ) : null}\r\n {this.state.isOpen ? (\r\n this.state.searchMatchOptions.length > 0 ? (\r\n <div className=\"ris-options\" ref={ref => (this.options = ref)}>\r\n {this.renderOptions(this.state.searchMatchOptions)}\r\n </div>\r\n ) : this.props.noOptions ? (\r\n <div className=\"ris-options ris-no-options\">\r\n {this.props.noOptions}\r\n </div>\r\n ) : null\r\n ) : null}\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nSelectInput.defaultProps = {\r\n uniqueKey: 'react-select-input', //String\r\n style: null, //Object\r\n ref: null, //Function\r\n value: '', //String\r\n valueKey: 'value', //String\r\n labelKey: 'label', //String\r\n placeholder: 'Enter text', //String\r\n className: '', //String\r\n openUp: false, //Boolean\r\n disableEnter: true, //Boolean\r\n collapseOnBlur: true, //Boolean\r\n collapseOnEscape: true, //Boolean\r\n collapseOnSelect: true, //Boolean\r\n autoFocus: true, //Boolean\r\n clearable: true, //Boolean\r\n options: [], //Array\r\n onChange: undefined, //Function\r\n onSelect: undefined, //Function\r\n onFocus: undefined, //Function\r\n onBlur: undefined, //Function\r\n onKeyUp: undefined, //Function\r\n onKeyDown: undefined, //Function\r\n onClear: undefined, //Function\r\n noOptions: undefined //JSX\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _TextareaAutosize = require('./TextareaAutosize.js');\n\nvar _TextareaAutosize2 = _interopRequireDefault(_TextareaAutosize);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _TextareaAutosize2.default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-autosize-textarea/lib/index.js\n// module id = 3\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp2;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _autosize = require('autosize');\n\nvar _autosize2 = _interopRequireDefault(_autosize);\n\nvar _lineHeight = require('line-height');\n\nvar _lineHeight2 = _interopRequireDefault(_lineHeight);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar UPDATE = 'autosize:update',\n DESTROY = 'autosize:destroy',\n RESIZED = 'autosize:resized';\n\n/** A light replacement for built-in textarea component\n * which automaticaly adjusts its height to match the content\n * @param onResize - called whenever the textarea resizes\n * @param rows - minimum number of visible rows\n * @param maxRows - maximum number of visible rows\n * @param innerRef - called with the ref to the DOM node\n */\nvar TextareaAutosize = (_temp2 = _class = function (_React$Component) {\n _inherits(TextareaAutosize, _React$Component);\n\n function TextareaAutosize() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, TextareaAutosize);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TextareaAutosize.__proto__ || Object.getPrototypeOf(TextareaAutosize)).call.apply(_ref, [this].concat(args))), _this), _this.state = {\n lineHeight: null\n }, _this.dispatchEvent = function (EVENT_TYPE) {\n var event = document.createEvent('Event');\n event.initEvent(EVENT_TYPE, true, false);\n\n _this.textarea.dispatchEvent(event);\n }, _this.getValue = function (_ref2) {\n var valueLink = _ref2.valueLink,\n value = _ref2.value;\n return valueLink ? valueLink.value : value;\n }, _this.updateLineHeight = function () {\n _this.setState({\n lineHeight: (0, _lineHeight2.default)(_this.textarea)\n });\n }, _this.onChange = function (e) {\n _this.currentValue = e.target.value;\n _this.props.onChange && _this.props.onChange(e);\n }, _this.saveDOMNodeRef = function (ref) {\n var innerRef = _this.props.innerRef;\n\n\n if (innerRef) {\n innerRef(ref);\n }\n\n _this.textarea = ref;\n }, _this.getLocals = function () {\n var _this2 = _this,\n _this2$props = _this2.props,\n onResize = _this2$props.onResize,\n maxRows = _this2$props.maxRows,\n onChange = _this2$props.onChange,\n style = _this2$props.style,\n innerRef = _this2$props.innerRef,\n props = _objectWithoutProperties(_this2$props, ['onResize', 'maxRows', 'onChange', 'style', 'innerRef']),\n lineHeight = _this2.state.lineHeight,\n saveDOMNodeRef = _this2.saveDOMNodeRef;\n\n var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null;\n\n return _extends({}, props, {\n saveDOMNodeRef: saveDOMNodeRef,\n style: maxHeight ? _extends({}, style, { maxHeight: maxHeight }) : style,\n onChange: _this.onChange\n });\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(TextareaAutosize, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var _this3 = this;\n\n var _props = this.props,\n onResize = _props.onResize,\n maxRows = _props.maxRows;\n\n\n if (typeof maxRows === 'number') {\n this.updateLineHeight();\n\n // this trick is needed to force \"autosize\" to activate the scrollbar\n setTimeout(function () {\n return (0, _autosize2.default)(_this3.textarea);\n });\n } else {\n (0, _autosize2.default)(this.textarea);\n }\n\n if (onResize) {\n this.textarea.addEventListener(RESIZED, this.props.onResize);\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.props.onResize) {\n this.textarea.removeEventListener(RESIZED, this.props.onResize);\n }\n this.dispatchEvent(DESTROY);\n }\n }, {\n key: 'render',\n value: function render() {\n var _getLocals = this.getLocals(),\n children = _getLocals.children,\n saveDOMNodeRef = _getLocals.saveDOMNodeRef,\n locals = _objectWithoutProperties(_getLocals, ['children', 'saveDOMNodeRef']);\n\n return _react2.default.createElement(\n 'textarea',\n _extends({}, locals, { ref: saveDOMNodeRef }),\n children\n );\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.getValue(this.props) !== this.currentValue) {\n this.dispatchEvent(UPDATE);\n }\n }\n }]);\n\n return TextareaAutosize;\n}(_react2.default.Component), _class.defaultProps = {\n rows: 1\n}, _temp2);\nexports.default = TextareaAutosize;\n\n\nTextareaAutosize.propTypes = {\n rows: _propTypes2.default.number,\n maxRows: _propTypes2.default.number,\n onResize: _propTypes2.default.func,\n innerRef: _propTypes2.default.func\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-autosize-textarea/lib/TextareaAutosize.js\n// module id = 4\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/index.js\n// module id = 5\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/factoryWithThrowingShims.js\n// module id = 6\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/lib/ReactPropTypesSecret.js\n// module id = 7\n// module chunks = 0","/*!\n\tAutosize 3.0.21\n\tlicense: MIT\n\thttp://www.jacklmoore.com/autosize\n*/\n(function (global, factory) {\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(['exports', 'module'], factory);\n\t} else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {\n\t\tfactory(exports, module);\n\t} else {\n\t\tvar mod = {\n\t\t\texports: {}\n\t\t};\n\t\tfactory(mod.exports, mod);\n\t\tglobal.autosize = mod.exports;\n\t}\n})(this, function (exports, module) {\n\t'use strict';\n\n\tvar map = typeof Map === \"function\" ? new Map() : (function () {\n\t\tvar keys = [];\n\t\tvar values = [];\n\n\t\treturn {\n\t\t\thas: function has(key) {\n\t\t\t\treturn keys.indexOf(key) > -1;\n\t\t\t},\n\t\t\tget: function get(key) {\n\t\t\t\treturn values[keys.indexOf(key)];\n\t\t\t},\n\t\t\tset: function set(key, value) {\n\t\t\t\tif (keys.indexOf(key) === -1) {\n\t\t\t\t\tkeys.push(key);\n\t\t\t\t\tvalues.push(value);\n\t\t\t\t}\n\t\t\t},\n\t\t\t'delete': function _delete(key) {\n\t\t\t\tvar index = keys.indexOf(key);\n\t\t\t\tif (index > -1) {\n\t\t\t\t\tkeys.splice(index, 1);\n\t\t\t\t\tvalues.splice(index, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t})();\n\n\tvar createEvent = function createEvent(name) {\n\t\treturn new Event(name, { bubbles: true });\n\t};\n\ttry {\n\t\tnew Event('test');\n\t} catch (e) {\n\t\t// IE does not support `new Event()`\n\t\tcreateEvent = function (name) {\n\t\t\tvar evt = document.createEvent('Event');\n\t\t\tevt.initEvent(name, true, false);\n\t\t\treturn evt;\n\t\t};\n\t}\n\n\tfunction assign(ta) {\n\t\tif (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return;\n\n\t\tvar heightOffset = null;\n\t\tvar clientWidth = ta.clientWidth;\n\t\tvar cachedHeight = null;\n\n\t\tfunction init() {\n\t\t\tvar style = window.getComputedStyle(ta, null);\n\n\t\t\tif (style.resize === 'vertical') {\n\t\t\t\tta.style.resize = 'none';\n\t\t\t} else if (style.resize === 'both') {\n\t\t\t\tta.style.resize = 'horizontal';\n\t\t\t}\n\n\t\t\tif (style.boxSizing === 'content-box') {\n\t\t\t\theightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n\t\t\t} else {\n\t\t\t\theightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n\t\t\t}\n\t\t\t// Fix when a textarea is not on document body and heightOffset is Not a Number\n\t\t\tif (isNaN(heightOffset)) {\n\t\t\t\theightOffset = 0;\n\t\t\t}\n\n\t\t\tupdate();\n\t\t}\n\n\t\tfunction changeOverflow(value) {\n\t\t\t{\n\t\t\t\t// Chrome/Safari-specific fix:\n\t\t\t\t// When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space\n\t\t\t\t// made available by removing the scrollbar. The following forces the necessary text reflow.\n\t\t\t\tvar width = ta.style.width;\n\t\t\t\tta.style.width = '0px';\n\t\t\t\t// Force reflow:\n\t\t\t\t/* jshint ignore:start */\n\t\t\t\tta.offsetWidth;\n\t\t\t\t/* jshint ignore:end */\n\t\t\t\tta.style.width = width;\n\t\t\t}\n\n\t\t\tta.style.overflowY = value;\n\t\t}\n\n\t\tfunction getParentOverflows(el) {\n\t\t\tvar arr = [];\n\n\t\t\twhile (el && el.parentNode && el.parentNode instanceof Element) {\n\t\t\t\tif (el.parentNode.scrollTop) {\n\t\t\t\t\tarr.push({\n\t\t\t\t\t\tnode: el.parentNode,\n\t\t\t\t\t\tscrollTop: el.parentNode.scrollTop\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tel = el.parentNode;\n\t\t\t}\n\n\t\t\treturn arr;\n\t\t}\n\n\t\tfunction resize() {\n\t\t\tvar originalHeight = ta.style.height;\n\t\t\tvar overflows = getParentOverflows(ta);\n\t\t\tvar docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240)\n\n\t\t\tta.style.height = 'auto';\n\n\t\t\tvar endHeight = ta.scrollHeight + heightOffset;\n\n\t\t\tif (ta.scrollHeight === 0) {\n\t\t\t\t// If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM.\n\t\t\t\tta.style.height = originalHeight;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tta.style.height = endHeight + 'px';\n\n\t\t\t// used to check if an update is actually necessary on window.resize\n\t\t\tclientWidth = ta.clientWidth;\n\n\t\t\t// prevents scroll-position jumping\n\t\t\toverflows.forEach(function (el) {\n\t\t\t\tel.node.scrollTop = el.scrollTop;\n\t\t\t});\n\n\t\t\tif (docTop) {\n\t\t\t\tdocument.documentElement.scrollTop = docTop;\n\t\t\t}\n\t\t}\n\n\t\tfunction update() {\n\t\t\tresize();\n\n\t\t\tvar styleHeight = Math.round(parseFloat(ta.style.height));\n\t\t\tvar computed = window.getComputedStyle(ta, null);\n\n\t\t\t// Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box\n\t\t\tvar actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight;\n\n\t\t\t// The actual height not matching the style height (set via the resize method) indicates that\n\t\t\t// the max-height has been exceeded, in which case the overflow should be allowed.\n\t\t\tif (actualHeight !== styleHeight) {\n\t\t\t\tif (computed.overflowY === 'hidden') {\n\t\t\t\t\tchangeOverflow('scroll');\n\t\t\t\t\tresize();\n\t\t\t\t\tactualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands.\n\t\t\t\tif (computed.overflowY !== 'hidden') {\n\t\t\t\t\tchangeOverflow('hidden');\n\t\t\t\t\tresize();\n\t\t\t\t\tactualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (cachedHeight !== actualHeight) {\n\t\t\t\tcachedHeight = actualHeight;\n\t\t\t\tvar evt = createEvent('autosize:resized');\n\t\t\t\ttry {\n\t\t\t\t\tta.dispatchEvent(evt);\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Firefox will throw an error on dispatchEvent for a detached element\n\t\t\t\t\t// https://bugzilla.mozilla.org/show_bug.cgi?id=889376\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tvar pageResize = function pageResize() {\n\t\t\tif (ta.clientWidth !== clientWidth) {\n\t\t\t\tupdate();\n\t\t\t}\n\t\t};\n\n\t\tvar destroy = (function (style) {\n\t\t\twindow.removeEventListener('resize', pageResize, false);\n\t\t\tta.removeEventListener('input', update, false);\n\t\t\tta.removeEventListener('keyup', update, false);\n\t\t\tta.removeEventListener('autosize:destroy', destroy, false);\n\t\t\tta.removeEventListener('autosize:update', update, false);\n\n\t\t\tObject.keys(style).forEach(function (key) {\n\t\t\t\tta.style[key] = style[key];\n\t\t\t});\n\n\t\t\tmap['delete'](ta);\n\t\t}).bind(ta, {\n\t\t\theight: ta.style.height,\n\t\t\tresize: ta.style.resize,\n\t\t\toverflowY: ta.style.overflowY,\n\t\t\toverflowX: ta.style.overflowX,\n\t\t\twordWrap: ta.style.wordWrap\n\t\t});\n\n\t\tta.addEventListener('autosize:destroy', destroy, false);\n\n\t\t// IE9 does not fire onpropertychange or oninput for deletions,\n\t\t// so binding to onkeyup to catch most of those events.\n\t\t// There is no way that I know of to detect something like 'cut' in IE9.\n\t\tif ('onpropertychange' in ta && 'oninput' in ta) {\n\t\t\tta.addEventListener('keyup', update, false);\n\t\t}\n\n\t\twindow.addEventListener('resize', pageResize, false);\n\t\tta.addEventListener('input', update, false);\n\t\tta.addEventListener('autosize:update', update, false);\n\t\tta.style.overflowX = 'hidden';\n\t\tta.style.wordWrap = 'break-word';\n\n\t\tmap.set(ta, {\n\t\t\tdestroy: destroy,\n\t\t\tupdate: update\n\t\t});\n\n\t\tinit();\n\t}\n\n\tfunction destroy(ta) {\n\t\tvar methods = map.get(ta);\n\t\tif (methods) {\n\t\t\tmethods.destroy();\n\t\t}\n\t}\n\n\tfunction update(ta) {\n\t\tvar methods = map.get(ta);\n\t\tif (methods) {\n\t\t\tmethods.update();\n\t\t}\n\t}\n\n\tvar autosize = null;\n\n\t// Do nothing in Node.js environment and IE8 (or lower)\n\tif (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') {\n\t\tautosize = function (el) {\n\t\t\treturn el;\n\t\t};\n\t\tautosize.destroy = function (el) {\n\t\t\treturn el;\n\t\t};\n\t\tautosize.update = function (el) {\n\t\t\treturn el;\n\t\t};\n\t} else {\n\t\tautosize = function (el, options) {\n\t\t\tif (el) {\n\t\t\t\tArray.prototype.forEach.call(el.length ? el : [el], function (x) {\n\t\t\t\t\treturn assign(x, options);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn el;\n\t\t};\n\t\tautosize.destroy = function (el) {\n\t\t\tif (el) {\n\t\t\t\tArray.prototype.forEach.call(el.length ? el : [el], destroy);\n\t\t\t}\n\t\t\treturn el;\n\t\t};\n\t\tautosize.update = function (el) {\n\t\t\tif (el) {\n\t\t\t\tArray.prototype.forEach.call(el.length ? el : [el], update);\n\t\t\t}\n\t\t\treturn el;\n\t\t};\n\t}\n\n\tmodule.exports = autosize;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/autosize/dist/autosize.js\n// module id = 8\n// module chunks = 0","// Load in dependencies\nvar computedStyle = require('computed-style');\n\n/**\n * Calculate the `line-height` of a given node\n * @param {HTMLElement} node Element to calculate line height of. Must be in the DOM.\n * @returns {Number} `line-height` of the element in pixels\n */\nfunction lineHeight(node) {\n // Grab the line-height via style\n var lnHeightStr = computedStyle(node, 'line-height');\n var lnHeight = parseFloat(lnHeightStr, 10);\n\n // If the lineHeight did not contain a unit (i.e. it was numeric), convert it to ems (e.g. '2.3' === '2.3em')\n if (lnHeightStr === lnHeight + '') {\n // Save the old lineHeight style and update the em unit to the element\n var _lnHeightStyle = node.style.lineHeight;\n node.style.lineHeight = lnHeightStr + 'em';\n\n // Calculate the em based height\n lnHeightStr = computedStyle(node, 'line-height');\n lnHeight = parseFloat(lnHeightStr, 10);\n\n // Revert the lineHeight style\n if (_lnHeightStyle) {\n node.style.lineHeight = _lnHeightStyle;\n } else {\n delete node.style.lineHeight;\n }\n }\n\n // If the lineHeight is in `pt`, convert it to pixels (4px for 3pt)\n // DEV: `em` units are converted to `pt` in IE6\n // Conversion ratio from https://developer.mozilla.org/en-US/docs/Web/CSS/length\n if (lnHeightStr.indexOf('pt') !== -1) {\n lnHeight *= 4;\n lnHeight /= 3;\n // Otherwise, if the lineHeight is in `mm`, convert it to pixels (96px for 25.4mm)\n } else if (lnHeightStr.indexOf('mm') !== -1) {\n lnHeight *= 96;\n lnHeight /= 25.4;\n // Otherwise, if the lineHeight is in `cm`, convert it to pixels (96px for 2.54cm)\n } else if (lnHeightStr.indexOf('cm') !== -1) {\n lnHeight *= 96;\n lnHeight /= 2.54;\n // Otherwise, if the lineHeight is in `in`, convert it to pixels (96px for 1in)\n } else if (lnHeightStr.indexOf('in') !== -1) {\n lnHeight *= 96;\n // Otherwise, if the lineHeight is in `pc`, convert it to pixels (12pt for 1pc)\n } else if (lnHeightStr.indexOf('pc') !== -1) {\n lnHeight *= 16;\n }\n\n // Continue our computation\n lnHeight = Math.round(lnHeight);\n\n // If the line-height is \"normal\", calculate by font-size\n if (lnHeightStr === 'normal') {\n // Create a temporary node\n var nodeName = node.nodeName;\n var _node = document.createElement(nodeName);\n _node.innerHTML = ' ';\n\n // If we have a text area, reset it to only 1 row\n // https://github.com/twolfson/line-height/issues/4\n if (nodeName.toUpperCase() === 'TEXTAREA') {\n _node.setAttribute('rows', '1');\n }\n\n // Set the font-size of the element\n var fontSizeStr = computedStyle(node, 'font-size');\n _node.style.fontSize = fontSizeStr;\n\n // Remove default padding/border which can affect offset height\n // https://github.com/twolfson/line-height/issues/4\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight\n _node.style.padding = '0px';\n _node.style.border = '0px';\n\n // Append it to the body\n var body = document.body;\n body.appendChild(_node);\n\n // Assume the line height of the element is the height\n var height = _node.offsetHeight;\n lnHeight = height;\n\n // Remove our child from the DOM\n body.removeChild(_node);\n }\n\n // Return the calculated height\n return lnHeight;\n}\n\n// Export lineHeight\nmodule.exports = lineHeight;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/line-height/lib/line-height.js\n// module id = 9\n// module chunks = 0","// This code has been refactored for 140 bytes\n// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js\nvar computedStyle = function (el, prop, getComputedStyle) {\n getComputedStyle = window.getComputedStyle;\n\n // In one fell swoop\n return (\n // If we have getComputedStyle\n getComputedStyle ?\n // Query it\n // TODO: From CSS-Query notes, we might need (node, null) for FF\n getComputedStyle(el) :\n\n // Otherwise, we are in IE and use currentStyle\n el.currentStyle\n )[\n // Switch to camelCase for CSSOM\n // DEV: Grabbed from jQuery\n // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194\n // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597\n prop.replace(/-(\\w)/gi, function (word, letter) {\n return letter.toUpperCase();\n })\n ];\n};\n\nmodule.exports = computedStyle;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/computed-style/dist/computedStyle.commonjs.js\n// module id = 10\n// module chunks = 0"],"sourceRoot":""}
|