text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.AgGridReactComponents=e():t.AgGridReactComponents=e()}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e){t.exports=require("react")},function(t,e,n){"use strict";n.r(e),n.d(e,"RankFilter",(function(){return u})),n.d(e,"setFilterFactory",(function(){return l})),n.d(e,"RankType",(function(){return r}));var r,o=n(0);!function(t){t.Top="top",t.GreaterThan="greaterThan",t.GreaterThanOrEqual="greaterThanOrEqual"}(r||(r={}));var i,a=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e){var n=t.call(this,e)||this;return n.inputRef=o.createRef(),n.state={select:r.Top,input:""},n}return a(e,t),e.prototype.isFilterActive=function(){return this.inputIsNumber()},e.prototype.getModel=function(){if(""!==this.state.input)return{filter:parseFloat(this.state.input),filterType:"rank",type:this.state.select}},e.prototype.setModel=function(t){var e=this;this.setState({select:r.Top,input:""},(function(){e.props.filterChangedCallback()}))},e.prototype.afterGuiAttached=function(){this.inputRef.current.focus()},e.prototype.render=function(){return o.createElement("div",{className:"ag-filter"},o.createElement("div",null,o.createElement("select",{className:"ag-filter-select",onChange:this.onSelectChange.bind(this),value:this.state.select},o.createElement("option",{value:r.Top},"Top"),o.createElement("option",{value:r.GreaterThan},"Greater than"),o.createElement("option",{value:r.GreaterThanOrEqual},"Greater than or equal"))),o.createElement("div",{className:"ag-filter-body"},o.createElement("div",null,o.createElement("input",{ref:this.inputRef,className:"ag-filter-filter",type:"text",placeholder:"Filter...",onChange:this.onInputChange.bind(this),value:this.state.input}))))},e.prototype.onSelectChange=function(t){var e=this;this.setState({select:t.target.value},(function(){e.inputIsNumber()&&e.props.filterChangedCallback()}))},e.prototype.onInputChange=function(t){var e=this,n=t.target.value,r=this.inputIsNumber()&&""===t.target.value;this.setState({input:n},(function(){(e.inputIsNumber()||r)&&e.props.filterChangedCallback()}))},e.prototype.inputIsNumber=function(){var t=this.state.input;if(""===t)return!1;var e=parseFloat(t);return!Number.isNaN(e)},e}(o.Component),c=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function l(t){return function(e){function n(t){var n=e.call(this,t)||this;return n.state={select:""},n}return c(n,e),n.prototype.getModel=function(){if(""!==this.state.select)return{type:"equals",filter:this.state.select,filterType:"text"}},n.prototype.setModel=function(t){var e=this;this.setState({select:""},(function(){e.props.filterChangedCallback()}))},n.prototype.isFilterActive=function(){return""!==this.state.select},n.prototype.onSelectChange=function(t){var e=this;this.setState({select:t.target.value},(function(){e.props.filterChangedCallback()}))},n.prototype.render=function(){return o.createElement("div",{className:"ag-filter"},o.createElement("div",null,o.createElement("select",{className:"ag-filter-select",onChange:this.onSelectChange.bind(this),value:this.state.select},t.map((function(t){return o.createElement("option",{value:t.key,key:t.key},t.label)})))))},n}(o.Component)}}])}));