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/components/list/InfiniteScrollGridSimple.js","webpack://_N_E/./src/pages/palette/index.js","webpack://_N_E/./src/components/bar/PaletteTopBar.module.scss","webpack://_N_E/./src/pages/palette/index.module.scss"],"sourcesContent":["var _path, _path2;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nvar SvgWrite = function SvgWrite(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4H4v16h16v-9\",\n stroke: \"#191919\",\n strokeWidth: 2,\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"m11 10.414 8-8L21.586 5l-8 8H11v-2.586Z\",\n stroke: \"#191919\",\n strokeWidth: 2,\n strokeLinejoin: \"round\"\n })));\n};\n\nexport default SvgWrite;","var _circle, _path;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nvar SvgXRound = function SvgXRound(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 8,\n cy: 8,\n r: 8,\n fill: \"#191919\",\n fillOpacity: 0.35\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M11.536 5.349 8.884 8l2.652 2.652-.884.884L8 8.884l-2.652 2.652-.884-.884L7.116 8 4.464 5.35l.884-.884L8 7.116l2.652-2.651.884.884Z\",\n fill: \"#fff\"\n })));\n};\n\nexport default SvgXRound;","import classNames from \"classnames\";\n\nimport utilStyles from 'styles/utils.module.scss';\nimport styles from 'components/bar/PaletteTopBar.module.scss';\nimport SearchIcon from 'images/icons/search.svg';\nimport WriteIcon from 'images/icons/write.svg';\nimport XRoundIcon from 'images/icons/x_round.svg';\nimport {useEffect, useRef, useState} from \"react\";\nimport {useRouter} from \"next/router\";\nimport {doublePaletteRoute, getDoublePaletteRoute, newPostRoute, searchRoute} from \"common/const\";\nimport Link from \"next/link\";\nimport useTranslation from \"next-translate/useTranslation\";\n\n\nexport default function PaletteTopBar (props) {\n const onOutFocus = props.onOutFocus || function () {};\n const [isFocused, setIsFocused] = useState(false);\n const [inputText, setInputText] = useState('');\n const [isSubmitting, setIsSubmitting] = useState(false);\n const {t} = useTranslation('components-bar-PaletteTopBar');\n const router = useRouter();\n\n const onTextChange = (newText) => {\n setInputText(newText);\n }\n const inputRef = useRef(null);\n const formRef = useRef(null);\n\n const onDivClick = () => {\n setInputText('');\n }\n\n const onSubmit = () => {\n const query = inputRef.current.value;\n if (isSubmitting) return;\n setIsSubmitting(true);\n typeof mixpanel !== 'undefined' && mixpanel.track('PaletteSearch', {query: query});\n router.push({query: {q: query}, pathname: doublePaletteRoute});\n inputRef.current.value = '';\n inputRef.current.blur();\n setInputText('');\n setIsSubmitting(false);\n onOutFocus();\n };\n\n const erase = () => {\n setInputText('');\n inputRef.current.value = '';\n };\n\n useEffect(() => {\n if (inputRef.current) {\n setInputText('');\n inputRef.current.value = '';\n inputRef.current.blur();\n }\n }, []);\n\n const onWriteButtonClick = () => {\n typeof mixpanel !== 'undefined' && mixpanel.track('PaletteWriteButton');\n }\n const placeholder = t('placeholder')\n return (\n