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CAAC,CACvB,IAAK,oBACL,MAAO,WACN,IAAI,EAAS,KAEb,YAAW,WACV,OAAO,EAAO,SAAS,EAAO,MAAM,cACrC,GACD,GACE,CACF,IAAK,SACL,MAAO,WACN,IAAI,EAAS,KAAK,MAEd,GADgB,EAAO,cAChB,yBAAyB,EAAQ,CAAC,mBAE7C,OAAO,QAAQ,QAAQ,cAAc,WAAY,SAAS,CACzD,IAAK,KAAK,YACV,QAAS,KAAK,UACZ,GACJ,KAGM,CACR,CAlDe,GAoDf,QAAQ,QAAU","file":"/npm/@olasearch/textarea-elastic@1.0.2/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@olasearch/textarea-elastic@1.0.2/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\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 _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\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 _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\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 TextArea = function (_React$PureComponent) {\n\t_inherits(TextArea, _React$PureComponent);\n\n\tfunction TextArea() {\n\t\tvar _ref;\n\n\t\tvar _temp, _this, _ret;\n\n\t\t_classCallCheck(this, TextArea);\n\n\t\tfor (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n\t\t\targs[_key] = arguments[_key];\n\t\t}\n\n\t\treturn _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TextArea.__proto__ || Object.getPrototypeOf(TextArea)).call.apply(_ref, [this].concat(args))), _this), _this.autoGrow = function (initialHeight) {\n\t\t\tif ((typeof initialHeight === 'undefined' ? 'undefined' : _typeof(initialHeight)) === 'object') initialHeight = null;\n\t\t\tvar el = _this.el;\n\t\t\tif (!el) return;\n\t\t\tvar offset = !window.opera ? el.offsetHeight - el.clientHeight : el.offsetHeight + parseInt(window.getComputedStyle(el, null).getPropertyValue('border-top-width'));\n\t\t\tel.style.height = 'auto';\n\t\t\tel.style.height = (initialHeight ? initialHeight : el.scrollHeight + offset) + 'px';\n\t\t}, _this.registerRef = function (el) {\n\t\t\t_this.el = el;\n\t\t}, _temp), _possibleConstructorReturn(_this, _ret);\n\t}\n\n\t_createClass(TextArea, [{\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\t\t\tvar _this2 = this;\n\n\t\t\tsetTimeout(function () {\n\t\t\t\treturn _this2.autoGrow(_this2.props.initialHeight);\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar _props = this.props,\n\t\t\t    initialHeight = _props.initialHeight,\n\t\t\t    rest = _objectWithoutProperties(_props, ['initialHeight']);\n\n\t\t\treturn _react2.default.createElement('textarea', _extends({\n\t\t\t\tref: this.registerRef,\n\t\t\t\tonInput: this.autoGrow\n\t\t\t}, rest));\n\t\t}\n\t}]);\n\n\treturn TextArea;\n}(_react2.default.PureComponent);\n\nexports.default = TextArea;"]}