@next-bricks/ai-portal 0.32.9 → 0.33.0

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.
Files changed (93) hide show
  1. package/dist/bricks.json +23 -21
  2. package/dist/chunks/3554.206bf5f8.js +2 -0
  3. package/dist/chunks/3554.206bf5f8.js.map +1 -0
  4. package/dist/chunks/4937.be28e874.js +2 -0
  5. package/dist/chunks/4937.be28e874.js.map +1 -0
  6. package/dist/chunks/4957.f878df32.js +3 -0
  7. package/dist/chunks/4957.f878df32.js.LICENSE.txt +5 -0
  8. package/dist/chunks/4957.f878df32.js.map +1 -0
  9. package/dist/chunks/5521.ef48a4d3.js +2 -0
  10. package/dist/chunks/5521.ef48a4d3.js.map +1 -0
  11. package/dist/chunks/7367.26e21493.js +3 -0
  12. package/dist/chunks/7367.26e21493.js.LICENSE.txt +13 -0
  13. package/dist/chunks/7367.26e21493.js.map +1 -0
  14. package/dist/chunks/7525.b8ed4213.js +2 -0
  15. package/dist/chunks/7525.b8ed4213.js.map +1 -0
  16. package/dist/chunks/7824.c9360190.js +3 -0
  17. package/dist/chunks/{6677.2fea9748.js.LICENSE.txt → 7824.c9360190.js.LICENSE.txt} +4 -12
  18. package/dist/chunks/7824.c9360190.js.map +1 -0
  19. package/dist/chunks/8324.71f13678.js +2 -0
  20. package/dist/chunks/8324.71f13678.js.map +1 -0
  21. package/dist/chunks/833.ea1388c6.js +2 -0
  22. package/dist/chunks/833.ea1388c6.js.map +1 -0
  23. package/dist/chunks/8989.ddf83737.js +2 -0
  24. package/dist/chunks/{8989.9db8c4fb.js.map → 8989.ddf83737.js.map} +1 -1
  25. package/dist/chunks/9535.9827a039.js +2 -0
  26. package/dist/chunks/9535.9827a039.js.map +1 -0
  27. package/dist/chunks/entity-sdk-get.37c62d5f.js +3 -0
  28. package/dist/chunks/entity-sdk-get.37c62d5f.js.LICENSE.txt +1 -0
  29. package/dist/chunks/entity-sdk-get.37c62d5f.js.map +1 -0
  30. package/dist/chunks/entity-sdk-list.0b8120ce.js +3 -0
  31. package/dist/chunks/entity-sdk-list.0b8120ce.js.LICENSE.txt +1 -0
  32. package/dist/chunks/entity-sdk-list.0b8120ce.js.map +1 -0
  33. package/dist/chunks/main.0cbe3b18.js +2 -0
  34. package/dist/chunks/main.0cbe3b18.js.map +1 -0
  35. package/dist/examples.json +11 -11
  36. package/dist/index.7b4d5912.js +2 -0
  37. package/dist/index.7b4d5912.js.map +1 -0
  38. package/dist/manifest.json +155 -149
  39. package/dist/types.json +546 -817
  40. package/dist-types/bootstrap.d.ts +2 -0
  41. package/dist-types/chat-stream/ChatStream.d.ts +1 -1
  42. package/dist-types/cruise-canvas/CruiseCanvas.d.ts +1 -1
  43. package/dist-types/cruise-canvas/NodeJob/NodeJob.d.ts +2 -2
  44. package/dist-types/cruise-canvas/interfaces.d.ts +3 -11
  45. package/dist-types/cruise-canvas/reducers/interfaces.d.ts +1 -0
  46. package/dist-types/data-providers/entity-sdk-get.d.ts +1 -0
  47. package/dist-types/data-providers/entity-sdk-list.d.ts +1 -0
  48. package/dist-types/shared/TaskContext.d.ts +5 -3
  49. package/dist-types/shared/getAsyncConstructedView.d.ts +2 -0
  50. package/dist-types/shared/interfaces.d.ts +11 -5
  51. package/dist-types/shared/workers/tsxParser.d.ts +5 -0
  52. package/dist-types/shared/workers/tsxParser.worker.d.ts +1 -0
  53. package/package.json +2 -2
  54. package/dist/chunks/1194.5eabae99.js +0 -2
  55. package/dist/chunks/1194.5eabae99.js.map +0 -1
  56. package/dist/chunks/1370.e6adbca3.js +0 -2
  57. package/dist/chunks/1370.e6adbca3.js.map +0 -1
  58. package/dist/chunks/3554.d1b81183.js +0 -2
  59. package/dist/chunks/3554.d1b81183.js.map +0 -1
  60. package/dist/chunks/4937.59e921b9.js +0 -2
  61. package/dist/chunks/4937.59e921b9.js.map +0 -1
  62. package/dist/chunks/6677.2fea9748.js +0 -3
  63. package/dist/chunks/6677.2fea9748.js.map +0 -1
  64. package/dist/chunks/7525.6915bed7.js +0 -2
  65. package/dist/chunks/7525.6915bed7.js.map +0 -1
  66. package/dist/chunks/8989.9db8c4fb.js +0 -2
  67. package/dist/chunks/main.a5c3ae85.js +0 -2
  68. package/dist/chunks/main.a5c3ae85.js.map +0 -1
  69. package/dist/index.f9bad569.js +0 -2
  70. package/dist/index.f9bad569.js.map +0 -1
  71. package/dist-types/cruise-canvas/utils/converters/convertButton.d.ts +0 -3
  72. package/dist-types/cruise-canvas/utils/converters/convertDashboard.d.ts +0 -3
  73. package/dist-types/cruise-canvas/utils/converters/convertDescriptions.d.ts +0 -3
  74. package/dist-types/cruise-canvas/utils/converters/convertEvents.d.ts +0 -3
  75. package/dist-types/cruise-canvas/utils/converters/convertFlexLayout.d.ts +0 -3
  76. package/dist-types/cruise-canvas/utils/converters/convertForm.d.ts +0 -3
  77. package/dist-types/cruise-canvas/utils/converters/convertFormItem.d.ts +0 -3
  78. package/dist-types/cruise-canvas/utils/converters/convertList.d.ts +0 -3
  79. package/dist-types/cruise-canvas/utils/converters/convertModal.d.ts +0 -3
  80. package/dist-types/cruise-canvas/utils/converters/convertTable.d.ts +0 -3
  81. package/dist-types/cruise-canvas/utils/converters/convertView.d.ts +0 -3
  82. package/dist-types/cruise-canvas/utils/converters/expressions.d.ts +0 -13
  83. package/dist-types/cruise-canvas/utils/converters/findNearestCandidate.d.ts +0 -3
  84. package/dist-types/cruise-canvas/utils/converters/findObjectIdByUsedDataContexts.d.ts +0 -7
  85. package/dist-types/cruise-canvas/utils/converters/getModelObjectInstanceId.d.ts +0 -1
  86. package/dist-types/cruise-canvas/utils/converters/getPreGeneratedAttrViews.d.ts +0 -1
  87. package/dist-types/cruise-canvas/utils/converters/getPreGeneratedMetricGroups.d.ts +0 -6
  88. package/dist-types/cruise-canvas/utils/converters/interfaces.d.ts +0 -75
  89. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/convert.d.ts +0 -5
  90. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/getMemberAccessor.d.ts +0 -1
  91. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/raw-data-interfaces.d.ts +0 -87
  92. package/dist-types/cruise-canvas/utils/converters/withBox.d.ts +0 -3
  93. package/dist-types/cruise-canvas/utils/isJsxView.d.ts +0 -3
@@ -13,3 +13,5 @@ import "./data-providers/request-store.js";
13
13
  import "./page-container/index.js";
14
14
  import "./project-summary/index.js";
15
15
  import "./tab-list/index.js";
16
+ import "./data-providers/entity-sdk-list.js";
17
+ import "./data-providers/entity-sdk-get.js";
@@ -9,5 +9,5 @@ interface ChatStreamComponentProps extends ChatStreamProps {
9
9
  onSwitchToCanvas: () => void;
10
10
  onFeedbackOnView: (viewId: string) => void;
11
11
  }
12
- export declare function ChatStreamComponent({ conversationId, initialRequest, replay, replayDelay, supports, showFeedback: propShowFeedback, showFeedbackOnView, showUiSwitch, onShare, onTerminate, onSubmitFeedback, onSwitchToCanvas, onFeedbackOnView, }: ChatStreamComponentProps, ref: React.Ref<ChatStreamRef>): React.JSX.Element;
12
+ export declare function ChatStreamComponent({ conversationId, initialRequest, replay, replayDelay, supports, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, onShare, onTerminate, onSubmitFeedback, onSwitchToCanvas, onFeedbackOnView, }: ChatStreamComponentProps, ref: React.Ref<ChatStreamRef>): React.JSX.Element;
13
13
  export {};
@@ -16,5 +16,5 @@ export interface CruiseCanvasRef {
16
16
  feedbackSubmitFailed: () => void;
17
17
  feedbackOnViewDone: (viewId: string) => void;
18
18
  }
19
- export declare function CruiseCanvasComponent({ conversationId, initialRequest, replay, replayDelay, supports, showHiddenJobs, showFeedback: propShowFeedback, showFeedbackOnView, showUiSwitch, showJsxEditor, onShare, onTerminate, onSubmitFeedback, onSwitchToChat, onFeedbackOnView, }: CruiseCanvasComponentProps, ref: React.Ref<CruiseCanvasRef>): React.JSX.Element;
19
+ export declare function CruiseCanvasComponent({ conversationId, initialRequest, replay, replayDelay, supports, showHiddenJobs, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, showJsxEditor, onShare, onTerminate, onSubmitFeedback, onSwitchToChat, onFeedbackOnView, }: CruiseCanvasComponentProps, ref: React.Ref<CruiseCanvasRef>): React.JSX.Element;
20
20
  export {};
@@ -1,7 +1,7 @@
1
- import type { Job } from "../interfaces";
1
+ import type { Job, JobState } from "../interfaces";
2
2
  export interface NodeJobProps {
3
3
  job: Job;
4
- state?: string;
4
+ state?: JobState;
5
5
  active?: boolean;
6
6
  }
7
7
  export declare function NodeJob({ job, state, active }: NodeJobProps): JSX.Element;
@@ -1,6 +1,5 @@
1
- import type { ConstructResult } from "@next-shared/jsx-storyboard";
2
1
  import type { JSONSchema } from "./json-schema";
3
- import type { ViewWithInfo } from "./utils/converters/interfaces";
2
+ import type { GeneratedView } from "../shared/interfaces";
4
3
  export type RangeTuple = [min: number, max: number];
5
4
  export type SizeTuple = [width: number, height: number];
