22 lines
15 KiB
JavaScript
22 lines
15 KiB
JavaScript
"use strict";
|
|
/*
|
|
* ATTENTION: An "eval-source-map" devtool has been used.
|
|
* This devtool is neither made for production nor for readable output files.
|
|
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
* or disable the default devtool with "devtool: false".
|
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
*/
|
|
self["webpackHotUpdate_N_E"]("app/page",{
|
|
|
|
/***/ "(app-pages-browser)/./components/ProtocolInformation.tsx":
|
|
/*!********************************************!*\
|
|
!*** ./components/ProtocolInformation.tsx ***!
|
|
\********************************************/
|
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ProtocolInformation)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"(app-pages-browser)/./node_modules/next/dist/compiled/react/jsx-dev-runtime.js\");\n/* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/image */ \"(app-pages-browser)/./node_modules/next/dist/api/image.js\");\n/* harmony import */ var _contexts_AppContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/contexts/AppContext */ \"(app-pages-browser)/./contexts/AppContext.tsx\");\n/* __next_internal_client_entry_do_not_use__ default auto */ \nvar _s = $RefreshSig$();\n\n\nfunction ProtocolLink(param) {\n let { icon, label, arrowIcon } = param;\n return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n className: \"bg-bg-subtle dark:bg-gray-700 rounded-xl border border-border-gray dark:border-gray-600 px-4 py-3.5 flex items-center justify-between w-full hover:bg-gray-50 dark:hover:bg-gray-600 transition-colors\",\n children: [\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"flex items-center gap-1\",\n children: [\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(next_image__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n src: icon,\n alt: \"\",\n width: 20,\n height: 24\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 16,\n columnNumber: 9\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n className: \"text-body-small font-medium text-text-tertiary dark:text-gray-300\",\n children: label\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 17,\n columnNumber: 9\n }, this)\n ]\n }, void 0, true, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 15,\n columnNumber: 7\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(next_image__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n src: arrowIcon,\n alt: \"\",\n width: 20,\n height: 24\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 21,\n columnNumber: 7\n }, this)\n ]\n }, void 0, true, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 14,\n columnNumber: 5\n }, this);\n}\n_c = ProtocolLink;\nfunction ProtocolInformation() {\n _s();\n const { t } = (0,_contexts_AppContext__WEBPACK_IMPORTED_MODULE_2__.useApp)();\n return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"bg-bg-surface dark:bg-gray-800 rounded-3xl border border-border-gray dark:border-gray-700 px-6 py-8 flex flex-col gap-4\",\n children: [\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"h3\", {\n className: \"text-body-large font-bold text-text-primary dark:text-white\",\n children: t(\"protocol.title\")\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 31,\n columnNumber: 7\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"flex flex-col gap-2\",\n children: [\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(ProtocolLink, {\n icon: \"/component-17.svg\",\n label: t(\"protocol.whitepaper\"),\n arrowIcon: \"/component-18.svg\"\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 35,\n columnNumber: 9\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(ProtocolLink, {\n icon: \"/component-19.svg\",\n label: t(\"protocol.documentation\"),\n arrowIcon: \"/component-110.svg\"\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 40,\n columnNumber: 9\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(ProtocolLink, {\n icon: \"/component-111.svg\",\n label: t(\"protocol.github\"),\n arrowIcon: \"/component-112.svg\"\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 45,\n columnNumber: 9\n }, this)\n ]\n }, void 0, true, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 34,\n columnNumber: 7\n }, this)\n ]\n }, void 0, true, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ProtocolInformation.tsx\",\n lineNumber: 30,\n columnNumber: 5\n }, this);\n}\n_s(ProtocolInformation, \"rmdboRahqM69INa/+46anrA8qcQ=\", false, function() {\n return [\n _contexts_AppContext__WEBPACK_IMPORTED_MODULE_2__.useApp\n ];\n});\n_c1 = ProtocolInformation;\nvar _c, _c1;\n$RefreshReg$(_c, \"ProtocolLink\");\n$RefreshReg$(_c1, \"ProtocolInformation\");\n\n\n;\n // Wrapped in an IIFE to avoid polluting the global scope\n ;\n (function () {\n var _a, _b;\n // Legacy CSS implementations will `eval` browser code in a Node.js context\n // to extract CSS. For backwards compatibility, we need to check we're in a\n // browser context before continuing.\n if (typeof self !== 'undefined' &&\n // AMP / No-JS mode does not inject these helpers:\n '$RefreshHelpers$' in self) {\n // @ts-ignore __webpack_module__ is global\n var currentExports = module.exports;\n // @ts-ignore __webpack_module__ is global\n var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null;\n // This cannot happen in MainTemplate because the exports mismatch between\n // templating and execution.\n self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports signature on update so we can compare the boundary\n // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797)\n module.hot.dispose(function (data) {\n data.prevSignature =\n self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports);\n });\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n // @ts-ignore importMeta is replaced in the loader\n module.hot.accept();\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevSignature !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) {\n module.hot.invalidate();\n }\n else {\n self.$RefreshHelpers$.scheduleUpdate();\n }\n }\n }\n else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n var isNoLongerABoundary = prevSignature !== null;\n if (isNoLongerABoundary) {\n module.hot.invalidate();\n }\n }\n }\n })();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKGFwcC1wYWdlcy1icm93c2VyKS8uL2NvbXBvbmVudHMvUHJvdG9jb2xJbmZvcm1hdGlvbi50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBRStCO0FBQ2dCO0FBUS9DLFNBQVNFLGFBQWEsS0FBNkM7UUFBN0MsRUFBRUMsSUFBSSxFQUFFQyxLQUFLLEVBQUVDLFNBQVMsRUFBcUIsR0FBN0M7SUFDcEIscUJBQ0UsOERBQUNDO1FBQU9DLFdBQVU7OzBCQUNoQiw4REFBQ0M7Z0JBQUlELFdBQVU7O2tDQUNiLDhEQUFDUCxrREFBS0E7d0JBQUNTLEtBQUtOO3dCQUFNTyxLQUFJO3dCQUFHQyxPQUFPO3dCQUFJQyxRQUFROzs7Ozs7a0NBQzVDLDhEQUFDQzt3QkFBS04sV0FBVTtrQ0FDYkg7Ozs7Ozs7Ozs7OzswQkFHTCw4REFBQ0osa0RBQUtBO2dCQUFDUyxLQUFLSjtnQkFBV0ssS0FBSTtnQkFBR0MsT0FBTztnQkFBSUMsUUFBUT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hcC00XCI+XG4gICAgICA8aDMgY2xhc3NOYW1lPVwidGV4dC1ib2R5LWxhcmdlIGZvbnQtYm9sZCB0ZXh0LXRleHQtcHJpbWFyeSBkYXJrOnRleHQtd2hpdGVcIj5cbiAgICAgICAge3QoXCJwcm90b2NvbC50aXRsZVwiKX1cbiAgICAgIDwvaDM+XG4gICAgICA8ZGl2IGNsYXNzTmFtZT1cImZsZXggZmxleC1jb2wgZ2FwLTJcIj5cbiAgICAgICAgPFByb3RvY29sTGlua1xuICAgICAgICAgIGljb249XCIvY29tcG9uZW50LTE3LnN2Z1wiXG4gICAgICAgICAgbGFiZWw9e3QoXCJwcm90b2NvbC53aGl0ZXBhcGVyXCIpfVxuICAgICAgICAgIGFycm93SWNvbj1cIi9jb21wb25lbnQtMTguc3ZnXCJcbiAgICAgICAgLz5cbiAgICAgICAgPFByb3RvY29sTGlua1xuICAgICAgICAgIGljb249XCIvY29tcG9uZW50LTE5LnN2Z1wiXG4gICAgICAgICAgbGFiZWw9e3QoXCJwcm90b2NvbC5kb2N1bWVudGF0aW9uXCIpfVxuICAgICAgICAgIGFycm93SWNvbj1cIi9jb21wb25lbnQtMTEwLnN2Z1wiXG4gICAgICAgIC8+XG4gICAgICAgIDxQcm90b2NvbExpbmtcbiAgICAgICAgICBpY29uPVwiL2NvbXBvbmVudC0xMTEuc3ZnXCJcbiAgICAgICAgICBsYWJlbD17dChcInByb3RvY29sLmdpdGh1YlwiKX1cbiAgICAgICAgICBhcnJvd0ljb249XCIvY29tcG9uZW50LTExMi5zdmdcIlxuICAgICAgICAvPlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG4gICk7XG59XG4iXSwibmFtZXMiOlsiSW1hZ2UiLCJ1c2VBcHAiLCJQcm90b2NvbExpbmsiLCJpY29uIiwibGFiZWwiLCJhcnJvd0ljb24iLCJidXR0b24iLCJjbGFzc05hbWUiLCJkaXYiLCJzcmMiLCJhbHQiLCJ3aWR0aCIsImhlaWdodCIsInNwYW4iLCJQcm90b2NvbEluZm9ybWF0aW9uIiwidCIsImgzIl0sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///(app-pages-browser)/./components/ProtocolInformation.tsx\n"));
|
|
|
|
/***/ })
|
|
|
|
}); |