"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)/./src/app/page.tsx":
/*!**************************!*\
  !*** ./src/app/page.tsx ***!
  \**************************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {

eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\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_navigation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! next/navigation */ \"(app-pages-browser)/./node_modules/next/dist/api/navigation.js\");\n/* harmony import */ var _components_navbar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/navbar */ \"(app-pages-browser)/./src/components/navbar.tsx\");\n/* harmony import */ var _components_user_dashboard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/user_dashboard */ \"(app-pages-browser)/./src/components/user_dashboard.tsx\");\n/* harmony import */ var _components_model_dashboard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/model_dashboard */ \"(app-pages-browser)/./src/components/model_dashboard.tsx\");\n/* harmony import */ var _components_view_users__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/view_users */ \"(app-pages-browser)/./src/components/view_users.tsx\");\n/* harmony import */ var _components_teams__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/teams */ \"(app-pages-browser)/./src/components/teams.tsx\");\n/* harmony import */ var _components_admins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/admins */ \"(app-pages-browser)/./src/components/admins.tsx\");\n/* harmony import */ var _components_settings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/components/settings */ \"(app-pages-browser)/./src/components/settings.tsx\");\n/* harmony import */ var _components_general_settings__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/components/general_settings */ \"(app-pages-browser)/./src/components/general_settings.tsx\");\n/* harmony import */ var _components_pass_through_settings__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/components/pass_through_settings */ \"(app-pages-browser)/./src/components/pass_through_settings.tsx\");\n/* harmony import */ var _components_budgets_budget_panel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/components/budgets/budget_panel */ \"(app-pages-browser)/./src/components/budgets/budget_panel.tsx\");\n/* harmony import */ var _components_model_hub__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/components/model_hub */ \"(app-pages-browser)/./src/components/model_hub.tsx\");\n/* harmony import */ var _components_api_ref__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/components/api_ref */ \"(app-pages-browser)/./src/components/api_ref.tsx\");\n/* harmony import */ var _components_chat_ui__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/components/chat_ui */ \"(app-pages-browser)/./src/components/chat_ui.tsx\");\n/* harmony import */ var _components_leftnav__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../components/leftnav */ \"(app-pages-browser)/./src/components/leftnav.tsx\");\n/* harmony import */ var _components_usage__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../components/usage */ \"(app-pages-browser)/./src/components/usage.tsx\");\n/* harmony import */ var _components_cache_dashboard__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/components/cache_dashboard */ \"(app-pages-browser)/./src/components/cache_dashboard.tsx\");\n/* harmony import */ var jwt_decode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! jwt-decode */ \"(app-pages-browser)/./node_modules/jwt-decode/build/esm/index.js\");\n/* harmony import */ var _barrel_optimize_names_Typography_antd__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! __barrel_optimize__?names=Typography!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/typography/index.js\");\n/* harmony import */ var _components_networking__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../components/networking */ \"(app-pages-browser)/./src/components/networking.tsx\");\n/* __next_internal_client_entry_do_not_use__ default auto */ \nvar _s = $RefreshSig$();\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction getCookie(name) {\n    console.log(\"COOKIES\", document.cookie);\n    const cookieValue = document.cookie.split(\"; \").find((row)=>row.startsWith(name + \"=\"));\n    return cookieValue ? cookieValue.split(\"=\")[1] : null;\n}\nfunction formatUserRole(userRole) {\n    if (!userRole) {\n        return \"Undefined Role\";\n    }\n    console.log(\"Received user role: \".concat(userRole.toLowerCase()));\n    console.log(\"Received user role length: \".concat(userRole.toLowerCase().length));\n    switch(userRole.toLowerCase()){\n        case \"app_owner\":\n            return \"App Owner\";\n        case \"demo_app_owner\":\n            return \"App Owner\";\n        case \"app_admin\":\n            return \"Admin\";\n        case \"proxy_admin\":\n            return \"Admin\";\n        case \"proxy_admin_viewer\":\n            return \"Admin Viewer\";\n        case \"internal_user\":\n            return \"Internal User\";\n        case \"internal_viewer\":\n            return \"Internal Viewer\";\n        case \"app_user\":\n            return \"App User\";\n        default:\n            return \"Unknown Role\";\n    }\n}\nconst CreateKeyPage = ()=>{\n    _s();\n    const { Title, Paragraph } = _barrel_optimize_names_Typography_antd__WEBPACK_IMPORTED_MODULE_21__[\"default\"];\n    const [userRole, setUserRole] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(\"\");\n    const [premiumUser, setPremiumUser] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n    const [userEmail, setUserEmail] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [teams, setTeams] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [keys, setKeys] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [proxySettings, setProxySettings] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({\n        PROXY_BASE_URL: \"\",\n        PROXY_LOGOUT_URL: \"\"\n    });\n    const [showSSOBanner, setShowSSOBanner] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(true);\n    const searchParams = (0,next_navigation__WEBPACK_IMPORTED_MODULE_2__.useSearchParams)();\n    const [modelData, setModelData] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({\n        data: []\n    });\n    const userID = searchParams.get(\"userID\");\n    const invitation_id = searchParams.get(\"invitation_id\");\n    const token = getCookie(\"token\");\n    const [page, setPage] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(()=>{\n        if (true) {\n            return localStorage.getItem(\"selectedPage\") || \"api-keys\";\n        }\n        return \"api-keys\";\n    });\n    (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{\n        localStorage.setItem(\"selectedPage\", page);\n    }, [\n        page\n    ]);\n    const [accessToken, setAccessToken] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{\n        if (token) {\n            const decoded = (0,jwt_decode__WEBPACK_IMPORTED_MODULE_19__.jwtDecode)(token);\n            if (decoded) {\n                // cast decoded to dictionary\n                console.log(\"Decoded token:\", decoded);\n                console.log(\"Decoded key:\", decoded.key);\n                // set accessToken\n                setAccessToken(decoded.key);\n                // check if userRole is defined\n                if (decoded.user_role) {\n                    const formattedUserRole = formatUserRole(decoded.user_role);\n                    console.log(\"Decoded user_role:\", formattedUserRole);\n                    setUserRole(formattedUserRole);\n                    if (formattedUserRole == \"Admin Viewer\") {\n                        setPage(\"usage\");\n                    }\n                } else {\n                    console.log(\"User role not defined\");\n                }\n                if (decoded.user_email) {\n                    setUserEmail(decoded.user_email);\n                } else {\n                    console.log(\"User Email is not set \".concat(decoded));\n                }\n                if (decoded.login_method) {\n                    setShowSSOBanner(decoded.login_method == \"username_password\" ? true : false);\n                } else {\n                    console.log(\"User Email is not set \".concat(decoded));\n                }\n                if (decoded.premium_user) {\n                    setPremiumUser(decoded.premium_user);\n                }\n                if (decoded.auth_header_name) {\n                    (0,_components_networking__WEBPACK_IMPORTED_MODULE_20__.setGlobalLitellmHeaderName)(decoded.auth_header_name);\n                }\n            }\n        }\n    }, [\n        token\n    ]);\n    return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react__WEBPACK_IMPORTED_MODULE_1__.Suspense, {\n        fallback: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n            children: \"Loading...\"\n        }, void 0, false, {\n            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n            lineNumber: 148,\n            columnNumber: 25\n        }, void 0),\n        children: invitation_id ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_user_dashboard__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n            userID: userID,\n            userRole: userRole,\n            premiumUser: premiumUser,\n            teams: teams,\n            keys: keys,\n            setUserRole: setUserRole,\n            userEmail: userEmail,\n            setUserEmail: setUserEmail,\n            setTeams: setTeams,\n            setKeys: setKeys\n        }, void 0, false, {\n            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n            lineNumber: 151,\n            columnNumber: 11\n        }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n            className: \"flex flex-col min-h-screen\",\n            children: [\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_navbar__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                    userID: userID,\n                    userRole: userRole,\n                    userEmail: userEmail,\n                    premiumUser: premiumUser,\n                    setProxySettings: setProxySettings,\n                    proxySettings: proxySettings\n                }, void 0, false, {\n                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                    lineNumber: 165,\n                    columnNumber: 9\n                }, undefined),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"flex flex-1 overflow-auto\",\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"mt-8\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_leftnav__WEBPACK_IMPORTED_MODULE_16__[\"default\"], {\n                                setPage: setPage,\n                                userRole: userRole,\n                                defaultSelectedKey: page\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                                lineNumber: 175,\n                                columnNumber: 17\n                            }, undefined)\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 174,\n                            columnNumber: 11\n                        }, undefined),\n                        page == \"api-keys\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_user_dashboard__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            premiumUser: premiumUser,\n                            teams: teams,\n                            keys: keys,\n                            setUserRole: setUserRole,\n                            userEmail: userEmail,\n                            setUserEmail: setUserEmail,\n                            setTeams: setTeams,\n                            setKeys: setKeys\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 183,\n                            columnNumber: 13\n                        }, undefined) : page == \"models\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_model_dashboard__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            token: token,\n                            keys: keys,\n                            accessToken: accessToken,\n                            modelData: modelData,\n                            setModelData: setModelData,\n                            premiumUser: premiumUser\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 196,\n                            columnNumber: 13\n                        }, undefined) : page == \"llm-playground\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_chat_ui__WEBPACK_IMPORTED_MODULE_15__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            token: token,\n                            accessToken: accessToken\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 207,\n                            columnNumber: 13\n                        }, undefined) : page == \"users\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_view_users__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            token: token,\n                            keys: keys,\n                            teams: teams,\n                            accessToken: accessToken,\n                            setKeys: setKeys\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 214,\n                            columnNumber: 13\n                        }, undefined) : page == \"teams\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_teams__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n                            teams: teams,\n                            setTeams: setTeams,\n                            searchParams: searchParams,\n                            accessToken: accessToken,\n                            userID: userID,\n                            userRole: userRole\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 224,\n                            columnNumber: 13\n                        }, undefined) : page == \"admin-panel\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_admins__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n                            setTeams: setTeams,\n                            searchParams: searchParams,\n                            accessToken: accessToken,\n                            showSSOBanner: showSSOBanner,\n                            premiumUser: premiumUser\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 233,\n                            columnNumber: 13\n                        }, undefined) : page == \"api_ref\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_api_ref__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n                            proxySettings: proxySettings\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 241,\n                            columnNumber: 13\n                        }, undefined) : page == \"settings\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_settings__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            accessToken: accessToken,\n                            premiumUser: premiumUser\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 245,\n                            columnNumber: 13\n                        }, undefined) : page == \"budgets\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_budgets_budget_panel__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n                            accessToken: accessToken\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 252,\n                            columnNumber: 13\n                        }, undefined) : page == \"general-settings\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_general_settings__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            accessToken: accessToken,\n                            modelData: modelData\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 254,\n                            columnNumber: 13\n                        }, undefined) : page == \"model-hub\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_model_hub__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n                            accessToken: accessToken,\n                            publicPage: false,\n                            premiumUser: premiumUser\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 261,\n                            columnNumber: 13\n                        }, undefined) : page == \"caching\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_cache_dashboard__WEBPACK_IMPORTED_MODULE_18__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            token: token,\n                            accessToken: accessToken,\n                            premiumUser: premiumUser\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 267,\n                            columnNumber: 13\n                        }, undefined) : page == \"pass-through-settings\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_pass_through_settings__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            accessToken: accessToken,\n                            modelData: modelData\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 275,\n                            columnNumber: 13\n                        }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_usage__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n                            userID: userID,\n                            userRole: userRole,\n                            token: token,\n                            accessToken: accessToken,\n                            keys: keys,\n                            premiumUser: premiumUser\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                            lineNumber: 282,\n                            columnNumber: 13\n                        }, undefined)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n                    lineNumber: 173,\n                    columnNumber: 9\n                }, undefined)\n            ]\n        }, void 0, true, {\n            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n            lineNumber: 164,\n            columnNumber: 9\n        }, undefined)\n    }, void 0, false, {\n        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/app/page.tsx\",\n        lineNumber: 148,\n        columnNumber: 5\n    }, undefined);\n};\n_s(CreateKeyPage, \"8Zzo0upqqvVbx5t0XqxXLZCXMEM=\", false, function() {\n    return [\n        next_navigation__WEBPACK_IMPORTED_MODULE_2__.useSearchParams\n    ];\n});\n_c = CreateKeyPage;\n/* harmony default export */ __webpack_exports__[\"default\"] = (CreateKeyPage);\nvar _c;\n$RefreshReg$(_c, \"CreateKeyPage\");\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, \n//# sourceURL=webpack-internal:///(app-pages-browser)/./src/app/page.tsx\n"));