6
5
  export interface NodePosition {
@@ -88,9 +87,7 @@ export interface Job {
88
87
  hidden?: boolean;
89
88
  startTime: number;
90
89
  endTime?: number;
91
- componentGraph?: ComponentGraph;
92
- generatedView?: ConstructedView | ViewWithInfo;
93
- staticDataView?: ConstructedView;
90
+ generatedView?: GeneratedView;
94
91
  level?: number;
95
92
  }
96
93
  export interface TaskPatch extends Omit<Partial<Task>, "jobs"> {
@@ -166,7 +163,7 @@ export interface GraphNavItem {
166
163
  }
167
164
  export interface GraphGeneratedView {
168
165
  id: string;
169
- view: ConstructedView | ViewWithInfo;
166
+ view: GeneratedView;
170
167
  }
171
168
  export interface CmdbInstanceDetailData {
172
169
  type: "cmdb_instance_detail";
@@ -191,8 +188,3 @@ export interface FeedbackDetail {
191
188
  result: string[];
192
189
  feedback: string;
193
190
  }
194
- export interface ConstructedView extends ConstructResult {
195
- viewId: string;
196
- from?: "generate" | "config";
197
- withContexts?: Record<string, unknown>;
198
- }
@@ -8,6 +8,7 @@ export type CruiseCanvasAction = ConversationSSEAction | ConversationResetAction
8
8
  export interface ConversationSSEAction {
9
9
  type: "sse";
10
10
  payload: ConversationPatch;
11
+ workspace: string;
11
12
  }
12
13
  export interface ConversationResetAction {
13
14
  type: "reset";
@@ -0,0 +1 @@
1
+ export declare function entitySdkGet(workspace: string, entity: string, id: string): Promise<unknown>;
@@ -0,0 +1 @@
1
+ export declare function entitySdkList(workspace: string, entity: string, params?: any): Promise<unknown>;
@@ -1,6 +1,8 @@
1
1
  import { type Dispatch } from "react";
2
- import type { ConstructedView, FeedbackDetail, Job } from "../cruise-canvas/interfaces";
2
+ import type { FeedbackDetail, Job } from "../cruise-canvas/interfaces";
3
+ import type { GeneratedView } from "./interfaces";
3
4
  export interface TaskContextValue {
5
+ workspace?: string;
4
6
  humanInput: (jobId: string, input: string) => void;
5
7
  onShare: () => void;
6
8
  onTerminate: () => void;
@@ -16,8 +18,8 @@ export interface TaskContextValue {
16
18
  showJsxEditor?: boolean;
17
19
  activeJsxEditorJob?: Job;
18
20
  setActiveJsxEditorJob?: Dispatch<React.SetStateAction<Job | undefined>>;
19
- manuallyUpdatedViews?: Map<string, ConstructedView>;
20
- updateView?: (jobId: string, view: ConstructedView) => void;
21
+ manuallyUpdatedViews?: Map<string, GeneratedView>;
22
+ updateView?: (jobId: string, view: GeneratedView) => void;
21
23
  showFeedbackOnView?: boolean;
22
24
  onFeedbackOnView?: (viewId: string) => void;
23
25
  feedbackDoneViews?: Set<string>;
@@ -0,0 +1,2 @@
1
+ import type { GeneratedView } from "./interfaces.js";
2
+ export declare function getAsyncConstructedView(generatedView: GeneratedView, workspace: string | undefined): Promise<import("@next-shared/tsx-parser").ParseResult | null>;
@@ -1,4 +1,4 @@
1
- import type { ConstructedView } from "@next-shared/jsx-storyboard";
1
+ import type { ParseResult } from "@next-shared/tsx-parser";
2
2
  export interface Conversation {
3
3
  id: string;
4
4
  title: string;
@@ -17,7 +17,7 @@ export interface Task {
17
17
  startTime: number;
18
18
  endTime?: number;
19
19
  }
20
- export type ConversationState = "working" | "completed" | "terminated";
20
+ export type ConversationState = "working" | "completed" | "failed" | "terminated";
21
21
  export type TaskState = "free" | "confirming" | "executing" | "completed" | "failed";
22
22
  export type JobState = "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "skipped" | "unknown";
23
23
  export interface Job {
@@ -32,9 +32,7 @@ export interface Job {
32
32
  hidden?: boolean;
33
33
  startTime: number;
34
34
  endTime?: number;
35
- generatedView?: ConstructedView;
36
- staticDataView?: ConstructedView;
37
- level?: number;
35
+ generatedView?: GeneratedView;
38
36
  requestHumanAction?: HumanAction;
39
37
  humanAction?: string;
40
38
  }
@@ -102,3 +100,11 @@ export interface RequestStore {
102
100
  conversationId: string;
103
101
  content: string;
104
102
  }
103
+ export interface GeneratedView {
104
+ viewId: string;
105
+ code: string;
106
+ isStaticData?: boolean;
107
+ from?: "generate" | "config";
108
+ withContexts?: Record<string, unknown>;
109
+ asyncConstructedView?: Promise<ParseResult | null>;
110
+ }
@@ -0,0 +1,5 @@
1
+ import type { ParseResult, ParseOptions } from "@next-shared/tsx-parser";
2
+ export interface RemoteTsxParserWorker {
3
+ parse(source: string, options?: ParseOptions): Promise<ParseResult>;
4
+ }
5
+ export declare function getRemoteTsxParserWorker(): Promise<RemoteTsxParserWorker>;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.32.9",
3
+ "version": "0.33.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "@next-bricks/presentational": "*",
47
47
  "@next-bricks/vs": "*"
48
48
  },
49
- "gitHead": "0f164d0a26daaf527314bead42f87c26018cff62"
49
+ "gitHead": "7441adb7c6af159bd000e6a860a7b970c5c0a0de"
50
50
  }
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[1194],{24:(e,t,i)=>{i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n)()(s());r.push([e.id,':host{display:block;white-space:nowrap}.container{border-radius:var(--elevo-border-radius)}:host([hidden]){display:none}*{box-sizing:border-box}.label{font-weight:500;overflow:hidden;text-overflow:ellipsis}.stat{font-weight:600}.chart{min-width:0}.chart > *{display:block}:host(:not([size="small"])) .container{background:linear-gradient(164deg,rgba(105,153,253,0) 40%,rgba(105,153,253,0.05) 60%,rgba(105,153,253,0.32) 100%),#fff;padding:22px}:host(:not([size="small"])) .label{font-size:14px;height:22px;margin-bottom:16px}:host(:not([size="small"])) .stat-and-chart{display:flex;align-items:center;justify-content:end;position:relative}:host(:not([size="small"])) .stat{font-size:36px;color:#1d212a;position:absolute;left:0}:host(:not([size="small"])) .chart{width:calc(100% - 160px)}:host([size="small"]) .container{padding:11px 15px;display:flex;align-items:center;justify-content:end;position:relative;background:var(--elevo-component-background);-webkit-backdrop-filter:var(--elevo-component-backdrop-filter);backdrop-filter:var(--elevo-component-backdrop-filter)}:host([size="small"]) .label-and-stat{position:absolute;left:15px}:host([size="small"]) .label{font-size:12px;color:#8c8c8c;line-height:17px;height:17px;margin-bottom:7px}:host([size="small"]) .stat{font-size:20px;color:#262626;line-height:24px}:host([size="small"]) .chart{width:calc(100% - 90px)}',""]);const l=r.toString()},20124:(e,t,i)=>{i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n)()(s());r.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.tabs{list-style:none;padding:0;margin:0;display:flex;font-size:16px}.tabs .tab + .tab{margin-left:32px}.tabs a{color:rgba(38,38,38,0.65);cursor:pointer}.tabs .active a{color:#262626;font-weight:500}.tabs .active a::after{content:"";display:block;width:100%;height:4px;background-color:currentColor;border-radius:2px}',""]);const l=r.toString()},25676:(e,t,i)=>{e.exports=i.p+"images/4b299d0b.png"},31748:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n),l=i(20062),o=i.n(l),c=new URL(i(25676),i.b),h=r()(s()),d=o()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}h1,\nh2{font-weight:500;margin:0}h1{font-size:20px;line-height:28px;margin-bottom:17px}h2{font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:27px}.group + .group{margin-top:32px}.list{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.list .item{background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px}.heading{display:flex;align-items:center}.icon{font-size:24px;color:#333;margin-right:8px}.title{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}`,""]);const p=h.toString()},32360:(e,t,i)=>{e.exports=i.p+"images/72c24398.png"},41194:(e,t,i)=>{var a,s=i(74635),n=i(70918),r=i(26902),l=i(5536),o=i(86121),c=i(70829),h=i(62740),d=i(18769),p=i.n(d),u=i(7921),m=i(11280),b=(i(65168),i(87117)),A=i(80079),g=i(51850),k=i(38791);let E,w,x,v,f,y,M,T,R,S,_,N,C,D,W,O,F,I,L,U,z,H,V,j,B,P,Y,$,G,K,q,J,X,Q,Z,ee,te,ie,ae,se,ne,re,le,oe,ce,he,de,pe,ue,me,be,Ae;(0,b.initializeI18n)(A.NS,A.I);const{defineElement:ge,property:ke,event:Ee,method:we}=(0,u.createDecorators)(),xe=(0,d.forwardRef)(g.A),ve=(0,d.forwardRef)(k.B);let fe;var ye=new WeakMap,Me=new WeakMap,Te=new WeakMap,Re=new WeakMap,Se=new WeakMap,_e=new WeakMap,Ne=new WeakMap,Ce=new WeakMap,De=new WeakMap,We=new WeakMap,Oe=new WeakMap,Fe=new WeakMap,Ie=new WeakMap,Le=new WeakMap,Ue=new WeakMap,ze=new WeakMap,He=new WeakSet,Ve=new WeakMap,je=new WeakMap,Be=new WeakMap,Pe=new WeakMap,Ye=new WeakMap,$e=new WeakMap,Ge=new WeakMap,Ke=new WeakMap,qe=new WeakMap,Je=new WeakMap;class Xe extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,He),(0,n.A)(this,ye,(E(this),x(this))),(0,n.A)(this,Me,(v(this),f(this))),(0,n.A)(this,Te,(y(this),M(this))),(0,n.A)(this,Re,(T(this),R(this))),(0,n.A)(this,Se,(S(this),_(this))),(0,n.A)(this,_e,(N(this),C(this))),(0,n.A)(this,Ne,(D(this),W(this))),(0,n.A)(this,Ce,(O(this),F(this))),(0,n.A)(this,De,(I(this),L(this))),(0,n.A)(this,We,(U(this),z(this))),(0,n.A)(this,Oe,(H(this),V(this))),(0,n.A)(this,Fe,(j(this),B(this))),(0,n.A)(this,Ie,(P(this),Y(this))),(0,n.A)(this,Le,($(this),G(this))),(0,n.A)(this,Ue,(K(this),q(this))),(0,n.A)(this,ze,(J(this),X(this))),(0,n.A)(this,Ve,(ee(this),()=>{(0,l.A)(He,this,Q).emit()})),(0,n.A)(this,je,te(this)),(0,n.A)(this,Be,(se(this),()=>{(0,l.A)(He,this,ie).emit()})),(0,n.A)(this,Pe,ne(this)),(0,n.A)(this,Ye,(oe(this),e=>{(0,l.A)(He,this,re).emit(e)})),(0,n.A)(this,$e,ce(this)),(0,n.A)(this,Ge,(pe(this),e=>{(0,l.A)(He,this,he).emit(e)})),(0,n.A)(this,Ke,ue(this)),(0,n.A)(this,qe,(Ae(this),()=>{(0,l.A)(He,this,me).emit("chat")})),(0,n.A)(this,Je,(0,d.createRef)())}get conversationId(){return(0,c.A)(ye,this)}set conversationId(e){(0,o.A)(ye,this,e)}get initialRequest(){return(0,c.A)(Me,this)}set initialRequest(e){(0,o.A)(Me,this,e)}get taskId(){return(0,c.A)(Te,this)}set taskId(e){(0,o.A)(Te,this,e)}get task(){return(0,c.A)(Re,this)}set task(e){(0,o.A)(Re,this,e)}get jobs(){return(0,c.A)(Se,this)}set jobs(e){(0,o.A)(Se,this,e)}get replay(){return(0,c.A)(_e,this)}set replay(e){(0,o.A)(_e,this,e)}get replayDelay(){return(0,c.A)(Ne,this)}set replayDelay(e){(0,o.A)(Ne,this,e)}get supports(){return(0,c.A)(Ce,this)}set supports(e){(0,o.A)(Ce,this,e)}get showHiddenJobs(){return(0,c.A)(De,this)}set showHiddenJobs(e){(0,o.A)(De,this,e)}get showFeedback(){return(0,c.A)(We,this)}set showFeedback(e){(0,o.A)(We,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(Oe,this)}set showFeedbackAfterFailed(e){(0,o.A)(Oe,this,e)}get showFeedbackOnView(){return(0,c.A)(Fe,this)}set showFeedbackOnView(e){(0,o.A)(Fe,this,e)}get showUiSwitch(){return(0,c.A)(Ie,this)}set showUiSwitch(e){(0,o.A)(Ie,this,e)}get hideMermaid(){return(0,c.A)(Le,this)}set hideMermaid(e){(0,o.A)(Le,this,e)}get showJsxEditor(){return(0,c.A)(Ue,this)}set showJsxEditor(e){(0,o.A)(Ue,this,e)}resumed(){var e,t;null===(e=(0,c.A)(Je,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(Je,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(Je,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(Je,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){const e=this.conversationId?ve:xe;return p().createElement(e,{conversationId:this.conversationId,initialRequest:this.initialRequest,taskId:this.taskId,jobs:this.jobs,task:this.task,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showHiddenJobs:this.showHiddenJobs,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showUiSwitch:this.showUiSwitch,showFeedbackOnView:this.showFeedbackOnView,showJsxEditor:this.showJsxEditor,onShare:(0,c.A)(Ve,this),onTerminate:(0,c.A)(Be,this),onSubmitFeedback:(0,c.A)(Ye,this),onSwitchToChat:(0,c.A)(qe,this),onFeedbackOnView:(0,c.A)(Ge,this),ref:(0,c.A)(Je,this)})}}a=Xe,({e:[x,v,f,y,M,T,R,S,_,N,C,D,W,O,F,I,L,U,z,H,V,j,B,P,Y,$,G,K,q,J,X,Q,Z,ee,te,ie,ae,se,ne,re,le,oe,ce,he,de,pe,ue,me,be,Ae,E],c:[fe,w]}=(0,h.A)(a,[ge("ai-portal.cruise-canvas",{shadowOptions:!1})],[[ke(),1,"conversationId"],[ke({attribute:!1,render:!1}),1,"initialRequest"],[ke(),1,"taskId"],[ke({attribute:!1}),1,"task"],[ke({attribute:!1}),1,"jobs"],[ke({type:Boolean,render:!1}),1,"replay"],[ke({type:Number,render:!1}),1,"replayDelay"],[ke({attribute:!1}),1,"supports"],[ke({type:Boolean}),1,"showHiddenJobs"],[ke({type:Boolean}),1,"showFeedback"],[ke({type:Boolean}),1,"showFeedbackAfterFailed"],[ke({type:Boolean}),1,"showFeedbackOnView"],[ke({type:Boolean}),1,"showUiSwitch"],[ke({type:Boolean,render:!1}),1,"hideMermaid"],[ke({type:Boolean}),1,"showJsxEditor"],[Ee({type:"share"}),1,"shareEvent",e=>(0,c.A)(ze,e),(e,t)=>(0,o.A)(ze,e,t)],[Ee({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(je,e),(e,t)=>(0,o.A)(je,e,t)],[Ee({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(Pe,e),(e,t)=>(0,o.A)(Pe,e,t)],[Ee({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)($e,e),(e,t)=>(0,o.A)($e,e,t)],[Ee({type:"ui.switch"}),1,"switch",e=>(0,c.A)(Ke,e),(e,t)=>(0,o.A)(Ke,e,t)],[we(),2,"resumed"],[we(),2,"feedbackSubmitDone"],[we(),2,"feedbackSubmitFailed"],[we(),2,"feedbackOnViewDone"]],0,(e=>Je.has((0,r.A)(e))),m.ReactNextElement)),w();var Qe=i(71451);let Ze=function(e){return e.ASK_ANY_THING="ASK_ANYTHING",e.COMMON_TASKS="COMMON_TASKS",e}({});const et="bricks/ai-portal/chat-box",tt={en:{[Ze.ASK_ANY_THING]:"Ask anything",[Ze.COMMON_TASKS]:"Common tasks"},zh:{[Ze.ASK_ANY_THING]:"询问任何问题",[Ze.COMMON_TASKS]:"常用任务"}},it=b.i18n.getFixedT(null,et);var at,st=i(47008);let nt,rt,lt,ot,ct,ht,dt,pt,ut,mt,bt;(0,b.initializeI18n)(et,tt);const At=(0,m.wrapBrick)("eo-icon"),{defineElement:gt,property:kt,event:Et}=(0,u.createDecorators)();let wt;var xt=new WeakMap,vt=new WeakMap,ft=new WeakMap,yt=new WeakMap,Mt=new WeakSet,Tt=new WeakMap;class Rt extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Mt),(0,n.A)(this,xt,rt(this)),(0,n.A)(this,vt,(lt(this),ot(this))),(0,n.A)(this,ft,(ct(this),ht(this))),(0,n.A)(this,yt,(dt(this),pt(this))),(0,n.A)(this,Tt,(bt(this),e=>{(0,l.A)(Mt,this,ut).emit(e)}))}get disabled(){return(0,c.A)(xt,this)}set disabled(e){(0,o.A)(xt,this,e)}get placeholder(){return(0,c.A)(vt,this)}set placeholder(e){(0,o.A)(vt,this,e)}get autoFocus(){return(0,c.A)(ft,this)}set autoFocus(e){(0,o.A)(ft,this,e)}render(){return p().createElement(St,{disabled:this.disabled,placeholder:this.placeholder,autoFocus:this.autoFocus,onSubmit:(0,c.A)(Tt,this)})}}function St(e){let{disabled:t,placeholder:i,autoFocus:a,onSubmit:s}=e;const n=(0,d.useRef)(null),r=(0,d.useRef)(null),[l,o]=(0,d.useState)(""),c=(0,d.useRef)(""),h=(0,d.useCallback)((e=>{e.currentTarget.value&&(null==s||s(e.currentTarget.value))}),[s]),u=(0,d.useCallback)((e=>{c.current=e.target.value,o(e.target.value)}),[]),m=(0,d.useCallback)((()=>{null==s||s(c.current)}),[s]);return(0,d.useEffect)((()=>{a&&Promise.resolve().then((()=>{var e;null===(e=r.current)||void 0===e||e.focus()}))}),[]),p().createElement("div",{className:"root"},p().createElement("div",{className:"container",ref:n},p().createElement(Qe.e,{containerRef:n,ref:r,value:l,minRows:58/22,paddingSize:60,autoResize:!0,disabled:t,placeholder:null!=i?i:it(Ze.ASK_ANY_THING),submitWhen:"enter-without-shift",onSubmit:h,onChange:u}),p().createElement("div",{className:"actions-bar"},p().createElement("div",null,p().createElement("slot",{name:"actions"})),p().createElement("button",{className:"btn-send",disabled:!l,onClick:m},p().createElement(At,{lib:"fa",prefix:"fas",icon:"arrow-up"})))))}at=Rt,({e:[rt,lt,ot,ct,ht,dt,pt,ut,mt,bt],c:[wt,nt]}=(0,h.A)(at,[gt("ai-portal.chat-box",{styleTexts:[st.A]})],[[kt({type:Boolean}),1,"disabled"],[kt(),1,"placeholder"],[kt({type:Boolean}),1,"autoFocus"],[Et({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(yt,e),(e,t)=>(0,o.A)(yt,e,t)]],0,(e=>Tt.has((0,r.A)(e))),m.ReactNextElement)),nt();var _t,Nt=i(82165);let Ct;const{defineElement:Dt}=(0,u.createDecorators)();let Wt;class Ot extends m.ReactNextElement{render(){return p().createElement(Ft,null)}}function Ft(){return p().createElement("slot",null)}_t=Ot,[Wt,Ct]=(0,h.A)(_t,[Dt("ai-portal.home-container",{styleTexts:[Nt.A]})],[],0,void 0,m.ReactNextElement).c,Ct();var It,Lt=i(89575),Ut=i(24);let zt,Ht,Vt,jt,Bt,Pt,Yt,$t,Gt,Kt,qt,Jt,Xt,Qt,Zt,ei,ti,ii,ai,si,ni;const ri=(0,m.wrapBrick)("eo-mini-line-chart"),{defineElement:li,property:oi}=(0,u.createDecorators)();let ci;var hi=new WeakMap,di=new WeakMap,pi=new WeakMap,ui=new WeakMap,mi=new WeakMap,bi=new WeakMap,Ai=new WeakMap,gi=new WeakMap,ki=new WeakMap,Ei=new WeakMap;class wi extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,hi,Ht(this)),(0,n.A)(this,di,(Vt(this),jt(this))),(0,n.A)(this,pi,(Bt(this),Pt(this))),(0,n.A)(this,ui,(Yt(this),$t(this))),(0,n.A)(this,mi,(Gt(this),Kt(this))),(0,n.A)(this,bi,(qt(this),Jt(this))),(0,n.A)(this,Ai,(Xt(this),Qt(this))),(0,n.A)(this,gi,(Zt(this),ei(this))),(0,n.A)(this,ki,(ti(this),ii(this))),(0,n.A)(this,Ei,(ai(this),si(this))),ni(this)}get label(){return(0,c.A)(hi,this)}set label(e){(0,o.A)(hi,this,e)}get value(){return(0,c.A)(di,this)}set value(e){(0,o.A)(di,this,e)}get size(){return(0,c.A)(pi,this)}set size(e){(0,o.A)(pi,this,e)}get lineColor(){return(0,c.A)(ui,this)}set lineColor(e){(0,o.A)(ui,this,e)}get showArea(){return(0,c.A)(mi,this)}set showArea(e){(0,o.A)(mi,this,e)}get min(){return(0,c.A)(bi,this)}set min(e){(0,o.A)(bi,this,e)}get max(){return(0,c.A)(Ai,this)}set max(e){(0,o.A)(Ai,this,e)}get xField(){return(0,c.A)(gi,this)}set xField(e){(0,o.A)(gi,this,e)}get yField(){return(0,c.A)(ki,this)}set yField(e){(0,o.A)(ki,this,e)}get data(){return(0,c.A)(Ei,this)}set data(e){(0,o.A)(Ei,this,e)}render(){return p().createElement(xi,{label:this.label,value:this.value,size:this.size,lineColor:this.lineColor,showArea:this.showArea,min:this.min,max:this.max,xField:this.xField,yField:this.yField,data:this.data})}}function xi(e){let{label:t,value:i,size:a,...s}=e;return"small"===a?p().createElement("div",{className:"container"},p().createElement("div",{className:"label-and-stat"},p().createElement("div",{className:"label"},t),p().createElement("div",{className:"stat"},i)),p().createElement("div",{className:"chart"},p().createElement(ri,(0,Lt.A)({},s,{lineWidth:1.5,width:"auto",height:"55"})))):p().createElement("div",{className:"container"},p().createElement("div",{className:"label"},t),p().createElement("div",{className:"stat-and-chart"},p().createElement("div",{className:"chart"},p().createElement(ri,(0,Lt.A)({},s,{lineWidth:2,width:"auto",height:"92"}))),p().createElement("div",{className:"stat"},i)))}It=wi,({e:[Ht,Vt,jt,Bt,Pt,Yt,$t,Gt,Kt,qt,Jt,Xt,Qt,Zt,ei,ti,ii,ai,si,ni],c:[ci,zt]}=(0,h.A)(It,[li("ai-portal.stat-with-mini-chart",{styleTexts:[Ut.A]})],[[oi(),1,"label"],[oi(),1,"value"],[oi(),1,"size"],[oi(),1,"lineColor"],[oi({type:Boolean}),1,"showArea"],[oi({type:Number}),1,"min"],[oi({type:Number}),1,"max"],[oi(),1,"xField"],[oi(),1,"yField"],[oi({attribute:!1}),1,"data"]],0,void 0,m.ReactNextElement)),zt();var vi,fi=i(29475),yi=i(53373),Mi=i.n(yi),Ti=i(99671),Ri=i(61408),Si=i(48688),_i=i(42965),Ni=i(45646),Ci=i(26785);let Di,Wi,Oi,Fi,Ii,Li,Ui,zi,Hi,Vi,ji,Bi,Pi,Yi,$i,Gi,Ki,qi,Ji,Xi,Qi,Zi,ea,ta,ia,aa,sa,na,ra,la,oa,ca,ha,da,pa,ua,ma,ba,Aa,ga,ka,Ea,wa,xa,va,fa;(0,b.initializeI18n)(Ti.NS,Ti.I);const ya={lib:"easyops",icon:"sidebar"},{defineElement:Ma,property:Ta,event:Ra,method:Sa}=(0,u.createDecorators)(),_a=(0,d.forwardRef)(as);let Na;var Ca=new WeakMap,Da=new WeakMap,Wa=new WeakMap,Oa=new WeakMap,Fa=new WeakMap,Ia=new WeakMap,La=new WeakMap,Ua=new WeakMap,za=new WeakMap,Ha=new WeakMap,Va=new WeakMap,ja=new WeakMap,Ba=new WeakMap,Pa=new WeakMap,Ya=new WeakMap,$a=new WeakSet,Ga=new WeakMap,Ka=new WeakMap,qa=new WeakMap,Ja=new WeakMap,Xa=new WeakMap,Qa=new WeakMap,Za=new WeakMap,es=new WeakMap,ts=new WeakMap;class is extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,$a),(0,n.A)(this,Ca,(Di(this),Oi(this,!0))),(0,n.A)(this,Da,(Fi(this),Ii(this))),(0,n.A)(this,Wa,(Li(this),Ui(this))),(0,n.A)(this,Oa,(zi(this),Hi(this))),(0,n.A)(this,Fa,(Vi(this),ji(this))),(0,n.A)(this,Ia,(Bi(this),Pi(this))),(0,n.A)(this,La,(Yi(this),$i(this))),(0,n.A)(this,Ua,(Gi(this),Ki(this))),(0,n.A)(this,za,(qi(this),Ji(this))),(0,n.A)(this,Ha,(Xi(this),Qi(this))),(0,n.A)(this,Va,(Zi(this),ea(this))),(0,n.A)(this,ja,(ta(this),ia(this))),(0,n.A)(this,Ba,(aa(this),sa(this))),(0,n.A)(this,Pa,(na(this),ra(this))),(0,n.A)(this,Ya,(la(this),oa(this))),(0,n.A)(this,Ga,(da(this),()=>{(0,l.A)($a,this,ca).emit()})),(0,n.A)(this,Ka,pa(this)),(0,n.A)(this,qa,(ba(this),e=>{(0,l.A)($a,this,ua).emit(e)})),(0,n.A)(this,Ja,(e=>{(0,l.A)($a,this,ua).emit(e)})),(0,n.A)(this,Xa,Aa(this)),(0,n.A)(this,Qa,(Ea(this),e=>{(0,l.A)($a,this,ga).emit(e)})),(0,n.A)(this,Za,wa(this)),(0,n.A)(this,es,(fa(this),()=>{(0,l.A)($a,this,xa).emit()})),(0,n.A)(this,ts,(0,d.createRef)())}get legacy(){return(0,c.A)(Ca,this)}set legacy(e){(0,o.A)(Ca,this,e)}get userInstanceId(){return(0,c.A)(Da,this)}set userInstanceId(e){(0,o.A)(Da,this,e)}get behavior(){return(0,c.A)(Wa,this)}set behavior(e){(0,o.A)(Wa,this,e)}get bordered(){return(0,c.A)(Oa,this)}set bordered(e){(0,o.A)(Oa,this,e)}get logoUrl(){return(0,c.A)(Fa,this)}set logoUrl(e){(0,o.A)(Fa,this,e)}get newChatUrl(){return(0,c.A)(Ia,this)}set newChatUrl(e){(0,o.A)(Ia,this,e)}get newChatLinkWhenCollapsed(){return(0,c.A)(La,this)}set newChatLinkWhenCollapsed(e){(0,o.A)(La,this,e)}get historyActiveId(){return(0,c.A)(Ua,this)}set historyActiveId(e){(0,o.A)(Ua,this,e)}get historyUrlTemplate(){return(0,c.A)(za,this)}set historyUrlTemplate(e){(0,o.A)(za,this,e)}get historyActions(){return(0,c.A)(Ha,this)}set historyActions(e){(0,o.A)(Ha,this,e)}get projectActiveId(){return(0,c.A)(Va,this)}set projectActiveId(e){(0,o.A)(Va,this,e)}get projectUrlTemplate(){return(0,c.A)(ja,this)}set projectUrlTemplate(e){(0,o.A)(ja,this,e)}get projectActions(){return(0,c.A)(Ba,this)}set projectActions(e){(0,o.A)(Ba,this,e)}get links(){return(0,c.A)(Pa,this)}set links(e){(0,o.A)(Pa,this,e)}pullHistory(e){setTimeout((()=>{var e;null===(e=(0,c.A)(ts,this).current)||void 0===e||e.pull()}),e)}close(){var e;null===(e=(0,c.A)(ts,this).current)||void 0===e||e.close()}removeProject(e){var t,i;null===(t=(0,c.A)(ts,this).current)||void 0===t||null===(i=t.removeProject)||void 0===i||i.call(t,e)}addProject(e){var t,i;null===(t=(0,c.A)(ts,this).current)||void 0===t||null===(i=t.addProject)||void 0===i||i.call(t,e)}moveConversation(e){var t,i;null===(t=(0,c.A)(ts,this).current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)}render(){return p().createElement(_a,{ref:(0,c.A)(ts,this),legacy:this.legacy,userInstanceId:this.userInstanceId,behavior:this.behavior,logoUrl:this.logoUrl,newChatUrl:this.newChatUrl,newChatLinkWhenCollapsed:this.newChatLinkWhenCollapsed,historyActiveId:this.historyActiveId,historyUrlTemplate:this.historyUrlTemplate,historyActions:this.historyActions,projectActiveId:this.projectActiveId,projectUrlTemplate:this.projectUrlTemplate,projectActions:this.projectActions,links:this.links,onLogout:(0,c.A)(Ga,this),onLegacyActionClick:(0,c.A)(Ja,this),onActionClick:(0,c.A)(qa,this),onProjectActionClick:(0,c.A)(Qa,this),onAddProject:(0,c.A)(es,this)})}}function as(e,t){let{legacy:i,userInstanceId:a,behavior:s,logoUrl:n,newChatUrl:r,newChatLinkWhenCollapsed:l,historyActiveId:o,historyUrlTemplate:c,historyActions:h,projectActiveId:u,projectUrlTemplate:m,projectActions:A,links:g,onLogout:k,onActionClick:E,onLegacyActionClick:w,onProjectActionClick:x,onAddProject:v}=e;const[f,y]=(0,d.useState)("drawer"===s),M=(0,d.useCallback)((()=>{y(!0)}),[]),T=(0,d.useCallback)((()=>{y(!1)}),[]);(0,d.useEffect)((()=>{"drawer"===s&&y(!0)}),[s]);const R=(0,d.useCallback)((()=>{y(!0)}),[]),S=(0,d.useCallback)((()=>{"drawer"===s&&y(!0)}),[s]),_=(0,d.useMemo)((()=>[{key:"logout",icon:{lib:"fa",prefix:"fas",icon:"arrow-right-from-bracket"},text:(0,Ti.t)(Ti.K.LOGOUT)},{key:"switch-language",icon:{lib:"easyops",icon:"language"},text:(0,Ti.t)(Ti.K.SWITCH_LANGUAGE)}]),[]),N=(0,d.useRef)(null);return(0,d.useImperativeHandle)(t,(()=>({close:()=>{y(!0)},pull:()=>{var e;null===(e=N.current)||void 0===e||e.pull()},removeProject:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.removeProject)||void 0===i||i.call(t,e)},addProject:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.addProject)||void 0===i||i.call(t,e)},moveConversation:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)}})),[]),p().createElement("div",{className:Mi()("container",{collapsed:f})},"drawer"===s&&!f&&p().createElement("div",{className:"mask",onClick:R}),p().createElement("div",{className:"alternative"},p().createElement(_i.Py,{icon:ya,variant:"light",onClick:T}),l&&p().createElement(_i.EM,{className:"new-chat",url:r},p().createElement(_i.Bj,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),(0,Ti.t)(Ti.K.NEW_CHAT))),p().createElement("div",{className:"sidebar"},p().createElement("div",{className:"logo-bar"},p().createElement(_i.EM,{url:n,className:"logo-link"},p().createElement("img",{className:"logo",alt:"Elevo",src:Si,width:95,height:28})),p().createElement(_i.Py,{icon:ya,variant:"light",onClick:M})),p().createElement(_i.EM,{className:"new-chat",url:r},p().createElement(_i.Bj,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),(0,Ti.t)(Ti.K.NEW_CHAT)),null!=g&&g.length?p().createElement("div",{className:"links"},g.map(((e,t)=>p().createElement(_i.EM,{className:"link",key:t,url:e.url},p().createElement(_i.Bj,(0,Lt.A)({className:"icon"},e.icon)),p().createElement("span",{className:"title"},e.title))))):null,i?p().createElement(Ci.Y,{ref:N,activeId:o,urlTemplate:c,actions:h,onActionClick:w,onHistoryClick:S}):p().createElement(Ni.D,{ref:N,historyActiveId:o,historyUrlTemplate:c,historyActions:h,projectActiveId:u,projectUrlTemplate:m,projectActions:A,onActionClick:E,onHistoryClick:S,onProjectActionClick:x,onAddProject:v}),p().createElement("div",{className:"footer"},p().createElement(_i.qb,{className:"dropdown",actions:_,onActionClick:async e=>{"logout"===e.detail.key?k():(await b.i18n.changeLanguage(b.i18n.language&&"en"===b.i18n.language.split("-")[0]?"zh":"en"),(0,fi.getHistory)().reload())}},p().createElement("button",{className:"account"},p().createElement(_i.JQ,{nameOrInstanceId:a,showName:!0,size:"xs"}))))))}vi=is,({e:[Oi,Fi,Ii,Li,Ui,zi,Hi,Vi,ji,Bi,Pi,Yi,$i,Gi,Ki,qi,Ji,Xi,Qi,Zi,ea,ta,ia,aa,sa,na,ra,la,oa,ca,ha,da,pa,ua,ma,ba,Aa,ga,ka,Ea,wa,xa,va,fa,Di],c:[Na,Wi]}=(0,h.A)(vi,[Ma("ai-portal.elevo-sidebar",{styleTexts:[Ri.A]})],[[Ta({type:Boolean}),1,"legacy"],[Ta(),1,"userInstanceId"],[Ta(),1,"behavior"],[Ta({type:Boolean,render:!1}),1,"bordered"],[Ta(),1,"logoUrl"],[Ta(),1,"newChatUrl"],[Ta({type:Boolean}),1,"newChatLinkWhenCollapsed"],[Ta(),1,"historyActiveId"],[Ta(),1,"historyUrlTemplate"],[Ta({attribute:!1}),1,"historyActions"],[Ta(),1,"projectActiveId"],[Ta(),1,"projectUrlTemplate"],[Ta({attribute:!1}),1,"projectActions"],[Ta({attribute:!1}),1,"links"],[Ra({type:"logout"}),1,"logout",e=>(0,c.A)(Ya,e),(e,t)=>(0,o.A)(Ya,e,t)],[Ra({type:"action.click"}),1,"actionClick",e=>(0,c.A)(Ka,e),(e,t)=>(0,o.A)(Ka,e,t)],[Ra({type:"project.action.click"}),1,"projectActionClick",e=>(0,c.A)(Xa,e),(e,t)=>(0,o.A)(Xa,e,t)],[Ra({type:"add.project"}),1,"addProject",e=>(0,c.A)(Za,e),(e,t)=>(0,o.A)(Za,e,t)],[Sa(),2,"pullHistory"],[Sa(),2,"close"],[Sa(),2,"removeProject"],[Sa(),2,"addProject"],[Sa(),2,"moveConversation"]],0,(e=>ts.has((0,r.A)(e))),m.ReactNextElement)),Wi();var ss,ns=i(47338);let rs,ls,os,cs,hs,ds,ps,us,ms;const bs=(0,m.wrapBrick)("eo-icon"),As=(0,m.wrapBrick)("eo-tooltip"),{defineElement:gs,property:ks}=(0,u.createDecorators)();let Es;var ws=new WeakMap,xs=new WeakMap,vs=new WeakMap,fs=new WeakMap;class ys extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,ws,ls(this)),(0,n.A)(this,xs,(os(this),cs(this))),(0,n.A)(this,vs,(hs(this),ds(this))),(0,n.A)(this,fs,(ps(this),us(this))),ms(this)}get icon(){return(0,c.A)(ws,this)}set icon(e){(0,o.A)(ws,this,e)}get tooltip(){return(0,c.A)(xs,this)}set tooltip(e){(0,o.A)(xs,this,e)}get disabled(){return(0,c.A)(vs,this)}set disabled(e){(0,o.A)(vs,this,e)}get variant(){return(0,c.A)(fs,this)}set variant(e){(0,o.A)(fs,this,e)}render(){return p().createElement(Ms,{icon:this.icon,tooltip:this.tooltip,disabled:this.disabled})}}function Ms(e){let{icon:t,tooltip:i,disabled:a}=e;const s=p().createElement("button",{disabled:a},p().createElement(bs,t));return i?p().createElement(As,{content:i},s):s}ss=ys,({e:[ls,os,cs,hs,ds,ps,us,ms],c:[Es,rs]}=(0,h.A)(ss,[gs("ai-portal.icon-button",{styleTexts:[ns.A]})],[[ks({attribute:!1}),1,"icon"],[ks(),1,"tooltip"],[ks({type:Boolean}),1,"disabled"],[ks({render:!1}),1,"variant"]],0,void 0,m.ReactNextElement)),rs();let Ts=function(e){return e.ALL="ALL",e.EXPLORE_EXCELLENT_CASES="EXPLORE_EXCELLENT_CASES",e}({});const Rs="bricks/ai-portal/show-cases",Ss={en:{[Ts.ALL]:"All",[Ts.EXPLORE_EXCELLENT_CASES]:"Explore excellent cases"},zh:{[Ts.ALL]:"全部",[Ts.EXPLORE_EXCELLENT_CASES]:"探索优秀案例"}},_s=b.i18n.getFixedT(null,Rs);var Ns,Cs=i(42873),Ds=i(98343);let Ws,Os,Fs,Is,Ls;(0,b.initializeI18n)(Rs,Ss);const Us=(0,m.wrapBrick)("eo-link"),zs=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:Hs,property:Vs}=(0,u.createDecorators)();let js;var Bs=new WeakMap,Ps=new WeakMap;class Ys extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Bs,Os(this)),(0,n.A)(this,Ps,(Fs(this),Is(this))),Ls(this)}get list(){return(0,c.A)(Bs,this)}set list(e){(0,o.A)(Bs,this,e)}get taskUrlTemplate(){return(0,c.A)(Ps,this)}set taskUrlTemplate(e){(0,o.A)(Ps,this,e)}render(){return p().createElement($s,{list:this.list,taskUrlTemplate:this.taskUrlTemplate})}}function $s(e){let{list:t,taskUrlTemplate:i}=e;const a=(0,d.useMemo)((()=>["",...new Set(null==t?void 0:t.map((e=>e.scenario)).filter(Boolean))]),[t]),[s,n]=(0,d.useState)(""),r=(0,d.useMemo)((()=>s?null==t?void 0:t.filter((e=>e.scenario===s)):t),[s,t]),l=(0,d.useMemo)((()=>a.map((e=>({id:e,label:""===e?_s(Ts.ALL):e})))),[a]);return null!=t&&t.length?p().createElement(p().Fragment,null,p().createElement("div",{className:"tips"},`${_s(Ts.EXPLORE_EXCELLENT_CASES)} ↓`),p().createElement(zs,{tabs:l,activeTab:s,onTabClick:e=>n(e.detail.id)}),p().createElement("ul",{className:"cases"},null==r?void 0:r.map((e=>p().createElement("li",{key:e.taskId},p().createElement(Us,{className:"link",url:(0,Ds.Q)(i,e),style:e.thumbUrl?{backgroundImage:`url("${(0,fi.getBasePath)()}${e.thumbUrl}")`}:void 0},p().createElement("div",{className:"title"},e.title),p().createElement("div",{className:"description"},e.summary))))))):null}Ns=Ys,({e:[Os,Fs,Is,Ls],c:[js,Ws]}=(0,h.A)(Ns,[Hs("ai-portal.show-cases",{styleTexts:[Cs.A]})],[[Vs({attribute:!1}),1,"list"],[Vs(),1,"taskUrlTemplate"]],0,void 0,m.ReactNextElement)),Ws();let Gs=function(e){return e.MCP_HUB="MCP_HUB",e.ALL="ALL",e.SERVER_cmdb="SERVER_cmdb",e.SERVER_cmdb_product_helper="SERVER_cmdb_product_helper",e.SERVER_alert="SERVER_alert",e.SERVER_web_builder="SERVER_web_builder",e.SERVER_web_builder2="SERVER_web_builder2",e.SERVER_host_troubleshooting="SERVER_host_troubleshooting",e.SERVER_system_inspection="SERVER_system_inspection",e.SERVER_grafana="SERVER_grafana",e.SERVER_kubernetes="SERVER_kubernetes",e.SERVER_llm="SERVER_llm",e}({});const Ks="bricks/ai-portal/mcp-tools",qs={en:{[Gs.MCP_HUB]:"MCP Hub",[Gs.ALL]:"All",[Gs.SERVER_cmdb]:"CMDB",[Gs.SERVER_cmdb_product_helper]:"CMDB",[Gs.SERVER_alert]:"Alert",[Gs.SERVER_web_builder]:"View",[Gs.SERVER_web_builder2]:"View",[Gs.SERVER_host_troubleshooting]:"Host Troubleshooting",[Gs.SERVER_system_inspection]:"System Inspection",[Gs.SERVER_grafana]:"Grafana",[Gs.SERVER_kubernetes]:"Kubernetes",[Gs.SERVER_llm]:"LLM"},zh:{[Gs.MCP_HUB]:"MCP 中心",[Gs.ALL]:"全部",[Gs.SERVER_cmdb]:"CMDB",[Gs.SERVER_cmdb_product_helper]:"CMDB",[Gs.SERVER_alert]:"告警",[Gs.SERVER_web_builder]:"视图",[Gs.SERVER_web_builder2]:"视图",[Gs.SERVER_host_troubleshooting]:"主机故障排查",[Gs.SERVER_system_inspection]:"系统巡检",[Gs.SERVER_grafana]:"Grafana",[Gs.SERVER_kubernetes]:"Kubernetes",[Gs.SERVER_llm]:"大模型"}},Js=b.i18n.getFixedT(null,Ks);var Xs,Qs=i(31748);let Zs,en,tn,an,sn;(0,b.initializeI18n)(Ks,qs);const nn={lib:"antd",icon:"tool"},rn=new Map([["EasyOps平台",{servers:["cmdb","cmdb_product_helper"]}],["Grafana",{servers:["grafana"]}],["Kubernetes",{servers:["kubernetes"]}],["监控事件",{servers:["alert"]}],["浏览器",{servers:["playwright"]}],["低代码",{servers:["web-builder","web-builder2"]}],["大模型",{servers:["llm"]}],["故障排查",{servers:["host-troubleshooting"]}]]),ln=(0,m.wrapBrick)("eo-icon"),on=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:cn,property:hn}=(0,u.createDecorators)();let dn;var pn=new WeakMap,un=new WeakMap;class mn extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,pn,en(this)),(0,n.A)(this,un,(tn(this),an(this,!0))),sn(this)}get list(){return(0,c.A)(pn,this)}set list(e){(0,o.A)(pn,this,e)}get withContainer(){return(0,c.A)(un,this)}set withContainer(e){(0,o.A)(un,this,e)}render(){return p().createElement(bn,{list:this.list,withContainer:this.withContainer})}}function bn(e){let{list:t,withContainer:i}=e;const[a,s]=(0,d.useMemo)((()=>{const e=new Map,i=new Map;null==t||t.forEach((t=>{const a=Js(`SERVER_${t.server.id.replaceAll("-","_")}`,t.server.name);let s=e.get(a);s||e.set(a,s=[]),s.push(t);const n=[...rn.entries()].find((e=>{let[i,{servers:a}]=e;return a.includes(t.server.id)})),r=n?n[0]:"其他";let l=i.get(r);l||i.set(r,l=[]),l.push(a)}));const a=["CMDB"];return[new Map([...e.entries()].sort(((e,t)=>{let[i]=e,[s]=t;const n=a.indexOf(i),r=a.indexOf(s);return(n<0?a.length:n)-(r<0?a.length:r)}))),i]}),[t]),n=(0,d.useMemo)((()=>{const e=[...rn.keys()],t=[...s.keys()];return t.sort(((t,i)=>{const a=e.indexOf(t),s=e.indexOf(i);return(a<0?e.length:a)-(s<0?e.length:s)})),["",...t]}),[s]),[r,l]=(0,d.useState)(""),o=(0,d.useMemo)((()=>{const e=[...a];if(!r)return e;const t=s.get(r);return e.filter((e=>{let[i]=e;return null==t?void 0:t.includes(i)}))}),[r,a,s]),c=(0,d.useMemo)((()=>n.map((e=>({id:e,label:""===e?Js(Gs.ALL):e})))),[n]),h=p().createElement(p().Fragment,null,p().createElement(on,{tabs:c,activeTab:r,onTabClick:e=>l(e.detail.id)}),p().createElement("ul",{className:"groups"},null==o?void 0:o.map((e=>{let[t,i]=e;return p().createElement("li",{key:t,className:"group"},p().createElement("h2",null,t),p().createElement("ul",{className:"list"},i.map(((e,t)=>{var i;return p().createElement("li",{key:t,className:"item"},p().createElement("div",{className:"heading"},p().createElement(ln,(0,Lt.A)({className:"icon"},null!==(i=e.icon)&&void 0!==i?i:nn,{fallback:nn})),p().createElement("div",{className:"title"},e.title)),p().createElement("div",{className:"description"},e.description))}))))}))));return i?p().createElement("div",{className:"container"},p().createElement("h1",null,Js(Gs.MCP_HUB)),h):h}Xs=mn,({e:[en,tn,an,sn],c:[dn,Zs]}=(0,h.A)(Xs,[cn("ai-portal.mcp-tools",{styleTexts:[Qs.A]})],[[hn({attribute:!1}),1,"list"],[hn({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),Zs();var An,gn=i(92914),kn=i(82515),En=i(16572);let wn,xn,vn,fn,yn,Mn,Tn,Rn,Sn,_n,Nn,Cn,Dn,Wn,On,Fn,In,Ln,Un,zn,Hn,Vn,jn,Bn,Pn,Yn,$n,Gn,Kn,qn,Jn,Xn,Qn,Zn,er,tr,ir,ar,sr,nr,rr,lr,or,cr;(0,b.initializeI18n)(gn.NS,gn.I);const{defineElement:hr,property:dr,event:pr,method:ur}=(0,u.createDecorators)(),mr=(0,d.forwardRef)(kn.L),br=(0,d.forwardRef)(En.C);let Ar;var gr=new WeakMap,kr=new WeakMap,Er=new WeakMap,wr=new WeakMap,xr=new WeakMap,vr=new WeakMap,fr=new WeakMap,yr=new WeakMap,Mr=new WeakMap,Tr=new WeakMap,Rr=new WeakMap,Sr=new WeakMap,_r=new WeakSet,Nr=new WeakMap,Cr=new WeakMap,Dr=new WeakMap,Wr=new WeakMap,Or=new WeakMap,Fr=new WeakMap,Ir=new WeakMap,Lr=new WeakMap,Ur=new WeakMap,zr=new WeakMap;class Hr extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,_r),(0,n.A)(this,gr,(wn(this),vn(this))),(0,n.A)(this,kr,(fn(this),yn(this))),(0,n.A)(this,Er,(Mn(this),Tn(this))),(0,n.A)(this,wr,(Rn(this),Sn(this))),(0,n.A)(this,xr,(_n(this),Nn(this))),(0,n.A)(this,vr,(Cn(this),Dn(this))),(0,n.A)(this,fr,(Wn(this),On(this))),(0,n.A)(this,yr,(Fn(this),In(this))),(0,n.A)(this,Mr,(Ln(this),Un(this))),(0,n.A)(this,Tr,(zn(this),Hn(this))),(0,n.A)(this,Rr,(Vn(this),jn(this))),(0,n.A)(this,Sr,(Bn(this),Pn(this))),(0,n.A)(this,Nr,(Gn(this),()=>{(0,l.A)(_r,this,Yn).emit()})),(0,n.A)(this,Cr,Kn(this)),(0,n.A)(this,Dr,(Xn(this),()=>{(0,l.A)(_r,this,qn).emit()})),(0,n.A)(this,Wr,Qn(this)),(0,n.A)(this,Or,(tr(this),e=>{(0,l.A)(_r,this,Zn).emit(e)})),(0,n.A)(this,Fr,ir(this)),(0,n.A)(this,Ir,(nr(this),e=>{(0,l.A)(_r,this,ar).emit(e)})),(0,n.A)(this,Lr,rr(this)),(0,n.A)(this,Ur,(cr(this),()=>{(0,l.A)(_r,this,lr).emit("canvas")})),(0,n.A)(this,zr,(0,d.createRef)())}get conversationId(){return(0,c.A)(gr,this)}set conversationId(e){(0,o.A)(gr,this,e)}get initialRequest(){return(0,c.A)(kr,this)}set initialRequest(e){(0,o.A)(kr,this,e)}get taskId(){return(0,c.A)(Er,this)}set taskId(e){(0,o.A)(Er,this,e)}get replay(){return(0,c.A)(wr,this)}set replay(e){(0,o.A)(wr,this,e)}get replayDelay(){return(0,c.A)(xr,this)}set replayDelay(e){(0,o.A)(xr,this,e)}get supports(){return(0,c.A)(vr,this)}set supports(e){(0,o.A)(vr,this,e)}get showFeedback(){return(0,c.A)(fr,this)}set showFeedback(e){(0,o.A)(fr,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(yr,this)}set showFeedbackAfterFailed(e){(0,o.A)(yr,this,e)}get showFeedbackOnView(){return(0,c.A)(Mr,this)}set showFeedbackOnView(e){(0,o.A)(Mr,this,e)}get showUiSwitch(){return(0,c.A)(Tr,this)}set showUiSwitch(e){(0,o.A)(Tr,this,e)}get hideMermaid(){return(0,c.A)(Rr,this)}set hideMermaid(e){(0,o.A)(Rr,this,e)}resumed(){var e,t;null===(e=(0,c.A)(zr,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(zr,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(zr,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(zr,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){const e=this.conversationId?br:mr;return p().createElement(e,{conversationId:this.conversationId,initialRequest:this.initialRequest,taskId:this.taskId,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showFeedbackOnView:this.showFeedbackOnView,showUiSwitch:this.showUiSwitch,onShare:(0,c.A)(Nr,this),onTerminate:(0,c.A)(Dr,this),onSubmitFeedback:(0,c.A)(Or,this),onSwitchToCanvas:(0,c.A)(Ur,this),onFeedbackOnView:(0,c.A)(Ir,this)})}}An=Hr,({e:[vn,fn,yn,Mn,Tn,Rn,Sn,_n,Nn,Cn,Dn,Wn,On,Fn,In,Ln,Un,zn,Hn,Vn,jn,Bn,Pn,Yn,$n,Gn,Kn,qn,Jn,Xn,Qn,Zn,er,tr,ir,ar,sr,nr,rr,lr,or,cr,wn],c:[Ar,xn]}=(0,h.A)(An,[hr("ai-portal.chat-stream",{shadowOptions:!1})],[[dr(),1,"conversationId"],[dr({attribute:!1,render:!1}),1,"initialRequest"],[dr(),1,"taskId"],[dr({type:Boolean}),1,"replay"],[dr({type:Number}),1,"replayDelay"],[dr({attribute:!1}),1,"supports"],[dr({type:Boolean}),1,"showFeedback"],[dr({type:Boolean}),1,"showFeedbackAfterFailed"],[dr({type:Boolean}),1,"showFeedbackOnView"],[dr({type:Boolean}),1,"showUiSwitch"],[dr({type:Boolean,render:!1}),1,"hideMermaid"],[pr({type:"share"}),1,"shareEvent",e=>(0,c.A)(Sr,e),(e,t)=>(0,o.A)(Sr,e,t)],[pr({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(Cr,e),(e,t)=>(0,o.A)(Cr,e,t)],[pr({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(Wr,e),(e,t)=>(0,o.A)(Wr,e,t)],[pr({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(Fr,e),(e,t)=>(0,o.A)(Fr,e,t)],[pr({type:"ui.switch"}),1,"switch",e=>(0,c.A)(Lr,e),(e,t)=>(0,o.A)(Lr,e,t)],[ur(),2,"resumed"],[ur(),2,"feedbackSubmitDone"],[ur(),2,"feedbackSubmitFailed"],[ur(),2,"feedbackOnViewDone"]],0,(e=>zr.has((0,r.A)(e))),m.ReactNextElement)),xn();let Vr=function(e){return e.AI_EMPLOYEES="AI_EMPLOYEES",e.UNTITLED="UNTITLED",e}({});const jr="bricks/ai-portal/ai-employees",Br=b.i18n.getFixedT(null,jr);var Pr,Yr=i(98036);let $r,Gr,Kr,qr,Jr,Xr,Qr,Zr,el;(0,b.initializeI18n)(jr,{en:{AI_EMPLOYEES:"AI Employees",UNTITLED:"Untitled"},zh:{AI_EMPLOYEES:"Ai 数字人",UNTITLED:"未命名"}});const tl=(0,m.wrapBrick)("eo-link"),il=(0,m.wrapBrick)("eo-icon"),al=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:sl,property:nl}=(0,u.createDecorators)();let rl;var ll=new WeakMap,ol=new WeakMap,cl=new WeakMap,hl=new WeakMap;class dl extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,ll,Gr(this)),(0,n.A)(this,ol,(Kr(this),qr(this))),(0,n.A)(this,cl,(Jr(this),Xr(this))),(0,n.A)(this,hl,(Qr(this),Zr(this,!0))),el(this)}get list(){return(0,c.A)(ll,this)}set list(e){(0,o.A)(ll,this,e)}get industries(){return(0,c.A)(ol,this)}set industries(e){(0,o.A)(ol,this,e)}get urlTemplate(){return(0,c.A)(cl,this)}set urlTemplate(e){(0,o.A)(cl,this,e)}get withContainer(){return(0,c.A)(hl,this)}set withContainer(e){(0,o.A)(hl,this,e)}render(){return p().createElement(pl,{list:this.list,industries:this.industries,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function pl(e){let{list:t,industries:i,urlTemplate:a,withContainer:s}=e;const n=(0,d.useMemo)((()=>[...new Set([...null!=i?i:[],...(null!=t?t:[]).map((e=>e.industry))])]),[i,t]),[r,l]=(0,d.useState)(n[0]),o=(0,d.useMemo)((()=>{const e=new Map;return null==t||t.forEach((t=>{if(t.industry!==r)return;let i=e.get(t.role);i||e.set(t.role,i=[]),i.push(t)})),[...e.entries()]}),[r,t]),c=(0,d.useMemo)((()=>n.map((e=>({id:e,label:e||Br(Vr.UNTITLED)})))),[n]),h=p().createElement(p().Fragment,null,p().createElement(al,{tabs:c,activeTab:r,onTabClick:e=>l(e.detail.id)}),p().createElement("ul",{className:"groups"},o.map((e=>{let[t,i]=e;return p().createElement("li",{key:t,className:"group"},p().createElement("h2",null,t),p().createElement("ul",{className:"list"},i.map(((e,t)=>p().createElement("li",{key:t},p().createElement(tl,(0,Lt.A)({className:Mi()("link",{clickable:!!a})},a?{url:(0,Ds.Q)(a,e)}:null),p().createElement("div",{className:"heading"},p().createElement("div",{className:"avatar"},e.avatar?p().createElement("img",{src:e.avatar}):p().createElement(il,{lib:"antd",icon:"user"})),p().createElement("div",{className:"title"},e.name)),p().createElement("div",{className:"description"},e.description)))))))}))));return s?p().createElement("div",{className:"container"},p().createElement("h1",null,Br(Vr.AI_EMPLOYEES)),h):h}Pr=dl,({e:[Gr,Kr,qr,Jr,Xr,Qr,Zr,el],c:[rl,$r]}=(0,h.A)(Pr,[sl("ai-portal.ai-employees",{styleTexts:[Yr.A]})],[[nl({attribute:!1}),1,"list"],[nl({attribute:!1}),1,"industries"],[nl(),1,"urlTemplate"],[nl({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),$r();let ul=function(e){return e.AGENTS="AGENTS",e}({});const ml="bricks/ai-portal/ai-agents",bl=b.i18n.getFixedT(null,ml);var Al,gl=i(83059);let kl,El,wl,xl,vl,fl,yl;const Ml={lib:"antd",icon:"tool"};(0,b.initializeI18n)(ml,{en:{AGENTS:"Agents"},zh:{AGENTS:"智能体"}});const Tl=(0,m.wrapBrick)("eo-icon"),Rl=(0,m.wrapBrick)("eo-link"),{defineElement:Sl,property:_l}=(0,u.createDecorators)();let Nl;var Cl=new WeakMap,Dl=new WeakMap,Wl=new WeakMap;class Ol extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Cl,El(this)),(0,n.A)(this,Dl,(wl(this),xl(this))),(0,n.A)(this,Wl,(vl(this),fl(this,!0))),yl(this)}get list(){return(0,c.A)(Cl,this)}set list(e){(0,o.A)(Cl,this,e)}get urlTemplate(){return(0,c.A)(Dl,this)}set urlTemplate(e){(0,o.A)(Dl,this,e)}get withContainer(){return(0,c.A)(Wl,this)}set withContainer(e){(0,o.A)(Wl,this,e)}render(){return p().createElement(Fl,{list:this.list,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function Fl(e){let{list:t,urlTemplate:i,withContainer:a}=e;const s=p().createElement(p().Fragment,null,p().createElement("ul",{className:"list"},null==t?void 0:t.map(((e,t)=>{var a,s;return p().createElement("li",{key:t},p().createElement(Rl,(0,Lt.A)({className:Mi()("link",{clickable:!!i})},i?{url:(0,Ds.Q)(i,e)}:null),p().createElement("div",{className:"heading"},p().createElement("div",{className:"icon"},p().createElement(Tl,(0,Lt.A)({},null!==(a=e.icon)&&void 0!==a?a:Ml,{fallback:Ml}))),p().createElement("div",{className:"title"},e.name)),p().createElement("div",{className:"tags"},null===(s=e.tags)||void 0===s?void 0:s.map(((e,t)=>p().createElement("span",{key:t,className:"tag"},e)))),p().createElement("div",{className:"description"},e.description)))}))));return a?p().createElement("div",{className:"container"},p().createElement("h1",null,bl(ul.AGENTS)),s):s}Al=Ol,({e:[El,wl,xl,vl,fl,yl],c:[Nl,kl]}=(0,h.A)(Al,[Sl("ai-portal.ai-agents",{styleTexts:[gl.A]})],[[_l({attribute:!1}),1,"list"],[_l(),1,"urlTemplate"],[_l({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),kl();var Il=i(94558);let Ll=null;customElements.define("ai-portal.save-request-store",(0,Il.createProviderClass)((function(e){Ll=e}))),customElements.define("ai-portal.load-request-store",(0,Il.createProviderClass)((function(){const e=Ll;return Ll=null,e}))),customElements.define("ai-portal.clear-request-store",(0,Il.createProviderClass)((function(){Ll=null})));var Ul,zl=i(49041);let Hl,Vl,jl,Bl,Pl,Yl,$l;const Gl=(0,m.wrapBrick)("eo-link"),{defineElement:Kl,property:ql}=(0,u.createDecorators)();let Jl;var Xl=new WeakMap,Ql=new WeakMap,Zl=new WeakMap;class eo extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Xl,Vl(this)),(0,n.A)(this,Ql,(jl(this),Bl(this))),(0,n.A)(this,Zl,(Pl(this),Yl(this))),$l(this)}get pageTitle(){return(0,c.A)(Xl,this)}set pageTitle(e){(0,o.A)(Xl,this,e)}get breadcrumbs(){return(0,c.A)(Ql,this)}set breadcrumbs(e){(0,o.A)(Ql,this,e)}get size(){return(0,c.A)(Zl,this)}set size(e){(0,o.A)(Zl,this,e)}render(){return p().createElement(to,{pageTitle:this.pageTitle,breadcrumbs:this.breadcrumbs})}}function to(e){let{breadcrumbs:t,pageTitle:i}=e;return(0,d.useEffect)((()=>{"string"==typeof i&&(0,fi.getRuntime)().applyPageTitle(i)}),[i]),p().createElement("div",{className:"container"},i||null!=t&&t.length?p().createElement("div",{className:"header"},p().createElement("nav",null,null!=t&&t.length?p().createElement("ul",{className:"breadcrumbs"},t.map(((e,t)=>p().createElement("li",{key:t},p().createElement(Gl,{url:e.url},e.text))))):null,i?p().createElement("h1",null,i):null),p().createElement("slot",{name:"toolbar"})):null,p().createElement("slot",null))}Ul=eo,({e:[Vl,jl,Bl,Pl,Yl,$l],c:[Jl,Hl]}=(0,h.A)(Ul,[Kl("ai-portal.page-container",{styleTexts:[zl.A]})],[[ql(),1,"pageTitle"],[ql({attribute:!1}),1,"breadcrumbs"],[ql({render:!1}),1,"size"]],0,void 0,m.ReactNextElement)),Hl();var io=i(21302);const ao="libs-datetime";let so=function(e){return e.TODAY="TODAY",e.YESTERDAY="YESTERDAY",e.FUTURE_AFTER="FUTURE_AFTER",e.FORMAT_MEDIUM_DATETIME="FORMAT_MEDIUM_DATETIME",e.FORMAT_MEDIUM_DATE="FORMAT_MEDIUM_DATE",e.FORMAT_SHORT_DATETIME="FORMAT_SHORT_DATETIME",e.FORMAT_SHORT_DATE="FORMAT_SHORT_DATE",e.FORMAT_SHORT_DAY_DATETIME="FORMAT_SHORT_DAY_DATETIME",e.FORMAT_SHORT_DAY_DATE="FORMAT_SHORT_DAY_DATE",e.SECONDS="SECONDS",e.MILL_SECONDS="MILL_SECONDS",e.MINUTES="MINUTES",e.HOURS="HOURS",e.DAYS="DARS",e.MONTHS="MONTHS",e}({});const no={[so.YESTERDAY]:"Yesterday",[so.TODAY]:"Today",[so.FUTURE_AFTER]:"After {{time}}",[so.FORMAT_MEDIUM_DATETIME]:"LLL",[so.FORMAT_MEDIUM_DATE]:"LL",[so.FORMAT_SHORT_DATETIME]:"MMM D ah:mm",[so.FORMAT_SHORT_DATE]:"MMM D",[so.FORMAT_SHORT_DAY_DATETIME]:"MMM D HH:mm",[so.FORMAT_SHORT_DAY_DATE]:"MMM D",[so.MONTHS]:"months",[so.HOURS]:"hours",[so.SECONDS]:"seconds",[so.MILL_SECONDS]:"millseconds",[so.DAYS]:"days",[so.MINUTES]:"minutes"},ro={[so.YESTERDAY]:"昨天",[so.TODAY]:"今天",[so.FUTURE_AFTER]:"{{time}}后",[so.FORMAT_MEDIUM_DATETIME]:"LL ah:mm",[so.FORMAT_MEDIUM_DATE]:"LL",[so.FORMAT_SHORT_DATETIME]:"MMMD日 ah:mm",[so.FORMAT_SHORT_DATE]:"MMMD日",[so.FORMAT_SHORT_DAY_DATETIME]:"MMMD日 HH:mm",[so.FORMAT_SHORT_DAY_DATE]:"MMMD日",[so.MONTHS]:"个月",[so.HOURS]:"小时",[so.SECONDS]:"秒",[so.MILL_SECONDS]:"毫秒",[so.DAYS]:"天",[so.MINUTES]:"分钟"};(0,b.initializeI18n)(ao,{en:no,zh:ro});let lo=function(e){return e.full="full",e.default="default",e.relative="relative",e.past="past",e.future="future",e.accurate="accurate",e.auto="auto",e}({});let oo=function(e){return e.CHATS="CHATS",e.GOALS="GOALS",e}({});const co="bricks/ai-portal/project-summary",ho={en:{[oo.CHATS]:"Chat history",[oo.GOALS]:"Project goals"},zh:{[oo.CHATS]:"历史对话",[oo.GOALS]:"项目目标"}},po=b.i18n.getFixedT(null,co);var uo,mo=i(56562);let bo,Ao,go,ko,Eo;(0,b.initializeI18n)(co,ho);const wo=(0,m.wrapBrick)("eo-icon"),xo=(0,m.wrapBrick)("eo-link"),vo=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),fo="chats",yo=[{id:fo,label:po(oo.CHATS)},{id:"goals",label:po(oo.GOALS)}],{defineElement:Mo,property:To}=(0,u.createDecorators)();let Ro;var So=new WeakMap,_o=new WeakMap;class No extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,So,Ao(this)),(0,n.A)(this,_o,(go(this),ko(this))),Eo(this)}get chatList(){return(0,c.A)(So,this)}set chatList(e){(0,o.A)(So,this,e)}get chatUrlTemplate(){return(0,c.A)(_o,this)}set chatUrlTemplate(e){(0,o.A)(_o,this,e)}render(){return p().createElement(Co,{chatList:this.chatList,chatUrlTemplate:this.chatUrlTemplate})}}function Co(e){let{chatList:t,chatUrlTemplate:i}=e;const[a,s]=(0,d.useState)(fo);return p().createElement(p().Fragment,null,p().createElement(vo,{tabs:yo,activeTab:a,onTabClick:e=>s(e.detail.id)}),a===fo?t?p().createElement("ul",{className:"chats"},t.map((e=>p().createElement("li",{key:e.conversationId,className:"item"},p().createElement(xo,{className:"link",url:(0,Ds.Q)(i,e)},p().createElement("div",{className:"title"},e.title),p().createElement("div",{className:"time"},p().createElement(wo,{lib:"antd",icon:"clock-circle"}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lo.auto,i=arguments.length>2?arguments[2]:void 0;if(null==e||e===-1/0||e===1/0)return null;const a=io(e),s=io().add(0),n="date"===i?"LL":"LL HH:mm",r=b.i18n.t(`${ao}:${"date"===i?so.FORMAT_MEDIUM_DATE:so.FORMAT_MEDIUM_DATETIME}`),l=b.i18n.t(`${ao}:${"date"===i?so.FORMAT_SHORT_DATE:so.FORMAT_SHORT_DATETIME}`),o=b.i18n.t(`${ao}:${"date"===i?so.FORMAT_SHORT_DAY_DATE:so.FORMAT_SHORT_DAY_DATETIME}`),c="date"===i?"LL":"LL HH:mm:ss";let h;switch(t){case lo.full:h=a.format(n);break;case lo.default:h=a.format(c);break;case lo.relative:{const e=+a-+s;h=e<=0?io.duration(e).humanize(!0):b.i18n.t(`${ao}:${so.FUTURE_AFTER}`,{time:io.duration(e).humanize()});break}case lo.past:h=io.duration(Math.min(+a-+s,0)).humanize(!0);break;case lo.future:h=b.i18n.t(`${ao}:${so.FUTURE_AFTER}`,{time:io.duration(Math.max(+a-+s,0)).humanize()});break;case lo.accurate:h=(()=>{const e=+a.diff(s,"days",!0).toFixed(1);let t="";const r=a.year()<s.year()?"lastYear":e<-2||a.isBefore(s.clone().add(-1,"day"),"day")?"twoDaysBefore":a.isSame(s.clone().add(-1,"day"),"day")?"yesterday":a.isSame(s,"day")?"sameDay":e<2&&a.isSame(s.clone().add(1,"day"),"day")?"nextDay":e<7?"nextWeek":"default";switch(r){case"sameDay":case"yesterday":t=`${b.i18n.t(`${ao}:${"yesterday"===r?so.YESTERDAY:so.TODAY}`)}${"date"===i?"":` ${a.format("HH:mm")}`}`;break;case"lastYear":default:t=a.format(n);break;case"twoDaysBefore":t=a.format(o)}return t})();break;default:h=a.format(a.year()===s.year()?l:r)}return h}(e.startTime,lo.relative))))))):p().createElement("div",{className:"loading"},p().createElement(wo,{lib:"antd",icon:"loading-3-quarters",spinning:!0})):null)}uo=No,({e:[Ao,go,ko,Eo],c:[Ro,bo]}=(0,h.A)(uo,[Mo("ai-portal.project-summary",{styleTexts:[mo.A]})],[[To({attribute:!1}),1,"chatList"],[To(),1,"chatUrlTemplate"]],0,void 0,m.ReactNextElement)),bo();var Do,Wo=i(20124);let Oo,Fo,Io,Lo,Uo,zo,Ho,Vo,jo;const{defineElement:Bo,property:Po,event:Yo}=(0,u.createDecorators)();let $o;var Go=new WeakMap,Ko=new WeakMap,qo=new WeakMap,Jo=new WeakSet,Xo=new WeakMap;class Qo extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Jo),(0,n.A)(this,Go,Fo(this)),(0,n.A)(this,Ko,(Io(this),Lo(this))),(0,n.A)(this,qo,(Uo(this),zo(this))),(0,n.A)(this,Xo,(jo(this),e=>{this.activeTab=e.id,(0,l.A)(Jo,this,Ho).emit(e)}))}get tabs(){return(0,c.A)(Go,this)}set tabs(e){(0,o.A)(Go,this,e)}get activeTab(){return(0,c.A)(Ko,this)}set activeTab(e){(0,o.A)(Ko,this,e)}render(){return p().createElement(Zo,{tabs:this.tabs,activeTab:this.activeTab,onTabClick:(0,c.A)(Xo,this)})}}function Zo(e){let{tabs:t,activeTab:i,onTabClick:a}=e;return p().createElement("ul",{className:"tabs",part:"tabs"},null==t?void 0:t.map((e=>p().createElement("li",{key:e.id,part:"tab",className:Mi()("tab",{active:e.id===i})},p().createElement("a",{onClick:()=>a(e)},e.label)))))}Do=Qo,({e:[Fo,Io,Lo,Uo,zo,Ho,Vo,jo],c:[$o,Oo]}=(0,h.A)(Do,[Bo("ai-portal.tab-list",{styleTexts:[Wo.A]})],[[Po({attribute:!1}),1,"tabs"],[Po({attribute:!1}),1,"activeTab"],[Yo({type:"tab.click"}),1,"tabClick",e=>(0,c.A)(qo,e),(e,t)=>(0,o.A)(qo,e,t)]],0,(e=>Xo.has((0,r.A)(e))),m.ReactNextElement)),Oo()},42873:(e,t,i)=>{i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n)()(s());r.push([e.id,":host{display:flex;flex-direction:column;align-items:center;max-width:1020px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.tips{color:rgba(0,0,0,0.45);margin-bottom:27px}.cases{list-style:none;padding:0;margin:0;display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:36px}.link{display:block;background:rgba(255,255,255,0.5);border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-size:cover;background-position:center;background-repeat:no-repeat;background-clip:padding-box;overflow:hidden}.link::part(link){display:flex;flex-direction:column;gap:0;box-sizing:border-box;height:128px;padding:20px}.title{width:100%;margin-bottom:8px;color:#262626;font-weight:500;font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{width:100%;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:rgba(24,33,47,0.65);font-size:13px;line-height:20px}.link::part(link):hover{box-shadow:0px 4px 12px 0px rgba(96,96,138,0.15),0px 2px 4px 0px rgba(96,96,138,0.06)}",""]);const l=r.toString()},47008:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n),l=i(20062),o=i.n(l),c=new URL(i(47336),i.b),h=r()(s()),d=o()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.root{color:#262626;background:url(${d}) no-repeat center bottom;background-size:100% 104px;padding:12px 12px 29px}.container{position:relative;background:#ffffff;box-shadow:0px 2px 4px 0px rgba(38,45,65,0.1);border-radius:16px;border:1px solid #dadfe8}.container:has(textarea:focus){border-color:#b7c3d8}textarea{display:block;width:100%;padding:10px 16px 50px;color:var(--antd-input-color);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.5);font-size:14px;line-height:22px;height:120px}textarea::placeholder{color:rgba(0,0,0,0.4)}.btn-send:focus,\ntextarea:focus{outline:none}.actions-bar{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:flex-end;justify-content:space-between}.btn-send{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff;flex-shrink:0}.btn-send[disabled]{background:rgba(0,0,0,0.15)}.btn-send:not([disabled]){cursor:pointer}.btn-send:not([disabled]):hover{background:#5166ff}.btn-send:not([disabled]):active{background:#1e33cc}`,""]);const p=h.toString()},47336:(e,t,i)=>{e.exports=i.p+"images/25c20165.png"},47338:(e,t,i)=>{i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n)()(s());r.push([e.id,':host{display:inline-block}:host([hidden]){display:none}:host,\neo-tooltip{vertical-align:middle}button{width:28px;height:28px;font-size:18px;border-radius:8px;display:flex;align-items:center;justify-content:center;border:none;background:none;color:#333}button:disabled{color:#8c8c8c}button:not(:disabled){cursor:pointer}button:focus{outline:none}button:not(:disabled):hover{background:rgba(0,0,0,0.04)}button:not(:disabled):active{background:rgba(0,0,0,0.08)}:host([variant="light"]) button{color:#595959}:host([variant="mini"]) button{width:24px;height:24px;font-size:16px;border-radius:4px}:host([variant="mini-light"]) button{color:#8c8c8c;width:20px;height:20px;font-size:14px;border-radius:4px}:host([variant="bordered"]) button{background:#ffffff;border-radius:8px;border:1px solid rgba(0,0,0,0.1);color:#595959;width:32px;height:32px;font-size:18px}:host([variant="bordered"]) button:not(:disabled):hover{background:rgba(0,0,0,0.04)}',""]);const l=r.toString()},49041:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n),l=i(20062),o=i.n(l),c=new URL(i(25676),i.b),h=r()(s()),d=o()(c);h.push([e.id,`:host{display:block;position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:17px 54px 48px;overflow-y:auto}:host([hidden]){display:none}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}:host([size="small"]) .container{max-width:1000px}.header{margin-bottom:30px;display:flex;justify-content:space-between;align-items:center}nav{font-weight:500;font-size:20px;line-height:28px;display:flex;min-width:0}h1{margin:0;font-size:inherit;line-height:inherit}.breadcrumbs{list-style:none;padding:0;margin:0;color:#bfbfbf}.breadcrumbs eo-link::part(link){color:inherit}.breadcrumbs eo-link::part(link):hover{color:#595959}.breadcrumbs li::after{content:"/";margin:0 8px}`,""]);const p=h.toString()},56562:(e,t,i)=>{i.d(t,{A:()=>l});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n)()(s());r.push([e.id,":host{display:flex;flex-direction:column;align-items:center;max-width:1200px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.chats{list-style:none;padding:0;margin:0;display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px;margin-top:2em}.chats .link{display:block}.chats .link::part(link){background:#fff;border-radius:12px;border:1px solid rgba(0,0,0,0.1);overflow:hidden;display:block;padding:16px 16px 12px}.chats .link::part(link):hover{box-shadow:0px 2px 8px 0px rgba(0,0,0,0.1)}.chats .title{height:40px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#262626}.chats .time{margin-top:20px;font-size:12px;color:#8c8c8c;display:flex;align-items:center}.chats .time eo-icon{margin-right:4px}.loading{display:flex;align-items:center;justify-content:center;margin-top:2em;font-size:16px;color:#8c8c8c}",""]);const l=r.toString()},82165:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n),l=i(20062),o=i.n(l),c=new URL(i(32360),i.b),h=r()(s()),d=o()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}:host::before{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:#f1f1f1;background-image:url(${d});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}`,""]);const p=h.toString()},83059:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n),l=i(20062),o=i.n(l),c=new URL(i(25676),i.b),h=r()(s()),d=o()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}h1{font-weight:500;margin:0;font-size:20px;line-height:28px;margin-bottom:17px}.list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.link{display:block;height:100%}.link::part(link){display:block;height:100%;color:#262626;background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px;box-sizing:border-box}.link:not(.clickable)::part(link){cursor:auto}.clickable::part(link):hover{box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1)}.heading{display:flex;align-items:center}.icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#ffffff;border-radius:12px;border:1px solid #e8e9ec;font-size:32px;color:#595959;margin-right:16px}.title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clickable::part(link):hover .title{color:var(--elevo-color-brand)}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:6px;margin:16px 0 -3px}.tag{display:block;background:rgba(0,0,0,0.04);border-radius:4px;font-size:12px;line-height:22px;padding:0 7px}`,""]);const p=h.toString()},98036:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),s=i.n(a),n=i(40935),r=i.n(n),l=i(20062),o=i.n(l),c=new URL(i(25676),i.b),h=r()(s()),d=o()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto;margin-bottom:17px}h1,\nh2{font-weight:500;margin:0}h1{font-size:20px;line-height:28px;margin-bottom:17px}h2{font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:27px}.group + .group{margin-top:32px}.list{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.link{display:block;height:100%}.link::part(link){display:block;height:100%;color:#262626;background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px;box-sizing:border-box}.link:not(.clickable)::part(link){cursor:auto}.clickable::part(link):hover{box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1)}.heading{display:flex;align-items:center}.avatar{width:48px;height:48px;border-radius:12px;margin-right:16px;background-color:#d5d6e6;display:flex;align-items:center;justify-content:center;font-size:24px}.avatar img{width:100%;height:100%}.title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clickable::part(link):hover .title{color:var(--elevo-color-brand)}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}`,""]);const p=h.toString()}}]);
2
- //# sourceMappingURL=1194.5eabae99.js.map