@bpinhosilva/agent-orchestrator 1.0.0-alpha.21 → 1.0.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/ui/assets/AgentFleet-CC0h_Ar0.js +1 -0
- package/dist/ui/assets/AgentFleet-CC0h_Ar0.js.map +1 -0
- package/dist/ui/assets/ConfirmDialog-mRH8i_xK.js +10 -0
- package/dist/ui/assets/ConfirmDialog-mRH8i_xK.js.map +1 -0
- package/dist/ui/assets/InitialsAvatar-0mIRaTK8.js +1 -0
- package/dist/ui/assets/InitialsAvatar-0mIRaTK8.js.map +1 -0
- package/dist/ui/assets/MarkdownField-flCuU7w3.js +1 -0
- package/dist/ui/assets/MarkdownField-flCuU7w3.js.map +1 -0
- package/dist/ui/assets/ProjectDetail-CY-VSV2D.js +1 -0
- package/dist/ui/assets/ProjectDetail-CY-VSV2D.js.map +1 -0
- package/dist/ui/assets/Providers-C9_lxOG1.js +1 -0
- package/dist/ui/assets/Providers-C9_lxOG1.js.map +1 -0
- package/dist/ui/assets/Scheduler-Du2cIGfB.js +1 -0
- package/dist/ui/assets/Scheduler-Du2cIGfB.js.map +1 -0
- package/dist/ui/assets/TaskDetail-BdQJCVo3.js +1 -0
- package/dist/ui/assets/TaskDetail-BdQJCVo3.js.map +1 -0
- package/dist/ui/assets/TaskManager-CWDh69pf.js +8 -0
- package/dist/ui/assets/TaskManager-CWDh69pf.js.map +1 -0
- package/dist/ui/assets/{activity-CYFCUKYz.js → activity-CIlCK2jL.js} +1 -1
- package/dist/ui/assets/activity-CIlCK2jL.js.map +1 -0
- package/dist/ui/assets/{brain-D1LPqnhA.js → brain-_N041Xks.js} +1 -1
- package/dist/ui/assets/brain-_N041Xks.js.map +1 -0
- package/dist/ui/assets/check-DgCfni6J.js +1 -0
- package/dist/ui/assets/check-DgCfni6J.js.map +1 -0
- package/dist/ui/assets/clock-C0d1RzP_.js +1 -0
- package/dist/ui/assets/clock-C0d1RzP_.js.map +1 -0
- package/dist/ui/assets/cn-i-5ItZGU.js +1 -0
- package/dist/ui/assets/cn-i-5ItZGU.js.map +1 -0
- package/dist/ui/assets/{eye-DSoNYXlu.js → eye-RB18-re_.js} +1 -1
- package/dist/ui/assets/eye-RB18-re_.js.map +1 -0
- package/dist/ui/assets/index-CCsHBe__.css +1 -0
- package/dist/ui/assets/index-yzhzS93F.js +2 -0
- package/dist/ui/assets/index-yzhzS93F.js.map +1 -0
- package/dist/ui/assets/{layers-BQR0gbW3.js → layers-D5ECV506.js} +1 -1
- package/dist/ui/assets/layers-D5ECV506.js.map +1 -0
- package/dist/ui/assets/providers-BMRq_pkm.js +1 -0
- package/dist/ui/assets/providers-BMRq_pkm.js.map +1 -0
- package/dist/ui/assets/rolldown-runtime-COnpUsM8.js +1 -0
- package/dist/ui/assets/{send-Cgv_rLex.js → send-BA7-sXzg.js} +1 -1
- package/dist/ui/assets/send-BA7-sXzg.js.map +1 -0
- package/dist/ui/assets/{shield-check-02qtz3Au.js → shield-check-D7JIluse.js} +1 -1
- package/dist/ui/assets/shield-check-D7JIluse.js.map +1 -0
- package/dist/ui/assets/{sparkles-cO3r5TCU.js → sparkles-CCXaTT3H.js} +1 -1
- package/dist/ui/assets/sparkles-CCXaTT3H.js.map +1 -0
- package/dist/ui/assets/{tasks-BZ0wO0e9.js → tasks-DEHCZk48.js} +1 -1
- package/dist/ui/assets/tasks-DEHCZk48.js.map +1 -0
- package/dist/ui/assets/{trash-2-7e8TY3SJ.js → trash-2-BNP4kC5c.js} +1 -1
- package/dist/ui/assets/trash-2-BNP4kC5c.js.map +1 -0
- package/dist/ui/assets/{trending-up-Dh3I3BnW.js → trending-up-DBTQIgW8.js} +1 -1
- package/dist/ui/assets/trending-up-DBTQIgW8.js.map +1 -0
- package/dist/ui/assets/useNotification-DK-pV16c.js +6 -0
- package/dist/ui/assets/useNotification-DK-pV16c.js.map +1 -0
- package/dist/ui/assets/{user-sikuVJBW.js → user-Cp55HCCi.js} +1 -1
- package/dist/ui/assets/user-Cp55HCCi.js.map +1 -0
- package/dist/ui/assets/vendor-dnd-CxfOy4-Z.js +5 -0
- package/dist/ui/assets/vendor-dnd-CxfOy4-Z.js.map +1 -0
- package/dist/ui/assets/vendor-forms-HC2wK6B9.js +39 -0
- package/dist/ui/assets/vendor-forms-HC2wK6B9.js.map +1 -0
- package/dist/ui/assets/vendor-markdown-Dl_1qnne.js +29 -0
- package/dist/ui/assets/vendor-markdown-Dl_1qnne.js.map +1 -0
- package/dist/ui/assets/vendor-motion-CkXYvnuI.js +9 -0
- package/dist/ui/assets/vendor-motion-CkXYvnuI.js.map +1 -0
- package/dist/ui/assets/vendor-query-DQlZ8h7P.js +1 -0
- package/dist/ui/assets/vendor-query-DQlZ8h7P.js.map +1 -0
- package/dist/ui/assets/vendor-react-CiDbU5Ns.js +11 -0
- package/dist/ui/assets/vendor-react-CiDbU5Ns.js.map +1 -0
- package/dist/ui/assets/{zap-CFqyHdPJ.js → zap-D1sST66b.js} +1 -1
- package/dist/ui/assets/zap-D1sST66b.js.map +1 -0
- package/dist/ui/index.html +9 -4
- package/package.json +1 -1
- package/dist/ui/assets/AgentFleet-CQIXvils.js +0 -6
- package/dist/ui/assets/ConfirmDialog-nQ8F6FEz.js +0 -1
- package/dist/ui/assets/MarkdownField-BvkVHJZh.js +0 -29
- package/dist/ui/assets/ProjectDetail-CZ-tFtQo.js +0 -1
- package/dist/ui/assets/Providers-C61nXOPZ.js +0 -1
- package/dist/ui/assets/Scheduler-BwWeFfsh.js +0 -1
- package/dist/ui/assets/TaskDetail-BKQ3Vgnu.js +0 -1
- package/dist/ui/assets/TaskManager-CCOnj4Gq.js +0 -16
- package/dist/ui/assets/check-BZcW41Vk.js +0 -1
- package/dist/ui/assets/clock-vIUNSAVw.js +0 -1
- package/dist/ui/assets/file-text-DyBkf5PF.js +0 -1
- package/dist/ui/assets/index-BX3YIi49.css +0 -1
- package/dist/ui/assets/index-Ctbpa_Ei.js +0 -20
- package/dist/ui/assets/providers-C3SQm75E.js +0 -1
- package/dist/ui/assets/useNotification-nXJIHD_q.js +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scheduler-Du2cIGfB.js","names":["__iconNode","__iconNode","__iconNode","__iconNode","__iconNode","__iconNode","__iconNode","exports","module"],"sources":["../../node_modules/lucide-react/dist/esm/icons/circle-check-big.js","../../node_modules/lucide-react/dist/esm/icons/fingerprint-pattern.js","../../node_modules/lucide-react/dist/esm/icons/languages.js","../../node_modules/lucide-react/dist/esm/icons/pause.js","../../node_modules/lucide-react/dist/esm/icons/play.js","../../node_modules/lucide-react/dist/esm/icons/refresh-cw.js","../../node_modules/lucide-react/dist/esm/icons/square-pen.js","../../node_modules/lucide-react/dist/esm/icons/wand-sparkles.js","../../src/api/recurrent-tasks.ts","../../node_modules/cronstrue/dist/cronstrue.js","../../src/components/CreateRecurrentTaskModal.tsx","../../src/pages/Scheduler.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.577.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M21.801 10A10 10 0 1 1 17 3.335\", key: \"yps3ct\" }],\n [\"path\", { d: \"m9 11 3 3L22 4\", key: \"1pflzl\" }]\n];\nconst CircleCheckBig = createLucideIcon(\"circle-check-big\", __iconNode);\n\nexport { __iconNode, CircleCheckBig as default };\n//# sourceMappingURL=circle-check-big.js.map\n","/**\n * @license lucide-react v0.577.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4\", key: \"1nerag\" }],\n [\"path\", { d: \"M14 13.12c0 2.38 0 6.38-1 8.88\", key: \"o46ks0\" }],\n [\"path\", { d: \"M17.29 21.02c.12-.6.43-2.3.5-3.02\", key: \"ptglia\" }],\n [\"path\", { d: \"M2 12a10 10 0 0 1 18-6\", key: \"ydlgp0\" }],\n [\"path\", { d: \"M2 16h.01\", key: \"1gqxmh\" }],\n [\"path\", { d: \"M21.8 16c.2-2 .131-5.354 0-6\", key: \"drycrb\" }],\n [\"path\", { d: \"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2\", key: \"1tidbn\" }],\n [\"path\", { d: \"M8.65 22c.21-.66.45-1.32.57-2\", key: \"13wd9y\" }],\n [\"path\", { d: \"M9 6.8a6 6 0 0 1 9 5.2v2\", key: \"1fr1j5\" }]\n];\nconst FingerprintPattern = createLucideIcon(\"fingerprint-pattern\", __iconNode);\n\nexport { __iconNode, FingerprintPattern as default };\n//# sourceMappingURL=fingerprint-pattern.js.map\n","/**\n * @license lucide-react v0.577.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m5 8 6 6\", key: \"1wu5hv\" }],\n [\"path\", { d: \"m4 14 6-6 2-3\", key: \"1k1g8d\" }],\n [\"path\", { d: \"M2 5h12\", key: \"or177f\" }],\n [\"path\", { d: \"M7 2h1\", key: \"1t2jsx\" }],\n [\"path\", { d: \"m22 22-5-10-5 10\", key: \"don7ne\" }],\n [\"path\", { d: \"M14 18h6\", key: \"1m8k6r\" }]\n];\nconst Languages = createLucideIcon(\"languages\", __iconNode);\n\nexport { __iconNode, Languages as default };\n//# sourceMappingURL=languages.js.map\n","/**\n * @license lucide-react v0.577.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { x: \"14\", y: \"3\", width: \"5\", height: \"18\", rx: \"1\", key: \"kaeet6\" }],\n [\"rect\", { x: \"5\", y: \"3\", width: \"5\", height: \"18\", rx: \"1\", key: \"1wsw3u\" }]\n];\nconst Pause = createLucideIcon(\"pause\", __iconNode);\n\nexport { __iconNode, Pause as default };\n//# sourceMappingURL=pause.js.map\n","/**\n * @license lucide-react v0.577.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z\",\n key: \"10ikf1\"\n }\n ]\n];\nconst Play = createLucideIcon(\"play\", __iconNode);\n\nexport { __iconNode, Play as default };\n//# sourceMappingURL=play.js.map\n","/**\n * @license lucide-react v0.577.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\", key: \"v9h5vc\" }],\n [\"path\", { d: \"M21 3v5h-5\", key: \"1q7to0\" }],\n [\"path\", { d: \"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\", key: \"3uifl3\" }],\n [\"path\", { d: \"M8 16H3v5\", key: \"1cv678\" }]\n];\nconst RefreshCw = createLucideIcon(\"refresh-cw\", __iconNode);\n\nexport { __iconNode, RefreshCw as default };\n//# sourceMappingURL=refresh-cw.js.map\n","/**\n * @license lucide-react v0.577.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\", key: \"1m0v6g\" }],\n [\n \"path\",\n {\n d: \"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z\",\n key: \"ohrbg2\"\n }\n ]\n];\nconst SquarePen = createLucideIcon(\"square-pen\", __iconNode);\n\nexport { __iconNode, SquarePen as default };\n//# sourceMappingURL=square-pen.js.map\n","/**\n * @license lucide-react v0.577.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72\",\n key: \"ul74o6\"\n }\n ],\n [\"path\", { d: \"m14 7 3 3\", key: \"1r5n42\" }],\n [\"path\", { d: \"M5 6v4\", key: \"ilb8ba\" }],\n [\"path\", { d: \"M19 14v4\", key: \"blhpug\" }],\n [\"path\", { d: \"M10 2v2\", key: \"7u0qdc\" }],\n [\"path\", { d: \"M7 8H3\", key: \"zfb6yr\" }],\n [\"path\", { d: \"M21 16h-4\", key: \"1cnmox\" }],\n [\"path\", { d: \"M11 3H9\", key: \"1obp7u\" }]\n];\nconst WandSparkles = createLucideIcon(\"wand-sparkles\", __iconNode);\n\nexport { __iconNode, WandSparkles as default };\n//# sourceMappingURL=wand-sparkles.js.map\n","import client from './client';\nimport type { Agent } from './agents';\nimport { TaskPriority } from './tasks';\n\nexport const RecurrentTaskStatus = {\n ACTIVE: 'active',\n PAUSED: 'paused',\n ERROR: 'error',\n} as const;\n\nexport type RecurrentTaskStatus = typeof RecurrentTaskStatus[keyof typeof RecurrentTaskStatus];\n\nexport interface RecurrentTask {\n id: string;\n title: string;\n description: string;\n status: RecurrentTaskStatus;\n priority: TaskPriority;\n cronExpression: string;\n assignee: Agent;\n lastRun?: string;\n nextRun?: string;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface CreateRecurrentTaskDto {\n title: string;\n description: string;\n status?: RecurrentTaskStatus;\n priority?: TaskPriority;\n cronExpression: string;\n assigneeId: string;\n}\n\nexport type UpdateRecurrentTaskDto = Partial<CreateRecurrentTaskDto>;\n\nexport const recurrentTasksApi = {\n create: (data: CreateRecurrentTaskDto) =>\n client.post<RecurrentTask>('/recurrent-tasks', data),\n findAll: () =>\n client.get<RecurrentTask[]>('/recurrent-tasks'),\n findOne: (id: string) =>\n client.get<RecurrentTask>(`/recurrent-tasks/${id}`),\n update: (id: string, data: UpdateRecurrentTaskDto) =>\n client.patch<RecurrentTask>(`/recurrent-tasks/${id}`, data),\n delete: (id: string) =>\n client.delete(`/recurrent-tasks/${id}`),\n};\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"cronstrue\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"cronstrue\"] = factory();\n\telse\n\t\troot[\"cronstrue\"] = factory();\n})(globalThis, () => {\nreturn /******/ (() => { // webpackBootstrap\n/******/ \t\"use strict\";\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 949\n(__unused_webpack_module, exports, __webpack_require__) {\n\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.CronParser = void 0;\nvar rangeValidator_1 = __webpack_require__(515);\nvar CronParser = (function () {\n function CronParser(expression, dayOfWeekStartIndexZero, monthStartIndexZero) {\n if (dayOfWeekStartIndexZero === void 0) { dayOfWeekStartIndexZero = true; }\n if (monthStartIndexZero === void 0) { monthStartIndexZero = false; }\n this.expression = expression;\n this.dayOfWeekStartIndexZero = dayOfWeekStartIndexZero;\n this.monthStartIndexZero = monthStartIndexZero;\n }\n CronParser.prototype.parse = function () {\n var _a;\n var parsed;\n var expression = (_a = this.expression) !== null && _a !== void 0 ? _a : '';\n if (expression === \"@reboot\") {\n parsed = [\"@reboot\", \"\", \"\", \"\", \"\", \"\", \"\"];\n return parsed;\n }\n else if (expression.startsWith('@')) {\n var special = this.parseSpecial(this.expression);\n parsed = this.extractParts(special);\n }\n else {\n parsed = this.extractParts(this.expression);\n }\n this.normalize(parsed);\n this.validate(parsed);\n return parsed;\n };\n CronParser.prototype.parseSpecial = function (expression) {\n var specialExpressions = {\n '@yearly': '0 0 1 1 *',\n '@annually': '0 0 1 1 *',\n '@monthly': '0 0 1 * *',\n '@weekly': '0 0 * * 0',\n '@daily': '0 0 * * *',\n '@midnight': '0 0 * * *',\n '@hourly': '0 * * * *',\n '@reboot': '@reboot'\n };\n var special = specialExpressions[expression];\n if (!special) {\n throw new Error('Unknown special expression.');\n }\n return special;\n };\n CronParser.prototype.extractParts = function (expression) {\n if (!this.expression) {\n throw new Error(\"cron expression is empty\");\n }\n var parsed = expression.trim().split(/[ ]+/);\n for (var i = 0; i < parsed.length; i++) {\n if (parsed[i].includes(\",\")) {\n var arrayElement = parsed[i]\n .split(\",\")\n .map(function (item) { return item.trim(); })\n .filter(function (item) { return item !== \"\"; })\n .map(function (item) { return (!isNaN(Number(item)) ? Number(item) : item); })\n .filter(function (item) { return item !== null && item !== \"\"; });\n if (arrayElement.length === 0) {\n arrayElement.push(\"*\");\n }\n arrayElement.sort(function (a, b) { return (a !== null && b !== null ? a - b : 0); });\n parsed[i] = arrayElement.map(function (item) { return (item !== null ? item.toString() : \"\"); }).join(\",\");\n }\n }\n if (parsed.length < 5) {\n throw new Error(\"Expression has only \".concat(parsed.length, \" part\").concat(parsed.length == 1 ? \"\" : \"s\", \". At least 5 parts are required.\"));\n }\n else if (parsed.length == 5) {\n parsed.unshift(\"\");\n parsed.push(\"\");\n }\n else if (parsed.length == 6) {\n var isYearWithNoSecondsPart = /\\d{4}$/.test(parsed[5]) || parsed[4] == \"?\" || parsed[2] == \"?\";\n if (isYearWithNoSecondsPart) {\n parsed.unshift(\"\");\n }\n else {\n parsed.push(\"\");\n }\n }\n else if (parsed.length > 7) {\n throw new Error(\"Expression has \".concat(parsed.length, \" parts; too many!\"));\n }\n return parsed;\n };\n CronParser.prototype.normalize = function (expressionParts) {\n var _this = this;\n expressionParts[3] = expressionParts[3].replace(\"?\", \"*\");\n expressionParts[5] = expressionParts[5].replace(\"?\", \"*\");\n expressionParts[2] = expressionParts[2].replace(\"?\", \"*\");\n if (expressionParts[0].indexOf(\"0/\") == 0) {\n expressionParts[0] = expressionParts[0].replace(\"0/\", \"*/\");\n }\n if (expressionParts[1].indexOf(\"0/\") == 0) {\n expressionParts[1] = expressionParts[1].replace(\"0/\", \"*/\");\n }\n if (expressionParts[2].indexOf(\"0/\") == 0) {\n expressionParts[2] = expressionParts[2].replace(\"0/\", \"*/\");\n }\n if (expressionParts[3].indexOf(\"1/\") == 0) {\n expressionParts[3] = expressionParts[3].replace(\"1/\", \"*/\");\n }\n if (expressionParts[4].indexOf(\"1/\") == 0) {\n expressionParts[4] = expressionParts[4].replace(\"1/\", \"*/\");\n }\n if (expressionParts[6].indexOf(\"1/\") == 0) {\n expressionParts[6] = expressionParts[6].replace(\"1/\", \"*/\");\n }\n expressionParts[5] = expressionParts[5].replace(/(^\\d)|([^#/\\s]\\d)/g, function (t) {\n var dowDigits = t.replace(/\\D/, \"\");\n var dowDigitsAdjusted = dowDigits;\n if (_this.dayOfWeekStartIndexZero) {\n if (dowDigits == \"7\") {\n dowDigitsAdjusted = \"0\";\n }\n }\n else {\n dowDigitsAdjusted = (parseInt(dowDigits) - 1).toString();\n }\n return t.replace(dowDigits, dowDigitsAdjusted);\n });\n if (expressionParts[5] == \"L\") {\n expressionParts[5] = \"6\";\n }\n if (expressionParts[3] == \"?\") {\n expressionParts[3] = \"*\";\n }\n if (expressionParts[3].indexOf(\"W\") > -1 &&\n (expressionParts[3].indexOf(\",\") > -1 || expressionParts[3].indexOf(\"-\") > -1)) {\n throw new Error(\"The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.\");\n }\n var days = {\n SUN: 0,\n MON: 1,\n TUE: 2,\n WED: 3,\n THU: 4,\n FRI: 5,\n SAT: 6,\n };\n for (var day in days) {\n expressionParts[5] = expressionParts[5].replace(new RegExp(day, \"gi\"), days[day].toString());\n }\n expressionParts[4] = expressionParts[4].replace(/(^\\d{1,2})|([^#/\\s]\\d{1,2})/g, function (t) {\n var dowDigits = t.replace(/\\D/, \"\");\n var dowDigitsAdjusted = dowDigits;\n if (_this.monthStartIndexZero) {\n dowDigitsAdjusted = (parseInt(dowDigits) + 1).toString();\n }\n return t.replace(dowDigits, dowDigitsAdjusted);\n });\n var months = {\n JAN: 1,\n FEB: 2,\n MAR: 3,\n APR: 4,\n MAY: 5,\n JUN: 6,\n JUL: 7,\n AUG: 8,\n SEP: 9,\n OCT: 10,\n NOV: 11,\n DEC: 12,\n };\n for (var month in months) {\n expressionParts[4] = expressionParts[4].replace(new RegExp(month, \"gi\"), months[month].toString());\n }\n if (expressionParts[0] == \"0\") {\n expressionParts[0] = \"\";\n }\n if (!/\\*|\\-|\\,|\\//.test(expressionParts[2]) &&\n (/\\*|\\//.test(expressionParts[1]) || /\\*|\\//.test(expressionParts[0]))) {\n expressionParts[2] += \"-\".concat(expressionParts[2]);\n }\n for (var i = 0; i < expressionParts.length; i++) {\n if (expressionParts[i].indexOf(\",\") != -1) {\n expressionParts[i] =\n expressionParts[i]\n .split(\",\")\n .filter(function (str) { return str !== \"\"; })\n .join(\",\") || \"*\";\n }\n if (expressionParts[i] == \"*/1\") {\n expressionParts[i] = \"*\";\n }\n if (expressionParts[i].indexOf(\"/\") > -1 && !/^\\*|\\-|\\,/.test(expressionParts[i])) {\n var stepRangeThrough = null;\n switch (i) {\n case 4:\n stepRangeThrough = \"12\";\n break;\n case 5:\n stepRangeThrough = \"6\";\n break;\n case 6:\n stepRangeThrough = \"9999\";\n break;\n default:\n stepRangeThrough = null;\n break;\n }\n if (stepRangeThrough !== null) {\n var parts = expressionParts[i].split(\"/\");\n expressionParts[i] = \"\".concat(parts[0], \"-\").concat(stepRangeThrough, \"/\").concat(parts[1]);\n }\n }\n }\n };\n CronParser.prototype.validate = function (parsed) {\n var standardCronPartCharacters = \"0-9,\\\\-*\\/\";\n this.validateOnlyExpectedCharactersFound(parsed[0], standardCronPartCharacters);\n this.validateOnlyExpectedCharactersFound(parsed[1], standardCronPartCharacters);\n this.validateOnlyExpectedCharactersFound(parsed[2], standardCronPartCharacters);\n this.validateOnlyExpectedCharactersFound(parsed[3], \"0-9,\\\\-*\\/LW\");\n this.validateOnlyExpectedCharactersFound(parsed[4], standardCronPartCharacters);\n this.validateOnlyExpectedCharactersFound(parsed[5], \"0-9,\\\\-*\\/L#\");\n this.validateOnlyExpectedCharactersFound(parsed[6], standardCronPartCharacters);\n this.validateAnyRanges(parsed);\n };\n CronParser.prototype.validateAnyRanges = function (parsed) {\n rangeValidator_1.default.secondRange(parsed[0]);\n rangeValidator_1.default.minuteRange(parsed[1]);\n rangeValidator_1.default.hourRange(parsed[2]);\n rangeValidator_1.default.dayOfMonthRange(parsed[3]);\n rangeValidator_1.default.monthRange(parsed[4], this.monthStartIndexZero);\n rangeValidator_1.default.dayOfWeekRange(parsed[5], this.dayOfWeekStartIndexZero);\n };\n CronParser.prototype.validateOnlyExpectedCharactersFound = function (cronPart, allowedCharsExpression) {\n var invalidChars = cronPart.match(new RegExp(\"[^\".concat(allowedCharsExpression, \"]+\"), \"gi\"));\n if (invalidChars && invalidChars.length) {\n throw new Error(\"Expression contains invalid values: '\".concat(invalidChars.toString(), \"'\"));\n }\n };\n return CronParser;\n}());\nexports.CronParser = CronParser;\n\n\n/***/ },\n\n/***/ 333\n(__unused_webpack_module, exports, __webpack_require__) {\n\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ExpressionDescriptor = void 0;\nvar stringUtilities_1 = __webpack_require__(823);\nvar cronParser_1 = __webpack_require__(949);\nvar ExpressionDescriptor = (function () {\n function ExpressionDescriptor(expression, options) {\n this.expression = expression;\n this.options = options;\n this.expressionParts = new Array(5);\n if (!this.options.locale && ExpressionDescriptor.defaultLocale) {\n this.options.locale = ExpressionDescriptor.defaultLocale;\n }\n if (!ExpressionDescriptor.locales[this.options.locale]) {\n var fallBackLocale = Object.keys(ExpressionDescriptor.locales)[0];\n console.warn(\"Locale '\".concat(this.options.locale, \"' could not be found; falling back to '\").concat(fallBackLocale, \"'.\"));\n this.options.locale = fallBackLocale;\n }\n this.i18n = ExpressionDescriptor.locales[this.options.locale];\n if (options.use24HourTimeFormat === undefined) {\n options.use24HourTimeFormat = this.i18n.use24HourTimeFormatByDefault();\n }\n }\n ExpressionDescriptor.toString = function (expression, _a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.throwExceptionOnParseError, throwExceptionOnParseError = _c === void 0 ? true : _c, _d = _b.verbose, verbose = _d === void 0 ? false : _d, _e = _b.dayOfWeekStartIndexZero, dayOfWeekStartIndexZero = _e === void 0 ? true : _e, _f = _b.monthStartIndexZero, monthStartIndexZero = _f === void 0 ? false : _f, use24HourTimeFormat = _b.use24HourTimeFormat, _g = _b.trimHoursLeadingZero, trimHoursLeadingZero = _g === void 0 ? false : _g, _h = _b.locale, locale = _h === void 0 ? null : _h, _j = _b.logicalAndDayFields, logicalAndDayFields = _j === void 0 ? false : _j;\n var options = {\n throwExceptionOnParseError: throwExceptionOnParseError,\n verbose: verbose,\n dayOfWeekStartIndexZero: dayOfWeekStartIndexZero,\n monthStartIndexZero: monthStartIndexZero,\n use24HourTimeFormat: use24HourTimeFormat,\n trimHoursLeadingZero: trimHoursLeadingZero,\n locale: locale,\n logicalAndDayFields: logicalAndDayFields,\n };\n if (options.tzOffset) {\n console.warn(\"'tzOffset' option has been deprecated and is no longer supported.\");\n }\n var descripter = new ExpressionDescriptor(expression, options);\n return descripter.getFullDescription();\n };\n ExpressionDescriptor.initialize = function (localesLoader, defaultLocale) {\n if (defaultLocale === void 0) { defaultLocale = \"en\"; }\n ExpressionDescriptor.specialCharacters = [\"/\", \"-\", \",\", \"*\"];\n ExpressionDescriptor.defaultLocale = defaultLocale;\n localesLoader.load(ExpressionDescriptor.locales);\n };\n ExpressionDescriptor.prototype.getFullDescription = function () {\n var _a, _b;\n var description = \"\";\n try {\n var parser = new cronParser_1.CronParser(this.expression, this.options.dayOfWeekStartIndexZero, this.options.monthStartIndexZero);\n this.expressionParts = parser.parse();\n if (this.expressionParts[0] === \"@reboot\") {\n return ((_b = (_a = this.i18n).atReboot) === null || _b === void 0 ? void 0 : _b.call(_a)) || \"Run once, at startup\";\n }\n var timeSegment = this.getTimeOfDayDescription();\n var dayOfMonthDesc = this.getDayOfMonthDescription();\n var monthDesc = this.getMonthDescription();\n var dayOfWeekDesc = this.getDayOfWeekDescription();\n var yearDesc = this.getYearDescription();\n description += timeSegment + dayOfMonthDesc + dayOfWeekDesc + monthDesc + yearDesc;\n description = this.transformVerbosity(description, !!this.options.verbose);\n description = description.charAt(0).toLocaleUpperCase() + description.substr(1);\n }\n catch (ex) {\n if (!this.options.throwExceptionOnParseError) {\n description = this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();\n }\n else {\n throw \"\".concat(ex);\n }\n }\n return description;\n };\n ExpressionDescriptor.prototype.getTimeOfDayDescription = function () {\n var secondsExpression = this.expressionParts[0];\n var minuteExpression = this.expressionParts[1];\n var hourExpression = this.expressionParts[2];\n var description = \"\";\n if (!stringUtilities_1.StringUtilities.containsAny(minuteExpression, ExpressionDescriptor.specialCharacters) &&\n !stringUtilities_1.StringUtilities.containsAny(hourExpression, ExpressionDescriptor.specialCharacters) &&\n !stringUtilities_1.StringUtilities.containsAny(secondsExpression, ExpressionDescriptor.specialCharacters)) {\n description += this.i18n.atSpace() + this.formatTime(hourExpression, minuteExpression, secondsExpression);\n }\n else if (!secondsExpression &&\n minuteExpression.indexOf(\"-\") > -1 &&\n !(minuteExpression.indexOf(\",\") > -1) &&\n !(minuteExpression.indexOf(\"/\") > -1) &&\n !stringUtilities_1.StringUtilities.containsAny(hourExpression, ExpressionDescriptor.specialCharacters)) {\n var minuteParts = minuteExpression.split(\"-\");\n description += stringUtilities_1.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(), this.formatTime(hourExpression, minuteParts[0], \"\"), this.formatTime(hourExpression, minuteParts[1], \"\"));\n }\n else if (!secondsExpression &&\n hourExpression.indexOf(\",\") > -1 &&\n hourExpression.indexOf(\"-\") == -1 &&\n hourExpression.indexOf(\"/\") == -1 &&\n !stringUtilities_1.StringUtilities.containsAny(minuteExpression, ExpressionDescriptor.specialCharacters)) {\n var hourParts = hourExpression.split(\",\");\n description += this.i18n.at();\n for (var i = 0; i < hourParts.length; i++) {\n description += \" \";\n description += this.formatTime(hourParts[i], minuteExpression, \"\");\n if (i < hourParts.length - 2) {\n description += \",\";\n }\n if (i == hourParts.length - 2) {\n description += this.i18n.spaceAnd();\n }\n }\n }\n else {\n var secondsDescription = this.getSecondsDescription();\n var minutesDescription = this.getMinutesDescription();\n var hoursDescription = this.getHoursDescription();\n description += secondsDescription;\n if (description && minutesDescription) {\n description += \", \";\n }\n description += minutesDescription;\n if (minutesDescription === hoursDescription) {\n return description;\n }\n if (description && hoursDescription) {\n description += \", \";\n }\n description += hoursDescription;\n }\n return description;\n };\n ExpressionDescriptor.prototype.getSecondsDescription = function () {\n var _this = this;\n var description = this.getSegmentDescription(this.expressionParts[0], this.i18n.everySecond(), function (s) {\n return s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Seconds(s), s);\n }, function (s) {\n return _this.i18n.secondsX0ThroughX1PastTheMinute();\n }, function (s) {\n return s == \"0\"\n ? \"\"\n : parseInt(s) < 20\n ? _this.i18n.atX0SecondsPastTheMinute(s)\n : _this.i18n.atX0SecondsPastTheMinuteGt20() || _this.i18n.atX0SecondsPastTheMinute(s);\n });\n return description;\n };\n ExpressionDescriptor.prototype.getMinutesDescription = function () {\n var _this = this;\n var secondsExpression = this.expressionParts[0];\n var hourExpression = this.expressionParts[2];\n var description = this.getSegmentDescription(this.expressionParts[1], this.i18n.everyMinute(), function (s) {\n return s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Minutes(s), s);\n }, function (s) {\n return _this.i18n.minutesX0ThroughX1PastTheHour();\n }, function (s) {\n var _a, _b;\n try {\n return s == \"0\" && hourExpression.indexOf(\"/\") == -1 && secondsExpression == \"\"\n ? _this.i18n.everyHour()\n : s == \"0\"\n ? ((_b = (_a = _this.i18n).onTheHour) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.i18n.atX0MinutesPastTheHour(s)\n : parseInt(s) < 20\n ? _this.i18n.atX0MinutesPastTheHour(s)\n : _this.i18n.atX0MinutesPastTheHourGt20() || _this.i18n.atX0MinutesPastTheHour(s);\n }\n catch (e) {\n return _this.i18n.atX0MinutesPastTheHour(s);\n }\n });\n return description;\n };\n ExpressionDescriptor.prototype.getHoursDescription = function () {\n var _this = this;\n var expression = this.expressionParts[2];\n var hourIndex = 0;\n var rangeEndValues = [];\n expression\n .split(\"/\")[0]\n .split(\",\")\n .forEach(function (range) {\n var rangeParts = range.split(\"-\");\n if (rangeParts.length === 2) {\n rangeEndValues.push({ value: rangeParts[1], index: hourIndex + 1 });\n }\n hourIndex += rangeParts.length;\n });\n var evaluationIndex = 0;\n var description = this.getSegmentDescription(expression, this.i18n.everyHour(), function (s) {\n var match = rangeEndValues.find(function (r) { return r.value === s && r.index === evaluationIndex; });\n var isRangeEndWithNonZeroMinute = match && _this.expressionParts[1] !== \"0\";\n evaluationIndex++;\n return isRangeEndWithNonZeroMinute ? _this.formatTime(s, \"59\", \"\") : _this.formatTime(s, \"0\", \"\");\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Hours(s), s);\n }, function (s) {\n return _this.i18n.betweenX0AndX1();\n }, function (s) {\n return _this.i18n.atX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getDayOfWeekDescription = function () {\n var _this = this;\n var daysOfWeekNames = this.i18n.daysOfTheWeek();\n var description = null;\n if (this.expressionParts[5] == \"*\") {\n description = \"\";\n }\n else {\n description = this.getSegmentDescription(this.expressionParts[5], this.i18n.commaEveryDay(), function (s, form) {\n var exp = s;\n if (s.indexOf(\"#\") > -1) {\n exp = s.substring(0, s.indexOf(\"#\"));\n }\n else if (s.indexOf(\"L\") > -1) {\n exp = exp.replace(\"L\", \"\");\n }\n var parsedExp = parseInt(exp);\n var description = _this.i18n.daysOfTheWeekInCase\n ? _this.i18n.daysOfTheWeekInCase(form)[parsedExp]\n : daysOfWeekNames[parsedExp];\n if (s.indexOf(\"#\") > -1) {\n var dayOfWeekOfMonthDescription = null;\n var dayOfWeekOfMonthNumber = s.substring(s.indexOf(\"#\") + 1);\n var dayOfWeekNumber = s.substring(0, s.indexOf(\"#\"));\n switch (dayOfWeekOfMonthNumber) {\n case \"1\":\n dayOfWeekOfMonthDescription = _this.i18n.first(dayOfWeekNumber);\n break;\n case \"2\":\n dayOfWeekOfMonthDescription = _this.i18n.second(dayOfWeekNumber);\n break;\n case \"3\":\n dayOfWeekOfMonthDescription = _this.i18n.third(dayOfWeekNumber);\n break;\n case \"4\":\n dayOfWeekOfMonthDescription = _this.i18n.fourth(dayOfWeekNumber);\n break;\n case \"5\":\n dayOfWeekOfMonthDescription = _this.i18n.fifth(dayOfWeekNumber);\n break;\n }\n description = dayOfWeekOfMonthDescription + \" \" + description;\n }\n return description;\n }, function (s) {\n if (parseInt(s) == 1) {\n return \"\";\n }\n else {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(s), s);\n }\n }, function (s) {\n var beginFrom = s.substring(0, s.indexOf(\"-\"));\n var domSpecified = _this.expressionParts[3] != \"*\";\n return domSpecified ? _this.i18n.commaAndX0ThroughX1(beginFrom) : _this.i18n.commaX0ThroughX1(beginFrom);\n }, function (s) {\n var format = null;\n if (s.indexOf(\"#\") > -1) {\n var dayOfWeekOfMonthNumber = s.substring(s.indexOf(\"#\") + 1);\n var dayOfWeek = s.substring(0, s.indexOf(\"#\"));\n format = _this.i18n.commaOnThe(dayOfWeekOfMonthNumber, dayOfWeek).trim() + _this.i18n.spaceX0OfTheMonth();\n }\n else if (s.indexOf(\"L\") > -1) {\n format = _this.i18n.commaOnTheLastX0OfTheMonth(s.replace(\"L\", \"\"));\n }\n else {\n var domSpecified = _this.expressionParts[3] != \"*\";\n if (!domSpecified) {\n format = _this.i18n.commaOnlyOnX0(s);\n }\n else if (_this.options.logicalAndDayFields) {\n format = _this.i18n.commaOnlyOnX0(s);\n }\n else {\n format = _this.i18n.commaAndOnX0();\n }\n }\n return format;\n });\n }\n return description;\n };\n ExpressionDescriptor.prototype.getMonthDescription = function () {\n var _this = this;\n var monthNames = this.i18n.monthsOfTheYear();\n var description = this.getSegmentDescription(this.expressionParts[4], \"\", function (s, form) {\n return form && _this.i18n.monthsOfTheYearInCase\n ? _this.i18n.monthsOfTheYearInCase(form)[parseInt(s) - 1]\n : monthNames[parseInt(s) - 1];\n }, function (s) {\n if (parseInt(s) == 1) {\n return \"\";\n }\n else {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Months(s), s);\n }\n }, function (s) {\n return _this.i18n.commaMonthX0ThroughMonthX1() || _this.i18n.commaX0ThroughX1();\n }, function (s) {\n return _this.i18n.commaOnlyInMonthX0 ? _this.i18n.commaOnlyInMonthX0() : _this.i18n.commaOnlyInX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getDayOfMonthDescription = function () {\n var _this = this;\n var description = null;\n var expression = this.expressionParts[3];\n switch (expression) {\n case \"L\":\n description = this.i18n.commaOnTheLastDayOfTheMonth();\n break;\n case \"WL\":\n case \"LW\":\n description = this.i18n.commaOnTheLastWeekdayOfTheMonth();\n break;\n default:\n var weekDayNumberMatches = expression.match(/(\\d{1,2}W)|(W\\d{1,2})/);\n if (weekDayNumberMatches) {\n var dayNumber = parseInt(weekDayNumberMatches[0].replace(\"W\", \"\"));\n var dayString = dayNumber == 1\n ? this.i18n.firstWeekday()\n : stringUtilities_1.StringUtilities.format(this.i18n.weekdayNearestDayX0(), dayNumber.toString());\n description = stringUtilities_1.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(), dayString);\n break;\n }\n else {\n var lastDayOffSetMatches = expression.match(/L-(\\d{1,2})/);\n if (lastDayOffSetMatches) {\n var offSetDays = lastDayOffSetMatches[1];\n description = stringUtilities_1.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(offSetDays), offSetDays);\n break;\n }\n else if (expression == \"*\" && this.expressionParts[5] != \"*\") {\n return \"\";\n }\n else {\n description = this.getSegmentDescription(expression, this.i18n.commaEveryDay(), function (s) {\n return s == \"L\"\n ? _this.i18n.lastDay()\n : _this.i18n.dayX0\n ? stringUtilities_1.StringUtilities.format(_this.i18n.dayX0(), s)\n : s;\n }, function (s) {\n return s == \"1\" ? _this.i18n.commaEveryDay() : _this.i18n.commaEveryX0Days(s);\n }, function (s) {\n return _this.i18n.commaBetweenDayX0AndX1OfTheMonth(s);\n }, function (s) {\n return _this.i18n.commaOnDayX0OfTheMonth(s);\n });\n }\n break;\n }\n }\n return description;\n };\n ExpressionDescriptor.prototype.getYearDescription = function () {\n var _this = this;\n var description = this.getSegmentDescription(this.expressionParts[6], \"\", function (s) {\n return /^\\d+$/.test(s) ? new Date(parseInt(s), 1).getFullYear().toString() : s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(s), s);\n }, function (s) {\n return _this.i18n.commaYearX0ThroughYearX1() || _this.i18n.commaX0ThroughX1();\n }, function (s) {\n return _this.i18n.commaOnlyInYearX0 ? _this.i18n.commaOnlyInYearX0() : _this.i18n.commaOnlyInX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getSegmentDescription = function (expression, allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat) {\n var description = null;\n var doesExpressionContainIncrement = expression.indexOf(\"/\") > -1;\n var doesExpressionContainRange = expression.indexOf(\"-\") > -1;\n var doesExpressionContainMultipleValues = expression.indexOf(\",\") > -1;\n if (!expression) {\n description = \"\";\n }\n else if (expression === \"*\") {\n description = allDescription;\n }\n else if (!doesExpressionContainIncrement && !doesExpressionContainRange && !doesExpressionContainMultipleValues) {\n description = stringUtilities_1.StringUtilities.format(getDescriptionFormat(expression), getSingleItemDescription(expression));\n }\n else if (doesExpressionContainMultipleValues) {\n var segments = expression.split(\",\");\n var descriptionContent = \"\";\n for (var i = 0; i < segments.length; i++) {\n if (i > 0 && segments.length > 2) {\n descriptionContent += \",\";\n if (i < segments.length - 1) {\n descriptionContent += \" \";\n }\n }\n if (i > 0 && segments.length > 1 && (i == segments.length - 1 || segments.length == 2)) {\n descriptionContent += \"\".concat(this.i18n.spaceAnd(), \" \");\n }\n if (segments[i].indexOf(\"/\") > -1 || segments[i].indexOf(\"-\") > -1) {\n var isSegmentRangeWithoutIncrement = segments[i].indexOf(\"-\") > -1 && segments[i].indexOf(\"/\") == -1;\n var currentDescriptionContent = this.getSegmentDescription(segments[i], allDescription, getSingleItemDescription, getIncrementDescriptionFormat, isSegmentRangeWithoutIncrement ? this.i18n.commaX0ThroughX1 : getRangeDescriptionFormat, getDescriptionFormat);\n if (isSegmentRangeWithoutIncrement) {\n currentDescriptionContent = currentDescriptionContent.replace(\", \", \"\");\n }\n descriptionContent += currentDescriptionContent;\n }\n else if (!doesExpressionContainIncrement) {\n descriptionContent += getSingleItemDescription(segments[i]);\n }\n else {\n var segmentDescription = this.getSegmentDescription(segments[i], allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat);\n if (segmentDescription && segmentDescription.startsWith(\", \")) {\n segmentDescription = segmentDescription.substring(2);\n }\n descriptionContent += segmentDescription;\n }\n }\n if (!doesExpressionContainIncrement) {\n description = stringUtilities_1.StringUtilities.format(getDescriptionFormat(expression), descriptionContent);\n }\n else {\n description = descriptionContent;\n }\n }\n else if (doesExpressionContainIncrement) {\n var segments = expression.split(\"/\");\n description = stringUtilities_1.StringUtilities.format(getIncrementDescriptionFormat(segments[1]), segments[1]);\n if (segments[0].indexOf(\"-\") > -1) {\n var rangeSegmentDescription = this.generateRangeSegmentDescription(segments[0], getRangeDescriptionFormat, getSingleItemDescription);\n if (rangeSegmentDescription.indexOf(\", \") != 0) {\n description += \", \";\n }\n description += rangeSegmentDescription;\n }\n else if (segments[0].indexOf(\"*\") == -1) {\n var rangeItemDescription = stringUtilities_1.StringUtilities.format(getDescriptionFormat(segments[0]), getSingleItemDescription(segments[0]));\n rangeItemDescription = rangeItemDescription.replace(\", \", \"\");\n description += stringUtilities_1.StringUtilities.format(this.i18n.commaStartingX0(), rangeItemDescription);\n }\n }\n else if (doesExpressionContainRange) {\n description = this.generateRangeSegmentDescription(expression, getRangeDescriptionFormat, getSingleItemDescription);\n }\n return description;\n };\n ExpressionDescriptor.prototype.generateRangeSegmentDescription = function (rangeExpression, getRangeDescriptionFormat, getSingleItemDescription) {\n var description = \"\";\n var rangeSegments = rangeExpression.split(\"-\");\n var rangeSegment1Description = getSingleItemDescription(rangeSegments[0], 1);\n var rangeSegment2Description = getSingleItemDescription(rangeSegments[1], 2);\n var rangeDescriptionFormat = getRangeDescriptionFormat(rangeExpression);\n description += stringUtilities_1.StringUtilities.format(rangeDescriptionFormat, rangeSegment1Description, rangeSegment2Description);\n return description;\n };\n ExpressionDescriptor.prototype.formatTime = function (hourExpression, minuteExpression, secondExpression) {\n var hourOffset = 0;\n var minuteOffset = 0;\n var hour = parseInt(hourExpression) + hourOffset;\n var minute = parseInt(minuteExpression) + minuteOffset;\n if (minute >= 60) {\n minute -= 60;\n hour += 1;\n }\n else if (minute < 0) {\n minute += 60;\n hour -= 1;\n }\n if (hour >= 24) {\n hour = hour - 24;\n }\n else if (hour < 0) {\n hour = 24 + hour;\n }\n var period = \"\";\n var setPeriodBeforeTime = false;\n if (!this.options.use24HourTimeFormat) {\n setPeriodBeforeTime = !!(this.i18n.setPeriodBeforeTime && this.i18n.setPeriodBeforeTime());\n period = setPeriodBeforeTime ? \"\".concat(this.getPeriod(hour), \" \") : \" \".concat(this.getPeriod(hour));\n if (hour > 12) {\n hour -= 12;\n }\n if (hour === 0) {\n hour = 12;\n }\n }\n var second = \"\";\n if (secondExpression) {\n second = \":\".concat((\"00\" + secondExpression).substring(secondExpression.length));\n }\n var hourStr = hour.toString();\n var paddedHour = (\"00\" + hourStr).substring(hourStr.length);\n var minuteStr = minute.toString();\n var paddedMinute = (\"00\" + minuteStr).substring(minuteStr.length);\n var displayHour = this.options.trimHoursLeadingZero ? hourStr : paddedHour;\n return \"\".concat(setPeriodBeforeTime ? period : \"\").concat(displayHour, \":\").concat(paddedMinute).concat(second).concat(!setPeriodBeforeTime ? period : \"\");\n };\n ExpressionDescriptor.prototype.transformVerbosity = function (description, useVerboseFormat) {\n if (!useVerboseFormat) {\n description = description.replace(new RegExp(\", \".concat(this.i18n.everyMinute()), \"g\"), \"\");\n description = description.replace(new RegExp(\", \".concat(this.i18n.everyHour()), \"g\"), \"\");\n description = description.replace(new RegExp(this.i18n.commaEveryDay(), \"g\"), \"\");\n description = description.replace(/\\, ?$/, \"\");\n if (this.i18n.conciseVerbosityReplacements) {\n for (var _i = 0, _a = Object.entries(this.i18n.conciseVerbosityReplacements()); _i < _a.length; _i++) {\n var _b = _a[_i], key = _b[0], value = _b[1];\n description = description.replace(new RegExp(key, \"g\"), value);\n }\n }\n }\n return description;\n };\n ExpressionDescriptor.prototype.getPeriod = function (hour) {\n return hour >= 12 ? (this.i18n.pm && this.i18n.pm()) || \"PM\" : (this.i18n.am && this.i18n.am()) || \"AM\";\n };\n ExpressionDescriptor.locales = {};\n return ExpressionDescriptor;\n}());\nexports.ExpressionDescriptor = ExpressionDescriptor;\n\n\n/***/ },\n\n/***/ 747\n(__unused_webpack_module, exports, __webpack_require__) {\n\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.enLocaleLoader = void 0;\nvar en_1 = __webpack_require__(486);\nvar enLocaleLoader = (function () {\n function enLocaleLoader() {\n }\n enLocaleLoader.prototype.load = function (availableLocales) {\n availableLocales[\"en\"] = new en_1.en();\n };\n return enLocaleLoader;\n}());\nexports.enLocaleLoader = enLocaleLoader;\n\n\n/***/ },\n\n/***/ 486\n(__unused_webpack_module, exports) {\n\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.en = void 0;\nvar en = (function () {\n function en() {\n }\n en.prototype.atX0SecondsPastTheMinuteGt20 = function () {\n return null;\n };\n en.prototype.atX0MinutesPastTheHourGt20 = function () {\n return null;\n };\n en.prototype.commaMonthX0ThroughMonthX1 = function () {\n return null;\n };\n en.prototype.commaYearX0ThroughYearX1 = function () {\n return null;\n };\n en.prototype.use24HourTimeFormatByDefault = function () {\n return false;\n };\n en.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {\n return \"An error occurred when generating the expression description. Check the cron expression syntax.\";\n };\n en.prototype.everyMinute = function () {\n return \"every minute\";\n };\n en.prototype.everyHour = function () {\n return \"every hour\";\n };\n en.prototype.atSpace = function () {\n return \"At \";\n };\n en.prototype.everyMinuteBetweenX0AndX1 = function () {\n return \"Every minute between %s and %s\";\n };\n en.prototype.at = function () {\n return \"At\";\n };\n en.prototype.spaceAnd = function () {\n return \" and\";\n };\n en.prototype.everySecond = function () {\n return \"every second\";\n };\n en.prototype.everyX0Seconds = function () {\n return \"every %s seconds\";\n };\n en.prototype.secondsX0ThroughX1PastTheMinute = function () {\n return \"seconds %s through %s past the minute\";\n };\n en.prototype.atX0SecondsPastTheMinute = function () {\n return \"at %s seconds past the minute\";\n };\n en.prototype.everyX0Minutes = function () {\n return \"every %s minutes\";\n };\n en.prototype.minutesX0ThroughX1PastTheHour = function () {\n return \"minutes %s through %s past the hour\";\n };\n en.prototype.atX0MinutesPastTheHour = function () {\n return \"at %s minutes past the hour\";\n };\n en.prototype.everyX0Hours = function () {\n return \"every %s hours\";\n };\n en.prototype.betweenX0AndX1 = function () {\n return \"between %s and %s\";\n };\n en.prototype.atX0 = function () {\n return \"at %s\";\n };\n en.prototype.commaEveryDay = function () {\n return \", every day\";\n };\n en.prototype.commaEveryX0DaysOfTheWeek = function () {\n return \", every %s days of the week\";\n };\n en.prototype.commaX0ThroughX1 = function () {\n return \", %s through %s\";\n };\n en.prototype.commaAndX0ThroughX1 = function () {\n return \", %s through %s\";\n };\n en.prototype.first = function () {\n return \"first\";\n };\n en.prototype.second = function () {\n return \"second\";\n };\n en.prototype.third = function () {\n return \"third\";\n };\n en.prototype.fourth = function () {\n return \"fourth\";\n };\n en.prototype.fifth = function () {\n return \"fifth\";\n };\n en.prototype.commaOnThe = function () {\n return \", on the \";\n };\n en.prototype.spaceX0OfTheMonth = function () {\n return \" %s of the month\";\n };\n en.prototype.lastDay = function () {\n return \"the last day\";\n };\n en.prototype.commaOnTheLastX0OfTheMonth = function () {\n return \", on the last %s of the month\";\n };\n en.prototype.commaOnlyOnX0 = function () {\n return \", only on %s\";\n };\n en.prototype.commaAndOnX0 = function () {\n return \", and on %s\";\n };\n en.prototype.commaEveryX0Months = function () {\n return \", every %s months\";\n };\n en.prototype.commaOnlyInX0 = function () {\n return \", only in %s\";\n };\n en.prototype.commaOnTheLastDayOfTheMonth = function () {\n return \", on the last day of the month\";\n };\n en.prototype.commaOnTheLastWeekdayOfTheMonth = function () {\n return \", on the last weekday of the month\";\n };\n en.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {\n return \", %s days before the last day of the month\";\n };\n en.prototype.firstWeekday = function () {\n return \"first weekday\";\n };\n en.prototype.weekdayNearestDayX0 = function () {\n return \"weekday nearest day %s\";\n };\n en.prototype.commaOnTheX0OfTheMonth = function () {\n return \", on the %s of the month\";\n };\n en.prototype.commaEveryX0Days = function () {\n return \", every %s days in a month\";\n };\n en.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {\n return \", between day %s and %s of the month\";\n };\n en.prototype.commaOnDayX0OfTheMonth = function () {\n return \", on day %s of the month\";\n };\n en.prototype.commaEveryHour = function () {\n return \", every hour\";\n };\n en.prototype.commaEveryX0Years = function () {\n return \", every %s years\";\n };\n en.prototype.commaStartingX0 = function () {\n return \", starting %s\";\n };\n en.prototype.daysOfTheWeek = function () {\n return [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n };\n en.prototype.monthsOfTheYear = function () {\n return [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ];\n };\n en.prototype.atReboot = function () {\n return \"Run once, at startup\";\n };\n en.prototype.onTheHour = function () {\n return \"on the hour\";\n };\n return en;\n}());\nexports.en = en;\n\n\n/***/ },\n\n/***/ 515\n(__unused_webpack_module, exports) {\n\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nfunction assert(value, message) {\n if (!value) {\n throw new Error(message);\n }\n}\nvar RangeValidator = (function () {\n function RangeValidator() {\n }\n RangeValidator.secondRange = function (parse) {\n var parsed = parse.split(',');\n for (var i = 0; i < parsed.length; i++) {\n if (!isNaN(parseInt(parsed[i], 10))) {\n var second = parseInt(parsed[i], 10);\n assert(second >= 0 && second <= 59, 'seconds part must be >= 0 and <= 59');\n }\n }\n };\n RangeValidator.minuteRange = function (parse) {\n var parsed = parse.split(',');\n for (var i = 0; i < parsed.length; i++) {\n if (!isNaN(parseInt(parsed[i], 10))) {\n var minute = parseInt(parsed[i], 10);\n assert(minute >= 0 && minute <= 59, 'minutes part must be >= 0 and <= 59');\n }\n }\n };\n RangeValidator.hourRange = function (parse) {\n var parsed = parse.split(',');\n for (var i = 0; i < parsed.length; i++) {\n if (!isNaN(parseInt(parsed[i], 10))) {\n var hour = parseInt(parsed[i], 10);\n assert(hour >= 0 && hour <= 23, 'hours part must be >= 0 and <= 23');\n }\n }\n };\n RangeValidator.dayOfMonthRange = function (parse) {\n var parsed = parse.split(',');\n for (var i = 0; i < parsed.length; i++) {\n if (!isNaN(parseInt(parsed[i], 10))) {\n var dayOfMonth = parseInt(parsed[i], 10);\n assert(dayOfMonth >= 1 && dayOfMonth <= 31, 'DOM part must be >= 1 and <= 31');\n }\n }\n };\n RangeValidator.monthRange = function (parse, monthStartIndexZero) {\n var parsed = parse.split(',');\n for (var i = 0; i < parsed.length; i++) {\n if (!isNaN(parseInt(parsed[i], 10))) {\n var month = parseInt(parsed[i], 10);\n assert(month >= 1 && month <= 12, monthStartIndexZero ? 'month part must be >= 0 and <= 11' : 'month part must be >= 1 and <= 12');\n }\n }\n };\n RangeValidator.dayOfWeekRange = function (parse, dayOfWeekStartIndexZero) {\n var parsed = parse.split(',');\n for (var i = 0; i < parsed.length; i++) {\n if (!isNaN(parseInt(parsed[i], 10))) {\n var dayOfWeek = parseInt(parsed[i], 10);\n assert(dayOfWeek >= 0 && dayOfWeek <= 6, dayOfWeekStartIndexZero ? 'DOW part must be >= 0 and <= 6' : 'DOW part must be >= 1 and <= 7');\n }\n }\n };\n return RangeValidator;\n}());\nexports[\"default\"] = RangeValidator;\n\n\n/***/ },\n\n/***/ 823\n(__unused_webpack_module, exports) {\n\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.StringUtilities = void 0;\nvar StringUtilities = (function () {\n function StringUtilities() {\n }\n StringUtilities.format = function (template) {\n var values = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n values[_i - 1] = arguments[_i];\n }\n return template.replace(/%s/g, function (substring) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return values.shift();\n });\n };\n StringUtilities.containsAny = function (text, searchStrings) {\n return searchStrings.some(function (c) {\n return text.indexOf(c) > -1;\n });\n };\n return StringUtilities;\n}());\nexports.StringUtilities = StringUtilities;\n\n\n/***/ }\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \t\tif (cachedModule !== undefined) {\n/******/ \t\t\treturn cachedModule.exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\nvar __webpack_exports__ = {};\n// This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).\n(() => {\nvar exports = __webpack_exports__;\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.toString = void 0;\nvar expressionDescriptor_1 = __webpack_require__(333);\nvar enLocaleLoader_1 = __webpack_require__(747);\nexpressionDescriptor_1.ExpressionDescriptor.initialize(new enLocaleLoader_1.enLocaleLoader());\nexports[\"default\"] = expressionDescriptor_1.ExpressionDescriptor;\nvar cronstrue_toString = expressionDescriptor_1.ExpressionDescriptor.toString;\nexports.toString = cronstrue_toString;\n\n})();\n\n/******/ \treturn __webpack_exports__;\n/******/ })()\n;\n});","import React, { useState, useEffect } from 'react';\nimport { motion, AnimatePresence } from 'framer-motion';\nimport { \n X as CloseIcon, \n Rocket as RocketIcon, \n Fingerprint as IdIcon, \n Bot as BotIcon, \n Clock as ClockIcon, \n AlertCircle as PriorityIcon, \n Code as CodeIconLucide, \n Languages as TranslateIcon,\n Brain as BrainIcon,\n ChevronDown as ExpandIcon,\n Cpu as TokenIcon,\n Sparkles as WizardIcon,\n Wand2 as MagicIcon\n} from 'lucide-react';\nimport cronstrue from 'cronstrue';\nimport { agentsApi, type Agent } from '../api/agents';\nimport { recurrentTasksApi, type RecurrentTask, RecurrentTaskStatus } from '../api/recurrent-tasks';\nimport { TaskPriority } from '../api/tasks';\nimport { useNotification } from '../hooks/useNotification';\n\ninterface CreateRecurrentTaskModalProps {\n isOpen: boolean;\n onClose: () => void;\n onSuccess: () => void;\n initialData?: RecurrentTask;\n}\n\nconst CreateRecurrentTaskModal: React.FC<CreateRecurrentTaskModalProps> = ({\n isOpen,\n onClose,\n onSuccess,\n initialData\n}) => {\n const { notifyApiError, notifyError } = useNotification();\n const [loading, setLoading] = useState(false);\n const [agents, setAgents] = useState<Agent[]>([]);\n const [fetchingAgents, setFetchingAgents] = useState(false);\n const [showAgentDropdown, setShowAgentDropdown] = useState(false);\n\n // Form State\n const [title, setTitle] = useState('');\n const [description, setDescription] = useState('');\n const [cronExpression, setCronExpression] = useState('');\n const [assigneeId, setAssigneeId] = useState('');\n const [priority, setPriority] = useState<TaskPriority>(TaskPriority.MEDIUM);\n const [cronError, setCronError] = useState<string | null>(null);\n const [isWizardOpen, setIsWizardOpen] = useState(false);\n\n const cronInterpretation = (() => {\n try {\n return cronstrue.toString(cronExpression);\n } catch {\n return null;\n }\n })();\n\n const cronPresets = [\n { label: 'Every 10s', value: '*/10 * * * * *' },\n { label: 'Every 15m', value: '*/15 * * * *' },\n { label: 'Hourly', value: '0 * * * *' },\n { label: 'Daily (12AM)', value: '0 0 * * *' },\n { label: 'Weekly (Sun)', value: '0 0 * * 0' },\n { label: 'Monthly (1st)', value: '0 0 1 * *' },\n ];\n\n useEffect(() => {\n const handleEsc = (e: KeyboardEvent) => {\n if (e.key === 'Escape') onClose();\n };\n if (isOpen) {\n window.addEventListener('keydown', handleEsc);\n fetchAgents();\n if (initialData) {\n setTitle(initialData.title);\n setDescription(initialData.description);\n setCronExpression(initialData.cronExpression);\n setAssigneeId(initialData.assignee.id);\n setPriority(initialData.priority);\n }\n } else {\n // Reset form for create mode or when closing\n setTitle('');\n setDescription('');\n setCronExpression('');\n setAssigneeId('');\n setPriority(TaskPriority.MEDIUM);\n setCronError(null);\n setIsWizardOpen(false);\n }\n return () => window.removeEventListener('keydown', handleEsc);\n }, [isOpen, initialData, onClose]);\n\n const fetchAgents = async () => {\n try {\n setFetchingAgents(true);\n const res = await agentsApi.findAll();\n setAgents(res.data || []);\n } catch (error) {\n console.error('Failed to fetch agents:', error);\n } finally {\n setFetchingAgents(false);\n }\n };\n\n const validateCron = (cron: string) => {\n if (!cron.trim()) {\n setCronError('Cron expression is required');\n return false;\n }\n // Support both 5 and 6 fields (seconds, minutes, hours, day of month, month, day of week)\n const fields = cron.trim().split(/\\s+/);\n if (fields.length !== 5 && fields.length !== 6) {\n setCronError('Invalid cron format (expected 5 or 6 fields)');\n return false;\n }\n setCronError(null);\n return true;\n };\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n\n if (!title || !description || !assigneeId || !cronExpression) {\n const missing = [];\n if (!title) missing.push('title');\n if (!description) missing.push('description');\n if (!assigneeId) missing.push('assigneeId');\n if (!cronExpression) missing.push('cronExpression');\n notifyError('Validation Error', `Please fill in all required fields: ${missing.join(', ')}`);\n return;\n }\n\n if (!validateCron(cronExpression)) {\n return;\n }\n\n try {\n setLoading(true);\n if (initialData) {\n await recurrentTasksApi.update(initialData.id, {\n title,\n description,\n cronExpression,\n assigneeId,\n priority,\n });\n } else {\n await recurrentTasksApi.create({\n title,\n description,\n cronExpression,\n assigneeId,\n priority,\n status: RecurrentTaskStatus.ACTIVE,\n });\n }\n\n onSuccess();\n onClose();\n } catch (error) {\n console.error('Failed to save recurrent task:', error);\n notifyApiError(error, 'Operation Failed');\n } finally {\n setLoading(false);\n }\n };\n\n const getPriorityLabel = (p: TaskPriority) => {\n switch (p) {\n case TaskPriority.CRITICAL: return 'CRIT';\n case TaskPriority.HIGH: return 'HIGH';\n case TaskPriority.MEDIUM: return 'MED';\n case TaskPriority.LOW: return 'LOW';\n default: return 'MED';\n }\n };\n\n const selectedAgent = agents.find(a => a.id === assigneeId);\n\n if (!isOpen) return null;\n\n return (\n <AnimatePresence>\n <div className=\"fixed inset-0 z-[60] bg-background/60 backdrop-blur-md flex items-center justify-center p-4 overflow-y-auto\">\n <motion.div\n initial={{ opacity: 0, scale: 0.95, y: 20 }}\n animate={{ opacity: 1, scale: 1, y: 0 }}\n exit={{ opacity: 0, scale: 0.95, y: 20 }}\n className=\"glass-panel w-full max-w-2xl rounded-xl overflow-hidden shadow-2xl glow-primary flex flex-col my-8\"\n data-testid=\"recurrent-task-modal\"\n onClick={(e) => e.stopPropagation()}\n >\n {/* Modal Header */}\n <div className=\"p-6 pb-0 flex justify-between items-start\">\n <div>\n <h2 className=\"text-2xl font-headline font-extrabold text-primary tracking-tight\">\n {initialData ? 'Update Protocol' : 'Deploy New Task'}\n </h2>\n <p className=\"text-sm text-on-surface-variant mt-1\">\n {initialData ? 'Modify the existing automated orchestration routine.' : 'Configure an automated orchestration routine.'}\n </p>\n </div>\n <button \n onClick={onClose}\n className=\"text-on-surface-variant hover:text-on-surface transition-colors p-1\"\n >\n <CloseIcon size={24} />\n </button>\n </div>\n\n <form onSubmit={handleSubmit} className=\"flex flex-col\">\n {/* Modal Content */}\n <div className=\"p-8 space-y-8 overflow-y-auto max-h-[70vh] custom-scrollbar\">\n {/* Section 1: Task Identity */}\n <section className=\"space-y-4\">\n <div className=\"flex items-center gap-2 text-tertiary\">\n <IdIcon size={16} />\n <h3 className=\"text-xs font-bold uppercase tracking-widest font-headline\">Task Identity</h3>\n </div>\n <div className=\"grid grid-cols-1 gap-4\">\n <div className=\"space-y-1.5\">\n <label className=\"text-xs font-medium text-on-surface-variant px-1\">Task Name</label>\n <input\n type=\"text\"\n className=\"w-full bg-surface-container-lowest border-none rounded-lg p-3 text-on-surface placeholder:text-outline-variant focus:ring-1 focus:ring-tertiary transition-all\"\n placeholder=\"e.g., Daily Market Sweep\"\n value={title}\n onChange={(e) => setTitle(e.target.value)}\n />\n </div>\n <div className=\"space-y-1.5\">\n <label className=\"text-xs font-medium text-on-surface-variant px-1\">Description</label>\n <textarea\n className=\"w-full bg-surface-container-lowest border-none rounded-lg p-3 text-on-surface placeholder:text-outline-variant focus:ring-1 focus:ring-tertiary transition-all\"\n placeholder=\"Briefly describe the objective of this task...\"\n rows={2}\n value={description}\n onChange={(e) => setDescription(e.target.value)}\n ></textarea>\n </div>\n </div>\n </section>\n\n {/* Section 2: Agent Fleet */}\n <section className=\"space-y-4\">\n <div className=\"flex items-center gap-2 text-primary\">\n <BotIcon size={16} />\n <h3 className=\"text-xs font-bold uppercase tracking-widest font-headline\">Agent Fleet</h3>\n </div>\n <div className=\"relative\">\n <div \n className=\"flex items-center bg-surface-container-lowest rounded-lg p-3 cursor-pointer hover:bg-surface-container-high transition-colors ring-1 ring-outline-variant/10 focus-within:ring-primary/40\"\n onClick={() => setShowAgentDropdown(!showAgentDropdown)}\n role=\"combobox\"\n aria-expanded={showAgentDropdown}\n data-testid=\"agent-select\"\n >\n <div className=\"w-8 h-8 rounded bg-primary/20 flex items-center justify-center mr-3\">\n <BrainIcon size={16} className=\"text-primary\" />\n </div>\n <div className=\"flex-1\">\n <div className=\"text-sm font-semibold text-on-surface\">\n {selectedAgent ? selectedAgent.name : 'Select Intelligence Core'}\n </div>\n <div className=\"text-xs text-on-surface-variant\">\n {selectedAgent ? (selectedAgent.role || 'Active Agent') : 'Choose an active agent for execution'}\n </div>\n </div>\n <ExpandIcon size={20} className={`text-outline transition-transform ${showAgentDropdown ? 'rotate-180' : ''}`} />\n </div>\n\n {/* Dropdown */}\n <AnimatePresence>\n {showAgentDropdown && (\n <motion.div\n initial={{ opacity: 0, y: -10 }}\n animate={{ opacity: 1, y: 0 }}\n exit={{ opacity: 0, y: -10 }}\n className=\"absolute top-full left-0 w-full mt-2 bg-surface-container-highest rounded-lg shadow-xl p-2 z-50 border border-outline-variant/20 max-h-60 overflow-y-auto custom-scrollbar\"\n data-testid=\"agent-dropdown\"\n >\n {fetchingAgents ? (\n <div className=\"p-4 text-center text-xs text-on-surface-variant animate-pulse\">Scanning fleet...</div>\n ) : agents.length === 0 ? (\n <div className=\"p-4 text-center text-xs text-on-surface-variant\">No active agents found.</div>\n ) : (\n agents.map((agent) => (\n <div\n key={agent.id}\n className=\"p-3 hover:bg-surface-container-low rounded cursor-pointer flex items-center gap-3 transition-colors group\"\n onClick={() => {\n setAssigneeId(agent.id);\n setShowAgentDropdown(false);\n }}\n data-testid={`agent-option-${agent.id}`}\n >\n <div className=\"w-8 h-8 rounded bg-surface-container-high flex items-center justify-center group-hover:bg-primary/20 transition-colors\">\n <TokenIcon size={14} className=\"text-secondary group-hover:text-primary\" />\n </div>\n <div>\n <div className=\"text-sm font-bold text-on-surface group-hover:text-primary transition-colors\">{agent.name}</div>\n <div className=\"text-[10px] text-secondary\">{agent.status || 'Active'} • {agent.role || 'Core'}</div>\n </div>\n </div>\n ))\n )}\n </motion.div>\n )}\n </AnimatePresence>\n \n {/* Hidden select for accessibility/testing */}\n <select \n className=\"sr-only\" \n value={assigneeId} \n onChange={(e) => setAssigneeId(e.target.value)}\n >\n <option value=\"\">Select Agent</option>\n {agents.map(agent => (\n <option key={agent.id} value={agent.id}>{agent.name}</option>\n ))}\n </select>\n </div>\n </section>\n\n {/* Section 3 & 4: Scheduling & Priority */}\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-8\">\n <section className=\"space-y-4\">\n <div className=\"flex items-center gap-2 text-secondary\">\n <ClockIcon size={16} />\n <h3 className=\"text-xs font-bold uppercase tracking-widest font-headline\">Scheduling Protocol</h3>\n </div>\n <div className=\"space-y-4\">\n <div className=\"relative flex items-center gap-2\">\n <div className=\"relative flex-1\">\n <input\n required\n className={`w-full bg-surface-container-lowest border-none rounded-lg p-3 font-mono text-sm text-secondary focus:ring-1 transition-all pr-10 ${cronError ? 'ring-1 ring-error' : 'focus:ring-secondary'}`}\n type=\"text\"\n value={cronExpression}\n onChange={(e) => {\n setCronExpression(e.target.value);\n if (cronError) validateCron(e.target.value);\n }}\n onBlur={(e) => validateCron(e.target.value)}\n placeholder=\"e.g. 0 0 * * *\"\n />\n <CodeIconLucide size={16} className=\"absolute right-3 top-3.5 text-outline-variant\" />\n </div>\n <button\n type=\"button\"\n onClick={() => setIsWizardOpen(!isWizardOpen)}\n className={`p-3 rounded-lg border transition-all ${isWizardOpen ? 'bg-secondary/20 border-secondary text-secondary shadow-[0_0_10px_rgba(78,222,163,0.2)]' : 'bg-surface-container-lowest border-outline-variant/10 text-on-surface-variant hover:text-secondary hover:border-secondary/30'}`}\n title=\"Open Cron Wizard\"\n >\n <MagicIcon size={18} />\n </button>\n </div>\n\n <AnimatePresence>\n {isWizardOpen && (\n <motion.div\n initial={{ height: 0, opacity: 0 }}\n animate={{ height: 'auto', opacity: 1 }}\n exit={{ height: 0, opacity: 0 }}\n className=\"overflow-hidden bg-surface-container-highest/30 rounded-xl border border-secondary/10\"\n >\n <div className=\"p-4 space-y-4\">\n <div className=\"flex items-center gap-2 text-[10px] font-black uppercase tracking-widest text-secondary/60\">\n <WizardIcon size={12} />\n Temporal Presets\n </div>\n <div className=\"flex flex-wrap gap-2\">\n {cronPresets.map((preset) => (\n <button\n key={preset.value}\n type=\"button\"\n onClick={() => {\n setCronExpression(preset.value);\n setCronError(null);\n }}\n className={`px-3 py-1.5 rounded-full text-[10px] font-bold border transition-all ${\n cronExpression === preset.value\n ? 'bg-secondary text-on-secondary border-secondary shadow-lg shadow-secondary/20'\n : 'bg-surface-container-lowest border-outline-variant/10 text-on-surface-variant hover:border-secondary/40 hover:text-secondary'\n }`}\n >\n {preset.label}\n </button>\n ))}\n </div>\n </div>\n </motion.div>\n )}\n </AnimatePresence>\n\n {cronInterpretation && !cronError && (\n <div className=\"flex items-center gap-2 text-[11px] text-secondary font-medium bg-secondary/5 px-3 py-2 rounded-lg border border-secondary/10 animate-in fade-in slide-in-from-left-2\">\n <TranslateIcon size={14} className=\"shrink-0\" />\n <span>{cronInterpretation}</span>\n </div>\n )}\n\n <div className=\"px-1 py-1\">\n <p className=\"text-[9px] text-on-surface-variant/40 font-mono uppercase tracking-[0.1em] flex gap-2\">\n <span className=\"text-secondary/60 opacity-60 font-black\">[Sec]</span>\n <span>Min</span>\n <span>Hour</span>\n <span>Dom</span>\n <span>Mon</span>\n <span>Dow</span>\n </p>\n </div>\n\n {cronError && (\n <p className=\"text-[10px] text-error px-1 flex items-center gap-1.5 font-medium\">\n <PriorityIcon size={12} />\n {cronError}\n </p>\n )}\n </div>\n </section>\n\n <section className=\"space-y-4\">\n <div className=\"flex items-center gap-2 text-error\">\n <PriorityIcon size={16} />\n <h3 className=\"text-xs font-bold uppercase tracking-widest font-headline\">Execution Priority</h3>\n </div>\n <div className=\"flex bg-surface-container-lowest p-1 rounded-lg\">\n {[TaskPriority.LOW, TaskPriority.MEDIUM, TaskPriority.HIGH, TaskPriority.CRITICAL].map((p) => (\n <button\n key={p}\n type=\"button\"\n onClick={() => setPriority(p)}\n className={`flex-1 py-2 text-[10px] font-bold rounded transition-all ${\n priority === p \n ? (p === TaskPriority.CRITICAL ? 'bg-error/20 text-error' : 'bg-surface-container-high text-primary') \n : 'text-on-surface-variant hover:text-on-surface'\n }`}\n >\n {getPriorityLabel(p)}\n </button>\n ))}\n </div>\n </section>\n </div>\n\n {/* Section 5: Visual Preview (Mocked for now) */}\n <section className=\"bg-surface-container-low p-5 rounded-xl border border-outline-variant/10\">\n <div className=\"flex justify-between items-center mb-4\">\n <h4 className=\"text-xs font-bold font-headline text-on-surface-variant tracking-wide\">Deployment Preview</h4>\n <span className=\"text-[10px] bg-secondary-container/30 text-secondary px-2 py-0.5 rounded-full font-bold uppercase\">System Cluster 0-A</span>\n </div>\n <div className=\"space-y-3\">\n <div className=\"flex items-center justify-between text-xs p-2 bg-surface-container-high/50 rounded-lg\">\n <span className=\"text-on-surface font-medium italic\">Logic integrity check passed</span>\n <span className=\"text-secondary font-bold\">READY</span>\n </div>\n <div className=\"text-[10px] text-on-surface-variant leading-relaxed\">\n This task will be registered in the Alpha-Centauri cluster and executed by <span className=\"text-primary\">{selectedAgent?.name || 'an assigned agent'}</span> according to the provided temporal sequence.\n </div>\n </div>\n </section>\n </div>\n\n {/* Actions Footer */}\n <div className=\"p-6 bg-surface-container-low/50 flex justify-end items-center gap-4 sticky bottom-0 border-t border-outline-variant/10\">\n <button\n type=\"button\"\n onClick={onClose}\n className=\"px-6 py-2.5 text-sm font-bold text-on-surface-variant hover:text-on-surface transition-all active:scale-95\"\n >\n Cancel\n </button>\n <button\n type=\"submit\"\n disabled={loading}\n className=\"px-8 py-2.5 text-sm font-bold bg-primary text-on-primary rounded-lg shadow-lg hover:shadow-primary/20 transition-all active:scale-95 flex items-center gap-2 disabled:opacity-50 disabled:grayscale disabled:cursor-not-allowed group\"\n >\n {loading ? (\n <div className=\"w-4 h-4 border-2 border-on-primary/30 border-t-on-primary rounded-full animate-spin\" />\n ) : (\n <RocketIcon size={16} className=\"group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform\" />\n )}\n {initialData ? 'Update Task' : 'Create Task'}\n </button>\n </div>\n </form>\n </motion.div>\n </div>\n </AnimatePresence>\n );\n};\n\nexport default CreateRecurrentTaskModal;\n","import { \n TrendingUp, \n CheckCircle, \n Play, \n Pause, \n Edit, \n Trash2, \n RefreshCw, \n Bot,\n Activity,\n Database,\n Sparkles,\n Search,\n Plus\n} from 'lucide-react';\nimport { motion } from 'framer-motion';\nimport { recurrentTasksApi, type RecurrentTask, RecurrentTaskStatus } from '../api/recurrent-tasks';\nimport CreateRecurrentTaskModal from '../components/CreateRecurrentTaskModal';\nimport { useNotification } from '../hooks/useNotification';\nimport { useState, useEffect, useCallback } from 'react';\n\nconst Scheduler: React.FC = () => {\n const { notifySuccess, notifyApiError } = useNotification();\n \n const [tasks, setTasks] = useState<RecurrentTask[]>([]);\n const [loading, setLoading] = useState(true);\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [editingTask, setEditingTask] = useState<RecurrentTask | undefined>(undefined);\n\n const fetchTasks = useCallback(async () => {\n try {\n setLoading(true);\n const res = await recurrentTasksApi.findAll();\n setTasks(res.data);\n } catch (error) {\n notifyApiError(error, 'Error fetching recurrent tasks');\n } finally {\n setLoading(false);\n }\n }, [notifyApiError]);\n\n useEffect(() => {\n fetchTasks();\n }, [fetchTasks]);\n\n const handleDelete = async (id: string, title: string) => {\n if (!window.confirm(`Are you sure you want to delete the recurrent protocol \"${title}\"? This action cannot be undone.`)) {\n return;\n }\n\n try {\n await recurrentTasksApi.delete(id);\n notifySuccess('Protocol Terminated', `The task \"${title}\" has been removed from the fleet.`);\n fetchTasks();\n } catch (error) {\n notifyApiError(error, 'Error deleting task');\n }\n };\n\n const openCreateModal = () => {\n setEditingTask(undefined);\n setIsModalOpen(true);\n };\n\n const openEditModal = (task: RecurrentTask) => {\n setEditingTask(task);\n setIsModalOpen(true);\n };\n\n const handleToggleStatus = async (task: RecurrentTask) => {\n const newStatus = task.status === RecurrentTaskStatus.ACTIVE \n ? RecurrentTaskStatus.PAUSED \n : RecurrentTaskStatus.ACTIVE;\n \n try {\n await recurrentTasksApi.update(task.id, { status: newStatus });\n notifySuccess(\n `Protocol ${newStatus === RecurrentTaskStatus.ACTIVE ? 'Resumed' : 'Paused'}`, \n `Operation \"${task.title}\" has been ${newStatus === RecurrentTaskStatus.ACTIVE ? 're-activated' : 'suspended'}.`\n );\n fetchTasks();\n } catch (error) {\n notifyApiError(error, 'Failed to update protocol status');\n }\n };\n\n const stats = [\n { label: 'Active Schedules', value: tasks.filter(t => t.status === RecurrentTaskStatus.ACTIVE).length.toString(), change: '+12%', icon: TrendingUp, color: 'text-secondary', bg: 'bg-secondary/10' },\n { label: 'Success Rate', value: '99.8%', trend: 99.8, icon: Activity, color: 'text-primary' },\n { label: 'Paused Agents', value: tasks.filter(t => t.status === RecurrentTaskStatus.PAUSED).length.toString(), subtext: 'Awaiting manual audit', icon: Pause, color: 'text-on-surface-variant' },\n { label: 'Critical Errors', value: tasks.filter(t => t.status === RecurrentTaskStatus.ERROR).length.toString(), subtext: 'System integrity: nominal', icon: CheckCircle, color: 'text-error', bg: 'bg-error/10' },\n ];\n\n return (\n <div className=\"space-y-10 animate-in fade-in duration-700\">\n {/* Header Section */}\n <div className=\"flex flex-col md:flex-row justify-between items-start md:items-end gap-6\">\n <motion.div \n initial={{ opacity: 0, x: -20 }}\n animate={{ opacity: 1, x: 0 }}\n transition={{ duration: 0.5 }}\n >\n <h2 className=\"text-4xl font-headline font-extrabold text-white tracking-tight mb-2\">Temporal Orchestration</h2>\n <p className=\"text-on-surface-variant font-body max-w-md\">\n Manage autonomous agent lifecycle schedules and recurrent operational flows within the <span className=\"text-primary font-bold\">Alpha-Centauri</span> cluster.\n </p>\n </motion.div>\n \n <motion.button \n whileHover={{ scale: 1.02 }}\n whileTap={{ scale: 0.98 }}\n onClick={openCreateModal}\n className=\"px-6 py-3.5 bg-primary text-on-primary rounded-xl font-black text-xs uppercase tracking-widest flex items-center gap-2 shadow-lg shadow-primary/20 transition-all border border-primary-container/20 group hover:shadow-primary/40\"\n >\n <Plus size={18} className=\"group-hover:rotate-90 transition-transform duration-300\" />\n New Scheduled Task\n </motion.button>\n </div>\n\n {/* Bento Grid Stats */}\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6\">\n {stats.map((stat, idx) => (\n <motion.div\n key={idx}\n initial={{ opacity: 0, y: 20 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ delay: idx * 0.1 }}\n className=\"bg-surface-container-low p-6 rounded-2xl border border-outline-variant/10 shadow-xl group hover:border-primary/20 transition-colors\"\n >\n <p className=\"text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 mb-1\">{stat.label}</p>\n <h3 className={`text-3xl font-headline font-black ${stat.color}`}>{stat.value}</h3>\n \n {stat.change && (\n <div className={`mt-4 flex items-center text-[10px] font-black uppercase tracking-wider ${stat.color} ${stat.bg} px-2.5 py-1 rounded-full w-fit`}>\n <stat.icon size={12} className=\"mr-1.5\" />\n {stat.change} vs last month\n </div>\n )}\n \n {stat.trend !== undefined && (\n <div className=\"mt-4 w-full bg-surface-container-highest h-1.5 rounded-full overflow-hidden\">\n <motion.div \n initial={{ width: 0 }}\n animate={{ width: `${stat.trend}%` }}\n transition={{ duration: 1, delay: 0.5 }}\n className=\"bg-primary h-full shadow-[0_0_12px_rgba(173,198,255,0.6)]\"\n />\n </div>\n )}\n \n {stat.subtext && (\n <p className=\"mt-4 text-[11px] text-on-surface-variant/50 font-medium italic\">{stat.subtext}</p>\n )}\n </motion.div>\n ))}\n </div>\n\n {/* Recurrent Tasks Table */}\n <motion.div \n initial={{ opacity: 0, y: 20 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ delay: 0.4 }}\n className=\"bg-surface-container-low rounded-2xl overflow-hidden border border-outline-variant/10 shadow-2xl\"\n >\n <div className=\"px-8 py-5 flex flex-col md:flex-row justify-between items-center gap-4 bg-surface-container-high/30 border-b border-outline-variant/10\">\n <h4 className=\"font-headline font-bold text-lg text-white\">Recurrent Protocols</h4>\n <div className=\"flex gap-6\">\n <span className=\"text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 flex items-center gap-2\">\n <span className=\"w-2 h-2 rounded-full bg-secondary shadow-[0_0_8px_rgba(78,222,163,0.4)]\"></span> Active\n </span>\n <span className=\"text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 flex items-center gap-2\">\n <span className=\"w-2 h-2 rounded-full bg-on-surface-variant/40\"></span> Paused\n </span>\n <span className=\"text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 flex items-center gap-2\">\n <span className=\"w-2 h-2 rounded-full bg-error shadow-[0_0_8px_rgba(255,180,171,0.4)]\"></span> Error\n </span>\n </div>\n </div>\n\n <div className=\"divide-y divide-outline-variant/10\">\n {loading ? (\n <div className=\"flex flex-col items-center justify-center p-20 space-y-4\">\n <RefreshCw className=\"text-primary animate-spin\" size={40} />\n <p className=\"text-on-surface-variant font-mono text-xs uppercase tracking-widest animate-pulse\">Synchronizing Fleet States...</p>\n </div>\n ) : tasks.length === 0 ? (\n <div className=\"flex flex-col items-center justify-center p-20 space-y-6 text-center\">\n <div className=\"w-16 h-16 rounded-full bg-surface-container-highest flex items-center justify-center text-on-surface-variant\">\n <Database size={32} />\n </div>\n <div className=\"space-y-1\">\n <h5 className=\"text-xl font-headline font-bold text-white\">No active protocols detected</h5>\n <p className=\"text-on-surface-variant max-w-sm font-body\">Deployment requested: Initiating autonomous routines requires manual configuration.</p>\n </div>\n <button \n onClick={openCreateModal}\n className=\"px-4 py-2 border border-primary/30 text-primary rounded-lg text-[10px] font-black uppercase tracking-widest hover:bg-primary/5 transition-colors\"\n >\n Initiate First Sequence\n </button>\n </div>\n ) : (\n tasks.map((task) => (\n <div key={task.id} className=\"px-8 py-6 hover:bg-surface-container-high/20 transition-all group\">\n <div className=\"grid grid-cols-1 lg:grid-cols-[auto_1fr_160px_160px_160px_220px] items-center gap-10\">\n {/* Column 1: Icon */}\n <div className={`w-12 h-12 rounded-xl bg-surface-container-highest flex items-center justify-center border border-outline-variant/20 group-hover:border-primary/30 transition-colors shadow-inner`}>\n <Activity className={task.status === RecurrentTaskStatus.ERROR ? 'text-error' : 'text-primary'} size={24} />\n </div>\n\n {/* Column 2: Title & Agent */}\n <div>\n <h5 \n className=\"text-xl font-headline font-black text-white mb-2 group-hover:text-primary transition-colors tracking-tight cursor-pointer\"\n onClick={() => openEditModal(task)}\n >\n {task.title}\n </h5>\n <div className=\"flex items-center gap-3\">\n <span className=\"flex items-center gap-1.5 bg-surface-container-highest px-3 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest text-on-surface-variant border border-outline-variant/10 shadow-sm\">\n <Bot size={12} />\n {task.assignee?.name || 'Unassigned'}\n </span>\n </div>\n </div>\n\n {/* Column 3: Execution Pattern */}\n <div className=\"hidden lg:block\">\n <p className=\"text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/40 mb-2\">Cycle Pattern</p>\n <div className=\"flex flex-col gap-1\">\n <p className=\"font-mono text-xs text-tertiary font-bold tracking-widest\">{task.cronExpression}</p>\n <p className=\"text-[10px] text-on-surface-variant/60 font-medium uppercase tracking-tighter italic\">Recurrent Loop</p>\n </div>\n </div>\n\n {/* Column 4: Last Execution */}\n <div className=\"hidden lg:block\">\n <p className=\"text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/40 mb-2\">Last Execution</p>\n <p className={`text-sm font-bold tracking-tight text-white/90`}>\n {task.lastRun ? new Date(task.lastRun).toLocaleString() : (\n <span className=\"text-on-surface-variant/40 italic\">Never executed</span>\n )}\n </p>\n </div>\n\n {/* Column 5: Created At */}\n <div className=\"hidden lg:block\">\n <p className=\"text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/40 mb-2\">Deployed</p>\n <p className=\"text-sm font-bold text-on-surface tracking-tight\">{new Date(task.createdAt).toLocaleDateString()}</p>\n </div>\n\n {/* Column 6: Status & Actions */}\n <div className=\"flex items-center justify-end relative h-full\">\n <div className=\"flex items-center gap-4 group-hover:opacity-0 transition-opacity\">\n <span className={`px-4 py-1.5 rounded-full text-[10px] font-black uppercase tracking-widest border transition-all ${\n task.status === RecurrentTaskStatus.ACTIVE ? 'bg-secondary/10 text-secondary border-secondary/20 shadow-[0_0_15px_rgba(78,222,163,0.1)]' :\n task.status === RecurrentTaskStatus.PAUSED ? 'bg-surface-container-highest text-on-surface-variant/60 border-outline-variant/20' :\n 'bg-error/10 text-error border-error/20 shadow-[0_0_15px_rgba(255,180,171,0.1)]'\n }`}>\n {task.status}\n </span>\n </div>\n \n <div className=\"absolute right-0 flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-all translate-x-2 group-hover:translate-x-0\">\n <button \n className={`p-3 transition-colors ${task.status === RecurrentTaskStatus.ACTIVE ? 'text-secondary hover:text-secondary/80' : 'text-on-surface-variant hover:text-secondary'}`} \n title={task.status === RecurrentTaskStatus.ACTIVE ? 'Pause Protocol' : 'Resume Protocol'}\n onClick={() => handleToggleStatus(task)}\n >\n {task.status === RecurrentTaskStatus.ACTIVE ? <Pause size={20} /> : <Play size={20} />}\n </button>\n <button \n className=\"p-3 text-on-surface-variant hover:text-primary transition-colors\" \n title=\"Edit\"\n onClick={() => openEditModal(task)}\n >\n <Edit size={20} />\n </button>\n <button \n className=\"p-3 text-on-surface-variant hover:text-error transition-colors\" \n title=\"Delete\"\n onClick={() => handleDelete(task.id, task.title)}\n >\n <Trash2 size={20} />\n </button>\n </div>\n </div>\n </div>\n </div>\n ))\n )}\n </div>\n </motion.div>\n\n {/* AI Insight Section */}\n <motion.div \n initial={{ opacity: 0, scale: 0.98 }}\n animate={{ opacity: 1, scale: 1 }}\n transition={{ delay: 0.6 }}\n className=\"p-8 rounded-3xl bg-gradient-to-br from-tertiary/10 via-surface-container-low to-surface-container-low border border-tertiary/20 relative overflow-hidden group\"\n >\n <div className=\"relative z-10 flex flex-col md:flex-row gap-8 items-start md:items-center\">\n <div className=\"w-16 h-16 bg-tertiary/10 rounded-2xl border border-tertiary/20 flex items-center justify-center text-tertiary shadow-xl group-hover:scale-110 transition-transform duration-500\">\n <Sparkles size={32} />\n </div>\n <div className=\"flex-1 space-y-4\">\n <div>\n <h4 className=\"text-xl font-headline font-black text-tertiary mb-2 uppercase tracking-tight\">Orchestrator Intelligence Insight</h4>\n <p className=\"text-on-surface-variant leading-relaxed max-w-4xl font-body italic text-base\">\n \"Scheduling patterns suggest a resource collision likely at <span className=\"text-tertiary font-bold\">03:00 UTC</span> between 'Daily Market Sweep' and the 'Primary Indexer'. I recommend shifting the Market Sweep forward by 15 minutes to optimize throughput by 12.4%.\"\n </p>\n </div>\n <div className=\"flex gap-4\">\n <button className=\"px-6 py-2.5 bg-tertiary text-on-tertiary rounded-xl font-black text-xs uppercase tracking-widest hover:opacity-90 shadow-lg shadow-tertiary/20 transition-all\">Apply Optimization</button>\n <button className=\"px-6 py-2.5 border border-tertiary/30 text-tertiary rounded-xl font-black text-xs uppercase tracking-widest hover:bg-tertiary/5 transition-colors\">Dismiss</button>\n </div>\n </div>\n </div>\n {/* Abstract background glow */}\n <div className=\"absolute -right-20 -bottom-20 w-80 h-80 bg-tertiary/5 blur-[100px] rounded-full group-hover:bg-tertiary/10 transition-colors duration-1000\"></div>\n </motion.div>\n\n {/* Floating System Stream (Relative to main container for now, but will likely be fixed if integrated into layout) */}\n <motion.div \n initial={{ opacity: 0, y: 50 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ delay: 0.8, duration: 0.8 }}\n className=\"fixed bottom-8 right-8 w-80 bg-surface-container-highest/60 backdrop-blur-2xl p-6 rounded-2xl shadow-[0_32px_64px_rgba(0,0,0,0.5)] border border-outline-variant/20 z-10\"\n >\n <div className=\"flex items-center justify-between mb-6\">\n <div className=\"flex items-center gap-3\">\n <span className=\"w-2.5 h-2.5 rounded-full bg-secondary animate-pulse shadow-[0_0_8px_rgba(78,222,163,0.6)]\"></span>\n <span className=\"text-[10px] font-black font-headline uppercase tracking-[0.2em] text-secondary\">Real-time Stream</span>\n </div>\n <button className=\"text-on-surface-variant hover:text-white transition-colors\">\n <Search size={14} />\n </button>\n </div>\n \n <div className=\"space-y-4\">\n {[\n { time: '09:42:11', msg: 'started execution sweep', node: 'Oracle-v2', nodeColor: 'text-primary' },\n { time: '09:41:00', msg: 'verified task queue (12 tasks)', node: 'Cron-Engine', nodeColor: 'text-on-surface' },\n { time: '09:30:00', msg: 'archived 400 records', node: 'Log-Service', nodeColor: 'text-secondary' },\n ].map((log, i) => (\n <div key={i} className=\"flex gap-4 text-xs font-medium\">\n <span className=\"text-on-surface-variant/40 font-mono tracking-tighter shrink-0\">{log.time}</span>\n <p className=\"text-on-surface-variant/80\">\n <span className={`${log.nodeColor} font-black`}>{log.node}</span> {log.msg}\n </p>\n </div>\n ))}\n </div>\n \n <button className=\"w-full mt-8 py-3 bg-surface-container/40 border border-outline-variant/10 rounded-xl text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 hover:bg-surface-container-high hover:text-white transition-all\">\n Expand Log Manifest\n </button>\n </motion.div>\n\n <CreateRecurrentTaskModal \n isOpen={isModalOpen}\n onClose={() => setIsModalOpen(false)}\n onSuccess={() => {\n setIsMod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,EAAA,EAAA,KAAC,EAAD,CAAQ,KAAM,GAAM,CAAA,CACb,CAAA,CACL,IAEN,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,qBACZ,CACC,CAAE,KAAM,WAAY,IAAK,0BAA2B,KAAM,YAAa,UAAW,eAAgB,CAClG,CAAE,KAAM,WAAY,IAAK,iCAAkC,KAAM,cAAe,UAAW,kBAAmB,CAC9G,CAAE,KAAM,WAAY,IAAK,uBAAwB,KAAM,cAAe,UAAW,iBAAkB,CACpG,CAAC,KAAK,EAAK,KACV,EAAA,EAAA,MAAC,MAAD,CAAa,UAAU,0CAAvB,EACE,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,0EAAkE,EAAI,KAAY,CAAA,EAClG,EAAA,EAAA,MAAC,IAAD,CAAG,UAAU,sCAAb,EACE,EAAA,EAAA,KAAC,OAAD,CAAM,UAAW,GAAG,EAAI,UAAU,sBAAe,EAAI,KAAY,CAAA,KAAE,EAAI,IACrE,GACA,EALI,EAKJ,CACN,CACE,CAAA,EAEN,EAAA,EAAA,KAAC,SAAD,CAAQ,UAAU,4OAAmO,sBAE5O,CAAA,CACE,IAEb,EAAA,EAAA,KAAC,EAAD,CACE,OAAQ,EACR,YAAe,EAAe,GAAM,CACpC,cAAiB,CACf,EAAe,GAAM,CACrB,GAAY,EAEd,YAAa,EACb,CAAA,CACE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,t}from"./rolldown-runtime-COnpUsM8.js";import{g as n}from"./vendor-dnd-CxfOy4-Z.js";import{c as r,s as i}from"./vendor-react-CiDbU5Ns.js";import{i as a,n as o,t as s}from"./vendor-query-DQlZ8h7P.js";import{n as c,r as l,t as u}from"./vendor-markdown-Dl_1qnne.js";import{o as d,r as f,t as p}from"./useNotification-DK-pV16c.js";import{n as m,t as h}from"./zap-D1sST66b.js";import{n as g,t as _}from"./InitialsAvatar-0mIRaTK8.js";import{n as v,t as y}from"./shield-check-D7JIluse.js";import{t as b}from"./send-BA7-sXzg.js";import{t as x}from"./trash-2-BNP4kC5c.js";import{o as S,t as C}from"./ConfirmDialog-mRH8i_xK.js";import{t as w}from"./user-Cp55HCCi.js";import"./vendor-motion-CkXYvnuI.js";import{a as T,n as E,v as D}from"./index-yzhzS93F.js";import{t as O}from"./MarkdownField-flCuU7w3.js";import{a as ee,c as k,o as A,s as te}from"./vendor-forms-HC2wK6B9.js";import{n as j,r as M,t as N}from"./tasks-DEHCZk48.js";var P=d(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),ne=d(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),F=d(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),I=d(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),re=d(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ie=d(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),L=e(n(),1),R={USER:`user`,AGENT:`agent`},z={create:async(e,t)=>(await f.post(`/tasks/${e}/comments`,t)).data,findAllByTask:async e=>(await f.get(`/tasks/${e}/comments`)).data,remove:async(e,t)=>{await f.delete(`/tasks/${e}/comments/${t}`)}},B=l(),V=({name:e,size:t,type:n,filePath:r})=>{let i=[`png`,`jpg`,`jpeg`,`svg`,`gif`].includes(n.toLowerCase()),a=r.startsWith(`http`)?r:`/api/v1/${r}`;return(0,B.jsxs)(`div`,{className:`flex items-center gap-4 p-3 bg-surface-container-highest/40 rounded-lg border border-outline-variant/10 group hover:border-primary/20 transition-all cursor-pointer`,onClick:()=>window.open(a,`_blank`),children:[(0,B.jsx)(`div`,{className:`h-10 w-10 rounded shadow-inner flex items-center justify-center overflow-hidden ${i?`bg-secondary/10 text-secondary`:`bg-primary/10 text-primary`}`,children:i?(0,B.jsx)(`img`,{src:a,alt:e,className:`h-full w-full object-cover`}):(0,B.jsx)(g,{size:20})}),(0,B.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,B.jsx)(`p`,{className:`text-xs font-bold text-on-surface truncate`,children:e}),(0,B.jsx)(`p`,{className:`text-[10px] text-on-surface-variant/60 font-medium uppercase tracking-tighter`,children:t||`Artifact`})]}),(0,B.jsx)(`div`,{className:`flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity`,children:(0,B.jsx)(`button`,{className:`p-1.5 hover:bg-surface-container-highest rounded text-on-surface-variant hover:text-primary transition-colors`,children:(0,B.jsx)(F,{size:14})})})]})},H=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,E,w),e.$i=!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),U=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){return function(e,t,n){e=e||{};var r=t.prototype,i={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function a(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,a,o,s){for(var c,l,u,d=a.$locale().relativeTime||i,f=e.thresholds||[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],p=f.length,m=0;m<p;m+=1){var h=f[m];h.d&&(c=o?n(t).diff(a,h.d,!0):a.diff(t,h.d,!0));var g=(e.rounding||Math.round)(Math.abs(c));if(u=c>0,g<=h.r||!h.r){g<=1&&m>0&&(h=f[m-1]);var _=d[h.l];s&&(g=s(``+g)),l=typeof _==`string`?_.replace(`%d`,g):_(g,r,h.l,u);break}}if(r)return l;var v=u?d.future:d.past;return typeof v==`function`?v(l):v.replace(`%s`,l)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}}))})),W=e(H(),1),G=e(U(),1);W.default.extend(G.default);var K=({comment:e,onDelete:t})=>{let n=e.authorType===R.AGENT,r=n?e.authorAgent?.name:e.authorUser?.username,i=n?e.authorAgent?.avatarUrl:e.authorUser?.avatarUrl;return(0,B.jsxs)(`div`,{className:`flex gap-4 group`,children:[(0,B.jsx)(`div`,{className:`flex-shrink-0 h-10 w-10 rounded-xl flex items-center justify-center border transition-all ${n?`bg-tertiary/10 border-tertiary/20 text-tertiary shadow-[0_0_15px_rgba(221,183,255,0.1)]`:`bg-primary/10 border-primary/20 text-primary shadow-[0_0_15px_rgba(173,198,255,0.1)]`}`,children:i?(0,B.jsx)(`img`,{src:i,alt:r,className:`h-full w-full object-cover p-1`}):n?(0,B.jsx)(D,{size:20}):(0,B.jsx)(w,{size:20})}),(0,B.jsxs)(`div`,{className:`flex-1 space-y-3`,children:[(0,B.jsxs)(`div`,{className:`flex items-baseline justify-between`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(`span`,{className:`text-sm font-headline font-bold ${n?`text-tertiary`:`text-primary`}`,children:r||`Anonymous`}),n&&(0,B.jsx)(`span`,{className:`px-1.5 py-0.5 bg-tertiary/10 text-tertiary text-[9px] font-black uppercase tracking-widest rounded border border-tertiary/20`,children:`Agent`})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,B.jsx)(`span`,{className:`text-xs font-mono text-on-surface-variant/40 lowercase`,children:(0,W.default)(e.createdAt).format(`MMM DD, YYYY HH:mm:ss`)}),t&&(0,B.jsx)(`button`,{onClick:()=>t(e.id),className:`opacity-0 group-hover:opacity-100 p-2 hover:bg-error/10 text-on-surface-variant/40 hover:text-error rounded-lg transition-all`,title:`Delete comment`,children:(0,B.jsx)(x,{size:18})})]})]}),(0,B.jsxs)(`div`,{className:`bg-surface-container-high/40 border border-outline-variant/5 p-4 rounded-xl shadow-sm group-hover:bg-surface-container-high/60 transition-colors`,children:[(0,B.jsx)(`div`,{className:`prose prose-invert prose-xs max-w-none text-on-surface leading-relaxed`,children:(0,B.jsx)(c,{remarkPlugins:[u],children:e.content})}),e.artifacts&&e.artifacts.length>0&&(0,B.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-3 mt-4 pt-4 border-t border-outline-variant/10`,children:e.artifacts.map(e=>(0,B.jsx)(V,{name:e.originalName,type:e.mimeType.split(`/`)[1]||`file`,filePath:e.filePath,size:`Artifact`},e.id))})]})]})]})},q=({comments:e,isLoading:t,onDelete:n})=>(0,B.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 py-6 custom-scrollbar`,children:t?(0,B.jsx)(`div`,{className:`space-y-6 animate-pulse`,children:[1,2,3].map(e=>(0,B.jsxs)(`div`,{className:`flex gap-4`,children:[(0,B.jsx)(`div`,{className:`h-10 w-10 bg-surface-container-highest rounded-xl`}),(0,B.jsxs)(`div`,{className:`flex-1 space-y-3`,children:[(0,B.jsx)(`div`,{className:`h-4 w-1/4 bg-surface-container-highest rounded`}),(0,B.jsx)(`div`,{className:`h-20 w-full bg-surface-container-highest rounded-xl`})]})]},e))}):e.length===0?(0,B.jsxs)(`div`,{className:`flex flex-col items-center justify-center p-12 text-center space-y-4 bg-surface-container-high/20 rounded-2xl border border-dashed border-outline-variant/20`,children:[(0,B.jsx)(`div`,{className:`h-12 w-12 rounded-full bg-surface-container-highest flex items-center justify-center text-on-surface-variant/40`,children:(0,B.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,B.jsx)(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})})}),(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-bold text-on-surface`,children:`No comments yet`}),(0,B.jsx)(`p`,{className:`text-xs text-on-surface-variant/60`,children:`Start the conversation by adding a comment below.`})]})]}):(0,B.jsx)(`div`,{className:`space-y-8`,children:e.map(e=>(0,B.jsx)(K,{comment:e,onDelete:n},e.id))})}),J=({onSend:e,isSending:t})=>{let[n,r]=(0,L.useState)(``),i=()=>{n.trim()&&!t&&(e(n),r(``))};return(0,B.jsxs)(`div`,{className:`bg-surface-container-low border border-outline-variant/10 rounded-2xl p-4 shadow-2xl shadow-primary/5 focus-within:border-primary/30 transition-all space-y-4`,children:[(0,B.jsx)(O,{value:n,onChange:r,onKeyDown:e=>{e.key===`Enter`&&(e.ctrlKey||e.metaKey)&&i()},placeholder:`Write a comment...`,height:`min-h-[120px]`}),(0,B.jsxs)(`div`,{className:`flex items-center justify-between pt-4 border-t border-outline-variant/5`,children:[(0,B.jsx)(`div`,{className:`flex items-center gap-1`}),(0,B.jsx)(`button`,{onClick:i,disabled:!n.trim()||t,className:`flex items-center gap-2 px-5 py-2.5 rounded-xl font-bold text-xs uppercase tracking-widest transition-all active:scale-95 disabled:opacity-50 disabled:active:scale-100 ${n.trim()?`bg-gradient-to-r from-primary to-primary/80 text-on-primary shadow-lg shadow-primary/20 hover:brightness-110`:`bg-surface-container-highest text-on-surface-variant cursor-not-allowed`}`,children:t?(0,B.jsx)(`div`,{className:`w-4 h-4 rounded-full border-2 border-on-primary/30 border-t-on-primary animate-spin`}):(0,B.jsxs)(B.Fragment,{children:[`Send`,(0,B.jsx)(b,{size:14})]})})]})]})},ae=({taskId:e})=>{let[t,n]=(0,L.useState)(!1),[r,i]=(0,L.useState)(null),[s,c]=(0,L.useState)(!1),{user:l}=T(),{notifySuccess:u,notifyApiError:d}=p(),f=a(),{data:m=[],isLoading:h}=o({queryKey:[`comments`,e],queryFn:async()=>[...await z.findAllByTask(e)].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),enabled:!!e,refetchInterval:1e4}),g=(0,L.useCallback)(()=>{f.invalidateQueries({queryKey:[`comments`,e]})},[f,e]);return(0,B.jsxs)(`div`,{className:`bg-surface-container-low rounded-2xl border border-outline-variant/10 shadow-2xl shadow-primary/5 overflow-hidden flex flex-col h-full`,children:[(0,B.jsxs)(`div`,{className:`p-6 border-b border-outline-variant/5 flex items-center justify-between bg-surface-container-low/50 backdrop-blur-md sticky top-0 z-10`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,B.jsx)(`div`,{className:`bg-primary/20 p-2.5 rounded-xl shadow-lg shadow-primary/10`,children:(0,B.jsx)(I,{size:22,className:`text-secondary stroke-[2.5]`})}),(0,B.jsx)(`h2`,{className:`text-lg font-headline font-black tracking-tight text-on-surface`,children:`Comments & Activity`})]}),(0,B.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,B.jsxs)(`span`,{className:`text-[10px] bg-white/5 border border-white/10 px-2 py-0.5 rounded text-white/40 font-mono tracking-widest uppercase`,children:[m.length,` Logged`]})})]}),(0,B.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,B.jsx)(q,{comments:m,isLoading:h,onDelete:e=>{i(e)}})}),(0,B.jsx)(`div`,{className:`p-6 bg-surface-container-low/50 border-t border-outline-variant/5 backdrop-blur-md`,children:(0,B.jsx)(J,{onSend:async t=>{if(!(!e||!l))try{n(!0),await z.create(e,{content:t,authorType:R.USER,authorUserId:l.id}),g()}catch(e){console.error(`Failed to send comment:`,e)}finally{n(!1)}},isSending:t})}),(0,B.jsx)(C,{isOpen:!!r,onClose:()=>!s&&i(null),onConfirm:async()=>{if(!(!e||!r))try{c(!0),await z.remove(e,r),g(),i(null),u(`Protocol Cleared`,`The comment data has been purged from the orchestration logs.`)}catch(e){console.error(`Failed to delete comment:`,e),d(e,`Purge Failed`)}finally{c(!1)}},title:`Purge Communication Protocol?`,message:`This action will permanently erase the selected entry and all its associated artifacts from the neural stream. This operation is irreversible.`,confirmText:`Execute Purge`,variant:`danger`,loading:s})]})},oe={title:``,description:``,status:j.BACKLOG,priority:N.MEDIUM,assigneeId:``},Y=()=>{let{projectId:e,taskId:t}=r(),n=i(),c=a(),{notifyApiError:l,notifyError:u,notifySuccess:d}=p(),f=(0,L.useId)(),g=(0,L.useId)(),b=(0,L.useId)(),C=(0,L.useId)(),w=(0,L.useId)(),{control:T,formState:{errors:D,isDirty:F},handleSubmit:I,register:R,reset:z,setValue:V}=te({resolver:ee(S),defaultValues:oe,mode:`onBlur`}),H=o({queryKey:[`task`,e,t],enabled:!!(e&&t),queryFn:async()=>(await M.findOne(e,t)).data}),U=o({queryKey:[`agents`],queryFn:async()=>(await E.findAll()).data});(0,L.useEffect)(()=>{H.error&&l(H.error,`Fetch Error`)},[l,H.error]),(0,L.useEffect)(()=>{U.error&&l(U.error,`Agents Load Failed`)},[U.error,l]),(0,L.useEffect)(()=>{if(!H.data)return;let e=H.data.status===j.ARCHIVED?j.BACKLOG:H.data.status;z({title:H.data.title,description:H.data.description,status:e,priority:H.data.priority,assigneeId:H.data.assignee?.id??``})},[z,H.data]);let W=s({mutationFn:async n=>{if(!e||!t)throw Error(`Task route is missing required identifiers`);return await M.update(e,t,{title:n.title,description:n.description,status:n.status,priority:n.priority,assigneeId:n.assigneeId||null}),n},onSuccess:n=>{!e||!t||(c.invalidateQueries({queryKey:[`task`,e,t]}),c.invalidateQueries({queryKey:[`tasks`,e]}),z(n),d(`Task Updated`,`Intelligence node parameters successfully reconfigured.`))},onError:e=>{l(e,`Update Failed`)}}),G=s({mutationFn:async()=>{if(!e||!t)throw Error(`Task route is missing required identifiers`);await M.delete(e,t)},onSuccess:()=>{e&&c.invalidateQueries({queryKey:[`tasks`,e]}),c.removeQueries({queryKey:[`task`,e,t]}),d(`Task Decommissioned`,`Intelligence node removed from the orchestration grid.`),n(`/`)},onError:e=>{l(e,`Decommission Failed`)}}),K=H.data,q=(0,L.useMemo)(()=>U.data??[],[U.data]),J=k({control:T,name:`title`}),Y=k({control:T,name:`status`}),se=k({control:T,name:`priority`}),X=k({control:T,name:`assigneeId`}),Z=(0,L.useMemo)(()=>q.find(e=>e.id===X)??null,[q,X]),Q=H.isPending||W.isPending||G.isPending,ce=I(async e=>{await W.mutateAsync(e)},()=>{u(`Validation Error`,`Please review the highlighted fields before saving.`)}),le=()=>{G.isPending||window.confirm(`Are you sure you want to decommission this task node?`)&&G.mutate()};if(H.isPending)return(0,B.jsx)(`div`,{className:`w-full h-[60vh] flex items-center justify-center`,"aria-busy":`true`,children:(0,B.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,B.jsx)(`div`,{className:`w-16 h-16 border-4 border-primary border-t-transparent rounded-full animate-spin`}),(0,B.jsx)(`p`,{className:`text-on-surface-variant text-sm font-black uppercase tracking-[0.3em] animate-pulse`,children:`Accessing Node Data`})]})});if(!K)return(0,B.jsxs)(`div`,{className:`max-w-4xl mx-auto w-full py-16 text-center space-y-4`,children:[(0,B.jsx)(`p`,{className:`text-sm font-black uppercase tracking-[0.2em] text-on-surface-variant/60`,children:`Task intelligence node unavailable`}),(0,B.jsx)(`button`,{type:`button`,onClick:()=>n(`/`),className:`px-5 py-2 rounded-xl bg-surface-container-high text-on-surface hover:bg-surface-container-highest transition-colors`,children:`Return to Task Manager`})]});let $=`#NODE-${K.id.substring(0,4).toUpperCase()}`;return(0,B.jsxs)(`div`,{className:`max-w-7xl mx-auto w-full space-y-8 animate-in fade-in duration-500`,children:[(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4`,children:[(0,B.jsxs)(`nav`,{className:`flex items-center space-x-2 text-sm text-on-surface-variant font-medium`,"aria-label":`Task breadcrumb`,children:[(0,B.jsx)(`button`,{type:`button`,className:`hover:text-primary transition-colors`,onClick:()=>n(`/`),children:`Task Manager`}),(0,B.jsx)(m,{size:16,"aria-hidden":`true`}),(0,B.jsx)(`span`,{className:`text-on-surface`,children:$})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,B.jsxs)(`button`,{type:`button`,onClick:le,disabled:Q,className:`flex items-center gap-2 px-4 py-2 text-xs font-black uppercase tracking-widest text-error hover:bg-error/10 transition-all rounded-xl active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed`,children:[(0,B.jsx)(x,{size:16,"aria-hidden":`true`}),`Decommission`]}),(0,B.jsxs)(`button`,{type:`button`,disabled:!0,"aria-disabled":`true`,className:`flex items-center gap-2 px-4 py-2 text-xs font-black uppercase tracking-widest text-on-surface bg-surface-container-high hover:bg-surface-container-highest transition-all rounded-xl opacity-50 cursor-not-allowed`,children:[(0,B.jsx)(ne,{size:16,"aria-hidden":`true`}),`Halt execution`]}),(0,B.jsxs)(`button`,{type:`button`,onClick:ce,disabled:Q||!F,className:`flex items-center gap-2 px-6 py-2 text-xs font-black uppercase tracking-widest bg-primary text-on-primary rounded-xl shadow-lg shadow-primary/20 hover:scale-105 transition-all active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100`,children:[(0,B.jsx)(v,{size:16,"aria-hidden":`true`}),W.isPending?`Synchronizing...`:`Save Protocol`]})]})]}),(0,B.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-6`,children:[(0,B.jsxs)(`div`,{className:`lg:col-span-8 flex flex-col gap-6`,children:[(0,B.jsxs)(`div`,{className:`bg-surface-container-low p-8 rounded-2xl border border-outline-variant/10 shadow-2xl relative overflow-hidden`,children:[(0,B.jsx)(`div`,{className:`absolute top-0 right-0 w-32 h-32 bg-primary/5 rounded-full blur-3xl -mr-16 -mt-16`}),(0,B.jsxs)(`div`,{className:`flex items-start justify-between mb-10 relative z-10 gap-4`,children:[(0,B.jsxs)(`div`,{className:`space-y-1 min-w-0`,children:[(0,B.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-[0.2em] text-primary/70`,children:`Intelligence Node identifier`}),(0,B.jsxs)(`h2`,{className:`text-3xl font-headline font-black text-white tracking-tight break-words`,children:[$,`: `,J||K.title]})]}),(0,B.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,B.jsxs)(`select`,{...R(`status`),"aria-invalid":!!D.status,"aria-describedby":D.status?f:void 0,className:`appearance-none cursor-pointer px-6 py-2 rounded-xl border font-black text-[10px] uppercase tracking-widest outline-none transition-all hover:brightness-110 active:scale-95 ${Y===j.DONE?`bg-secondary/10 border-secondary/20 text-secondary`:Y===j.IN_PROGRESS?`bg-primary/10 border-primary/20 text-primary`:`bg-surface-container-highest/50 border-outline-variant/20 text-on-surface-variant`}`,children:[(0,B.jsx)(`option`,{value:j.BACKLOG,className:`bg-surface-container-low`,children:`Backlog`}),(0,B.jsx)(`option`,{value:j.IN_PROGRESS,className:`bg-surface-container-low`,children:`In Progress`}),(0,B.jsx)(`option`,{value:j.REVIEW,className:`bg-surface-container-low`,children:`Review`}),(0,B.jsx)(`option`,{value:j.DONE,className:`bg-surface-container-low`,children:`Done`})]}),Y===j.IN_PROGRESS&&(0,B.jsxs)(`span`,{className:`absolute -left-1 -top-1 flex h-2 w-2`,"aria-hidden":`true`,children:[(0,B.jsx)(`span`,{className:`animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75`}),(0,B.jsx)(`span`,{className:`relative inline-flex rounded-full h-2 w-2 bg-primary`})]})]})]}),D.status&&(0,B.jsx)(`p`,{id:f,className:`mb-6 text-xs text-error font-semibold`,children:D.status.message}),(0,B.jsxs)(`div`,{className:`space-y-8 relative z-10`,children:[(0,B.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8`,children:[(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`label`,{htmlFor:`task-detail-title`,className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1`,children:`Node Designation`}),(0,B.jsx)(`input`,{id:`task-detail-title`,className:`w-full bg-surface-container-highest/30 border border-outline-variant/10 rounded-xl px-4 py-3 text-sm text-white focus:ring-1 focus:ring-primary/40 focus:bg-surface-container-highest/50 transition-all outline-none font-medium`,type:`text`,"aria-invalid":!!D.title,"aria-describedby":D.title?g:void 0,...R(`title`)}),D.title&&(0,B.jsx)(`p`,{id:g,className:`text-xs text-error font-semibold`,children:D.title.message})]}),(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`label`,{htmlFor:`task-detail-priority`,className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1`,children:`Operational Priority`}),(0,B.jsx)(A,{control:T,name:`priority`,render:({field:e})=>(0,B.jsxs)(`select`,{id:`task-detail-priority`,value:e.value,onChange:t=>e.onChange(Number(t.target.value)),onBlur:e.onBlur,"aria-invalid":!!D.priority,"aria-describedby":D.priority?b:void 0,className:`w-full border rounded-xl px-4 py-3 text-sm transition-all outline-none font-black tracking-widest uppercase appearance-none ${se===N.CRITICAL?`bg-error/30 text-white border-error shadow-[0_0_15px_rgba(255,107,107,0.15)] ring-1 ring-error/20`:`bg-surface-container-highest/30 text-white border-outline-variant/10 focus:ring-1 focus:ring-primary/40 focus:bg-surface-container-highest/50`}`,children:[(0,B.jsx)(`option`,{value:N.CRITICAL,className:`bg-surface-container-low`,children:`CRITICAL`}),(0,B.jsx)(`option`,{value:N.HIGH,className:`bg-surface-container-low`,children:`HIGH`}),(0,B.jsx)(`option`,{value:N.MEDIUM,className:`bg-surface-container-low`,children:`MEDIUM`}),(0,B.jsx)(`option`,{value:N.LOW,className:`bg-surface-container-low`,children:`LOW`})]})}),D.priority&&(0,B.jsx)(`p`,{id:b,className:`text-xs text-error font-semibold`,children:D.priority.message})]})]}),(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(A,{control:T,name:`description`,render:({field:e})=>(0,B.jsx)(O,{label:`Objective / Parameters`,value:e.value,onChange:t=>e.onChange(t),placeholder:`Describe the desired output and constraints for this node...`,height:`h-56`,helperText:`Supports GitHub Flavored Markdown for logic structure`,initialMode:`preview`,maxLength:2e3})}),D.description&&(0,B.jsx)(`p`,{id:C,className:`text-xs text-error font-semibold`,children:D.description.message})]})]})]}),(0,B.jsx)(`div`,{className:`flex-1 min-h-0`,children:(0,B.jsx)(ae,{taskId:t||``})})]}),(0,B.jsxs)(`div`,{className:`lg:col-span-4 space-y-6`,children:[(0,B.jsxs)(`div`,{className:`bg-surface-container-low p-8 rounded-2xl border border-outline-variant/10 shadow-xl`,children:[(0,B.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-tertiary/80 block mb-6`,children:`Assigned Intelligence`}),(0,B.jsxs)(`div`,{className:`space-y-4`,children:[(0,B.jsxs)(`div`,{className:`relative`,children:[(0,B.jsxs)(`select`,{value:X,onChange:e=>{V(`assigneeId`,e.target.value,{shouldDirty:!0,shouldValidate:!0})},"aria-invalid":!!D.assigneeId,"aria-describedby":D.assigneeId?w:void 0,className:`w-full bg-surface-container-high/50 border border-outline-variant/5 rounded-2xl p-5 appearance-none cursor-pointer focus:ring-1 focus:ring-tertiary/40 outline-none text-white font-headline font-black transition-all hover:border-tertiary/30`,children:[(0,B.jsx)(`option`,{value:``,children:`Protocol Unassigned`}),q.map(e=>(0,B.jsx)(`option`,{value:e.id,className:`bg-surface-container-low`,children:e.name},e.id))]}),(0,B.jsx)(`div`,{className:`absolute right-5 top-1/2 -translate-y-1/2 pointer-events-none text-on-surface-variant/40`,children:(0,B.jsx)(P,{size:20,"aria-hidden":`true`})})]}),D.assigneeId&&(0,B.jsx)(`p`,{id:w,className:`text-xs text-error font-semibold`,children:D.assigneeId.message}),Z?(0,B.jsxs)(`div`,{className:`flex items-center gap-5 p-5 bg-tertiary/5 rounded-2xl border border-tertiary/10 animate-in fade-in slide-in-from-top-2 duration-300`,children:[(0,B.jsx)(`div`,{className:`h-14 w-14 rounded-xl bg-tertiary/10 flex items-center justify-center text-tertiary overflow-hidden shadow-inner`,children:(0,B.jsx)(_,{name:Z.name||`U`,size:48,className:`rounded-lg`})}),(0,B.jsxs)(`div`,{className:`flex-1`,children:[(0,B.jsx)(`h4`,{className:`font-headline font-black text-white`,children:Z.name}),(0,B.jsx)(`p`,{className:`text-[10px] text-tertiary/60 font-black uppercase tracking-widest mt-1`,children:Z.role||`Intelligence Unit`})]})]}):(0,B.jsxs)(`div`,{className:`flex items-center gap-5 p-5 bg-surface-container-high/20 rounded-2xl border border-dashed border-outline-variant/20 italic`,children:[(0,B.jsx)(`div`,{className:`h-14 w-14 rounded-xl bg-surface-container-highest/30 flex items-center justify-center text-on-surface-variant/20`,children:(0,B.jsx)(h,{size:24,"aria-hidden":`true`})}),(0,B.jsxs)(`div`,{className:`flex-1`,children:[(0,B.jsx)(`h4`,{className:`font-headline font-bold text-on-surface-variant/40`,children:`Awaiting Assignment`}),(0,B.jsx)(`p`,{className:`text-[9px] text-on-surface-variant/30 font-black uppercase tracking-widest mt-1`,children:`Grid performance limited`})]})]})]}),(0,B.jsxs)(`button`,{type:`button`,disabled:!0,"aria-disabled":`true`,className:`w-full mt-6 py-3 text-[10px] font-black uppercase tracking-[0.2em] text-on-surface-variant transition-all flex items-center justify-center gap-3 bg-surface-container-highest/20 rounded-xl border border-outline-variant/5 opacity-50 cursor-not-allowed`,children:[(0,B.jsx)(re,{size:16,className:`text-primary`,"aria-hidden":`true`}),`Tune Node Parameters`]})]}),(0,B.jsxs)(`div`,{className:`bg-surface-container-low p-8 rounded-2xl border border-outline-variant/10 shadow-xl`,children:[(0,B.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 block mb-8`,children:`Execution metrics`}),(0,B.jsxs)(`div`,{className:`space-y-8`,children:[(0,B.jsxs)(`div`,{className:`space-y-3`,children:[(0,B.jsxs)(`div`,{className:`flex justify-between items-end`,children:[(0,B.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface`,children:`Node Progress`}),(0,B.jsxs)(`span`,{className:`text-xs font-mono text-primary font-bold`,children:[Y===j.DONE?`100`:Y===j.IN_PROGRESS?`42`:`0`,`%`]})]}),(0,B.jsx)(`div`,{className:`h-2 w-full bg-surface-container-highest rounded-full overflow-hidden`,children:(0,B.jsx)(`div`,{className:`h-full rounded-full transition-all duration-1000 ${Y===j.DONE?`bg-secondary`:`bg-primary`}`,style:{width:`${Y===j.DONE?100:Y===j.IN_PROGRESS?42:0}%`}})})]}),(0,B.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,B.jsxs)(`div`,{className:`p-4 bg-surface-container-highest/20 rounded-xl border border-outline-variant/5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 mb-1 text-on-surface-variant/60`,children:[(0,B.jsx)(h,{size:14,className:`text-secondary`,"aria-hidden":`true`}),(0,B.jsx)(`span`,{className:`text-[9px] font-black uppercase tracking-widest`,children:`Latency`})]}),(0,B.jsxs)(`div`,{className:`text-lg font-mono font-bold text-white`,children:[K.llm_latency||0,`ms`]})]}),(0,B.jsxs)(`div`,{className:`p-4 bg-surface-container-highest/20 rounded-xl border border-outline-variant/5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 mb-1 text-on-surface-variant/60`,children:[(0,B.jsx)(ie,{size:14,className:`text-tertiary`,"aria-hidden":`true`}),(0,B.jsx)(`span`,{className:`text-[9px] font-black uppercase tracking-widest`,children:`Node Cost`})]}),(0,B.jsxs)(`div`,{className:`text-lg font-mono font-bold text-white`,children:[`$`,(K.cost_estimate||0).toFixed(6)]})]})]})]})]}),(0,B.jsxs)(`div`,{className:`bg-gradient-to-br from-secondary/5 to-primary/5 p-8 rounded-2xl border border-secondary/10 relative overflow-hidden group shadow-xl`,children:[(0,B.jsx)(`div`,{className:`absolute top-0 right-0 -mr-4 -mt-4 text-secondary/5 opacity-50 transition-transform group-hover:scale-110`,children:(0,B.jsx)(y,{size:120,"aria-hidden":`true`})}),(0,B.jsxs)(`div`,{className:`relative z-10`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 mb-3`,children:[(0,B.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-[0.2em] text-secondary/80`,children:`Integrity status`}),(0,B.jsx)(`span`,{className:`px-2 py-0.5 bg-secondary/20 text-secondary text-[9px] font-black rounded uppercase`,children:`Optimal`})]}),(0,B.jsx)(`div`,{className:`text-4xl font-headline font-black text-white tracking-tighter`,children:`99.8%`}),(0,B.jsx)(`p`,{className:`text-[10px] text-on-surface-variant/60 mt-2 italic font-medium leading-relaxed`,children:`Intelligence stream verified and synchronized across grid.`})]})]})]})]})]})};export{Y as default};
|