@next-bricks/ai-portal 0.58.8 → 0.58.10
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/dist/bricks.json +30 -30
- package/dist/chunks/151.098c765c.js +2 -0
- package/dist/chunks/151.098c765c.js.map +1 -0
- package/dist/chunks/2232.4c2a5ea6.js +2 -0
- package/dist/chunks/2232.4c2a5ea6.js.map +1 -0
- package/dist/chunks/{2324.17662f31.js → 2324.d6932d39.js} +2 -2
- package/dist/chunks/{2324.17662f31.js.map → 2324.d6932d39.js.map} +1 -1
- package/dist/chunks/6811.122526d0.js +2 -0
- package/dist/chunks/6811.122526d0.js.map +1 -0
- package/dist/chunks/9496.065a4fc5.js +2 -0
- package/dist/chunks/9496.065a4fc5.js.map +1 -0
- package/dist/chunks/{elevo-sidebar.08aad53b.js → elevo-sidebar.dcdcd0e4.js} +3 -3
- package/dist/chunks/elevo-sidebar.dcdcd0e4.js.map +1 -0
- package/dist/chunks/icon-button.ee06d4b6.js +2 -0
- package/dist/chunks/icon-button.ee06d4b6.js.map +1 -0
- package/dist/chunks/{main.15818e0c.js → main.ec8527dd.js} +2 -2
- package/dist/chunks/{main.15818e0c.js.map → main.ec8527dd.js.map} +1 -1
- package/dist/examples.json +22 -22
- package/dist/{index.c4df1948.js → index.7ed0f10c.js} +2 -2
- package/dist/{index.c4df1948.js.map → index.7ed0f10c.js.map} +1 -1
- package/dist/manifest.json +277 -277
- package/dist/types.json +755 -755
- package/dist-types/chat-stream/useConversationStream.d.ts +2 -2
- package/dist-types/shared/FilePreview/FileList.d.ts +8 -0
- package/dist-types/shared/FilePreview/FilePreview.d.ts +1 -4
- package/dist-types/shared/FilePreview/ImagesPreview.d.ts +6 -0
- package/dist-types/shared/FilePreview/downloadFile.d.ts +2 -0
- package/dist-types/shared/FilePreview/getImageUrl.d.ts +1 -0
- package/dist-types/shared/FilePreview/i18n.d.ts +3 -1
- package/dist-types/shared/TaskContext.d.ts +3 -1
- package/dist-types/shared/constants.d.ts +1 -0
- package/dist-types/shared/interfaces.d.ts +5 -1
- package/package.json +2 -2
- package/dist/chunks/1488.171d8f4f.js +0 -2
- package/dist/chunks/1488.171d8f4f.js.map +0 -1
- package/dist/chunks/151.98b4630f.js +0 -2
- package/dist/chunks/151.98b4630f.js.map +0 -1
- package/dist/chunks/2232.fb0bce86.js +0 -2
- package/dist/chunks/2232.fb0bce86.js.map +0 -1
- package/dist/chunks/9496.e3fa93a9.js +0 -2
- package/dist/chunks/9496.e3fa93a9.js.map +0 -1
- package/dist/chunks/elevo-sidebar.08aad53b.js.map +0 -1
- package/dist/chunks/icon-button.0881c876.js +0 -2
- package/dist/chunks/icon-button.0881c876.js.map +0 -1
- package/dist-types/cruise-canvas/FileList/FileList.d.ts +0 -9
- package/dist-types/shared/FilePreview/FilePreviewDrawer.d.ts +0 -6
- /package/dist/chunks/{elevo-sidebar.08aad53b.js.LICENSE.txt → elevo-sidebar.dcdcd0e4.js.LICENSE.txt} +0 -0
package/dist/bricks.json
CHANGED
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
"id": "bricks/ai-portal",
|
|
3
3
|
"bricks": [
|
|
4
4
|
"ai-portal.cruise-canvas",
|
|
5
|
-
"ai-portal.stat-with-mini-chart",
|
|
6
5
|
"ai-portal.elevo-sidebar",
|
|
7
|
-
"ai-portal.home-container",
|
|
8
|
-
"ai-portal.chat-box",
|
|
9
6
|
"ai-portal.icon-button",
|
|
7
|
+
"ai-portal.stat-with-mini-chart",
|
|
10
8
|
"ai-portal.show-cases",
|
|
9
|
+
"ai-portal.mcp-tools",
|
|
11
10
|
"ai-portal.ai-employees",
|
|
11
|
+
"ai-portal.chat-box",
|
|
12
12
|
"ai-portal.chat-stream",
|
|
13
|
-
"ai-portal.mcp-tools",
|
|
14
13
|
"ai-portal.ai-agents",
|
|
15
|
-
"ai-portal.
|
|
14
|
+
"ai-portal.page-container",
|
|
16
15
|
"ai-portal.save-request-store",
|
|
17
16
|
"ai-portal.load-request-store",
|
|
18
17
|
"ai-portal.clear-request-store",
|
|
18
|
+
"ai-portal.call-tool",
|
|
19
19
|
"ai-portal.set-chat-command",
|
|
20
|
-
"ai-portal.page-container",
|
|
21
20
|
"ai-portal.tab-list",
|
|
21
|
+
"ai-portal.home-container",
|
|
22
22
|
"ai-portal.dropdown-select",
|
|
23
23
|
"ai-portal.preview-container",
|
|
24
24
|
"ai-portal.action-buttons",
|
|
25
|
+
"ai-portal.goal-card-list",
|
|
25
26
|
"ai-portal.project-conversations",
|
|
26
27
|
"ai-portal.activity-timeline",
|
|
27
28
|
"ai-portal.project-knowledges",
|
|
28
|
-
"ai-portal.goal-card-list",
|
|
29
29
|
"ai-portal.chat-input",
|
|
30
|
-
"ai-portal.elevo-logo",
|
|
31
30
|
"ai-portal.show-case",
|
|
32
31
|
"ai-portal.blank-state",
|
|
33
|
-
"ai-portal.elevo-
|
|
32
|
+
"ai-portal.elevo-logo",
|
|
34
33
|
"ai-portal.sticky-container",
|
|
35
|
-
"ai-portal.
|
|
34
|
+
"ai-portal.elevo-card",
|
|
36
35
|
"ai-portal.stage-flow",
|
|
36
|
+
"ai-portal.flow-tabs",
|
|
37
37
|
"ai-portal.running-flow",
|
|
38
38
|
"ai-portal.notice-dropdown"
|
|
39
39
|
],
|
|
@@ -62,9 +62,6 @@
|
|
|
62
62
|
"presentational.code-wrapper",
|
|
63
63
|
"eo-avatar"
|
|
64
64
|
],
|
|
65
|
-
"ai-portal.stat-with-mini-chart": [
|
|
66
|
-
"eo-mini-line-chart"
|
|
67
|
-
],
|
|
68
65
|
"ai-portal.elevo-sidebar": [
|
|
69
66
|
"ai-portal.elevo-logo",
|
|
70
67
|
"eo-icon",
|
|
@@ -74,24 +71,32 @@
|
|
|
74
71
|
"eo-mini-actions",
|
|
75
72
|
"ai-portal.icon-button"
|
|
76
73
|
],
|
|
77
|
-
"ai-portal.chat-box": [
|
|
78
|
-
"eo-icon",
|
|
79
|
-
"eo-actions",
|
|
80
|
-
"ai-portal.icon-button"
|
|
81
|
-
],
|
|
82
74
|
"ai-portal.icon-button": [
|
|
83
75
|
"eo-icon",
|
|
84
76
|
"eo-tooltip"
|
|
85
77
|
],
|
|
78
|
+
"ai-portal.stat-with-mini-chart": [
|
|
79
|
+
"eo-mini-line-chart"
|
|
80
|
+
],
|
|
86
81
|
"ai-portal.show-cases": [
|
|
87
82
|
"ai-portal.show-case",
|
|
88
83
|
"ai-portal.tab-list"
|
|
89
84
|
],
|
|
85
|
+
"ai-portal.mcp-tools": [
|
|
86
|
+
"eo-icon",
|
|
87
|
+
"ai-portal.tab-list",
|
|
88
|
+
"ai-portal.sticky-container"
|
|
89
|
+
],
|
|
90
90
|
"ai-portal.ai-employees": [
|
|
91
91
|
"eo-link",
|
|
92
92
|
"eo-icon",
|
|
93
93
|
"ai-portal.tab-list"
|
|
94
94
|
],
|
|
95
|
+
"ai-portal.chat-box": [
|
|
96
|
+
"eo-icon",
|
|
97
|
+
"eo-actions",
|
|
98
|
+
"ai-portal.icon-button"
|
|
99
|
+
],
|
|
95
100
|
"ai-portal.chat-stream": [
|
|
96
101
|
"eo-icon",
|
|
97
102
|
"eo-button",
|
|
@@ -111,11 +116,6 @@
|
|
|
111
116
|
"eo-counter-badge",
|
|
112
117
|
"presentational.code-wrapper"
|
|
113
118
|
],
|
|
114
|
-
"ai-portal.mcp-tools": [
|
|
115
|
-
"eo-icon",
|
|
116
|
-
"ai-portal.tab-list",
|
|
117
|
-
"ai-portal.sticky-container"
|
|
118
|
-
],
|
|
119
119
|
"ai-portal.ai-agents": [
|
|
120
120
|
"eo-icon",
|
|
121
121
|
"eo-link"
|
|
@@ -142,6 +142,12 @@
|
|
|
142
142
|
"eo-icon",
|
|
143
143
|
"eo-button"
|
|
144
144
|
],
|
|
145
|
+
"ai-portal.goal-card-list": [
|
|
146
|
+
"eo-icon",
|
|
147
|
+
"eo-dropdown-actions",
|
|
148
|
+
"eo-easyops-avatar",
|
|
149
|
+
"eo-button"
|
|
150
|
+
],
|
|
145
151
|
"ai-portal.project-conversations": [
|
|
146
152
|
"eo-link",
|
|
147
153
|
"eo-icon",
|
|
@@ -159,12 +165,6 @@
|
|
|
159
165
|
"eo-easyops-avatar",
|
|
160
166
|
"eo-mini-actions"
|
|
161
167
|
],
|
|
162
|
-
"ai-portal.goal-card-list": [
|
|
163
|
-
"eo-icon",
|
|
164
|
-
"eo-dropdown-actions",
|
|
165
|
-
"eo-easyops-avatar",
|
|
166
|
-
"eo-button"
|
|
167
|
-
],
|
|
168
168
|
"ai-portal.chat-input": [
|
|
169
169
|
"eo-icon",
|
|
170
170
|
"ai-portal.icon-button"
|
|
@@ -196,5 +196,5 @@
|
|
|
196
196
|
"eo-tooltip"
|
|
197
197
|
]
|
|
198
198
|
},
|
|
199
|
-
"filePath": "bricks/ai-portal/dist/index.
|
|
199
|
+
"filePath": "bricks/ai-portal/dist/index.7ed0f10c.js"
|
|
200
200
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[151],{24:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.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 o=s.toString()},9884:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(17932),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:inline-block}:host([hidden]){display:none}.popover::part(popup){border-radius:12px}.notice-dropdown-content{max-width:500px;border-radius:12px;display:flex;flex-direction:column;background-image:url(${p});background-size:cover}.header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px}.title{font-size:18px;font-weight:500;color:var(--text-color-title)}.close-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:#000}ul{list-style:none;margin:0;padding:4px}.content{flex:1;max-height:500px;overflow-y:auto}.link{display:block}.link::part(link){display:flex;align-items:start;gap:12px;padding:10px 16px}.link:hover::part(link):hover{background-color:rgba(0,0,0,0.04);border-radius:8px}.link:last-child{border-bottom:none}.icon-wrapper{position:relative;flex-shrink:0;width:18px;height:18px;padding:2px 0;display:flex;align-items:center;justify-content:center;font-size:18px}.message-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.primary-text{font-size:14px;font-weight:400;line-height:20px;color:var(--text-color-title)}.secondary-text{color:rgba(0,0,0,0.45)}.empty-state{padding:60px 20px;text-align:center;font-size:14px;color:var(--text-color-secondary)}.footer{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:9px 10px;box-shadow:0px -12px 16px -8px rgba(0,0,0,0.08);border-radius:0px 0px 12px 12px}.footer .footer-button::part(button){color:var(--text-color-secondary)}.footer .footer-button::part(button):hover{color:var(--text-color-default)!important}`,""]);const h=d.toString()},10335:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.goal-container{display:flex;flex-direction:column;gap:3px}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const o=s.toString()},11816:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.button-container{display:flex;gap:6px}.action{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.action::part(button){height:28px;font-size:13px;padding:5px 10px}.action.active::part(button){color:var(--elevo-color-brand);background-color:rgba(var(--elevo-color-brand-rgb-channel),0.04);border-color:#c9d7ff}.icon{font-size:16px;margin-right:4px}.remove{padding:1px;font-size:14px;margin-left:10px}",""]);const o=s.toString()},14763:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:block;color:#262626}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}.activity{position:relative;padding-left:27px}.activity + .activity{margin-top:20px}.main{display:flex;align-items:flex-start}.action{flex:1;min-width:0;display:flex;align-items:center;margin-left:6px;word-break:break-word}.time{color:#8c8c8c;margin-left:12px}.action,\n.time{padding:1px 0}.guide-line{position:absolute;left:8px;top:0;bottom:-20px;width:0;background-color:#d8d8d8}.guide-line::before{content:"";position:absolute;top:0;bottom:0;left:3.5px;width:1px;background-color:#d8d8d8}.guide-line::after{content:"";position:absolute;top:8px;left:0;width:8px;height:8px;border-radius:8px;background-color:#d8d8d8}.activity:first-child .guide-line::before{top:12px}.activity:last-child .guide-line::before{height:12px;bottom:auto}.activity:first-child:last-child .guide-line::before{height:0}.comment{position:relative;font-size:13px;color:#595959;background-color:#f3f3f3;border-radius:8px;padding:8px 12px;margin-top:10px}.comment::before{content:"";position:absolute;top:-6px;left:36px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #f3f3f3}.conversation{margin:0 7px 0 10px}.conversation::part(link){background:#f9f0ff;border-radius:3px;font-weight:500;font-size:12px;color:#aa64f5;display:flex;align-items:center;height:24px;padding:0 8px}.external-link-icon{color:#8c8c8c}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}',""]);const o=s.toString()},17932:(e,t,i)=>{e.exports=i.p+"images/391238ae.png"},18338:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.card{display:block}.card::part(link){display:flex;flex-direction:column;gap:12px;background:rgba(255,255,255,0.6);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.04);border-radius:12px;border:1px solid #fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:16px;color:#262626}.card:not(.clickable)::part(link){cursor:auto}.card::part(link):hover{background:#fff}.header,\n.body,\n.footer{width:100%}.header{display:flex;gap:12px}.heading{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.avatar{width:42px;height:42px;border-radius:50%;border:1px solid rgba(0,0,0,0.15);font-size:24px;display:flex;align-items:center;justify-content:center}.title{font-weight:500;font-size:16px;color:#262626;line-height:22px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.actions{margin:-8px -8px 0 0}.body{font-size:12px;color:rgba(0,0,0,0.45);line-height:17px;height:51px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.footer{align-items:center;justify-content:flex-end;gap:8px}.footer:not([hidden]){display:flex}",""]);const o=s.toString()},19428:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:flex;flex-direction:column;align-items:center;gap:26px}:host([hidden]){display:none}p{color:rgba(0,0,0,0.45);margin:0}",""]);const o=s.toString()},20124:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.tabs{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:32px;row-gap:10px;font-size:16px}.tabs a{color:rgba(38,38,38,0.65);cursor:pointer;padding:0 0 4px;display:block;position:relative}.tabs .active a{color:#262626;font-weight:500}.tabs .active a::after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background-color:currentColor;border-radius:2px}',""]);const o=s.toString()},23677:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}.link{display:block}.link::part(link){display:flex;align-items:center;padding:12px 24px;color:#262626;background:rgba(255,255,255,0.6);border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.item:not(:last-child){margin-bottom:4px}.link.actions-active::part(link),\n.link::part(link):hover{background:rgba(0,0,0,0.05);-webkit-backdrop-filter:none;backdrop-filter:none}.icon{font-size:20px;margin-right:8px}.title{font-weight:500;font-size:16px}.title,\n.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment{color:#1a7aff;margin-left:8px}.header{display:flex;align-items:center}.description{color:#595959;padding-left:28px;line-height:20px}.time{color:rgba(0,0,0,0.45);margin:0 16px}.main{flex:1;min-width:0}.operations{display:flex;align-items:center;justify-content:center;width:32px;height:32px}.link.actions-active .avatar,\n.link:hover .avatar,\n.link:hover .time,\n.link:not(:hover):not(.actions-active) .actions{display:none}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const o=s.toString()},29511:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container{position:relative}.bg{position:absolute;top:0;left:0;z-index:-1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header{display:flex;align-items:center;justify-content:space-between}.tabs{list-style:none;padding:0;margin:0;display:flex}.tabs .tab{padding:0 18px}.tabs a{display:block;padding:9px 10px;color:rgba(0,0,0,0.55);line-height:20px;cursor:pointer}.tabs .active a{font-weight:500;color:#262626}.body{padding:23px 27px;overflow-x:auto}.toolbar{display:flex;align-items:center;gap:8px}",""]);const o=s.toString()},31653:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:inline-block}:host([hidden]){display:none}img{vertical-align:middle}",""]);const o=s.toString()},31748:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}h2{font-weight:500;margin:0;font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:17px}.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}.sticky-tabs{margin:0 -24px;padding:0 24px 10px}.non-sticky-tabs{padding:0 0 10px}",""]);const o=s.toString()},40138:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:inline-block}:host([hidden]){display:none}*{box-sizing:border-box}.trigger{display:flex;align-items:center;font-size:14px;cursor:pointer;position:relative;padding:4px 12px;border-radius:15px;color:var(--elevo-color-brand)}.trigger:hover{background-color:rgba(37,64,255,0.06)}.trigger::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;padding:1px;background:linear-gradient(145deg,rgba(37,64,255,1),rgba(180,95,248,1));border-radius:15px;-webkit-mask:linear-gradient(#fff 0,#fff 0) content-box,linear-gradient(#fff 0,#fff 0);mask:linear-gradient(#fff 0,#fff 0) content-box,linear-gradient(#fff 0,#fff 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:xor;-webkit-mask:linear-gradient(#fff 0,#fff 0) content-box,linear-gradient(#fff 0,#fff 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor}.trigger .label{margin-right:0}.label{max-width:650px;margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown{max-width:500px;border-radius:4px;background:var(--antd-dropdown-menu-bg);box-shadow:var(--antd-box-shadow-base)}.dropdown-inner{padding:9px 4px}.search-container{padding:3px;border-bottom:1px solid rgba(0,0,0,0.08)}.search::part(affix-wrapper){box-shadow:none;border:none}eo-menu{border:0;padding:0;background:none;border-radius:0}eo-menu-item::part(menu-item){padding:5px 8px;line-height:22px;border-radius:var(--medius-border-radius)}eo-menu-item:not([disabled]):hover::part(menu-item){background-color:var(--left-sidebar-item-hover-bg)}.active::part(menu-item){font-weight:600;background-color:var(--left-sidebar-item-hover-bg)}.empty{display:flex;justify-content:center;align-items:center;color:var(--color-secondary-text)}',""]);const o=s.toString()},42873:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.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}",""]);const o=s.toString()},44492:(e,t,i)=>{e.exports=i.p+"images/60cd488d.svg"},46121:(e,t,i)=>{e.exports=i.p+"images/69cf3ae2.png"},46122:(e,t,i)=>{i.d(t,{A:()=>b});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(56791),i.b),d=new URL(i(88786),i.b),p=new URL(i(46121),i.b),h=s()(a()),u=l()(c),m=l()(d),g=l()(p);h.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.link{display:block;background:rgba(255,255,255,0.6);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}.purple{background-image:url(${u})}.green{background-image:url(${m})}.pink{background-image:url(${g})}.link::part(link){display:flex;flex-direction:column;gap:0;box-sizing:border-box;height:128px;padding:20px;position:relative}.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%;height:60px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;color:#18212f;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)}.button{display:none;position:absolute;bottom:12px;left:20px;right:20px;height:32px;background:rgba(0,0,0,0.04);border-radius:8px;align-items:center;justify-content:center;gap:4px;color:#262626}.button:hover{background:rgba(0,0,0,0.08)}.link:hover .button{display:flex}.link:hover .description{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.11) 51%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.11) 51%,rgba(0,0,0,0) 100%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 60%;mask-size:100% 60%}`,""]);const b=h.toString()},46342:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,".goal-item{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:12px 24px;background-color:rgba(255,255,255,0.6);border-radius:8px;-webkit-user-select:none;user-select:none;border:1px solid transparent}.goal-item:hover,.goal-item:has(.title:focus){background-color:rgba(0,0,0,0.05)}.goal-item:has(.title:focus) .end .operation{display:flex}.goal-item:hover:not(.does-not-exist) .end .operation{display:flex}.goal-item:has(.title:focus) .end .info{display:none}.goal-item:hover:not(.does-not-exist) .end .info{display:none}.goal-item.completed .serial-number,.goal-item.completed .title{color:#bfbfbf}.goal-item.active{background:rgba(37,64,255,0.1);border:1px solid #2540ff}.goal-item > *{-webkit-user-select:auto;user-select:auto}.goal-item .start,.goal-item .end{display:flex;align-items:center}.goal-item .start{flex:1;min-width:0;column-gap:16px;min-width:0}.goal-item .end{flex-shrink:0;column-gap:30px}.goal-item .end .operation{display:none;align-items:center;gap:8px}.goal-item .end .operation eo-button::part(button){height:28px}.goal-item .end .operation .new-chat::part(button){padding:5px 10px;font-size:13px}.goal-item .end .operation .append-child::part(button){padding:5px 8px;font-size:14px}.goal-item .end .info{display:inline-flex;align-items:center;column-gap:24px}.goal-item .serial-number{font-weight:400;color:var(--palette-gray-7);font-size:16px;overflow:visible}.goal-item .title{font-weight:500;padding:2px 4px;font-size:16px;color:var(--palette-gray-10);border:1px solid transparent;border-radius:8px;cursor:pointer;min-width:80px}.goal-item .title:hover{background-color:rgba(255,255,255,0.6);border:1px solid var(--palette-gray-5);cursor:text}.goal-item .title:focus{outline:none;background-color:rgba(255,255,255,0.6);border:1px solid var(--elevo-color-brand)}.goal-item .icon{border-radius:8px;padding:6px;position:relative;top:2px}.goal-item .icon:hover{background-color:rgba(0,0,0,0.04)}.goal-item .message{color:var(--palette-gray-7);display:inline-flex;align-items:center;column-gap:6px}.goal-item .message .count{font-weight:500;color:var(--palette-gray-10)}.goal-item:not(.editing) .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",""]);const o=s.toString()},47008:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(47336),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.root{color:#262626;background:url(${p}) no-repeat center bottom;background-size:100% 104px;padding:12px 12px 29px;margin:0 -12px}.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:inherit;font-size:14px;line-height:22px;height:120px}textarea::placeholder{color:rgba(0,0,0,0.4)}button:focus,\ntextarea:focus{outline:none}button{margin:0;padding:0;font:inherit;background:none;border:none}.actions-bar{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:6px}.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}.mention-overlay{position:absolute;border-radius:4px;pointer-events:none;background:rgba(38,45,65,0.1)}.buttons{display:flex;align-items:center;gap:12px}.btn-divider{width:1px;height:16px;background:rgba(0,0,0,0.1)}`,""]);const h=d.toString()},47336:(e,t,i)=>{e.exports=i.p+"images/25c20165.png"},47338:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:inline-block;--elevo-icon-button-icon-size:18px}:host([hidden]){display:none}:host,\neo-tooltip{vertical-align:middle}button{height:28px;padding:0 5px;font-size:14px;border-radius:8px;display:flex;align-items:center;justify-content:center;border:none;background:none;color:#333}.icon{font-size:var(--elevo-icon-button-icon-size)}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)}.has-slotted .icon{margin-right:8px}:host([variant="light"]) button{color:#595959}:host([variant="mini"]) button{height:24px;--elevo-icon-button-icon-size:16px;padding:0 4px;border-radius:4px}:host([variant="mini-light"]) button{color:#8c8c8c;height:20px;--elevo-icon-button-icon-size:14px;padding:0 3px;border-radius:4px}:host([variant="bordered"]) button{background:#ffffff;border-radius:8px;border:1px solid rgba(0,0,0,0.1);color:#595959;height:32px;--elevo-icon-button-icon-size:18px;padding:0 7px}button.has-slotted{padding:0 8px}:host([variant="bordered"]) button:not(:disabled):hover{background:rgba(0,0,0,0.04)}',""]);const o=s.toString()},49041:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(32360),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block;position:relative;width:100%;height:100%;color:#262626;padding:0 54px 48px;overflow:hidden;overflow-y:auto}:host::before{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:rgb(205,206,207);background-image:url(${p});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}:host([hidden]){display:none}:host([variant="form"])::before{background:#fff}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}:host([size="small"]) .container{max-width:1000px}:host([size="full"]) .container{max-width:100%}.sticky-header{margin:0 -24px;padding:17px 24px 30px}.non-sticky-header{padding:17px 0 30px}.header{display:flex;justify-content:space-between;align-items:center}nav{font-weight:500;font-size:20px;line-height:28px;display:flex;min-width:0;white-space:nowrap;flex-wrap:wrap}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}@media (max-width: 719px){:host{padding-left:24px;padding-right:24px}nav{margin-left:40px}}`,""]);const h=d.toString()},54022:(e,t,i)=>{var n,a=i(74635),r=i(70918),s=i(26902),o=i(5536),l=i(86121),c=i(70829),d=i(62740),p=i(18769),h=i.n(p),u=i(90870),m=i(30981),g=(i(34419),i(52616)),b=i(2901),A=i(24863);let v,f,E,x,k,w,y,T,S,N,C,M,_,R,W,I,D,L,O,z,P,B,U,H,F,G,V,j,K,$,Y,q,X,J,Q,Z,ee,te,ie,ne,ae,re,se,oe,le,ce,de,pe,he,ue,me,ge,be,Ae,ve,fe,Ee,xe,ke,we,ye,Te,Se,Ne,Ce,Me;(0,g.initializeI18n)(b.NS,b.I);const{defineElement:_e,property:Re,event:We,method:Ie}=(0,u.createDecorators)(),De=(0,p.forwardRef)(A.B);let Le;var Oe=new WeakMap,ze=new WeakMap,Pe=new WeakMap,Be=new WeakMap,Ue=new WeakMap,He=new WeakMap,Fe=new WeakMap,Ge=new WeakMap,Ve=new WeakMap,je=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Ye=new WeakMap,qe=new WeakMap,Xe=new WeakMap,Je=new WeakMap,Qe=new WeakMap,Ze=new WeakMap,et=new WeakMap,tt=new WeakMap,it=new WeakMap,nt=new WeakSet,at=new WeakMap,rt=new WeakMap,st=new WeakMap,ot=new WeakMap,lt=new WeakMap,ct=new WeakMap,dt=new WeakMap,pt=new WeakMap,ht=new WeakMap,ut=new WeakMap,mt=new WeakMap,gt=new WeakMap;class bt extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,nt),(0,r.A)(this,Oe,(v(this),E(this))),(0,r.A)(this,ze,(x(this),k(this))),(0,r.A)(this,Pe,(w(this),y(this))),(0,r.A)(this,Be,(T(this),S(this))),(0,r.A)(this,Ue,(N(this),C(this))),(0,r.A)(this,He,(M(this),_(this))),(0,r.A)(this,Fe,(R(this),W(this))),(0,r.A)(this,Ge,(I(this),D(this))),(0,r.A)(this,Ve,(L(this),O(this))),(0,r.A)(this,je,(z(this),P(this))),(0,r.A)(this,Ke,(B(this),U(this))),(0,r.A)(this,$e,(H(this),F(this))),(0,r.A)(this,Ye,(G(this),V(this))),(0,r.A)(this,qe,(j(this),K(this))),(0,r.A)(this,Xe,($(this),Y(this))),(0,r.A)(this,Je,(q(this),X(this))),(0,r.A)(this,Qe,(J(this),Q(this))),(0,r.A)(this,Ze,(Z(this),ee(this))),(0,r.A)(this,et,(te(this),ie(this))),(0,r.A)(this,tt,(ne(this),ae(this))),(0,r.A)(this,it,(re(this),se(this))),(0,r.A)(this,at,(ce(this),()=>{(0,o.A)(nt,this,oe).emit()})),(0,r.A)(this,rt,de(this)),(0,r.A)(this,st,(ue(this),()=>{(0,o.A)(nt,this,pe).emit()})),(0,r.A)(this,ot,me(this)),(0,r.A)(this,lt,(Ae(this),e=>{(0,o.A)(nt,this,ge).emit(e)})),(0,r.A)(this,ct,ve(this)),(0,r.A)(this,dt,(xe(this),e=>{(0,o.A)(nt,this,fe).emit(e)})),(0,r.A)(this,pt,ke(this)),(0,r.A)(this,ht,(Te(this),()=>{(0,o.A)(nt,this,we).emit("chat")})),(0,r.A)(this,ut,Se(this)),(0,r.A)(this,mt,(Me(this),e=>{(0,o.A)(nt,this,Ne).emit(e)})),(0,r.A)(this,gt,(0,p.createRef)())}get conversationId(){return(0,c.A)(Oe,this)}set conversationId(e){(0,l.A)(Oe,this,e)}get initialRequest(){return(0,c.A)(ze,this)}set initialRequest(e){(0,l.A)(ze,this,e)}get replay(){return(0,c.A)(Pe,this)}set replay(e){(0,l.A)(Pe,this,e)}get replayDelay(){return(0,c.A)(Be,this)}set replayDelay(e){(0,l.A)(Be,this,e)}get supports(){return(0,c.A)(Ue,this)}set supports(e){(0,l.A)(Ue,this,e)}get showHiddenJobs(){return(0,c.A)(He,this)}set showHiddenJobs(e){(0,l.A)(He,this,e)}get showHumanActions(){return(0,c.A)(Fe,this)}set showHumanActions(e){(0,l.A)(Fe,this,e)}get showFeedback(){return(0,c.A)(Ge,this)}set showFeedback(e){(0,l.A)(Ge,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(Ve,this)}set showFeedbackAfterFailed(e){(0,l.A)(Ve,this,e)}get showFeedbackOnView(){return(0,c.A)(je,this)}set showFeedbackOnView(e){(0,l.A)(je,this,e)}get showUiSwitch(){return(0,c.A)(Ke,this)}set showUiSwitch(e){(0,l.A)(Ke,this,e)}get hideMermaid(){return(0,c.A)($e,this)}set hideMermaid(e){(0,l.A)($e,this,e)}get showJsxEditor(){return(0,c.A)(Ye,this)}set showJsxEditor(e){(0,l.A)(Ye,this,e)}get previewUrlTemplate(){return(0,c.A)(qe,this)}set previewUrlTemplate(e){(0,l.A)(qe,this,e)}get showCases(){return(0,c.A)(Xe,this)}set showCases(e){(0,l.A)(Xe,this,e)}get exampleProjects(){return(0,c.A)(Je,this)}set exampleProjects(e){(0,l.A)(Je,this,e)}get tryItOutUrl(){return(0,c.A)(Qe,this)}set tryItOutUrl(e){(0,l.A)(Qe,this,e)}get separateInstructions(){return(0,c.A)(Ze,this)}set separateInstructions(e){(0,l.A)(Ze,this,e)}get uploadOptions(){return(0,c.A)(et,this)}set uploadOptions(e){(0,l.A)(et,this,e)}get toolbarBrick(){return(0,c.A)(tt,this)}set toolbarBrick(e){(0,l.A)(tt,this,e)}resumed(){var e,t;null===(e=(0,c.A)(gt,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(gt,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(gt,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(gt,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){return h().createElement(De,{conversationId:this.conversationId,initialRequest:this.initialRequest,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showHiddenJobs:this.showHiddenJobs,showHumanActions:this.showHumanActions,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showUiSwitch:this.showUiSwitch,showFeedbackOnView:this.showFeedbackOnView,toolbarBrick:this.toolbarBrick,showJsxEditor:this.showJsxEditor,previewUrlTemplate:this.previewUrlTemplate,showCases:this.showCases,exampleProjects:this.exampleProjects,tryItOutUrl:this.tryItOutUrl,separateInstructions:this.separateInstructions,uploadOptions:this.uploadOptions,onShare:(0,c.A)(at,this),onTerminate:(0,c.A)(st,this),onSubmitFeedback:(0,c.A)(lt,this),onSwitchToChat:(0,c.A)(ht,this),onFeedbackOnView:(0,c.A)(dt,this),onDetailChange:(0,c.A)(mt,this),ref:(0,c.A)(gt,this)})}}n=bt,({e:[E,x,k,w,y,T,S,N,C,M,_,R,W,I,D,L,O,z,P,B,U,H,F,G,V,j,K,$,Y,q,X,J,Q,Z,ee,te,ie,ne,ae,re,se,oe,le,ce,de,pe,he,ue,me,ge,be,Ae,ve,fe,Ee,xe,ke,we,ye,Te,Se,Ne,Ce,Me,v],c:[Le,f]}=(0,d.A)(n,[_e("ai-portal.cruise-canvas",{shadowOptions:!1})],[[Re(),1,"conversationId"],[Re({attribute:!1,render:!1}),1,"initialRequest"],[Re({type:Boolean,render:!1}),1,"replay"],[Re({type:Number,render:!1}),1,"replayDelay"],[Re({attribute:!1}),1,"supports"],[Re({type:Boolean}),1,"showHiddenJobs"],[Re({type:Boolean}),1,"showHumanActions"],[Re({type:Boolean}),1,"showFeedback"],[Re({type:Boolean}),1,"showFeedbackAfterFailed"],[Re({type:Boolean}),1,"showFeedbackOnView"],[Re({type:Boolean}),1,"showUiSwitch"],[Re({type:Boolean,render:!1}),1,"hideMermaid"],[Re({type:Boolean}),1,"showJsxEditor"],[Re(),1,"previewUrlTemplate"],[Re({attribute:!1}),1,"showCases"],[Re({attribute:!1}),1,"exampleProjects"],[Re(),1,"tryItOutUrl"],[Re({type:Boolean}),1,"separateInstructions"],[Re({attribute:!1}),1,"uploadOptions"],[Re({attribute:!1}),1,"toolbarBrick"],[We({type:"share"}),1,"shareEvent",e=>(0,c.A)(it,e),(e,t)=>(0,l.A)(it,e,t)],[We({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(rt,e),(e,t)=>(0,l.A)(rt,e,t)],[We({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(ot,e),(e,t)=>(0,l.A)(ot,e,t)],[We({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(ct,e),(e,t)=>(0,l.A)(ct,e,t)],[We({type:"ui.switch"}),1,"switch",e=>(0,c.A)(pt,e),(e,t)=>(0,l.A)(pt,e,t)],[We({type:"detail.change"}),1,"detailChange",e=>(0,c.A)(ut,e),(e,t)=>(0,l.A)(ut,e,t)],[Ie(),2,"resumed"],[Ie(),2,"feedbackSubmitDone"],[Ie(),2,"feedbackSubmitFailed"],[Ie(),2,"feedbackOnViewDone"]],0,(e=>gt.has((0,s.A)(e))),m.ReactNextElement)),f();var At=i(24586),vt=i(59435),ft=i(80592);let Et,xt;function kt(e,t){Et||(Et=document.createElement("div"),Et.setAttribute("tab-index","-1"),Et.setAttribute("aria-hidden","true"),document.body.appendChild(Et)),Et.setAttribute("style",(0,ft.w)(e)),Et.textContent=e.value.slice(0,t);const i=document.createElement("span");i.textContent="",Et.appendChild(i);const n=i.getBoundingClientRect();return i.remove(),{top:n.top,left:n.left}}function wt(e,t,i){xt||(xt=document.createElement("div"),xt.setAttribute("tab-index","-1"),xt.setAttribute("aria-hidden","true"),document.body.appendChild(xt)),xt.setAttribute("style",(0,ft.w)(e)),xt.textContent=t;const n=document.createElement("span");n.textContent=i,xt.appendChild(n);const a=n.getBoundingClientRect();if(n.remove(),i.length<=1)return[a];const r=i[0],s=document.createElement("span");s.textContent=r,xt.appendChild(s);const o=s.getBoundingClientRect();s.remove(),xt.textContent=`${t}${i.slice(0,-1)}`;const l=i[i.length-1],c=document.createElement("span");c.textContent=l,xt.appendChild(c);const d=c.getBoundingClientRect();if(c.remove(),o.top===d.top)return[a];const p=[];p.push(new DOMRect(o.left,o.top,a.right-o.left,o.bottom-o.top));const h=d.top-o.bottom;return h>=10&&p.push(new DOMRect(a.left,o.bottom,a.width,h)),p.push(new DOMRect(a.left,d.top,d.right-a.left,d.bottom-d.top)),p}var yt=i(92879);let Tt=function(e){return e.ASK_ANY_THING="ASK_ANYTHING",e.COMMON_TASKS="COMMON_TASKS",e}({});const St="bricks/ai-portal/chat-box",Nt={en:{[Tt.ASK_ANY_THING]:"Ask anything",[Tt.COMMON_TASKS]:"Common tasks"},zh:{[Tt.ASK_ANY_THING]:"询问任何问题",[Tt.COMMON_TASKS]:"常用任务"}},Ct=g.i18n.getFixedT(null,St);var Mt=i(47008),_t=i(77019);let Rt=null;function Wt(e){Rt=e}function It(){return Rt}customElements.define("ai-portal.set-chat-command",(0,_t.createProviderClass)(Wt));var Dt=i(57227),Lt=i(45387),Ot=i(51020);const zt=(0,m.wrapBrick)("eo-icon"),Pt=(0,m.wrapBrick)("eo-actions",{onActionClick:"action.click",onItemDragEnd:"item.drag.end",onItemDragStart:"item.drag.start"});(0,m.wrapBrick)("ai-portal.icon-button");var Bt,Ut=i(45889),Ht=i(21020);let Ft,Gt,Vt,jt,Kt,$t,Yt,qt,Xt,Jt,Qt,Zt,ei,ti,ii,ni,ai,ri,si,oi,li,ci,di,pi,hi,ui;(0,g.initializeI18n)(St,Nt);const{defineElement:mi,property:gi,event:bi,method:Ai}=(0,u.createDecorators)(),vi=(0,p.forwardRef)(Di);let fi;var Ei=new WeakMap,xi=new WeakMap,ki=new WeakMap,wi=new WeakMap,yi=new WeakMap,Ti=new WeakMap,Si=new WeakMap,Ni=new WeakSet,Ci=new WeakMap,Mi=new WeakMap,_i=new WeakMap,Ri=new WeakMap,Wi=new WeakMap;class Ii extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Ni),(0,At.A)(this,"ref",(Ft(this),(0,p.createRef)())),(0,r.A)(this,Ei,Vt(this)),(0,r.A)(this,xi,(jt(this),Kt(this))),(0,r.A)(this,ki,($t(this),Yt(this))),(0,r.A)(this,wi,(qt(this),Xt(this))),(0,r.A)(this,yi,(Jt(this),Qt(this))),(0,r.A)(this,Ti,(Zt(this),ei(this))),(0,r.A)(this,Si,(ti(this),ii(this))),(0,r.A)(this,Ci,(ri(this),e=>{(0,o.A)(Ni,this,ni).emit(e)})),(0,r.A)(this,Mi,si(this)),(0,r.A)(this,_i,(ci(this),e=>{(0,o.A)(Ni,this,oi).emit(e)})),(0,r.A)(this,Ri,di(this)),(0,r.A)(this,Wi,(ui(this),e=>{(0,o.A)(Ni,this,pi).emit(e)}))}get disabled(){return(0,c.A)(Ei,this)}set disabled(e){(0,l.A)(Ei,this,e)}get placeholder(){return(0,c.A)(xi,this)}set placeholder(e){(0,l.A)(xi,this,e)}get autoFocus(){return(0,c.A)(ki,this)}set autoFocus(e){(0,l.A)(ki,this,e)}get aiEmployees(){return(0,c.A)(wi,this)}set aiEmployees(e){(0,l.A)(wi,this,e)}get commands(){return(0,c.A)(yi,this)}set commands(e){(0,l.A)(yi,this,e)}get uploadOptions(){return(0,c.A)(Ti,this)}set uploadOptions(e){(0,l.A)(Ti,this,e)}setValue(e){var t;null===(t=this.ref.current)||void 0===t||t.setValue(e)}getValue(){var e;return null===(e=this.ref.current)||void 0===e?void 0:e.getValue()}focusOnInput(){var e;return null===(e=this.ref.current)||void 0===e?void 0:e.focusOnInput()}render(){return h().createElement(vi,{disabled:this.disabled,placeholder:this.placeholder,autoFocus:this.autoFocus,aiEmployees:this.aiEmployees,commands:this.commands,uploadOptions:this.uploadOptions,onMessageSubmit:(0,c.A)(Ci,this),onChatSubmit:(0,c.A)(_i,this),onCommandSelect:(0,c.A)(Wi,this),ref:this.ref})}}function Di(e,t){let{disabled:i,placeholder:n,autoFocus:a,aiEmployees:r,commands:s,uploadOptions:o,onMessageSubmit:l,onChatSubmit:c,onCommandSelect:d}=e;const u=(0,p.useRef)(null),m=(0,p.useRef)(null),[g,b]=(0,p.useState)(""),A=(0,p.useRef)(""),[v,f]=(0,p.useState)(null),[E,x]=(0,p.useState)(null),[k,w]=(0,p.useState)(""),[y,T]=(0,p.useState)(0),[S,N]=(0,p.useState)([0]),[C,M]=(0,p.useState)(null),[_,R]=(0,p.useState)(null),[W,I]=(0,p.useState)(null),[D,L]=(0,p.useState)(null),[O,z]=(0,p.useState)(""),P=(0,p.useRef)(null),B=null==o?void 0:o.enabled,U=null==o?void 0:o.accept,{files:H,resetFiles:F,appendFiles:G,removeFile:V,hasFiles:j,allFilesDone:K,fileInfos:$,exceeded:Y,paste:q}=(0,Ut.O)(o);(0,p.useEffect)((()=>{B||F()}),[B,F]),(0,p.useEffect)((()=>{const e=window.__elevo_try_it_out;e&&delete window.__elevo_try_it_out,"string"==typeof(null==e?void 0:e.content)&&(A.current=e.content,b(e.content))}),[]),(0,p.useImperativeHandle)(t,(()=>({setValue:e=>{A.current=e,b(e)},getValue:()=>A.current,focusOnInput:()=>{var e;null===(e=m.current)||void 0===e||e.focus()}})));const X=(0,p.useCallback)((e=>{const t=e.slice(O.length||k.length);l(t),c({content:t,files:$,cmd:C,aiEmployeeId:_})}),[O.length,k.length,C,$,_,c,l]),J=(0,p.useCallback)((e=>{e.currentTarget.value&&K&&X(e.currentTarget.value)}),[X,K]),Q=(0,p.useCallback)((e=>{const{value:t,selectionStart:i,selectionEnd:n}=e.target;if(A.current=t,b(t),null!==i&&i===n&&null!=r&&r.length){const n=t.slice(0,i);if(n.startsWith("@")){const t=n.slice(1).toLowerCase(),a=r.filter((e=>e.employeeId.toLowerCase().includes(t)||e.name.toLowerCase().includes(t))).slice(0,10);if(a.length>0){const t=kt(e.currentTarget,i),n=e.currentTarget.getBoundingClientRect();return f({style:{left:t.left+10+n.left,top:t.top+22+n.top,position:"absolute",zIndex:1},range:{start:0,end:i},actions:a.map((e=>({key:e.employeeId,text:e.name,data:e})))}),void T(0)}}}if(f(null),null!==i&&i===n&&null!=s&&s.length){const n=t.slice(0,i);if(n.startsWith("/")){const t=n.slice(1).toLowerCase(),a=s.filter((e=>e.label.toLowerCase().includes(t))).slice(0,10);if(a.length>0){const t=kt(e.currentTarget,i),n=e.currentTarget.getBoundingClientRect();return I({style:{left:t.left+10+n.left,top:t.top+22+n.top,position:"absolute",zIndex:1},range:{start:0,end:i},actions:a.map((e=>({key:e.value,text:e.label,data:e,ancestors:[],items:Li(e,[]),payload:e.payload})))}),void N([0])}}}I(null)}),[r,s]);(0,p.useEffect)((()=>{k&&!g.includes(k)&&(w(""),R(null))}),[k,g]),(0,p.useEffect)((()=>{O&&!g.includes(O)&&(z(""),M(null),d(null))}),[O,d,g]);const Z=(0,p.useCallback)((()=>{X(A.current)}),[X]);(0,p.useEffect)((()=>{a&&Promise.resolve().then((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}))}),[]),(0,p.useEffect)((()=>{var e;const t=null===(e=m.current)||void 0===e?void 0:e.element;if(!k||!t)return void x(null);const i=wt(t,"",k.slice(0,-1));x(i.map((e=>({left:e.left-1,top:e.top-1,width:e.width+4,height:e.height+4}))))}),[k,j]),(0,p.useEffect)((()=>{var e;const t=null===(e=m.current)||void 0===e?void 0:e.element;if(!O||!t)return void L(null);const i=wt(t,"",O.slice(0,-1));L(i.map((e=>({left:e.left-1,top:e.top-1,width:e.width+4,height:e.height+4}))))}),[O,j]);const ee=(0,p.useMemo)((()=>{const e=It();return e&&Wt(null),e}),[]);(0,p.useEffect)((()=>{ee&&(M(ee.payload),d(ee.payload))}),[ee,d]),(0,p.useEffect)((()=>{var e;const t=null===(e=m.current)||void 0===e?void 0:e.element;if(ee&&t){const e=`/${ee.command} `,i=wt(t,"",e.slice(0,-1));L(i.map((e=>({left:e.left-1,top:e.top-1,width:e.width+4,height:e.height+4})))),A.current=e,P.current={start:e.length,end:e.length},b(e),z(e)}}),[ee]);const te=(0,p.useCallback)((e=>{var t;const i=`@${e.text} `,n=`${A.current.slice(0,v.range.start)}${i}`,a=`${n}${A.current.slice(v.range.end)}`;A.current=a,P.current={start:n.length,end:n.length},b(a),w(i),f(null),R(e.data.employeeId),null===(t=m.current)||void 0===t||t.focus()}),[v]),ie=(0,p.useCallback)((e=>{var t;const i=`/${[...e.ancestors.map((e=>e.label)),e.text].join(": ")} `,n=`${A.current.slice(0,W.range.start)}${i}`,a=`${n}${A.current.slice(W.range.end)}`;A.current=a,P.current={start:n.length,end:n.length},b(a),z(i),I(null),M(e.payload),d(e.payload),null===(t=m.current)||void 0===t||t.focus()}),[W,d]),ne=(0,p.useCallback)((e=>{switch(e.key){case"Escape":if(!v&&!W)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),f(null),I(null),!1;case"ArrowUp":case"ArrowDown":if(!v&&!W)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),v?T((t=>{const i=t+("ArrowUp"===e.key?-1:1),n=v.actions.length;return(n+i)%n})):N((t=>{let i=0,{actions:n}=W;const a=[];for(;i<t.length-1;){const e=n[t[i]];if(!Oi(e))break;n=e.items,a.push(t[i]),i+=1}const r=t[i]+("ArrowUp"===e.key?-1:1),s=n.length,o=(s+r)%s;return a.push(o),a})),!1;case"Enter":case"ArrowLeft":case"ArrowRight":if(v){if("Enter"===e.key)return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),te(v.actions[y]),!1}else if(W){if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),"ArrowLeft"===e.key)return S.length>1&&N((e=>e.slice(0,-1))),!1;let t,i=0,{actions:n}=W;for(;i<S.length&&(t=n[S[i]],Oi(t));)n=t.items,i+=1;return t&&(Oi(t)?N((e=>[...e,0])):"Enter"===e.key&&ie(t)),!1}break;case"Delete":case"Backspace":{const t=[{textLength:k.length,prefixLength:0},{textLength:O.length,prefixLength:0}];for(const{textLength:i,prefixLength:n}of t)if(i){let{selectionStart:t,selectionEnd:a}=e.currentTarget;t===a&&("Backspace"===e.key?t-=1:a+=1);const r=n,s=r+i;if(t<s&&a>r){const i=Math.min(t,r),n=Math.max(a,s),o=`${A.current.slice(0,i)}${A.current.slice(n)}`;return A.current=o,P.current={start:i,end:i},b(o),e.preventDefault(),e.stopPropagation(),!1}}break}}}),[y,S,W,O.length,te,ie,v,k.length]),ae=(0,p.useMemo)((()=>{if(!W)return[];let e=W.actions;const t=[];for(let i=0;i<S.length;i+=1){const n=e[S[i]];if(!n)break;if(!Oi(n)){t.push(n.key);break}t.push(n.key),e=n.items}return t}),[S,W]),re=(0,p.useRef)(null),se=(0,p.useCallback)((e=>{var t;G(e),null===(t=m.current)||void 0===t||t.focus()}),[G]),oe=!g||!K||!!k&&g.length<=k.length||!!O&&g.length<=O.length;return h().createElement(h().Fragment,null,h().createElement("div",{className:"root"},h().createElement("div",{className:"container",ref:u},h().createElement(yt.e,{containerRef:u,ref:m,value:g,minRows:58/22,paddingSize:j?144:60,autoResize:!0,disabled:i,placeholder:null!=n?n:Ct(Tt.ASK_ANY_THING),submitWhen:"enter-without-shift",desiredSelectionRef:P,onSubmit:J,onChange:Q,onKeyDown:ne,onPaste:q,style:{paddingTop:j?94:10}}),j&&h().createElement(Lt.C,{files:H,onRemove:(e,t)=>{V(e),null==t||t.abort()},onAdd:()=>{var e;null===(e=re.current)||void 0===e||e.requestUpload()}}),h().createElement("div",{className:"actions-bar"},h().createElement("div",null,h().createElement("slot",{name:"actions"})),h().createElement("div",{className:"buttons"},B?h().createElement(h().Fragment,null,h().createElement(Dt.s,{ref:re,accept:U,disabled:Y,onChange:e=>{var t;G(e),null===(t=m.current)||void 0===t||t.focus()}}),h().createElement("div",{className:"btn-divider"})):null,h().createElement("button",{className:"btn-send",disabled:oe,onClick:Z},h().createElement(zt,{lib:"fa",prefix:"fas",icon:"arrow-up"})))),null==E?void 0:E.map(((e,t)=>h().createElement("div",{key:t,className:"mention-overlay",style:e}))),null==D?void 0:D.map(((e,t)=>h().createElement("div",{key:t,className:"mention-overlay",style:e}))),v&&(0,vt.createPortal)(h().createElement(Pt,{actions:v.actions,style:v.style,activeKeys:[v.actions[y].key],onActionClick:e=>te(e.detail)}),document.body),W&&(0,vt.createPortal)(h().createElement(Pt,{actions:W.actions,style:W.style,activeKeys:ae,onActionClick:e=>ie(e.detail)}),document.body))),h().createElement(Ht.A,{disabled:!B||Y,uploadOptions:o,onFilesDropped:se}))}function Li(e,t){var i;return null===(i=e.options)||void 0===i?void 0:i.map((i=>{const n=[...t,e];return{key:i.value,text:i.label,data:i,ancestors:n,items:Li(i,n),payload:i.payload}}))}function Oi(e){var t;return!(null===(t=e.items)||void 0===t||!t.length)}Bt=Ii,({e:[Vt,jt,Kt,$t,Yt,qt,Xt,Jt,Qt,Zt,ei,ti,ii,ni,ai,ri,si,oi,li,ci,di,pi,hi,ui,Ft],c:[fi,Gt]}=(0,d.A)(Bt,[mi("ai-portal.chat-box",{styleTexts:[Mt.A,Ot.A],shadowOptions:{delegatesFocus:!0}})],[[gi({type:Boolean}),1,"disabled"],[gi(),1,"placeholder"],[gi({type:Boolean}),1,"autoFocus"],[gi({attribute:!1}),1,"aiEmployees"],[gi({attribute:!1}),1,"commands"],[gi({attribute:!1}),1,"uploadOptions"],[bi({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(Si,e),(e,t)=>(0,l.A)(Si,e,t)],[bi({type:"chat.submit"}),1,"chatSubmit",e=>(0,c.A)(Mi,e),(e,t)=>(0,l.A)(Mi,e,t)],[bi({type:"command.select"}),1,"commandSelect",e=>(0,c.A)(Ri,e),(e,t)=>(0,l.A)(Ri,e,t)],[Ai(),2,"setValue"],[Ai(),2,"getValue"],[Ai(),2,"focusOnInput"]],0,(e=>Wi.has((0,s.A)(e))),m.ReactNextElement)),Gt();var zi,Pi=i(82165);let Bi,Ui,Hi;const{defineElement:Fi,property:Gi}=(0,u.createDecorators)();let Vi;var ji=new WeakMap;class Ki extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,ji,Ui(this)),Hi(this)}get sticky(){return(0,c.A)(ji,this)}set sticky(e){(0,l.A)(ji,this,e)}render(){return h().createElement($i,null)}}function $i(){return h().createElement("slot",null)}zi=Ki,({e:[Ui,Hi],c:[Vi,Bi]}=(0,d.A)(zi,[Fi("ai-portal.home-container",{styleTexts:[Pi.A]})],[[Gi({type:Boolean,render:!1}),1,"sticky"]],0,void 0,m.ReactNextElement)),Bi();var Yi,qi=i(89575),Xi=i(24);let Ji,Qi,Zi,en,tn,nn,an,rn,sn,on,ln,cn,dn,pn,hn,un,mn,gn,bn,An,vn;const fn=(0,m.wrapBrick)("eo-mini-line-chart"),{defineElement:En,property:xn}=(0,u.createDecorators)();let kn;var wn=new WeakMap,yn=new WeakMap,Tn=new WeakMap,Sn=new WeakMap,Nn=new WeakMap,Cn=new WeakMap,Mn=new WeakMap,_n=new WeakMap,Rn=new WeakMap,Wn=new WeakMap;class In extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,wn,Qi(this)),(0,r.A)(this,yn,(Zi(this),en(this))),(0,r.A)(this,Tn,(tn(this),nn(this))),(0,r.A)(this,Sn,(an(this),rn(this))),(0,r.A)(this,Nn,(sn(this),on(this))),(0,r.A)(this,Cn,(ln(this),cn(this))),(0,r.A)(this,Mn,(dn(this),pn(this))),(0,r.A)(this,_n,(hn(this),un(this))),(0,r.A)(this,Rn,(mn(this),gn(this))),(0,r.A)(this,Wn,(bn(this),An(this))),vn(this)}get label(){return(0,c.A)(wn,this)}set label(e){(0,l.A)(wn,this,e)}get value(){return(0,c.A)(yn,this)}set value(e){(0,l.A)(yn,this,e)}get size(){return(0,c.A)(Tn,this)}set size(e){(0,l.A)(Tn,this,e)}get lineColor(){return(0,c.A)(Sn,this)}set lineColor(e){(0,l.A)(Sn,this,e)}get showArea(){return(0,c.A)(Nn,this)}set showArea(e){(0,l.A)(Nn,this,e)}get min(){return(0,c.A)(Cn,this)}set min(e){(0,l.A)(Cn,this,e)}get max(){return(0,c.A)(Mn,this)}set max(e){(0,l.A)(Mn,this,e)}get xField(){return(0,c.A)(_n,this)}set xField(e){(0,l.A)(_n,this,e)}get yField(){return(0,c.A)(Rn,this)}set yField(e){(0,l.A)(Rn,this,e)}get data(){return(0,c.A)(Wn,this)}set data(e){(0,l.A)(Wn,this,e)}render(){return h().createElement(Dn,{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 Dn(e){let{label:t,value:i,size:n,...a}=e;return"small"===n?h().createElement("div",{className:"container"},h().createElement("div",{className:"label-and-stat"},h().createElement("div",{className:"label"},t),h().createElement("div",{className:"stat"},i)),h().createElement("div",{className:"chart"},h().createElement(fn,(0,qi.A)({},a,{lineWidth:1.5,width:"auto",height:"55"})))):h().createElement("div",{className:"container"},h().createElement("div",{className:"label"},t),h().createElement("div",{className:"stat-and-chart"},h().createElement("div",{className:"chart"},h().createElement(fn,(0,qi.A)({},a,{lineWidth:2,width:"auto",height:"92"}))),h().createElement("div",{className:"stat"},i)))}Yi=In,({e:[Qi,Zi,en,tn,nn,an,rn,sn,on,ln,cn,dn,pn,hn,un,mn,gn,bn,An,vn],c:[kn,Ji]}=(0,d.A)(Yi,[En("ai-portal.stat-with-mini-chart",{styleTexts:[Xi.A]})],[[xn(),1,"label"],[xn(),1,"value"],[xn(),1,"size"],[xn(),1,"lineColor"],[xn({type:Boolean}),1,"showArea"],[xn({type:Number}),1,"min"],[xn({type:Number}),1,"max"],[xn(),1,"xField"],[xn(),1,"yField"],[xn({attribute:!1}),1,"data"]],0,void 0,m.ReactNextElement)),Ji();var Ln,On=i(30348),zn=i(53373),Pn=i.n(zn),Bn=i(5813),Un=i(61408),Hn=i(70579),Fn=i(75197),Gn=i(94504);let Vn,jn,Kn,$n,Yn,qn,Xn,Jn,Qn,Zn,ea,ta,ia,na,aa,ra,sa,oa,la,ca,da,pa,ha,ua,ma,ga,ba,Aa,va,fa,Ea,xa,ka,wa,ya,Ta,Sa,Na,Ca,Ma,_a,Ra;(0,g.initializeI18n)(Bn.NS,Bn.I);const Wa={lib:"easyops",icon:"sidebar"},Ia=(0,m.wrapBrick)("ai-portal.elevo-logo"),{defineElement:Da,property:La,event:Oa,method:za}=(0,u.createDecorators)(),Pa=(0,p.forwardRef)(cr);let Ba;var Ua=new WeakMap,Ha=new WeakMap,Fa=new WeakMap,Ga=new WeakMap,Va=new WeakMap,ja=new WeakMap,Ka=new WeakMap,$a=new WeakMap,Ya=new WeakMap,qa=new WeakMap,Xa=new WeakMap,Ja=new WeakMap,Qa=new WeakMap,Za=new WeakSet,er=new WeakMap,tr=new WeakMap,ir=new WeakMap,nr=new WeakMap,ar=new WeakMap,rr=new WeakMap,sr=new WeakMap,or=new WeakMap;class lr extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Za),(0,r.A)(this,Ua,(Vn(this),Kn(this))),(0,r.A)(this,Ha,($n(this),Yn(this))),(0,r.A)(this,Fa,(qn(this),Xn(this))),(0,r.A)(this,Ga,(Jn(this),Qn(this))),(0,r.A)(this,Va,(Zn(this),ea(this))),(0,r.A)(this,ja,(ta(this),ia(this))),(0,r.A)(this,Ka,(na(this),aa(this))),(0,r.A)(this,$a,(ra(this),sa(this))),(0,r.A)(this,Ya,(oa(this),la(this))),(0,r.A)(this,qa,(ca(this),da(this))),(0,r.A)(this,Xa,(pa(this),ha(this,!0))),(0,r.A)(this,Ja,(ua(this),ma(this))),(0,r.A)(this,Qa,(ga(this),ba(this))),(0,r.A)(this,er,(fa(this),()=>{(0,o.A)(Za,this,Aa).emit()})),(0,r.A)(this,tr,Ea(this)),(0,r.A)(this,ir,(wa(this),e=>{(0,o.A)(Za,this,xa).emit(e)})),(0,r.A)(this,nr,ya(this)),(0,r.A)(this,ar,(Na(this),e=>{(0,o.A)(Za,this,Ta).emit(e)})),(0,r.A)(this,rr,Ca(this)),(0,r.A)(this,sr,(Ra(this),()=>{(0,o.A)(Za,this,Ma).emit()})),(0,r.A)(this,or,(0,p.createRef)())}get userInstanceId(){return(0,c.A)(Ua,this)}set userInstanceId(e){(0,l.A)(Ua,this,e)}get behavior(){return(0,c.A)(Ha,this)}set behavior(e){(0,l.A)(Ha,this,e)}get logoUrl(){return(0,c.A)(Fa,this)}set logoUrl(e){(0,l.A)(Fa,this,e)}get newChatUrl(){return(0,c.A)(Ga,this)}set newChatUrl(e){(0,l.A)(Ga,this,e)}get newChatLinkWhenCollapsed(){return(0,c.A)(Va,this)}set newChatLinkWhenCollapsed(e){(0,l.A)(Va,this,e)}get historyUrlTemplate(){return(0,c.A)(ja,this)}set historyUrlTemplate(e){(0,l.A)(ja,this,e)}get historyActions(){return(0,c.A)(Ka,this)}set historyActions(e){(0,l.A)(Ka,this,e)}get projectUrlTemplate(){return(0,c.A)($a,this)}set projectUrlTemplate(e){(0,l.A)($a,this,e)}get projectActions(){return(0,c.A)(Ya,this)}set projectActions(e){(0,l.A)(Ya,this,e)}get links(){return(0,c.A)(qa,this)}set links(e){(0,l.A)(qa,this,e)}get canAddProject(){return(0,c.A)(Xa,this)}set canAddProject(e){(0,l.A)(Xa,this,e)}get myLinks(){return(0,c.A)(Ja,this)}set myLinks(e){(0,l.A)(Ja,this,e)}pullHistory(e){setTimeout((()=>{var e;null===(e=(0,c.A)(or,this).current)||void 0===e||e.pull()}),e)}open(){var e;null===(e=(0,c.A)(or,this).current)||void 0===e||e.open()}close(){var e;null===(e=(0,c.A)(or,this).current)||void 0===e||e.close()}removeProject(e){var t,i;null===(t=(0,c.A)(or,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)(or,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)(or,this).current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)}render(){return h().createElement(Pa,{ref:(0,c.A)(or,this),userInstanceId:this.userInstanceId,behavior:this.behavior,logoUrl:this.logoUrl,newChatUrl:this.newChatUrl,newChatLinkWhenCollapsed:this.newChatLinkWhenCollapsed,historyUrlTemplate:this.historyUrlTemplate,historyActions:this.historyActions,projectUrlTemplate:this.projectUrlTemplate,projectActions:this.projectActions,links:this.links,canAddProject:this.canAddProject,myLinks:this.myLinks,onLogout:(0,c.A)(er,this),onActionClick:(0,c.A)(ir,this),onProjectActionClick:(0,c.A)(ar,this),onAddProject:(0,c.A)(sr,this)})}}function cr(e,t){let{userInstanceId:i,behavior:n,logoUrl:a,newChatUrl:r,newChatLinkWhenCollapsed:s,historyUrlTemplate:o,historyActions:l,projectUrlTemplate:c,projectActions:d,links:u,canAddProject:m,myLinks:b,onLogout:A,onActionClick:v,onProjectActionClick:f,onAddProject:E}=e;const[x,k]=(0,p.useState)("drawer"===n),w=(0,p.useCallback)((()=>{k(!0)}),[]),y=(0,p.useCallback)((()=>{k(!1)}),[]);(0,p.useEffect)((()=>{"drawer"===n&&k(!0)}),[n]);const T=(0,p.useCallback)((()=>{k(!0)}),[]),S=(0,p.useCallback)((()=>{"drawer"===n&&k(!0)}),[n]),N=(0,p.useMemo)((()=>[{key:"logout",icon:{lib:"fa",prefix:"fas",icon:"arrow-right-from-bracket"},text:(0,Bn.t)(Bn.K.LOGOUT)},{key:"switch-language",icon:{lib:"easyops",icon:"language"},text:(0,Bn.t)(Bn.K.SWITCH_LANGUAGE)}]),[]),C=(0,p.useRef)(null);return(0,p.useImperativeHandle)(t,(()=>({close:()=>{k(!0)},pull:()=>{var e;null===(e=C.current)||void 0===e||e.pull()},removeProject:e=>{var t,i;null===(t=C.current)||void 0===t||null===(i=t.removeProject)||void 0===i||i.call(t,e)},addProject:e=>{var t,i;null===(t=C.current)||void 0===t||null===(i=t.addProject)||void 0===i||i.call(t,e)},moveConversation:e=>{var t,i;null===(t=C.current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)},open:()=>{k(!1)}})),[]),h().createElement("div",{className:Pn()("container",{collapsed:x})},"drawer"===n&&!x&&h().createElement("div",{className:"mask",onClick:T}),h().createElement("div",{className:"alternative"},h().createElement(Hn.Py,{icon:Wa,variant:"light",onClick:y}),s&&h().createElement(Hn.EM,{className:"new-chat",url:r},h().createElement(Hn.Bj,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),(0,Bn.t)(Bn.K.NEW_CHAT))),h().createElement("div",{className:"sidebar"},h().createElement("div",{className:"logo-bar"},h().createElement(Hn.EM,{url:a,className:"logo-link"},h().createElement(Ia,null)),h().createElement(Hn.Py,{icon:Wa,variant:"light",onClick:w})),h().createElement(Hn.EM,{className:"new-chat",url:r},h().createElement(Hn.Bj,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),(0,Bn.t)(Bn.K.NEW_CHAT)),null!=u&&u.length?h().createElement("div",{className:"links"},u.map(((e,t)=>h().createElement(Gn.k,{key:t,url:e.url,activeIncludes:e.activeIncludes,render:i=>{let{active:n}=i;return h().createElement(Hn.EM,{key:t,className:Pn()("link",{active:n}),url:e.url},h().createElement(Hn.Bj,(0,qi.A)({className:"icon"},e.icon)),h().createElement("span",{className:"title"},e.title))}})))):null,h().createElement(Fn.D,{ref:C,canAddProject:m,historyUrlTemplate:o,historyActions:l,projectUrlTemplate:c,projectActions:d,myLinks:b,onActionClick:v,onHistoryClick:S,onProjectActionClick:f,onAddProject:E}),h().createElement("div",{className:"footer"},h().createElement(Hn.qb,{className:"dropdown",actions:N,onActionClick:async e=>{"logout"===e.detail.key?A():(await g.i18n.changeLanguage(g.i18n.language&&"en"===g.i18n.language.split("-")[0]?"zh":"en"),(0,On.getHistory)().reload())}},h().createElement("button",{className:"account"},h().createElement(Hn.JQ,{nameOrInstanceId:i,showName:!0,size:"xs"}))))))}Ln=lr,({e:[Kn,$n,Yn,qn,Xn,Jn,Qn,Zn,ea,ta,ia,na,aa,ra,sa,oa,la,ca,da,pa,ha,ua,ma,ga,ba,Aa,va,fa,Ea,xa,ka,wa,ya,Ta,Sa,Na,Ca,Ma,_a,Ra,Vn],c:[Ba,jn]}=(0,d.A)(Ln,[Da("ai-portal.elevo-sidebar",{styleTexts:[Un.A]})],[[La(),1,"userInstanceId"],[La(),1,"behavior"],[La(),1,"logoUrl"],[La(),1,"newChatUrl"],[La({type:Boolean}),1,"newChatLinkWhenCollapsed"],[La(),1,"historyUrlTemplate"],[La({attribute:!1}),1,"historyActions"],[La(),1,"projectUrlTemplate"],[La({attribute:!1}),1,"projectActions"],[La({attribute:!1}),1,"links"],[La({type:Boolean}),1,"canAddProject"],[La({attribute:!1}),1,"myLinks"],[Oa({type:"logout"}),1,"logout",e=>(0,c.A)(Qa,e),(e,t)=>(0,l.A)(Qa,e,t)],[Oa({type:"action.click"}),1,"actionClick",e=>(0,c.A)(tr,e),(e,t)=>(0,l.A)(tr,e,t)],[Oa({type:"project.action.click"}),1,"projectActionClick",e=>(0,c.A)(nr,e),(e,t)=>(0,l.A)(nr,e,t)],[Oa({type:"add.project"}),1,"addProject",e=>(0,c.A)(rr,e),(e,t)=>(0,l.A)(rr,e,t)],[za(),2,"pullHistory"],[za(),2,"open"],[za(),2,"close"],[za(),2,"removeProject"],[za(),2,"addProject"],[za(),2,"moveConversation"]],0,(e=>or.has((0,s.A)(e))),m.ReactNextElement)),jn();var dr,pr=i(47338);function hr(e){const[t,i]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{const t=e.current;if(!t)return;const n=()=>{i(t.assignedNodes().length>0)};return n(),t.addEventListener("slotchange",n),()=>{t.removeEventListener("slotchange",n)}}),[e]),t}let ur,mr,gr,br,Ar,vr,fr,Er,xr,kr,wr;const yr=(0,m.wrapBrick)("eo-icon"),Tr=(0,m.wrapBrick)("eo-tooltip"),{defineElement:Sr,property:Nr}=(0,u.createDecorators)();let Cr;var Mr=new WeakMap,_r=new WeakMap,Rr=new WeakMap,Wr=new WeakMap,Ir=new WeakMap;class Dr extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Mr,mr(this)),(0,r.A)(this,_r,(gr(this),br(this))),(0,r.A)(this,Rr,(Ar(this),vr(this))),(0,r.A)(this,Wr,(fr(this),Er(this))),(0,r.A)(this,Ir,(xr(this),kr(this))),wr(this)}get icon(){return(0,c.A)(Mr,this)}set icon(e){(0,l.A)(Mr,this,e)}get tooltip(){return(0,c.A)(_r,this)}set tooltip(e){(0,l.A)(_r,this,e)}get tooltipHoist(){return(0,c.A)(Rr,this)}set tooltipHoist(e){(0,l.A)(Rr,this,e)}get disabled(){return(0,c.A)(Wr,this)}set disabled(e){(0,l.A)(Wr,this,e)}get variant(){return(0,c.A)(Ir,this)}set variant(e){(0,l.A)(Ir,this,e)}render(){return h().createElement(Lr,{icon:this.icon,tooltip:this.tooltip,tooltipHoist:this.tooltipHoist,disabled:this.disabled})}}function Lr(e){let{icon:t,tooltip:i,tooltipHoist:n,disabled:a}=e;const r=(0,p.useRef)(null),s=hr(r),o=h().createElement("button",{disabled:a,className:s?"has-slotted":""},h().createElement(yr,(0,qi.A)({className:"icon"},t)),h().createElement("slot",{ref:r}));return i?h().createElement(Tr,{content:i,hoist:n},o):o}dr=Dr,({e:[mr,gr,br,Ar,vr,fr,Er,xr,kr,wr],c:[Cr,ur]}=(0,d.A)(dr,[Sr("ai-portal.icon-button",{styleTexts:[pr.A]})],[[Nr({attribute:!1}),1,"icon"],[Nr(),1,"tooltip"],[Nr({type:Boolean}),1,"tooltipHoist"],[Nr({type:Boolean}),1,"disabled"],[Nr({render:!1}),1,"variant"]],0,void 0,m.ReactNextElement)),ur();let Or=function(e){return e.ALL="ALL",e.EXPLORE_EXCELLENT_CASES="EXPLORE_EXCELLENT_CASES",e}({});const zr="bricks/ai-portal/show-cases",Pr={en:{[Or.ALL]:"All",[Or.EXPLORE_EXCELLENT_CASES]:"Explore excellent cases"},zh:{[Or.ALL]:"全部",[Or.EXPLORE_EXCELLENT_CASES]:"探索优秀案例"}},Br=g.i18n.getFixedT(null,zr);var Ur,Hr=i(42873);let Fr,Gr,Vr,jr,Kr;(0,g.initializeI18n)(zr,Pr);const $r=(0,m.wrapBrick)("ai-portal.show-case"),Yr=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:qr,property:Xr}=(0,u.createDecorators)();let Jr;var Qr=new WeakMap,Zr=new WeakMap;class es extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Qr,Gr(this)),(0,r.A)(this,Zr,(Vr(this),jr(this))),Kr(this)}get list(){return(0,c.A)(Qr,this)}set list(e){(0,l.A)(Qr,this,e)}get limit(){return(0,c.A)(Zr,this)}set limit(e){(0,l.A)(Zr,this,e)}render(){return h().createElement(ts,{list:this.list,limit:this.limit})}}function ts(e){let{list:t,limit:i}=e;const n=(0,p.useMemo)((()=>["",...new Set(null==t?void 0:t.map((e=>e.scenario)).filter(Boolean))]),[t]),[a,r]=(0,p.useState)(""),s=(0,p.useMemo)((()=>{if(!t)return;let e=t;return a&&(e=e.filter((e=>e.scenario===a))),i&&(e=e.slice(0,i)),e}),[a,t,i]),o=(0,p.useMemo)((()=>n.map((e=>({id:e,label:""===e?Br(Or.ALL):e})))),[n]);return null!=t&&t.length?h().createElement(h().Fragment,null,h().createElement("div",{className:"tips"},`${Br(Or.EXPLORE_EXCELLENT_CASES)} ↓`),h().createElement(Yr,{tabs:o,activeTab:a,onTabClick:e=>r(e.detail.id)}),h().createElement("ul",{className:"cases"},null==s?void 0:s.map((e=>h().createElement("li",{key:e.conversationId},h().createElement($r,{caseTitle:e.title,summary:e.summary,url:e.url})))))):null}Ur=es,({e:[Gr,Vr,jr,Kr],c:[Jr,Fr]}=(0,d.A)(Ur,[qr("ai-portal.show-cases",{styleTexts:[Hr.A]})],[[Xr({attribute:!1}),1,"list"],[Xr({type:Number}),1,"limit"]],0,void 0,m.ReactNextElement)),Fr();let is=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 ns="bricks/ai-portal/mcp-tools",as={en:{[is.MCP_HUB]:"MCP Hub",[is.ALL]:"All",[is.SERVER_cmdb]:"CMDB",[is.SERVER_cmdb_product_helper]:"CMDB",[is.SERVER_alert]:"Alert",[is.SERVER_web_builder]:"View",[is.SERVER_web_builder2]:"View",[is.SERVER_host_troubleshooting]:"Host Troubleshooting",[is.SERVER_system_inspection]:"System Inspection",[is.SERVER_grafana]:"Grafana",[is.SERVER_kubernetes]:"Kubernetes",[is.SERVER_llm]:"LLM"},zh:{[is.MCP_HUB]:"MCP 中心",[is.ALL]:"全部",[is.SERVER_cmdb]:"CMDB",[is.SERVER_cmdb_product_helper]:"CMDB",[is.SERVER_alert]:"告警",[is.SERVER_web_builder]:"视图",[is.SERVER_web_builder2]:"视图",[is.SERVER_host_troubleshooting]:"主机故障排查",[is.SERVER_system_inspection]:"系统巡检",[is.SERVER_grafana]:"Grafana",[is.SERVER_kubernetes]:"Kubernetes",[is.SERVER_llm]:"大模型"}},rs=g.i18n.getFixedT(null,ns);var ss,os=i(31748);let ls,cs,ds,ps,hs;(0,g.initializeI18n)(ns,as);const us={lib:"antd",icon:"tool"},ms=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"]}]]),gs=(0,m.wrapBrick)("eo-icon"),bs=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),As=(0,m.wrapBrick)("ai-portal.sticky-container"),{defineElement:vs,property:fs}=(0,u.createDecorators)();let Es;var xs=new WeakMap,ks=new WeakMap;class ws extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,xs,cs(this)),(0,r.A)(this,ks,(ds(this),ps(this))),hs(this)}get list(){return(0,c.A)(xs,this)}set list(e){(0,l.A)(xs,this,e)}get stickyTop(){return(0,c.A)(ks,this)}set stickyTop(e){(0,l.A)(ks,this,e)}render(){return h().createElement(ys,{list:this.list,stickyTop:this.stickyTop})}}function ys(e){let{list:t,stickyTop:i}=e;const[n,a]=(0,p.useMemo)((()=>{const e=new Map,i=new Map;null==t||t.forEach((t=>{const n=rs(`SERVER_${t.server.id.replaceAll("-","_")}`,t.server.name);let a=e.get(n);a||e.set(n,a=[]),a.push(t);const r=[...ms.entries()].find((e=>{let[i,{servers:n}]=e;return n.includes(t.server.id)})),s=r?r[0]:"其他";let o=i.get(s);o||i.set(s,o=[]),o.push(n)}));const n=["CMDB"];return[new Map([...e.entries()].sort(((e,t)=>{let[i]=e,[a]=t;const r=n.indexOf(i),s=n.indexOf(a);return(r<0?n.length:r)-(s<0?n.length:s)}))),i]}),[t]),r=(0,p.useMemo)((()=>{const e=[...ms.keys()],t=[...a.keys()];return t.sort(((t,i)=>{const n=e.indexOf(t),a=e.indexOf(i);return(n<0?e.length:n)-(a<0?e.length:a)})),["",...t]}),[a]),[s,o]=(0,p.useState)(""),l=(0,p.useMemo)((()=>{const e=[...n];if(!s)return e;const t=a.get(s);return e.filter((e=>{let[i]=e;return null==t?void 0:t.includes(i)}))}),[s,n,a]),c=(0,p.useMemo)((()=>r.map((e=>({id:e,label:""===e?rs(is.ALL):e})))),[r]),d=h().createElement(bs,{tabs:c,activeTab:s,onTabClick:e=>o(e.detail.id)});return h().createElement(h().Fragment,null,null==i?h().createElement("div",{className:"non-sticky-tabs"},d):h().createElement(As,{className:"sticky-tabs",style:{top:i}},d),h().createElement("ul",{className:"groups"},null==l?void 0:l.map((e=>{let[t,i]=e;return h().createElement("li",{key:t,className:"group"},h().createElement("h2",null,t),h().createElement("ul",{className:"list"},i.map(((e,t)=>{var i;return h().createElement("li",{key:t,className:"item"},h().createElement("div",{className:"heading"},h().createElement(gs,(0,qi.A)({className:"icon"},null!==(i=e.icon)&&void 0!==i?i:us,{fallback:us})),h().createElement("div",{className:"title"},e.title)),h().createElement("div",{className:"description"},e.description))}))))}))))}ss=ws,({e:[cs,ds,ps,hs],c:[Es,ls]}=(0,d.A)(ss,[vs("ai-portal.mcp-tools",{styleTexts:[os.A]})],[[fs({attribute:!1}),1,"list"],[fs({type:Number}),1,"stickyTop"]],0,void 0,m.ReactNextElement)),ls();var Ts,Ss=i(48952),Ns=i(62232);let Cs,Ms,_s,Rs,Ws,Is,Ds,Ls,Os,zs,Ps,Bs,Us,Hs,Fs,Gs,Vs,js,Ks,$s,Ys,qs,Xs,Js,Qs,Zs,eo,to,io,no,ao,ro,so,oo,lo,co,po,ho,uo,mo,go,bo,Ao,vo,fo,Eo,xo,ko,wo,yo,To,So,No,Co,Mo,_o,Ro,Wo,Io,Do,Lo,Oo,zo,Po,Bo,Uo,Ho,Fo,Go,Vo;(0,g.initializeI18n)(Ss.NS,Ss.I);const{defineElement:jo,property:Ko,event:$o,method:Yo}=(0,u.createDecorators)(),qo=(0,p.forwardRef)(Ns.C);let Xo;var Jo=new WeakMap,Qo=new WeakMap,Zo=new WeakMap,el=new WeakMap,tl=new WeakMap,il=new WeakMap,nl=new WeakMap,al=new WeakMap,rl=new WeakMap,sl=new WeakMap,ol=new WeakMap,ll=new WeakMap,cl=new WeakMap,dl=new WeakMap,pl=new WeakMap,hl=new WeakMap,ul=new WeakMap,ml=new WeakMap,gl=new WeakMap,bl=new WeakSet,Al=new WeakMap,vl=new WeakMap,fl=new WeakMap,El=new WeakMap,xl=new WeakMap,kl=new WeakMap,wl=new WeakMap,yl=new WeakMap,Tl=new WeakMap,Sl=new WeakMap,Nl=new WeakMap,Cl=new WeakMap,Ml=new WeakMap,_l=new WeakMap,Rl=new WeakMap,Wl=new WeakMap;class Il extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,bl),(0,r.A)(this,Jo,(Cs(this),_s(this))),(0,r.A)(this,Qo,(Rs(this),Ws(this))),(0,r.A)(this,Zo,(Is(this),Ds(this))),(0,r.A)(this,el,(Ls(this),Os(this))),(0,r.A)(this,tl,(zs(this),Ps(this))),(0,r.A)(this,il,(Bs(this),Us(this))),(0,r.A)(this,nl,(Hs(this),Fs(this))),(0,r.A)(this,al,(Gs(this),Vs(this))),(0,r.A)(this,rl,(js(this),Ks(this))),(0,r.A)(this,sl,($s(this),Ys(this))),(0,r.A)(this,ol,(qs(this),Xs(this))),(0,r.A)(this,ll,(Js(this),Qs(this))),(0,r.A)(this,cl,(Zs(this),eo(this))),(0,r.A)(this,dl,(to(this),io(this))),(0,r.A)(this,pl,(no(this),ao(this))),(0,r.A)(this,hl,(ro(this),so(this))),(0,r.A)(this,ul,(oo(this),lo(this))),(0,r.A)(this,ml,(co(this),po(this))),(0,r.A)(this,gl,(ho(this),uo(this))),(0,r.A)(this,Al,(bo(this),()=>{(0,o.A)(bl,this,mo).emit()})),(0,r.A)(this,vl,Ao(this)),(0,r.A)(this,fl,(Eo(this),()=>{(0,o.A)(bl,this,vo).emit()})),(0,r.A)(this,El,xo(this)),(0,r.A)(this,xl,(yo(this),e=>{(0,o.A)(bl,this,ko).emit(e)})),(0,r.A)(this,kl,To(this)),(0,r.A)(this,wl,(Co(this),e=>{(0,o.A)(bl,this,So).emit(e)})),(0,r.A)(this,yl,Mo(this)),(0,r.A)(this,Tl,(Wo(this),()=>{(0,o.A)(bl,this,_o).emit("canvas")})),(0,r.A)(this,Sl,Io(this)),(0,r.A)(this,Nl,(Oo(this),e=>{(0,o.A)(bl,this,Do).emit(e)})),(0,r.A)(this,Cl,zo(this)),(0,r.A)(this,Ml,(Uo(this),()=>{(0,o.A)(bl,this,Po).emit()})),(0,r.A)(this,_l,Ho(this)),(0,r.A)(this,Rl,(Vo(this),e=>{(0,o.A)(bl,this,Fo).emit(e)})),(0,r.A)(this,Wl,(0,p.createRef)())}get conversationId(){return(0,c.A)(Jo,this)}set conversationId(e){(0,l.A)(Jo,this,e)}get initialRequest(){return(0,c.A)(Qo,this)}set initialRequest(e){(0,l.A)(Qo,this,e)}get replay(){return(0,c.A)(Zo,this)}set replay(e){(0,l.A)(Zo,this,e)}get replayDelay(){return(0,c.A)(el,this)}set replayDelay(e){(0,l.A)(el,this,e)}get supports(){return(0,c.A)(tl,this)}set supports(e){(0,l.A)(tl,this,e)}get showHumanActions(){return(0,c.A)(il,this)}set showHumanActions(e){(0,l.A)(il,this,e)}get showFeedback(){return(0,c.A)(nl,this)}set showFeedback(e){(0,l.A)(nl,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(al,this)}set showFeedbackAfterFailed(e){(0,l.A)(al,this,e)}get showFeedbackOnView(){return(0,c.A)(rl,this)}set showFeedbackOnView(e){(0,l.A)(rl,this,e)}get showUiSwitch(){return(0,c.A)(sl,this)}set showUiSwitch(e){(0,l.A)(sl,this,e)}get hideMermaid(){return(0,c.A)(ol,this)}set hideMermaid(e){(0,l.A)(ol,this,e)}get previewUrlTemplate(){return(0,c.A)(ll,this)}set previewUrlTemplate(e){(0,l.A)(ll,this,e)}get showCases(){return(0,c.A)(cl,this)}set showCases(e){(0,l.A)(cl,this,e)}get exampleProjects(){return(0,c.A)(dl,this)}set exampleProjects(e){(0,l.A)(dl,this,e)}get tryItOutUrl(){return(0,c.A)(pl,this)}set tryItOutUrl(e){(0,l.A)(pl,this,e)}get uploadOptions(){return(0,c.A)(hl,this)}set uploadOptions(e){(0,l.A)(hl,this,e)}get notices(){return(0,c.A)(ul,this)}set notices(e){(0,l.A)(ul,this,e)}get showNoticeIcon(){return(0,c.A)(ml,this)}set showNoticeIcon(e){(0,l.A)(ml,this,e)}resumed(){var e,t;null===(e=(0,c.A)(Wl,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(Wl,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(Wl,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(Wl,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){return h().createElement(qo,{conversationId:this.conversationId,initialRequest:this.initialRequest,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showHumanActions:this.showHumanActions,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showFeedbackOnView:this.showFeedbackOnView,showUiSwitch:this.showUiSwitch,showNoticeIcon:this.showNoticeIcon,previewUrlTemplate:this.previewUrlTemplate,showCases:this.showCases,exampleProjects:this.exampleProjects,tryItOutUrl:this.tryItOutUrl,uploadOptions:this.uploadOptions,notices:this.notices,onShare:(0,c.A)(Al,this),onTerminate:(0,c.A)(fl,this),onSubmitFeedback:(0,c.A)(xl,this),onSwitchToCanvas:(0,c.A)(Tl,this),onFeedbackOnView:(0,c.A)(wl,this),onDetailChange:(0,c.A)(Nl,this),onMarkNoticesRead:(0,c.A)(Ml,this),onNoticeClick:(0,c.A)(Rl,this),ref:(0,c.A)(Wl,this)})}}Ts=Il,({e:[_s,Rs,Ws,Is,Ds,Ls,Os,zs,Ps,Bs,Us,Hs,Fs,Gs,Vs,js,Ks,$s,Ys,qs,Xs,Js,Qs,Zs,eo,to,io,no,ao,ro,so,oo,lo,co,po,ho,uo,mo,go,bo,Ao,vo,fo,Eo,xo,ko,wo,yo,To,So,No,Co,Mo,_o,Ro,Wo,Io,Do,Lo,Oo,zo,Po,Bo,Uo,Ho,Fo,Go,Vo,Cs],c:[Xo,Ms]}=(0,d.A)(Ts,[jo("ai-portal.chat-stream",{shadowOptions:!1})],[[Ko(),1,"conversationId"],[Ko({attribute:!1,render:!1}),1,"initialRequest"],[Ko({type:Boolean}),1,"replay"],[Ko({type:Number}),1,"replayDelay"],[Ko({attribute:!1}),1,"supports"],[Ko({type:Boolean}),1,"showHumanActions"],[Ko({type:Boolean}),1,"showFeedback"],[Ko({type:Boolean}),1,"showFeedbackAfterFailed"],[Ko({type:Boolean}),1,"showFeedbackOnView"],[Ko({type:Boolean}),1,"showUiSwitch"],[Ko({type:Boolean,render:!1}),1,"hideMermaid"],[Ko(),1,"previewUrlTemplate"],[Ko({attribute:!1}),1,"showCases"],[Ko({attribute:!1}),1,"exampleProjects"],[Ko(),1,"tryItOutUrl"],[Ko({attribute:!1}),1,"uploadOptions"],[Ko({attribute:!1}),1,"notices"],[Ko({type:Boolean}),1,"showNoticeIcon"],[$o({type:"share"}),1,"shareEvent",e=>(0,c.A)(gl,e),(e,t)=>(0,l.A)(gl,e,t)],[$o({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(vl,e),(e,t)=>(0,l.A)(vl,e,t)],[$o({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(El,e),(e,t)=>(0,l.A)(El,e,t)],[$o({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(kl,e),(e,t)=>(0,l.A)(kl,e,t)],[$o({type:"ui.switch"}),1,"switch",e=>(0,c.A)(yl,e),(e,t)=>(0,l.A)(yl,e,t)],[$o({type:"detail.change"}),1,"detailChange",e=>(0,c.A)(Sl,e),(e,t)=>(0,l.A)(Sl,e,t)],[$o({type:"mark.notices.read"}),1,"markNoticesReadEvent",e=>(0,c.A)(Cl,e),(e,t)=>(0,l.A)(Cl,e,t)],[$o({type:"notice.click"}),1,"noticeClickEvent",e=>(0,c.A)(_l,e),(e,t)=>(0,l.A)(_l,e,t)],[Yo(),2,"resumed"],[Yo(),2,"feedbackSubmitDone"],[Yo(),2,"feedbackSubmitFailed"],[Yo(),2,"feedbackOnViewDone"]],0,(e=>Wl.has((0,s.A)(e))),m.ReactNextElement)),Ms();let Dl=function(e){return e.AI_EMPLOYEES="AI_EMPLOYEES",e.UNTITLED="UNTITLED",e}({});const Ll="bricks/ai-portal/ai-employees",Ol=g.i18n.getFixedT(null,Ll);var zl,Pl=i(98036),Bl=i(65549);let Ul,Hl,Fl,Gl,Vl,jl,Kl,$l,Yl;(0,g.initializeI18n)(Ll,{en:{AI_EMPLOYEES:"AI Employees",UNTITLED:"Untitled"},zh:{AI_EMPLOYEES:"Ai 数字人",UNTITLED:"未命名"}});const ql=(0,m.wrapBrick)("eo-link"),Xl=(0,m.wrapBrick)("eo-icon"),Jl=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:Ql,property:Zl}=(0,u.createDecorators)();let ec;var tc=new WeakMap,ic=new WeakMap,nc=new WeakMap,ac=new WeakMap;class rc extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,tc,Hl(this)),(0,r.A)(this,ic,(Fl(this),Gl(this))),(0,r.A)(this,nc,(Vl(this),jl(this))),(0,r.A)(this,ac,(Kl(this),$l(this,!0))),Yl(this)}get list(){return(0,c.A)(tc,this)}set list(e){(0,l.A)(tc,this,e)}get industries(){return(0,c.A)(ic,this)}set industries(e){(0,l.A)(ic,this,e)}get urlTemplate(){return(0,c.A)(nc,this)}set urlTemplate(e){(0,l.A)(nc,this,e)}get withContainer(){return(0,c.A)(ac,this)}set withContainer(e){(0,l.A)(ac,this,e)}render(){return h().createElement(sc,{list:this.list,industries:this.industries,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function sc(e){let{list:t,industries:i,urlTemplate:n,withContainer:a}=e;const r=(0,p.useMemo)((()=>[...new Set([...null!=i?i:[],...(null!=t?t:[]).map((e=>e.industry))])]),[i,t]),[s,o]=(0,p.useState)(r[0]),l=(0,p.useMemo)((()=>{const e=new Map;return null==t||t.forEach((t=>{if(t.industry!==s)return;let i=e.get(t.role);i||e.set(t.role,i=[]),i.push(t)})),[...e.entries()]}),[s,t]),c=(0,p.useMemo)((()=>r.map((e=>({id:e,label:e||Ol(Dl.UNTITLED)})))),[r]),d=h().createElement(h().Fragment,null,h().createElement(Jl,{tabs:c,activeTab:s,onTabClick:e=>o(e.detail.id)}),h().createElement("ul",{className:"groups"},l.map((e=>{let[t,i]=e;return h().createElement("li",{key:t,className:"group"},h().createElement("h2",null,t),h().createElement("ul",{className:"list"},i.map(((e,t)=>h().createElement("li",{key:t},h().createElement(ql,(0,qi.A)({className:Pn()("link",{clickable:!!n})},n?{url:(0,Bl.Q)(n,e)}:null),h().createElement("div",{className:"heading"},h().createElement("div",{className:"avatar"},e.avatar?h().createElement("img",{src:e.avatar}):h().createElement(Xl,{lib:"antd",icon:"user"})),h().createElement("div",{className:"title"},e.name)),h().createElement("div",{className:"description"},e.description)))))))}))));return a?h().createElement("div",{className:"container"},h().createElement("h1",null,Ol(Dl.AI_EMPLOYEES)),d):d}zl=rc,({e:[Hl,Fl,Gl,Vl,jl,Kl,$l,Yl],c:[ec,Ul]}=(0,d.A)(zl,[Ql("ai-portal.ai-employees",{styleTexts:[Pl.A]})],[[Zl({attribute:!1}),1,"list"],[Zl({attribute:!1}),1,"industries"],[Zl(),1,"urlTemplate"],[Zl({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),Ul();let oc=function(e){return e.AGENTS="AGENTS",e}({});const lc="bricks/ai-portal/ai-agents",cc=g.i18n.getFixedT(null,lc);var dc,pc=i(83059);let hc,uc,mc,gc,bc,Ac,vc;const fc={lib:"antd",icon:"tool"};(0,g.initializeI18n)(lc,{en:{AGENTS:"Agents"},zh:{AGENTS:"智能体"}});const Ec=(0,m.wrapBrick)("eo-icon"),xc=(0,m.wrapBrick)("eo-link"),{defineElement:kc,property:wc}=(0,u.createDecorators)();let yc;var Tc=new WeakMap,Sc=new WeakMap,Nc=new WeakMap;class Cc extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Tc,uc(this)),(0,r.A)(this,Sc,(mc(this),gc(this))),(0,r.A)(this,Nc,(bc(this),Ac(this,!0))),vc(this)}get list(){return(0,c.A)(Tc,this)}set list(e){(0,l.A)(Tc,this,e)}get urlTemplate(){return(0,c.A)(Sc,this)}set urlTemplate(e){(0,l.A)(Sc,this,e)}get withContainer(){return(0,c.A)(Nc,this)}set withContainer(e){(0,l.A)(Nc,this,e)}render(){return h().createElement(Mc,{list:this.list,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function Mc(e){let{list:t,urlTemplate:i,withContainer:n}=e;const a=h().createElement(h().Fragment,null,h().createElement("ul",{className:"list"},null==t?void 0:t.map(((e,t)=>{var n,a;return h().createElement("li",{key:t},h().createElement(xc,(0,qi.A)({className:Pn()("link",{clickable:!!i})},i?{url:(0,Bl.Q)(i,e)}:null),h().createElement("div",{className:"heading"},h().createElement("div",{className:"icon"},h().createElement(Ec,(0,qi.A)({},null!==(n=e.icon)&&void 0!==n?n:fc,{fallback:fc}))),h().createElement("div",{className:"title"},e.name)),h().createElement("div",{className:"tags"},null===(a=e.tags)||void 0===a?void 0:a.map(((e,t)=>h().createElement("span",{key:t,className:"tag"},e)))),h().createElement("div",{className:"description"},e.description)))}))));return n?h().createElement("div",{className:"container"},h().createElement("h1",null,cc(oc.AGENTS)),a):a}dc=Cc,({e:[uc,mc,gc,bc,Ac,vc],c:[yc,hc]}=(0,d.A)(dc,[kc("ai-portal.ai-agents",{styleTexts:[pc.A]})],[[wc({attribute:!1}),1,"list"],[wc(),1,"urlTemplate"],[wc({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),hc();let _c=null;customElements.define("ai-portal.save-request-store",(0,_t.createProviderClass)((function(e){_c=e}))),customElements.define("ai-portal.load-request-store",(0,_t.createProviderClass)((function(){const e=_c;return _c=null,e}))),customElements.define("ai-portal.clear-request-store",(0,_t.createProviderClass)((function(){_c=null})));var Rc,Wc=i(49041);let Ic,Dc,Lc,Oc,zc,Pc,Bc,Uc,Hc,Fc,Gc;const Vc=(0,m.wrapBrick)("eo-link"),jc=(0,m.wrapBrick)("ai-portal.sticky-container"),{defineElement:Kc,property:$c}=(0,u.createDecorators)();let Yc;var qc=new WeakMap,Xc=new WeakMap,Jc=new WeakMap,Qc=new WeakMap,Zc=new WeakMap;class ed extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,qc,Dc(this)),(0,r.A)(this,Xc,(Lc(this),Oc(this))),(0,r.A)(this,Jc,(zc(this),Pc(this))),(0,r.A)(this,Qc,(Bc(this),Uc(this))),(0,r.A)(this,Zc,(Hc(this),Fc(this))),Gc(this)}get pageTitle(){return(0,c.A)(qc,this)}set pageTitle(e){(0,l.A)(qc,this,e)}get breadcrumbs(){return(0,c.A)(Xc,this)}set breadcrumbs(e){(0,l.A)(Xc,this,e)}get size(){return(0,c.A)(Jc,this)}set size(e){(0,l.A)(Jc,this,e)}get variant(){return(0,c.A)(Qc,this)}set variant(e){(0,l.A)(Qc,this,e)}get sticky(){return(0,c.A)(Zc,this)}set sticky(e){(0,l.A)(Zc,this,e)}render(){return h().createElement(td,{pageTitle:this.pageTitle,breadcrumbs:this.breadcrumbs,sticky:this.sticky})}}function td(e){let{breadcrumbs:t,pageTitle:i,sticky:n}=e;(0,p.useEffect)((()=>{"string"==typeof i&&(0,On.getRuntime)().applyPageTitle(i)}),[i]);const a=i||null!=t&&t.length?h().createElement("div",{className:"header"},h().createElement("nav",null,null!=t&&t.length?h().createElement("ul",{className:"breadcrumbs"},t.map(((e,t)=>h().createElement("li",{key:t},h().createElement(Vc,{url:e.url},e.text))))):null,i?h().createElement("h1",null,i):null),h().createElement("slot",{name:"toolbar"})):null;return h().createElement("div",{className:"container"},a&&n?h().createElement(jc,{className:"sticky-header"},a):h().createElement("div",{className:"non-sticky-header"},a),h().createElement("slot",null))}Rc=ed,({e:[Dc,Lc,Oc,zc,Pc,Bc,Uc,Hc,Fc,Gc],c:[Yc,Ic]}=(0,d.A)(Rc,[Kc("ai-portal.page-container",{styleTexts:[Wc.A]})],[[$c(),1,"pageTitle"],[$c({attribute:!1}),1,"breadcrumbs"],[$c({render:!1}),1,"size"],[$c({render:!1}),1,"variant"],[$c({type:Boolean}),1,"sticky"]],0,void 0,m.ReactNextElement)),Ic();var id,nd=i(20124);let ad,rd,sd,od,ld,cd,dd,pd,hd;const{defineElement:ud,property:md,event:gd}=(0,u.createDecorators)();let bd;var Ad=new WeakMap,vd=new WeakMap,fd=new WeakMap,Ed=new WeakSet,xd=new WeakMap;class kd extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Ed),(0,r.A)(this,Ad,rd(this)),(0,r.A)(this,vd,(sd(this),od(this))),(0,r.A)(this,fd,(ld(this),cd(this))),(0,r.A)(this,xd,(hd(this),e=>{this.activeTab=e.id,(0,o.A)(Ed,this,dd).emit(e)}))}get tabs(){return(0,c.A)(Ad,this)}set tabs(e){(0,l.A)(Ad,this,e)}get activeTab(){return(0,c.A)(vd,this)}set activeTab(e){(0,l.A)(vd,this,e)}render(){return h().createElement(wd,{tabs:this.tabs,activeTab:this.activeTab,onTabClick:(0,c.A)(xd,this)})}}function wd(e){let{tabs:t,activeTab:i,onTabClick:n}=e;return h().createElement("ul",{className:"tabs",part:"tabs"},null==t?void 0:t.map((e=>h().createElement("li",{key:e.id,part:"tab",className:Pn()("tab",{active:e.id===i})},h().createElement("a",{onClick:()=>n(e)},e.label)))))}id=kd,({e:[rd,sd,od,ld,cd,dd,pd,hd],c:[bd,ad]}=(0,d.A)(id,[ud("ai-portal.tab-list",{styleTexts:[nd.A]})],[[md({attribute:!1}),1,"tabs"],[md({attribute:!1}),1,"activeTab"],[gd({type:"tab.click"}),1,"tabClick",e=>(0,c.A)(fd,e),(e,t)=>(0,l.A)(fd,e,t)]],0,(e=>xd.has((0,s.A)(e))),m.ReactNextElement)),ad();var yd=i(41030);let Td=function(e){return e.PLEASE_SELECT="PLEASE_SELECT",e.SEARCH_PLACEHOLDER="SEARCH_PLACEHOLDER",e.SEARCH_NO_DATA="SEARCH_NO_DATA",e}({});const Sd="bricks/ai-portal/dropdown-select",Nd=g.i18n.getFixedT(null,Sd);var Cd,Md=i(40138);let _d,Rd,Wd,Id,Dd,Ld,Od,zd,Pd,Bd,Ud,Hd,Fd,Gd,Vd,jd,Kd,$d,Yd,qd,Xd;(0,g.initializeI18n)(Sd,{en:{PLEASE_SELECT:"Please Select",SEARCH_PLACEHOLDER:"Search",SEARCH_NO_DATA:"No Data"},zh:{PLEASE_SELECT:"请选择",SEARCH_PLACEHOLDER:"搜索",SEARCH_NO_DATA:"暂无结果"}});const{defineElement:Jd,property:Qd,event:Zd}=(0,u.createDecorators)(),ep=(0,m.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"}),tp=(0,m.wrapBrick)("eo-icon"),ip=(0,m.wrapBrick)("eo-loading-container"),np=(0,m.wrapBrick)("eo-menu"),ap=(0,m.wrapBrick)("eo-menu-item"),rp=(0,m.wrapBrick)("eo-input",{onValueChange:"change"});let sp;var op=new WeakMap,lp=new WeakMap,cp=new WeakMap,dp=new WeakMap,pp=new WeakMap,hp=new WeakMap,up=new WeakMap,mp=new WeakMap,gp=new WeakMap,bp=new WeakSet,Ap=new WeakMap;class vp extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,bp),(0,r.A)(this,op,Rd(this)),(0,r.A)(this,lp,(Wd(this),Id(this))),(0,r.A)(this,cp,(Dd(this),Ld(this))),(0,r.A)(this,dp,(Od(this),zd(this))),(0,r.A)(this,pp,(Pd(this),Bd(this))),(0,r.A)(this,hp,(Ud(this),Hd(this))),(0,r.A)(this,up,(Fd(this),Gd(this))),(0,r.A)(this,mp,(Vd(this),jd(this))),(0,r.A)(this,gp,(Kd(this),$d(this))),(0,r.A)(this,Ap,(Xd(this),e=>{(0,o.A)(bp,this,Yd).emit(e)}))}get value(){return(0,c.A)(op,this)}set value(e){(0,l.A)(op,this,e)}get options(){return(0,c.A)(lp,this)}set options(e){(0,l.A)(lp,this,e)}get labelMaxWidth(){return(0,c.A)(cp,this)}set labelMaxWidth(e){(0,l.A)(cp,this,e)}get loading(){return(0,c.A)(dp,this)}set loading(e){(0,l.A)(dp,this,e)}get searchPlaceholder(){return(0,c.A)(pp,this)}set searchPlaceholder(e){(0,l.A)(pp,this,e)}get dropdownContentStyle(){return(0,c.A)(hp,this)}set dropdownContentStyle(e){(0,l.A)(hp,this,e)}get dropdownMaxWidth(){return(0,c.A)(up,this)}set dropdownMaxWidth(e){(0,l.A)(up,this,e)}get showSearch(){return(0,c.A)(mp,this)}set showSearch(e){(0,l.A)(mp,this,e)}render(){return h().createElement(fp,{value:this.value,options:this.options,onChange:(0,c.A)(Ap,this),loading:this.loading,labelMaxWidth:this.labelMaxWidth,dropdownMaxWidth:this.dropdownMaxWidth,showSearch:this.showSearch,searchPlaceholder:this.searchPlaceholder,dropdownContentStyle:this.dropdownContentStyle})}}function fp(e){let{value:t,options:i,labelMaxWidth:n,dropdownMaxWidth:a,showSearch:r,loading:s,searchPlaceholder:o,dropdownContentStyle:l,onChange:c}=e;const[d,u]=(0,p.useState)(!1),[m,g]=(0,p.useState)(t),[b,A]=(0,p.useState)(""),[v,f]=(0,p.useState)(i);(0,p.useEffect)((()=>{f(i)}),[i]);const E=(0,p.useMemo)((()=>null==v?void 0:v.find((e=>e.value===m))),[v,m]),x=(0,p.useMemo)((()=>b&&v?null==v?void 0:v.filter((e=>e.label.toLowerCase().includes(b.toLowerCase()))):v),[v,b]),k=(0,p.useCallback)((e=>{u(e.detail),e.detail||A("")}),[]),w=(0,p.useMemo)((()=>(0,yd.debounce)((e=>{A(e.detail)}),300)),[]);return h().createElement(ep,{placement:"bottom-start",trigger:"click",active:d,arrow:!1,distance:5,onBeforeVisibleChange:k},h().createElement("span",{slot:"anchor",className:"trigger"},h().createElement("span",{className:"label",style:{maxWidth:n}},E?null==E?void 0:E.label:Nd(Td.PLEASE_SELECT)),h().createElement(tp,{lib:"lucide",icon:d?"chevron-up":"chevron-down"})),h().createElement("div",{className:"dropdown",style:{maxWidth:a}},r&&h().createElement("div",{className:"search-container"},h().createElement(rp,{className:"search",value:b,placeholder:o||Nd(Td.SEARCH_PLACEHOLDER),onValueChange:w},h().createElement(tp,{slot:"prefix",lib:"antd",icon:"search"}))),h().createElement(ip,{loading:s,delay:500,style:{width:"100%"}},h().createElement("div",{className:"dropdown-inner",style:l},h().createElement("slot",{name:"prefix"}),!(null==x||!x.length)&&h().createElement(np,null,null==x?void 0:x.map((e=>h().createElement(ap,{key:e.value,disabled:e.disabled,className:m===e.value?"active":void 0,onClick:t=>{t.preventDefault(),t.stopPropagation(),u(!1),m!==e.value&&(g(e.value),c(e))}},e.label)))),!(null!=x&&x.length)&&h().createElement("div",{className:"empty"},Nd(Td.SEARCH_NO_DATA))))))}Cd=vp,({e:[Rd,Wd,Id,Dd,Ld,Od,zd,Pd,Bd,Ud,Hd,Fd,Gd,Vd,jd,Kd,$d,Yd,qd,Xd],c:[sp,_d]}=(0,d.A)(Cd,[Jd("ai-portal.dropdown-select",{styleTexts:[Md.A]})],[[Qd(),1,"value"],[Qd({attribute:!1}),1,"options"],[Qd({attribute:!1}),1,"labelMaxWidth"],[Qd({type:Boolean}),1,"loading"],[Qd({attribute:!1}),1,"searchPlaceholder"],[Qd({attribute:!1}),1,"dropdownContentStyle"],[Qd({attribute:!1}),1,"dropdownMaxWidth"],[Qd({type:Boolean}),1,"showSearch"],[Zd({type:"change"}),1,"changeEvent",e=>(0,c.A)(gp,e),(e,t)=>(0,l.A)(gp,e,t)]],0,(e=>Ap.has((0,s.A)(e))),m.ReactNextElement)),_d();var Ep=i(71568);let xp=function(e){return e.UNTITLED="UNTITLED",e}({});const kp="bricks/ai-portal/preview-container",wp=g.i18n.getFixedT(null,kp);var yp=i(72591),Tp=i.n(yp),Sp=i(1740),Np=i.n(Sp),Cp=i(88128),Mp=i.n(Cp),_p=i(30855),Rp=i.n(_p),Wp=i(93051),Ip=i.n(Wp),Dp=i(73656),Lp=i.n(Dp),Op=i(62522),zp={};zp.styleTagTransform=Lp(),zp.setAttributes=Rp(),zp.insert=Mp().bind(null,"head"),zp.domAPI=Np(),zp.insertStyleElement=Ip(),Tp()(Op.A,zp);const Pp=Op.A&&Op.A.locals?Op.A.locals:void 0;var Bp,Up=i(43100),Hp=i(23241);let Fp,Gp,Vp,jp,Kp;(0,g.initializeI18n)(kp,{en:{UNTITLED:"Untitled"},zh:{UNTITLED:"无标题"}});const $p=(0,m.wrapBrick)("eo-icon"),Yp=(0,m.wrapBrick)("eo-page-title"),qp=(0,m.wrapBrick)("eo-main-view"),Xp=(0,m.wrapBrick)("eo-narrow-view"),{defineElement:Jp,property:Qp}=(0,u.createDecorators)();let Zp;var eh=new WeakMap,th=new WeakMap,ih=new WeakMap;class nh extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,eh,Gp(this)),(0,r.A)(this,th,(Vp(this),jp(this))),(0,r.A)(this,ih,(Kp(this),(0,yd.uniqueId)()))}get source(){return(0,c.A)(eh,this)}set source(e){(0,l.A)(eh,this,e)}get url(){return(0,c.A)(th,this)}set url(e){(0,l.A)(th,this,e)}render(){return h().createElement(p.Suspense,{fallback:h().createElement($p,{lib:"antd",icon:"loading-3-quarters",spinning:!0,className:Pp.loading})},h().createElement(ah,{rootId:(0,c.A)(ih,this),source:this.source,url:this.url}))}}function ah(e){let{rootId:t,source:i,url:n}=e;const a=(0,p.useMemo)((()=>i?async function(e){const t=await(0,Up.f)();return await t.parseView(e)}(i).catch((e=>(console.error("Failed to parse view:",e),null))):Promise.resolve(null)),[i]),r=(0,p.use)(a),s=(0,p.useMemo)((()=>r?(0,Ep.z)(r,{rootId:t,expanded:!0}).catch((e=>(console.error("Failed to convert view:",e),null))):Promise.resolve(null)),[r,t]),o=(0,p.use)(s),l=(0,p.useMemo)((()=>{var e;return null==r||null===(e=r.entry)||void 0===e||null===(e=e.defaultExport)||void 0===e?void 0:e.title}),[r]);return h().createElement(rh,{rootId:t,pageTitle:l,convertedResult:o,url:n})}function rh(e){let{rootId:t,pageTitle:i,convertedResult:n,url:a}=e;const r=(0,p.useRef)(null),s=(0,p.useRef)(null);return(0,p.useEffect)((()=>{const e=r.current;if(!e)return;const i=(0,Hp.d)(t),n=(0,On.unstable_createRoot)(e,{portal:i,supportsUseChildren:!0});return s.current=n,()=>{n.unmount(),i.remove(),s.current=null}}),[t]),(0,p.useEffect)((()=>{var e;if(!n)return;const{brick:t,context:i,functions:r,templates:o}=n;null===(e=s.current)||void 0===e||e.render(t,{context:i,functions:r,templates:o,url:a})}),[n,a]),h().createElement(Xp,{size:"large",className:Pp.container},h().createElement(qp,null,h().createElement(Yp,{slot:"pageTitle",pageTitle:i||wp(xp.UNTITLED)}),h().createElement("div",{className:Pp.main,ref:r,"data-root-id":t})))}Bp=nh,({e:[Gp,Vp,jp,Kp],c:[Zp,Fp]}=(0,d.A)(Bp,[Jp("ai-portal.preview-container",{shadowOptions:!1})],[[Qp({attribute:!1}),1,"source"],[Qp(),1,"url"]],0,void 0,m.ReactNextElement)),Fp();const sh="bricks/ai-portal/action-buttons";g.i18n.getFixedT(null,sh);var oh,lh=i(11816);let ch,dh,ph,hh,uh,mh,gh,bh,Ah;(0,g.initializeI18n)(sh,{en:{},zh:{}});const vh=(0,m.wrapBrick)("eo-icon"),fh=(0,m.wrapBrick)("eo-button"),{defineElement:Eh,property:xh,event:kh}=(0,u.createDecorators)();let wh;var yh=new WeakMap,Th=new WeakMap,Sh=new WeakMap,Nh=new WeakSet,Ch=new WeakMap;class Mh extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Nh),(0,r.A)(this,yh,dh(this)),(0,r.A)(this,Th,(ph(this),hh(this))),(0,r.A)(this,Sh,(uh(this),mh(this))),(0,r.A)(this,Ch,(Ah(this),e=>{this.activeKey=e?e.key:null,(0,o.A)(Nh,this,gh).emit(e)}))}get items(){return(0,c.A)(yh,this)}set items(e){(0,l.A)(yh,this,e)}get activeKey(){return(0,c.A)(Th,this)}set activeKey(e){(0,l.A)(Th,this,e)}render(){return h().createElement(_h,{items:this.items,activeKey:this.activeKey,onChange:(0,c.A)(Ch,this)})}}function _h(e){let{items:t,activeKey:i,onChange:n}=e;const[a,r]=(0,p.useState)(null!=i?i:null),s=(0,p.useRef)(!1);(0,p.useEffect)((()=>{r(null!=i?i:null)}),[i]),(0,p.useEffect)((()=>{var e;s.current?n(a&&null!==(e=null==t?void 0:t.find((e=>!e.hidden&&e.key===a)))&&void 0!==e?e:null):s.current=!0}),[a,t,n]);const o=(0,p.useMemo)((()=>null==t?void 0:t.filter((e=>!e.hidden&&!a||e.key===a))),[t,a]);return h().createElement("div",{className:"button-container"},null==o?void 0:o.map((e=>{const{text:t,icon:i,key:n}=e;return h().createElement(fh,{key:n,className:"action"+(a?" active":""),themeVariant:"elevo",type:"neutral",onClick:()=>{a||r(n)}},i?h().createElement(vh,(0,qi.A)({className:"icon"},i)):null,t,a?h().createElement(vh,{className:"remove",lib:"lucide",icon:"x",onClick:e=>{e.stopPropagation(),e.preventDefault(),r(null)}}):null)})))}oh=Mh,({e:[dh,ph,hh,uh,mh,gh,bh,Ah],c:[wh,ch]}=(0,d.A)(oh,[Eh("ai-portal.action-buttons",{styleTexts:[lh.A]})],[[xh({attribute:!1}),1,"items"],[xh(),1,"activeKey"],[kh({type:"change"}),1,"change",e=>(0,c.A)(Sh,e),(e,t)=>(0,l.A)(Sh,e,t)]],0,(e=>Ch.has((0,s.A)(e))),m.ReactNextElement)),ch();let Rh=function(e){return e.UN_START_STATUS="UN_START_STATUS",e.RUNNING_STATUS="RUNNING_STATUS",e.COMPLETED_STATUS="COMPLETED_STATUS",e.NEW_CHAT="NEW_CHAT",e}({});const Wh="bricks/ai-portal/goal-card-list",Ih={en:{UN_START_STATUS:"Not Start",RUNNING_STATUS:"Running",COMPLETED_STATUS:"Completed",NEW_CHAT:"New chat"},zh:{UN_START_STATUS:"未开始",RUNNING_STATUS:"运行中",COMPLETED_STATUS:"已完成",NEW_CHAT:"新对话"}},Dh=g.i18n.getFixedT(null,Wh);var Lh=i(46342),Oh=i(10335);let zh;(0,g.initializeI18n)(Wh,Ih);const Ph=(0,m.wrapBrick)("eo-icon"),Bh=(0,m.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),Uh=(0,m.wrapBrick)("eo-easyops-avatar"),Hh=(0,m.wrapBrick)("eo-button"),Fh={ready:"uncheck-status",working:"active-status",completed:"check-status"},Gh=[{key:"ready",icon:{icon:"uncheck-status",lib:"easyops",category:"colored-common"},text:Dh(Rh.UN_START_STATUS)},{key:"working",icon:{icon:"active-status",lib:"easyops",category:"colored-common"},text:Dh(Rh.RUNNING_STATUS)},{key:"completed",icon:{icon:"check-status",lib:"easyops",category:"colored-common"},text:Dh(Rh.COMPLETED_STATUS)}];function Vh(e){let{goalItem:t,idWidth:i,cardStyle:n,onStatusChange:a,onTitleChange:r,onClick:s,onNewChat:o,onAppendChild:l,onRevokeAppendChild:c,isActive:d}=e;const{state:u,id:m,title:g,conversations:b,owner:A,pending:v}=t,f=(0,p.useRef)(!1),E=(0,p.useCallback)((()=>{f.current=!0}),[]),x=(0,p.useCallback)((()=>{f.current=!1}),[]),[k,w]=(0,p.useState)(!1),y=(0,p.useCallback)((()=>{w(!0)}),[]),T=(0,p.useCallback)((e=>{w(!1);const t=e.currentTarget.textContent;!v||null!=t&&t.trim()?null!==t&&g!==t&&(null==r||r(t)):null==c||c()}),[v,g,c,r]),S=(0,p.useCallback)((e=>{f.current||"Enter"===e.key&&(e.preventDefault(),e.currentTarget.blur())}),[]),N=(0,p.useRef)(null);return(0,p.useEffect)((()=>{var e;v&&(null===(e=N.current)||void 0===e||e.focus())}),[v]),h().createElement("div",{className:Pn()("goal-item",t.state,{editing:k},{active:d}),style:{paddingLeft:24*(t.level+1)+"px",...n},onClick:v?void 0:s},h().createElement("div",{className:"start"},h().createElement(Bh,{actions:Gh,disabled:v,onActionClick:e=>{var t;t=e.detail,null==a||a(t.key)}},h().createElement(Ph,{className:"icon",lib:"easyops",category:"colored-common",icon:Fh[u],onClick:e=>e.stopPropagation()})),h().createElement("span",{className:"serial-number",style:{width:i}},"#",v?"":m),h().createElement("span",{className:"title",ref:N,onClick:e=>e.stopPropagation(),onFocus:y,onBlur:T,onKeyDown:S,onCompositionStart:E,onCompositionEnd:x,contentEditable:(C=!0,C?function(){if("boolean"!=typeof zh){const e=document.createElement("div");e.setAttribute("contenteditable","PLAINTEXT-ONLY"),zh="plaintext-only"===e.contentEditable}return zh}()?"plaintext-only":"true":"false"),suppressContentEditableWarning:!0},g)),h().createElement("div",{className:"end"},h().createElement("div",{className:"info"},h().createElement("div",{className:"message"},h().createElement(Ph,{lib:"easyops",category:"common",icon:"message"}),h().createElement("span",{className:"count"},b||0)),h().createElement(Uh,{nameOrInstanceId:null==A?void 0:A.instanceId,size:"small"})),h().createElement("div",{className:"operation",onClick:e=>e.stopPropagation()},0===t.level&&h().createElement(Hh,{className:"append-child",themeVariant:"elevo",type:"neutral",size:"small",onClick:l},h().createElement(Ph,{lib:"lucide",icon:"plus"})),!v&&h().createElement(Hh,{className:"new-chat",themeVariant:"elevo",type:"neutral",size:"small",onClick:o},Dh(Rh.NEW_CHAT)))));var C}var jh;let Kh,$h,Yh,qh,Xh,Jh,Qh,Zh,eu,tu,iu,nu,au,ru,su,ou,lu,cu,du,pu,hu,uu,mu,gu;(0,g.initializeI18n)(Wh,Ih);const{defineElement:bu,property:Au,event:vu,method:fu}=(0,u.createDecorators)(),Eu=(0,m.wrapBrick)("eo-icon"),xu=(0,p.forwardRef)(zu);let ku;var wu=new WeakMap,yu=new WeakMap,Tu=new WeakMap,Su=new WeakMap,Nu=new WeakSet,Cu=new WeakMap,Mu=new WeakMap,_u=new WeakMap,Ru=new WeakMap,Wu=new WeakMap,Iu=new WeakMap,Du=new WeakMap,Lu=new WeakMap;class Ou extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Nu),(0,r.A)(this,wu,(Kh(this),Yh(this))),(0,r.A)(this,yu,(qh(this),Xh(this))),(0,r.A)(this,Tu,(Jh(this),Qh(this))),(0,r.A)(this,Su,(Zh(this),eu(this))),(0,r.A)(this,Cu,(nu(this),e=>{(0,o.A)(Nu,this,tu).emit(e)})),(0,r.A)(this,Mu,au(this)),(0,r.A)(this,_u,(ou(this),e=>{(0,o.A)(Nu,this,ru).emit(e)})),(0,r.A)(this,Ru,lu(this)),(0,r.A)(this,Wu,(pu(this),e=>{(0,o.A)(Nu,this,cu).emit(e)})),(0,r.A)(this,Iu,hu(this)),(0,r.A)(this,Du,(gu(this),e=>{(0,o.A)(Nu,this,uu).emit(e)})),(0,r.A)(this,Lu,(0,p.createRef)())}get goalList(){return(0,c.A)(wu,this)}set goalList(e){(0,l.A)(wu,this,e)}get cardStyle(){return(0,c.A)(yu,this)}set cardStyle(e){(0,l.A)(yu,this,e)}get activeKey(){return(0,c.A)(Tu,this)}set activeKey(e){(0,l.A)(Tu,this,e)}appendChildDone(e,t){var i;null===(i=(0,c.A)(Lu,this).current)||void 0===i||i.appendChildDone(e,t)}render(){return h().createElement(xu,{ref:(0,c.A)(Lu,this),goalList:this.goalList,cardStyle:this.cardStyle,onTitleChange:(0,c.A)(Wu,this),onStatusChange:(0,c.A)(_u,this),onItemClick:(0,c.A)(Cu,this),onNewChat:(0,c.A)(Du,this),activeKey:this.activeKey})}}function zu(e,t){let{goalList:i,cardStyle:n,onTitleChange:a,onStatusChange:r,onItemClick:s,onNewChat:o,activeKey:l}=e;const[c,d]=(0,p.useState)(i);(0,p.useEffect)((()=>{d(i)}),[i]);const u=(e,t,i,n)=>{const a={...e,[t]:i};d(null==c?void 0:c.map((e=>e.instanceId===a.instanceId?a:e))),null==n||n(a)};(0,p.useImperativeHandle)(t,(()=>({appendChildDone:(e,t)=>{d((i=>null==i?void 0:i.map((i=>i.instanceId===e?{...t,level:i.level}:i))))}})),[]);const m=(0,p.useMemo)((()=>{var e;return 10*((null!==(e=null==c?void 0:c.reduce(((e,t)=>Math.max(e,t.id)),0))&&void 0!==e?e:0).toString().length+1)}),[c]);return c?h().createElement("div",{className:"goal-container"},null==c?void 0:c.map((e=>h().createElement(Vh,{key:e.instanceId,isActive:l===e.instanceId,goalItem:e,idWidth:m,cardStyle:n,onTitleChange:t=>((e,t)=>{u(t,"title",e,a)})(t,e),onStatusChange:t=>((e,t)=>{u(t,"state",e,r)})(t,e),onNewChat:()=>null==o?void 0:o(e),onClick:()=>null==s?void 0:s(e),onAppendChild:()=>(e=>{const t={instanceId:(0,yd.uniqueId)("pending-"),pending:!0,id:0,title:"",state:"ready",level:1,pendingParentId:e.instanceId};d((i=>{var n;const a=null!==(n=null==i?void 0:i.findIndex((t=>t.instanceId===e.instanceId)))&&void 0!==n?n:-1;if(-1===a)return i;const r=i.slice(a+1).findIndex((e=>0===e.level))+1;return 0===r?[...i,t]:[...i.slice(0,a+r),t,...i.slice(a+r)]}))})(e),onRevokeAppendChild:()=>{d((t=>null==t?void 0:t.filter((t=>t.instanceId!==e.instanceId))))}})))):h().createElement("div",{className:"loading"},h().createElement(Eu,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}jh=Ou,({e:[Yh,qh,Xh,Jh,Qh,Zh,eu,tu,iu,nu,au,ru,su,ou,lu,cu,du,pu,hu,uu,mu,gu,Kh],c:[ku,$h]}=(0,d.A)(jh,[bu("ai-portal.goal-card-list",{styleTexts:[Oh.A,Lh.A]})],[[Au({attribute:!1}),1,"goalList"],[Au({attribute:!1}),1,"cardStyle"],[Au(),1,"activeKey"],[vu({type:"item.click"}),1,"itemClickEvent",e=>(0,c.A)(Su,e),(e,t)=>(0,l.A)(Su,e,t)],[vu({type:"item.status.change"}),1,"itemStatusChangeEvent",e=>(0,c.A)(Mu,e),(e,t)=>(0,l.A)(Mu,e,t)],[vu({type:"item.title.change"}),1,"itemTitleChangeEvent",e=>(0,c.A)(Ru,e),(e,t)=>(0,l.A)(Ru,e,t)],[vu({type:"item.new.chat"}),1,"itemNewChatEvent",e=>(0,c.A)(Iu,e),(e,t)=>(0,l.A)(Iu,e,t)],[fu(),2,"appendChildDone"]],0,(e=>Lu.has((0,s.A)(e))),m.ReactNextElement)),$h();var Pu=i(62916);let Bu=function(e){return e.PROJECT_OVERALL="PROJECT_OVERALL",e}({});const Uu="bricks/ai-portal/project-conversations",Hu=g.i18n.getFixedT(null,Uu);var Fu,Gu=i(79286);let Vu,ju,Ku,$u,Yu,qu,Xu,Ju,Qu,Zu,em,tm,im,nm,am,rm,sm;(0,g.initializeI18n)(Uu,{en:{PROJECT_OVERALL:"Project overall"},zh:{PROJECT_OVERALL:"项目整体"}});const om=(0,m.wrapBrick)("eo-link"),lm=(0,m.wrapBrick)("eo-icon"),cm=(0,m.wrapBrick)("eo-easyops-avatar"),dm=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:pm,property:hm,event:um}=(0,u.createDecorators)();let mm;var gm=new WeakMap,bm=new WeakMap,Am=new WeakMap,vm=new WeakMap,fm=new WeakMap,Em=new WeakSet,xm=new WeakMap,km=new WeakMap,wm=new WeakMap;class ym extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Em),(0,r.A)(this,gm,ju(this)),(0,r.A)(this,bm,(Ku(this),$u(this))),(0,r.A)(this,Am,(Yu(this),qu(this))),(0,r.A)(this,vm,(Xu(this),Ju(this))),(0,r.A)(this,fm,(Qu(this),Zu(this))),(0,r.A)(this,xm,(im(this),e=>{(0,o.A)(Em,this,em).emit(e)})),(0,r.A)(this,km,nm(this)),(0,r.A)(this,wm,(sm(this),e=>{(0,o.A)(Em,this,am).emit(e)}))}get list(){return(0,c.A)(gm,this)}set list(e){(0,l.A)(gm,this,e)}get urlTemplate(){return(0,c.A)(bm,this)}set urlTemplate(e){(0,l.A)(bm,this,e)}get actions(){return(0,c.A)(Am,this)}set actions(e){(0,l.A)(Am,this,e)}get goals(){return(0,c.A)(vm,this)}set goals(e){(0,l.A)(vm,this,e)}render(){return h().createElement(Tm,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,goals:this.goals,onGoalClick:(0,c.A)(xm,this),onActionClick:(0,c.A)(wm,this)})}}function Tm(e){let{list:t,urlTemplate:i,actions:n,goals:a,onGoalClick:r,onActionClick:s}=e;return t?h().createElement("ul",null,t.map((e=>h().createElement("li",{className:"item",key:e.conversationId},h().createElement(Sm,{conversation:e,urlTemplate:i,actions:n,goals:a,onGoalClick:r,onActionClick:s}))))):h().createElement("div",{className:"loading"},h().createElement(lm,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}function Sm(e){var t;let{conversation:i,urlTemplate:n,actions:a,goals:r,onGoalClick:s,onActionClick:o}=e;const l=(0,p.useRef)(null),c=g.i18n.language.split("-")[0];(0,p.useEffect)((()=>{const e=l.current;if(!e)return;const t=e=>{e.stopPropagation(),e.preventDefault(),s(i)};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[i,s]);const[d,u]=(0,p.useState)(!1);return h().createElement(om,{className:Pn()("link",{"actions-active":d}),url:(0,Bl.Q)(n,i)},h().createElement("div",{className:"main"},h().createElement("div",{className:"header"},h().createElement(lm,{className:"icon",lib:"easyops",category:"common",icon:"clock"}),h().createElement("div",{className:"title"},i.title)),i.description&&h().createElement("div",{className:"description"},i.description)),r&&h().createElement("div",{className:Pn()("goal",{global:!i.goalInstanceId}),ref:l},i.goalInstanceId?null===(t=r.find((e=>e.instanceId===i.goalInstanceId)))||void 0===t?void 0:t.title:Hu(Bu.PROJECT_OVERALL)),h().createElement(cm,{className:"avatar",size:"small",nameOrInstanceId:i.username}),h().createElement("div",{className:`operations lang-${c}`},h().createElement(dm,{className:"actions",actions:a,onActionClick:e=>{o({action:e.detail,item:i})},onVisibleChange:e=>{u(e.detail)}}),h().createElement("div",{className:"time",title:(0,Pu.P)(1e3*i.startTime,Pu.c.full)},(0,Pu.P)(1e3*i.startTime,Pu.c.relative))))}Fu=ym,({e:[ju,Ku,$u,Yu,qu,Xu,Ju,Qu,Zu,em,tm,im,nm,am,rm,sm],c:[mm,Vu]}=(0,d.A)(Fu,[pm("ai-portal.project-conversations",{styleTexts:[Gu.A]})],[[hm({attribute:!1}),1,"list"],[hm(),1,"urlTemplate"],[hm({attribute:!1}),1,"actions"],[hm({attribute:!1}),1,"goals"],[um({type:"goal.click"}),1,"goalClick",e=>(0,c.A)(fm,e),(e,t)=>(0,l.A)(fm,e,t)],[um({type:"action.click"}),1,"actionClick",e=>(0,c.A)(km,e),(e,t)=>(0,l.A)(km,e,t)]],0,(e=>wm.has((0,s.A)(e))),m.ReactNextElement)),Vu();var Nm,Cm=i(23677);let Mm,_m,Rm,Wm,Im,Dm,Lm,Om,zm,Pm,Bm,Um,Hm,Fm,Gm;const Vm=(0,m.wrapBrick)("eo-link"),jm=(0,m.wrapBrick)("eo-icon"),Km=(0,m.wrapBrick)("eo-easyops-avatar"),$m=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:Ym,property:qm,event:Xm}=(0,u.createDecorators)();let Jm;var Qm=new WeakMap,Zm=new WeakMap,eg=new WeakMap,tg=new WeakMap,ig=new WeakSet,ng=new WeakMap,ag=new WeakMap,rg=new WeakMap;class sg extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,ig),(0,r.A)(this,Qm,_m(this)),(0,r.A)(this,Zm,(Rm(this),Wm(this))),(0,r.A)(this,eg,(Im(this),Dm(this))),(0,r.A)(this,tg,(Lm(this),Om(this))),(0,r.A)(this,ng,(Bm(this),Um(this))),(0,r.A)(this,ag,(Gm(this),e=>{(0,o.A)(ig,this,zm).emit(e)})),(0,r.A)(this,rg,(e=>{(0,o.A)(ig,this,Hm).emit(e)}))}get list(){return(0,c.A)(Qm,this)}set list(e){(0,l.A)(Qm,this,e)}get urlTemplate(){return(0,c.A)(Zm,this)}set urlTemplate(e){(0,l.A)(Zm,this,e)}get actions(){return(0,c.A)(eg,this)}set actions(e){(0,l.A)(eg,this,e)}render(){return h().createElement(og,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,onActionClick:(0,c.A)(ag,this),onItemClick:(0,c.A)(rg,this)})}}function og(e){let{list:t,urlTemplate:i,actions:n,onActionClick:a,onItemClick:r}=e;return t?h().createElement("ul",null,null==t?void 0:t.map((e=>h().createElement("li",{className:"item",key:e.instanceId},h().createElement(lg,{knowledge:e,urlTemplate:i,actions:n,onActionClick:a,onItemClick:r}))))):h().createElement("div",{className:"loading"},h().createElement(jm,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}function lg(e){let{knowledge:t,urlTemplate:i,actions:n,onActionClick:a,onItemClick:r}=e;const[s,o]=(0,p.useState)(!1);return h().createElement(Vm,{className:Pn()("link",{"actions-active":s}),url:(0,Bl.Q)(i,t),onClick:()=>null==r?void 0:r(t)},h().createElement("div",{className:"main"},h().createElement("div",{className:"header"},h().createElement(jm,{className:"icon",lib:"easyops",icon:"lightbulb",category:"common"}),h().createElement("span",{className:"title"},t.name),h().createElement(jm,{className:"attachment",lib:"lucide",icon:"paperclip"})),t.description&&h().createElement("div",{className:"description"},t.description)),h().createElement("div",{className:"time"},(0,Pu.P)(1e3*t.time,Pu.c.relative)),h().createElement("div",{className:"operations"},h().createElement($m,{className:"actions",actions:n,onActionClick:e=>{a({action:e.detail,item:t})},onVisibleChange:e=>{o(e.detail)}}),h().createElement(Km,{className:"avatar",size:"small",nameOrInstanceId:t.user})))}Nm=sg,({e:[_m,Rm,Wm,Im,Dm,Lm,Om,zm,Pm,Bm,Um,Hm,Fm,Gm],c:[Jm,Mm]}=(0,d.A)(Nm,[Ym("ai-portal.project-knowledges",{styleTexts:[Cm.A]})],[[qm({attribute:!1}),1,"list"],[qm(),1,"urlTemplate"],[qm({attribute:!1}),1,"actions"],[Xm({type:"action.click"}),1,"actionClick",e=>(0,c.A)(tg,e),(e,t)=>(0,l.A)(tg,e,t)],[Xm({type:"item.click"}),1,"itemClick",e=>(0,c.A)(ng,e),(e,t)=>(0,l.A)(ng,e,t)]],0,(e=>rg.has((0,s.A)(e))),m.ReactNextElement)),Mm();let cg=function(e){return e.STARTED_A_CHAT="STARTED_A_CHAT",e.CREATED_THIS_GOAL="CREATED_THIS_GOAL",e.CHANGED_THE_GOAL_TITLE="CHANGED_THE_GOAL_TITLE",e.CHANGED_THE_GOAL_DESCRIPTION="CHANGED_THE_GOAL_DESCRIPTION",e.CHANGED_THE_GOAL="CHANGED_THE_GOAL",e.DELETED_THIS_GOAL="DELETED_THIS_GOAL",e.DECOMPOSED_THIS_GOAL="DECOMPOSED_THIS_GOAL",e.SET_OWNER="SET_OWNER",e.REMOVED_GOAL_PARTICIPANTS="REMOVED_GOAL_PARTICIPANTS",e.ADDED_GOAL_PARTICIPANTS="ADDED_GOAL_PARTICIPANTS",e.COMMENTED="COMMENTED",e.COMMA="COMMA",e.SEMICOLON="SEMICOLON",e}({});const dg="bricks/ai-portal/activity-timeline",pg=g.i18n.getFixedT(null,dg);var hg,ug=i(14763);let mg,gg,bg,Ag,vg;(0,g.initializeI18n)(dg,{en:{STARTED_A_CHAT:"started a chat",CREATED_THIS_GOAL:"created this goal",CHANGED_THE_GOAL_TITLE:'changed the goal title to "{{ title }}"',CHANGED_THE_GOAL_DESCRIPTION:'changed the goal description to "{{ description }}"',CHANGED_THE_GOAL:"changed the goal",DELETED_THIS_GOAL:"deleted this goal",DECOMPOSED_THIS_GOAL:"decomposed this goal to {{ count }} sub-goal: ",DECOMPOSED_THIS_GOAL_plural:"decomposed this goal to {{ count }} sub-goals: ",SET_OWNER:"set {{ user }} as the owner",REMOVED_GOAL_PARTICIPANTS:"removed a goal participant: ",REMOVED_GOAL_PARTICIPANTS_plural:"removed {{ count }} goal participants: ",ADDED_GOAL_PARTICIPANTS:"added a goal participant: ",ADDED_GOAL_PARTICIPANTS_plural:"added {{ count }} goal participants: ",COMMENTED:"commented",COMMA:", ",SEMICOLON:"; "},zh:{STARTED_A_CHAT:"发起了对话",CREATED_THIS_GOAL:"创建了此目标",CHANGED_THE_GOAL_TITLE:"修改目标标题为 “{{ title }}”",CHANGED_THE_GOAL_DESCRIPTION:"修改目标描述为 “{{ description }}”",CHANGED_THE_GOAL:"修改了此目标",DELETED_THIS_GOAL:"删除了此目标",DECOMPOSED_THIS_GOAL:"将此目标分解为 {{ count }} 个子目标:",DECOMPOSED_THIS_GOAL_plural:"将此目标分解为 {{ count }} 个子目标:",SET_OWNER:"设定负责人为 {{ user }}",REMOVED_GOAL_PARTICIPANTS:"移除了目标参与成员:",ADDED_GOAL_PARTICIPANTS:"添加了目标参与成员:",COMMENTED:"评论",COMMA:",",SEMICOLON:";"}});const fg=(0,m.wrapBrick)("eo-link"),Eg=(0,m.wrapBrick)("eo-icon"),xg=(0,m.wrapBrick)("eo-easyops-avatar"),{defineElement:kg,property:wg}=(0,u.createDecorators)();let yg;var Tg=new WeakMap,Sg=new WeakMap;class Ng extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Tg,gg(this)),(0,r.A)(this,Sg,(bg(this),Ag(this))),vg(this)}get list(){return(0,c.A)(Tg,this)}set list(e){(0,l.A)(Tg,this,e)}get chatUrlTemplate(){return(0,c.A)(Sg,this)}set chatUrlTemplate(e){(0,l.A)(Sg,this,e)}render(){return h().createElement(Cg,{list:this.list,chatUrlTemplate:this.chatUrlTemplate})}}function Cg(e){let{list:t,chatUrlTemplate:i}=e;return t?h().createElement("ul",null,t.map(((e,t)=>{var n,a;return h().createElement("li",{className:"activity",key:t},h().createElement("div",{className:"guide-line"}),h().createElement("div",{className:"main"},h().createElement(xg,{className:"avatar",nameOrInstanceId:e.user_id,size:"xs"}),h().createElement("span",{className:"action"},e.user_name," ","start_conversation"===e.action_type?h().createElement(h().Fragment,null,h().createElement("span",null,pg(cg.STARTED_A_CHAT)),h().createElement(fg,{className:"conversation",url:(0,Bl.Q)(i,e),target:"_blank"},null===(n=e.metadata)||void 0===n?void 0:n.conversation_title),h().createElement(Eg,{className:"external-link-icon",lib:"lucide",icon:"external-link"})):"create_goal"===e.action_type?pg(cg.CREATED_THIS_GOAL):"edit_goal"===e.action_type?e.metadata.after.title?pg(cg.CHANGED_THE_GOAL_TITLE,e.metadata.after):e.metadata.after.description?pg(cg.CHANGED_THE_GOAL_DESCRIPTION,e.metadata.after):pg(cg.CHANGED_THE_GOAL):"delete_goal"===e.action_type?pg(cg.DELETED_THIS_GOAL):"decompose_goals"===e.action_type?`${pg(cg.DECOMPOSED_THIS_GOAL,{count:e.metadata.sub_goals_count})}${e.metadata.sub_goals.map((e=>e.title)).join(pg(cg.COMMA))}`:"alter_owner"===e.action_type?pg(cg.SET_OWNER,{user:e.metadata.after.owner.user_name}):"alter_user"===e.action_type?function(e){const t=[],i=[],n=new Set(e.metadata.before.users.map((e=>e.user_name)));for(const t of e.metadata.after.users)n.has(t.user_name)||i.push(t.user_name);const a=new Set(e.metadata.after.users.map((e=>e.user_name)));for(const i of e.metadata.before.users)a.has(i.user_name)||t.push(i.user_name);const r=[];return t.length>0&&r.push(pg(cg.REMOVED_GOAL_PARTICIPANTS,{count:t.length})+t.join(pg(cg.COMMA))),i.length>0&&r.push(pg(cg.ADDED_GOAL_PARTICIPANTS,{count:i.length})+i.join(pg(cg.COMMA))),r.join(pg(cg.SEMICOLON))}(e):"add_comment"===e.action_type?pg(cg.COMMENTED):e.action_type),h().createElement("span",{className:"time",title:(0,Pu.P)(e.time,Pu.c.full)},(0,Pu.P)(e.time,Pu.c.relative))),"add_comment"===e.action_type&&h().createElement("div",{className:"comment"},null===(a=e.metadata)||void 0===a?void 0:a.comment_content))}))):h().createElement("div",{className:"loading"},h().createElement(Eg,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}hg=Ng,({e:[gg,bg,Ag,vg],c:[yg,mg]}=(0,d.A)(hg,[kg("ai-portal.activity-timeline",{styleTexts:[ug.A]})],[[wg({attribute:!1}),1,"list"],[wg(),1,"chatUrlTemplate"]],0,void 0,m.ReactNextElement)),mg();var Mg=i(99126);let _g=function(e){return e.TERMINATE_THE_TASK="TERMINATE_THE_TASK",e}({});const Rg="bricks/ai-portal/chat-input",Wg=g.i18n.getFixedT(null,Rg);var Ig,Dg=i(84479);let Lg,Og,zg,Pg,Bg,Ug,Hg,Fg,Gg,Vg,jg,Kg,$g,Yg,qg,Xg,Jg,Qg,Zg,eb,tb,ib,nb,ab,rb;(0,g.initializeI18n)(Rg,{en:{TERMINATE_THE_TASK:"Terminate the task"},zh:{TERMINATE_THE_TASK:"终止任务"}});const sb={lib:"antd",icon:"loading-3-quarters",spinning:!0},ob={lib:"fa",prefix:"far",icon:"circle-stop"},lb=(0,m.wrapBrick)("eo-icon"),cb=(0,m.wrapBrick)("ai-portal.icon-button"),{defineElement:db,property:pb,event:hb}=(0,u.createDecorators)();let ub;var mb=new WeakMap,gb=new WeakMap,bb=new WeakMap,Ab=new WeakMap,vb=new WeakMap,fb=new WeakMap,Eb=new WeakMap,xb=new WeakSet,kb=new WeakMap,wb=new WeakMap,yb=new WeakMap,Tb=new WeakMap,Sb=new WeakMap;class Nb extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,xb),(0,r.A)(this,mb,Og(this)),(0,r.A)(this,gb,(zg(this),Pg(this))),(0,r.A)(this,bb,(Bg(this),Ug(this))),(0,r.A)(this,Ab,(Hg(this),Fg(this))),(0,r.A)(this,vb,(Gg(this),Vg(this))),(0,r.A)(this,fb,(jg(this),Kg(this))),(0,r.A)(this,Eb,($g(this),Yg(this))),(0,r.A)(this,kb,(Jg(this),e=>{(0,o.A)(xb,this,qg).emit(e)})),(0,r.A)(this,wb,Qg(this)),(0,r.A)(this,yb,(tb(this),e=>{(0,o.A)(xb,this,Zg).emit(e)})),(0,r.A)(this,Tb,ib(this)),(0,r.A)(this,Sb,(rb(this),()=>{(0,o.A)(xb,this,nb).emit()}))}get placeholder(){return(0,c.A)(mb,this)}set placeholder(e){(0,l.A)(mb,this,e)}get autoFocus(){return(0,c.A)(gb,this)}set autoFocus(e){(0,l.A)(gb,this,e)}get submitDisabled(){return(0,c.A)(bb,this)}set submitDisabled(e){(0,l.A)(bb,this,e)}get supportsTerminate(){return(0,c.A)(Ab,this)}set supportsTerminate(e){(0,l.A)(Ab,this,e)}get terminating(){return(0,c.A)(vb,this)}set terminating(e){(0,l.A)(vb,this,e)}get uploadOptions(){return(0,c.A)(fb,this)}set uploadOptions(e){(0,l.A)(fb,this,e)}render(){return h().createElement(Cb,{placeholder:this.placeholder,autoFocus:this.autoFocus,submitDisabled:this.submitDisabled,supportsTerminate:this.supportsTerminate,terminating:this.terminating,uploadOptions:this.uploadOptions,onMessageSubmit:(0,c.A)(kb,this),onChatSubmit:(0,c.A)(yb,this),onTerminate:(0,c.A)(Sb,this)})}}function Cb(e){let{placeholder:t,autoFocus:i,submitDisabled:n,supportsTerminate:a,terminating:r,uploadOptions:s,onMessageSubmit:o,onChatSubmit:l,onTerminate:c}=e;const d=(0,p.useRef)(null),u=(0,p.useRef)(null),[m,g]=(0,p.useState)(""),b=(0,p.useRef)(""),[A,v]=(0,p.useState)(!1),f=null==s?void 0:s.enabled,E=null==s?void 0:s.accept,{files:x,resetFiles:k,appendFiles:w,removeFile:y,hasFiles:T,allFilesDone:S,fileInfos:N,exceeded:C,paste:M}=(0,Ut.O)(s),_=(0,p.useRef)(null);(0,p.useEffect)((()=>{f||k()}),[f,k]),(0,p.useEffect)((()=>{var e;i&&!n&&(null===(e=u.current)||void 0===e||e.focus())}),[i,n]);const R=(0,p.useCallback)((e=>{!n&&e&&S&&(o(e),l({content:e,files:N}),b.current="",g(""),k())}),[S,n,o,l,N,k]),W=(0,p.useCallback)((e=>{R(e.currentTarget.value)}),[R]),I=(0,p.useCallback)((e=>{b.current=e.target.value,g(e.target.value)}),[]),D=(0,p.useCallback)((()=>{R(b.current)}),[R]);(0,p.useEffect)((()=>{if(T)return void v(!0);const e=null==d?void 0:d.current;if(!e)return;const t=new Mg.A((t=>{for(const i of t)i.target===e&&(i.contentBoxSize?i.contentBoxSize[0]?i.contentBoxSize[0].blockSize:i.contentBoxSize.blockSize:i.contentRect.height)>52&&v(!0)}));return t.observe(e),()=>{t.disconnect()}}),[T]),(0,p.useEffect)((()=>{m||T||v(!1)}),[m,T]);const L=(0,p.useCallback)((e=>{var t;for(const t of e.nativeEvent.composedPath())if(t instanceof HTMLTextAreaElement||t instanceof HTMLButtonElement)return;null===(t=u.current)||void 0===t||t.focus()}),[]),O=(0,p.useCallback)((e=>{var t;w(e),null===(t=u.current)||void 0===t||t.focus()}),[w]);return h().createElement(h().Fragment,null,h().createElement("div",{className:"container",onClick:L},h().createElement("div",{className:Pn()("box",{wrap:A})},h().createElement("div",{className:"input",ref:d},h().createElement(yt.e,{containerRef:d,ref:u,value:m,minRows:1,maxRows:4,borderSize:0,paddingSize:T?86:16,autoResize:!0,placeholder:t,submitWhen:"enter-without-shift",onSubmit:W,onChange:I,onPaste:M,style:{paddingTop:T?78:8}}),T&&h().createElement(Lt.C,{files:x,className:"condensed",onRemove:(e,t)=>{y(e),null==t||t.abort()},onAdd:()=>{var e;null===(e=_.current)||void 0===e||e.requestUpload()}})),h().createElement("div",{className:"toolbar"},f?h().createElement(h().Fragment,null,h().createElement(Dt.s,{ref:_,accept:E,disabled:C,onChange:e=>{var t;w(e),null===(t=u.current)||void 0===t||t.focus()}}),h().createElement("div",{className:"btn-divider"})):null,n&&a?h().createElement(h().Fragment,null,r?h().createElement(cb,{icon:sb,disabled:!0}):h().createElement(cb,{icon:ob,tooltip:Wg(_g.TERMINATE_THE_TASK),onClick:c})):h().createElement("button",{className:"btn-send",disabled:n||!m||!S,onClick:D},h().createElement(lb,{lib:"fa",icon:"arrow-up"}))))),h().createElement(Ht.A,{disabled:!f||C||(null==s?void 0:s.dragDisabled),uploadOptions:s,onFilesDropped:O}))}Ig=Nb,({e:[Og,zg,Pg,Bg,Ug,Hg,Fg,Gg,Vg,jg,Kg,$g,Yg,qg,Xg,Jg,Qg,Zg,eb,tb,ib,nb,ab,rb],c:[ub,Lg]}=(0,d.A)(Ig,[db("ai-portal.chat-input",{styleTexts:[Dg.A,Ot.A],shadowOptions:{delegatesFocus:!0}})],[[pb(),1,"placeholder"],[pb({type:Boolean}),1,"autoFocus"],[pb({type:Boolean}),1,"submitDisabled"],[pb({type:Boolean}),1,"supportsTerminate"],[pb({type:Boolean}),1,"terminating"],[pb({attribute:!1}),1,"uploadOptions"],[hb({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(Eb,e),(e,t)=>(0,l.A)(Eb,e,t)],[hb({type:"chat.submit"}),1,"chatSubmit",e=>(0,c.A)(wb,e),(e,t)=>(0,l.A)(wb,e,t)],[hb({type:"terminate"}),1,"terminate",e=>(0,c.A)(Tb,e),(e,t)=>(0,l.A)(Tb,e,t)]],0,(e=>Sb.has((0,s.A)(e))),m.ReactNextElement)),Lg();const Mb=i.p+"images/e47076cc.png";var _b,Rb=i(31653);let Wb;const{defineElement:Ib}=(0,u.createDecorators)();let Db;class Lb extends m.ReactNextElement{render(){return h().createElement("img",{className:"logo",alt:"Elevo",src:Mb,width:95,height:28})}}_b=Lb,[Db,Wb]=(0,d.A)(_b,[Ib("ai-portal.elevo-logo",{styleTexts:[Rb.A]})],[],0,void 0,m.ReactNextElement).c,Wb();let Ob=function(e){return e.WATCH_REPLAY="WATCH_REPLAY",e}({});const zb="bricks/ai-portal/show-case",Pb={en:{[Ob.WATCH_REPLAY]:"Watch replay"},zh:{[Ob.WATCH_REPLAY]:"查看回放"}},Bb=g.i18n.getFixedT(null,zb);var Ub,Hb=i(46122);let Fb,Gb,Vb,jb,Kb,$b,Yb;(0,g.initializeI18n)(zb,Pb);const qb=["purple","green","pink"],Xb=(0,m.wrapBrick)("eo-icon"),Jb=(0,m.wrapBrick)("eo-link"),{defineElement:Qb,property:Zb}=(0,u.createDecorators)();let eA;var tA=new WeakMap,iA=new WeakMap,nA=new WeakMap;class aA extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,tA,Gb(this)),(0,r.A)(this,iA,(Vb(this),jb(this))),(0,r.A)(this,nA,(Kb(this),$b(this))),Yb(this)}get caseTitle(){return(0,c.A)(tA,this)}set caseTitle(e){(0,l.A)(tA,this,e)}get summary(){return(0,c.A)(iA,this)}set summary(e){(0,l.A)(iA,this,e)}get url(){return(0,c.A)(nA,this)}set url(e){(0,l.A)(nA,this,e)}render(){return h().createElement(rA,{caseTitle:this.caseTitle,summary:this.summary,url:this.url})}}function rA(e){let{caseTitle:t,summary:i,url:n}=e;const a=(0,p.useMemo)((()=>{if(!t)return qb[0];let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const i=Math.abs(e)%qb.length;return qb[i]}),[t]);return h().createElement(Jb,{className:`link ${a}`,url:n},h().createElement("span",{className:"title"},t),h().createElement("span",{className:"description"},i),h().createElement("span",{className:"mask"}),h().createElement("span",{className:"button"},h().createElement(Xb,{lib:"easyops",icon:"replay"}),Bb(Ob.WATCH_REPLAY)))}Ub=aA,({e:[Gb,Vb,jb,Kb,$b,Yb],c:[eA,Fb]}=(0,d.A)(Ub,[Qb("ai-portal.show-case",{styleTexts:[Hb.A]})],[[Zb(),1,"caseTitle"],[Zb(),1,"summary"],[Zb(),1,"url"]],0,void 0,m.ReactNextElement)),Fb();var sA=i(22919);customElements.define("ai-portal.call-tool",(0,_t.createProviderClass)((async function(e,t){return(await sA.http.post(`api/gateway/logic.llm.aiops_service/api/v1/elevo/conversation/${e.conversationId}/step/${e.stepId}/view`,{params:t})).data})));const oA=i.p+"images/449e2e64.png",lA=i.p+"images/fc2c99bb.png",cA=i.p+"images/27bd64e1.png",dA=i.p+"images/c19e3f37.png";var pA,hA=i(19428);let uA,mA,gA,bA,AA;const{defineElement:vA,property:fA}=(0,u.createDecorators)();let EA;var xA=new WeakMap,kA=new WeakMap;class wA extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,xA,mA(this)),(0,r.A)(this,kA,(gA(this),bA(this))),AA(this)}get illustration(){return(0,c.A)(xA,this)}set illustration(e){(0,l.A)(xA,this,e)}get description(){return(0,c.A)(kA,this)}set description(e){(0,l.A)(kA,this,e)}render(){return h().createElement(yA,{illustration:this.illustration,description:this.description})}}function yA(e){let{illustration:t,description:i}=e;return h().createElement(h().Fragment,null,h().createElement("img",{src:TA(t),width:184,height:138}),h().createElement("p",null,i))}function TA(e){switch(e){case"goals":return oA;case"collaboration-spaces":return cA;case"serviceflows":return dA;default:return lA}}pA=wA,({e:[mA,gA,bA,AA],c:[EA,uA]}=(0,d.A)(pA,[vA("ai-portal.blank-state",{styleTexts:[hA.A]})],[[fA(),1,"illustration"],[fA(),1,"description"]],0,void 0,m.ReactNextElement)),uA();var SA,NA=i(81129);let CA,MA,_A;const{defineElement:RA,property:WA}=(0,u.createDecorators)();let IA;var DA=new WeakMap;class LA extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,DA,MA(this)),_A(this)}get variant(){return(0,c.A)(DA,this)}set variant(e){(0,l.A)(DA,this,e)}render(){return h().createElement(OA,null)}}function OA(){return h().createElement("slot",null)}SA=LA,({e:[MA,_A],c:[IA,CA]}=(0,d.A)(SA,[RA("ai-portal.sticky-container",{styleTexts:[NA.A]})],[[WA({render:!1}),1,"variant"]],0,void 0,m.ReactNextElement)),CA();var zA,PA=i(18338);let BA,UA,HA,FA,GA,VA,jA,KA,$A,YA,qA;const XA=(0,m.wrapBrick)("eo-link"),JA=(0,m.wrapBrick)("eo-icon"),{defineElement:QA,property:ZA}=(0,u.createDecorators)();let ev;var tv=new WeakMap,iv=new WeakMap,nv=new WeakMap,av=new WeakMap,rv=new WeakMap;class sv extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,tv,UA(this)),(0,r.A)(this,iv,(HA(this),FA(this))),(0,r.A)(this,nv,(GA(this),VA(this))),(0,r.A)(this,av,(jA(this),KA(this))),(0,r.A)(this,rv,($A(this),YA(this))),qA(this)}get cardTitle(){return(0,c.A)(tv,this)}set cardTitle(e){(0,l.A)(tv,this,e)}get description(){return(0,c.A)(iv,this)}set description(e){(0,l.A)(iv,this,e)}get url(){return(0,c.A)(nv,this)}set url(e){(0,l.A)(nv,this,e)}get avatar(){return(0,c.A)(av,this)}set avatar(e){(0,l.A)(av,this,e)}get avatarType(){return(0,c.A)(rv,this)}set avatarType(e){(0,l.A)(rv,this,e)}render(){return h().createElement(ov,{cardTitle:this.cardTitle,description:this.description,url:this.url,avatar:this.avatar,avatarType:this.avatarType})}}function ov(e){let{cardTitle:t,description:i,url:n,avatar:a,avatarType:r}=e;const s=(0,p.useRef)(null),o=hr(s),l=(0,p.useRef)(null),c=hr(l);return h().createElement(XA,{className:Pn()("card",{clickable:!!n}),url:n},h().createElement("div",{className:"header"},h().createElement("div",{className:"heading"},"image"!==r&&a?h().createElement(lv,a):h().createElement("div",{className:"avatar"}),h().createElement("div",{className:"title"},t)),h().createElement("div",{className:"actions",hidden:!c},h().createElement("slot",{name:"actions",ref:l}))),h().createElement("div",{className:"body"},i),h().createElement("div",{className:"footer",hidden:!o},h().createElement("slot",{name:"footer",ref:s})))}function lv(e){let{color:t,...i}=e;return h().createElement("div",{className:"avatar",style:t?{borderColor:`rgba(var(--theme-${t}-color-rgb-channel), 0.15)`,color:`var(--theme-${t}-color)`}:void 0},h().createElement(JA,i))}zA=sv,({e:[UA,HA,FA,GA,VA,jA,KA,$A,YA,qA],c:[ev,BA]}=(0,d.A)(zA,[QA("ai-portal.elevo-card",{styleTexts:[PA.A]})],[[ZA(),1,"cardTitle"],[ZA(),1,"description"],[ZA(),1,"url"],[ZA({attribute:!1}),1,"avatar"],[ZA(),1,"avatarType"]],0,void 0,m.ReactNextElement)),BA();const cv=window.devicePixelRatio||1,dv=40,pv=12,hv=36*Math.PI/180,uv=pv*(1-Math.sin(hv)),mv=pv*Math.cos(hv),gv=(dv-2*uv)*Math.tan(hv),bv=mv+gv/2;var Av,vv=i(29511);let fv,Ev,xv,kv,wv,yv,Tv,Sv,Nv;const{defineElement:Cv,property:Mv,event:_v}=(0,u.createDecorators)();let Rv;var Wv=new WeakMap,Iv=new WeakMap,Dv=new WeakMap,Lv=new WeakSet,Ov=new WeakMap;class zv extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Lv),(0,r.A)(this,Wv,Ev(this)),(0,r.A)(this,Iv,(xv(this),kv(this))),(0,r.A)(this,Dv,(wv(this),yv(this))),(0,r.A)(this,Ov,(Nv(this),e=>{this.activeTab=e.id,(0,o.A)(Lv,this,Tv).emit(e)}))}get tabs(){return(0,c.A)(Wv,this)}set tabs(e){(0,l.A)(Wv,this,e)}get activeTab(){return(0,c.A)(Iv,this)}set activeTab(e){(0,l.A)(Iv,this,e)}render(){return h().createElement(Pv,{tabs:this.tabs,activeTab:this.activeTab,onTabClick:(0,c.A)(Ov,this)})}}function Pv(e){let{tabs:t,activeTab:i,onTabClick:n}=e;const a=(0,p.useRef)(null),r=(0,p.useRef)(null),s=(0,p.useRef)(null);return(0,p.useEffect)((()=>{const e=a.current,i=r.current,n=s.current;if(!(e&&i&&n&&null!=t&&t.length))return;const o=i.getContext("2d");if(!o)return;let l,c;const d=new Mg.A((t=>{for(const i of t)if(i.target===e){const e=Bv(i,"width"),t=Bv(i,"height");l=[e,t]}const a=Array.from(n.querySelectorAll(".tab")),r=a.find((e=>e.classList.contains("active")));if(!r)return;const s=r.getBoundingClientRect().width,d=0===a.indexOf(r);let p=0;if(!d){const e=n.getBoundingClientRect().left,t=r.getBoundingClientRect().left;p=t-e}c&&cancelAnimationFrame(c),c=requestAnimationFrame((()=>{l&&function(e,t,i,n,a,r,s){e.width=i*cv,e.height=n*cv,e.style.width=`${i}px`,e.style.height=`${n}px`,t.scale(cv,cv),t.clearRect(0,0,i,n),t.fillStyle="rgba(255,255,255,0.5)";const o=t.createLinearGradient(0,0,0,n);o.addColorStop(0,"rgba(255,255,255,0.9)"),o.addColorStop(1,"rgba(255,255,255,0.4)"),t.lineWidth=1,t.strokeStyle=o;const l=i-1,c=n-1;if(t.translate(.5,.5),t.beginPath(),a)t.moveTo(0,pv),t.arcTo(0,0,pv,0,pv);else{t.moveTo(0,52),t.arcTo(0,dv,pv,dv,pv);const e=r-bv;t.lineTo(e,dv),t.arc(e,28,pv,Math.PI/2,hv,!0),t.lineTo(e+mv+gv,uv),t.arc(e+2*bv,pv,pv,Math.PI+hv,1.5*Math.PI,!1)}const d=r+s-bv;t.lineTo(d,0),t.arc(d,pv,pv,1.5*Math.PI,2*Math.PI-hv,!1),t.lineTo(d+mv+gv,dv-uv),t.arc(d+2*bv,28,pv,Math.PI-hv,Math.PI/2,!0),t.lineTo(l-pv,dv),t.arcTo(l,dv,l,52,pv),t.lineTo(l,c-pv),t.arcTo(l,c,l-pv,c,pv),t.lineTo(pv,c),t.arcTo(0,c,0,c-pv,pv),t.closePath(),t.fill(),t.stroke()}(i,o,l[0],l[1],d,p,s)}))}));return d.observe(e),d.observe(n),()=>{d.disconnect(),c&&cancelAnimationFrame(c)}}),[t,i]),h().createElement("div",{className:"container",ref:a},h().createElement("canvas",{className:"bg",ref:r}),h().createElement("div",{className:"header"},h().createElement("ul",{className:"tabs",ref:s},null==t?void 0:t.map((e=>h().createElement("li",{key:e.id,part:"tab",className:Pn()("tab",{active:e.id===i})},h().createElement("a",{onClick:()=>n(e)},e.label))))),h().createElement("div",{className:"toolbar"},h().createElement("slot",{name:"toolbar"}))),h().createElement("div",{className:"body"},h().createElement("slot",null)))}function Bv(e,t){const i="height"===t?"blockSize":"inlineSize";return e.contentBoxSize?e.contentBoxSize[0]?e.contentBoxSize[0][i]:e.contentBoxSize[i]:e.contentRect[t]}Av=zv,({e:[Ev,xv,kv,wv,yv,Tv,Sv,Nv],c:[Rv,fv]}=(0,d.A)(Av,[Cv("ai-portal.flow-tabs",{styleTexts:[vv.A]})],[[Mv({attribute:!1}),1,"tabs"],[Mv({attribute:!1}),1,"activeTab"],[_v({type:"tab.click"}),1,"tabClick",e=>(0,c.A)(Dv,e),(e,t)=>(0,l.A)(Dv,e,t)]],0,(e=>Ov.has((0,s.A)(e))),m.ReactNextElement)),fv();let Uv=function(e){return e.ADD_STAGE="ADD_STAGE",e.PLEASE_ENTER_NAME="PLEASE_ENTER_NAME",e.UNASSIGNED="UNASSIGNED",e.DELETE_STAGE="DELETE_STAGE",e.DELETE_STAGE_TIPS="DELETE_STAGE_TIPS",e.DELETE="DELETE",e.ADD_ACTIVITY="ADD_ACTIVITY",e.STAGE_NAME_EXISTS="STAGE_NAME_EXISTS",e.ACTIVITY_NAME_EXISTS="ACTIVITY_NAME_EXISTS",e}({});const Hv="bricks/ai-portal/stage-flow",Fv={en:{[Uv.ADD_STAGE]:"Add stage",[Uv.PLEASE_ENTER_NAME]:"Please enter name",[Uv.UNASSIGNED]:"Unassigned",[Uv.DELETE_STAGE]:"Delete stage",[Uv.DELETE_STAGE_TIPS]:'Are you sure you want to delete stage "{{ name }}"?',[Uv.DELETE]:"Delete",[Uv.ADD_ACTIVITY]:"Add activity",[Uv.STAGE_NAME_EXISTS]:'Stage with name "{{ name }}" already exists.',[Uv.ACTIVITY_NAME_EXISTS]:'Activity with name "{{ name }}" already exists.'},zh:{[Uv.ADD_STAGE]:"添加阶段",[Uv.PLEASE_ENTER_NAME]:"请输入名称",[Uv.UNASSIGNED]:"未设置",[Uv.DELETE_STAGE]:"删除阶段",[Uv.DELETE_STAGE_TIPS]:"您确定要删除阶段 “{{ name }}” 吗?",[Uv.DELETE]:"删除",[Uv.ADD_ACTIVITY]:"添加活动",[Uv.STAGE_NAME_EXISTS]:'阶段名称 "{{ name }}" 已存在。',[Uv.ACTIVITY_NAME_EXISTS]:'活动名称 "{{ name }}" 已存在。'}},Gv=g.i18n.getFixedT(null,Hv);var Vv,jv=i(66489);let Kv,$v,Yv,qv,Xv,Jv,Qv,Zv,ef,tf,nf,af,rf,sf,of,lf,cf,df,pf,hf;(0,g.initializeI18n)(Hv,Fv);const uf=(0,m.wrapBrick)("eo-icon"),mf=(0,m.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"}),gf=(0,m.wrapBrick)("eo-input",{onChange:"change"}),bf=(0,_t.unwrapProvider)("basic.show-dialog"),{defineElement:Af,property:vf,event:ff,method:Ef}=(0,u.createDecorators)(),xf=(0,p.forwardRef)(Lf);let kf;var wf=new WeakMap,yf=new WeakMap,Tf=new WeakMap,Sf=new WeakMap,Nf=new WeakSet,Cf=new WeakMap,Mf=new WeakMap,_f=new WeakMap,Rf=new WeakMap,Wf=new WeakMap,If=new WeakMap;class Df extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Nf),(0,r.A)(this,wf,(Kv(this),Yv(this))),(0,r.A)(this,yf,(qv(this),Xv(this))),(0,r.A)(this,Tf,(Jv(this),Qv(this))),(0,r.A)(this,Sf,(Zv(this),ef(this))),(0,r.A)(this,Cf,(af(this),e=>{(0,o.A)(Nf,this,tf).emit(e)})),(0,r.A)(this,Mf,rf(this)),(0,r.A)(this,_f,(lf(this),e=>{(0,o.A)(Nf,this,sf).emit({stage:e})})),(0,r.A)(this,Rf,cf(this)),(0,r.A)(this,Wf,(hf(this),e=>{(0,o.A)(Nf,this,df).emit(e)})),(0,r.A)(this,If,(0,p.createRef)())}get spec(){return(0,c.A)(wf,this)}set spec(e){(0,l.A)(wf,this,e)}get aiEmployees(){return(0,c.A)(yf,this)}set aiEmployees(e){(0,l.A)(yf,this,e)}get readOnly(){return(0,c.A)(Tf,this)}set readOnly(e){(0,l.A)(Tf,this,e)}addActivity(e,t){var i;null===(i=(0,c.A)(If,this).current)||void 0===i||i.addActivity(e,t)}editActivity(e,t,i){var n;null===(n=(0,c.A)(If,this).current)||void 0===n||n.editActivity(e,t,i)}deleteActivity(e,t){var i;null===(i=(0,c.A)(If,this).current)||void 0===i||i.deleteActivity(e,t)}render(){return h().createElement(xf,{ref:(0,c.A)(If,this),spec:this.spec,aiEmployees:this.aiEmployees,readOnly:this.readOnly,onChange:(0,c.A)(Cf,this),onAddActivity:(0,c.A)(_f,this),onEditActivity:(0,c.A)(Wf,this)})}}function Lf(e,t){let{spec:i,aiEmployees:n,readOnly:a,onChange:r,onAddActivity:s,onEditActivity:o}=e;const[l,c]=(0,p.useState)(i),[d,u]=(0,p.useState)(!1),m=(0,p.useRef)(!0);(0,p.useEffect)((()=>{c(i)}),[i]),(0,p.useEffect)((()=>{m.current?m.current=!1:l&&r(l)}),[l,r]);const g=(0,p.useCallback)((e=>{if(!e)return Gv(Uv.UNASSIGNED);const t=null==n?void 0:n.find((t=>t.employeeId===e));return t?t.name:e}),[n]);return(0,p.useImperativeHandle)(t,(()=>({addActivity(e,t){c((i=>{var n;const a=null!=i?i:[],r=a.findIndex((t=>t.name===e.name));if(-1===r)return a;const s={...a[r]},o=null!==(n=s.serviceFlowActivities)&&void 0!==n?n:[];if(o.find((e=>e.name===t.name)))return bf({type:"warn",content:Gv(Uv.ACTIVITY_NAME_EXISTS,{name:t.name})}),a;const l=[...o,t];s.serviceFlowActivities=l;const c=[...a];return c[r]=s,c}))},editActivity(e,t,i){c((n=>{var a;const r=null!=n?n:[],s=r.findIndex((t=>t.name===e.name));if(-1===s)return r;const o={...r[s]},l=null!==(a=o.serviceFlowActivities)&&void 0!==a?a:[];if(l.find(((e,n)=>e.name===t.name&&n!==i)))return bf({type:"warn",content:Gv(Uv.ACTIVITY_NAME_EXISTS,{name:t.name})}),r;const c=[...l];if(i<0||i>=c.length)return r;c[i]=t,o.serviceFlowActivities=c;const d=[...r];return d[s]=o,d}))},deleteActivity(e,t){c((i=>{var n;const a=null!=i?i:[],r=a.findIndex((t=>t.name===e.name));if(-1===r)return a;const s={...a[r]},o=[...null!==(n=s.serviceFlowActivities)&&void 0!==n?n:[]];if(t<0||t>=o.length)return a;o.splice(t,1),s.serviceFlowActivities=o;const l=[...a];return l[r]=s,l}))}})),[]),h().createElement("div",{className:"container"},h().createElement("ul",{className:"nav"},null==l?void 0:l.map(((e,t)=>h().createElement(zf,{key:t,stage:e,readOnly:a,otherStageNames:l.filter((t=>t!==e)).map((e=>e.name)),onNameChange:i=>{c((n=>{const a=[...null!=n?n:[]];return a[t]={...e,name:i},a}))},onDelete:()=>{c((e=>(null!=e?e:[]).filter(((e,i)=>i!==t))))}}))),d&&h().createElement("li",{className:"nav-item pending"},h().createElement(Of,{onDone:e=>{u(!1),e&&c((t=>{const i=null!=t?t:[];return i.find((t=>t.name===e))?(bf({type:"warn",content:Gv(Uv.STAGE_NAME_EXISTS,{name:e})}),i):[...i,{name:e}]}))}})),!a&&h().createElement("li",{className:"nav-add"},h().createElement("button",{className:"btn-add-stage",onClick:()=>u(!0)},h().createElement(uf,{lib:"antd",icon:"plus",className:"plus"}),Gv(Uv.ADD_STAGE)))),h().createElement("div",{className:"lanes"},null==l?void 0:l.map(((e,t)=>{var i;return h().createElement("ul",{className:"lane",key:t},null===(i=e.serviceFlowActivities)||void 0===i?void 0:i.map(((t,i)=>h().createElement("li",{key:i},h().createElement("div",{className:"activity",onClick:()=>{a||o({stage:e,activity:t,activityIndex:i})}},h().createElement("div",{className:"title"},t.name),h().createElement("div",{className:"assignee"},h().createElement(uf,{lib:"antd",icon:"user",className:"assignee-icon"}),g(t.aiEmployeeId)))))),!a&&h().createElement("li",null,h().createElement("button",{className:"btn-add-activity",onClick:()=>s(e)},h().createElement(uf,{lib:"antd",icon:"plus"}),Gv(Uv.ADD_ACTIVITY))))}))))}function Of(e){let{onDone:t}=e;const i=(0,p.useRef)(!1);return h().createElement("input",{className:"input-new-stage",type:"text",placeholder:Gv(Uv.PLEASE_ENTER_NAME),autoFocus:!0,onCompositionStart:()=>{i.current=!0},onCompositionEnd:()=>{i.current=!1},onKeyDown:e=>{if(!i.current)if("Enter"===e.key){e.preventDefault();const i=e.target.value.trim();t(i)}else"Escape"===e.key&&(e.preventDefault(),t(""))},onBlur:e=>{const i=e.target.value.trim();t(i)}})}function zf(e){let{stage:t,otherStageNames:i,readOnly:n,onNameChange:a,onDelete:r}=e;const s=(0,p.useRef)(!1),o=(0,p.useRef)(null);return n?h().createElement("li",{className:"nav-item"},h().createElement("span",{className:"nav-link"},h().createElement("span",null,t.name))):h().createElement("li",{className:"nav-item"},h().createElement(mf,{trigger:"click",placement:"bottom",sync:"width",arrow:!1,distance:8,themeVariant:"elevo",ref:o},h().createElement("button",{className:"nav-link",slot:"anchor"},h().createElement("span",null,t.name)),h().createElement("div",{className:"stage-settings"},h().createElement(gf,{value:t.name,themeVariant:"elevo",onCompositionStart:()=>{s.current=!0},onCompositionEnd:()=>{s.current=!1},onBlur:e=>{var n;const r=null===(n=e.currentTarget.value)||void 0===n?void 0:n.trim();r&&r!==t.name?i.includes(r)?(bf({type:"warn",content:Gv(Uv.STAGE_NAME_EXISTS,{name:r})}),e.currentTarget.value=t.name):a(r):r||(e.currentTarget.value=t.name)},onKeyDown:e=>{s.current||"Enter"===e.key&&(e.preventDefault(),o.current.active=!1)}}),h().createElement("div",{className:"divider"}),h().createElement("button",{onClick:async()=>{o.current.active=!1,await bf({type:"delete",title:Gv(Uv.DELETE_STAGE),content:Gv(Uv.DELETE_STAGE_TIPS,{name:t.name})}),r(t)}},Gv(Uv.DELETE)))))}Vv=Df,({e:[Yv,qv,Xv,Jv,Qv,Zv,ef,tf,nf,af,rf,sf,of,lf,cf,df,pf,hf,Kv],c:[kf,$v]}=(0,d.A)(Vv,[Af("ai-portal.stage-flow",{styleTexts:[jv.A]})],[[vf({attribute:!1}),1,"spec"],[vf({attribute:!1}),1,"aiEmployees"],[vf({type:Boolean}),1,"readOnly"],[ff({type:"change"}),1,"change",e=>(0,c.A)(Sf,e),(e,t)=>(0,l.A)(Sf,e,t)],[ff({type:"add.activity"}),1,"addActivity",e=>(0,c.A)(Mf,e),(e,t)=>(0,l.A)(Mf,e,t)],[ff({type:"edit.activity"}),1,"editActivity",e=>(0,c.A)(Rf,e),(e,t)=>(0,l.A)(Rf,e,t)],[Ef(),2,"addActivity"],[Ef(),2,"editActivity"],[Ef(),2,"deleteActivity"]],0,(e=>If.has((0,s.A)(e))),m.ReactNextElement)),$v();var Pf=i(65100);const Bf=e=>p.createElement("svg",(0,qi.A)({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",stroke:"currentColor","aria-hidden":"true",viewBox:"0 0 20 26"},e),p.createElement("g",{fillRule:"evenodd"},p.createElement("path",{d:"M12 9H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1zm0 10H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1zM10 7v9"}),p.createElement("path",{strokeLinecap:"round",d:"M17.112 16.112h-4.224"})));var Uf,Hf=i(625);let Ff,Gf,Vf,jf,Kf,$f,Yf,qf,Xf;const Jf=(0,m.wrapBrick)("eo-icon"),{defineElement:Qf,property:Zf,event:eE}=(0,u.createDecorators)();let tE;var iE=new WeakMap,nE=new WeakMap,aE=new WeakMap,rE=new WeakSet,sE=new WeakMap;class oE extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,rE),(0,r.A)(this,iE,Gf(this)),(0,r.A)(this,nE,(Vf(this),jf(this))),(0,r.A)(this,aE,(Kf(this),$f(this))),(0,r.A)(this,sE,(Xf(this),e=>{var t;null===(t=(0,o.A)(rE,this,Yf))||void 0===t||t.emit(e)}))}get spec(){return(0,c.A)(iE,this)}set spec(e){(0,l.A)(iE,this,e)}get activeActivityId(){return(0,c.A)(nE,this)}set activeActivityId(e){(0,l.A)(nE,this,e)}render(){return h().createElement(lE,{spec:this.spec,activeActivityId:this.activeActivityId,onActiveChange:(0,c.A)(sE,this)})}}function lE(e){let{spec:t,activeActivityId:i,onActiveChange:n}=e;const[a,r]=(0,p.useState)(i||null);return(0,p.useEffect)((()=>{r(i||null)}),[i]),h().createElement("div",{className:"container"},h().createElement("ul",{className:"nav"},null==t?void 0:t.map(((e,t)=>h().createElement("li",{key:t,className:"nav-item"},h().createElement("div",{className:"nav-content"},h().createElement("span",{className:"icon"},h().createElement(Bf,null)),h().createElement("div",{className:"title"},e.name)))))),h().createElement("div",{className:"lanes"},null==t?void 0:t.map(((e,t)=>{var i;return h().createElement("ul",{className:"lane",key:t},null===(i=e.serviceFlowActivities)||void 0===i?void 0:i.map(((e,t)=>h().createElement("li",{key:t},h().createElement("div",{className:Pn()("activity",cE(e.state),{active:a&&e.taskId===a}),onClick:()=>{e.taskId&&a!==e.taskId&&(r(e.taskId),n(e.taskId))}},h().createElement(Jf,(0,qi.A)({},(0,Hf.W)(e.state),{className:"icon"})),h().createElement("div",{className:"title"},e.name),null!=e.startTime&&null!=e.endTime&&h().createElement(dE,{startTime:e.startTime,endTime:e.endTime,state:e.state}))))))}))))}function cE(e){switch(e){case"input-required":return"paused";case"completed":return"completed";case"failed":return"failed";case"working":return"working";default:return"default"}}function dE(e){let{startTime:t,endTime:i,state:n}=e;const[a,r]=(0,p.useState)(i),s=null!=t&&null==i&&"working"===n;return(0,p.useEffect)((()=>{null!=i&&r(i)}),[i]),(0,p.useEffect)((()=>{if(s){const e=()=>{r(Date.now()/1e3)};e();const t=setInterval(e,1e3);return()=>clearInterval(t)}}),[s]),null==t||null==a?null:h().createElement("div",{className:"duration"},function(e){const t=Math.ceil(e),i=Math.floor(t/60),n=t%60;return`${String(i).padStart(2,"0")}:${String(n).padStart(2,"0")}`}(a-t))}Uf=oE,({e:[Gf,Vf,jf,Kf,$f,Yf,qf,Xf],c:[tE,Ff]}=(0,d.A)(Uf,[Qf("ai-portal.running-flow",{styleTexts:[Pf.A]})],[[Zf({attribute:!1}),1,"spec"],[Zf(),1,"activeActivityId"],[eE({type:"active.change"}),1,"activeChange",e=>(0,c.A)(aE,e),(e,t)=>(0,l.A)(aE,e,t)]],0,(e=>sE.has((0,s.A)(e))),m.ReactNextElement)),Ff();let pE=function(e){return e.MESSAGE_LIST="MESSAGE_LIST",e.NO_NEW_MESSAGE="NO_NEW_MESSAGE",e.MARK_ALL_READ="MARK_ALL_READ",e.ENTER_MESSAGE_CENTER="ENTER_MESSAGE_CENTER",e}({});const hE="bricks/ai-portal/notice-dropdown",uE=g.i18n.getFixedT(null,hE);var mE=i(9884);const gE=i.p+"images/0155287e.svg",bE=i.p+"images/218d5865.svg",AE=i.p+"images/dcee4821.svg",vE=i.p+"images/0e89dec0.svg";var fE;let EE,xE,kE,wE,yE,TE,SE,NE,CE,ME,_E,RE,WE,IE,DE,LE,OE,zE,PE,BE,UE,HE,FE,GE,VE,jE,KE;(0,g.initializeI18n)(hE,{en:{MESSAGE_LIST:"Message List",NO_NEW_MESSAGE:"No new messages for now",MARK_ALL_READ:"Mark all as read",ENTER_MESSAGE_CENTER:"Enter Message Center"},zh:{MESSAGE_LIST:"消息列表",NO_NEW_MESSAGE:"暂无新消息",MARK_ALL_READ:"全部已读",ENTER_MESSAGE_CENTER:"进入消息中心"}});const{defineElement:$E,property:YE,event:qE}=(0,u.createDecorators)(),XE=(0,m.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"}),JE=(0,m.wrapBrick)("eo-icon"),QE=(0,m.wrapBrick)("eo-link"),ZE=(0,m.wrapBrick)("eo-button"),ex=(0,m.wrapBrick)("eo-counter-badge"),tx=(0,m.wrapBrick)("ai-portal.icon-button");let ix;var nx=new WeakMap,ax=new WeakMap,rx=new WeakMap,sx=new WeakMap,ox=new WeakMap,lx=new WeakMap,cx=new WeakMap,dx=new WeakMap,px=new WeakMap,hx=new WeakMap,ux=new WeakSet,mx=new WeakMap,gx=new WeakMap,bx=new WeakMap;class Ax extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,ux),(0,r.A)(this,nx,xE(this)),(0,r.A)(this,ax,(kE(this),wE(this))),(0,r.A)(this,rx,(yE(this),TE(this))),(0,r.A)(this,sx,(SE(this),NE(this))),(0,r.A)(this,ox,(CE(this),ME(this))),(0,r.A)(this,lx,(_E(this),RE(this))),(0,r.A)(this,cx,(WE(this),IE(this))),(0,r.A)(this,dx,(DE(this),LE(this))),(0,r.A)(this,px,(OE(this),zE(this))),(0,r.A)(this,hx,(PE(this),BE(this))),(0,r.A)(this,mx,(FE(this),GE(this))),(0,r.A)(this,gx,(KE(this),e=>{(0,o.A)(ux,this,UE).emit(e)})),(0,r.A)(this,bx,(()=>{(0,o.A)(ux,this,VE).emit()}))}get dataSource(){return(0,c.A)(nx,this)}set dataSource(e){(0,l.A)(nx,this,e)}get popoverPlacement(){return(0,c.A)(ax,this)}set popoverPlacement(e){(0,l.A)(ax,this,e)}get emptyText(){return(0,c.A)(rx,this)}set emptyText(e){(0,l.A)(rx,this,e)}get notifyCenterUrl(){return(0,c.A)(sx,this)}set notifyCenterUrl(e){(0,l.A)(sx,this,e)}get urlTemplate(){return(0,c.A)(ox,this)}set urlTemplate(e){(0,l.A)(ox,this,e)}get urlTarget(){return(0,c.A)(lx,this)}set urlTarget(e){(0,l.A)(lx,this,e)}get dropdownMaxWidth(){return(0,c.A)(cx,this)}set dropdownMaxWidth(e){(0,l.A)(cx,this,e)}get dropdownContentStyle(){return(0,c.A)(dx,this)}set dropdownContentStyle(e){(0,l.A)(dx,this,e)}get hideNotifyCenterButton(){return(0,c.A)(px,this)}set hideNotifyCenterButton(e){(0,l.A)(px,this,e)}render(){return h().createElement(vx,{dataSource:this.dataSource,popoverPlacement:this.popoverPlacement,emptyText:this.emptyText,onNoticeClick:(0,c.A)(gx,this),urlTemplate:this.urlTemplate,dropdownMaxWidth:this.dropdownMaxWidth,notifyCenterUrl:this.notifyCenterUrl,dropdownContentStyle:this.dropdownContentStyle,onMarkAllRead:(0,c.A)(bx,this),hideNotifyCenterButton:this.hideNotifyCenterButton,urlTarget:this.urlTarget})}}function vx(e){var t;let{dataSource:i=[],popoverPlacement:n,emptyText:a,notifyCenterUrl:r,urlTemplate:s,dropdownMaxWidth:o,dropdownContentStyle:l,onNoticeClick:c,onMarkAllRead:d,hideNotifyCenterButton:u,urlTarget:m}=e;const[g,b]=(0,p.useState)(!1),A=(0,p.useRef)(null),v=(0,p.useCallback)((e=>{b(e.detail)}),[]),f=(0,p.useCallback)((()=>{b(!1)}),[]),E=(0,p.useCallback)((e=>{c(e)}),[c]),x=(0,p.useCallback)((()=>{d()}),[d]);return(0,p.useEffect)((()=>{if(!g)return;const e=e=>{var t;((null===(t=e.composedPath)||void 0===t?void 0:t.call(e))||[]).some((e=>e instanceof HTMLElement&&e===A.current))||b(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}}),[g]),h().createElement(XE,{className:"popover",placement:n,trigger:"click",active:g,arrow:!1,distance:8,ref:A,onBeforeVisibleChange:v},h().createElement("span",{slot:"anchor"},h().createElement("slot",{name:"trigger"},h().createElement(ex,{showZero:!1,dot:!0,count:null!==(t=null==i?void 0:i.length)&&void 0!==t?t:0,offset:[-5,0]},h().createElement(tx,{icon:{lib:"antd",icon:"bell"}})))),h().createElement("div",{className:"notice-dropdown-content",style:{maxWidth:o}},h().createElement("div",{className:"header"},h().createElement("div",{className:"title"},uE(pE.MESSAGE_LIST)),h().createElement("div",{className:"close-btn",onClick:f},h().createElement(JE,{lib:"antd",icon:"close"}))),h().createElement("div",{className:"content",style:l},(null==i?void 0:i.length)>0?h().createElement("ul",{className:"message-list"},i.map((e=>h().createElement("li",{key:e.id},h().createElement(QE,{className:"link",url:(0,Bl.Q)(s,e),target:m,onClick:()=>E(e)},h().createElement("div",{className:"icon-wrapper"},h().createElement(JE,{imgSrc:fx(e.type),keepSvgOriginalColor:!0})),h().createElement("div",{className:"message-content"},h().createElement("div",{className:"primary-text"},e.title),e.description&&h().createElement("div",{className:"secondary-text"},e.description))))))):h().createElement("div",{className:"empty-state"},a||uE(pE.NO_NEW_MESSAGE))),h().createElement("div",{className:"footer"},h().createElement(ZE,{disabled:!(null!=i&&i.length),type:"text",className:"footer-button",onClick:x},uE(pE.MARK_ALL_READ)),!u&&h().createElement(ZE,{href:r,type:"text",className:"footer-button"},uE(pE.ENTER_MESSAGE_CENTER)," >"))))}function fx(e){switch(e){case"project":default:return gE;case"account":return bE;case"system":return AE;case"space":return vE}}fE=Ax,({e:[xE,kE,wE,yE,TE,SE,NE,CE,ME,_E,RE,WE,IE,DE,LE,OE,zE,PE,BE,UE,HE,FE,GE,VE,jE,KE],c:[ix,EE]}=(0,d.A)(fE,[$E("ai-portal.notice-dropdown",{styleTexts:[mE.A]})],[[YE({attribute:!1}),1,"dataSource"],[YE(),1,"popoverPlacement"],[YE(),1,"emptyText"],[YE(),1,"notifyCenterUrl"],[YE(),1,"urlTemplate"],[YE(),1,"urlTarget"],[YE(),1,"dropdownMaxWidth"],[YE({attribute:!1}),1,"dropdownContentStyle"],[YE({type:Boolean}),1,"hideNotifyCenterButton"],[qE({type:"notice.click"}),1,"noticeClickEvent",e=>(0,c.A)(hx,e),(e,t)=>(0,l.A)(hx,e,t)],[qE({type:"mark.all.read"}),1,"markAllReadEvent",e=>(0,c.A)(mx,e),(e,t)=>(0,l.A)(mx,e,t)]],0,(e=>bx.has((0,s.A)(e))),m.ReactNextElement)),EE()},56791:(e,t,i)=>{e.exports=i.p+"images/3e0f6758.png"},61393:(e,t,i)=>{e.exports=i.p+"images/ecaecc18.svg"},62522:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,"ai-portal\\.preview-container{display:block;background:rgba(247,248,250,1)}.loading--uD2jY9vX{position:absolute;top:50%;left:50%;font-size:48px;color:var(--palette-gray-5);margin:0 -24px}",""]),s.locals={loading:"loading--uD2jY9vX"};const o=s},65100:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:block;color:#262626;--running-flow-lane-width:234px;--running-flow-status-color:#aeb3bc}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}.nav,\n.lanes{display:flex;gap:40px}.nav-item,\n.lane{width:var(--running-flow-lane-width);flex-shrink:0}.nav-item{position:relative;background-color:#e3e4e5;border-top-left-radius:8px;border-bottom-left-radius:8px}.nav-item::after{content:"";position:absolute;top:0;right:-24px;border-color:transparent;border-style:solid;border-width:24px 0 24px 24px;border-left-color:#e3e4e5}.nav-content{height:48px;display:flex;align-items:center;padding-left:22px}.nav-content .icon{color:#8c8c8c;font-size:22px;display:contents}.nav-content .title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 8px}.lanes{margin-top:16px}.lane{display:flex;flex-direction:column;gap:8px}.lane > li{padding-left:4px}.activity{background:#fff;border-radius:8px;border:1px solid #d9d9d9;height:42px;display:flex;align-items:center;position:relative;padding-left:16px;cursor:pointer}.activity .icon{color:var(--running-flow-status-color);font-size:20px}.activity .title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#595959;padding:0 7px}.activity .duration{font-size:12px;color:#8c8c8c;background:#fafafa;border-radius:6px;padding:0 8px;height:100%;display:flex;align-items:center}.activity::before{content:"";position:absolute;top:50%;left:-1px;transform:translateY(-50%);width:3px;height:18px;background:var(--running-flow-status-color);border-radius:0 3px 3px 0}.activity:hover{box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08)}.activity.paused{--running-flow-status-color:#f0a22e}.activity.working{--running-flow-status-color:#4f69ff}.activity.completed{--running-flow-status-color:#08bf33}.activity.failed{--running-flow-status-color:var(--color-error)}.activity:not(.active) .icon{color:var(--running-flow-status-color)}.activity:not(.active)::before{background:var(--running-flow-status-color)}.activity.active{background:var(--running-flow-status-color);border-color:var(--running-flow-status-color)}.activity.active .icon,.activity.active .title,.activity.active .duration{color:#fff}.activity.active .duration{background:rgba(250,250,250,0.2)}.activity.active::before{display:none}',""]);const o=s.toString()},66489:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(61393),i.b),d=new URL(i(44492),i.b),p=s()(a()),h=l()(c),u=l()(d);p.push([e.id,`:host{display:block;--stage-flow-lane-width:268px}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}button{background:none;border:none;cursor:pointer;padding:0}.button:focus{outline:none}.nav,\n.lanes{display:flex;gap:40px}.nav-item,\n.nav-add,\n.lane{width:var(--stage-flow-lane-width);flex-shrink:0}.nav-item{position:relative;background-color:var(--stage-flow-nav-bg);--stage-flow-nav-bg:rgba(37,64,255,0.1)}.nav-item:first-child{border-top-left-radius:20px;border-bottom-left-radius:20px}.nav-item.pending{--stage-flow-nav-bg:rgba(0,0,0,0.04)}.nav-item::after{content:"";position:absolute;top:0;right:-20px;border-color:transparent;border-style:solid;border-width:20px 0 20px 20px;border-left-color:var(--stage-flow-nav-bg)}.nav-item:not(:first-child)::before{content:"";position:absolute;top:0;left:-30px;width:30px;height:40px;background-color:var(--stage-flow-nav-bg);-webkit-clip-path:polygon(0 0,100% 0,100% 100%,0 100%,20px 50%);clip-path:polygon(0 0,100% 0,100% 100%,0 100%,20px 50%)}.nav-link,\n.btn-add-stage{width:100%;display:flex;align-items:center;justify-content:center;height:40px;font-size:16px}.nav-item.pending:first-child .input-new-stage{padding-left:20px}.nav-link{font-weight:600;color:#000}.nav-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-add-stage{font-weight:500;color:rgba(0,0,0,0.65);gap:8px;position:relative}.btn-add-stage .plus{margin-right:8px;font-size:14px}.nav-add:first-child .btn-add-stage{border-radius:20px;border:1px dashed rgba(0,0,0,0.1)}.nav-add:first-child .btn-add-stage:hover{background:rgba(0,0,0,0.04)}.nav-add:not(:first-child) .btn-add-stage::before{content:"";position:absolute;top:0;bottom:0;left:-30px;right:-20px;pointer-events:none;background:url(${h}) center center no-repeat}.nav-add:not(:first-child) .btn-add-stage:hover::before{background-image:url(${u})}.input-new-stage{width:100%;border:none;background:none;display:flex;align-items:center;height:40px;font-weight:600;font-size:16px;color:#000}.input-new-stage::placeholder{color:#8c8c8c;font-weight:400}.input-new-stage:focus{outline:none}.lanes{margin-top:16px}.lane{display:flex;flex-direction:column;gap:8px}.activity{background:#ffffff;box-shadow:0px 1px 2px 0px rgba(0,0,0,0.1);border-radius:8px;padding:12px 14px 10px}.activity .title{font-weight:600;color:#000000;line-height:20px;text-shadow:0px 1px 2px rgba(0,0,0,0.1)}:host(:not([read-only])) .activity{cursor:pointer}.assignee{display:flex;align-items:center;gap:4px;font-size:12px;color:#000000;line-height:17px;margin-top:10px}.assignee-icon{font-size:14px;color:rgba(0,0,0,0.45)}.btn-add-activity{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;height:34px;border:1px dashed rgba(0,0,0,0.1);border-radius:8px;color:rgba(0,0,0,0.45)}.btn-add-activity:hover{background:rgba(0,0,0,0.04);color:rgba(0,0,0,0.65)}.stage-settings{padding:4px;display:flex;flex-direction:column;align-items:stretch;gap:4px}.stage-settings eo-input{margin-bottom:5px}.stage-settings .divider{height:1px;background-color:rgba(0,0,0,0.1)}.stage-settings button{color:var(--color-error);border-radius:6px;padding:5px 8px;font-size:14px;line-height:22px;text-align:left}.stage-settings button:hover{background-color:var(--left-sidebar-item-hover-bg)}`,""]);const m=p.toString()},79286:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}.link{display:block}.link::part(link){display:flex;align-items:center;gap:16px;padding:12px 24px;color:#262626;background:rgba(255,255,255,0.6);border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.link.actions-active::part(link),\n.link::part(link):hover{background:rgba(0,0,0,0.05);-webkit-backdrop-filter:none;backdrop-filter:none}.item:not(:last-child){margin-bottom:4px}.icon{font-size:18px;margin-right:8px}.title{font-weight:500;font-size:16px}.title,\n.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal{background:#f0fff8;border-radius:4px;font-weight:500;font-size:12px;color:#1dc897;line-height:20px;padding:2px 8px;white-space:nowrap}.goal.global{background:#e6f4ff;color:#1a7aff}.header{display:flex;align-items:center}.description{color:#595959;margin-top:6px;padding-left:28px;line-height:20px}.time{color:rgba(0,0,0,0.45);white-space:nowrap}.main{flex:1;min-width:0}.operations{display:flex;align-items:center;justify-content:right;width:100px}.operations.lang-zh{width:64px}.link.actions-active .time,\n.link:hover .time,\n.link:not(:hover):not(.actions-active) .actions{display:none}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const o=s.toString()},81129:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(32360),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block;position:sticky;top:0}:host([hidden]){display:none}:host::before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background-color:rgb(205,206,207);background-image:url(${p});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed;pointer-events:none}:host([variant="home"])::before{background-color:#f1f1f1}`,""]);const h=d.toString()},82165:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(32360),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block;padding:24px 54px 72px}:host([sticky]){padding-top:0}: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(${p});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}@media (max-width: 719px){:host{padding-left:24px;padding-right:24px}}`,""]);const h=d.toString()},83059:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(32360),i.b),d=s()(a()),p=l()(c);d.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(${p});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 h=d.toString()},84479:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}button:focus,\ntextarea:focus{outline:none}button{margin:0;padding:0;font:inherit;background:none;border:none}.container{background-color:#fff;border:2px solid #7891ff;border-radius:12px;box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05),0px 6px 16px 0px rgba(0,0,0,0.08),0px 3px 6px -4px rgba(0,0,0,0.12);cursor:text}.container:not(:has(textarea:focus)){background-color:rgba(255,255,255,0.5);border-color:#99c4ff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.box{display:flex;flex-wrap:wrap;border-radius:10px;padding:8px}.input{position:relative;min-width:0;flex:1}.wrap .input{flex-basis:100%}.input textarea{display:block;width:100%;padding:8px;font:inherit;font-size:16px;line-height:24px;color:var(--antd-input-color);border:none;background:none;height:24px;color:#262626}.input textarea::placeholder{color:#bfbfbf}.toolbar{padding:6px 0 6px 8px;margin-left:auto;display:flex;align-items:center;gap:12px}.btn-send{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border-radius:8px;color:#fff}.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}.btn-divider{width:1px;height:16px;background:rgba(0,0,0,0.1)}.files.condensed{top:2px;left:8px;right:8px}",""]);const o=s.toString()},88786:(e,t,i)=>{e.exports=i.p+"images/e15a6988.png"},98036:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(32360),i.b),d=s()(a()),p=l()(c);d.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(${p});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;overflow:hidden}.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 h=d.toString()}}]);
|
|
2
|
+
//# sourceMappingURL=151.098c765c.js.map
|