/***/ }),

/***/ "(app-pages-browser)/./src/components/leftnav.tsx":
/*!************************************!*\
  !*** ./src/components/leftnav.tsx ***!
  \************************************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {

eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\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 _barrel_optimize_names_Layout_Menu_antd__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! __barrel_optimize__?names=Layout,Menu!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/layout/index.js\");\n/* harmony import */ var _barrel_optimize_names_Layout_Menu_antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! __barrel_optimize__?names=Layout,Menu!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/menu/index.js\");\n/* harmony import */ var _barrel_optimize_names_Text_tremor_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! __barrel_optimize__?names=Text!=!@tremor/react */ \"(app-pages-browser)/__barrel_optimize__?names=Text!=!./node_modules/@tremor/react/dist/index.js\");\n\n\n\nconst { Sider } = _barrel_optimize_names_Layout_Menu_antd__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\nconst old_admin_roles = [\n    \"Admin\",\n    \"Admin Viewer\"\n];\nconst v2_admin_role_names = [\n    \"proxy_admin\",\n    \"proxy_admin_viewer\",\n    \"org_admin\"\n];\nconst all_admin_roles = [\n    ...old_admin_roles,\n    ...v2_admin_role_names\n];\nconst rolesAllowedToSeeUsage = [\n    \"Admin\",\n    \"Admin Viewer\",\n    \"Internal User\",\n    \"Internal Viewer\"\n];\n// Note: If a menu item does not have a role, it is visible to all roles.\nconst menuItems = [\n    {\n        key: \"1\",\n        page: \"api-keys\",\n        label: \"Virtual Keys\"\n    },\n    {\n        key: \"3\",\n        page: \"llm-playground\",\n        label: \"Test Key\"\n    },\n    {\n        key: \"2\",\n        page: \"models\",\n        label: \"Models\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"4\",\n        page: \"usage\",\n        label: \"Usage\"\n    },\n    {\n        key: \"6\",\n        page: \"teams\",\n        label: \"Teams\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"5\",\n        page: \"users\",\n        label: \"Internal Users\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"8\",\n        page: \"settings\",\n        label: \"Logging & Alerts\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"9\",\n        page: \"caching\",\n        label: \"Caching\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"10\",\n        page: \"budgets\",\n        label: \"Budgets\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"11\",\n        page: \"general-settings\",\n        label: \"Router Settings\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"12\",\n        page: \"pass-through-settings\",\n        label: \"Pass-Through\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"13\",\n        page: \"admin-panel\",\n        label: \"Admin Settings\",\n        roles: all_admin_roles\n    },\n    {\n        key: \"14\",\n        page: \"api_ref\",\n        label: \"API Reference\"\n    },\n    {\n        key: \"16\",\n        page: \"model-hub\",\n        label: \"Model Hub\"\n    }\n];\n// The Sidebar component can now be simplified to:\nconst Sidebar = (param)=>{\n    let { setPage, userRole, defaultSelectedKey } = param;\n    // Find the menu item that matches the default page to get its key\n    const selectedMenuItem = menuItems.find((item)=>item.page === defaultSelectedKey);\n    const selectedMenuKey = (selectedMenuItem === null || selectedMenuItem === void 0 ? void 0 : selectedMenuItem.key) || \"1\";\n    const filteredMenuItems = menuItems.filter((item)=>!item.roles || item.roles.includes(userRole));\n    return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Layout_Menu_antd__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        style: {\n            minHeight: \"100vh\",\n            maxWidth: userRole === \"Admin Viewer\" ? \"120px\" : \"145px\"\n        },\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Sider, {\n            width: userRole === \"Admin Viewer\" ? 120 : 145,\n            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Layout_Menu_antd__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                mode: \"inline\",\n                selectedKeys: [\n                    selectedMenuKey\n                ],\n                style: {\n                    height: \"100%\",\n                    borderRight: 0\n                },\n                children: filteredMenuItems.map((item)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Layout_Menu_antd__WEBPACK_IMPORTED_MODULE_3__[\"default\"].Item, {\n                        onClick: ()=>setPage(item.page),\n                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Text_tremor_react__WEBPACK_IMPORTED_MODULE_1__.Text, {\n                            children: item.label\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/leftnav.tsx\",\n                            lineNumber: 71,\n                            columnNumber: 15\n                        }, undefined)\n                    }, item.key, false, {\n                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/leftnav.tsx\",\n                        lineNumber: 70,\n                        columnNumber: 13\n                    }, undefined))\n            }, void 0, false, {\n                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/leftnav.tsx\",\n                lineNumber: 64,\n                columnNumber: 9\n            }, undefined)\n        }, void 0, false, {\n            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/leftnav.tsx\",\n            lineNumber: 63,\n            columnNumber: 7\n        }, undefined)\n    }, void 0, false, {\n        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/leftnav.tsx\",\n        lineNumber: 62,\n        columnNumber: 5\n    }, undefined);\n};\n_c = Sidebar;\n/* harmony default export */ __webpack_exports__[\"default\"] = (Sidebar);\nvar _c;\n$RefreshReg$(_c, \"Sidebar\");\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, \n//# sourceURL=webpack-internal:///(app-pages-browser)/./src/components/leftnav.tsx\n"));

/***/ }),

