@next-bricks/ai-portal 0.40.2 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +26 -24
- package/dist/chunks/2608.e0bf7de9.js +2 -0
- package/dist/chunks/2608.e0bf7de9.js.map +1 -0
- package/dist/chunks/{8616.ceae4e7b.js → 3689.2a3f6d8c.js} +3 -3
- package/dist/chunks/{8616.ceae4e7b.js.map → 3689.2a3f6d8c.js.map} +1 -1
- package/dist/chunks/{382.d2e3f46f.js → 382.6655f2dc.js} +2 -2
- package/dist/chunks/{382.d2e3f46f.js.map → 382.6655f2dc.js.map} +1 -1
- package/dist/chunks/{4957.f878df32.js → 4957.b0937d56.js} +3 -3
- package/dist/chunks/{4957.f878df32.js.map → 4957.b0937d56.js.map} +1 -1
- package/dist/chunks/{5521.ef48a4d3.js → 5521.eeb5a205.js} +2 -2
- package/dist/chunks/{5521.ef48a4d3.js.map → 5521.eeb5a205.js.map} +1 -1
- package/dist/chunks/{6862.32630cc8.js → 6862.fc9c39ee.js} +3 -3
- package/dist/chunks/{6862.32630cc8.js.map → 6862.fc9c39ee.js.map} +1 -1
- package/dist/chunks/chat-box.9c68697e.js +2 -0
- package/dist/chunks/chat-box.9c68697e.js.map +1 -0
- package/dist/chunks/elevo-logo.dc137a3c.js +2 -0
- package/dist/chunks/elevo-logo.dc137a3c.js.map +1 -0
- package/dist/chunks/elevo-sidebar.08b20757.js +3 -0
- package/dist/chunks/elevo-sidebar.08b20757.js.map +1 -0
- package/dist/chunks/{home-container.9f9ca1ca.js → home-container.211ba989.js} +2 -2
- package/dist/chunks/{home-container.9f9ca1ca.js.map → home-container.211ba989.js.map} +1 -1
- package/dist/chunks/{main.c1de70a9.js → main.8a0a20f0.js} +2 -2
- package/dist/chunks/{main.c1de70a9.js.map → main.8a0a20f0.js.map} +1 -1
- package/dist/chunks/page-container.099db5b9.js +2 -0
- package/dist/chunks/{page-container.a637a6c4.js.map → page-container.099db5b9.js.map} +1 -1
- package/dist/examples.json +16 -13
- package/dist/index.b28b88f6.js +2 -0
- package/dist/index.b28b88f6.js.map +1 -0
- package/dist/manifest.json +184 -175
- package/dist/types.json +246 -241
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/elevo-logo/index.d.ts +9 -0
- package/dist-types/elevo-logo/index.spec.d.ts +1 -0
- package/docs/elevo-logo.md +9 -0
- package/package.json +2 -2
- package/dist/chunks/8176.fe523596.js +0 -2
- package/dist/chunks/8176.fe523596.js.map +0 -1
- package/dist/chunks/chat-box.6ae456b3.js +0 -2
- package/dist/chunks/chat-box.6ae456b3.js.map +0 -1
- package/dist/chunks/elevo-sidebar.199ad1c6.js +0 -3
- package/dist/chunks/elevo-sidebar.199ad1c6.js.map +0 -1
- package/dist/chunks/page-container.a637a6c4.js +0 -2
- package/dist/index.7b53be7d.js +0 -2
- package/dist/index.7b53be7d.js.map +0 -1
- /package/dist/chunks/{8616.ceae4e7b.js.LICENSE.txt → 3689.2a3f6d8c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4957.f878df32.js.LICENSE.txt → 4957.b0937d56.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6862.32630cc8.js.LICENSE.txt → 6862.fc9c39ee.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{elevo-sidebar.199ad1c6.js.LICENSE.txt → elevo-sidebar.08b20757.js.LICENSE.txt} +0 -0
package/dist/bricks.json
CHANGED
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "bricks/ai-portal",
|
|
3
3
|
"bricks": [
|
|
4
|
-
"ai-portal.home-container",
|
|
5
|
-
"ai-portal.chat-box",
|
|
6
4
|
"ai-portal.cruise-canvas",
|
|
5
|
+
"ai-portal.chat-box",
|
|
6
|
+
"ai-portal.elevo-sidebar",
|
|
7
7
|
"ai-portal.icon-button",
|
|
8
8
|
"ai-portal.stat-with-mini-chart",
|
|
9
|
-
"ai-portal.elevo-sidebar",
|
|
10
9
|
"ai-portal.show-cases",
|
|
11
10
|
"ai-portal.mcp-tools",
|
|
12
11
|
"ai-portal.ai-employees",
|
|
13
|
-
"ai-portal.chat-stream",
|
|
14
12
|
"ai-portal.ai-agents",
|
|
13
|
+
"ai-portal.chat-stream",
|
|
15
14
|
"ai-portal.entity-sdk-get",
|
|
16
|
-
"ai-portal.entity-sdk-list",
|
|
17
15
|
"ai-portal.save-request-store",
|
|
18
16
|
"ai-portal.load-request-store",
|
|
19
17
|
"ai-portal.clear-request-store",
|
|
18
|
+
"ai-portal.entity-sdk-list",
|
|
20
19
|
"ai-portal.page-container",
|
|
21
20
|
"ai-portal.project-summary",
|
|
22
21
|
"ai-portal.tab-list",
|
|
22
|
+
"ai-portal.home-container",
|
|
23
23
|
"ai-portal.dropdown-select",
|
|
24
24
|
"ai-portal.preview-container",
|
|
25
|
-
"ai-portal.action-buttons",
|
|
26
25
|
"ai-portal.goal-card-list",
|
|
27
26
|
"ai-portal.project-conversations",
|
|
27
|
+
"ai-portal.action-buttons",
|
|
28
28
|
"ai-portal.project-knowledges",
|
|
29
29
|
"ai-portal.activity-timeline",
|
|
30
|
-
"ai-portal.chat-input"
|
|
30
|
+
"ai-portal.chat-input",
|
|
31
|
+
"ai-portal.elevo-logo"
|
|
31
32
|
],
|
|
32
33
|
"elements": [],
|
|
33
34
|
"processors": [],
|
|
34
35
|
"editors": [],
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"ai-portal.chat-box": [
|
|
37
|
-
"eo-icon"
|
|
38
|
-
],
|
|
39
37
|
"ai-portal.cruise-canvas": [
|
|
40
38
|
"eo-icon",
|
|
41
39
|
"eo-button",
|
|
@@ -49,14 +47,11 @@
|
|
|
49
47
|
"basic.copy-to-clipboard",
|
|
50
48
|
"eo-easyops-avatar"
|
|
51
49
|
],
|
|
52
|
-
"ai-portal.
|
|
53
|
-
"eo-icon"
|
|
54
|
-
"eo-tooltip"
|
|
55
|
-
],
|
|
56
|
-
"ai-portal.stat-with-mini-chart": [
|
|
57
|
-
"eo-mini-line-chart"
|
|
50
|
+
"ai-portal.chat-box": [
|
|
51
|
+
"eo-icon"
|
|
58
52
|
],
|
|
59
53
|
"ai-portal.elevo-sidebar": [
|
|
54
|
+
"ai-portal.elevo-logo",
|
|
60
55
|
"eo-icon",
|
|
61
56
|
"eo-link",
|
|
62
57
|
"eo-dropdown-actions",
|
|
@@ -64,6 +59,13 @@
|
|
|
64
59
|
"eo-mini-actions",
|
|
65
60
|
"ai-portal.icon-button"
|
|
66
61
|
],
|
|
62
|
+
"ai-portal.icon-button": [
|
|
63
|
+
"eo-icon",
|
|
64
|
+
"eo-tooltip"
|
|
65
|
+
],
|
|
66
|
+
"ai-portal.stat-with-mini-chart": [
|
|
67
|
+
"eo-mini-line-chart"
|
|
68
|
+
],
|
|
67
69
|
"ai-portal.show-cases": [
|
|
68
70
|
"eo-link",
|
|
69
71
|
"ai-portal.tab-list"
|
|
@@ -77,6 +79,10 @@
|
|
|
77
79
|
"eo-icon",
|
|
78
80
|
"ai-portal.tab-list"
|
|
79
81
|
],
|
|
82
|
+
"ai-portal.ai-agents": [
|
|
83
|
+
"eo-icon",
|
|
84
|
+
"eo-link"
|
|
85
|
+
],
|
|
80
86
|
"ai-portal.chat-stream": [
|
|
81
87
|
"eo-icon",
|
|
82
88
|
"eo-button",
|
|
@@ -89,10 +95,6 @@
|
|
|
89
95
|
"basic.show-dialog",
|
|
90
96
|
"basic.copy-to-clipboard"
|
|
91
97
|
],
|
|
92
|
-
"ai-portal.ai-agents": [
|
|
93
|
-
"eo-icon",
|
|
94
|
-
"eo-link"
|
|
95
|
-
],
|
|
96
98
|
"ai-portal.page-container": [
|
|
97
99
|
"eo-link"
|
|
98
100
|
],
|
|
@@ -115,9 +117,6 @@
|
|
|
115
117
|
"eo-main-view",
|
|
116
118
|
"eo-narrow-view"
|
|
117
119
|
],
|
|
118
|
-
"ai-portal.action-buttons": [
|
|
119
|
-
"eo-button"
|
|
120
|
-
],
|
|
121
120
|
"ai-portal.goal-card-list": [
|
|
122
121
|
"eo-icon",
|
|
123
122
|
"eo-dropdown-actions",
|
|
@@ -130,6 +129,9 @@
|
|
|
130
129
|
"eo-easyops-avatar",
|
|
131
130
|
"eo-mini-actions"
|
|
132
131
|
],
|
|
132
|
+
"ai-portal.action-buttons": [
|
|
133
|
+
"eo-button"
|
|
134
|
+
],
|
|
133
135
|
"ai-portal.project-knowledges": [
|
|
134
136
|
"eo-link",
|
|
135
137
|
"eo-icon",
|
|
@@ -146,5 +148,5 @@
|
|
|
146
148
|
"ai-portal.icon-button"
|
|
147
149
|
]
|
|
148
150
|
},
|
|
149
|
-
"filePath": "bricks/ai-portal/dist/index.
|
|
151
|
+
"filePath": "bricks/ai-portal/dist/index.b28b88f6.js"
|
|
150
152
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2608],{24:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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()},10335:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());s.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.goal-container{display:flex;flex-direction:column;gap:4px}.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 a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());s.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.button-container{display:flex;gap:6px}.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)}",""]);const o=s.toString()},14763:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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:center}.action{flex:1;min-width:0;display:flex;align-items:center}.time{color:#8c8c8c;margin-left:12px}.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}.user{margin-left:6px}.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()},20124:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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;font-size:16px}.tabs .tab + .tab{margin-left:32px}.tabs a{color:rgba(38,38,38,0.65);cursor:pointer}.tabs .active a{color:#262626;font-weight:500}.tabs .active a::after{content:"";display:block;width:100%;height:4px;background-color:currentColor;border-radius:2px}',""]);const o=s.toString()},23677:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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()},25676:(e,t,i)=>{e.exports=i.p+"images/4b299d0b.png"},29744:(e,t,i)=>{var a,n=i(74635),r=i(70918),s=i(26902),o=i(5536),l=i(86121),c=i(70829),h=i(62740),d=i(18769),p=i.n(d),u=i(7921),m=i(11280),b=(i(65168),i(87117)),g=i(80079),A=i(51850),k=i(78523);let E,x,v,w,f,y,T,S,M,C,_,N,R,W,L,I,O,D,z,U,B,F,P,V,H,j,G,K,q,$,J,X,Y,Q,Z,ee,te,ie,ae,ne,re,se,oe,le,ce,he,de,pe,ue,me,be,ge,Ae,ke;(0,b.initializeI18n)(g.NS,g.I);const{defineElement:Ee,property:xe,event:ve,method:we}=(0,u.createDecorators)(),fe=(0,d.forwardRef)(A.A),ye=(0,d.forwardRef)(k.B);let Te;var Se=new WeakMap,Me=new WeakMap,Ce=new WeakMap,_e=new WeakMap,Ne=new WeakMap,Re=new WeakMap,We=new WeakMap,Le=new WeakMap,Ie=new WeakMap,Oe=new WeakMap,De=new WeakMap,ze=new WeakMap,Ue=new WeakMap,Be=new WeakMap,Fe=new WeakMap,Pe=new WeakMap,Ve=new WeakMap,He=new WeakSet,je=new WeakMap,Ge=new WeakMap,Ke=new WeakMap,qe=new WeakMap,$e=new WeakMap,Je=new WeakMap,Xe=new WeakMap,Ye=new WeakMap,Qe=new WeakMap,Ze=new WeakMap;class et extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,He),(0,r.A)(this,Se,(E(this),v(this))),(0,r.A)(this,Me,(w(this),f(this))),(0,r.A)(this,Ce,(y(this),T(this))),(0,r.A)(this,_e,(S(this),M(this))),(0,r.A)(this,Ne,(C(this),_(this))),(0,r.A)(this,Re,(N(this),R(this))),(0,r.A)(this,We,(W(this),L(this))),(0,r.A)(this,Le,(I(this),O(this))),(0,r.A)(this,Ie,(D(this),z(this))),(0,r.A)(this,Oe,(U(this),B(this))),(0,r.A)(this,De,(F(this),P(this))),(0,r.A)(this,ze,(V(this),H(this))),(0,r.A)(this,Ue,(j(this),G(this))),(0,r.A)(this,Be,(K(this),q(this))),(0,r.A)(this,Fe,($(this),J(this))),(0,r.A)(this,Pe,(X(this),Y(this))),(0,r.A)(this,Ve,(Q(this),Z(this))),(0,r.A)(this,je,(ie(this),()=>{(0,o.A)(He,this,ee).emit()})),(0,r.A)(this,Ge,ae(this)),(0,r.A)(this,Ke,(se(this),()=>{(0,o.A)(He,this,ne).emit()})),(0,r.A)(this,qe,oe(this)),(0,r.A)(this,$e,(he(this),e=>{(0,o.A)(He,this,le).emit(e)})),(0,r.A)(this,Je,de(this)),(0,r.A)(this,Xe,(me(this),e=>{(0,o.A)(He,this,pe).emit(e)})),(0,r.A)(this,Ye,be(this)),(0,r.A)(this,Qe,(ke(this),()=>{(0,o.A)(He,this,ge).emit("chat")})),(0,r.A)(this,Ze,(0,d.createRef)())}get conversationId(){return(0,c.A)(Se,this)}set conversationId(e){(0,l.A)(Se,this,e)}get initialRequest(){return(0,c.A)(Me,this)}set initialRequest(e){(0,l.A)(Me,this,e)}get taskId(){return(0,c.A)(Ce,this)}set taskId(e){(0,l.A)(Ce,this,e)}get task(){return(0,c.A)(_e,this)}set task(e){(0,l.A)(_e,this,e)}get jobs(){return(0,c.A)(Ne,this)}set jobs(e){(0,l.A)(Ne,this,e)}get replay(){return(0,c.A)(Re,this)}set replay(e){(0,l.A)(Re,this,e)}get replayDelay(){return(0,c.A)(We,this)}set replayDelay(e){(0,l.A)(We,this,e)}get supports(){return(0,c.A)(Le,this)}set supports(e){(0,l.A)(Le,this,e)}get showHiddenJobs(){return(0,c.A)(Ie,this)}set showHiddenJobs(e){(0,l.A)(Ie,this,e)}get showFeedback(){return(0,c.A)(Oe,this)}set showFeedback(e){(0,l.A)(Oe,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(De,this)}set showFeedbackAfterFailed(e){(0,l.A)(De,this,e)}get showFeedbackOnView(){return(0,c.A)(ze,this)}set showFeedbackOnView(e){(0,l.A)(ze,this,e)}get showUiSwitch(){return(0,c.A)(Ue,this)}set showUiSwitch(e){(0,l.A)(Ue,this,e)}get hideMermaid(){return(0,c.A)(Be,this)}set hideMermaid(e){(0,l.A)(Be,this,e)}get showJsxEditor(){return(0,c.A)(Fe,this)}set showJsxEditor(e){(0,l.A)(Fe,this,e)}get previewUrlTemplate(){return(0,c.A)(Pe,this)}set previewUrlTemplate(e){(0,l.A)(Pe,this,e)}resumed(){var e,t;null===(e=(0,c.A)(Ze,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(Ze,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(Ze,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(Ze,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){const e=this.conversationId?ye:fe;return p().createElement(e,{conversationId:this.conversationId,initialRequest:this.initialRequest,taskId:this.taskId,jobs:this.jobs,task:this.task,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showHiddenJobs:this.showHiddenJobs,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showUiSwitch:this.showUiSwitch,showFeedbackOnView:this.showFeedbackOnView,showJsxEditor:this.showJsxEditor,previewUrlTemplate:this.previewUrlTemplate,onShare:(0,c.A)(je,this),onTerminate:(0,c.A)(Ke,this),onSubmitFeedback:(0,c.A)($e,this),onSwitchToChat:(0,c.A)(Qe,this),onFeedbackOnView:(0,c.A)(Xe,this),ref:(0,c.A)(Ze,this)})}}a=et,({e:[v,w,f,y,T,S,M,C,_,N,R,W,L,I,O,D,z,U,B,F,P,V,H,j,G,K,q,$,J,X,Y,Q,Z,ee,te,ie,ae,ne,re,se,oe,le,ce,he,de,pe,ue,me,be,ge,Ae,ke,E],c:[Te,x]}=(0,h.A)(a,[Ee("ai-portal.cruise-canvas",{shadowOptions:!1})],[[xe(),1,"conversationId"],[xe({attribute:!1,render:!1}),1,"initialRequest"],[xe(),1,"taskId"],[xe({attribute:!1}),1,"task"],[xe({attribute:!1}),1,"jobs"],[xe({type:Boolean,render:!1}),1,"replay"],[xe({type:Number,render:!1}),1,"replayDelay"],[xe({attribute:!1}),1,"supports"],[xe({type:Boolean}),1,"showHiddenJobs"],[xe({type:Boolean}),1,"showFeedback"],[xe({type:Boolean}),1,"showFeedbackAfterFailed"],[xe({type:Boolean}),1,"showFeedbackOnView"],[xe({type:Boolean}),1,"showUiSwitch"],[xe({type:Boolean,render:!1}),1,"hideMermaid"],[xe({type:Boolean}),1,"showJsxEditor"],[xe(),1,"previewUrlTemplate"],[ve({type:"share"}),1,"shareEvent",e=>(0,c.A)(Ve,e),(e,t)=>(0,l.A)(Ve,e,t)],[ve({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(Ge,e),(e,t)=>(0,l.A)(Ge,e,t)],[ve({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(qe,e),(e,t)=>(0,l.A)(qe,e,t)],[ve({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(Je,e),(e,t)=>(0,l.A)(Je,e,t)],[ve({type:"ui.switch"}),1,"switch",e=>(0,c.A)(Ye,e),(e,t)=>(0,l.A)(Ye,e,t)],[we(),2,"resumed"],[we(),2,"feedbackSubmitDone"],[we(),2,"feedbackSubmitFailed"],[we(),2,"feedbackOnViewDone"]],0,(e=>Ze.has((0,s.A)(e))),m.ReactNextElement)),x();var tt=i(24586),it=i(71451);let at=function(e){return e.ASK_ANY_THING="ASK_ANYTHING",e.COMMON_TASKS="COMMON_TASKS",e}({});const nt="bricks/ai-portal/chat-box",rt={en:{[at.ASK_ANY_THING]:"Ask anything",[at.COMMON_TASKS]:"Common tasks"},zh:{[at.ASK_ANY_THING]:"询问任何问题",[at.COMMON_TASKS]:"常用任务"}},st=b.i18n.getFixedT(null,nt);var ot,lt=i(47008);let ct,ht,dt,pt,ut,mt,bt,gt,At,kt,Et,xt;(0,b.initializeI18n)(nt,rt);const vt=(0,m.wrapBrick)("eo-icon"),{defineElement:wt,property:ft,event:yt,method:Tt}=(0,u.createDecorators)(),St=(0,d.forwardRef)(Ot);let Mt;var Ct=new WeakMap,_t=new WeakMap,Nt=new WeakMap,Rt=new WeakMap,Wt=new WeakSet,Lt=new WeakMap;class It extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Wt),(0,tt.A)(this,"ref",(ct(this),(0,d.createRef)())),(0,r.A)(this,Ct,dt(this)),(0,r.A)(this,_t,(pt(this),ut(this))),(0,r.A)(this,Nt,(mt(this),bt(this))),(0,r.A)(this,Rt,(gt(this),At(this))),(0,r.A)(this,Lt,(xt(this),e=>{(0,o.A)(Wt,this,kt).emit(e)}))}get disabled(){return(0,c.A)(Ct,this)}set disabled(e){(0,l.A)(Ct,this,e)}get placeholder(){return(0,c.A)(_t,this)}set placeholder(e){(0,l.A)(_t,this,e)}get autoFocus(){return(0,c.A)(Nt,this)}set autoFocus(e){(0,l.A)(Nt,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()}render(){return p().createElement(St,{disabled:this.disabled,placeholder:this.placeholder,autoFocus:this.autoFocus,onSubmit:(0,c.A)(Lt,this),ref:this.ref})}}function Ot(e,t){let{disabled:i,placeholder:a,autoFocus:n,onSubmit:r}=e;const s=(0,d.useRef)(null),o=(0,d.useRef)(null),[l,c]=(0,d.useState)(""),h=(0,d.useRef)("");(0,d.useImperativeHandle)(t,(()=>({setValue:e=>{h.current=e,c(e)},getValue:()=>h.current})));const u=(0,d.useCallback)((e=>{e.currentTarget.value&&r(e.currentTarget.value)}),[r]),m=(0,d.useCallback)((e=>{h.current=e.target.value,c(e.target.value)}),[]),b=(0,d.useCallback)((()=>{r(h.current)}),[r]);return(0,d.useEffect)((()=>{n&&Promise.resolve().then((()=>{var e;null===(e=o.current)||void 0===e||e.focus()}))}),[]),p().createElement("div",{className:"root"},p().createElement("div",{className:"container",ref:s},p().createElement(it.e,{containerRef:s,ref:o,value:l,minRows:58/22,paddingSize:60,autoResize:!0,disabled:i,placeholder:null!=a?a:st(at.ASK_ANY_THING),submitWhen:"enter-without-shift",onSubmit:u,onChange:m}),p().createElement("div",{className:"actions-bar"},p().createElement("div",null,p().createElement("slot",{name:"actions"})),p().createElement("button",{className:"btn-send",disabled:!l,onClick:b},p().createElement(vt,{lib:"fa",prefix:"fas",icon:"arrow-up"})))))}ot=It,({e:[dt,pt,ut,mt,bt,gt,At,kt,Et,xt,ct],c:[Mt,ht]}=(0,h.A)(ot,[wt("ai-portal.chat-box",{styleTexts:[lt.A]})],[[ft({type:Boolean}),1,"disabled"],[ft(),1,"placeholder"],[ft({type:Boolean}),1,"autoFocus"],[yt({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(Rt,e),(e,t)=>(0,l.A)(Rt,e,t)],[Tt(),2,"setValue"],[Tt(),2,"getValue"]],0,(e=>Lt.has((0,s.A)(e))),m.ReactNextElement)),ht();var Dt,zt=i(82165);let Ut;const{defineElement:Bt}=(0,u.createDecorators)();let Ft;class Pt extends m.ReactNextElement{render(){return p().createElement(Vt,null)}}function Vt(){return p().createElement("slot",null)}Dt=Pt,[Ft,Ut]=(0,h.A)(Dt,[Bt("ai-portal.home-container",{styleTexts:[zt.A]})],[],0,void 0,m.ReactNextElement).c,Ut();var Ht,jt=i(89575),Gt=i(24);let Kt,qt,$t,Jt,Xt,Yt,Qt,Zt,ei,ti,ii,ai,ni,ri,si,oi,li,ci,hi,di,pi;const ui=(0,m.wrapBrick)("eo-mini-line-chart"),{defineElement:mi,property:bi}=(0,u.createDecorators)();let gi;var Ai=new WeakMap,ki=new WeakMap,Ei=new WeakMap,xi=new WeakMap,vi=new WeakMap,wi=new WeakMap,fi=new WeakMap,yi=new WeakMap,Ti=new WeakMap,Si=new WeakMap;class Mi extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Ai,qt(this)),(0,r.A)(this,ki,($t(this),Jt(this))),(0,r.A)(this,Ei,(Xt(this),Yt(this))),(0,r.A)(this,xi,(Qt(this),Zt(this))),(0,r.A)(this,vi,(ei(this),ti(this))),(0,r.A)(this,wi,(ii(this),ai(this))),(0,r.A)(this,fi,(ni(this),ri(this))),(0,r.A)(this,yi,(si(this),oi(this))),(0,r.A)(this,Ti,(li(this),ci(this))),(0,r.A)(this,Si,(hi(this),di(this))),pi(this)}get label(){return(0,c.A)(Ai,this)}set label(e){(0,l.A)(Ai,this,e)}get value(){return(0,c.A)(ki,this)}set value(e){(0,l.A)(ki,this,e)}get size(){return(0,c.A)(Ei,this)}set size(e){(0,l.A)(Ei,this,e)}get lineColor(){return(0,c.A)(xi,this)}set lineColor(e){(0,l.A)(xi,this,e)}get showArea(){return(0,c.A)(vi,this)}set showArea(e){(0,l.A)(vi,this,e)}get min(){return(0,c.A)(wi,this)}set min(e){(0,l.A)(wi,this,e)}get max(){return(0,c.A)(fi,this)}set max(e){(0,l.A)(fi,this,e)}get xField(){return(0,c.A)(yi,this)}set xField(e){(0,l.A)(yi,this,e)}get yField(){return(0,c.A)(Ti,this)}set yField(e){(0,l.A)(Ti,this,e)}get data(){return(0,c.A)(Si,this)}set data(e){(0,l.A)(Si,this,e)}render(){return p().createElement(Ci,{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 Ci(e){let{label:t,value:i,size:a,...n}=e;return"small"===a?p().createElement("div",{className:"container"},p().createElement("div",{className:"label-and-stat"},p().createElement("div",{className:"label"},t),p().createElement("div",{className:"stat"},i)),p().createElement("div",{className:"chart"},p().createElement(ui,(0,jt.A)({},n,{lineWidth:1.5,width:"auto",height:"55"})))):p().createElement("div",{className:"container"},p().createElement("div",{className:"label"},t),p().createElement("div",{className:"stat-and-chart"},p().createElement("div",{className:"chart"},p().createElement(ui,(0,jt.A)({},n,{lineWidth:2,width:"auto",height:"92"}))),p().createElement("div",{className:"stat"},i)))}Ht=Mi,({e:[qt,$t,Jt,Xt,Yt,Qt,Zt,ei,ti,ii,ai,ni,ri,si,oi,li,ci,hi,di,pi],c:[gi,Kt]}=(0,h.A)(Ht,[mi("ai-portal.stat-with-mini-chart",{styleTexts:[Gt.A]})],[[bi(),1,"label"],[bi(),1,"value"],[bi(),1,"size"],[bi(),1,"lineColor"],[bi({type:Boolean}),1,"showArea"],[bi({type:Number}),1,"min"],[bi({type:Number}),1,"max"],[bi(),1,"xField"],[bi(),1,"yField"],[bi({attribute:!1}),1,"data"]],0,void 0,m.ReactNextElement)),Kt();var _i,Ni=i(29475),Ri=i(53373),Wi=i.n(Ri),Li=i(99671),Ii=i(61408),Oi=i(42965),Di=i(45646),zi=i(26785);let Ui,Bi,Fi,Pi,Vi,Hi,ji,Gi,Ki,qi,$i,Ji,Xi,Yi,Qi,Zi,ea,ta,ia,aa,na,ra,sa,oa,la,ca,ha,da,pa,ua,ma,ba,ga,Aa,ka,Ea,xa,va,wa,fa,ya,Ta,Sa,Ma,Ca,_a;(0,b.initializeI18n)(Li.NS,Li.I);const Na={lib:"easyops",icon:"sidebar"},Ra=(0,m.wrapBrick)("ai-portal.elevo-logo"),{defineElement:Wa,property:La,event:Ia,method:Oa}=(0,u.createDecorators)(),Da=(0,d.forwardRef)(dn);let za;var Ua=new WeakMap,Ba=new WeakMap,Fa=new WeakMap,Pa=new WeakMap,Va=new WeakMap,Ha=new WeakMap,ja=new WeakMap,Ga=new WeakMap,Ka=new WeakMap,qa=new WeakMap,$a=new WeakMap,Ja=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,Qa=new WeakMap,Za=new WeakSet,en=new WeakMap,tn=new WeakMap,an=new WeakMap,nn=new WeakMap,rn=new WeakMap,sn=new WeakMap,on=new WeakMap,ln=new WeakMap,cn=new WeakMap;class hn extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Za),(0,r.A)(this,Ua,(Ui(this),Fi(this,!0))),(0,r.A)(this,Ba,(Pi(this),Vi(this))),(0,r.A)(this,Fa,(Hi(this),ji(this))),(0,r.A)(this,Pa,(Gi(this),Ki(this))),(0,r.A)(this,Va,(qi(this),$i(this))),(0,r.A)(this,Ha,(Ji(this),Xi(this))),(0,r.A)(this,ja,(Yi(this),Qi(this))),(0,r.A)(this,Ga,(Zi(this),ea(this))),(0,r.A)(this,Ka,(ta(this),ia(this))),(0,r.A)(this,qa,(aa(this),na(this))),(0,r.A)(this,$a,(ra(this),sa(this))),(0,r.A)(this,Ja,(oa(this),la(this))),(0,r.A)(this,Xa,(ca(this),ha(this))),(0,r.A)(this,Ya,(da(this),pa(this))),(0,r.A)(this,Qa,(ua(this),ma(this))),(0,r.A)(this,en,(Aa(this),()=>{(0,o.A)(Za,this,ba).emit()})),(0,r.A)(this,tn,ka(this)),(0,r.A)(this,an,(va(this),e=>{(0,o.A)(Za,this,Ea).emit(e)})),(0,r.A)(this,nn,(e=>{(0,o.A)(Za,this,Ea).emit(e)})),(0,r.A)(this,rn,wa(this)),(0,r.A)(this,sn,(Ta(this),e=>{(0,o.A)(Za,this,fa).emit(e)})),(0,r.A)(this,on,Sa(this)),(0,r.A)(this,ln,(_a(this),()=>{(0,o.A)(Za,this,Ma).emit()})),(0,r.A)(this,cn,(0,d.createRef)())}get legacy(){return(0,c.A)(Ua,this)}set legacy(e){(0,l.A)(Ua,this,e)}get userInstanceId(){return(0,c.A)(Ba,this)}set userInstanceId(e){(0,l.A)(Ba,this,e)}get behavior(){return(0,c.A)(Fa,this)}set behavior(e){(0,l.A)(Fa,this,e)}get bordered(){return(0,c.A)(Pa,this)}set bordered(e){(0,l.A)(Pa,this,e)}get logoUrl(){return(0,c.A)(Va,this)}set logoUrl(e){(0,l.A)(Va,this,e)}get newChatUrl(){return(0,c.A)(Ha,this)}set newChatUrl(e){(0,l.A)(Ha,this,e)}get newChatLinkWhenCollapsed(){return(0,c.A)(ja,this)}set newChatLinkWhenCollapsed(e){(0,l.A)(ja,this,e)}get historyActiveId(){return(0,c.A)(Ga,this)}set historyActiveId(e){(0,l.A)(Ga,this,e)}get historyUrlTemplate(){return(0,c.A)(Ka,this)}set historyUrlTemplate(e){(0,l.A)(Ka,this,e)}get historyActions(){return(0,c.A)(qa,this)}set historyActions(e){(0,l.A)(qa,this,e)}get projectActiveId(){return(0,c.A)($a,this)}set projectActiveId(e){(0,l.A)($a,this,e)}get projectUrlTemplate(){return(0,c.A)(Ja,this)}set projectUrlTemplate(e){(0,l.A)(Ja,this,e)}get projectActions(){return(0,c.A)(Xa,this)}set projectActions(e){(0,l.A)(Xa,this,e)}get links(){return(0,c.A)(Ya,this)}set links(e){(0,l.A)(Ya,this,e)}pullHistory(e){setTimeout((()=>{var e;null===(e=(0,c.A)(cn,this).current)||void 0===e||e.pull()}),e)}close(){var e;null===(e=(0,c.A)(cn,this).current)||void 0===e||e.close()}removeProject(e){var t,i;null===(t=(0,c.A)(cn,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)(cn,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)(cn,this).current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)}render(){return p().createElement(Da,{ref:(0,c.A)(cn,this),legacy:this.legacy,userInstanceId:this.userInstanceId,behavior:this.behavior,logoUrl:this.logoUrl,newChatUrl:this.newChatUrl,newChatLinkWhenCollapsed:this.newChatLinkWhenCollapsed,historyActiveId:this.historyActiveId,historyUrlTemplate:this.historyUrlTemplate,historyActions:this.historyActions,projectActiveId:this.projectActiveId,projectUrlTemplate:this.projectUrlTemplate,projectActions:this.projectActions,links:this.links,onLogout:(0,c.A)(en,this),onLegacyActionClick:(0,c.A)(nn,this),onActionClick:(0,c.A)(an,this),onProjectActionClick:(0,c.A)(sn,this),onAddProject:(0,c.A)(ln,this)})}}function dn(e,t){let{legacy:i,userInstanceId:a,behavior:n,logoUrl:r,newChatUrl:s,newChatLinkWhenCollapsed:o,historyActiveId:l,historyUrlTemplate:c,historyActions:h,projectActiveId:u,projectUrlTemplate:m,projectActions:g,links:A,onLogout:k,onActionClick:E,onLegacyActionClick:x,onProjectActionClick:v,onAddProject:w}=e;const[f,y]=(0,d.useState)("drawer"===n),T=(0,d.useCallback)((()=>{y(!0)}),[]),S=(0,d.useCallback)((()=>{y(!1)}),[]);(0,d.useEffect)((()=>{"drawer"===n&&y(!0)}),[n]);const M=(0,d.useCallback)((()=>{y(!0)}),[]),C=(0,d.useCallback)((()=>{"drawer"===n&&y(!0)}),[n]),_=(0,d.useMemo)((()=>[{key:"logout",icon:{lib:"fa",prefix:"fas",icon:"arrow-right-from-bracket"},text:(0,Li.t)(Li.K.LOGOUT)},{key:"switch-language",icon:{lib:"easyops",icon:"language"},text:(0,Li.t)(Li.K.SWITCH_LANGUAGE)}]),[]),N=(0,d.useRef)(null);return(0,d.useImperativeHandle)(t,(()=>({close:()=>{y(!0)},pull:()=>{var e;null===(e=N.current)||void 0===e||e.pull()},removeProject:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.removeProject)||void 0===i||i.call(t,e)},addProject:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.addProject)||void 0===i||i.call(t,e)},moveConversation:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)}})),[]),p().createElement("div",{className:Wi()("container",{collapsed:f})},"drawer"===n&&!f&&p().createElement("div",{className:"mask",onClick:M}),p().createElement("div",{className:"alternative"},p().createElement(Oi.Py,{icon:Na,variant:"light",onClick:S}),o&&p().createElement(Oi.EM,{className:"new-chat",url:s},p().createElement(Oi.Bj,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),(0,Li.t)(Li.K.NEW_CHAT))),p().createElement("div",{className:"sidebar"},p().createElement("div",{className:"logo-bar"},p().createElement(Oi.EM,{url:r,className:"logo-link"},p().createElement(Ra,null)),p().createElement(Oi.Py,{icon:Na,variant:"light",onClick:T})),p().createElement(Oi.EM,{className:"new-chat",url:s},p().createElement(Oi.Bj,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),(0,Li.t)(Li.K.NEW_CHAT)),null!=A&&A.length?p().createElement("div",{className:"links"},A.map(((e,t)=>p().createElement(Oi.EM,{className:"link",key:t,url:e.url},p().createElement(Oi.Bj,(0,jt.A)({className:"icon"},e.icon)),p().createElement("span",{className:"title"},e.title))))):null,i?p().createElement(zi.Y,{ref:N,activeId:l,urlTemplate:c,actions:h,onActionClick:x,onHistoryClick:C}):p().createElement(Di.D,{ref:N,historyActiveId:l,historyUrlTemplate:c,historyActions:h,projectActiveId:u,projectUrlTemplate:m,projectActions:g,onActionClick:E,onHistoryClick:C,onProjectActionClick:v,onAddProject:w}),p().createElement("div",{className:"footer"},p().createElement(Oi.qb,{className:"dropdown",actions:_,onActionClick:async e=>{"logout"===e.detail.key?k():(await b.i18n.changeLanguage(b.i18n.language&&"en"===b.i18n.language.split("-")[0]?"zh":"en"),(0,Ni.getHistory)().reload())}},p().createElement("button",{className:"account"},p().createElement(Oi.JQ,{nameOrInstanceId:a,showName:!0,size:"xs"}))))))}_i=hn,({e:[Fi,Pi,Vi,Hi,ji,Gi,Ki,qi,$i,Ji,Xi,Yi,Qi,Zi,ea,ta,ia,aa,na,ra,sa,oa,la,ca,ha,da,pa,ua,ma,ba,ga,Aa,ka,Ea,xa,va,wa,fa,ya,Ta,Sa,Ma,Ca,_a,Ui],c:[za,Bi]}=(0,h.A)(_i,[Wa("ai-portal.elevo-sidebar",{styleTexts:[Ii.A]})],[[La({type:Boolean}),1,"legacy"],[La(),1,"userInstanceId"],[La(),1,"behavior"],[La({type:Boolean,render:!1}),1,"bordered"],[La(),1,"logoUrl"],[La(),1,"newChatUrl"],[La({type:Boolean}),1,"newChatLinkWhenCollapsed"],[La(),1,"historyActiveId"],[La(),1,"historyUrlTemplate"],[La({attribute:!1}),1,"historyActions"],[La(),1,"projectActiveId"],[La(),1,"projectUrlTemplate"],[La({attribute:!1}),1,"projectActions"],[La({attribute:!1}),1,"links"],[Ia({type:"logout"}),1,"logout",e=>(0,c.A)(Qa,e),(e,t)=>(0,l.A)(Qa,e,t)],[Ia({type:"action.click"}),1,"actionClick",e=>(0,c.A)(tn,e),(e,t)=>(0,l.A)(tn,e,t)],[Ia({type:"project.action.click"}),1,"projectActionClick",e=>(0,c.A)(rn,e),(e,t)=>(0,l.A)(rn,e,t)],[Ia({type:"add.project"}),1,"addProject",e=>(0,c.A)(on,e),(e,t)=>(0,l.A)(on,e,t)],[Oa(),2,"pullHistory"],[Oa(),2,"close"],[Oa(),2,"removeProject"],[Oa(),2,"addProject"],[Oa(),2,"moveConversation"]],0,(e=>cn.has((0,s.A)(e))),m.ReactNextElement)),Bi();var pn,un=i(47338);let mn,bn,gn,An,kn,En,xn,vn,wn;const fn=(0,m.wrapBrick)("eo-icon"),yn=(0,m.wrapBrick)("eo-tooltip"),{defineElement:Tn,property:Sn}=(0,u.createDecorators)();let Mn;var Cn=new WeakMap,_n=new WeakMap,Nn=new WeakMap,Rn=new WeakMap;class Wn extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Cn,bn(this)),(0,r.A)(this,_n,(gn(this),An(this))),(0,r.A)(this,Nn,(kn(this),En(this))),(0,r.A)(this,Rn,(xn(this),vn(this))),wn(this)}get icon(){return(0,c.A)(Cn,this)}set icon(e){(0,l.A)(Cn,this,e)}get tooltip(){return(0,c.A)(_n,this)}set tooltip(e){(0,l.A)(_n,this,e)}get disabled(){return(0,c.A)(Nn,this)}set disabled(e){(0,l.A)(Nn,this,e)}get variant(){return(0,c.A)(Rn,this)}set variant(e){(0,l.A)(Rn,this,e)}render(){return p().createElement(Ln,{icon:this.icon,tooltip:this.tooltip,disabled:this.disabled})}}function Ln(e){let{icon:t,tooltip:i,disabled:a}=e;const n=p().createElement("button",{disabled:a},p().createElement(fn,t));return i?p().createElement(yn,{content:i},n):n}pn=Wn,({e:[bn,gn,An,kn,En,xn,vn,wn],c:[Mn,mn]}=(0,h.A)(pn,[Tn("ai-portal.icon-button",{styleTexts:[un.A]})],[[Sn({attribute:!1}),1,"icon"],[Sn(),1,"tooltip"],[Sn({type:Boolean}),1,"disabled"],[Sn({render:!1}),1,"variant"]],0,void 0,m.ReactNextElement)),mn();let In=function(e){return e.ALL="ALL",e.EXPLORE_EXCELLENT_CASES="EXPLORE_EXCELLENT_CASES",e}({});const On="bricks/ai-portal/show-cases",Dn={en:{[In.ALL]:"All",[In.EXPLORE_EXCELLENT_CASES]:"Explore excellent cases"},zh:{[In.ALL]:"全部",[In.EXPLORE_EXCELLENT_CASES]:"探索优秀案例"}},zn=b.i18n.getFixedT(null,On);var Un,Bn=i(42873),Fn=i(98343);let Pn,Vn,Hn,jn,Gn;(0,b.initializeI18n)(On,Dn);const Kn=(0,m.wrapBrick)("eo-link"),qn=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:$n,property:Jn}=(0,u.createDecorators)();let Xn;var Yn=new WeakMap,Qn=new WeakMap;class Zn extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Yn,Vn(this)),(0,r.A)(this,Qn,(Hn(this),jn(this))),Gn(this)}get list(){return(0,c.A)(Yn,this)}set list(e){(0,l.A)(Yn,this,e)}get taskUrlTemplate(){return(0,c.A)(Qn,this)}set taskUrlTemplate(e){(0,l.A)(Qn,this,e)}render(){return p().createElement(er,{list:this.list,taskUrlTemplate:this.taskUrlTemplate})}}function er(e){let{list:t,taskUrlTemplate:i}=e;const a=(0,d.useMemo)((()=>["",...new Set(null==t?void 0:t.map((e=>e.scenario)).filter(Boolean))]),[t]),[n,r]=(0,d.useState)(""),s=(0,d.useMemo)((()=>n?null==t?void 0:t.filter((e=>e.scenario===n)):t),[n,t]),o=(0,d.useMemo)((()=>a.map((e=>({id:e,label:""===e?zn(In.ALL):e})))),[a]);return null!=t&&t.length?p().createElement(p().Fragment,null,p().createElement("div",{className:"tips"},`${zn(In.EXPLORE_EXCELLENT_CASES)} ↓`),p().createElement(qn,{tabs:o,activeTab:n,onTabClick:e=>r(e.detail.id)}),p().createElement("ul",{className:"cases"},null==s?void 0:s.map((e=>p().createElement("li",{key:e.taskId},p().createElement(Kn,{className:"link",url:(0,Fn.Q)(i,e),style:e.thumbUrl?{backgroundImage:`url("${(0,Ni.getBasePath)()}${e.thumbUrl}")`}:void 0},p().createElement("div",{className:"title"},e.title),p().createElement("div",{className:"description"},e.summary))))))):null}Un=Zn,({e:[Vn,Hn,jn,Gn],c:[Xn,Pn]}=(0,h.A)(Un,[$n("ai-portal.show-cases",{styleTexts:[Bn.A]})],[[Jn({attribute:!1}),1,"list"],[Jn(),1,"taskUrlTemplate"]],0,void 0,m.ReactNextElement)),Pn();let tr=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 ir="bricks/ai-portal/mcp-tools",ar={en:{[tr.MCP_HUB]:"MCP Hub",[tr.ALL]:"All",[tr.SERVER_cmdb]:"CMDB",[tr.SERVER_cmdb_product_helper]:"CMDB",[tr.SERVER_alert]:"Alert",[tr.SERVER_web_builder]:"View",[tr.SERVER_web_builder2]:"View",[tr.SERVER_host_troubleshooting]:"Host Troubleshooting",[tr.SERVER_system_inspection]:"System Inspection",[tr.SERVER_grafana]:"Grafana",[tr.SERVER_kubernetes]:"Kubernetes",[tr.SERVER_llm]:"LLM"},zh:{[tr.MCP_HUB]:"MCP 中心",[tr.ALL]:"全部",[tr.SERVER_cmdb]:"CMDB",[tr.SERVER_cmdb_product_helper]:"CMDB",[tr.SERVER_alert]:"告警",[tr.SERVER_web_builder]:"视图",[tr.SERVER_web_builder2]:"视图",[tr.SERVER_host_troubleshooting]:"主机故障排查",[tr.SERVER_system_inspection]:"系统巡检",[tr.SERVER_grafana]:"Grafana",[tr.SERVER_kubernetes]:"Kubernetes",[tr.SERVER_llm]:"大模型"}},nr=b.i18n.getFixedT(null,ir);var rr,sr=i(31748);let or,lr,cr,hr,dr;(0,b.initializeI18n)(ir,ar);const pr={lib:"antd",icon:"tool"},ur=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"]}]]),mr=(0,m.wrapBrick)("eo-icon"),br=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:gr,property:Ar}=(0,u.createDecorators)();let kr;var Er=new WeakMap,xr=new WeakMap;class vr extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Er,lr(this)),(0,r.A)(this,xr,(cr(this),hr(this,!0))),dr(this)}get list(){return(0,c.A)(Er,this)}set list(e){(0,l.A)(Er,this,e)}get withContainer(){return(0,c.A)(xr,this)}set withContainer(e){(0,l.A)(xr,this,e)}render(){return p().createElement(wr,{list:this.list,withContainer:this.withContainer})}}function wr(e){let{list:t,withContainer:i}=e;const[a,n]=(0,d.useMemo)((()=>{const e=new Map,i=new Map;null==t||t.forEach((t=>{const a=nr(`SERVER_${t.server.id.replaceAll("-","_")}`,t.server.name);let n=e.get(a);n||e.set(a,n=[]),n.push(t);const r=[...ur.entries()].find((e=>{let[i,{servers:a}]=e;return a.includes(t.server.id)})),s=r?r[0]:"其他";let o=i.get(s);o||i.set(s,o=[]),o.push(a)}));const a=["CMDB"];return[new Map([...e.entries()].sort(((e,t)=>{let[i]=e,[n]=t;const r=a.indexOf(i),s=a.indexOf(n);return(r<0?a.length:r)-(s<0?a.length:s)}))),i]}),[t]),r=(0,d.useMemo)((()=>{const e=[...ur.keys()],t=[...n.keys()];return t.sort(((t,i)=>{const a=e.indexOf(t),n=e.indexOf(i);return(a<0?e.length:a)-(n<0?e.length:n)})),["",...t]}),[n]),[s,o]=(0,d.useState)(""),l=(0,d.useMemo)((()=>{const e=[...a];if(!s)return e;const t=n.get(s);return e.filter((e=>{let[i]=e;return null==t?void 0:t.includes(i)}))}),[s,a,n]),c=(0,d.useMemo)((()=>r.map((e=>({id:e,label:""===e?nr(tr.ALL):e})))),[r]),h=p().createElement(p().Fragment,null,p().createElement(br,{tabs:c,activeTab:s,onTabClick:e=>o(e.detail.id)}),p().createElement("ul",{className:"groups"},null==l?void 0:l.map((e=>{let[t,i]=e;return p().createElement("li",{key:t,className:"group"},p().createElement("h2",null,t),p().createElement("ul",{className:"list"},i.map(((e,t)=>{var i;return p().createElement("li",{key:t,className:"item"},p().createElement("div",{className:"heading"},p().createElement(mr,(0,jt.A)({className:"icon"},null!==(i=e.icon)&&void 0!==i?i:pr,{fallback:pr})),p().createElement("div",{className:"title"},e.title)),p().createElement("div",{className:"description"},e.description))}))))}))));return i?p().createElement("div",{className:"container"},p().createElement("h1",null,nr(tr.MCP_HUB)),h):h}rr=vr,({e:[lr,cr,hr,dr],c:[kr,or]}=(0,h.A)(rr,[gr("ai-portal.mcp-tools",{styleTexts:[sr.A]})],[[Ar({attribute:!1}),1,"list"],[Ar({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),or();var fr,yr=i(92914),Tr=i(82515),Sr=i(16572);let Mr,Cr,_r,Nr,Rr,Wr,Lr,Ir,Or,Dr,zr,Ur,Br,Fr,Pr,Vr,Hr,jr,Gr,Kr,qr,$r,Jr,Xr,Yr,Qr,Zr,es,ts,is,as,ns,rs,ss,os,ls,cs,hs,ds,ps,us,ms,bs,gs,As,ks;(0,b.initializeI18n)(yr.NS,yr.I);const{defineElement:Es,property:xs,event:vs,method:ws}=(0,u.createDecorators)(),fs=(0,d.forwardRef)(Tr.L),ys=(0,d.forwardRef)(Sr.C);let Ts;var Ss=new WeakMap,Ms=new WeakMap,Cs=new WeakMap,_s=new WeakMap,Ns=new WeakMap,Rs=new WeakMap,Ws=new WeakMap,Ls=new WeakMap,Is=new WeakMap,Os=new WeakMap,Ds=new WeakMap,zs=new WeakMap,Us=new WeakMap,Bs=new WeakSet,Fs=new WeakMap,Ps=new WeakMap,Vs=new WeakMap,Hs=new WeakMap,js=new WeakMap,Gs=new WeakMap,Ks=new WeakMap,qs=new WeakMap,$s=new WeakMap,Js=new WeakMap;class Xs extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Bs),(0,r.A)(this,Ss,(Mr(this),_r(this))),(0,r.A)(this,Ms,(Nr(this),Rr(this))),(0,r.A)(this,Cs,(Wr(this),Lr(this))),(0,r.A)(this,_s,(Ir(this),Or(this))),(0,r.A)(this,Ns,(Dr(this),zr(this))),(0,r.A)(this,Rs,(Ur(this),Br(this))),(0,r.A)(this,Ws,(Fr(this),Pr(this))),(0,r.A)(this,Ls,(Vr(this),Hr(this))),(0,r.A)(this,Is,(jr(this),Gr(this))),(0,r.A)(this,Os,(Kr(this),qr(this))),(0,r.A)(this,Ds,($r(this),Jr(this))),(0,r.A)(this,zs,(Xr(this),Yr(this))),(0,r.A)(this,Us,(Qr(this),Zr(this))),(0,r.A)(this,Fs,(is(this),()=>{(0,o.A)(Bs,this,es).emit()})),(0,r.A)(this,Ps,as(this)),(0,r.A)(this,Vs,(ss(this),()=>{(0,o.A)(Bs,this,ns).emit()})),(0,r.A)(this,Hs,os(this)),(0,r.A)(this,js,(hs(this),e=>{(0,o.A)(Bs,this,ls).emit(e)})),(0,r.A)(this,Gs,ds(this)),(0,r.A)(this,Ks,(ms(this),e=>{(0,o.A)(Bs,this,ps).emit(e)})),(0,r.A)(this,qs,bs(this)),(0,r.A)(this,$s,(ks(this),()=>{(0,o.A)(Bs,this,gs).emit("canvas")})),(0,r.A)(this,Js,(0,d.createRef)())}get conversationId(){return(0,c.A)(Ss,this)}set conversationId(e){(0,l.A)(Ss,this,e)}get initialRequest(){return(0,c.A)(Ms,this)}set initialRequest(e){(0,l.A)(Ms,this,e)}get taskId(){return(0,c.A)(Cs,this)}set taskId(e){(0,l.A)(Cs,this,e)}get replay(){return(0,c.A)(_s,this)}set replay(e){(0,l.A)(_s,this,e)}get replayDelay(){return(0,c.A)(Ns,this)}set replayDelay(e){(0,l.A)(Ns,this,e)}get supports(){return(0,c.A)(Rs,this)}set supports(e){(0,l.A)(Rs,this,e)}get showFeedback(){return(0,c.A)(Ws,this)}set showFeedback(e){(0,l.A)(Ws,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(Ls,this)}set showFeedbackAfterFailed(e){(0,l.A)(Ls,this,e)}get showFeedbackOnView(){return(0,c.A)(Is,this)}set showFeedbackOnView(e){(0,l.A)(Is,this,e)}get showUiSwitch(){return(0,c.A)(Os,this)}set showUiSwitch(e){(0,l.A)(Os,this,e)}get hideMermaid(){return(0,c.A)(Ds,this)}set hideMermaid(e){(0,l.A)(Ds,this,e)}get previewUrlTemplate(){return(0,c.A)(zs,this)}set previewUrlTemplate(e){(0,l.A)(zs,this,e)}resumed(){var e,t;null===(e=(0,c.A)(Js,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(Js,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(Js,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(Js,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){const e=this.conversationId?ys:fs;return p().createElement(e,{conversationId:this.conversationId,initialRequest:this.initialRequest,taskId:this.taskId,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showFeedbackOnView:this.showFeedbackOnView,showUiSwitch:this.showUiSwitch,previewUrlTemplate:this.previewUrlTemplate,onShare:(0,c.A)(Fs,this),onTerminate:(0,c.A)(Vs,this),onSubmitFeedback:(0,c.A)(js,this),onSwitchToCanvas:(0,c.A)($s,this),onFeedbackOnView:(0,c.A)(Ks,this)})}}fr=Xs,({e:[_r,Nr,Rr,Wr,Lr,Ir,Or,Dr,zr,Ur,Br,Fr,Pr,Vr,Hr,jr,Gr,Kr,qr,$r,Jr,Xr,Yr,Qr,Zr,es,ts,is,as,ns,rs,ss,os,ls,cs,hs,ds,ps,us,ms,bs,gs,As,ks,Mr],c:[Ts,Cr]}=(0,h.A)(fr,[Es("ai-portal.chat-stream",{shadowOptions:!1})],[[xs(),1,"conversationId"],[xs({attribute:!1,render:!1}),1,"initialRequest"],[xs(),1,"taskId"],[xs({type:Boolean}),1,"replay"],[xs({type:Number}),1,"replayDelay"],[xs({attribute:!1}),1,"supports"],[xs({type:Boolean}),1,"showFeedback"],[xs({type:Boolean}),1,"showFeedbackAfterFailed"],[xs({type:Boolean}),1,"showFeedbackOnView"],[xs({type:Boolean}),1,"showUiSwitch"],[xs({type:Boolean,render:!1}),1,"hideMermaid"],[xs(),1,"previewUrlTemplate"],[vs({type:"share"}),1,"shareEvent",e=>(0,c.A)(Us,e),(e,t)=>(0,l.A)(Us,e,t)],[vs({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(Ps,e),(e,t)=>(0,l.A)(Ps,e,t)],[vs({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(Hs,e),(e,t)=>(0,l.A)(Hs,e,t)],[vs({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(Gs,e),(e,t)=>(0,l.A)(Gs,e,t)],[vs({type:"ui.switch"}),1,"switch",e=>(0,c.A)(qs,e),(e,t)=>(0,l.A)(qs,e,t)],[ws(),2,"resumed"],[ws(),2,"feedbackSubmitDone"],[ws(),2,"feedbackSubmitFailed"],[ws(),2,"feedbackOnViewDone"]],0,(e=>Js.has((0,s.A)(e))),m.ReactNextElement)),Cr();let Ys=function(e){return e.AI_EMPLOYEES="AI_EMPLOYEES",e.UNTITLED="UNTITLED",e}({});const Qs="bricks/ai-portal/ai-employees",Zs=b.i18n.getFixedT(null,Qs);var eo,to=i(98036);let io,ao,no,ro,so,oo,lo,co,ho;(0,b.initializeI18n)(Qs,{en:{AI_EMPLOYEES:"AI Employees",UNTITLED:"Untitled"},zh:{AI_EMPLOYEES:"Ai 数字人",UNTITLED:"未命名"}});const po=(0,m.wrapBrick)("eo-link"),uo=(0,m.wrapBrick)("eo-icon"),mo=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:bo,property:go}=(0,u.createDecorators)();let Ao;var ko=new WeakMap,Eo=new WeakMap,xo=new WeakMap,vo=new WeakMap;class wo extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,ko,ao(this)),(0,r.A)(this,Eo,(no(this),ro(this))),(0,r.A)(this,xo,(so(this),oo(this))),(0,r.A)(this,vo,(lo(this),co(this,!0))),ho(this)}get list(){return(0,c.A)(ko,this)}set list(e){(0,l.A)(ko,this,e)}get industries(){return(0,c.A)(Eo,this)}set industries(e){(0,l.A)(Eo,this,e)}get urlTemplate(){return(0,c.A)(xo,this)}set urlTemplate(e){(0,l.A)(xo,this,e)}get withContainer(){return(0,c.A)(vo,this)}set withContainer(e){(0,l.A)(vo,this,e)}render(){return p().createElement(fo,{list:this.list,industries:this.industries,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function fo(e){let{list:t,industries:i,urlTemplate:a,withContainer:n}=e;const r=(0,d.useMemo)((()=>[...new Set([...null!=i?i:[],...(null!=t?t:[]).map((e=>e.industry))])]),[i,t]),[s,o]=(0,d.useState)(r[0]),l=(0,d.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,d.useMemo)((()=>r.map((e=>({id:e,label:e||Zs(Ys.UNTITLED)})))),[r]),h=p().createElement(p().Fragment,null,p().createElement(mo,{tabs:c,activeTab:s,onTabClick:e=>o(e.detail.id)}),p().createElement("ul",{className:"groups"},l.map((e=>{let[t,i]=e;return p().createElement("li",{key:t,className:"group"},p().createElement("h2",null,t),p().createElement("ul",{className:"list"},i.map(((e,t)=>p().createElement("li",{key:t},p().createElement(po,(0,jt.A)({className:Wi()("link",{clickable:!!a})},a?{url:(0,Fn.Q)(a,e)}:null),p().createElement("div",{className:"heading"},p().createElement("div",{className:"avatar"},e.avatar?p().createElement("img",{src:e.avatar}):p().createElement(uo,{lib:"antd",icon:"user"})),p().createElement("div",{className:"title"},e.name)),p().createElement("div",{className:"description"},e.description)))))))}))));return n?p().createElement("div",{className:"container"},p().createElement("h1",null,Zs(Ys.AI_EMPLOYEES)),h):h}eo=wo,({e:[ao,no,ro,so,oo,lo,co,ho],c:[Ao,io]}=(0,h.A)(eo,[bo("ai-portal.ai-employees",{styleTexts:[to.A]})],[[go({attribute:!1}),1,"list"],[go({attribute:!1}),1,"industries"],[go(),1,"urlTemplate"],[go({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),io();let yo=function(e){return e.AGENTS="AGENTS",e}({});const To="bricks/ai-portal/ai-agents",So=b.i18n.getFixedT(null,To);var Mo,Co=i(83059);let _o,No,Ro,Wo,Lo,Io,Oo;const Do={lib:"antd",icon:"tool"};(0,b.initializeI18n)(To,{en:{AGENTS:"Agents"},zh:{AGENTS:"智能体"}});const zo=(0,m.wrapBrick)("eo-icon"),Uo=(0,m.wrapBrick)("eo-link"),{defineElement:Bo,property:Fo}=(0,u.createDecorators)();let Po;var Vo=new WeakMap,Ho=new WeakMap,jo=new WeakMap;class Go extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Vo,No(this)),(0,r.A)(this,Ho,(Ro(this),Wo(this))),(0,r.A)(this,jo,(Lo(this),Io(this,!0))),Oo(this)}get list(){return(0,c.A)(Vo,this)}set list(e){(0,l.A)(Vo,this,e)}get urlTemplate(){return(0,c.A)(Ho,this)}set urlTemplate(e){(0,l.A)(Ho,this,e)}get withContainer(){return(0,c.A)(jo,this)}set withContainer(e){(0,l.A)(jo,this,e)}render(){return p().createElement(Ko,{list:this.list,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function Ko(e){let{list:t,urlTemplate:i,withContainer:a}=e;const n=p().createElement(p().Fragment,null,p().createElement("ul",{className:"list"},null==t?void 0:t.map(((e,t)=>{var a,n;return p().createElement("li",{key:t},p().createElement(Uo,(0,jt.A)({className:Wi()("link",{clickable:!!i})},i?{url:(0,Fn.Q)(i,e)}:null),p().createElement("div",{className:"heading"},p().createElement("div",{className:"icon"},p().createElement(zo,(0,jt.A)({},null!==(a=e.icon)&&void 0!==a?a:Do,{fallback:Do}))),p().createElement("div",{className:"title"},e.name)),p().createElement("div",{className:"tags"},null===(n=e.tags)||void 0===n?void 0:n.map(((e,t)=>p().createElement("span",{key:t,className:"tag"},e)))),p().createElement("div",{className:"description"},e.description)))}))));return a?p().createElement("div",{className:"container"},p().createElement("h1",null,So(yo.AGENTS)),n):n}Mo=Go,({e:[No,Ro,Wo,Lo,Io,Oo],c:[Po,_o]}=(0,h.A)(Mo,[Bo("ai-portal.ai-agents",{styleTexts:[Co.A]})],[[Fo({attribute:!1}),1,"list"],[Fo(),1,"urlTemplate"],[Fo({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),_o();var qo=i(94558);let $o=null;customElements.define("ai-portal.save-request-store",(0,qo.createProviderClass)((function(e){$o=e}))),customElements.define("ai-portal.load-request-store",(0,qo.createProviderClass)((function(){const e=$o;return $o=null,e}))),customElements.define("ai-portal.clear-request-store",(0,qo.createProviderClass)((function(){$o=null})));var Jo,Xo=i(49041);let Yo,Qo,Zo,el,tl,il,al;const nl=(0,m.wrapBrick)("eo-link"),{defineElement:rl,property:sl}=(0,u.createDecorators)();let ol;var ll=new WeakMap,cl=new WeakMap,hl=new WeakMap;class dl extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,ll,Qo(this)),(0,r.A)(this,cl,(Zo(this),el(this))),(0,r.A)(this,hl,(tl(this),il(this))),al(this)}get pageTitle(){return(0,c.A)(ll,this)}set pageTitle(e){(0,l.A)(ll,this,e)}get breadcrumbs(){return(0,c.A)(cl,this)}set breadcrumbs(e){(0,l.A)(cl,this,e)}get size(){return(0,c.A)(hl,this)}set size(e){(0,l.A)(hl,this,e)}render(){return p().createElement(pl,{pageTitle:this.pageTitle,breadcrumbs:this.breadcrumbs})}}function pl(e){let{breadcrumbs:t,pageTitle:i}=e;return(0,d.useEffect)((()=>{"string"==typeof i&&(0,Ni.getRuntime)().applyPageTitle(i)}),[i]),p().createElement("div",{className:"container"},i||null!=t&&t.length?p().createElement("div",{className:"header"},p().createElement("nav",null,null!=t&&t.length?p().createElement("ul",{className:"breadcrumbs"},t.map(((e,t)=>p().createElement("li",{key:t},p().createElement(nl,{url:e.url},e.text))))):null,i?p().createElement("h1",null,i):null),p().createElement("slot",{name:"toolbar"})):null,p().createElement("slot",null))}Jo=dl,({e:[Qo,Zo,el,tl,il,al],c:[ol,Yo]}=(0,h.A)(Jo,[rl("ai-portal.page-container",{styleTexts:[Xo.A]})],[[sl(),1,"pageTitle"],[sl({attribute:!1}),1,"breadcrumbs"],[sl({render:!1}),1,"size"]],0,void 0,m.ReactNextElement)),Yo();var ul=i(465);let ml=function(e){return e.CHATS="CHATS",e.GOALS="GOALS",e}({});const bl="bricks/ai-portal/project-summary",gl={en:{[ml.CHATS]:"Chat history",[ml.GOALS]:"Project goals"},zh:{[ml.CHATS]:"历史对话",[ml.GOALS]:"项目目标"}},Al=b.i18n.getFixedT(null,bl);var kl,El=i(56562);let xl,vl,wl,fl,yl;(0,b.initializeI18n)(bl,gl);const Tl=(0,m.wrapBrick)("eo-icon"),Sl=(0,m.wrapBrick)("eo-link"),Ml=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),Cl="chats",_l=[{id:Cl,label:Al(ml.CHATS)},{id:"goals",label:Al(ml.GOALS)}],{defineElement:Nl,property:Rl}=(0,u.createDecorators)();let Wl;var Ll=new WeakMap,Il=new WeakMap;class Ol extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Ll,vl(this)),(0,r.A)(this,Il,(wl(this),fl(this))),yl(this)}get chatList(){return(0,c.A)(Ll,this)}set chatList(e){(0,l.A)(Ll,this,e)}get chatUrlTemplate(){return(0,c.A)(Il,this)}set chatUrlTemplate(e){(0,l.A)(Il,this,e)}render(){return p().createElement(Dl,{chatList:this.chatList,chatUrlTemplate:this.chatUrlTemplate})}}function Dl(e){let{chatList:t,chatUrlTemplate:i}=e;const[a,n]=(0,d.useState)(Cl);return p().createElement(p().Fragment,null,p().createElement(Ml,{tabs:_l,activeTab:a,onTabClick:e=>n(e.detail.id)}),a===Cl?t?p().createElement("ul",{className:"chats"},t.map((e=>p().createElement("li",{key:e.conversationId,className:"item"},p().createElement(Sl,{className:"link",url:(0,Fn.Q)(i,e)},p().createElement("div",{className:"title"},e.title),p().createElement("div",{className:"time"},p().createElement(Tl,{lib:"antd",icon:"clock-circle"}),(0,ul.P)(e.startTime,ul.c.relative))))))):p().createElement("div",{className:"loading"},p().createElement(Tl,{lib:"antd",icon:"loading-3-quarters",spinning:!0})):null)}kl=Ol,({e:[vl,wl,fl,yl],c:[Wl,xl]}=(0,h.A)(kl,[Nl("ai-portal.project-summary",{styleTexts:[El.A]})],[[Rl({attribute:!1}),1,"chatList"],[Rl(),1,"chatUrlTemplate"]],0,void 0,m.ReactNextElement)),xl();var zl,Ul=i(20124);let Bl,Fl,Pl,Vl,Hl,jl,Gl,Kl,ql;const{defineElement:$l,property:Jl,event:Xl}=(0,u.createDecorators)();let Yl;var Ql=new WeakMap,Zl=new WeakMap,ec=new WeakMap,tc=new WeakSet,ic=new WeakMap;class ac extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,tc),(0,r.A)(this,Ql,Fl(this)),(0,r.A)(this,Zl,(Pl(this),Vl(this))),(0,r.A)(this,ec,(Hl(this),jl(this))),(0,r.A)(this,ic,(ql(this),e=>{this.activeTab=e.id,(0,o.A)(tc,this,Gl).emit(e)}))}get tabs(){return(0,c.A)(Ql,this)}set tabs(e){(0,l.A)(Ql,this,e)}get activeTab(){return(0,c.A)(Zl,this)}set activeTab(e){(0,l.A)(Zl,this,e)}render(){return p().createElement(nc,{tabs:this.tabs,activeTab:this.activeTab,onTabClick:(0,c.A)(ic,this)})}}function nc(e){let{tabs:t,activeTab:i,onTabClick:a}=e;return p().createElement("ul",{className:"tabs",part:"tabs"},null==t?void 0:t.map((e=>p().createElement("li",{key:e.id,part:"tab",className:Wi()("tab",{active:e.id===i})},p().createElement("a",{onClick:()=>a(e)},e.label)))))}zl=ac,({e:[Fl,Pl,Vl,Hl,jl,Gl,Kl,ql],c:[Yl,Bl]}=(0,h.A)(zl,[$l("ai-portal.tab-list",{styleTexts:[Ul.A]})],[[Jl({attribute:!1}),1,"tabs"],[Jl({attribute:!1}),1,"activeTab"],[Xl({type:"tab.click"}),1,"tabClick",e=>(0,c.A)(ec,e),(e,t)=>(0,l.A)(ec,e,t)]],0,(e=>ic.has((0,s.A)(e))),m.ReactNextElement)),Bl();var rc=i(41030);let sc=function(e){return e.PLEASE_SELECT="PLEASE_SELECT",e.SEARCH_PLACEHOLDER="SEARCH_PLACEHOLDER",e.SEARCH_NO_DATA="SEARCH_NO_DATA",e}({});const oc="bricks/ai-portal/dropdown-select",lc=b.i18n.getFixedT(null,oc);var cc,hc=i(40138);let dc,pc,uc,mc,bc,gc,Ac,kc,Ec,xc,vc,wc,fc,yc,Tc,Sc,Mc,Cc,_c,Nc,Rc;(0,b.initializeI18n)(oc,{en:{PLEASE_SELECT:"Please Select",SEARCH_PLACEHOLDER:"Search",SEARCH_NO_DATA:"No Data"},zh:{PLEASE_SELECT:"请选择",SEARCH_PLACEHOLDER:"搜索",SEARCH_NO_DATA:"暂无结果"}});const{defineElement:Wc,property:Lc,event:Ic}=(0,u.createDecorators)(),Oc=(0,m.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"}),Dc=(0,m.wrapBrick)("eo-icon"),zc=(0,m.wrapBrick)("eo-loading-container"),Uc=(0,m.wrapBrick)("eo-menu"),Bc=(0,m.wrapBrick)("eo-menu-item"),Fc=(0,m.wrapBrick)("eo-input",{onValueChange:"change"});let Pc;var Vc=new WeakMap,Hc=new WeakMap,jc=new WeakMap,Gc=new WeakMap,Kc=new WeakMap,qc=new WeakMap,$c=new WeakMap,Jc=new WeakMap,Xc=new WeakMap,Yc=new WeakSet,Qc=new WeakMap;class Zc extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Yc),(0,r.A)(this,Vc,pc(this)),(0,r.A)(this,Hc,(uc(this),mc(this))),(0,r.A)(this,jc,(bc(this),gc(this))),(0,r.A)(this,Gc,(Ac(this),kc(this))),(0,r.A)(this,Kc,(Ec(this),xc(this))),(0,r.A)(this,qc,(vc(this),wc(this))),(0,r.A)(this,$c,(fc(this),yc(this))),(0,r.A)(this,Jc,(Tc(this),Sc(this))),(0,r.A)(this,Xc,(Mc(this),Cc(this))),(0,r.A)(this,Qc,(Rc(this),e=>{(0,o.A)(Yc,this,_c).emit(e)}))}get value(){return(0,c.A)(Vc,this)}set value(e){(0,l.A)(Vc,this,e)}get options(){return(0,c.A)(Hc,this)}set options(e){(0,l.A)(Hc,this,e)}get labelMaxWidth(){return(0,c.A)(jc,this)}set labelMaxWidth(e){(0,l.A)(jc,this,e)}get loading(){return(0,c.A)(Gc,this)}set loading(e){(0,l.A)(Gc,this,e)}get searchPlaceholder(){return(0,c.A)(Kc,this)}set searchPlaceholder(e){(0,l.A)(Kc,this,e)}get dropdownContentStyle(){return(0,c.A)(qc,this)}set dropdownContentStyle(e){(0,l.A)(qc,this,e)}get dropdownMaxWidth(){return(0,c.A)($c,this)}set dropdownMaxWidth(e){(0,l.A)($c,this,e)}get showSearch(){return(0,c.A)(Jc,this)}set showSearch(e){(0,l.A)(Jc,this,e)}render(){return p().createElement(eh,{value:this.value,options:this.options,onChange:(0,c.A)(Qc,this),loading:this.loading,labelMaxWidth:this.labelMaxWidth,dropdownMaxWidth:this.dropdownMaxWidth,showSearch:this.showSearch,searchPlaceholder:this.searchPlaceholder,dropdownContentStyle:this.dropdownContentStyle})}}function eh(e){let{value:t,options:i,labelMaxWidth:a,dropdownMaxWidth:n,showSearch:r,loading:s,searchPlaceholder:o,dropdownContentStyle:l,onChange:c}=e;const[h,u]=(0,d.useState)(!1),[m,b]=(0,d.useState)(t),[g,A]=(0,d.useState)(""),[k,E]=(0,d.useState)(i);(0,d.useEffect)((()=>{E(i)}),[i]);const x=(0,d.useMemo)((()=>null==k?void 0:k.find((e=>e.value===m))),[k,m]),v=(0,d.useMemo)((()=>g&&k?null==k?void 0:k.filter((e=>e.label.toLowerCase().includes(g.toLowerCase()))):k),[k,g]),w=(0,d.useCallback)((e=>{u(e.detail),e.detail||A("")}),[]),f=(0,d.useMemo)((()=>(0,rc.debounce)((e=>{A(e.detail)}),300)),[]);return p().createElement(Oc,{placement:"bottom-start",trigger:"click",active:h,arrow:!1,distance:5,onBeforeVisibleChange:w},p().createElement("span",{slot:"anchor",className:"trigger"},p().createElement("span",{className:"label",style:{maxWidth:a}},x?null==x?void 0:x.label:lc(sc.PLEASE_SELECT)),p().createElement(Dc,{lib:"lucide",icon:h?"chevron-up":"chevron-down"})),p().createElement("div",{className:"dropdown",style:{maxWidth:n}},r&&p().createElement("div",{className:"search-container"},p().createElement(Fc,{className:"search",value:g,placeholder:o||lc(sc.SEARCH_PLACEHOLDER),onValueChange:f},p().createElement(Dc,{slot:"prefix",lib:"antd",icon:"search"}))),p().createElement(zc,{loading:s,delay:500,style:{width:"100%"}},p().createElement("div",{className:"dropdown-inner",style:l},p().createElement("slot",{name:"prefix"}),!(null==v||!v.length)&&p().createElement(Uc,null,null==v?void 0:v.map((e=>p().createElement(Bc,{key:e.value,disabled:e.disabled,className:m===e.value?"active":void 0,onClick:t=>{t.preventDefault(),t.stopPropagation(),u(!1),m!==e.value&&(b(e.value),c(e))}},e.label)))),!(null!=v&&v.length)&&p().createElement("div",{className:"empty"},lc(sc.SEARCH_NO_DATA))))))}cc=Zc,({e:[pc,uc,mc,bc,gc,Ac,kc,Ec,xc,vc,wc,fc,yc,Tc,Sc,Mc,Cc,_c,Nc,Rc],c:[Pc,dc]}=(0,h.A)(cc,[Wc("ai-portal.dropdown-select",{styleTexts:[hc.A]})],[[Lc(),1,"value"],[Lc({attribute:!1}),1,"options"],[Lc({attribute:!1}),1,"labelMaxWidth"],[Lc({type:Boolean}),1,"loading"],[Lc({attribute:!1}),1,"searchPlaceholder"],[Lc({attribute:!1}),1,"dropdownContentStyle"],[Lc({attribute:!1}),1,"dropdownMaxWidth"],[Lc({type:Boolean}),1,"showSearch"],[Ic({type:"change"}),1,"changeEvent",e=>(0,c.A)(Xc,e),(e,t)=>(0,l.A)(Xc,e,t)]],0,(e=>Qc.has((0,s.A)(e))),m.ReactNextElement)),dc();var th=i(8406),ih=i(57372);const ah=new Map([["$eq","=="],["$ne","!="],["$gt",">"],["$lt","<"],["$gte",">="],["$lte","<="]]);customElements.define("ai-portal.entity-sdk-list",(0,qo.createProviderClass)((async function(e,t,i){if(!e)throw new Error("Workspace is required for Entity SDK.");return"HOST_METRIC"===t?(await ih.http.post("api/gateway/data_exchange.olap.Query/api/v1/data_exchange/olap",{model:"easyops.HOST",filters:(n=null==i?void 0:i.query,Object.entries(n||{}).flatMap((e=>{let[t,i]=e;return Object.entries(i||{}).map((e=>{let[i,a]=e;const n=ah.get(i);if(!n)throw new Error(`Unsupported operator: "${i}"`);return{name:t,operator:n,value:a}}))}))),dims:["time(auto)"],measures:(a=null==i?void 0:i.fields,null==a?void 0:a.map((e=>({function:{args:[e],expression:"avg"},name:e}))))})).data:(0,th.y)(t,i);var a,n})));var nh=i(48518);customElements.define("ai-portal.entity-sdk-get",(0,qo.createProviderClass)((async function(e,t,i){if(!e)throw new Error("Workspace is required for Entity SDK.");return(0,nh.y)(t,i,{})})));var rh=i(25947);let sh=function(e){return e.UNTITLED="UNTITLED",e}({});const oh="bricks/ai-portal/preview-container",lh=b.i18n.getFixedT(null,oh);var ch=i(72591),hh=i.n(ch),dh=i(1740),ph=i.n(dh),uh=i(88128),mh=i.n(uh),bh=i(30855),gh=i.n(bh),Ah=i(93051),kh=i.n(Ah),Eh=i(73656),xh=i.n(Eh),vh=i(62522),wh={};wh.styleTagTransform=xh(),wh.setAttributes=gh(),wh.insert=mh().bind(null,"head"),wh.domAPI=ph(),wh.insertStyleElement=kh(),hh()(vh.A,wh);const fh=vh.A&&vh.A.locals?vh.A.locals:void 0;var yh,Th=i(6026),Sh=i(28599);let Mh,Ch,_h;(0,b.initializeI18n)(oh,{en:{UNTITLED:"Untitled"},zh:{UNTITLED:"无标题"}});const Nh=(0,m.wrapBrick)("eo-icon"),Rh=(0,m.wrapBrick)("eo-page-title"),Wh=(0,m.wrapBrick)("eo-main-view"),Lh=(0,m.wrapBrick)("eo-narrow-view"),{defineElement:Ih,property:Oh}=(0,u.createDecorators)();let Dh;var zh=new WeakMap,Uh=new WeakMap;class Bh extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,zh,Ch(this)),(0,r.A)(this,Uh,(_h(this),(0,rc.uniqueId)()))}get source(){return(0,c.A)(zh,this)}set source(e){(0,l.A)(zh,this,e)}render(){return p().createElement(d.Suspense,{fallback:p().createElement(Nh,{lib:"antd",icon:"loading-3-quarters",spinning:!0,className:fh.loading})},p().createElement(Fh,{rootId:(0,c.A)(Uh,this),source:this.source}))}}function Fh(e){let{rootId:t,source:i}=e;const a=(0,d.useMemo)((()=>i?async function(e){const t=await(0,Th.f)();return await t.parse(e)}(i).catch((e=>(console.error("Failed to parse view:",e),null))):Promise.resolve(null)),[i]),n=(0,d.use)(a),r=(0,d.useMemo)((()=>n?(0,rh.d)(n,{rootId:t,expanded:!0}).catch((e=>(console.error("Failed to convert view:",e),null))):Promise.resolve(null)),[n,t]),s=(0,d.use)(r);return p().createElement(Ph,{rootId:t,pageTitle:null==n?void 0:n.title,convertedResult:s})}function Ph(e){let{rootId:t,pageTitle:i,convertedResult:a}=e;const n=(0,d.useRef)(null),r=(0,d.useRef)(null);return(0,d.useEffect)((()=>{const e=n.current;if(!e)return;const i=(0,Sh.d)(t),a=(0,Ni.unstable_createRoot)(e,{portal:i,supportsUseChildren:!0});return r.current=a,()=>{a.unmount(),i.remove(),r.current=null}}),[t]),(0,d.useEffect)((()=>{var e;if(!a)return;const{brick:t,context:i,functions:n,templates:s}=a;null===(e=r.current)||void 0===e||e.render(t,{context:i,functions:n,templates:s})}),[a]),p().createElement(Lh,{size:"large",className:fh.container},p().createElement(Wh,null,p().createElement(Rh,{slot:"pageTitle",pageTitle:i||lh(sh.UNTITLED)}),p().createElement("div",{className:fh.main,ref:n,"data-root-id":t})))}yh=Bh,({e:[Ch,_h],c:[Dh,Mh]}=(0,h.A)(yh,[Ih("ai-portal.preview-container",{shadowOptions:!1})],[[Oh({attribute:!1}),1,"source"]],0,void 0,m.ReactNextElement)),Mh();const Vh="bricks/ai-portal/action-buttons";b.i18n.getFixedT(null,Vh);var Hh,jh=i(11816);let Gh,Kh,qh,$h,Jh,Xh,Yh,Qh,Zh;(0,b.initializeI18n)(Vh,{en:{},zh:{}});const ed=(0,m.wrapBrick)("eo-button"),{defineElement:td,property:id,event:ad}=(0,u.createDecorators)();let nd;var rd=new WeakMap,sd=new WeakMap,od=new WeakMap,ld=new WeakSet,cd=new WeakMap;class hd extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,ld),(0,r.A)(this,rd,Kh(this)),(0,r.A)(this,sd,(qh(this),$h(this))),(0,r.A)(this,od,(Jh(this),Xh(this))),(0,r.A)(this,cd,(Zh(this),e=>{var t;const i=null===(t=this.items)||void 0===t?void 0:t.map((t=>t.text===e.text?{...t,active:!t.active}:this.multiple?t:{...t,active:!1}));this.items=i;const a=null==i?void 0:i.find((t=>t.text===e.text));if((0,o.A)(ld,this,Yh).emit(a),e.event){const t=new CustomEvent(e.event,{detail:{current:a,actives:null==i?void 0:i.filter((e=>e.active))}});this.dispatchEvent(t)}}))}get items(){return(0,c.A)(rd,this)}set items(e){(0,l.A)(rd,this,e)}get multiple(){return(0,c.A)(sd,this)}set multiple(e){(0,l.A)(sd,this,e)}render(){return p().createElement(dd,{items:this.items,multiple:this.multiple,onActionClick:(0,c.A)(cd,this)})}}function dd(e){let{items:t,onActionClick:i}=e;const a=(0,d.useMemo)((()=>null==t?void 0:t.filter((e=>!e.hidden))),[t]);return p().createElement("div",{className:"button-container"},null==a?void 0:a.map(((e,t)=>{const{event:a,text:n,active:r,...s}=e;return p().createElement(ed,(0,jt.A)({key:t,className:"action"+(r?" active":""),themeVariant:"elevo",type:"neutral"},s,{onClick:()=>i(e)}),n)})))}Hh=hd,({e:[Kh,qh,$h,Jh,Xh,Yh,Qh,Zh],c:[nd,Gh]}=(0,h.A)(Hh,[td("ai-portal.action-buttons",{styleTexts:[jh.A]})],[[id({attribute:!1}),1,"items"],[id({attribute:!1}),1,"multiple"],[ad({type:"action.click"}),1,"actionClick",e=>(0,c.A)(od,e),(e,t)=>(0,l.A)(od,e,t)]],0,(e=>cd.has((0,s.A)(e))),m.ReactNextElement)),Gh();let pd=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 ud="bricks/ai-portal/goal-card-list",md={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:"新对话"}},bd=b.i18n.getFixedT(null,ud);var gd=i(46342),Ad=i(10335),kd=i(2373);(0,b.initializeI18n)(ud,md);const Ed=(0,m.wrapBrick)("eo-icon"),xd=(0,m.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),vd=(0,m.wrapBrick)("eo-easyops-avatar"),wd=(0,m.wrapBrick)("eo-button"),fd={ready:"uncheck-status",working:"active-status",completed:"check-status"},yd=[{key:"ready",icon:{icon:"uncheck-status",lib:"easyops",category:"colored-common"},text:bd(pd.UN_START_STATUS)},{key:"working",icon:{icon:"active-status",lib:"easyops",category:"colored-common"},text:bd(pd.RUNNING_STATUS)},{key:"completed",icon:{icon:"check-status",lib:"easyops",category:"colored-common"},text:bd(pd.COMPLETED_STATUS)}];function Td(e){let{goalItem:t,cardStyle:i,onStatusChange:a,onTitleChange:n,onClick:r,onNewChat:s,isActive:o}=e;const{state:l,id:c,title:h,conversations:u,owner:m}=t,b=(0,d.useRef)(!1),g=(0,d.useCallback)((()=>{b.current=!0}),[]),A=(0,d.useCallback)((()=>{b.current=!1}),[]),[k,E]=(0,d.useState)(!1),x=(0,d.useCallback)((()=>{E(!0)}),[]),v=(0,d.useCallback)((e=>{E(!1);const t=e.currentTarget.textContent;null!==t&&h!==t&&(null==n||n(t))}),[h,n]),w=(0,d.useCallback)((e=>{b.current||"Enter"===e.key&&(e.preventDefault(),e.currentTarget.blur())}),[]);return p().createElement("div",{className:Wi()("goal-item",t.state,{editing:k},{active:o}),style:{paddingLeft:`${t.offsetX}px`,...i},onClick:r},p().createElement("div",{className:"start"},p().createElement(xd,{actions:yd,onActionClick:e=>{return t=e.detail,void(null==a||a(t.key));var t}},p().createElement(Ed,{className:"icon",lib:"easyops",category:"colored-common",icon:fd[l],onClick:e=>e.stopPropagation()})),p().createElement("span",{className:"serial-number"},"#",c),p().createElement("span",{className:"title",onClick:e=>e.stopPropagation(),onFocus:x,onBlur:v,onKeyDown:w,onCompositionStart:g,onCompositionEnd:A,contentEditable:(0,kd.U)(!0),suppressContentEditableWarning:!0},h)),p().createElement("div",{className:"end"},p().createElement("div",{className:"info"},p().createElement("div",{className:"message"},p().createElement(Ed,{lib:"easyops",category:"common",icon:"message"}),p().createElement("span",{className:"count"},u||0)),p().createElement(vd,{nameOrInstanceId:null==m?void 0:m.instanceId,size:"small"})),p().createElement("div",{className:"operation",onClick:e=>e.stopPropagation()},p().createElement(wd,{className:"new-chat",themeVariant:"elevo",type:"neutral",size:"small",onClick:s},bd(pd.NEW_CHAT)))))}var Sd;let Md,Cd,_d,Nd,Rd,Wd,Ld,Id,Od,Dd,zd,Ud,Bd,Fd,Pd,Vd,Hd,jd,Gd,Kd,qd,$d,Jd;(0,b.initializeI18n)(ud,md);const{defineElement:Xd,property:Yd,event:Qd}=(0,u.createDecorators)(),Zd=(0,m.wrapBrick)("eo-icon");let ep;var tp=new WeakMap,ip=new WeakMap,ap=new WeakMap,np=new WeakMap,rp=new WeakSet,sp=new WeakMap,op=new WeakMap,lp=new WeakMap,cp=new WeakMap,hp=new WeakMap,dp=new WeakMap,pp=new WeakMap;class up extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,rp),(0,r.A)(this,tp,Cd(this)),(0,r.A)(this,ip,(_d(this),Nd(this))),(0,r.A)(this,ap,(Rd(this),Wd(this))),(0,r.A)(this,np,(Ld(this),Id(this))),(0,r.A)(this,sp,(zd(this),e=>{(0,o.A)(rp,this,Od).emit(e)})),(0,r.A)(this,op,Ud(this)),(0,r.A)(this,lp,(Pd(this),e=>{(0,o.A)(rp,this,Bd).emit(e)})),(0,r.A)(this,cp,Vd(this)),(0,r.A)(this,hp,(Gd(this),e=>{(0,o.A)(rp,this,Hd).emit(e)})),(0,r.A)(this,dp,Kd(this)),(0,r.A)(this,pp,(Jd(this),e=>{(0,o.A)(rp,this,qd).emit(e)}))}get goalList(){return(0,c.A)(tp,this)}set goalList(e){(0,l.A)(tp,this,e)}get cardStyle(){return(0,c.A)(ip,this)}set cardStyle(e){(0,l.A)(ip,this,e)}get activeKey(){return(0,c.A)(ap,this)}set activeKey(e){(0,l.A)(ap,this,e)}render(){return p().createElement(mp,{goalList:this.goalList,cardStyle:this.cardStyle,onTitleChange:(0,c.A)(hp,this),onStatusChange:(0,c.A)(lp,this),onItemClick:(0,c.A)(sp,this),onNewChat:(0,c.A)(pp,this),activeKey:this.activeKey})}}function mp(e){let{goalList:t,cardStyle:i,onTitleChange:a,onStatusChange:n,onItemClick:r,onNewChat:s,activeKey:o}=e;const[l,c]=(0,d.useState)(t);(0,d.useEffect)((()=>{c(t)}),[t]);const h=(e,t,i,a)=>{const n={...e,[t]:i};c(null==l?void 0:l.map((e=>e.instanceId===n.instanceId?n:e))),null==a||a(n)};return l?p().createElement("div",{className:"goal-container"},null==l?void 0:l.map((e=>p().createElement(Td,{key:e.instanceId,isActive:o===e.instanceId,goalItem:e,cardStyle:i,onTitleChange:t=>((e,t)=>{h(t,"title",e,a)})(t,e),onStatusChange:t=>((e,t)=>{h(t,"state",e,n)})(t,e),onNewChat:()=>null==s?void 0:s(e),onClick:()=>null==r?void 0:r(e)})))):p().createElement("div",{className:"loading"},p().createElement(Zd,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}Sd=up,({e:[Cd,_d,Nd,Rd,Wd,Ld,Id,Od,Dd,zd,Ud,Bd,Fd,Pd,Vd,Hd,jd,Gd,Kd,qd,$d,Jd],c:[ep,Md]}=(0,h.A)(Sd,[Xd("ai-portal.goal-card-list",{styleTexts:[Ad.A,gd.A]})],[[Yd({attribute:!1}),1,"goalList"],[Yd({attribute:!1}),1,"cardStyle"],[Yd(),1,"activeKey"],[Qd({type:"item.click"}),1,"itemClickEvent",e=>(0,c.A)(np,e),(e,t)=>(0,l.A)(np,e,t)],[Qd({type:"item.status.change"}),1,"itemStatusChangeEvent",e=>(0,c.A)(op,e),(e,t)=>(0,l.A)(op,e,t)],[Qd({type:"item.title.change"}),1,"itemTitleChangeEvent",e=>(0,c.A)(cp,e),(e,t)=>(0,l.A)(cp,e,t)],[Qd({type:"item.new.chat"}),1,"itemNewChatEvent",e=>(0,c.A)(dp,e),(e,t)=>(0,l.A)(dp,e,t)]],0,(e=>pp.has((0,s.A)(e))),m.ReactNextElement)),Md();let bp=function(e){return e.PROJECT_OVERALL="PROJECT_OVERALL",e}({});const gp="bricks/ai-portal/project-conversations",Ap=b.i18n.getFixedT(null,gp);var kp,Ep=i(79286);let xp,vp,wp,fp,yp,Tp,Sp,Mp,Cp,_p,Np,Rp,Wp,Lp,Ip,Op,Dp;(0,b.initializeI18n)(gp,{en:{PROJECT_OVERALL:"Project overall"},zh:{PROJECT_OVERALL:"项目整体"}});const zp=(0,m.wrapBrick)("eo-link"),Up=(0,m.wrapBrick)("eo-icon"),Bp=(0,m.wrapBrick)("eo-easyops-avatar"),Fp=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:Pp,property:Vp,event:Hp}=(0,u.createDecorators)();let jp;var Gp=new WeakMap,Kp=new WeakMap,qp=new WeakMap,$p=new WeakMap,Jp=new WeakMap,Xp=new WeakSet,Yp=new WeakMap,Qp=new WeakMap,Zp=new WeakMap;class eu extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Xp),(0,r.A)(this,Gp,vp(this)),(0,r.A)(this,Kp,(wp(this),fp(this))),(0,r.A)(this,qp,(yp(this),Tp(this))),(0,r.A)(this,$p,(Sp(this),Mp(this))),(0,r.A)(this,Jp,(Cp(this),_p(this))),(0,r.A)(this,Yp,(Wp(this),e=>{(0,o.A)(Xp,this,Np).emit(e)})),(0,r.A)(this,Qp,Lp(this)),(0,r.A)(this,Zp,(Dp(this),e=>{(0,o.A)(Xp,this,Ip).emit(e)}))}get list(){return(0,c.A)(Gp,this)}set list(e){(0,l.A)(Gp,this,e)}get urlTemplate(){return(0,c.A)(Kp,this)}set urlTemplate(e){(0,l.A)(Kp,this,e)}get actions(){return(0,c.A)(qp,this)}set actions(e){(0,l.A)(qp,this,e)}get goals(){return(0,c.A)($p,this)}set goals(e){(0,l.A)($p,this,e)}render(){return p().createElement(tu,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,goals:this.goals,onGoalClick:(0,c.A)(Yp,this),onActionClick:(0,c.A)(Zp,this)})}}function tu(e){let{list:t,urlTemplate:i,actions:a,goals:n,onGoalClick:r,onActionClick:s}=e;return t?p().createElement("ul",null,t.map((e=>p().createElement("li",{className:"item",key:e.conversationId},p().createElement(iu,{conversation:e,urlTemplate:i,actions:a,goals:n,onGoalClick:r,onActionClick:s}))))):p().createElement("div",{className:"loading"},p().createElement(Up,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}function iu(e){var t;let{conversation:i,urlTemplate:a,actions:n,goals:r,onGoalClick:s,onActionClick:o}=e;const l=(0,d.useRef)(null);(0,d.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[c,h]=(0,d.useState)(!1);return p().createElement(zp,{className:Wi()("link",{"actions-active":c}),url:(0,Fn.Q)(a,i)},p().createElement("div",{className:"main"},p().createElement("div",{className:"header"},p().createElement(Up,{className:"icon",lib:"easyops",category:"common",icon:"clock"}),p().createElement("div",{className:"title"},i.title)),i.description&&p().createElement("div",{className:"description"},i.description)),r&&p().createElement("div",{className:Wi()("goal",{global:!i.goalInstanceId}),ref:l},i.goalInstanceId?null===(t=r.find((e=>e.instanceId===i.goalInstanceId)))||void 0===t?void 0:t.title:Ap(bp.PROJECT_OVERALL)),p().createElement(Bp,{className:"avatar",size:"small",nameOrInstanceId:i.username}),p().createElement("div",{className:"operations"},p().createElement(Fp,{className:"actions",actions:n,onActionClick:e=>{o({action:e.detail,item:i})},onVisibleChange:e=>{h(e.detail)}}),p().createElement("div",{className:"time",title:(0,ul.P)(1e3*i.startTime,ul.c.full)},(0,ul.P)(1e3*i.startTime,ul.c.relative))))}kp=eu,({e:[vp,wp,fp,yp,Tp,Sp,Mp,Cp,_p,Np,Rp,Wp,Lp,Ip,Op,Dp],c:[jp,xp]}=(0,h.A)(kp,[Pp("ai-portal.project-conversations",{styleTexts:[Ep.A]})],[[Vp({attribute:!1}),1,"list"],[Vp(),1,"urlTemplate"],[Vp({attribute:!1}),1,"actions"],[Vp({attribute:!1}),1,"goals"],[Hp({type:"goal.click"}),1,"goalClick",e=>(0,c.A)(Jp,e),(e,t)=>(0,l.A)(Jp,e,t)],[Hp({type:"action.click"}),1,"actionClick",e=>(0,c.A)(Qp,e),(e,t)=>(0,l.A)(Qp,e,t)]],0,(e=>Zp.has((0,s.A)(e))),m.ReactNextElement)),xp();var au,nu=i(23677);let ru,su,ou,lu,cu,hu,du,pu,uu,mu,bu,gu,Au,ku,Eu;const xu=(0,m.wrapBrick)("eo-link"),vu=(0,m.wrapBrick)("eo-icon"),wu=(0,m.wrapBrick)("eo-easyops-avatar"),fu=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:yu,property:Tu,event:Su}=(0,u.createDecorators)();let Mu;var Cu=new WeakMap,_u=new WeakMap,Nu=new WeakMap,Ru=new WeakMap,Wu=new WeakSet,Lu=new WeakMap,Iu=new WeakMap,Ou=new WeakMap;class Du extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Wu),(0,r.A)(this,Cu,su(this)),(0,r.A)(this,_u,(ou(this),lu(this))),(0,r.A)(this,Nu,(cu(this),hu(this))),(0,r.A)(this,Ru,(du(this),pu(this))),(0,r.A)(this,Lu,(bu(this),gu(this))),(0,r.A)(this,Iu,(Eu(this),e=>{(0,o.A)(Wu,this,uu).emit(e)})),(0,r.A)(this,Ou,(e=>{(0,o.A)(Wu,this,Au).emit(e)}))}get list(){return(0,c.A)(Cu,this)}set list(e){(0,l.A)(Cu,this,e)}get urlTemplate(){return(0,c.A)(_u,this)}set urlTemplate(e){(0,l.A)(_u,this,e)}get actions(){return(0,c.A)(Nu,this)}set actions(e){(0,l.A)(Nu,this,e)}render(){return p().createElement(zu,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,onActionClick:(0,c.A)(Iu,this),onItemClick:(0,c.A)(Ou,this)})}}function zu(e){let{list:t,urlTemplate:i,actions:a,onActionClick:n,onItemClick:r}=e;return t?p().createElement("ul",null,null==t?void 0:t.map((e=>p().createElement("li",{className:"item",key:e.instanceId},p().createElement(Uu,{knowledge:e,urlTemplate:i,actions:a,onActionClick:n,onItemClick:r}))))):p().createElement("div",{className:"loading"},p().createElement(vu,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}function Uu(e){let{knowledge:t,urlTemplate:i,actions:a,onActionClick:n,onItemClick:r}=e;const[s,o]=(0,d.useState)(!1);return p().createElement(xu,{className:Wi()("link",{"actions-active":s}),url:(0,Fn.Q)(i,t),onClick:()=>null==r?void 0:r(t)},p().createElement("div",{className:"main"},p().createElement("div",{className:"header"},p().createElement(vu,{className:"icon",lib:"easyops",icon:"lightbulb",category:"common"}),p().createElement("span",{className:"title"},t.name),p().createElement(vu,{className:"attachment",lib:"lucide",icon:"paperclip"})),t.description&&p().createElement("div",{className:"description"},t.description)),p().createElement("div",{className:"time"},(0,ul.P)(1e3*t.time,ul.c.relative)),p().createElement("div",{className:"operations"},p().createElement(fu,{className:"actions",actions:a,onActionClick:e=>{n({action:e.detail,item:t})},onVisibleChange:e=>{o(e.detail)}}),p().createElement(wu,{className:"avatar",size:"small",nameOrInstanceId:t.user})))}au=Du,({e:[su,ou,lu,cu,hu,du,pu,uu,mu,bu,gu,Au,ku,Eu],c:[Mu,ru]}=(0,h.A)(au,[yu("ai-portal.project-knowledges",{styleTexts:[nu.A]})],[[Tu({attribute:!1}),1,"list"],[Tu(),1,"urlTemplate"],[Tu({attribute:!1}),1,"actions"],[Su({type:"action.click"}),1,"actionClick",e=>(0,c.A)(Ru,e),(e,t)=>(0,l.A)(Ru,e,t)],[Su({type:"item.click"}),1,"itemClick",e=>(0,c.A)(Lu,e),(e,t)=>(0,l.A)(Lu,e,t)]],0,(e=>Ou.has((0,s.A)(e))),m.ReactNextElement)),ru();let Bu=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.DELETED_THIS_GOAL="DELETED_THIS_GOAL",e.DECOMPOSED_THIS_GOAL="DECOMPOSED_THIS_GOAL",e.SET_OWNER="SET_OWNER",e.REMOVED_GOAL_MEMBERS="REMOVED_GOAL_MEMBERS",e.ADDED_GOAL_MEMBERS="ADDED_GOAL_MEMBERS",e.COMMENTED="COMMENTED",e.COMMA="COMMA",e.SEMICOLON="SEMICOLON",e}({});const Fu="bricks/ai-portal/activity-timeline",Pu=b.i18n.getFixedT(null,Fu);var Vu,Hu=i(14763);let ju,Gu,Ku,qu,$u;(0,b.initializeI18n)(Fu,{en:{STARTED_A_CHAT:"started a chat",CREATED_THIS_GOAL:"created this goal",CHANGED_THE_GOAL_TITLE:"changed the goal title",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_MEMBERS:"removed a goal member: ",REMOVED_GOAL_MEMBERS_plural:"removed {{ count }} goal members: ",ADDED_GOAL_MEMBERS:"added a goal member: ",ADDED_GOAL_MEMBERS_plural:"added {{ count }} goal members: ",COMMENTED:"commented",COMMA:", ",SEMICOLON:"; "},zh:{STARTED_A_CHAT:"发起了对话",CREATED_THIS_GOAL:"创建了此目标",CHANGED_THE_GOAL_TITLE:"修改了目标标题",DELETED_THIS_GOAL:"删除了此目标",DECOMPOSED_THIS_GOAL:"将此目标分解为 {{ count }} 个子目标:",DECOMPOSED_THIS_GOAL_plural:"将此目标分解为 {{ count }} 个子目标:",SET_OWNER:"设定负责人为 {{ user }}",REMOVED_GOAL_MEMBERS:"移除了目标参与成员:",ADDED_GOAL_MEMBERS:"添加了目标参与成员:",COMMENTED:"评论",COMMA:",",SEMICOLON:";"}});const Ju=(0,m.wrapBrick)("eo-link"),Xu=(0,m.wrapBrick)("eo-icon"),Yu=(0,m.wrapBrick)("eo-easyops-avatar"),{defineElement:Qu,property:Zu}=(0,u.createDecorators)();let em;var tm=new WeakMap,im=new WeakMap;class am extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,tm,Gu(this)),(0,r.A)(this,im,(Ku(this),qu(this))),$u(this)}get list(){return(0,c.A)(tm,this)}set list(e){(0,l.A)(tm,this,e)}get chatUrlTemplate(){return(0,c.A)(im,this)}set chatUrlTemplate(e){(0,l.A)(im,this,e)}render(){return p().createElement(nm,{list:this.list,chatUrlTemplate:this.chatUrlTemplate})}}function nm(e){let{list:t,chatUrlTemplate:i}=e;return t?p().createElement("ul",null,t.map(((e,t)=>{var a,n;return p().createElement("li",{className:"activity",key:t},p().createElement("div",{className:"guide-line"}),p().createElement("div",{className:"main"},p().createElement(Yu,{className:"avatar",nameOrInstanceId:e.user_id,size:"xs"}),p().createElement("span",{className:"user"},e.user_name)," ",p().createElement("span",{className:"action"},"start_conversation"===e.action_type?p().createElement(p().Fragment,null,p().createElement("span",null,Pu(Bu.STARTED_A_CHAT)),p().createElement(Ju,{className:"conversation",url:(0,Fn.Q)(i,e),target:"_blank"},null===(a=e.metadata)||void 0===a?void 0:a.conversation_title),p().createElement(Xu,{className:"external-link-icon",lib:"lucide",icon:"external-link"})):"create_goal"===e.action_type?Pu(Bu.CREATED_THIS_GOAL):"edit_goal"===e.action_type?Pu(Bu.CHANGED_THE_GOAL_TITLE):"delete_goal"===e.action_type?Pu(Bu.DELETED_THIS_GOAL):"decompose_goals"===e.action_type?`${Pu(Bu.DECOMPOSED_THIS_GOAL,{count:e.metadata.sub_goals_count})}${e.metadata.sub_goals.map((e=>e.title)).join(Pu(Bu.COMMA))}`:"alter_owner"===e.action_type?Pu(Bu.SET_OWNER,{user:e.metadata.after.user_name}):"alter_user"===e.action_type?function(e){const t=[],i=[],a=new Set(e.metadata.before.map((e=>e.user_name)));for(const t of e.metadata.after)a.has(t.user_name)||i.push(t.user_name);const n=new Set(e.metadata.after.map((e=>e.user_name)));for(const i of e.metadata.before)n.has(i.user_name)||t.push(i.user_name);const r=[];return t.length>0&&r.push(Pu(Bu.REMOVED_GOAL_MEMBERS,{count:t.length})+t.join(Pu(Bu.COMMA))),i.length>0&&r.push(Pu(Bu.ADDED_GOAL_MEMBERS,{count:i.length})+i.join(Pu(Bu.COMMA))),r.join(Pu(Bu.SEMICOLON))}(e):"add_comment"===e.action_type?Pu(Bu.COMMENTED):e.action_type),p().createElement("span",{className:"time",title:(0,ul.P)(1e3*e.time,ul.c.full)},(0,ul.P)(1e3*e.time,ul.c.relative))),"add_comment"===e.action_type&&p().createElement("div",{className:"comment"},null===(n=e.metadata)||void 0===n?void 0:n.comment_content))}))):p().createElement("div",{className:"loading"},p().createElement(Xu,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}Vu=am,({e:[Gu,Ku,qu,$u],c:[em,ju]}=(0,h.A)(Vu,[Qu("ai-portal.activity-timeline",{styleTexts:[Hu.A]})],[[Zu({attribute:!1}),1,"list"],[Zu(),1,"chatUrlTemplate"]],0,void 0,m.ReactNextElement)),ju();var rm=i(99126);let sm=function(e){return e.TERMINATE_THE_TASK="TERMINATE_THE_TASK",e}({});const om="bricks/ai-portal/chat-input",lm=b.i18n.getFixedT(null,om);var cm,hm=i(84479);let dm,pm,um,mm,bm,gm,Am,km,Em,xm,vm,wm,fm,ym,Tm,Sm,Mm,Cm,_m;(0,b.initializeI18n)(om,{en:{TERMINATE_THE_TASK:"Terminate the task"},zh:{TERMINATE_THE_TASK:"终止任务"}});const Nm={lib:"antd",icon:"loading-3-quarters",spinning:!0},Rm={lib:"fa",prefix:"far",icon:"circle-stop"},Wm=(0,m.wrapBrick)("eo-icon"),Lm=(0,m.wrapBrick)("ai-portal.icon-button"),{defineElement:Im,property:Om,event:Dm}=(0,u.createDecorators)();let zm;var Um=new WeakMap,Bm=new WeakMap,Fm=new WeakMap,Pm=new WeakMap,Vm=new WeakMap,Hm=new WeakMap,jm=new WeakSet,Gm=new WeakMap,Km=new WeakMap,qm=new WeakMap;class $m extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,jm),(0,r.A)(this,Um,pm(this)),(0,r.A)(this,Bm,(um(this),mm(this))),(0,r.A)(this,Fm,(bm(this),gm(this))),(0,r.A)(this,Pm,(Am(this),km(this))),(0,r.A)(this,Vm,(Em(this),xm(this))),(0,r.A)(this,Hm,(vm(this),wm(this))),(0,r.A)(this,Gm,(Tm(this),e=>{(0,o.A)(jm,this,fm).emit(e)})),(0,r.A)(this,Km,Sm(this)),(0,r.A)(this,qm,(_m(this),()=>{(0,o.A)(jm,this,Mm).emit()}))}get placeholder(){return(0,c.A)(Um,this)}set placeholder(e){(0,l.A)(Um,this,e)}get autoFocus(){return(0,c.A)(Bm,this)}set autoFocus(e){(0,l.A)(Bm,this,e)}get submitDisabled(){return(0,c.A)(Fm,this)}set submitDisabled(e){(0,l.A)(Fm,this,e)}get supportsTerminate(){return(0,c.A)(Pm,this)}set supportsTerminate(e){(0,l.A)(Pm,this,e)}get terminating(){return(0,c.A)(Vm,this)}set terminating(e){(0,l.A)(Vm,this,e)}render(){return p().createElement(Jm,{placeholder:this.placeholder,autoFocus:this.autoFocus,submitDisabled:this.submitDisabled,supportsTerminate:this.supportsTerminate,terminating:this.terminating,onSubmit:(0,c.A)(Gm,this),onTerminate:(0,c.A)(qm,this)})}}function Jm(e){let{placeholder:t,autoFocus:i,submitDisabled:a,supportsTerminate:n,terminating:r,onSubmit:s,onTerminate:o}=e;const l=(0,d.useRef)(null),c=(0,d.useRef)(null),[h,u]=(0,d.useState)(""),m=(0,d.useRef)(""),[b,g]=(0,d.useState)(!1);(0,d.useEffect)((()=>{var e;i&&!a&&(null===(e=c.current)||void 0===e||e.focus())}),[i,a]);const A=(0,d.useCallback)((e=>{!a&&e&&(s(e),m.current="",u(""))}),[a,s]),k=(0,d.useCallback)((e=>{A(e.currentTarget.value)}),[A]),E=(0,d.useCallback)((e=>{m.current=e.target.value,u(e.target.value)}),[]),x=(0,d.useCallback)((()=>{A(m.current)}),[A]);(0,d.useEffect)((()=>{const e=null==l?void 0:l.current;if(!e)return;const t=new rm.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&&g(!0)}));return t.observe(e),()=>{t.disconnect()}}),[]),(0,d.useEffect)((()=>{h||g(!1)}),[h]);const v=(0,d.useCallback)((e=>{var t;for(const t of e.nativeEvent.composedPath())if(t instanceof HTMLTextAreaElement||t instanceof HTMLButtonElement)return;null===(t=c.current)||void 0===t||t.focus()}),[]);return p().createElement("div",{className:"container",onClick:v},p().createElement("div",{className:Wi()("box",{wrap:b})},p().createElement("div",{className:"input",ref:l},p().createElement(it.e,{containerRef:l,ref:c,value:h,minRows:1,maxRows:4,borderSize:0,paddingSize:16,autoResize:!0,placeholder:t,submitWhen:"enter-without-shift",onSubmit:k,onChange:E})),p().createElement("div",{className:"toolbar"},a&&n?p().createElement(p().Fragment,null,r?p().createElement(Lm,{icon:Nm,disabled:!0}):p().createElement(Lm,{icon:Rm,tooltip:lm(sm.TERMINATE_THE_TASK),onClick:o})):p().createElement("button",{className:"btn-send",disabled:a||!h,onClick:x},p().createElement(Wm,{lib:"fa",icon:"arrow-up"})))))}cm=$m,({e:[pm,um,mm,bm,gm,Am,km,Em,xm,vm,wm,fm,ym,Tm,Sm,Mm,Cm,_m],c:[zm,dm]}=(0,h.A)(cm,[Im("ai-portal.chat-input",{styleTexts:[hm.A]})],[[Om(),1,"placeholder"],[Om({type:Boolean}),1,"autoFocus"],[Om({type:Boolean}),1,"submitDisabled"],[Om({type:Boolean}),1,"supportsTerminate"],[Om({type:Boolean}),1,"terminating"],[Dm({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(Hm,e),(e,t)=>(0,l.A)(Hm,e,t)],[Dm({type:"terminate"}),1,"terminate",e=>(0,c.A)(Km,e),(e,t)=>(0,l.A)(Km,e,t)]],0,(e=>qm.has((0,s.A)(e))),m.ReactNextElement)),dm();const Xm=i.p+"images/e47076cc.png";var Ym,Qm=i(31653);let Zm;const{defineElement:eb}=(0,u.createDecorators)();let tb;class ib extends m.ReactNextElement{render(){return p().createElement("img",{className:"logo",alt:"Elevo",src:Xm,width:95,height:28})}}Ym=ib,[tb,Zm]=(0,h.A)(Ym,[eb("ai-portal.elevo-logo",{styleTexts:[Qm.A]})],[],0,void 0,m.ReactNextElement).c,Zm()},31653:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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:()=>p});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(25676),i.b),h=s()(n()),d=l()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}h1,\nh2{font-weight:500;margin:0}h1{font-size:20px;line-height:28px;margin-bottom:17px}h2{font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:27px}.group + .group{margin-top:32px}.list{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.list .item{background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px}.heading{display:flex;align-items:center}.icon{font-size:24px;color:#333;margin-right:8px}.title{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}`,""]);const p=h.toString()},32360:(e,t,i)=>{e.exports=i.p+"images/72c24398.png"},40138:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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 a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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}.link{display:block;background:rgba(255,255,255,0.5);border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-size:cover;background-position:center;background-repeat:no-repeat;background-clip:padding-box;overflow:hidden}.link::part(link){display:flex;flex-direction:column;gap:0;box-sizing:border-box;height:128px;padding:20px}.title{width:100%;margin-bottom:8px;color:#262626;font-weight:500;font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{width:100%;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:rgba(24,33,47,0.65);font-size:13px;line-height:20px}.link::part(link):hover{box-shadow:0px 4px 12px 0px rgba(96,96,138,0.15),0px 2px 4px 0px rgba(96,96,138,0.06)}",""]);const o=s.toString()},46342:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());s.push([e.id,".goal-item{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:14px 24px;background-color:rgba(255,255,255,0.6);border-radius:8px;-webkit-user-select:none;user-select:none}.goal-item:hover{background-color:rgba(0,0,0,0.05)}.goal-item:hover .end .operation{display:block}.goal-item:hover .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}.goal-item .end .operation .new-chat::part(button){height:28px;font-size:13px;padding:5px 10px}.goal-item .end .info{display:inline-flex;align-items:center;column-gap:16px}.goal-item .serial-number{font-weight:400;color:var(--palette-gray-7)}.goal-item .title{font-weight:500;padding:2px 4px;color:var(--palette-gray-10);border:1px solid transparent;border-radius:8px;cursor:pointer;min-width:0}.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:4px;margin-top:4px}.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:()=>p});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(47336),i.b),h=s()(n()),d=l()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.root{color:#262626;background:url(${d}) no-repeat center bottom;background-size:100% 104px;padding:12px 12px 29px;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)}.btn-send:focus,\ntextarea:focus{outline:none}.actions-bar{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:flex-end;justify-content:space-between}.btn-send{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff;flex-shrink:0}.btn-send[disabled]{background:rgba(0,0,0,0.15)}.btn-send:not([disabled]){cursor:pointer}.btn-send:not([disabled]):hover{background:#5166ff}.btn-send:not([disabled]):active{background:#1e33cc}`,""]);const p=h.toString()},47336:(e,t,i)=>{e.exports=i.p+"images/25c20165.png"},47338:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());s.push([e.id,':host{display:inline-block}:host([hidden]){display:none}:host,\neo-tooltip{vertical-align:middle}button{width:28px;height:28px;font-size:18px;border-radius:8px;display:flex;align-items:center;justify-content:center;border:none;background:none;color:#333}button:disabled{color:#8c8c8c}button:not(:disabled){cursor:pointer}button:focus{outline:none}button:not(:disabled):hover{background:rgba(0,0,0,0.04)}button:not(:disabled):active{background:rgba(0,0,0,0.08)}:host([variant="light"]) button{color:#595959}:host([variant="mini"]) button{width:24px;height:24px;font-size:16px;border-radius:4px}:host([variant="mini-light"]) button{color:#8c8c8c;width:20px;height:20px;font-size:14px;border-radius:4px}:host([variant="bordered"]) button{background:#ffffff;border-radius:8px;border:1px solid rgba(0,0,0,0.1);color:#595959;width:32px;height:32px;font-size:18px}:host([variant="bordered"]) button:not(:disabled):hover{background:rgba(0,0,0,0.04)}',""]);const o=s.toString()},49041:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(25676),i.b),h=s()(n()),d=l()(c);h.push([e.id,`:host{display:block;position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:17px 54px 48px;overflow-y:auto}:host([hidden]){display:none}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}:host([size="small"]) .container{max-width:1000px}.header{margin-bottom:30px;display:flex;justify-content:space-between;align-items:center}nav{font-weight:500;font-size:20px;line-height:28px;display:flex;min-width:0}h1{margin:0;font-size:inherit;line-height:inherit}.breadcrumbs{list-style:none;padding:0;margin:0;color:#bfbfbf}.breadcrumbs eo-link::part(link){color:inherit}.breadcrumbs eo-link::part(link):hover{color:#595959}.breadcrumbs li::after{content:"/";margin:0 8px}@media (max-width: 719px){:host{padding-left:24px;padding-right:24px}.header{margin-left:40px}}`,""]);const p=h.toString()},56562:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());s.push([e.id,":host{display:flex;flex-direction:column;align-items:center;max-width:1200px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.chats{list-style:none;padding:0;margin:0;display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px;margin-top:2em}.chats .link{display:block}.chats .link::part(link){background:#fff;border-radius:12px;border:1px solid rgba(0,0,0,0.1);overflow:hidden;display:block;padding:16px 16px 12px}.chats .link::part(link):hover{box-shadow:0px 2px 8px 0px rgba(0,0,0,0.1)}.chats .title{height:40px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#262626}.chats .time{margin-top:20px;font-size:12px;color:#8c8c8c;display:flex;align-items:center}.chats .time eo-icon{margin-right:4px}.loading{display:flex;align-items:center;justify-content:center;margin-top:2em;font-size:16px;color:#8c8c8c}",""]);const o=s.toString()},62522:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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},79286:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());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}.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()},82165:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(32360),i.b),h=s()(n()),d=l()(c);h.push([e.id,`:host{display:block;padding:24px 54px 72px}:host([hidden]){display:none}:host::before{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:#f1f1f1;background-image:url(${d});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}@media (max-width: 719px){:host{padding-left:24px;padding-right:24px}}`,""]);const p=h.toString()},83059:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(25676),i.b),h=s()(n()),d=l()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}h1{font-weight:500;margin:0;font-size:20px;line-height:28px;margin-bottom:17px}.list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.link{display:block;height:100%}.link::part(link){display:block;height:100%;color:#262626;background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px;box-sizing:border-box}.link:not(.clickable)::part(link){cursor:auto}.clickable::part(link):hover{box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1)}.heading{display:flex;align-items:center}.icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#ffffff;border-radius:12px;border:1px solid #e8e9ec;font-size:32px;color:#595959;margin-right:16px}.title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clickable::part(link):hover .title{color:var(--elevo-color-brand)}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:6px;margin:16px 0 -3px}.tag{display:block;background:rgba(0,0,0,0.04);border-radius:4px;font-size:12px;line-height:22px;padding:0 7px}`,""]);const p=h.toString()},84479:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r)()(n());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.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{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:5px 0 5px 8px;margin-left:auto;display:flex;align-items:center;gap:2px}.btn-send:focus,\ntextarea:focus{outline:none}.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}.btn-send:disabled{background:rgba(0,0,0,0.15)}.btn-send:not(:disabled){cursor:pointer}.btn-send:not(:disabled):hover{background:#5166ff}.btn-send:not(:disabled):active{background:#1e33cc}",""]);const o=s.toString()},98036:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(36758),n=i.n(a),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(25676),i.b),h=s()(n()),d=l()(c);h.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${d});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto;margin-bottom:17px}h1,\nh2{font-weight:500;margin:0}h1{font-size:20px;line-height:28px;margin-bottom:17px}h2{font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:27px}.group + .group{margin-top:32px}.list{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.link{display:block;height:100%}.link::part(link){display:block;height:100%;color:#262626;background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px;box-sizing:border-box}.link:not(.clickable)::part(link){cursor:auto}.clickable::part(link):hover{box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1)}.heading{display:flex;align-items:center}.avatar{width:48px;height:48px;border-radius:12px;margin-right:16px;background-color:#d5d6e6;display:flex;align-items:center;justify-content:center;font-size:24px}.avatar img{width:100%;height:100%}.title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clickable::part(link):hover .title{color:var(--elevo-color-brand)}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}`,""]);const p=h.toString()}}]);
|
|
2
|
+
//# sourceMappingURL=2608.e0bf7de9.js.map
|