Files
assetx/.next/static/webpack/app/page.fc67f3d9861431f3.hot-update.js

22 lines
49 KiB
JavaScript
Raw Normal View History

2026-01-26 17:44:27 +08:00
"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/PerformanceAnalysis.tsx":
/*!********************************************!*\
!*** ./components/PerformanceAnalysis.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 */ PerformanceAnalysis)\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 react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"(app-pages-browser)/./node_modules/next/dist/compiled/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! next/image */ \"(app-pages-browser)/./node_modules/next/dist/api/image.js\");\n/* __next_internal_client_entry_do_not_use__ default auto */ \nvar _s = $RefreshSig$();\n\n\nfunction CalendarDay(param) {\n let { day, value, type } = param;\n // Empty cell\n if (day === null) {\n return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"flex-1\"\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/PerformanceAnalysis.tsx\",\n lineNumber: 16,\n columnNumber: 12\n }, this);\n }\n const styles = {\n positive: {\n backgroundColor: \"#f2fcf7\",\n borderColor: \"#cef3e0\"\n },\n negative: {\n backgroundColor: \"#fff8f7\",\n borderColor: \"#ffdbd5\"\n },\n neutral: {\n backgroundColor: \"#f9fafb\",\n borderColor: \"#f3f4f6\"\n },\n current: {\n backgroundColor: \"#111827\",\n borderColor: \"#111827\"\n }\n };\n const isCurrent = type === \"current\";\n const textColor = isCurrent ? \"#fcfcfd\" : \"#9ca1af\";\n const valueColor = isCurrent ? \"#fcfcfd\" : \"#111827\";\n return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"rounded border flex flex-col items-center justify-center flex-1\",\n style: {\n ...styles[type],\n padding: \"12px\",\n gap: \"24px\"\n },\n children: [\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"w-full flex items-start\",\n children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n className: \"text-[10px] font-bold leading-[150%]\",\n style: {\n color: textColor\n },\n children: day\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/PerformanceAnalysis.tsx\",\n lineNumber: 51,\n columnNumber: 9\n }, this)\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/PerformanceAnalysis.tsx\",\n lineNumber: 50,\n columnNumber: 7\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"w-full flex items-end justify-end\",\n children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n className: \"text-body-small font-bold leading-[150%]\",\n style: {\n color: valueColor\n },\n children: value\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/PerformanceAnalysis.tsx\"
/***/ })
});