/***/ "(app-pages-browser)/./src/components/view_key_table.tsx":
/*!*******************************************!*\
  !*** ./src/components/view_key_table.tsx ***!
  \*******************************************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {

eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\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 _networking__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./networking */ \"(app-pages-browser)/./src/components/networking.tsx\");\n/* harmony import */ var _barrel_optimize_names_add_date_fns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! __barrel_optimize__?names=add!=!date-fns */ \"(app-pages-browser)/./node_modules/date-fns/esm/add/index.js\");\n/* harmony import */ var _heroicons_react_outline__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @heroicons/react/outline */ \"(app-pages-browser)/./node_modules/@heroicons/react/outline/esm/InformationCircleIcon.js\");\n/* harmony import */ var _heroicons_react_outline__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @heroicons/react/outline */ \"(app-pages-browser)/./node_modules/@heroicons/react/outline/esm/PencilAltIcon.js\");\n/* harmony import */ var _heroicons_react_outline__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @heroicons/react/outline */ \"(app-pages-browser)/./node_modules/@heroicons/react/outline/esm/RefreshIcon.js\");\n/* harmony import */ var _heroicons_react_outline__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @heroicons/react/outline */ \"(app-pages-browser)/./node_modules/@heroicons/react/outline/esm/TrashIcon.js\");\n/* harmony import */ var _barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! __barrel_optimize__?names=Badge,Button,Card,Col,Grid,Icon,Table,TableBody,TableCell,TableHead,TableHeaderCell,TableRow,Text,TextInput,Title!=!@tremor/react */ \"(app-pages-browser)/__barrel_optimize__?names=Badge,Button,Card,Col,Grid,Icon,Table,TableBody,TableCell,TableHead,TableHeaderCell,TableRow,Text,TextInput,Title!=!./node_modules/@tremor/react/dist/index.js\");\n/* harmony import */ var _barrel_optimize_names_Select_SelectItem_tremor_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! __barrel_optimize__?names=Select,SelectItem!=!@tremor/react */ \"(app-pages-browser)/__barrel_optimize__?names=Select,SelectItem!=!./node_modules/@tremor/react/dist/index.js\");\n/* harmony import */ var _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! __barrel_optimize__?names=Button,Form,InputNumber,Modal,Select,message!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/select/index.js\");\n/* harmony import */ var _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! __barrel_optimize__?names=Button,Form,InputNumber,Modal,Select,message!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/form/index.js\");\n/* harmony import */ var _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! __barrel_optimize__?names=Button,Form,InputNumber,Modal,Select,message!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/message/index.js\");\n/* harmony import */ var _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! __barrel_optimize__?names=Button,Form,InputNumber,Modal,Select,message!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/modal/index.js\");\n/* harmony import */ var _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! __barrel_optimize__?names=Button,Form,InputNumber,Modal,Select,message!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/input-number/index.js\");\n/* harmony import */ var _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! __barrel_optimize__?names=Button,Form,InputNumber,Modal,Select,message!=!antd */ \"(app-pages-browser)/./node_modules/antd/es/button/index.js\");\n/* harmony import */ var react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-copy-to-clipboard */ \"(app-pages-browser)/./node_modules/react-copy-to-clipboard/lib/index.js\");\n/* harmony import */ var react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_5__);\n/* __next_internal_client_entry_do_not_use__ default auto */ \nvar _s = $RefreshSig$();\n\n\n\n\n\n\n\n\n\nconst { Option } = _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\nconst isLocal = \"development\" === \"development\";\nconst proxyBaseUrl = isLocal ? \"http://localhost:4000\" : null;\nif (isLocal != true) {\n    console.log = function() {};\n}\nconst ViewKeyTable = (param)=>{\n    let { userID, userRole, accessToken, selectedTeam, data, setData, teams, premiumUser } = param;\n    _s();\n    var _s1 = $RefreshSig$(), _s2 = $RefreshSig$();\n    const [isButtonClicked, setIsButtonClicked] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n    const [isDeleteModalOpen, setIsDeleteModalOpen] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n    const [keyToDelete, setKeyToDelete] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [selectedItem, setSelectedItem] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [spendData, setSpendData] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [predictedSpendString, setPredictedSpendString] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(\"\");\n    const [editModalVisible, setEditModalVisible] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n    const [infoDialogVisible, setInfoDialogVisible] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n    const [selectedToken, setSelectedToken] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [userModels, setUserModels] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]);\n    const initialKnownTeamIDs = new Set();\n    const [modelLimitModalVisible, setModelLimitModalVisible] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n    const [regenerateDialogVisible, setRegenerateDialogVisible] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n    const [regeneratedKey, setRegeneratedKey] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [regenerateFormData, setRegenerateFormData] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [regenerateForm] = _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].useForm();\n    const [newExpiryTime, setNewExpiryTime] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [knownTeamIDs, setKnownTeamIDs] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(initialKnownTeamIDs);\n    (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{\n        const calculateNewExpiryTime = (duration)=>{\n            if (!duration) {\n                return null;\n            }\n            try {\n                const now = new Date();\n                let newExpiry;\n                if (duration.endsWith(\"s\")) {\n                    newExpiry = (0,_barrel_optimize_names_add_date_fns__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(now, {\n                        seconds: parseInt(duration)\n                    });\n                } else if (duration.endsWith(\"h\")) {\n                    newExpiry = (0,_barrel_optimize_names_add_date_fns__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(now, {\n                        hours: parseInt(duration)\n                    });\n                } else if (duration.endsWith(\"d\")) {\n                    newExpiry = (0,_barrel_optimize_names_add_date_fns__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(now, {\n                        days: parseInt(duration)\n                    });\n                } else {\n                    throw new Error(\"Invalid duration format\");\n                }\n                return newExpiry.toLocaleString(\"en-US\", {\n                    year: \"numeric\",\n                    month: \"numeric\",\n                    day: \"numeric\",\n                    hour: \"numeric\",\n                    minute: \"numeric\",\n                    second: \"numeric\",\n                    hour12: true\n                });\n            } catch (error) {\n                return null;\n            }\n        };\n        console.log(\"in calculateNewExpiryTime for selectedToken\", selectedToken);\n        // When a new duration is entered\n        if (regenerateFormData === null || regenerateFormData === void 0 ? void 0 : regenerateFormData.duration) {\n            setNewExpiryTime(calculateNewExpiryTime(regenerateFormData.duration));\n        } else {\n            setNewExpiryTime(null);\n        }\n        console.log(\"calculateNewExpiryTime:\", newExpiryTime);\n    }, [\n        selectedToken,\n        regenerateFormData === null || regenerateFormData === void 0 ? void 0 : regenerateFormData.duration\n    ]);\n    (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{\n        const fetchUserModels = async ()=>{\n            try {\n                if (userID === null) {\n                    return;\n                }\n                if (accessToken !== null && userRole !== null) {\n                    const model_available = await (0,_networking__WEBPACK_IMPORTED_MODULE_2__.modelAvailableCall)(accessToken, userID, userRole);\n                    let available_model_names = model_available[\"data\"].map((element)=>element.id);\n                    console.log(\"available_model_names:\", available_model_names);\n                    setUserModels(available_model_names);\n                }\n            } catch (error) {\n                console.error(\"Error fetching user models:\", error);\n            }\n        };\n        fetchUserModels();\n    }, [\n        accessToken,\n        userID,\n        userRole\n    ]);\n    const handleModelLimitClick = (token)=>{\n        setSelectedToken(token);\n        setModelLimitModalVisible(true);\n    };\n    const handleModelLimitSubmit = async (updatedMetadata)=>{\n        if (accessToken == null || selectedToken == null) {\n            return;\n        }\n        const formValues = {\n            ...selectedToken,\n            metadata: updatedMetadata,\n            key: selectedToken.token\n        };\n        try {\n            let newKeyValues = await (0,_networking__WEBPACK_IMPORTED_MODULE_2__.keyUpdateCall)(accessToken, formValues);\n            console.log(\"Model limits updated:\", newKeyValues);\n            // Update the keys with the updated key\n            if (data) {\n                const updatedData = data.map((key)=>key.token === selectedToken.token ? newKeyValues : key);\n                setData(updatedData);\n            }\n            _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"].success(\"Model-specific limits updated successfully\");\n        } catch (error) {\n            console.error(\"Error updating model-specific limits:\", error);\n            _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"].error(\"Failed to update model-specific limits\");\n        }\n        setModelLimitModalVisible(false);\n        setSelectedToken(null);\n    };\n    (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{\n        if (teams) {\n            const teamIDSet = new Set();\n            teams.forEach((team, index)=>{\n                const team_obj = team.team_id;\n                teamIDSet.add(team_obj);\n            });\n            setKnownTeamIDs(teamIDSet);\n        }\n    }, [\n        teams\n    ]);\n    const EditKeyModal = (param)=>{\n        let { visible, onCancel, token, onSubmit } = param;\n        _s1();\n        const [form] = _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].useForm();\n        const [keyTeam, setKeyTeam] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(selectedTeam);\n        const [errorModels, setErrorModels] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]);\n        const [errorBudget, setErrorBudget] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);\n        const handleOk = ()=>{\n            form.validateFields().then((values)=>{\n                // const updatedValues = {...values, team_id: team.team_id};\n                // onSubmit(updatedValues);\n                form.resetFields();\n            }).catch((error)=>{\n                console.error(\"Validation failed:\", error);\n            });\n        };\n        return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n            title: \"Edit Key\",\n            visible: visible,\n            width: 800,\n            footer: null,\n            onOk: handleOk,\n            onCancel: onCancel,\n            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n                form: form,\n                onFinish: handleEditSubmit,\n                initialValues: {\n                    ...token,\n                    budget_duration: token.budget_duration\n                },\n                labelCol: {\n                    span: 8\n                },\n                wrapperCol: {\n                    span: 16\n                },\n                labelAlign: \"left\",\n                children: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                        children: [\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                                name: \"key_alias\",\n                                label: \"Key Alias\",\n                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TextInput, {}, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 295,\n                                    columnNumber: 19\n                                }, undefined)\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 294,\n                                columnNumber: 17\n                            }, undefined),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                                label: \"Models\",\n                                name: \"models\",\n                                rules: [\n                                    {\n                                        validator: (rule, value)=>{\n                                            const errorModels = value.filter((model)=>!keyTeam.models.includes(model) && model !== \"all-team-models\" && model !== \"all-proxy-models\" && !keyTeam.models.includes(\"all-proxy-models\"));\n                                            console.log(\"errorModels: \".concat(errorModels));\n                                            if (errorModels.length > 0) {\n                                                return Promise.reject(\"Some models are not part of the new team's models - \".concat(errorModels, \"Team models: \").concat(keyTeam.models));\n                                            } else {\n                                                return Promise.resolve();\n                                            }\n                                        }\n                                    }\n                                ],\n                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n                                    mode: \"multiple\",\n                                    placeholder: \"Select models\",\n                                    style: {\n                                        width: \"100%\"\n                                    },\n                                    children: [\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Option, {\n                                            value: \"all-team-models\",\n                                            children: \"All Team Models\"\n                                        }, \"all-team-models\", false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 321,\n                                            columnNumber: 19\n                                        }, undefined),\n                                        keyTeam && keyTeam.models ? keyTeam.models.includes(\"all-proxy-models\") ? userModels.filter((model)=>model !== \"all-proxy-models\").map((model)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Option, {\n                                                value: model,\n                                                children: model\n                                            }, model, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 327,\n                                                columnNumber: 25\n                                            }, undefined)) : keyTeam.models.map((model)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Option, {\n                                                value: model,\n                                                children: model\n                                            }, model, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 333,\n                                                columnNumber: 25\n                                            }, undefined)) : userModels.map((model)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Option, {\n                                                value: model,\n                                                children: model\n                                            }, model, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 340,\n                                                columnNumber: 23\n                                            }, undefined))\n                                    ]\n                                }, void 0, true, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 316,\n                                    columnNumber: 17\n                                }, undefined)\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 298,\n                                columnNumber: 15\n                            }, undefined),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                                className: \"mt-8\",\n                                label: \"Max Budget (USD)\",\n                                name: \"max_budget\",\n                                help: \"Budget cannot exceed team max budget: \".concat((keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.max_budget) !== null && (keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.max_budget) !== undefined ? keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.max_budget : \"unlimited\"),\n                                rules: [\n                                    {\n                                        validator: async (_, value)=>{\n                                            if (value && keyTeam && keyTeam.max_budget !== null && value > keyTeam.max_budget) {\n                                                console.log(\"keyTeam.max_budget: \".concat(keyTeam.max_budget));\n                                                throw new Error(\"Budget cannot exceed team max budget: $\".concat(keyTeam.max_budget));\n                                            }\n                                        }\n                                    }\n                                ],\n                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                                    step: 0.01,\n                                    precision: 2,\n                                    width: 200\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 363,\n                                    columnNumber: 17\n                                }, undefined)\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 347,\n                                columnNumber: 15\n                            }, undefined),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                                className: \"mt-8\",\n                                label: \"Reset Budget\",\n                                name: \"budget_duration\",\n                                help: \"Current Reset Budget: \".concat(token.budget_duration, \", budget will be reset: \").concat(token.budget_reset_at ? new Date(token.budget_reset_at).toLocaleString() : \"Never\"),\n                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n                                    placeholder: \"n/a\",\n                                    children: [\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Option, {\n                                            value: \"daily\",\n                                            children: \"daily\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 375,\n                                            columnNumber: 19\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Option, {\n                                            value: \"weekly\",\n                                            children: \"weekly\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 376,\n                                            columnNumber: 19\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_6__[\"default\"].Option, {\n                                            value: \"monthly\",\n                                            children: \"monthly\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 377,\n                                            columnNumber: 19\n                                        }, undefined)\n                                    ]\n                                }, void 0, true, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 374,\n                                    columnNumber: 17\n                                }, undefined)\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 366,\n                                columnNumber: 15\n                            }, undefined),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                                label: \"token\",\n                                name: \"token\",\n                                hidden: true\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 381,\n                                columnNumber: 15\n                            }, undefined),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                                label: \"Team\",\n                                name: \"team_id\",\n                                className: \"mt-8\",\n                                help: \"the team this key belongs to\",\n                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Select_SelectItem_tremor_react__WEBPACK_IMPORTED_MODULE_4__.Select, {\n                                    value: token.team_alias,\n                                    children: teams === null || teams === void 0 ? void 0 : teams.map((team_obj, index)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Select_SelectItem_tremor_react__WEBPACK_IMPORTED_MODULE_4__.SelectItem, {\n                                            value: team_obj.team_id,\n                                            onClick: ()=>setKeyTeam(team_obj),\n                                            children: team_obj.team_alias\n                                        }, index, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 394,\n                                            columnNumber: 21\n                                        }, undefined))\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 392,\n                                    columnNumber: 17\n                                }, undefined)\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 386,\n                                columnNumber: 15\n                            }, undefined),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                                className: \"mt-8\",\n                                label: \"TPM Limit (tokens per minute)\",\n                                name: \"tpm_limit\",\n                                help: \"tpm_limit cannot exceed team tpm_limit \".concat((keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.tpm_limit) !== null && (keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.tpm_limit) !== undefined ? keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.tpm_limit : \"unlimited\"),\n                                rules: [\n                                    {\n                                        validator: async (_, value)=>{\n                                            if (value && keyTeam && keyTeam.tpm_limit !== null && value > keyTeam.tpm_limit) {\n                                                console.log(\"keyTeam.tpm_limit: \".concat(keyTeam.tpm_limit));\n                                                throw new Error(\"tpm_limit cannot exceed team max tpm_limit: $\".concat(keyTeam.tpm_limit));\n                                            }\n                                        }\n                                    }\n                                ],\n                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                                    step: 1,\n                                    precision: 1,\n                                    width: 200\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 421,\n                                    columnNumber: 17\n                                }, undefined)\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 405,\n                                columnNumber: 15\n                            }, undefined),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                                className: \"mt-8\",\n                                label: \"RPM Limit (requests per minute)\",\n                                name: \"rpm_limit\",\n                                help: \"rpm_limit cannot exceed team max tpm_limit: \".concat((keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.rpm_limit) !== null && (keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.rpm_limit) !== undefined ? keyTeam === null || keyTeam === void 0 ? void 0 : keyTeam.rpm_limit : \"unlimited\"),\n                                rules: [\n                                    {\n                                        validator: async (_, value)=>{\n                                            if (value && keyTeam && keyTeam.rpm_limit !== null && value > keyTeam.rpm_limit) {\n                                                console.log(\"keyTeam.rpm_limit: \".concat(keyTeam.rpm_limit));\n                                                throw new Error(\"rpm_limit cannot exceed team max rpm_limit: $\".concat(keyTeam.rpm_limit));\n                                            }\n                                        }\n                                    }\n                                ],\n                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                                    step: 1,\n                                    precision: 1,\n                                    width: 200\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 439,\n                                    columnNumber: 17\n                                }, undefined)\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 423,\n                                columnNumber: 15\n                            }, undefined)\n                        ]\n                    }, void 0, true),\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                        style: {\n                            textAlign: \"right\",\n                            marginTop: \"10px\"\n                        },\n                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n                            htmlType: \"submit\",\n                            children: \"Edit Key\"\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 443,\n                            columnNumber: 13\n                        }, undefined)\n                    }, void 0, false, {\n                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                        lineNumber: 442,\n                        columnNumber: 11\n                    }, undefined)\n                ]\n            }, void 0, true, {\n                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                lineNumber: 284,\n                columnNumber: 9\n            }, undefined)\n        }, void 0, false, {\n            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n            lineNumber: 276,\n            columnNumber: 9\n        }, undefined);\n    };\n    _s1(EditKeyModal, \"EvUThWZe6LfX32i+bplnx7Ylg1c=\", false, function() {\n        return [\n            _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].useForm\n        ];\n    });\n    const ModelLimitModal = (param)=>{\n        let { visible, onCancel, token, onSubmit, accessToken } = param;\n        _s2();\n        const [modelLimits, setModelLimits] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({});\n        const [availableModels, setAvailableModels] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]);\n        const [newModelRow, setNewModelRow] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n        (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{\n            if (token.metadata) {\n                const tpmLimits = token.metadata.model_tpm_limit || {};\n                const rpmLimits = token.metadata.model_rpm_limit || {};\n                const combinedLimits = {};\n                Object.keys({\n                    ...tpmLimits,\n                    ...rpmLimits\n                }).forEach((model)=>{\n                    combinedLimits[model] = {\n                        tpm: tpmLimits[model] || 0,\n                        rpm: rpmLimits[model] || 0\n                    };\n                });\n                setModelLimits(combinedLimits);\n            }\n            const fetchAvailableModels = async ()=>{\n                try {\n                    const modelDataResponse = await (0,_networking__WEBPACK_IMPORTED_MODULE_2__.modelInfoCall)(accessToken, \"\", \"\");\n                    const allModelGroups = Array.from(new Set(modelDataResponse.data.map((model)=>model.model_name)));\n                    setAvailableModels(allModelGroups);\n                } catch (error) {\n                    console.error(\"Error fetching model data:\", error);\n                    _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"].error(\"Failed to fetch available models\");\n                }\n            };\n            fetchAvailableModels();\n        }, [\n            token,\n            accessToken\n        ]);\n        const handleLimitChange = (model, type, value)=>{\n            setModelLimits((prev)=>({\n                    ...prev,\n                    [model]: {\n                        ...prev[model],\n                        [type]: value || 0\n                    }\n                }));\n        };\n        const handleAddLimit = ()=>{\n            setNewModelRow(\"\");\n        };\n        const handleModelSelect = (model)=>{\n            if (!modelLimits[model]) {\n                setModelLimits((prev)=>({\n                        ...prev,\n                        [model]: {\n                            tpm: 0,\n                            rpm: 0\n                        }\n                    }));\n            }\n            setNewModelRow(null);\n        };\n        const handleRemoveModel = (model)=>{\n            setModelLimits((prev)=>{\n                const { [model]: _, ...rest } = prev;\n                return rest;\n            });\n        };\n        const handleSubmit = ()=>{\n            const updatedMetadata = {\n                ...token.metadata,\n                model_tpm_limit: Object.fromEntries(Object.entries(modelLimits).map((param)=>{\n                    let [model, limits] = param;\n                    return [\n                        model,\n                        limits.tpm\n                    ];\n                })),\n                model_rpm_limit: Object.fromEntries(Object.entries(modelLimits).map((param)=>{\n                    let [model, limits] = param;\n                    return [\n                        model,\n                        limits.rpm\n                    ];\n                }))\n            };\n            onSubmit(updatedMetadata);\n        };\n        return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n            title: \"Edit Model-Specific Limits\",\n            visible: visible,\n            onCancel: onCancel,\n            footer: null,\n            width: 800,\n            children: [\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"space-y-4\",\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Table, {\n                            children: [\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHead, {\n                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableRow, {\n                                        children: [\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                                children: \"Model\"\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 537,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                                children: \"TPM Limit\"\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 538,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                                children: \"RPM Limit\"\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 539,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                                children: \"Actions\"\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 540,\n                                                columnNumber: 17\n                                            }, undefined)\n                                        ]\n                                    }, void 0, true, {\n                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                        lineNumber: 536,\n                                        columnNumber: 15\n                                    }, undefined)\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 535,\n                                    columnNumber: 13\n                                }, undefined),\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableBody, {\n                                    children: [\n                                        Object.entries(modelLimits).map((param)=>{\n                                            let [model, limits] = param;\n                                            return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableRow, {\n                                                children: [\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                        children: model\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 546,\n                                                        columnNumber: 19\n                                                    }, undefined),\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                                                            value: limits.tpm,\n                                                            onChange: (value)=>handleLimitChange(model, \"tpm\", value)\n                                                        }, void 0, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 548,\n                                                            columnNumber: 21\n                                                        }, undefined)\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 547,\n                                                        columnNumber: 19\n                                                    }, undefined),\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                                                            value: limits.rpm,\n                                                            onChange: (value)=>handleLimitChange(model, \"rpm\", value)\n                                                        }, void 0, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 554,\n                                                            columnNumber: 21\n                                                        }, undefined)\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 553,\n                                                        columnNumber: 19\n                                                    }, undefined),\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                                                            onClick: ()=>handleRemoveModel(model),\n                                                            children: \"Remove\"\n                                                        }, void 0, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 560,\n                                                            columnNumber: 21\n                                                        }, undefined)\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 559,\n                                                        columnNumber: 19\n                                                    }, undefined)\n                                                ]\n                                            }, model, true, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 545,\n                                                columnNumber: 17\n                                            }, undefined);\n                                        }),\n                                        newModelRow !== null && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableRow, {\n                                            children: [\n                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n                                                        style: {\n                                                            width: 200\n                                                        },\n                                                        placeholder: \"Select a model\",\n                                                        onChange: handleModelSelect,\n                                                        value: newModelRow || undefined,\n                                                        children: availableModels.filter((m)=>!modelLimits.hasOwnProperty(m)).map((m)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Option, {\n                                                                value: m,\n                                                                children: m\n                                                            }, m, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 578,\n                                                                columnNumber: 27\n                                                            }, undefined))\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 569,\n                                                        columnNumber: 21\n                                                    }, undefined)\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 568,\n                                                    columnNumber: 19\n                                                }, undefined),\n                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                    children: \"-\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 584,\n                                                    columnNumber: 19\n                                                }, undefined),\n                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                    children: \"-\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 585,\n                                                    columnNumber: 19\n                                                }, undefined),\n                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                                                        onClick: ()=>setNewModelRow(null),\n                                                        children: \"Cancel\"\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 587,\n                                                        columnNumber: 21\n                                                    }, undefined)\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 586,\n                                                    columnNumber: 19\n                                                }, undefined)\n                                            ]\n                                        }, void 0, true, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 567,\n                                            columnNumber: 17\n                                        }, undefined)\n                                    ]\n                                }, void 0, true, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 543,\n                                    columnNumber: 13\n                                }, undefined)\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 534,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                            onClick: handleAddLimit,\n                            disabled: newModelRow !== null,\n                            children: \"Add Limit\"\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 595,\n                            columnNumber: 11\n                        }, undefined)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                    lineNumber: 533,\n                    columnNumber: 9\n                }, undefined),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"flex justify-end space-x-4 mt-6\",\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                            onClick: onCancel,\n                            children: \"Cancel\"\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 598,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                            onClick: handleSubmit,\n                            children: \"Save\"\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 601,\n                            columnNumber: 11\n                        }, undefined)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                    lineNumber: 597,\n                    columnNumber: 9\n                }, undefined)\n            ]\n        }, void 0, true, {\n            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n            lineNumber: 526,\n            columnNumber: 7\n        }, undefined);\n    };\n    _s2(ModelLimitModal, \"Z3/CsZdLwb3rM9RQMHPS4cSU1mk=\");\n    const handleEditClick = (token)=>{\n        console.log(\"handleEditClick:\", token);\n        // set token.token to token.token_id if token_id is not null\n        if (token.token == null) {\n            if (token.token_id !== null) {\n                token.token = token.token_id;\n            }\n        }\n        // Convert the budget_duration to the corresponding select option\n        let budgetDuration = null;\n        if (token.budget_duration) {\n            switch(token.budget_duration){\n                case \"24h\":\n                    budgetDuration = \"daily\";\n                    break;\n                case \"7d\":\n                    budgetDuration = \"weekly\";\n                    break;\n                case \"30d\":\n                    budgetDuration = \"monthly\";\n                    break;\n                default:\n                    budgetDuration = \"None\";\n            }\n        }\n        setSelectedToken({\n            ...token,\n            budget_duration: budgetDuration\n        });\n        //setSelectedToken(token);\n        setEditModalVisible(true);\n    };\n    const handleEditCancel = ()=>{\n        setEditModalVisible(false);\n        setSelectedToken(null);\n    };\n    const handleEditSubmit = async (formValues)=>{\n        /**\n   * Call API to update team with teamId and values\n   * \n   * Client-side validation: For selected team, ensure models in team + max budget < team max budget\n   */ if (accessToken == null) {\n            return;\n        }\n        const currentKey = formValues.token;\n        formValues.key = currentKey;\n        // Convert the budget_duration back to the API expected format\n        if (formValues.budget_duration) {\n            switch(formValues.budget_duration){\n                case \"daily\":\n                    formValues.budget_duration = \"24h\";\n                    break;\n                case \"weekly\":\n                    formValues.budget_duration = \"7d\";\n                    break;\n                case \"monthly\":\n                    formValues.budget_duration = \"30d\";\n                    break;\n            }\n        }\n        console.log(\"handleEditSubmit:\", formValues);\n        let newKeyValues = await (0,_networking__WEBPACK_IMPORTED_MODULE_2__.keyUpdateCall)(accessToken, formValues);\n        console.log(\"handleEditSubmit: newKeyValues\", newKeyValues);\n        // Update the keys with the update key\n        if (data) {\n            const updatedData = data.map((key)=>key.token === currentKey ? newKeyValues : key);\n            setData(updatedData);\n        }\n        _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"].success(\"Key updated successfully\");\n        setEditModalVisible(false);\n        setSelectedToken(null);\n    };\n    const handleDelete = async (token)=>{\n        console.log(\"handleDelete:\", token);\n        if (token.token == null) {\n            if (token.token_id !== null) {\n                token.token = token.token_id;\n            }\n        }\n        if (data == null) {\n            return;\n        }\n        // Set the key to delete and open the confirmation modal\n        setKeyToDelete(token.token);\n        localStorage.removeItem(\"userData\" + userID);\n        setIsDeleteModalOpen(true);\n    };\n    const confirmDelete = async ()=>{\n        if (keyToDelete == null || data == null) {\n            return;\n        }\n        try {\n            await (0,_networking__WEBPACK_IMPORTED_MODULE_2__.keyDeleteCall)(accessToken, keyToDelete);\n            // Successfully completed the deletion. Update the state to trigger a rerender.\n            const filteredData = data.filter((item)=>item.token !== keyToDelete);\n            setData(filteredData);\n        } catch (error) {\n            console.error(\"Error deleting the key:\", error);\n        // Handle any error situations, such as displaying an error message to the user.\n        }\n        // Close the confirmation modal and reset the keyToDelete\n        setIsDeleteModalOpen(false);\n        setKeyToDelete(null);\n    };\n    const cancelDelete = ()=>{\n        // Close the confirmation modal and reset the keyToDelete\n        setIsDeleteModalOpen(false);\n        setKeyToDelete(null);\n    };\n    const handleRegenerateClick = (token)=>{\n        setSelectedToken(token);\n        setNewExpiryTime(null);\n        regenerateForm.setFieldsValue({\n            key_alias: token.key_alias,\n            max_budget: token.max_budget,\n            tpm_limit: token.tpm_limit,\n            rpm_limit: token.rpm_limit,\n            duration: token.duration || \"\"\n        });\n        setRegenerateDialogVisible(true);\n    };\n    const handleRegenerateFormChange = (field, value)=>{\n        setRegenerateFormData((prev)=>({\n                ...prev,\n                [field]: value\n            }));\n    };\n    const handleRegenerateKey = async ()=>{\n        if (!premiumUser) {\n            _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"].error(\"Regenerate API Key is an Enterprise feature. Please upgrade to use this feature.\");\n            return;\n        }\n        if (selectedToken == null) {\n            return;\n        }\n        try {\n            const formValues = await regenerateForm.validateFields();\n            const response = await (0,_networking__WEBPACK_IMPORTED_MODULE_2__.regenerateKeyCall)(accessToken, selectedToken.token, formValues);\n            setRegeneratedKey(response.key);\n            // Update the data state with the new key_name\n            if (data) {\n                const updatedData = data.map((item)=>item.token === (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.token) ? {\n                        ...item,\n                        key_name: response.key_name,\n                        ...formValues\n                    } : item);\n                setData(updatedData);\n            }\n            setRegenerateDialogVisible(false);\n            regenerateForm.resetFields();\n            _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"].success(\"API Key regenerated successfully\");\n        } catch (error) {\n            console.error(\"Error regenerating key:\", error);\n            _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"].error(\"Failed to regenerate API Key\");\n        }\n    };\n    if (data == null) {\n        return;\n    }\n    console.log(\"RERENDER TRIGGERED\");\n    return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Card, {\n                className: \"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4 mt-2\",\n                children: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Table, {\n                        className: \"mt-5 max-h-[300px] min-h-[300px]\",\n                        children: [\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHead, {\n                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableRow, {\n                                    children: [\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Key Alias\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 807,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Secret Key\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 808,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Created\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 809,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Expires\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 810,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Spend (USD)\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 811,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Budget (USD)\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 812,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Budget Reset\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 813,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Models\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 814,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Rate Limits\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 815,\n                                            columnNumber: 13\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableHeaderCell, {\n                                            children: \"Rate Limits per model\"\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 816,\n                                            columnNumber: 13\n                                        }, undefined)\n                                    ]\n                                }, void 0, true, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 806,\n                                    columnNumber: 11\n                                }, undefined)\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 805,\n                                columnNumber: 9\n                            }, undefined),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableBody, {\n                                children: data.map((item)=>{\n                                    console.log(item);\n                                    // skip item if item.team_id == \"litellm-dashboard\"\n                                    if (item.team_id === \"litellm-dashboard\") {\n                                        return null;\n                                    }\n                                    if (selectedTeam) {\n                                        /**\n               * if selected team id is null -> show the keys with no team id or team id's that don't exist in db\n               */ console.log(\"item team id: \".concat(item.team_id, \", knownTeamIDs.has(item.team_id): \").concat(knownTeamIDs.has(item.team_id), \", selectedTeam id: \").concat(selectedTeam.team_id));\n                                        if (selectedTeam.team_id == null && item.team_id !== null && !knownTeamIDs.has(item.team_id)) {\n                                        // do nothing -> returns a row with this key\n                                        } else if (item.team_id != selectedTeam.team_id) {\n                                            return null;\n                                        }\n                                        console.log(\"item team id: \".concat(item.team_id, \", is returned\"));\n                                    }\n                                    return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableRow, {\n                                        children: [\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                style: {\n                                                    maxWidth: \"2px\",\n                                                    whiteSpace: \"pre-wrap\",\n                                                    overflow: \"hidden\"\n                                                },\n                                                children: item.key_alias != null ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                    children: item.key_alias\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 843,\n                                                    columnNumber: 21\n                                                }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                    children: \"Not Set\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 845,\n                                                    columnNumber: 21\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 841,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                    children: item.key_name\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 849,\n                                                    columnNumber: 19\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 848,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: item.created_at != null ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                        style: {\n                                                            fontSize: \"0.70rem\"\n                                                        },\n                                                        children: new Date(item.created_at).toLocaleDateString()\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 854,\n                                                        columnNumber: 25\n                                                    }, undefined)\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 853,\n                                                    columnNumber: 23\n                                                }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                    style: {\n                                                        fontSize: \"0.70rem\"\n                                                    },\n                                                    children: \"Not available\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 857,\n                                                    columnNumber: 23\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 851,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: item.expires != null ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                        style: {\n                                                            fontSize: \"0.70rem\"\n                                                        },\n                                                        children: new Date(item.expires).toLocaleDateString()\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 863,\n                                                        columnNumber: 21\n                                                    }, undefined)\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 862,\n                                                    columnNumber: 19\n                                                }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                    style: {\n                                                        fontSize: \"0.70rem\"\n                                                    },\n                                                    children: \"Never\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 866,\n                                                    columnNumber: 19\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 860,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                    children: (()=>{\n                                                        try {\n                                                            return parseFloat(item.spend).toFixed(4);\n                                                        } catch (error) {\n                                                            return item.spend;\n                                                        }\n                                                    })()\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 870,\n                                                    columnNumber: 19\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 869,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: item.max_budget != null ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                    children: item.max_budget\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 883,\n                                                    columnNumber: 21\n                                                }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                    children: \"Unlimited\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 885,\n                                                    columnNumber: 21\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 881,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: item.budget_reset_at != null ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                        style: {\n                                                            fontSize: \"0.70rem\"\n                                                        },\n                                                        children: new Date(item.budget_reset_at).toLocaleString()\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 891,\n                                                        columnNumber: 23\n                                                    }, undefined)\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 890,\n                                                    columnNumber: 21\n                                                }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                    style: {\n                                                        fontSize: \"0.70rem\"\n                                                    },\n                                                    children: \"Never\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 896,\n                                                    columnNumber: 21\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 888,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: Array.isArray(item.models) ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                    style: {\n                                                        display: \"flex\",\n                                                        flexDirection: \"column\"\n                                                    },\n                                                    children: item.models.length === 0 ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                                                        children: selectedTeam && selectedTeam.models && selectedTeam.models.length > 0 ? selectedTeam.models.map((model, index)=>model === \"all-proxy-models\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Badge, {\n                                                                size: \"xs\",\n                                                                className: \"mb-1\",\n                                                                color: \"red\",\n                                                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                    children: \"All Proxy Models\"\n                                                                }, void 0, false, {\n                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                    lineNumber: 925,\n                                                                    columnNumber: 19\n                                                                }, undefined)\n                                                            }, index, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 924,\n                                                                columnNumber: 17\n                                                            }, undefined) : model === \"all-team-models\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Badge, {\n                                                                size: \"xs\",\n                                                                className: \"mb-1\",\n                                                                color: \"red\",\n                                                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                    children: \"All Team Models\"\n                                                                }, void 0, false, {\n                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                    lineNumber: 929,\n                                                                    columnNumber: 19\n                                                                }, undefined)\n                                                            }, index, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 928,\n                                                                columnNumber: 17\n                                                            }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Badge, {\n                                                                size: \"xs\",\n                                                                className: \"mb-1\",\n                                                                color: \"blue\",\n                                                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                    children: model.length > 30 ? \"\".concat(model.slice(0, 30), \"...\") : model\n                                                                }, void 0, false, {\n                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                    lineNumber: 933,\n                                                                    columnNumber: 19\n                                                                }, undefined)\n                                                            }, index, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 932,\n                                                                columnNumber: 17\n                                                            }, undefined)) : // If selected team is None or selected team's models are empty, show all models\n                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Badge, {\n                                                            size: \"xs\",\n                                                            className: \"mb-1\",\n                                                            color: \"blue\",\n                                                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                children: \"all-proxy-models\"\n                                                            }, void 0, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 940,\n                                                                columnNumber: 15\n                                                            }, undefined)\n                                                        }, void 0, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 939,\n                                                            columnNumber: 13\n                                                        }, undefined)\n                                                    }, void 0, false) : item.models.map((model, index)=>model === \"all-proxy-models\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Badge, {\n                                                            size: \"xs\",\n                                                            className: \"mb-1\",\n                                                            color: \"red\",\n                                                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                children: \"All Proxy Models\"\n                                                            }, void 0, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 948,\n                                                                columnNumber: 15\n                                                            }, undefined)\n                                                        }, index, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 947,\n                                                            columnNumber: 13\n                                                        }, undefined) : model === \"all-team-models\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Badge, {\n                                                            size: \"xs\",\n                                                            className: \"mb-1\",\n                                                            color: \"red\",\n                                                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                children: \"All Team Models\"\n                                                            }, void 0, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 952,\n                                                                columnNumber: 15\n                                                            }, undefined)\n                                                        }, index, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 951,\n                                                            columnNumber: 13\n                                                        }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Badge, {\n                                                            size: \"xs\",\n                                                            className: \"mb-1\",\n                                                            color: \"blue\",\n                                                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                children: model.length > 30 ? \"\".concat(model.slice(0, 30), \"...\") : model\n                                                            }, void 0, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 956,\n                                                                columnNumber: 15\n                                                            }, undefined)\n                                                        }, index, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 955,\n                                                            columnNumber: 13\n                                                        }, undefined))\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 918,\n                                                    columnNumber: 5\n                                                }, undefined) : null\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 916,\n                                                columnNumber: 1\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                    children: [\n                                                        \"TPM: \",\n                                                        item.tpm_limit ? item.tpm_limit : \"Unlimited\",\n                                                        \" \",\n                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"br\", {}, void 0, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 968,\n                                                            columnNumber: 21\n                                                        }, undefined),\n                                                        \" RPM:\",\n                                                        \" \",\n                                                        item.rpm_limit ? item.rpm_limit : \"Unlimited\"\n                                                    ]\n                                                }, void 0, true, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 966,\n                                                    columnNumber: 19\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 965,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                                                    size: \"xs\",\n                                                    onClick: ()=>handleModelLimitClick(item),\n                                                    children: \"Edit Limits\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 973,\n                                                    columnNumber: 17\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 972,\n                                                columnNumber: 17\n                                            }, undefined),\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TableCell, {\n                                                children: [\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Icon, {\n                                                        onClick: ()=>{\n                                                            setSelectedToken(item);\n                                                            setInfoDialogVisible(true);\n                                                        },\n                                                        icon: _heroicons_react_outline__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n                                                        size: \"sm\"\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 976,\n                                                        columnNumber: 21\n                                                    }, undefined),\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n                                                        open: infoDialogVisible,\n                                                        onCancel: ()=>{\n                                                            setInfoDialogVisible(false);\n                                                            setSelectedToken(null);\n                                                        },\n                                                        footer: null,\n                                                        width: 800,\n                                                        children: selectedToken && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                                                            children: [\n                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                                    className: \"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 mt-8\",\n                                                                    children: [\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Card, {\n                                                                            children: [\n                                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                                                    className: \"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content\",\n                                                                                    children: \"Spend\"\n                                                                                }, void 0, false, {\n                                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                    lineNumber: 1001,\n                                                                                    columnNumber: 13\n                                                                                }, undefined),\n                                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                                                    className: \"mt-2 flex items-baseline space-x-2.5\",\n                                                                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                                                        className: \"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong\",\n                                                                                        children: (()=>{\n                                                                                            try {\n                                                                                                return parseFloat(selectedToken.spend).toFixed(4);\n                                                                                            } catch (error) {\n                                                                                                return selectedToken.spend;\n                                                                                            }\n                                                                                        })()\n                                                                                    }, void 0, false, {\n                                                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                        lineNumber: 1005,\n                                                                                        columnNumber: 15\n                                                                                    }, undefined)\n                                                                                }, void 0, false, {\n                                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                    lineNumber: 1004,\n                                                                                    columnNumber: 13\n                                                                                }, undefined)\n                                                                            ]\n                                                                        }, void 0, true, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1000,\n                                                                            columnNumber: 11\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Card, {\n                                                                            children: [\n                                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                                                    className: \"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content\",\n                                                                                    children: \"Budget\"\n                                                                                }, void 0, false, {\n                                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                    lineNumber: 1018,\n                                                                                    columnNumber: 13\n                                                                                }, undefined),\n                                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                                                    className: \"mt-2 flex items-baseline space-x-2.5\",\n                                                                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                                                        className: \"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong\",\n                                                                                        children: selectedToken.max_budget != null ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                                                                                            children: [\n                                                                                                selectedToken.max_budget,\n                                                                                                selectedToken.budget_duration && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                                                                                                    children: [\n                                                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"br\", {}, void 0, false, {\n                                                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                                            lineNumber: 1028,\n                                                                                                            columnNumber: 25\n                                                                                                        }, undefined),\n                                                                                                        \"Budget will be reset at \",\n                                                                                                        selectedToken.budget_reset_at ? new Date(selectedToken.budget_reset_at).toLocaleString() : \"Never\"\n                                                                                                    ]\n                                                                                                }, void 0, true)\n                                                                                            ]\n                                                                                        }, void 0, true) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                                                                                            children: \"Unlimited\"\n                                                                                        }, void 0, false)\n                                                                                    }, void 0, false, {\n                                                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                        lineNumber: 1022,\n                                                                                        columnNumber: 15\n                                                                                    }, undefined)\n                                                                                }, void 0, false, {\n                                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                    lineNumber: 1021,\n                                                                                    columnNumber: 13\n                                                                                }, undefined)\n                                                                            ]\n                                                                        }, item.name, true, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1017,\n                                                                            columnNumber: 11\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Card, {\n                                                                            children: [\n                                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                                                    className: \"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content\",\n                                                                                    children: \"Expires\"\n                                                                                }, void 0, false, {\n                                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                    lineNumber: 1040,\n                                                                                    columnNumber: 13\n                                                                                }, undefined),\n                                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                                                    className: \"mt-2 flex items-baseline space-x-2.5\",\n                                                                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                                                        className: \"text-tremor-default font-small text-tremor-content-strong dark:text-dark-tremor-content-strong\",\n                                                                                        children: selectedToken.expires != null ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                                                                                            children: new Date(selectedToken.expires).toLocaleString(undefined, {\n                                                                                                day: \"numeric\",\n                                                                                                month: \"long\",\n                                                                                                year: \"numeric\",\n                                                                                                hour: \"numeric\",\n                                                                                                minute: \"numeric\",\n                                                                                                second: \"numeric\"\n                                                                                            })\n                                                                                        }, void 0, false) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                                                                                            children: \"Never\"\n                                                                                        }, void 0, false)\n                                                                                    }, void 0, false, {\n                                                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                        lineNumber: 1044,\n                                                                                        columnNumber: 15\n                                                                                    }, undefined)\n                                                                                }, void 0, false, {\n                                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                    lineNumber: 1043,\n                                                                                    columnNumber: 13\n                                                                                }, undefined)\n                                                                            ]\n                                                                        }, item.name, true, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1039,\n                                                                            columnNumber: 11\n                                                                        }, undefined)\n                                                                    ]\n                                                                }, void 0, true, {\n                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                    lineNumber: 999,\n                                                                    columnNumber: 7\n                                                                }, undefined),\n                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Card, {\n                                                                    className: \"my-4\",\n                                                                    children: [\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Title, {\n                                                                            children: \"Token Name\"\n                                                                        }, void 0, false, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1065,\n                                                                            columnNumber: 9\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                            className: \"my-1\",\n                                                                            children: selectedToken.key_alias ? selectedToken.key_alias : selectedToken.key_name\n                                                                        }, void 0, false, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1066,\n                                                                            columnNumber: 9\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Title, {\n                                                                            children: \"Token ID\"\n                                                                        }, void 0, false, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1067,\n                                                                            columnNumber: 9\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                            className: \"my-1 text-[12px]\",\n                                                                            children: selectedToken.token\n                                                                        }, void 0, false, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1068,\n                                                                            columnNumber: 9\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Title, {\n                                                                            children: \"User ID\"\n                                                                        }, void 0, false, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1069,\n                                                                            columnNumber: 9\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                            className: \"my-1 text-[12px]\",\n                                                                            children: selectedToken.user_id\n                                                                        }, void 0, false, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1070,\n                                                                            columnNumber: 9\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Title, {\n                                                                            children: \"Metadata\"\n                                                                        }, void 0, false, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1071,\n                                                                            columnNumber: 9\n                                                                        }, undefined),\n                                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                                                            className: \"my-1\",\n                                                                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"pre\", {\n                                                                                children: [\n                                                                                    JSON.stringify(selectedToken.metadata),\n                                                                                    \" \"\n                                                                                ]\n                                                                            }, void 0, true, {\n                                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                                lineNumber: 1072,\n                                                                                columnNumber: 32\n                                                                            }, undefined)\n                                                                        }, void 0, false, {\n                                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                            lineNumber: 1072,\n                                                                            columnNumber: 9\n                                                                        }, undefined)\n                                                                    ]\n                                                                }, void 0, true, {\n                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                    lineNumber: 1064,\n                                                                    columnNumber: 7\n                                                                }, undefined),\n                                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                                                                    className: \"mx-auto flex items-center\",\n                                                                    onClick: ()=>{\n                                                                        setInfoDialogVisible(false);\n                                                                        setSelectedToken(null);\n                                                                    },\n                                                                    children: \"Close\"\n                                                                }, void 0, false, {\n                                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                    lineNumber: 1075,\n                                                                    columnNumber: 9\n                                                                }, undefined)\n                                                            ]\n                                                        }, void 0, true)\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 987,\n                                                        columnNumber: 5\n                                                    }, undefined),\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Icon, {\n                                                        icon: _heroicons_react_outline__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n                                                        size: \"sm\",\n                                                        onClick: ()=>handleEditClick(item)\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 1088,\n                                                        columnNumber: 19\n                                                    }, undefined),\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Icon, {\n                                                        onClick: ()=>handleRegenerateClick(item),\n                                                        icon: _heroicons_react_outline__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n                                                        size: \"sm\"\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 1093,\n                                                        columnNumber: 19\n                                                    }, undefined),\n                                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Icon, {\n                                                        onClick: ()=>handleDelete(item),\n                                                        icon: _heroicons_react_outline__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n                                                        size: \"sm\"\n                                                    }, void 0, false, {\n                                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                        lineNumber: 1098,\n                                                        columnNumber: 19\n                                                    }, undefined)\n                                                ]\n                                            }, void 0, true, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 975,\n                                                columnNumber: 17\n                                            }, undefined)\n                                        ]\n                                    }, item.token, true, {\n                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                        lineNumber: 840,\n                                        columnNumber: 15\n                                    }, undefined);\n                                })\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 819,\n                                columnNumber: 9\n                            }, undefined)\n                        ]\n                    }, void 0, true, {\n                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                        lineNumber: 804,\n                        columnNumber: 7\n                    }, undefined),\n                    isDeleteModalOpen && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                        className: \"fixed z-10 inset-0 overflow-y-auto\",\n                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0\",\n                            children: [\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                    className: \"fixed inset-0 transition-opacity\",\n                                    \"aria-hidden\": \"true\",\n                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                        className: \"absolute inset-0 bg-gray-500 opacity-75\"\n                                    }, void 0, false, {\n                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                        lineNumber: 1116,\n                                        columnNumber: 15\n                                    }, undefined)\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 1112,\n                                    columnNumber: 13\n                                }, undefined),\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                                    className: \"hidden sm:inline-block sm:align-middle sm:h-screen\",\n                                    \"aria-hidden\": \"true\",\n                                    children: \"​\"\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 1120,\n                                    columnNumber: 13\n                                }, undefined),\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                    className: \"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full\",\n                                    children: [\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                            className: \"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4\",\n                                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                className: \"sm:flex sm:items-start\",\n                                                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                    className: \"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left\",\n                                                    children: [\n                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"h3\", {\n                                                            className: \"text-lg leading-6 font-medium text-gray-900\",\n                                                            children: \"Delete Key\"\n                                                        }, void 0, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 1132,\n                                                            columnNumber: 21\n                                                        }, undefined),\n                                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                                            className: \"mt-2\",\n                                                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                                                className: \"text-sm text-gray-500\",\n                                                                children: \"Are you sure you want to delete this key ?\"\n                                                            }, void 0, false, {\n                                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                                lineNumber: 1136,\n                                                                columnNumber: 23\n                                                            }, undefined)\n                                                        }, void 0, false, {\n                                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                            lineNumber: 1135,\n                                                            columnNumber: 21\n                                                        }, undefined)\n                                                    ]\n                                                }, void 0, true, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 1131,\n                                                    columnNumber: 19\n                                                }, undefined)\n                                            }, void 0, false, {\n                                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                lineNumber: 1130,\n                                                columnNumber: 17\n                                            }, undefined)\n                                        }, void 0, false, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 1129,\n                                            columnNumber: 15\n                                        }, undefined),\n                                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                            className: \"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse\",\n                                            children: [\n                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                                                    onClick: confirmDelete,\n                                                    color: \"red\",\n                                                    className: \"ml-2\",\n                                                    children: \"Delete\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 1144,\n                                                    columnNumber: 17\n                                                }, undefined),\n                                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                                                    onClick: cancelDelete,\n                                                    children: \"Cancel\"\n                                                }, void 0, false, {\n                                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                                    lineNumber: 1147,\n                                                    columnNumber: 17\n                                                }, undefined)\n                                            ]\n                                        }, void 0, true, {\n                                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                            lineNumber: 1143,\n                                            columnNumber: 15\n                                        }, undefined)\n                                    ]\n                                }, void 0, true, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 1128,\n                                    columnNumber: 13\n                                }, undefined)\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1111,\n                            columnNumber: 11\n                        }, undefined)\n                    }, void 0, false, {\n                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                        lineNumber: 1110,\n                        columnNumber: 9\n                    }, undefined)\n                ]\n            }, void 0, true, {\n                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                lineNumber: 803,\n                columnNumber: 5\n            }, undefined),\n            selectedToken && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(EditKeyModal, {\n                visible: editModalVisible,\n                onCancel: handleEditCancel,\n                token: selectedToken,\n                onSubmit: handleEditSubmit\n            }, void 0, false, {\n                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                lineNumber: 1156,\n                columnNumber: 9\n            }, undefined),\n            selectedToken && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(ModelLimitModal, {\n                visible: modelLimitModalVisible,\n                onCancel: ()=>setModelLimitModalVisible(false),\n                token: selectedToken,\n                onSubmit: handleModelLimitSubmit,\n                accessToken: accessToken\n            }, void 0, false, {\n                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                lineNumber: 1165,\n                columnNumber: 9\n            }, undefined),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n                title: \"Regenerate API Key\",\n                visible: regenerateDialogVisible,\n                onCancel: ()=>{\n                    setRegenerateDialogVisible(false);\n                    regenerateForm.resetFields();\n                },\n                footer: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                        onClick: ()=>{\n                            setRegenerateDialogVisible(false);\n                            regenerateForm.resetFields();\n                        },\n                        className: \"mr-2\",\n                        children: \"Cancel\"\n                    }, \"cancel\", false, {\n                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                        lineNumber: 1183,\n                        columnNumber: 9\n                    }, void 0),\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                        onClick: handleRegenerateKey,\n                        disabled: !premiumUser,\n                        children: premiumUser ? \"Regenerate\" : \"Upgrade to Regenerate\"\n                    }, \"regenerate\", false, {\n                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                        lineNumber: 1189,\n                        columnNumber: 9\n                    }, void 0)\n                ],\n                children: premiumUser ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n                    form: regenerateForm,\n                    layout: \"vertical\",\n                    onValuesChange: (changedValues, allValues)=>{\n                        if (\"duration\" in changedValues) {\n                            handleRegenerateFormChange(\"duration\", changedValues.duration);\n                        }\n                    },\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                            name: \"key_alias\",\n                            label: \"Key Alias\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TextInput, {\n                                disabled: true\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 1209,\n                                columnNumber: 13\n                            }, undefined)\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1208,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                            name: \"max_budget\",\n                            label: \"Max Budget (USD)\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                                step: 0.01,\n                                precision: 2,\n                                style: {\n                                    width: \"100%\"\n                                }\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 1212,\n                                columnNumber: 13\n                            }, undefined)\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1211,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                            name: \"tpm_limit\",\n                            label: \"TPM Limit\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                                style: {\n                                    width: \"100%\"\n                                }\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 1215,\n                                columnNumber: 13\n                            }, undefined)\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1214,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                            name: \"rpm_limit\",\n                            label: \"RPM Limit\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_11__[\"default\"], {\n                                style: {\n                                    width: \"100%\"\n                                }\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 1218,\n                                columnNumber: 13\n                            }, undefined)\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1217,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].Item, {\n                            name: \"duration\",\n                            label: \"Expire Key (eg: 30s, 30h, 30d)\",\n                            className: \"mt-8\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.TextInput, {\n                                placeholder: \"\"\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 1225,\n                                columnNumber: 13\n                            }, undefined)\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1220,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"mt-2 text-sm text-gray-500\",\n                            children: [\n                                \"Current expiry: \",\n                                (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.expires) != null ? new Date(selectedToken.expires).toLocaleString() : \"Never\"\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1227,\n                            columnNumber: 11\n                        }, undefined),\n                        newExpiryTime && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"mt-2 text-sm text-green-600\",\n                            children: [\n                                \"New expiry: \",\n                                newExpiryTime\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1237,\n                            columnNumber: 13\n                        }, undefined)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                    lineNumber: 1199,\n                    columnNumber: 9\n                }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                            className: \"mb-2 text-gray-500 italic text-[12px]\",\n                            children: \"Upgrade to use this feature\"\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1244,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                            variant: \"primary\",\n                            className: \"mb-2\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                                href: \"https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat\",\n                                target: \"_blank\",\n                                children: \"Get Free Trial\"\n                            }, void 0, false, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 1246,\n                                columnNumber: 13\n                            }, undefined)\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1245,\n                            columnNumber: 11\n                        }, undefined)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                    lineNumber: 1243,\n                    columnNumber: 9\n                }, undefined)\n            }, void 0, false, {\n                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                lineNumber: 1175,\n                columnNumber: 5\n            }, undefined),\n            regeneratedKey && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n                visible: !!regeneratedKey,\n                onCancel: ()=>setRegeneratedKey(null),\n                footer: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                        onClick: ()=>setRegeneratedKey(null),\n                        children: \"Close\"\n                    }, \"close\", false, {\n                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                        lineNumber: 1260,\n                        columnNumber: 11\n                    }, void 0)\n                ],\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Grid, {\n                    numItems: 1,\n                    className: \"gap-2 w-full\",\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Title, {\n                            children: \"Regenerated Key\"\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1266,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Col, {\n                            numColSpan: 1,\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                children: [\n                                    \"Please replace your old key with the new key generated. For security reasons, \",\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"b\", {\n                                        children: \"you will not be able to view it again\"\n                                    }, void 0, false, {\n                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                        lineNumber: 1270,\n                                        columnNumber: 33\n                                    }, undefined),\n                                    \" through your LiteLLM account. If you lose this secret key, you will need to generate a new one.\"\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                lineNumber: 1268,\n                                columnNumber: 13\n                            }, undefined)\n                        }, void 0, false, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1267,\n                            columnNumber: 11\n                        }, undefined),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Col, {\n                            numColSpan: 1,\n                            children: [\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                    className: \"mt-3\",\n                                    children: \"Key Alias:\"\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 1276,\n                                    columnNumber: 13\n                                }, undefined),\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                    style: {\n                                        background: \"#f8f8f8\",\n                                        padding: \"10px\",\n                                        borderRadius: \"5px\",\n                                        marginBottom: \"10px\"\n                                    },\n                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"pre\", {\n                                        style: {\n                                            wordWrap: \"break-word\",\n                                            whiteSpace: \"normal\"\n                                        },\n                                        children: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.key_alias) || \"No alias set\"\n                                    }, void 0, false, {\n                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                        lineNumber: 1285,\n                                        columnNumber: 15\n                                    }, undefined)\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 1277,\n                                    columnNumber: 13\n                                }, undefined),\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Text, {\n                                    className: \"mt-3\",\n                                    children: \"New API Key:\"\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 1289,\n                                    columnNumber: 13\n                                }, undefined),\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                    style: {\n                                        background: \"#f8f8f8\",\n                                        padding: \"10px\",\n                                        borderRadius: \"5px\",\n                                        marginBottom: \"10px\"\n                                    },\n                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"pre\", {\n                                        style: {\n                                            wordWrap: \"break-word\",\n                                            whiteSpace: \"normal\"\n                                        },\n                                        children: regeneratedKey\n                                    }, void 0, false, {\n                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                        lineNumber: 1298,\n                                        columnNumber: 15\n                                    }, undefined)\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 1290,\n                                    columnNumber: 13\n                                }, undefined),\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_5__.CopyToClipboard, {\n                                    text: regeneratedKey,\n                                    onCopy: ()=>_barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_9__[\"default\"].success(\"API Key copied to clipboard\"),\n                                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Badge_Button_Card_Col_Grid_Icon_Table_TableBody_TableCell_TableHead_TableHeaderCell_TableRow_Text_TextInput_Title_tremor_react__WEBPACK_IMPORTED_MODULE_3__.Button, {\n                                        className: \"mt-3\",\n                                        children: \"Copy API Key\"\n                                    }, void 0, false, {\n                                        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                        lineNumber: 1303,\n                                        columnNumber: 15\n                                    }, undefined)\n                                }, void 0, false, {\n                                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                                    lineNumber: 1302,\n                                    columnNumber: 13\n                                }, undefined)\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                            lineNumber: 1275,\n                            columnNumber: 11\n                        }, undefined)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                    lineNumber: 1265,\n                    columnNumber: 9\n                }, undefined)\n            }, void 0, false, {\n                fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n                lineNumber: 1256,\n                columnNumber: 7\n            }, undefined)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/ishaanjaffer/Github/litellm/ui/litellm-dashboard/src/components/view_key_table.tsx\",\n        lineNumber: 802,\n        columnNumber: 5\n    }, undefined);\n};\n_s(ViewKeyTable, \"Y6iwN38cVK/eheVaURNDSc3Y96M=\", false, function() {\n    return [\n        _barrel_optimize_names_Button_Form_InputNumber_Modal_Select_message_antd__WEBPACK_IMPORTED_MODULE_7__[\"default\"].useForm\n    ];\n});\n_c = ViewKeyTable;\n/* harmony default export */ __webpack_exports__[\"default\"] = (ViewKeyTable);\nvar _c;\n$RefreshReg$(_c, \"ViewKeyTable\");\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, \n//# sourceURL=webpack-internal:///(app-pages-browser)/./src/components/view_key_table.tsx\n"));

/***/ })

});