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AAU,QAAU,KAAK,MAAM,OAAS,EAAU,QAAU,KAAK,MAAM,OAC1E,KAAK,SAAS,CACZ,QAAQ,GAGd,CAEA,OAAA,CAAQ,GACN,KAAK,SAAS,CACZ,QAAQ,IAGN,KAAK,MAAM,SACb,KAAK,MAAM,QAAQ,EAEvB,CAEA,MAAA,CAAO,GACL,KAAK,SAAS,CACZ,OAAsC,IAA9B,EAAM,OAAO,MAAM,SAGzB,KAAK,MAAM,QACb,KAAK,MAAM,OAAO,EAEtB,CAEA,MAAA,GACE,MAAM,GACJ,EAAE,MACF,EAAK,OACL,EAAM,QACN,EAAO,KACP,EAAI,KACJ,EAAI,UACJ,KACG,GACD,KAAK,OACH,OACJ,GACE,KAAK,MACT,OAAO,EAAM,cAAc,EAAoB,KAAM,EAAM,cAAc,EAA6B,CACpG,UAAW,GACV,EAAM,cAAc,EAAe,CACpC,UAAW,EACX,QAAS,EACT,OAAQ,GACP,GAAQ,EAAM,cAAc,EAAe,EAAS,CACrD,OAAQ,EACR,UAAW,EACX,GAAI,EACJ,OAAQ,KAAK,OACb,QAAS,KAAK,QACd,IAAK,EACL,KAAM,GACL,KACL,EAIF,OAAO,CAET","file":"/npm/react-floating-label-input@4.3.4/dist/react-floating-label-input.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/react-floating-label-input@4.3.4/dist/react-floating-label-input.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components')) :\n  typeof define === 'function' && define.amd ? define(['react', 'styled-components'], factory) :\n  (global = global || self, global.FloatingLabelInput = factory(global.React, global.styled));\n}(this, function (React, styled) { 'use strict';\n\n  React = React && React.hasOwnProperty('default') ? React['default'] : React;\n  styled = styled && styled.hasOwnProperty('default') ? styled['default'] : styled;\n\n  function _extends() {\n    _extends = Object.assign || function (target) {\n      for (var i = 1; i < arguments.length; i++) {\n        var source = arguments[i];\n\n        for (var key in source) {\n          if (Object.prototype.hasOwnProperty.call(source, key)) {\n            target[key] = source[key];\n          }\n        }\n      }\n\n      return target;\n    };\n\n    return _extends.apply(this, arguments);\n  }\n\n  const FloatingLabelInput = styled.div`\n  width: 100%;\n`;\n  const FloatingLabelInputContainer = styled.div`\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  position: relative;\n  height: 2em;\n  border-bottom: 1px solid #ddd;\n  font-size: inherit;\n`;\n  const FloatingLabel = styled.label`\n  padding: 0;\n  margin: 0;\n  border: 0;\n  position: absolute;\n  color: #9b9b9b;\n  bottom: 0;\n  transition: all 0.2s ease-in-out;\n  transform-origin: left top;\n  font-size: 1em;\n  cursor: text;\n  pointer-events: none;\n  width: 66.6%;\n  transform: ${props => props.active ? 'translate3d(0, -70%, 0) scale(0.70)' : 'none'};\n`;\n  const FloatingInput = styled.input`\n  padding: 0;\n  margin: 0;\n  border: none;\n  outline: none;\n  font-size: 1em;\n  &::placeholder {\n    color: #9b9b9b;\n    opacity: ${props => props.active ? 1 : 0};\n    transition: opacity 0.2s cubic-bezier(0.6, 0.04, 0.98, 0.335);\n  }\n`;\n  class TextInput extends React.PureComponent {\n    constructor(props) {\n      super(props);\n\n      if (!props.id && !props.name) {\n        throw new Error('expected id but none present');\n      }\n\n      this.state = {\n        active: props.value && props.value.length > 0\n      };\n      this.onFocus = this.onFocus.bind(this);\n      this.onBlur = this.onBlur.bind(this);\n    }\n\n    componentDidUpdate(prevProps) {\n      if (!prevProps.active && this.props.value && prevProps.value !== this.props.value) {\n        this.setState({\n          active: true\n        });\n      }\n    }\n\n    onFocus(event) {\n      this.setState({\n        active: true\n      });\n\n      if (this.props.onFocus) {\n        this.props.onFocus(event);\n      }\n    }\n\n    onBlur(event) {\n      this.setState({\n        active: event.target.value.length !== 0\n      });\n\n      if (this.props.onBlur) {\n        this.props.onBlur(event);\n      }\n    }\n\n    render() {\n      const {\n        id,\n        label,\n        onBlur,\n        onFocus,\n        type,\n        refs,\n        className,\n        ...otherProps\n      } = this.props;\n      const {\n        active\n      } = this.state;\n      return React.createElement(FloatingLabelInput, null, React.createElement(FloatingLabelInputContainer, {\n        className: className\n      }, React.createElement(FloatingLabel, {\n        className: className,\n        htmlFor: id,\n        active: active\n      }, label), React.createElement(FloatingInput, _extends({\n        active: active,\n        className: className,\n        id: id,\n        onBlur: this.onBlur,\n        onFocus: this.onFocus,\n        ref: refs,\n        type: type\n      }, otherProps))));\n    }\n\n  }\n\n  return TextInput;\n\n}));\n"]}