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it/src/components/Spinner/PancakeIcon.tsx","webpack://_N_E/./packages/uikit/src/components/Spinner/Spinner.tsx","webpack://_N_E/./packages/uikit/src/components/Svg/Icons/ArrowDown.tsx","webpack://_N_E/./packages/uikit/src/components/Svg/Icons/ArrowUp.tsx","webpack://_N_E/./packages/uikit/src/components/Svg/Icons/Metamask.tsx","webpack://_N_E/./src/components/CurrencyInputPanel/NumericalInput.tsx","webpack://_N_E/./src/components/CopyButton/index.tsx","webpack://_N_E/./src/components/CurrencyInputPanel/index.tsx","webpack://_N_E/./src/components/TransactionConfirmationModal/index.tsx","webpack://_N_E/./src/hooks/useTokenAllowance.ts","webpack://_N_E/./src/hooks/useApproveCallback.ts","webpack://_N_E/./src/hooks/useCallWithGasPrice.ts","webpack://_N_E/./src/hooks/useTransactionDeadline.ts","webpack://_N_E/./src/hooks/useCurrentBlockTimestamp.ts","webpack://_N_E/./src/utils/sentry.ts","webpack://_N_E/./src/utils/transactionErrorToUserReadableMessage.ts"],"sourcesContent":["import _object_spread from \"@swc/helpers/src/_object_spread.mjs\";\nimport _object_spread_props from \"@swc/helpers/src/_object_spread_props.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport Svg from \"../Svg/Svg\";\nvar Icon = function(props) {\n return /*#__PURE__*/ _jsxs(Svg, _object_spread_props(_object_spread({\n viewBox: \"0 0 256 256\"\n }, props), {\n children: [\n /*#__PURE__*/ _jsx(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M166.898 204.279C172.402 190.795 170.197 176.127 166.942 163.633C164.747 155.208 156.522 149.043 143.339 146.339C130.289 143.662 113.23 144.62 95.212 149.658C77.1941 154.696 61.9863 162.761 52.0088 171.877C41.9295 181.085 37.8164 190.7 40.0117 199.126C43.2669 211.619 48.4857 225.444 59.7919 234.228C70.9463 242.894 88.7701 247.193 118.461 238.891C148.152 230.589 161.467 217.582 166.898 204.279ZM119.268 241.986C179.746 225.075 176.514 188.072 169.929 162.798C164.622 142.43 131.106 136.301 94.4056 146.563C57.7053 156.825 31.7183 179.593 37.0251 199.961C43.6102 225.235 58.7891 258.897 119.268 241.986Z\",\n fill: \"#464649\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M155.801 175.68C158.653 186.628 180.351 181.576 214.977 171.894C249.604 162.212 257.158 150.578 254.305 139.63C251.453 128.682 244.685 121.053 216.678 128.884C182.051 138.566 152.948 164.732 155.801 175.68Z\",\n fill: \"#606063\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M159.97 178.737L175.437 178.709C178.284 178.704 178.523 174.429 177.474 164.815C176.82 158.816 173.457 154.101 171.27 155.477L159.942 163.875L159.97 178.737Z\",\n fill: \"#464649\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M162.261 177.996C160.059 177.319 159.158 176.266 158.788 174.845C158.644 174.296 158.636 173.375 159.104 171.965C159.566 170.568 160.432 168.889 161.754 166.98C164.397 163.161 168.612 158.775 174.091 154.332C185.037 145.456 200.6 136.7 217.484 131.979C231.34 128.104 239.201 128.297 243.777 130.191C248.018 131.946 250.005 135.425 251.319 140.465C251.901 142.7 251.928 144.848 251.283 146.962C250.634 149.091 249.235 151.411 246.622 153.858C241.312 158.83 231.342 163.998 214.171 168.799C196.798 173.657 182.967 177.263 173.149 178.336C168.216 178.875 164.644 178.728 162.261 177.996ZM214.977 171.894C180.351 181.576 158.653 186.628 155.801 175.68C152.948 164.732 182.051 138.566 216.678 128.884C244.685 121.053 251.453 128.682 254.305 139.63C257.158 150.578 249.604 162.212 214.977 171.894Z\",\n fill: \"#464649\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M169.925 161.024C176.511 186.298 179.743 223.301 119.264 240.212C58.7859 257.123 43.607 223.461 37.022 198.187C31.7151 177.819 57.7022 155.052 94.4024 144.789C131.103 134.527 164.619 140.656 169.925 161.024Z\",\n fill: \"#606063\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M62.2322 217.512C45.5076 212.12 42.4613 203.795 40.3848 196.052L41.9594 211.275L50.2352 225.685L64.4374 238.481L80.947 244.327C82.4065 243.612 89.4986 243.299 83.1029 242.028C76.7073 240.758 72.7474 234.756 69.9914 231.378C68.2638 226.484 67.7365 219.287 62.2322 217.512Z\",\n fill: \"#464649\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M166.895 202.505C172.399 189.021 170.194 174.353 166.939 161.86C164.744 153.434 156.519 147.269 143.336 144.565C130.286 141.888 113.227 142.846 95.2088 147.884C77.1909 152.922 61.9831 160.987 52.0056 170.103C41.9263 179.311 37.8132 188.926 40.0086 197.352C43.2637 209.845 48.4825 223.67 59.7887 232.454C70.9431 241.12 88.7669 245.419 118.458 237.117C148.149 228.815 161.464 215.809 166.895 202.505ZM119.264 240.212C179.743 223.301 176.511 186.298 169.925 161.024C164.619 140.656 131.103 134.527 94.4024 144.789C57.7022 155.052 31.7151 177.819 37.022 198.187C43.607 223.461 58.7859 257.123 119.264 240.212Z\",\n fill: \"#464649\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M164.233 181.686C165.018 182.322 165.157 183.497 164.543 184.311C162.98 186.382 161.187 188.422 159.188 190.412C158.469 191.128 157.327 191.104 156.636 190.36C155.945 189.615 155.968 188.431 156.687 187.716C158.576 185.834 160.252 183.925 161.7 182.007C162.314 181.193 163.448 181.05 164.233 181.686ZM57.4215 216.239C57.6566 215.235 58.6323 214.619 59.6008 214.863C73.2899 218.308 91.7045 217.793 111.035 212.388C120.262 209.808 128.779 206.37 136.271 202.374C137.157 201.901 138.245 202.263 138.701 203.181C139.157 204.099 138.809 205.226 137.923 205.699C130.195 209.821 121.438 213.352 111.976 215.998C92.2044 221.527 73.1589 222.124 58.7494 218.497C57.7809 218.253 57.1863 217.242 57.4215 216.239Z\",\n fill: \"#979797\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M159.836 163.292C164.405 180.829 141.059 195.381 109.857 204.106C78.655 212.831 51.4793 212.682 46.8428 194.887C42.2064 177.092 65.6193 162.798 96.8214 154.074C128.024 145.349 155.266 145.755 159.836 163.292Z\",\n fill: \"#464649\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M145.831 183.549C154.508 176.998 157.462 170.578 155.854 164.406C154.245 158.233 148.575 154.225 137.894 153.086C127.333 151.96 113.281 153.898 97.8965 158.2C82.4985 162.506 69.3986 168.094 60.8132 174.54C52.1526 181.043 49.1801 187.461 50.825 193.774C52.4698 200.087 58.1557 204.083 68.7987 205.189C79.3491 206.285 93.384 204.285 108.782 199.98C124.166 195.678 137.251 190.028 145.831 183.549ZM110.264 205.113C141.466 196.388 164.405 180.829 159.836 163.292C155.266 145.755 128.024 145.349 96.8214 154.074C65.6193 162.798 42.2064 177.092 46.8428 194.887C51.4793 212.682 79.0614 213.838 110.264 205.113Z\",\n fill: \"#737373\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M103.877 181.153C89.0555 185.297 76.4977 192.072 68.1169 199.619C67.3647 200.297 66.2249 200.214 65.5711 199.434C64.9173 198.655 64.997 197.474 65.7492 196.796C74.622 188.806 87.7006 181.803 102.936 177.543C106.034 176.676 109.107 175.955 112.134 175.375C113.114 175.187 114.056 175.858 114.237 176.873C114.419 177.889 113.771 178.864 112.792 179.052C109.86 179.614 106.881 180.313 103.877 181.153ZM123.847 175.658C123.792 174.627 124.554 173.745 125.549 173.688C132.378 173.297 138.774 173.682 144.424 174.797C145.403 174.991 146.046 175.97 145.86 176.984C145.673 177.999 144.728 178.664 143.749 178.471C138.431 177.421 132.333 177.045 125.749 177.422C124.753 177.479 123.902 176.69 123.847 175.658Z\",\n fill: \"#606063\"\n })\n ]\n }));\n};\nexport default Icon;\n","import _object_spread from \"@swc/helpers/src/_object_spread.mjs\";\nimport _object_spread_props from \"@swc/helpers/src/_object_spread_props.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport Svg from \"../Svg/Svg\";\nvar Icon = function(props) {\n return /*#__PURE__*/ _jsx(Svg, _object_spread_props(_object_spread({\n viewBox: \"0 0 128 128\"\n }, props), {\n children: /*#__PURE__*/ _jsx(\"svg\", {\n width: \"128\",\n height: \"128\",\n viewBox: \"0 0 128 128\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /*#__PURE__*/ _jsx(\"image\", {\n href: \"/images/logo-round.png\",\n width: 128\n })\n })\n }));\n};\nexport default Icon;\n","import _tagged_template_literal from \"@swc/helpers/src/_tagged_template_literal.mjs\";\nfunction _templateObject() {\n var data = _tagged_template_literal([\n \"\\n from {\\n transform: rotate(0deg);\\n }\\n to {\\n transform: rotate(360deg);\\n }\\n\"\n ]);\n _templateObject = function _templateObject() {\n return data;\n };\n return data;\n}\nfunction _templateObject1() {\n var data = _tagged_template_literal([\n \"\\n\t0% {\\n\t\ttransform: translatey(0px);\\n\t}\\n\t50% {\\n\t\ttransform: translatey(10px);\\n\t}\\n\t100% {\\n\t\ttransform: translatey(0px);\\n\t}\\n\"\n ]);\n _templateObject1 = function _templateObject1() {\n return data;\n };\n return data;\n}\nfunction _templateObject2() {\n var data = _tagged_template_literal([\n \"\\n position: relative;\\n\"\n ]);\n _templateObject2 = function _templateObject2() {\n return data;\n };\n return data;\n}\nfunction _templateObject3() {\n var data = _tagged_template_literal([\n \"\\n // position: absolute;\\n top: 0;\\n left: 0;\\n animation: \",\n \" 2s linear infinite;\\n transform: translate3d(0, 0, 0);\\n\"\n ]);\n _templateObject3 = function _templateObject3() {\n return data;\n };\n return data;\n}\nfunction _templateObject4() {\n var data = _tagged_template_literal([\n \"\\n animation: \",\n \" 6s ease-in-out infinite;\\n transform: translate3d(0, 0, 0);\\n\"\n ]);\n _templateObject4 = function _templateObject4() {\n return data;\n };\n return data;\n}\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport styled, { keyframes } from \"styled-components\";\nimport PanIcon from \"./PanIcon\";\nimport PancakeIcon from \"./PancakeIcon\";\nvar rotate = keyframes(_templateObject());\nvar float = keyframes(_templateObject1());\nvar Container = styled.div.withConfig({\n componentId: \"sc-a289f31-0\"\n})(_templateObject2());\nvar RotatingPancakeIcon = styled(PancakeIcon).withConfig({\n componentId: \"sc-a289f31-1\"\n})(_templateObject3(), rotate);\nvar FloatingPanIcon = styled(PanIcon).withConfig({\n componentId: \"sc-a289f31-2\"\n})(_templateObject4(), float);\nvar Spinner = function(param) {\n var _size = param.size, size = _size === void 0 ? 128 : _size;\n return /*#__PURE__*/ _jsx(Container, {\n children: /*#__PURE__*/ _jsx(RotatingPancakeIcon, {\n width: \"\".concat(size * 0.5, \"px\")\n })\n });\n};\nexport default Spinner;\n","import _object_spread from \"@swc/helpers/src/_object_spread.mjs\";\nimport _object_spread_props from \"@swc/helpers/src/_object_spread_props.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport Svg from \"../Svg\";\nvar Icon = function(props) {\n return /*#__PURE__*/ _jsx(Svg, _object_spread_props(_object_spread({\n viewBox: \"0 0 24 24\"\n }, props), {\n children: /*#__PURE__*/ _jsx(\"path\", {\n d: \"M11 5V16.17L6.11997 11.29C5.72997 10.9 5.08997 10.9 4.69997 11.29C4.30997 11.68 4.30997 12.31 4.69997 12.7L11.29 19.29C11.68 19.68 12.31 19.68 12.7 19.29L19.29 12.7C19.68 12.31 19.68 11.68 19.29 11.29C18.9 10.9 18.27 10.9 17.88 11.29L13 16.17V5C13 4.45 12.55 4 12 4C11.45 4 11 4.45 11 5Z\"\n })\n }));\n};\nexport default Icon;\n","import _object_spread from \"@swc/helpers/src/_object_spread.mjs\";\nimport _object_spread_props from \"@swc/helpers/src/_object_spread_props.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport Svg from \"../Svg\";\nvar Icon = function(props) {\n return /*#__PURE__*/ _jsx(Svg, _object_spread_props(_object_spread({\n viewBox: \"0 0 24 24\"\n }, props), {\n children: /*#__PURE__*/ _jsx(\"path\", {\n d: \"M13 19V7.83001L17.88 12.71C18.27 13.1 18.91 13.1 19.3 12.71C19.69 12.32 19.69 11.69 19.3 11.3L12.71 4.71001C12.32 4.32001 11.69 4.32001 11.3 4.71001L4.69997 11.29C4.30997 11.68 4.30997 12.31 4.69997 12.7C5.08997 13.09 5.71997 13.09 6.10997 12.7L11 7.83001V19C11 19.55 11.45 20 12 20C12.55 20 13 19.55 13 19Z\"\n })\n }));\n};\nexport default Icon;\n","import _object_spread from \"@swc/helpers/src/_object_spread.mjs\";\nimport _object_spread_props from \"@swc/helpers/src/_object_spread_props.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport Svg from \"../Svg\";\nvar Icon = function(props) {\n return /*#__PURE__*/ _jsxs(Svg, _object_spread_props(_object_spread({\n viewBox: \"0 0 40 40\"\n }, props), {\n children: [\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M36.0112 3.33337L22.1207 13.6277L24.7012 7.56091L36.0112 3.33337Z\",\n fill: \"#E17726\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M4.00261 3.33337L17.7558 13.7238L15.2989 7.56091L4.00261 3.33337Z\",\n fill: \"#E27625\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M31.0149 27.2023L27.3227 32.8573L35.2287 35.0397L37.4797 27.3258L31.0149 27.2023Z\",\n fill: \"#E27625\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M2.53386 27.3258L4.77116 35.0397L12.6772 32.8573L8.9987 27.2023L2.53386 27.3258Z\",\n fill: \"#E27625\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M12.2518 17.6496L10.0419 20.9712L17.8793 21.3281L17.6048 12.8867L12.2518 17.6496Z\",\n fill: \"#E27625\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M27.762 17.6494L22.3129 12.7905L22.1207 21.3279L29.9581 20.9711L27.762 17.6494Z\",\n fill: \"#E27625\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M12.6772 32.8574L17.3989 30.5652L13.336 27.3809L12.6772 32.8574Z\",\n fill: \"#E27625\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M22.6009 30.5652L27.3226 32.8574L26.6637 27.3809L22.6009 30.5652Z\",\n fill: \"#E27625\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M27.3226 32.8575L22.6009 30.5653L22.9715 33.6399L22.9303 34.9301L27.3226 32.8575Z\",\n fill: \"#D5BFB2\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M12.6772 32.8575L17.0694 34.9301L17.042 33.6399L17.3989 30.5653L12.6772 32.8575Z\",\n fill: \"#D5BFB2\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M17.1518 25.3495L13.2262 24.1965L15.9988 22.92L17.1518 25.3495Z\",\n fill: \"#233447\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M22.848 25.3495L24.001 22.92L26.801 24.1965L22.848 25.3495Z\",\n fill: \"#233447\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M12.6773 32.8573L13.3635 27.2023L8.99876 27.3258L12.6773 32.8573Z\",\n fill: \"#CC6228\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M26.6364 27.2023L27.3227 32.8573L31.0149 27.3258L26.6364 27.2023Z\",\n fill: \"#CC6228\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M29.9581 20.9709L22.1207 21.3278L22.8482 25.3495L24.0011 22.92L26.8012 24.1965L29.9581 20.9709Z\",\n fill: \"#CC6228\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M13.2263 24.1965L15.9989 22.92L17.1519 25.3495L17.8793 21.3278L10.0419 20.9709L13.2263 24.1965Z\",\n fill: \"#CC6228\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M10.0419 20.9709L13.3361 27.3809L13.2263 24.1965L10.0419 20.9709Z\",\n fill: \"#E27525\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M26.8011 24.1965L26.6638 27.3809L29.958 20.9709L26.8011 24.1965Z\",\n fill: \"#E27525\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M17.8793 21.3278L17.1519 25.3494L18.0715 30.0985L18.2637 23.8396L17.8793 21.3278Z\",\n fill: \"#E27525\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M22.1205 21.3278L21.7499 23.8258L21.9283 30.0985L22.848 25.3494L22.1205 21.3278Z\",\n fill: \"#E27525\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M22.848 25.3496L21.9284 30.0987L22.601 30.5654L26.6638 27.381L26.8011 24.1967L22.848 25.3496Z\",\n fill: \"#F5841F\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M13.2262 24.1967L13.336 27.381L17.3989 30.5654L18.0714 30.0987L17.1518 25.3496L13.2262 24.1967Z\",\n fill: \"#F5841F\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M22.9303 34.93L22.9715 33.6398L22.6284 33.3378H17.3714L17.042 33.6398L17.0694 34.93L12.6772 32.8574L14.2145 34.1202L17.3302 36.2751H22.6696L25.7853 34.1202L27.3226 32.8574L22.9303 34.93Z\",\n fill: \"#C0AC9D\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M22.601 30.5653L21.9284 30.0986H18.0715L17.3989 30.5653L17.0421 33.6399L17.3715 33.3379H22.6285L22.9716 33.6399L22.601 30.5653Z\",\n fill: \"#161616\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M36.5875 14.3003L37.7542 8.61779L36.011 3.33337L22.6009 13.2846L27.7618 17.6493L35.0365 19.7768L36.6424 17.8964L35.9424 17.3886L37.0679 16.3728L36.2169 15.7003L37.3287 14.863L36.5875 14.3003Z\",\n fill: \"#763E1A\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M2.24573 8.61779L3.42615 14.3003L2.67123 14.863L3.78302 15.7003L2.93202 16.3728L4.05753 17.3886L3.35752 17.8964L4.96343 19.7768L12.2518 17.6493L17.399 13.2846L4.00263 3.33337L2.24573 8.61779Z\",\n fill: \"#763E1A\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M35.0365 19.777L27.7619 17.6495L29.958 20.9712L26.6638 27.3811L31.0149 27.3262H37.4797L35.0365 19.777Z\",\n fill: \"#F5841F\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M12.2517 17.6495L4.96332 19.777L2.53386 27.3262H8.99869L13.336 27.3811L10.0419 20.9712L12.2517 17.6495Z\",\n fill: \"#F5841F\"\n }),\n /*#__PURE__*/ _jsx(\"path\", {\n d: \"M22.1205 21.3276L22.6009 13.2843L24.701 7.56067H15.2988L17.3988 13.2843L17.8792 21.3276L18.0577 23.8531L18.0714 30.0984H21.9283L21.9421 23.8531L22.1205 21.3276Z\",\n fill: \"#F5841F\"\n })\n ]\n }));\n};\nexport default Icon;\n","import { memo } from 'react'\nimport styled from 'styled-components'\nimport { useTranslation } from 'contexts/Localization'\nimport { escapeRegExp } from '../../utils'\n\nconst StyledInput = styled.input<{ error?: boolean; fontSize?: string; align?: string }>`\n color: ${({ error, theme }) => (error ? theme.colors.failure : theme.colors.text)};\n width: 0;\n position: relative;\n font-weight: 500;\n outline: none;\n border: none;\n flex: 1 1 auto;\n background-color: transparent;\n font-size: 16px;\n text-align: ${({ align }) => align ?? 'right'};\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0px;\n -webkit-appearance: textfield;\n\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n [type='number'] {\n -moz-appearance: textfield;\n }\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n\n ::placeholder {\n color: ${({ theme }) => theme.colors.textSubtle};\n }\n`\n\nconst inputRegex = RegExp(`^\\\\d*(?:\\\\\\\\[.])?\\\\d*$`) // match escaped \".\" characters via in a non-capturing group\n\nexport const Input = memo(function InnerInput({\n value,\n onUserInput,\n placeholder,\n ...rest\n}: {\n value: string | number\n onUserInput: (input: string) => void\n error?: boolean\n fontSize?: string\n align?: 'right' | 'left'\n} & Omit, 'ref' | 'onChange' | 'as'>) {\n const enforcer = (nextUserInput: string) => {\n if (nextUserInput === '' || inputRegex.test(escapeRegExp(nextUserInput))) {\n onUserInput(nextUserInput)\n }\n }\n\n const { t } = useTranslation()\n\n return (\n {\n // replace commas with periods, because we exclusively uses period as the decimal separator\n enforcer(event.target.value.replace(/,/g, '.'))\n }}\n // universal input options\n inputMode=\"decimal\"\n title={t('Token Amount')}\n autoComplete=\"off\"\n autoCorrect=\"off\"\n // text-specific options\n type=\"text\"\n pattern=\"^[0-9]*[.,]?[0-9]*$\"\n placeholder={placeholder || '0.0'}\n minLength={1}\n maxLength={79}\n spellCheck=\"false\"\n />\n )\n})\n\nexport default Input\n","import { useState } from 'react'\nimport { CopyIcon, SvgProps } from '@pancakeswap/uikit'\nimport { copyText } from 'utils/copyText'\nimport styled from 'styled-components'\n\nconst Tooltip = styled.div<{\n isTooltipDisplayed: boolean\n tooltipTop: number\n tooltipRight: number\n tooltipFontSize?: number\n}>`\n display: ${({ isTooltipDisplayed }) => (isTooltipDisplayed ? 'inline' : 'none')};\n position: absolute;\n padding: 8px;\n top: ${({ tooltipTop }) => `${tooltipTop}px`};\n right: ${({ tooltipRight }) => (tooltipRight ? `${tooltipRight}px` : 0)};\n text-align: center;\n font-size: ${({ tooltipFontSize }) => `${tooltipFontSize}px` ?? '100%'};\n background-color: ${({ theme }) => theme.colors.contrast};\n color: ${({ theme }) => theme.colors.invertedContrast};\n border-radius: 16px;\n opacity: 0.7;\n width: max-content;\n`\n\ninterface CopyButtonProps extends SvgProps {\n text: string\n tooltipMessage: string\n tooltipTop: number\n tooltipRight?: number\n tooltipFontSize?: number\n buttonColor?: string\n}\n\nexport const CopyButton: React.FC = ({\n text,\n tooltipMessage,\n width,\n tooltipTop,\n tooltipRight,\n tooltipFontSize,\n buttonColor = 'primary',\n ...props\n}) => {\n const [isTooltipDisplayed, setIsTooltipDisplayed] = useState(false)\n\n const displayTooltip = () => {\n setIsTooltipDisplayed(true)\n setTimeout(() => {\n setIsTooltipDisplayed(false)\n }, 1000)\n }\n return (\n <>\n copyText(text, displayTooltip)}\n {...props}\n />\n \n {tooltipMessage}\n \n \n )\n}\n","import { Currency, CurrencyAmount, Pair, Token } from '@pancakeswap/sdk'\nimport { Button, ChevronDownIcon, Text, useModal, Flex, Box, MetamaskIcon } from '@pancakeswap/uikit'\nimport styled, { css } from 'styled-components'\nimport useTheme from 'hooks/useTheme'\nimport { canRegisterToken, registerToken } from 'utils/wallet'\nimport { isAddress } from 'utils'\nimport { useTranslation } from 'contexts/Localization'\nimport { WrappedTokenInfo } from 'state/types'\nimport { useAccount } from 'wagmi'\nimport { useBUSDCurrencyAmount } from 'hooks/useBUSDPrice'\nimport { formatNumber } from 'utils/formatBalance'\nimport { useCurrencyBalance } from '../../state/wallet/hooks'\nimport CurrencySearchModal from '../SearchModal/CurrencySearchModal'\nimport { CurrencyLogo, DoubleCurrencyLogo } from '../Logo'\n\nimport { Input as NumericalInput } from './NumericalInput'\nimport { CopyButton } from '../CopyButton'\n\n\nconst InputRow = styled.div<{ selected: boolean }>`\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-content: flex-end;\n padding: ${({ selected }) => (selected ? '0.25rem 0.5rem 0.75rem 1rem' : '0.25rem 0.75rem 0.75rem 1rem')};\n`\n\nconst UsdRow = styled.div<{ selected: boolean }>`\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-content: flex-end;\n padding-top: 10px;\n`\nconst CurrencySelectButton = styled(Button).attrs({ variant: 'text', scale: 'sm' }) <{ zapStyle?: ZapStyle }>`\n padding: 0 0.5rem;\n\n ${({ zapStyle, theme }) =>\n zapStyle &&\n css`\n padding: 8px;\n /* background: ${theme.colors.background};\n border: 1px solid ${theme.colors.cardBorder}; */\n border-radius: ${zapStyle === 'zap' ? '0px' : '8px'} 8px 0px 0px;\n height: auto;\n `};\n`\nconst LabelRow = styled.div`\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n color: ${({ theme }) => theme.colors.text};\n font-size: 0.75rem;\n line-height: 1rem;\n padding: 0.75rem 1rem 0 1rem;\n`\nconst InputPanel = styled.div`\n display: flex;\n flex-flow: column nowrap;\n position: relative;\n background-color: ${({ theme }) => theme.colors.backgroundAlt};\n z-index: 1;\n`\nconst Container = styled.div<{ zapStyle?: ZapStyle; error?: boolean }>`\n border-radius: 16px;\n border: solid 1px #171717;\n background-color: ${({ theme }) => theme.colors.input};\n box-shadow: ${({ theme, error }) => theme.shadows[error ? 'warning' : 'inset']};\n`\n\nconst Overlay = styled.div`\n position: absolute;\n inset: 0;\n opacity: 0.6;\n background-color: ${({ theme }) => theme.colors.backgroundAlt};\n`\n\ntype ZapStyle = 'noZap' | 'zap'\n\ninterface CurrencyInputPanelProps {\n value: string\n onUserInput: (value: string) => void\n onInputBlur?: () => void\n onMax?: () => void\n label?: string\n maxAmount?: CurrencyAmount | undefined;\n showMaxButton: boolean\n onCurrencySelect?: (currency: Currency) => void\n currency?: Currency | null\n disableCurrencySelect?: boolean\n hideBalance?: boolean\n pair?: Pair | null\n otherCurrency?: Currency | null\n id: string\n showCommonBases?: boolean\n zapStyle?: ZapStyle\n beforeButton?: React.ReactNode\n disabled?: boolean\n error?: boolean\n showBUSD?: boolean\n showQuickInputButton?: boolean\n onPercentInput?: (percent: number) => void\n isMaxShow ?: boolean\n\n}\nexport default function CurrencyInputPanel({\n value,\n onUserInput,\n onInputBlur,\n onMax,\n label,\n onCurrencySelect,\n currency,\n disableCurrencySelect = false,\n hideBalance = false,\n zapStyle,\n beforeButton,\n pair = null, // used for double token logo\n otherCurrency,\n id,\n showCommonBases,\n disabled,\n error,\n showBUSD,\n showQuickInputButton,\n maxAmount,\n isMaxShow,\n onPercentInput\n}: CurrencyInputPanelProps) {\n const { address: account } = useAccount()\n const selectedCurrencyBalance = useCurrencyBalance(account ?? undefined, currency ?? undefined)\n const {\n t,\n currentLanguage: { locale },\n } = useTranslation()\n\n const token = pair ? pair.liquidityToken : currency instanceof Token ? currency : null\n const tokenAddress = token ? isAddress(token.address) : null\n\n const amountInDollar = useBUSDCurrencyAmount(\n showBUSD ? currency : undefined,\n Number.isFinite(+value) ? +value : undefined,\n )\n\n\n\n const [onPresentCurrencyModal] = useModal(\n ,\n )\n\n const { isDark } = useTheme()\n\n return (\n \n \n \n {beforeButton}\n {\n if (!disableCurrencySelect) {\n onPresentCurrencyModal()\n }\n }}\n >\n \n {pair ? (\n \n ) : currency ? (\n \n ) : null}\n {pair ? (\n \n {pair?.token0.symbol}:{pair?.token1.symbol}\n \n ) : (\n \n {(currency && currency.symbol && currency.symbol.length > 20\n ? `${currency.symbol.slice(0, 4)}...${currency.symbol.slice(\n currency.symbol.length - 5,\n currency.symbol.length,\n )}`\n : currency?.symbol) || t('Select a currency')}\n \n )}\n {!disableCurrencySelect && }\n \n \n {token && tokenAddress ? (\n \n \n {canRegisterToken() && (\n \n registerToken(\n tokenAddress,\n token.symbol,\n token.decimals,\n token instanceof WrappedTokenInfo ? token.logoURI : undefined,\n )\n }\n />\n )}\n \n ) : null}\n \n {account && (\n \n {!hideBalance && !!currency\n ? t('Balance: %balance%', { balance: selectedCurrencyBalance?.toSignificant(6) ?? t('Loading') })\n : ' -'}\n \n )}\n \n \n \n \n {\n onUserInput(val)\n }}\n />\n \n\n \n {!!currency && showBUSD && Number.isFinite(amountInDollar) && (\n \n ~{formatNumber(amountInDollar)} USD\n \n )}\n \n\n \n\n {\n showQuickInputButton &&\n onPercentInput &&\n [25, 50, 75].map((percent) => {\n\n\n return (\n {\n onPercentInput(percent)\n }}\n scale=\"xs\"\n mr=\"5px\"\n style={{ textTransform: 'uppercase', background: isDark ? \"#003040\" : \"#EFF4F5\", color: isDark ? '#fff' : \"#000\" }}\n >\n {percent}%\n \n )\n })}\n\n {account && currency && !disabled && label !== 'To' && isMaxShow && (\n \n )}\n \n \n {disabled && }\n \n \n )\n}\n","import { useCallback } from 'react'\nimport { ChainId, Currency, Token } from '@pancakeswap/sdk'\nimport styled from 'styled-components'\nimport {\n Button,\n Text,\n ErrorIcon,\n ArrowUpIcon,\n MetamaskIcon,\n Flex,\n Box,\n Link,\n Spinner,\n Modal,\n InjectedModalProps,\n ModalProps,\n} from '@pancakeswap/uikit'\nimport { canRegisterToken, registerToken } from 'utils/wallet'\nimport { useTranslation } from 'contexts/Localization'\nimport { useNetwork } from 'wagmi'\nimport { getChainId } from 'config/constants/exchange'\nimport { wrappedCurrency } from 'utils/wrappedCurrency'\nimport { WrappedTokenInfo } from 'state/types'\nimport { RowFixed } from '../Layout/Row'\nimport { AutoColumn, ColumnCenter } from '../Layout/Column'\nimport { getBscScanLink } from '../../utils'\n\nconst Wrapper = styled.div`\n width: 100%;\n`\nconst Section = styled(AutoColumn)`\n padding: 24px;\n`\n\nconst ConfirmedIcon = styled(ColumnCenter)`\n padding: 24px 0;\n`\n\nfunction ConfirmationPendingContent({ pendingText }: { pendingText: string }) {\n const { t } = useTranslation()\n return (\n \n \n \n \n \n {t('Waiting For Confirmation')}\n \n \n {pendingText}\n \n \n \n {t('Confirm this transaction in your wallet')}\n \n \n \n )\n}\n\nexport function TransactionSubmittedContent({\n onDismiss,\n chainId,\n hash,\n currencyToAdd,\n}: {\n onDismiss: () => void\n hash: string | undefined\n chainId: ChainId\n currencyToAdd?: Currency | undefined\n}) {\n const { t } = useTranslation()\n\n const token: Token | undefined = wrappedCurrency(currencyToAdd, chainId)\n\n return (\n \n
\n \n \n \n \n {t('Transaction Submitted')}\n {chainId && hash && (\n \n {t('View on Explorer')}\n \n )}\n {currencyToAdd && canRegisterToken() && (\n \n registerToken(\n token.address,\n token.symbol,\n token.decimals,\n token instanceof WrappedTokenInfo ? token.logoURI : undefined,\n )\n }\n >\n \n {t('Add %asset% to Metamask', { asset: currencyToAdd.symbol })}\n \n \n \n )}\n \n \n
\n
\n )\n}\n\nexport function ConfirmationModalContent({\n bottomContent,\n topContent,\n}: {\n topContent: () => React.ReactNode\n bottomContent: () => React.ReactNode\n}) {\n return (\n \n {topContent()}\n {bottomContent()}\n \n )\n}\n\nexport function TransactionErrorContent({ message, onDismiss }: { message: string; onDismiss: () => void }) {\n const { t } = useTranslation()\n return (\n \n \n \n \n {message}\n \n \n\n \n \n \n \n )\n}\n\ninterface ConfirmationModalProps {\n title: string\n customOnDismiss?: () => void\n hash: string | undefined\n content: () => React.ReactNode\n attemptingTxn: boolean\n pendingText: string\n currencyToAdd?: Currency | undefined\n}\n\nconst TransactionConfirmationModal: React.FC = ({\n title,\n onDismiss,\n customOnDismiss,\n attemptingTxn,\n hash,\n pendingText,\n content,\n currencyToAdd,\n ...props\n}) => {\n const { chain } = useNetwork()\n const chainId = getChainId(chain);\n\n const handleDismiss = useCallback(() => {\n if (customOnDismiss) {\n customOnDismiss()\n }\n onDismiss?.()\n }, [customOnDismiss, onDismiss])\n\n if (!chainId) return null\n\n return (\n \n {attemptingTxn ? (\n \n ) : hash ? (\n \n ) : (\n content()\n )}\n \n )\n}\n\nexport default TransactionConfirmationModal\n","import { Token, TokenAmount } from '@pancakeswap/sdk'\nimport { useMemo } from 'react'\n\nimport { useTokenContract } from './useContract'\nimport { useSingleCallResult } from '../state/multicall/hooks'\n\nfunction useTokenAllowance(token?: Token, owner?: string, spender?: string): TokenAmount | undefined {\n const contract = useTokenContract(token?.address, false)\n\n const inputs = useMemo(() => [owner, spender], [owner, spender])\n const allowance = useSingleCallResult(contract, 'allowance', inputs).result\n\n return useMemo(\n () => (token && allowance ? new TokenAmount(token, allowance.toString()) : undefined),\n [token, allowance],\n )\n}\n\nexport default useTokenAllowance\n","import { MaxUint256 } from '@ethersproject/constants'\nimport { TransactionResponse } from '@ethersproject/providers'\nimport { useAccount } from 'wagmi'\nimport { Trade, TokenAmount, CurrencyAmount, ETHER } from '@pancakeswap/sdk'\nimport { useCallback, useMemo } from 'react'\nimport { logError } from 'utils/sentry'\nimport { ROUTER_ADDRESS } from 'config/constants/exchange'\nimport useTokenAllowance from './useTokenAllowance'\nimport { Field } from '../state/swap/actions'\nimport { useTransactionAdder, useHasPendingApproval } from '../state/transactions/hooks'\nimport { computeSlippageAdjustedAmounts } from '../utils/exchange'\nimport { calculateGasMargin } from '../utils'\nimport { useTokenContract } from './useContract'\nimport { useCallWithGasPrice } from './useCallWithGasPrice'\nimport useToast from './useToast'\nimport { useTranslation } from '../contexts/Localization'\nimport useGelatoLimitOrdersLib from './limitOrders/useGelatoLimitOrdersLib'\n\n\nexport enum ApprovalState {\n UNKNOWN,\n NOT_APPROVED,\n PENDING,\n APPROVED,\n}\n\n// returns a variable indicating the state of the approval and a function which approves if necessary or early returns\nexport function useApproveCallback(\n amountToApprove?: CurrencyAmount,\n spender?: string,\n): [ApprovalState, () => Promise] {\n const { address } = useAccount()\n const { callWithGasPrice } = useCallWithGasPrice()\n const { t } = useTranslation()\n const { toastError } = useToast()\n const token = amountToApprove instanceof TokenAmount ? amountToApprove.token : undefined\n const currentAllowance = useTokenAllowance(token, address ?? undefined, spender)\n const pendingApproval = useHasPendingApproval(token?.address, spender)\n\n // check the current approval status\n const approvalState: ApprovalState = useMemo(() => {\n if (!amountToApprove || !spender) return ApprovalState.UNKNOWN\n if (amountToApprove.currency === ETHER) return ApprovalState.APPROVED\n // we might not have enough data to know whether or not we need to approve\n if (!currentAllowance) return ApprovalState.UNKNOWN\n\n // amountToApprove will be defined if currentAllowance is\n return currentAllowance.lessThan(amountToApprove)\n ? pendingApproval\n ? ApprovalState.PENDING\n : ApprovalState.NOT_APPROVED\n : ApprovalState.APPROVED\n }, [amountToApprove, currentAllowance, pendingApproval, spender])\n\n const tokenContract = useTokenContract(token?.address)\n const addTransaction = useTransactionAdder()\n\n const approve = useCallback(async (): Promise => {\n if (approvalState !== ApprovalState.NOT_APPROVED) {\n toastError(t('Error'), t('Approve was called unnecessarily'))\n console.error('approve was called unnecessarily')\n return\n }\n if (!token) {\n toastError(t('Error'), t('No token'))\n console.error('no token')\n return\n }\n\n if (!tokenContract) {\n toastError(t('Error'), t('Cannot find contract of the token %tokenAddress%', { tokenAddress: token?.address }))\n console.error('tokenContract is null')\n return\n }\n\n if (!amountToApprove) {\n toastError(t('Error'), t('Missing amount to approve'))\n console.error('missing amount to approve')\n return\n }\n\n if (!spender) {\n toastError(t('Error'), t('No spender'))\n console.error('no spender')\n return\n }\n\n let useExact = false\n\n const estimatedGas = await tokenContract.estimateGas.approve(spender, MaxUint256).catch(() => {\n // general fallback for tokens who restrict approval amounts\n useExact = true\n return tokenContract.estimateGas.approve(spender, amountToApprove.raw.toString())\n })\n \n\n // eslint-disable-next-line consistent-return\n return callWithGasPrice(\n tokenContract,\n 'approve',\n [spender, useExact ? amountToApprove.raw.toString() : MaxUint256],\n {\n gasLimit: calculateGasMargin(estimatedGas),\n },\n )\n .then((response: TransactionResponse) => {\n addTransaction(response, {\n summary: `Approve ${amountToApprove.currency.symbol}`,\n approval: { tokenAddress: token.address, spender },\n type: 'approve',\n })\n })\n .catch((error: any) => {\n logError(error)\n toastError(t('Error'), error.reason ? error.reason : error.message)\n })\n }, [approvalState, token, tokenContract, amountToApprove, spender, addTransaction, callWithGasPrice, t, toastError])\n\n return [approvalState, approve]\n}\n\n// wraps useApproveCallback in the context of a swap\nexport function useApproveCallbackFromTrade(trade?: Trade, allowedSlippage = 0, chainId?: number) {\n const amountToApprove = useMemo(\n () => (trade ? computeSlippageAdjustedAmounts(trade, allowedSlippage)[Field.INPUT] : undefined),\n [trade, allowedSlippage],\n )\n\n return useApproveCallback(amountToApprove, ROUTER_ADDRESS[chainId])\n}\n\n// Wraps useApproveCallback in the context of a Gelato Limit Orders\nexport function useApproveCallbackFromInputCurrencyAmount(currencyAmountIn: CurrencyAmount | undefined) {\n const gelatoLibrary = useGelatoLimitOrdersLib()\n\n return useApproveCallback(currencyAmountIn, gelatoLibrary?.erc20OrderRouter.address ?? undefined)\n}\n","import { useCallback } from 'react'\nimport { TransactionResponse } from '@ethersproject/providers'\nimport { Contract, CallOverrides } from '@ethersproject/contracts'\nimport { useGasPrice } from 'state/user/hooks'\nimport get from 'lodash/get'\nimport * as Sentry from '@sentry/react'\n\nexport function useCallWithGasPrice() {\n const gasPrice = useGasPrice()\n\n /**\n * Perform a contract call with a gas price returned from useGasPrice\n * @param contract Used to perform the call\n * @param methodName The name of the method called\n * @param methodArgs An array of arguments to pass to the method\n * @param overrides An overrides object to pass to the method. gasPrice passed in here will take priority over the price returned by useGasPrice\n * @returns https://docs.ethers.io/v5/api/providers/types/#providers-TransactionReceipt\n */\n const callWithGasPrice = useCallback(\n async (\n contract: Contract,\n methodName: string,\n methodArgs: any[] = [],\n overrides: CallOverrides = null,\n ): Promise => {\n Sentry.addBreadcrumb({\n type: 'Transaction',\n message: `Call with gas price: ${gasPrice}`,\n data: {\n contractAddress: contract.address,\n methodName,\n methodArgs,\n overrides,\n },\n })\n const contractMethod = get(contract, methodName)\n const hasManualGasPriceOverride = overrides?.gasPrice\n\n const tx = await contractMethod(\n ...methodArgs,\n hasManualGasPriceOverride ? { ...overrides } : { ...overrides, gasPrice },\n )\n\n if (tx) {\n Sentry.addBreadcrumb({\n type: 'Transaction',\n message: `Transaction sent: ${tx.hash}`,\n data: {\n hash: tx.hash,\n from: tx.from,\n gasLimit: tx.gasLimit?.toString(),\n nonce: tx.nonce,\n },\n })\n }\n\n return tx\n },\n [gasPrice],\n )\n\n return { callWithGasPrice }\n}\n","import { BigNumber } from '@ethersproject/bignumber'\nimport { useMemo } from 'react'\nimport { useSelector } from 'react-redux'\nimport { AppState } from '../state'\nimport useCurrentBlockTimestamp from './useCurrentBlockTimestamp'\n\n// combines the block timestamp with the user setting to give the deadline that should be used for any submitted transaction\nexport default function useTransactionDeadline(): BigNumber | undefined {\n const ttl = useSelector((state) => state.user.userDeadline)\n const blockTimestamp = useCurrentBlockTimestamp()\n return useMemo(() => {\n if (blockTimestamp && ttl) return blockTimestamp.add(ttl)\n return undefined\n }, [blockTimestamp, ttl])\n}\n","import { BigNumber } from '@ethersproject/bignumber'\nimport { useSingleCallResult } from '../state/multicall/hooks'\nimport { useMulticallContract } from './useContract'\n\n// gets the current timestamp from the blockchain\nexport default function useCurrentBlockTimestamp(): BigNumber | undefined {\n const multicall = useMulticallContract()\n return useSingleCallResult(multicall, 'getCurrentBlockTimestamp')?.result?.[0]\n}\n","import * as Sentry from '@sentry/react'\n\nconst assignError = (maybeError: any) => {\n if (typeof maybeError === 'string') {\n return new Error(maybeError)\n }\n if (typeof maybeError === 'object') {\n const error = new Error(maybeError?.message ?? String(maybeError))\n if (maybeError?.stack) {\n error.stack = maybeError.stack\n }\n if (maybeError?.code) {\n error.name = maybeError.code\n }\n return error\n }\n return maybeError\n}\n\nexport const isUserRejected = (err) => {\n // provider user rejected error code\n return typeof err === 'object' && 'code' in err && err.code === 4001\n}\n\nconst ENABLED_LOG = false\n\nexport const logError = (error: Error | unknown) => {\n if (ENABLED_LOG) {\n if (error instanceof Error) {\n Sentry.captureException(error)\n } else {\n Sentry.captureException(assignError(error), error)\n }\n }\n console.error(error)\n}\n","import { TranslateFunction } from 'contexts/Localization'\n\n/**\n * This is hacking out the revert reason from the ethers provider thrown error however it can.\n * This object seems to be undocumented by ethers.\n * @param error an error from the ethers provider\n * @param t Translation function\n */\nexport function transactionErrorToUserReadableMessage(error: any, t: TranslateFunction) {\n let reason: string | undefined\n while (error) {\n reason = error.reason ?? error.data?.message ?? error.message ?? reason\n // eslint-disable-next-line no-param-reassign\n error = error.error ?? error.data?.originalError\n }\n\n if (reason?.indexOf('execution reverted: ') === 0) reason = reason.substring('execution reverted: '.length)\n\n switch (reason) {\n case 'PancakeRouter: EXPIRED':\n return t(\n 'The transaction could not be sent because the deadline has passed. Please check that your transaction deadline is not too low.',\n )\n case 'PancakeRouter: INSUFFICIENT_OUTPUT_AMOUNT':\n case 'PancakeRouter: EXCESSIVE_INPUT_AMOUNT':\n case 'PancakeRouter: INSUFFICIENT_A_AMOUNT':\n case 'PancakeRouter: INSUFFICIENT_B_AMOUNT':\n return t(\n 'This transaction will not succeed either due to price movement or fee on transfer. Try increasing your slippage tolerance.',\n )\n case 'TransferHelper: TRANSFER_FROM_FAILED':\n return t('The input token cannot be transferred. There may be an issue with the input token.')\n case 'Pancake: TRANSFER_FAILED':\n return t('The output token cannot be transferred. There may be an issue with the output token.')\n default:\n if (reason?.indexOf('undefined is not an object') !== -1) {\n console.error(error, reason)\n return t(\n 'An error occurred when trying to execute this operation. You may need to increase your slippage tolerance. If that does not work, there may be an incompatibility with the token you are trading.',\n )\n }\n return t('Unknown error%reason%. Try increasing your slippage tolerance.', {\n reason: reason ? `: \"${reason}\"` : '',\n })\n }\n}\n"],"names":["props","_jsxs","Svg","_object_spread_props","_object_spread","viewBox","children","_jsx","fillRule","clipRule","d","fill","width","height","xmlns","href","_templateObject","data","_tagged_template_literal","_templateObject1","_templateObject2","_templateObject3","_templateObject4","rotate","keyframes","float","Container","styled","componentId","RotatingPancakeIcon","PancakeIcon","withConfig","PanIcon","param","_size","size","concat","StyledInput","error","theme","colors","failure","text","align","textSubtle","inputRegex","RegExp","Input","memo","value","onUserInput","placeholder","rest","useTranslation","t","onChange","event","nextUserInput","target","replace","test","escapeRegExp","inputMode","title","autoComplete","autoCorrect","type","pattern","minLength","maxLength","spellCheck","Tooltip","isTooltipDisplayed","tooltipTop","tooltipRight","tooltipFontSize","contrast","invertedContrast","CopyButton","tooltipMessage","buttonColor","useState","setIsTooltipDisplayed","displayTooltip","setTimeout","CopyIcon","style","cursor","color","onClick","copyText","InputRow","selected","UsdRow","CurrencySelectButton","Button","attrs","variant","scale","zapStyle","css","background","cardBorder","LabelRow","InputPanel","backgroundAlt","input","shadows","Overlay","CurrencyInputPanel","selectedCurrencyBalance","onInputBlur","onMax","label","onCurrencySelect","currency","disableCurrencySelect","hideBalance","beforeButton","pair","otherCurrency","id","showCommonBases","disabled","showBUSD","showQuickInputButton","isMaxShow","maxAmount","onPercentInput","address","useAccount","useCurrencyBalance","account","undefined","currentLanguage","locale","token","liquidityToken","Token","tokenAddress","isAddress","amountInDollar","useBUSDCurrencyAmount","Number","isFinite","onPresentCurrencyModal","useModal","CurrencySearchModal","selectedCurrency","otherSelectedCurrency","useTheme","isDark","Box","position","Flex","alignItems","justifyContent","className","DoubleCurrencyLogo","currency0","token0","currency1","token1","margin","CurrencyLogo","marginRight","Text","bold","symbol","length","slice","ChevronDownIcon","gap","ml","canRegisterToken","MetamaskIcon","registerToken","decimals","WrappedTokenInfo","logoURI","fontSize","display","balance","toSignificant","as","NumericalInput","onBlur","val","mr","formatNumber","map","percent","data-dd-action-name","textTransform","toLocaleUpperCase","Wrapper","Section","AutoColumn","ConfirmedIcon","ColumnCenter","ConfirmationPendingContent","pendingText","Spinner","justify","small","textAlign","TransactionSubmittedContent","onDismiss","chainId","hash","currencyToAdd","wrappedCurrency","ArrowUpIcon","strokeWidth","Link","external","getBscScanLink","mt","RowFixed","asset","ConfirmationModalContent","bottomContent","topContent","TransactionErrorContent","message","ErrorIcon","wordBreak","pt","customOnDismiss","attemptingTxn","content","useNetwork","chain","getChainId","handleDismiss","useCallback","Modal","headerBackground","owner","spender","contract","useTokenContract","inputs","useMemo","allowance","useSingleCallResult","result","TokenAmount","toString","useApproveCallback","amountToApprove","useCallWithGasPrice","callWithGasPrice","useToast","toastError","currentAllowance","useTokenAllowance","pendingApproval","useHasPendingApproval","approvalState","ETHER","ApprovalState","APPROVED","lessThan","PENDING","NOT_APPROVED","UNKNOWN","tokenContract","addTransaction","useTransactionAdder","approve","useExact","estimatedGas","console","estimateGas","MaxUint256","catch","raw","gasLimit","calculateGasMargin","then","response","summary","approval","logError","reason","useApproveCallbackFromTrade","trade","allowedSlippage","computeSlippageAdjustedAmounts","Field","ROUTER_ADDRESS","gasPrice","useGasPrice","methodName","methodArgs","overrides","contractMethod","hasManualGasPriceOverride","tx","Sentry","contractAddress","get","from","nonce","useTransactionDeadline","ttl","useSelector","state","user","userDeadline","blockTimestamp","multicall","useMulticallContract","useCurrentBlockTimestamp","add","transactionErrorToUserReadableMessage","originalError","indexOf","substring"],"sourceRoot":""}