{"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport Input, { padding } from '~/components/Input';\nimport React from 'react';\nimport { backgroundColor, em, math, position, textLighterColor } from '~/utils/style';\nimport Icon from '~/components/Icon';\nimport styled from 'styled-components';\nconst iconSize = em(16);\nconst StyledInput = styled(Input).withConfig({\n  displayName: \"SearchInput__StyledInput\",\n  componentId: \"sc-7tml4v-0\"\n})([\"padding-right:\", \";width:100%;\"], math(`${iconSize} + ${padding} * 2`));\nconst Control = styled.div.withConfig({\n  displayName: \"SearchInput__Control\",\n  componentId: \"sc-7tml4v-1\"\n})([\"background-color:\", \";position:relative;\"], backgroundColor);\nconst SearchIcon = styled(Icon).withConfig({\n  displayName: \"SearchInput__SearchIcon\",\n  componentId: \"sc-7tml4v-2\"\n})([\"font-size:\", \";display:block;\", \" pointer-events:none;color:\", \";\"], iconSize, position('absolute', padding, padding, null, null), textLighterColor);\n\nconst SearchInput = (_ref) => {\n  let {\n    className\n  } = _ref,\n      props = _objectWithoutProperties(_ref, [\"className\"]);\n\n  return __jsx(Control, {\n    className: className\n  }, __jsx(StyledInput, props), __jsx(SearchIcon, {\n    type: \"search\"\n  }));\n};\n\nexport default SearchInput;","map":null,"metadata":{},"sourceType":"module"}